/* =========================================================
   ТОВАРНЫЙ ЛЕНДИНГ — стиль «яркая товарка»
   Правьте переменные ниже, чтобы перекрасить весь сайт.
   ========================================================= */

:root {
  --accent:        #ff5a1f;   /* основной цвет */
  --accent-2:      #ff2d55;   /* второй цвет градиента кнопок */
  --accent-dark:   #e14710;
  --accent-soft:   #fff1ec;   /* светлая подложка акцента */
  --accent-bright: var(--accent);  /* яркий акцент для иконок (в тёмной теме ярче) */
  --accent-rgb:    255, 90, 31;    /* акцент в R,G,B — для тени кнопок под цвет */
  --accent-grad:   linear-gradient(90deg, #ff6a2b 0%, #ff2d55 100%);
  --yellow:        #ffd23f;   /* бейджи/акценты срочности */
  --yellow-soft:   #ffe9a8;
  --yellow-ink:    #7a4e00;
  --ok:            #16a34a;   /* зелёный — цена/успех */
  --old:           #9ca3af;   /* зачёркнутая цена */
  --ink:           #1c1c1e;   /* основной текст */
  --ink-soft:      #5b5b60;   /* второстепенный текст */
  --line:          #ececec;   /* границы */
  --bg:            #f4f4f5;   /* фон страницы */
  --card:          #ffffff;   /* фон карточек */
  --card-2:        #fbfaf9;   /* фон чётных секций */
  --input-bg:      #ffffff;   /* фон полей/кнопок выбора */
  --save-bg:       #eafaf0;   /* плашка «экономия» */
  /* фон героя (переопределяется темой в render.js) */
  --hero-grad:     radial-gradient(60% 40% at 15% 0%, rgba(255,210,63,.28), transparent 60%),
                   radial-gradient(70% 50% at 100% 10%, rgba(255,45,85,.14), transparent 60%),
                   linear-gradient(180deg, #fff7f2 0%, #ffffff 70%);
  --radius:        14px;
  --maxw:          520px;     /* ширина «телефона» на десктопе */
  --shadow:        0 6px 24px rgba(0,0,0,.08);
  --shadow-lg:     0 14px 40px rgba(var(--accent-rgb), .22);
  --font:          system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;         /* место под липкую кнопку на мобиле */
  overflow-x: hidden;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* иконки */
.ico {
  width: 1.3em; height: 1.3em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.28em; flex: 0 0 auto;
}

/* секции */
.section { padding: 40px 0; background: var(--card); position: relative; }
.section:nth-of-type(even) { background: var(--card-2); }
.section__eyebrow {
  text-align: center; color: var(--accent);
  font-weight: 700; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 6px;
}
.section__title {
  font-size: 24px; font-weight: 800;
  text-align: center; line-height: 1.2;
  margin-bottom: 24px;
}
.section__title::after {
  content: ""; display: block; width: 54px; height: 4px;
  background: var(--accent-grad); border-radius: 99px; margin: 12px auto 0;
}

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border: none; cursor: pointer; font-family: inherit; font-weight: 800;
  border-radius: var(--radius); transition: transform .06s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--cta {
  background: var(--accent-grad); color: #fff;
  font-size: 17px; padding: 16px 28px; letter-spacing: .2px;
  box-shadow: var(--shadow-lg);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn--cta:hover { filter: brightness(1.06); }
.btn--full { width: 100%; display: block; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(var(--accent-rgb), .3); }
  50%      { box-shadow: 0 12px 34px rgba(var(--accent-rgb), .55); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 22px 0 38px; text-align: center;
  background: var(--hero-grad);
}
.hero__badge {
  display: inline-block; background: var(--yellow); color: var(--yellow-ink);
  font-weight: 800; font-size: 13px; padding: 7px 16px; border-radius: 99px;
  margin-bottom: 14px; box-shadow: 0 4px 12px rgba(255,210,63,.5);
}
.hero__title { font-size: 27px; font-weight: 800; line-height: 1.18; margin-bottom: 12px; }
.hero__title span { color: var(--accent); }

.hero__rating {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-soft); margin-bottom: 18px;
}
.hero__rating b { color: var(--ink); }
.hero__rating-count { color: var(--ink-soft); }

.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.hero__media-tag {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.72); color: #fff; backdrop-filter: blur(4px);
  font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 99px;
}
.hero__media-tag .ico { width: 15px; height: 15px; color: var(--yellow); }

.hero__bullets { list-style: none; text-align: left; max-width: 360px; margin: 0 auto 20px; }
.hero__bullets li {
  position: relative; padding: 8px 0 8px 32px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.hero__bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: #fff; background: var(--ok); width: 21px; height: 21px; border-radius: 50%;
  font-size: 12px; line-height: 21px; text-align: center; font-weight: 700;
}

/* ---------- ЦЕНА ---------- */
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.price--center { margin: 4px 0 6px; }
.price__old { color: var(--old); text-decoration: line-through; font-size: 18px; }
.price__new { color: var(--ok); font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.price__off { background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 8px; }
.price__save {
  display: inline-block; background: var(--save-bg); color: var(--ok);
  font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 99px; margin-bottom: 18px;
}
.price__save b { font-weight: 800; }

/* ---------- ТАЙМЕР ---------- */
.timer { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 8px; background: #17171a; color: #fff; padding: 16px 22px; border-radius: var(--radius); margin-top: 22px; }
.timer:not(.timer--compact) .timer__clock { width: 100%; justify-content: center; gap: 12px; }
.timer__label { font-size: 13px; opacity: .85; }
.timer__clock { display: flex; align-items: center; gap: 8px; }
.timer__seg { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.timer__seg b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; background: #2a2a2e; border-radius: 8px; padding: 4px 8px; min-width: 44px; }
.timer__seg i { font-style: normal; font-size: 11px; opacity: .7; margin-top: 4px; }
.timer__colon { font-size: 24px; font-weight: 700; opacity: .5; }
.timer--compact { display: flex; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; margin: 4px 0 18px; }
.timer__inline { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; color: var(--yellow); }

/* ---------- ПОЛОСА ДОВЕРИЯ ---------- */
.trustband { background: var(--accent-soft); padding: 20px 0; }
.trustband__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.tb { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.tb__ico { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--card); color: var(--accent); box-shadow: 0 3px 10px rgba(0,0,0,.12); margin-bottom: 4px; }
/* цвет иконки задаём прямо на .ico — иначе его перебивает .tb span (подпись) */
.tb__ico .ico { width: 22px; height: 22px; color: var(--accent-bright); }
.tb b { font-size: 13.5px; }
.tb span { font-size: 12px; color: var(--ink-soft); }

/* ---------- ВЫГОДЫ ---------- */
.benefits__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit__icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin: 0 auto 12px; background: var(--accent-soft); color: var(--accent-bright); border-radius: 14px; }
.benefit__icon .ico { width: 26px; height: 26px; }
.benefit h3 { font-size: 15px; margin-bottom: 6px; }
.benefit p { font-size: 13px; color: var(--ink-soft); }

/* ---------- ОПИС / ЯК ЦЕ ПРАЦЮЄ ---------- */
.descr { overflow-x: hidden; }
.descr__row { margin-bottom: 30px; }
.descr__text { text-align: center; margin-bottom: 14px; }
.descr__text h3 { font-size: 20px; margin-bottom: 8px; }
.descr__text p { font-size: 15px; color: var(--ink-soft); }
.descr__media img {
  width: calc(100% + 32px); max-width: none; margin-left: -16px;
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; display: block;
}
.descr .btn--cta { display: block; margin: 14px auto 0; max-width: 340px; }

/* ---------- ХАРАКТЕРИСТИКИ ---------- */
.specs__list { list-style: none; max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; box-shadow: var(--shadow); }
.specs__list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs__list li:last-child { border-bottom: none; }
.specs__list span { color: var(--ink-soft); }
.specs__list b { text-align: right; }

/* ---------- ОТЗЫВЫ ---------- */
.reviews__rating { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stars { color: #ffb400; letter-spacing: 2px; }
.stars--sm { font-size: 13px; letter-spacing: 1px; }
.reviews__score { font-weight: 800; }
.reviews__note { color: var(--ink-soft); font-size: 14px; width: 100%; text-align: center; }

.slider { position: relative; }
.slider__viewport { overflow: hidden; transition: height .3s ease; }
.slider__track { display: flex; align-items: flex-start; transition: transform .35s ease; }
.slider__slide { flex: 0 0 100%; padding: 4px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--line); flex: 0 0 auto; }
.review__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review__name { font-size: 15px; }
.review__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ok); font-weight: 600; margin-top: 1px; }
.review__verified .ico { width: 14px; height: 14px; }
.review__text { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.review__photo { width: 100%; border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.slider__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); flex: 0 0 auto; }
.slider__nav:hover { background: var(--card-2); }
.slider__dots { display: flex; justify-content: center; gap: 7px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.slider__dots button.is-active { background: var(--accent); width: 22px; border-radius: 4px; }
.reviews .btn--cta { display: block; margin: 22px auto 0; max-width: 340px; }

/* ---------- КАК ЗАКАЗАТЬ ---------- */
.howto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.step { text-align: center; }
.step__num { width: 46px; height: 46px; margin: 0 auto 10px; background: var(--accent-grad); color: #fff; border-radius: 50%; font-size: 20px; font-weight: 800; line-height: 46px; box-shadow: 0 6px 16px rgba(var(--accent-rgb), .35); }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-soft); }

/* ---------- ФОРМА ЗАКАЗА ---------- */
.order { background: var(--accent-soft); }
.order__card { background: var(--card); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.12); padding: 24px 18px; max-width: 440px; margin: 0 auto; border-top: 4px solid transparent; border-image: var(--accent-grad) 1; }
.qty { margin-bottom: 18px; }
.qty__label, .bumps__label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.qty__opts { display: flex; flex-direction: column; gap: 10px; }
.qty__btn { border: 2px solid var(--line); background: var(--input-bg); color: var(--ink); border-radius: 10px; padding: 13px 14px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; text-align: left; transition: border-color .12s ease, background .12s ease; }
.qty__btn s { color: var(--old); font-weight: 600; float: right; }
.qty__btn.is-active { border-color: var(--accent); background: var(--accent-soft); }

.bumps { margin-bottom: 18px; }
.bump { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.bump input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.bump__text { font-size: 14px; }
.bump__text s { color: var(--old); }
.bump__text b { color: var(--ok); }

.form { margin-top: 4px; }
.form__field { margin-bottom: 12px; }
.form input { width: 100%; font-family: inherit; font-size: 16px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: var(--input-bg); color: var(--ink); transition: border-color .12s ease; }
.form input:focus { outline: none; border-color: var(--accent); }
.form input.is-invalid { border-color: #e11d48; }
.form__error { color: #e11d48; font-size: 12px; display: block; margin-top: 4px; min-height: 14px; }
.form__hint { text-align: center; font-size: 11px; color: var(--ink-soft); margin-top: 10px; }

.form__done { text-align: center; padding: 20px 0; }
.form__done-ico { width: 62px; height: 62px; margin: 0 auto 14px; background: var(--ok); color: #fff; border-radius: 50%; font-size: 32px; line-height: 62px; font-weight: 700; }
.form__done h3 { font-size: 20px; margin-bottom: 8px; }
.form__done p { color: var(--ink-soft); }

.order__trust { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 16px; }

/* ---------- ФУТЕР ---------- */
.footer { background: #17171a; color: #b8b8bf; padding: 30px 0; text-align: center; font-size: 13px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 16px; }
.footer__links a { color: #d4d4dc; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__req { line-height: 1.7; margin-bottom: 12px; }
.footer__copy { opacity: .6; }

/* ---------- ЛИПКАЯ КНОПКА (моб.) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; }
.sticky-cta .btn--cta { animation: none; padding: 14px; font-size: 16px; }

/* заглушки «битых» картинок */
img.is-placeholder { background: repeating-linear-gradient(45deg, #f0f0f0 0 12px, #e9e9e9 12px 24px); }

/* ---------- ПРОКЛАДКА (pre.html) ---------- */
.pre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--hero-grad); }
.pre__card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 34px 24px; max-width: 380px; width: 100%; text-align: center; }
.pre__logo { max-width: 130px; max-height: 130px; margin: 0 auto 18px; object-fit: contain; }
.pre__title { font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; color: var(--ink); }
.pre__sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.pre .btn--cta { display: block; width: 100%; font-size: 18px; padding: 17px; }
/* блок «ваши данные» на странице благодарности */
.thanks-data { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }
.thanks-data__title { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.thanks-data > div:not(.thanks-data__title) { font-size: 15px; margin: 3px 0; }
.thanks-hint { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- АНИМАЦИИ ПРИ СКРОЛЛЕ ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
/* стаггер внутри сеток */
.benefits__grid .benefit:nth-child(2), .howto__grid .step:nth-child(2) { transition-delay: .07s; }
.benefits__grid .benefit:nth-child(3), .howto__grid .step:nth-child(3) { transition-delay: .14s; }
.benefits__grid .benefit:nth-child(4), .howto__grid .step:nth-child(4) { transition-delay: .21s; }
.benefits__grid .benefit:nth-child(5) { transition-delay: .28s; }
.benefits__grid .benefit:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--cta { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ========================= ДЕСКТОП ========================= */
@media (min-width: 640px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .hero__title { font-size: 32px; }
  .benefits__grid { grid-template-columns: 1fr 1fr 1fr; }
  .howto__grid { grid-template-columns: repeat(4, 1fr); }
  .trustband__grid { grid-template-columns: repeat(4, 1fr); }
}
