/* Форма для випічки — своя вёрстка в формате донора (какого именно — в журнале оффера).
   Колонка 480 px по центру: лендинг мобильный, на десктопе просто центрируется.
   Шрифт Rubik самохостится (src/font), внешних CDN и чужих url() нет. */

@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('../font/Rubik-400.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('../font/Rubik-500.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('../font/Rubik-700.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 800; font-display: swap; src: url('../font/Rubik-800.woff2') format('woff2'); }

:root {
  --red: #ff2e49;
  --red-dark: #d81b36;
  --blue-1: #0b0c5a;
  --blue-2: #2c2e99;
  --blue-3: #0b7def;
  --dark: #222;
  --gold: #ffd700;
  --navy: #003366;
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e6e8ef;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #eceef3;
  color: var(--ink);
  font: 400 17px/1.5 'Rubik', 'Segoe UI', Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

/* ---------- верхня плашка ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(90deg, var(--blue-1) 0%, var(--blue-2) 45%, var(--blue-3) 100%);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}
.topbar__rate { flex: 0 0 96px; text-align: center; }
.topbar__rate b { display: block; font-size: 16px; font-weight: 800; }
.topbar__stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.topbar__bought { flex: 1 1 auto; }
.topbar__bought b { font-weight: 700; }
.chip {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #ff2a2c;
  color: #fff;
  font-weight: 700;
}

/* ---------- перший екран ---------- */
.hero { padding: 18px 16px 6px; text-align: center; }
.hero__label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 18px;
  border-radius: 999px;
  background: #b5771f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}
.hero__sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}
.hero__img { margin: 14px auto 0; border-radius: 14px; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.hero__badges li {
  padding: 7px 14px;
  border: 2px solid #b5771f;
  border-radius: 999px;
  color: #8a5a15;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- ціна ---------- */
.price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 16px 6px;
  text-align: center;
}
.price__save {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.price__new { font-size: 50px; font-weight: 700; color: var(--red); text-shadow: 1px 1px 1px #424242; line-height: 1; white-space: nowrap; }
.price__old-label { color: var(--muted); font-size: 15px; }
.price__old { margin-top: 4px; font-size: 30px; font-weight: 700; color: #9aa0ab; text-decoration: line-through; white-space: nowrap; }
@media (max-width: 400px) {
  .price { gap: 14px; }
  .price__new { font-size: 42px; }
  .price__old { font-size: 26px; }
}

/* ---------- кнопка ---------- */
.button {
  position: relative;
  display: block;
  width: calc(100% - 32px);
  max-width: 400px;
  margin: 16px auto 0;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 700 20px/62px 'Rubik', Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.button:active { background: var(--red-dark); }
.button .flare {
  position: absolute;
  top: 0;
  left: -150%;
  width: 45px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .45));
  transform: skewX(-45deg);
  animation: flare 3s infinite linear;
}
@keyframes flare { 0% { left: -150%; } 60% { left: 150%; } 100% { left: 150%; } }
@media (prefers-reduced-motion: reduce) { .button .flare { animation: none; } }

.left_count { padding: 12px 16px 0; text-align: center; font-size: 16px; }
.left_count span { padding: 2px 8px; border-radius: 4px; background: #ffe8ea; color: var(--red); font-weight: 700; }
.upd { padding: 4px 16px 16px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- синій блок з картками ---------- */
.blue {
  padding: 26px 12px 30px;
  background: linear-gradient(90deg, var(--blue-1) 0%, var(--blue-2) 40%, var(--blue-3) 100%);
}
.blue .title { margin-bottom: 16px; color: #fff; }
.title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}
.card { margin: 0 8px 18px; }
.card img { border-radius: 10px 10px 0 0; }
.card__body {
  padding: 18px 18px 20px;
  border-radius: 0 0 14px 14px;
  background: #fff;
  color: #000;
}
.card--plain .card__body { border-radius: 14px; }
.card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.card p { font-size: 16px; }
.card p + p { margin-top: 8px; }

/* ---------- переваги ---------- */
.adv {
  margin: 0 8px;
  padding: 24px 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}
.adv h2 { margin-bottom: 20px; color: var(--gold); font-size: 22px; font-weight: 700; text-align: center; text-transform: uppercase; }
.adv__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 6px;
  background: #fff;
  color: #000;
}
.adv__item:last-child { margin-bottom: 0; }
.adv__item img { flex: 0 0 96px; width: 96px; border-radius: 4px; }
.adv__item h3 { margin-bottom: 5px; font-size: 17px; font-weight: 700; }
.adv__item p { font-size: 15px; line-height: 1.4; }

/* ---------- характеристики ---------- */
.specs { padding: 28px 12px 10px; }
.specs .title { color: #000; }
.specs img { margin: 16px auto 0; border-radius: 10px; }
.specs__list {
  margin-top: 18px;
  padding: 20px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
}
.specs__list li { position: relative; margin: 10px 0; padding-left: 28px; }
.specs__list li:first-child { margin-top: 0; }
.specs__list li:last-child { margin-bottom: 0; }
.specs__list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}
.specs__list li b { font-weight: 700; }

/* ---------- доставка ---------- */
.delivery { padding: 26px 16px 6px; }
.delivery .title { color: #000; margin-bottom: 18px; }
.delivery li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.delivery li img { flex: 0 0 48px; width: 48px; }
.delivery span { display: block; font-weight: 700; }
.delivery p { color: #4b5563; font-size: 15px; }

/* ---------- замовлення ---------- */
.order { padding: 24px 16px 28px; background: #f5f6fa; }
.order .title { color: #000; }
.timer { margin: 16px 0 6px; text-align: center; }
.timer p { margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.timer__row { display: flex; justify-content: center; gap: 10px; }
.timer__cell { min-width: 74px; padding: 8px 6px; border-radius: 8px; background: var(--dark); color: #fff; }
.timer__num { font-size: 28px; font-weight: 700; line-height: 1.1; }
.timer__txt { font-size: 12px; color: #d1d5db; }

.order__img { margin: 16px auto 0; border-radius: 14px; }

form { margin-top: 18px; }
fieldset { margin: 0 0 16px; padding: 0; border: 0; }
legend { display: block; width: 100%; margin-bottom: 10px; font-size: 17px; font-weight: 700; text-align: center; }
.opt { display: block; margin-bottom: 10px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.opt input:checked + .opt__card { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 46, 73, .12); }
.opt input:focus-visible + .opt__card { outline: 2px solid var(--blue-3); outline-offset: 2px; }
.opt__mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #c4c9d4;
  border-radius: 50%;
}
.opt input:checked + .opt__card .opt__mark { border-color: var(--red); background: radial-gradient(var(--red) 45%, #fff 48%); }
.opt__text { flex: 1 1 auto; }
.opt__name { display: block; font-weight: 700; }
.opt__sub { display: block; color: var(--muted); font-size: 14px; }
.opt__price { text-align: right; white-space: nowrap; }
.opt__price b { display: block; font-size: 19px; font-weight: 700; color: var(--red); }
.opt__price s { color: var(--muted); font-size: 14px; }

.field {
  display: block;
  width: 100%;
  height: 58px;
  margin-bottom: 10px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.4 'Rubik', Arial, sans-serif;
}
.field::placeholder { color: #9aa0ab; }
.field:focus { border-color: var(--blue-3); outline: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.consent { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.consent a { text-decoration: underline; }

/* ---------- підвал ---------- */
.footer { padding: 22px 16px 30px; background: #fff; color: #4b5563; font-size: 13px; line-height: 1.6; text-align: center; }
.footer a { color: inherit; }
.footer p + p { margin-top: 10px; }

/* ---------- правові сторінки ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 18px 48px; background: #fff; }
.doc h1 { margin-bottom: 16px; font-size: 26px; font-weight: 800; }
.doc h2 { margin: 22px 0 8px; font-size: 19px; font-weight: 700; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0 20px; list-style: disc; }
.doc li { margin-bottom: 6px; }
.doc .back { display: inline-block; margin-top: 24px; font-weight: 700; }
