:root {
  --bg: #FFF6EC;
  --bg-alt: #FDEBD6;
  --card: #FFFFFF;
  --text: #3B2416;
  --muted: #7A5A45;
  --accent: #C9561A;
  --accent-hover: #B04812;
  --accent-soft: #FBD9BE;
  --line: #EED8C2;
  --error: #B42318;
  --error-bg: #FDECEA;
  --ok: #2E7D32;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(92, 52, 22, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 720px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 246, 236, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.logo svg { color: var(--accent); }
.topbar__cta {
  font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--accent); color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 800; text-decoration: none;
  transition: background-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(201, 86, 26, .30); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: scale(.98); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.btn[disabled] { opacity: .75; cursor: progress; box-shadow: none; }

.spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { padding: 24px 0 40px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px;
  background: var(--accent-soft); color: var(--accent-hover);
  border-radius: 999px; font-weight: 700; font-size: .85rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__media { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hero__media--mobile { margin: 20px 0; }
.hero__media--desktop { display: none; }

.promo {
  position: relative; overflow: hidden;
  margin: 4px 0 18px; padding: 18px 14px 16px; border-radius: 22px;
  background: linear-gradient(135deg, #E0251B 0%, #F2541B 55%, #FF8A00 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(224, 37, 27, .45), 0 0 0 3px #FFD23F inset;
  animation: promo-glow 2.4s ease-in-out infinite;
}
/* блик, що пробігає по банеру */
.promo::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); animation: promo-shine 3.2s ease-in-out infinite; pointer-events: none;
}
.promo__head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.promo__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: #FFD23F; color: #8A1200; font-weight: 900; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  animation: promo-pulse 1.2s ease-in-out infinite;
}
.promo__badge::before { content: "🔥"; font-size: 1.05em; letter-spacing: 0; }
.promo__badge--sm { padding: 2px 10px; font-size: .78rem; animation: none; box-shadow: none; }
.promo__badge--sm::before { content: none; }
.promo__text { font-size: 1.05rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.promo__text strong { color: #FFE680; }
.countdown { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown__cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 4px 10px; border-radius: 14px;
  background: #fff; color: #C21A10;
  box-shadow: 0 6px 0 #8A1200, 0 10px 18px rgba(0, 0, 0, .25);
}
/* мигаючі двокрапки між клітинками */
.countdown__cell + .countdown__cell::before {
  content: ":"; position: absolute; left: -9px; top: 50%; transform: translateY(-62%);
  color: #fff; font-weight: 900; font-size: 1.6rem; animation: promo-blink 1s steps(1) infinite;
}
.countdown__num { font-size: 2.2rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__unit { font-size: .72rem; font-weight: 800; color: #8A1200; margin-top: 5px; text-transform: uppercase; letter-spacing: .08em; }
.countdown.is-short { grid-template-columns: repeat(3, 1fr); }
.countdown.is-short .countdown__cell:nth-child(2)::before { content: none; }

@keyframes promo-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes promo-glow {
  0%, 100% { box-shadow: 0 14px 34px rgba(224, 37, 27, .45), 0 0 0 3px #FFD23F inset; }
  50% { box-shadow: 0 14px 44px rgba(255, 120, 0, .75), 0 0 0 3px #FFF3A0 inset; }
}
@keyframes promo-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes promo-blink { 50% { opacity: 0; } }
.order__promo { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 8px 0 20px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price__value { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.price__cur { font-size: 1.3rem; font-weight: 700; }
.price-row .btn { flex: 1 1 200px; }

.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }

/* Problem → solution */
.ps { display: grid; gap: 12px; margin-top: 20px; }
.ps__card { border-radius: var(--radius); padding: 22px 20px; }
.ps__card--problem { background: var(--card); border: 1px solid var(--line); }
.ps__card--problem ul { margin: 0; padding: 0; list-style: none; }
.ps__card--problem li { position: relative; padding-left: 28px; margin: 8px 0; }
.ps__card--problem li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: #C9D6E3;
  box-shadow: inset 0 0 0 4px #E7EEF5;
}
.ps__card--solution { background: var(--accent); color: #fff; }
.ps__card--solution p { margin: 0; font-size: 1.08rem; }
.ps__label { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 6px; opacity: .8; }
.ps__arrow { display: flex; justify-content: center; color: var(--accent); }
.ps__arrow svg { width: 32px; height: 32px; }
.ps__photo { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Benefits */
.benefits { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }
.benefit h3 { margin: 12px 0 6px; font-size: 1.02rem; }
.benefit__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-hover);
}
.benefit__icon svg { width: 26px; height: 26px; }
.benefits__photo { margin: 24px 0 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.benefits__photo figcaption { padding: 12px 16px; text-align: center; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.step p { margin: 0; color: var(--muted); }
.step h3 { margin-bottom: 4px; }
.step__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.2rem;
}

/* Specs */
.specs { margin: 20px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs > div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

.warning {
  display: flex; gap: 14px; margin-top: 20px; padding: 18px;
  background: #FFF1E0; border: 2px solid #F0B77F; border-radius: var(--radius);
}
.warning > svg { flex: none; width: 28px; height: 28px; color: var(--accent-hover); }
.warning ul { margin: 6px 0 0; padding-left: 18px; }
.warning li { margin: 3px 0; }

/* FAQ */
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 18px; position: relative;
  font-weight: 700; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

/* Order */
.order { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.order__card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 24px 18px; }
.order__head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.order__head h2 { margin-bottom: 4px; font-size: 1.5rem; }
.order__thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.order__product { margin: 0; color: var(--muted); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; height: 56px; padding: 0 16px;
  font: inherit; font-size: 18px; /* ≥16px — iOS не зумить при фокусі */
  color: var(--text); background: #FFFCF8;
  border: 2px solid var(--line); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #B79C88; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201, 86, 26, .15); }
.field input[aria-invalid="true"] { border-color: var(--error); background: #FFF9F8; }
.field__error { color: var(--error); font-size: .9rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field__error:empty { display: none; }

.np { margin: 6px 0 14px; padding: 16px 14px 2px; border: 2px solid var(--line); border-radius: 16px; background: #FFFAF4; }
.np__legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 800; }
.np__legend svg { color: var(--accent); }

.toggle {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px;
  border: 2px solid var(--line); border-radius: 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, background-color .15s;
}
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track {
  flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px;
  background: #E3D3C4; transition: background-color .2s;
}
.toggle__thumb {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s;
}
.toggle input:checked + .toggle__track { background: var(--accent); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(22px); }
.toggle input:focus-visible + .toggle__track { outline: 3px solid var(--text); outline-offset: 3px; }
.toggle:has(input:checked) { border-color: var(--accent); background: #FFF3E8; }
.toggle__text { display: flex; flex-direction: column; line-height: 1.35; }
.toggle__text small { color: var(--muted); font-size: .88rem; margin-top: 2px; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__alert { background: var(--error-bg); color: var(--error); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-weight: 600; }
.form__note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

.thanks { text-align: center; padding: 24px 0 12px; outline: none; }
.thanks__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px;
  background: #E3F2E4; color: var(--ok);
}
.thanks__icon svg { width: 38px; height: 38px; }
.thanks p { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* Footer */
.footer { background: var(--text); color: #F3E3D3; padding: 40px 0 calc(96px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer a { color: #FFD0A8; }
.footer p { margin: 0 0 6px; }
.footer__grid { display: grid; gap: 20px; }
.footer__brand { font-weight: 800; font-size: 1.1rem; color: #fff; }
.footer__copy { margin-top: 24px !important; opacity: .7; font-size: .85rem; }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; padding: 0 22px; border-radius: 16px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(92, 52, 22, .35);
  transform: translateY(150%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__price { background: rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 999px; }

/* Tablet / desktop */
@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero__media--mobile { display: none; }
  .hero__media--desktop { display: block; }
  .section { padding: 80px 0; }
  .ps { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .ps__arrow svg { transform: rotate(-90deg); }
  .ps__photo { max-width: 560px; margin: 32px auto 0; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .benefit { padding: 24px; }
  .benefits__photo { max-width: 480px; margin: 32px auto 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .order__card { padding: 36px; }
  .footer { padding-bottom: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
}

@media (max-width: 359px) {
  .benefits { grid-template-columns: 1fr; }
}
