/* Вакуумний пакувальник Zepline ZP-00359: адаптивна колонка до 480 px.
   Розкладка секцій і палітра з макета донора: темно-зелена шапка, жовта кнопка й смуга таймера, червона плашка знижки.
   Жодної картинки донора тут немає, усе своє. */

:root {
  --green: #345300;
  --green-2: #2b4300;
  --green-3: #4b7a0a;
  --yellow: #ffd800;
  --yellow-dark: #b39600;
  --red: #ee3737;
  --ink: #2d2d2d;
  --muted: #5a5a5a;
  --line: #e2e2e2;
  --soft: #f5f5f5;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e4e6e2;
  color: var(--ink);
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}

img { display: block; max-width: 100%; height: auto; border: 0; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

.page {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  overflow-x: clip;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- смуга таймера (ціна до кінця доби, без дат) ---- */
.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--yellow);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-align: left;
}

.strip .js-timer {
  font-size: 27px;
  line-height: 1;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}

/* ---- перший екран ---- */
.hero {
  background: var(--green);
  color: #fff;
  text-align: center;
}

.hero__head { padding: 22px 16px 18px; }

.hero h1 {
  font-size: clamp(22px, 6.3vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.hero__sub {
  margin-top: 10px;
  color: var(--yellow);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.shot {
  position: relative;
  background: #fff;
}

.shot img { width: 100%; }

.badge {
  position: absolute;
  left: 12px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.badge small {
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge b {
  font-size: 27px;
  line-height: 1.05;
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 10px;
  background: var(--green-2);
  color: #fff;
}

.perks li {
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.perks li::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23345300' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---- ціна ---- */
.price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.price > div {
  padding: 14px 10px;
  text-align: center;
}

.price__old {
  border-right: 1px solid var(--line);
  color: #4a4a4a;
}

.price small {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}

.price__old s {
  display: block;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
}

.price__new b {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  color: var(--green);
}

.price__tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

/* ---- список з галочками ---- */
.checks {
  padding: 18px 16px 4px;
}

.checks li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.4;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---- кнопка ---- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  min-height: 62px;
  margin: 18px 16px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--yellow-dark);
  color: #222;
  font: 800 19px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.sec .cta, .why .cta {
  width: 100%;
  margin: 18px 0 26px;
}

.cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-dark); }
.cta[disabled] { opacity: .7; cursor: default; }

@media (prefers-reduced-motion: no-preference) {
  .cta { animation: pulse 1.6s ease-in-out infinite; }
  .cta:active, .cta[disabled] { animation: none; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.note {
  margin: -6px 16px 20px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

/* ---- звичайні секції ---- */
.sec { padding: 28px 16px 8px; }

.sec h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.sec h2 span { color: var(--green-3); }

.sec > p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.55;
}

.pic {
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0, 0, 0, .2);
}

.pic--narrow { max-width: 360px; }

.pic figcaption {
  padding: 9px 12px;
  background: var(--soft);
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

/* кнопки й режими */
.modes { margin: 0 0 14px; }

.modes li {
  margin-bottom: 10px;
  padding: 11px 14px;
  border-left: 5px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--soft);
  font-size: 15px;
  line-height: 1.4;
}

.modes b {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  color: var(--green);
}

.hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f0d66a;
  border-radius: 10px;
  background: #fff8e1;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

/* ---- темний блок «Чому це зручно» ---- */
.why {
  margin-top: 22px;
  padding: 30px 16px 6px;
  background: var(--green);
  color: #fff;
}

.why h2 {
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.why li {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(0, 0, 0, .12);
}

.why h3 {
  margin-bottom: 4px;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.25;
}

.why p {
  font-size: 15px;
  line-height: 1.45;
}

/* ---- таблиці «ключ: значення» ---- */
.specs { margin: 0 0 12px; }

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed #d4d4d4;
  font-size: 15px;
  line-height: 1.4;
}

.specs li:last-child { border-bottom: 0; }
.specs b { flex: 0 0 auto; max-width: 46%; font-weight: 700; }
.specs span { min-width: 0; color: #444; text-align: right; overflow-wrap: anywhere; }

/* ---- як замовити ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-bottom: 8px;
}

.steps li {
  padding: 16px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.steps img { margin: 0 auto 10px; }

.steps h3 { margin-bottom: 4px; font-size: 17px; line-height: 1.2; }
.steps p { font-size: 14px; line-height: 1.35; color: var(--muted); }

/* ---- блок замовлення ---- */
.order {
  margin-top: 24px;
  padding-bottom: 8px;
  background: var(--soft);
  scroll-margin-top: 8px;
}

.order__title {
  padding: 22px 16px 14px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  background: var(--green);
  color: #fff;
}

.order__title small {
  display: block;
  margin-top: 6px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 700;
}

.order .price { background: #fff; }

.order__timer {
  padding: 10px 16px 0;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}

.order__timer b {
  font-size: 20px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.form { padding: 18px 16px 6px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.variants, .pick {
  min-width: 0;
  margin: 0 0 16px;
  border: 0;
}

.variants legend, .pick__title {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.variant, .opt {
  display: block;
  margin: 0 0 10px;
  cursor: pointer;
}

.variant input, .opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.variant__card, .opt__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #d5d7d3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, .12);
}

.variant input:checked + .variant__card,
.opt input:checked + .opt__card {
  border-color: var(--green-3);
  background: #f4f9e8;
}

.variant input:focus-visible + .variant__card,
.opt input:focus-visible + .opt__card {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.variant__mark, .opt__mark {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #b4b8b0;
  background: #fff;
}

.variant__mark { border-radius: 50%; }
.opt__mark { border-radius: 6px; }

.variant input:checked + .variant__card .variant__mark {
  border-color: var(--green-3);
  box-shadow: inset 0 0 0 5px var(--green-3);
}

.opt input:checked + .opt__card .opt__mark {
  border-color: var(--green-3);
  background: var(--green-3);
}

.opt input:checked + .opt__card .opt__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.variant__img, .opt__img {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  object-position: 50% 62%;
}

.variant__text, .opt__text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.variant__name, .opt__name {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.variant__sub, .opt__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.variant__price, .opt__price {
  flex: 0 0 auto;
  text-align: right;
}

.variant__price b, .opt__price b {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.variant__price s, .opt__price s {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  color: #8a8f88;
  white-space: nowrap;
}

.pick__note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.opt.is-flash .opt__card { animation: flash 1s ease-out; }

@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(75, 122, 10, .7); }
  100% { box-shadow: 0 0 0 16px rgba(75, 122, 10, 0); }
}

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px dashed #cfd2cb;
  font-size: 16px;
  font-weight: 700;
}

.total[hidden] { display: none; }
.total b { color: var(--green); font-size: 24px; font-weight: 800; white-space: nowrap; }

.field {
  display: block;
  width: 100%;
  height: 58px;
  margin: 0 0 12px;
  padding: 0 16px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: 600 18px Arial, Helvetica, sans-serif;
}

.field::placeholder { color: #767676; font-weight: 600; }
.field:focus { outline: 2px solid var(--green-3); border-color: var(--green-3); }

.form .cta {
  width: 100%;
  margin: 8px 0 0;
}

.consent {
  margin: 14px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
  text-align: center;
}

.consent a { color: var(--green); }

/* ---- підвал ---- */
.foot {
  padding: 22px 16px 96px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.foot p { margin-bottom: 10px; }
.foot .links a { display: inline-block; margin: 0 6px 4px; color: var(--muted); }

/* ---- липка кнопка ---- */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .14);
}

.sticky[hidden] { display: none; }

.sticky__price { flex: 0 0 auto; line-height: 1.15; }
.sticky__price s { display: block; font-size: 13px; color: #888; }
.sticky__price b { font-size: 22px; color: var(--green); }

.sticky__cta {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--yellow-dark);
  color: #222;
  font: 800 17px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 340px) {
  .perks li { font-size: 12px; }
  .cta { font-size: 17px; }
  .sec h2, .why h2 { font-size: 22px; }
}
