/* ===== Палітра (змінюється тут) ===== */
:root {
  --bg: #fff7ef;
  --surface: #ffffff;
  --soft: #ffeedd;
  --ink: #1e1f24;
  --muted: #7a7470;
  --line: #f0e2d4;
  --accent: #ff6a13;
  --accent-2: #e2430b;
  --on-accent: #ffffff;
  --dark: #24262b;
  --on-dark: #ffffff;
  --glow: rgba(255, 106, 19, .45);
  --desk: #efe4d8;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--desk);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: inherit; }

.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: 84px; /* місце під нижню панель */
}
@media (min-width: 560px) {
  .page { box-shadow: 0 0 40px rgba(0, 0, 0, .08); }
}

/* ===== Верхня смужка ===== */
.topline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 10px;
  font-size: clamp(11px, 3.4vw, 13px);
  white-space: nowrap;
  font-weight: 700;
  background: var(--dark);
  color: var(--on-dark);
}
.topline b { color: var(--accent); }
.topline__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ===== Перший екран ===== */
.hero { padding: 20px 16px 8px; }
.hero__title {
  font-size: clamp(26px, 7.4vw, 34px);
  line-height: 1.12;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.hero__lead {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}
.hero__pic {
  position: relative;
  margin: 16px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.hero__pic img { width: 100%; }
.hero__pic--small { max-width: 300px; }

.badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-10deg);
  box-shadow: 0 6px 16px var(--glow);
}
.badge small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: -14px; }
.hero__pic--small .badge { width: 64px; height: 64px; font-size: 18px; }

/* ===== Ціна ===== */
.deal { margin-top: 16px; }
.deal__was {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}
.deal__was-sum { font-size: 18px; font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--accent-2); }
.deal__off {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 14px;
}
.deal__now {
  position: relative;
  margin-top: 10px;
  padding: 12px 16px 14px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent);
  box-shadow: 0 10px 26px var(--glow);
  animation: glow 2.4s ease-in-out infinite;
}
.deal__now-label {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.deal__now-sum {
  display: block;
  margin-top: 2px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
}
.deal__now-sum small { font-size: 24px; font-weight: 700; }

/* ===== Переваги ===== */
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding: 12px 14px 12px 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ===== Кнопки ===== */
.cta { padding: 20px 16px; text-align: center; }
.hero .cta { padding: 20px 0 8px; }
.cta__note { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }

.btn {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  padding: 18px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent);
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--glow);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--block { max-width: none; }
.btn--small { width: auto; padding: 12px 22px; font-size: 16px; }

/* Пульсація: легке збільшення + хвиля навколо */
.btn--pulse { animation: pulse 1.9s ease-in-out infinite; }
@keyframes pulse {
  0%   { transform: scale(1);     box-shadow: 0 6px 18px var(--glow), 0 0 0 0 var(--glow); }
  50%  { transform: scale(1.04);  box-shadow: 0 8px 22px var(--glow), 0 0 0 12px transparent; }
  100% { transform: scale(1);     box-shadow: 0 6px 18px var(--glow), 0 0 0 0 transparent; }
}
@keyframes glow {
  0%, 100% { transform: scale(1);    box-shadow: 0 10px 26px var(--glow); }
  50%      { transform: scale(1.02); box-shadow: 0 12px 34px var(--glow); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--pulse, .deal__now { animation: none; }
}

/* ===== Секції ===== */
.block { padding: 28px 16px 8px; }
.block__title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}
.block__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: var(--accent);
}

/* Відео */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.yt img, .yt iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .35);
}
.yt__play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 21px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--on-accent);
}

/* Опис */
.feature {
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.feature__body { padding: 16px; }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--ink); opacity: .85; }

.who {
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--dark);
  color: var(--on-dark);
}
.who h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; color: var(--accent); }

.wide-pic img { width: 100%; }

/* Характеристики */
.specs { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.specs div { display: flex; gap: 12px; padding: 12px 14px; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { flex: 0 0 42%; color: var(--muted); font-weight: 600; font-size: 14px; }
.specs dd { font-weight: 700; font-size: 15px; }

/* Відгуки */
.slider { position: relative; }
.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; }
.slider__nav {
  position: absolute;
  top: 160px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  opacity: .85;
  cursor: pointer;
}
.slider__nav::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  width: 10px;
  height: 10px;
  border: solid var(--on-dark);
  border-width: 0 3px 3px 0;
  transform: rotate(-45deg);
}
.slider__nav--prev { left: 6px; }
.slider__nav--prev::after { left: 17px; transform: rotate(135deg); }
.slider__nav--next { right: 6px; }
.slider__nav--next::after { left: 12px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.slider__dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer;
}
.slider__dots button.is-on { background: var(--accent); width: 26px; border-radius: 6px; }

/* Кроки */
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 14px 14px 14px 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 18px;
}
.steps b { display: block; font-size: 16px; }
.steps span { display: block; font-size: 14px; color: var(--muted); }

/* Фінальний блок */
.final {
  margin-top: 24px;
  padding: 26px 16px 24px;
  background: var(--soft);
  border-radius: 28px 28px 0 0;
}
.final__title { font-size: 24px; line-height: 1.2; font-weight: 800; text-align: center; }

.countdown { margin-top: 18px; text-align: center; }
.countdown p { font-weight: 700; margin-bottom: 8px; }
.countdown__row { display: flex; justify-content: center; gap: 8px; }
.countdown__row div {
  width: 76px;
  padding: 8px 0;
  border-radius: 12px;
  background: var(--dark);
  color: var(--on-dark);
}
.countdown__row b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__row small { font-size: 12px; opacity: .75; }

.order {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  display: grid;
  gap: 12px;
}
.order__field span { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.order__field input {
  width: 100%;
  padding: 15px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  font-size: 17px; /* ≥16px — iOS не зумить поле */
  color: var(--ink);
  outline: none;
}
.order__field input:focus { border-color: var(--accent); background: var(--surface); }
.order .btn { margin-top: 6px; }
.order__safe { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Футер */
.foot {
  padding: 22px 16px 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  display: grid;
  gap: 10px;
}
.foot__links { display: grid; gap: 4px; }

/* Нижня панель */
.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  transform: translate(-50%, 110%);
  transition: transform .3s ease;
}
.dock.is-on { transform: translate(-50%, 0); }
.dock__price { display: grid; line-height: 1.15; }
.dock__price s { font-size: 13px; color: var(--muted); }
.dock__price b { font-size: 24px; font-weight: 800; color: var(--accent-2); }
.dock__right { display: grid; justify-items: center; gap: 2px; }
.dock__timer { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Дуже вузькі екрани */
@media (max-width: 350px) {
  .deal__now-sum { font-size: 44px; }
  .btn { font-size: 17px; }
  .countdown__row div { width: 66px; }
}

/* ===== Сторінка подяки ===== */
.thanks { min-height: 100vh; padding: 48px 20px; text-align: center; }
.thanks__icon {
  width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 52px no-repeat;
  box-shadow: 0 10px 28px var(--glow);
}
.thanks__title { font-size: 30px; font-weight: 800; line-height: 1.15; }
.thanks__text { margin-top: 14px; font-size: 17px; }
.thanks__hint { margin: 16px 0 26px; padding: 14px; border-radius: 14px; background: var(--soft); font-size: 15px; font-weight: 600; }

/* ===== Юридичні сторінки ===== */
.legal { padding: 20px 18px 40px; font-size: 15px; line-height: 1.6; }
.legal h1 { font-size: 24px; line-height: 1.2; margin: 14px 0 16px; }
.legal h2 { font-size: 18px; margin: 20px 0 8px; }
.legal p { margin: 0 0 10px; }
.legal__back { font-weight: 700; color: var(--accent-2); text-decoration: none; }
.order__err { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: #d0261b; }
.order__err[hidden] { display: none; }
