/* =========================================================
   Дельта — одностраничный сайт
   1. Токены          7. Калькулятор     13. Отзывы
   2. База            8. Шаги            14. FAQ
   3. Утилиты         9. Магазины        15. Финальный CTA
   4. Кнопки         10. Категории       16. Подвал
   5. Шапка          11. Кейс            17. Модальное окно
   6. Герой          12. Бренды          18. Анимация и адаптив
   ========================================================= */

/* ---------------- 1. токены ---------------- */
:root {
  color-scheme: light;
  /* поверхности */
  --ink:      #f3f6f8;
  --ink-1:    #e8eef2;
  --ink-2:    #ffffff;
  --ink-3:    #f7fafb;
  --veil:     243, 246, 248;
  --fade:     255, 255, 255;
  --line:     rgba(16, 36, 48, .08);
  --line-2:   rgba(16, 36, 48, .14);
  --wash:     rgba(16, 36, 48, .04);
  --head-stuck: rgba(255, 255, 255, .88);
  --nav-sheet:  rgba(255, 255, 255, .98);
  --strike:     rgba(16, 36, 48, .35);
  --theme:      #f3f6f8;

  /* текст */
  --fg:       #102028;
  --fg-2:     #4d606c;
  --fg-3:     #6b7c87;

  /* акцент */
  --br:       #0b9f54;
  --br-hi:    #14c46a;
  --br-lo:    #087a41;
  --on-br:    #042810;

  /* шрифты */
  --f-display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --f-text:    "Golos Text", "Segoe UI", system-ui, sans-serif;

  /* типографическая шкала */
  --t-h1:    clamp(2.5rem, 5.4vw, 4.5rem);
  --t-h2:    clamp(1.9rem, 3.4vw, 3.25rem);
  --t-h3:    clamp(1.15rem, 1.35vw, 1.4rem);
  --t-lead:  clamp(1.02rem, 1.15vw, 1.28rem);
  --t-body:  1rem;
  --t-sm:    .925rem;
  --t-xs:    .8rem;

  /* геометрия */
  --shell:   1240px;
  --gutter:  clamp(20px, 4.2vw, 44px);
  --sec:     clamp(72px, 9vw, 132px);
  --r-sm:    10px;
  --r:       16px;
  --r-lg:    24px;
  --r-xl:    32px;

  /* тени */
  --sh:    0 18px 48px -24px rgba(16, 36, 48, .18);
  --sh-lg: 0 28px 64px -28px rgba(16, 36, 48, .22);
  --glow:  0 12px 36px -10px rgba(11, 159, 84, .32);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink:      #02090e;
  --ink-1:    #050d13;
  --ink-2:    #08131a;
  --ink-3:    #0c1a23;
  --veil:     2, 9, 14;
  --fade:     8, 19, 26;
  --line:     rgba(255, 255, 255, .07);
  --line-2:   rgba(255, 255, 255, .13);
  --wash:     rgba(255, 255, 255, .04);
  --head-stuck: rgba(3, 11, 16, .82);
  --nav-sheet:  rgba(3, 11, 16, .97);
  --strike:     rgba(255, 255, 255, .45);
  --theme:      #02090e;
  --fg:       #eef3f6;
  --fg-2:     #9aa7b1;
  --fg-3:     #6d7a85;
  --br:       #1ef08a;
  --br-hi:    #62ffbb;
  --br-lo:    #07b563;
  --on-br:    #022615;
  --sh:    0 24px 60px -28px rgba(0, 0, 0, .9);
  --sh-lg: 0 40px 100px -40px rgba(0, 0, 0, .95);
  --glow:  0 12px 44px -10px rgba(30, 240, 138, .5);
}

/* ---------------- 2. база ---------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(96px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; }

table { border-collapse: collapse; width: 100%; }

s { text-decoration-color: var(--strike); }

::selection { background: rgba(30, 240, 138, .28); }

:focus-visible { outline: 2px solid var(--br); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------- 3. утилиты ---------------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; z-index: 90; top: 12px; left: 12px;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--br); color: var(--on-br); font-weight: 600;
}

.i { width: 1.25em; height: 1.25em; fill: none; }

.grad {
  background: linear-gradient(94deg, var(--br-hi), var(--br) 42%, var(--br-lo));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--br);
}

.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--br); box-shadow: 0 0 0 4px rgba(30, 240, 138, .16);
}

.h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -.03em; }

.lead { font-size: var(--t-lead); line-height: 1.58; color: var(--fg-2); }

/* ритм: каждая секция задаёт только верхний отступ — между соседними
   секциями получается ровно --sec, без сложения полей */
.sec { padding-top: var(--sec); }
.sec--tight { padding-top: calc(var(--sec) * .68); }
#faq { padding-bottom: var(--sec); }

.sec__head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 64px); }
.sec__head .eyebrow { margin-bottom: 18px; }
.sec__head .lead { margin-top: 20px; }

.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); color: var(--fg-2); }
.ticks .i { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--br); }

/* ---------------- 4. кнопки ---------------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  background: linear-gradient(180deg, var(--br-hi), var(--br) 48%, #0fd07c);
  color: var(--on-br);
  box-shadow: var(--glow);
  transition: transform .18s, box-shadow .25s, filter .2s;
}

.btn .i { width: 18px; height: 18px; transition: transform .22s; }

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(30, 240, 138, .62); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--lg { --h: 62px; padding: 0 34px; font-size: 1.02rem; }
.btn--sm { --h: 44px; padding: 0 20px; font-size: .875rem; }
.btn--full { width: 100%; }

.btn--ghost {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  color: var(--fg);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink-1); border-color: rgba(16, 36, 48, .22); box-shadow: none; }
.btn--ghost .i { color: var(--br); }

/* ---------------- 5. шапка ---------------- */
.head {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  background: var(--ink);
  transition: background .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
}

.head.is-stuck {
  background: var(--head-stuck);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.head__in { display: flex; align-items: center; gap: 18px; height: 84px; min-width: 0; transition: height .3s; }
.head.is-stuck .head__in { height: 70px; }

.logo { display: flex; align-items: center; gap: 14px; flex: none; min-width: 0; }
.logo__mark { width: 30px; height: 26px; }
.logo__name { font-family: var(--f-display); font-size: 1.32rem; font-weight: 800; letter-spacing: .12em; }
.logo__tag {
  display: none;
}

.nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; }

.nav-cta { display: none; }

.head.is-open .nav-cta {
  display: flex; align-items: center; justify-content: center;
  margin-top: 6px;
}
.head.is-open .nav-cta--btn {
  margin-top: 10px;
  height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--br); color: var(--on-br);
  font-family: var(--f-display); font-weight: 700;
}

.nav a {
  position: relative; padding: 9px 11px; border-radius: 999px;
  font-size: var(--t-sm); white-space: nowrap; color: var(--fg-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--fg); background: var(--wash); }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--br);
}

.head__act { display: flex; align-items: center; gap: 10px; flex: none; z-index: 1; }

/* ---------------- 20. бургер и переключатель темы — базовые правила (возвращены 21.10: были удалены при чистке CSS; бургер по умолчанию скрыт, один значок текущей темы) — ДО адаптива, иначе display:none перебьёт медиаправило ---------------- */
.burger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--ink-2); color: var(--fg);
  place-items: center; cursor: pointer;
}
.burger .i { width: 22px; height: 22px; }

.theme {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--ink-2); color: var(--fg);
  cursor: pointer;
}
.theme .i { width: 20px; height: 20px; }
.theme .i-sun { display: none; }
html[data-theme="dark"] .theme .i-sun { display: block; }
html[data-theme="dark"] .theme .i-moon { display: none; }

/* ---------------- 6. герой ---------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero__art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 66%; }

.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; }

.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 2%, rgba(var(--veil), .92) 20%, rgba(var(--veil), .5) 42%, rgba(var(--veil), .12) 68%, rgba(var(--veil), .4) 100%),
    linear-gradient(0deg, var(--ink) 1%, rgba(var(--veil), .55) 14%, transparent 42%),
    linear-gradient(180deg, rgba(var(--veil), .75) 0%, transparent 22%);
}

.hero__in {
  --pad-b: clamp(28px, 4.5vh, 56px);
  --head-h: 84px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 300px);
  justify-content: space-between;
  align-items: center;
  align-content: center;
  column-gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(20px, 3.5vh, 48px);
  padding-bottom: var(--pad-b);
  min-height: calc(100svh - var(--head-h));
  min-width: 0;
}
.hero__copy { min-width: 0; max-width: 760px; }

.hero__h1 {
  margin-top: 26px;
  font-size: var(--t-h1); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
}

.hero__lead { max-width: 30em; margin-top: 26px; font-size: var(--t-lead); line-height: 1.6; color: var(--fg-2); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__proof {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  width: fit-content; max-width: 100%;
  margin-top: 22px; padding: 10px 16px 10px 14px;
  border: 1px solid rgba(245, 179, 1, .35);
  border-radius: 16px;
  background: rgba(245, 179, 1, .08);
  color: var(--fg-2);
  font-size: var(--t-sm); line-height: 1.35;
  text-decoration: none;
}
.hero__proof[hidden] { display: none !important; }
.hero__proof-stars { color: #f5b301; letter-spacing: 1px; font-size: .95rem; }
.hero__proof-score { font: 800 1rem var(--f-display); color: var(--fg); letter-spacing: -.02em; }
.hero__proof:hover { border-color: rgba(245, 179, 1, .6); color: var(--fg); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(44px, 5vw, 66px);
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero__facts dt {
  font-family: var(--f-display); font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 800;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.hero__facts dd { margin-top: 4px; font-size: var(--t-sm); color: var(--fg-3); }

.hero__card {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 300px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--ink-2);
  box-shadow: var(--sh-lg);
}

.hero__card-top {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3);
}
.hero__card-top .i { width: 16px; height: 16px; color: var(--br); }

.hero__card-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-top: 13px; font-size: var(--t-sm); color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.hero__card-row s { color: var(--fg-2); }
.hero__card-row--main b {
  font-family: var(--f-display); font-size: 1.62rem; font-weight: 800; letter-spacing: -.03em; color: var(--fg);
}

.hero__card-save {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px; padding: 10px 14px;
  border-radius: 999px; background: rgba(30, 240, 138, .1);
  font-size: var(--t-sm); font-weight: 600; color: var(--br);
}
.hero__card-save .i { width: 16px; height: 16px; }

/* ---------------- 12. бренды ---------------- */
.brands { border-block: 1px solid var(--line); background: var(--ink-1); }

.brands__in {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-block: 26px;
}

.brands__note {
  flex: none; font-size: var(--t-xs); line-height: 1.5;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3);
}

.brands__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 28px;
  font-family: var(--f-display); font-size: clamp(.9rem, 1.2vw, 1.15rem); font-weight: 600;
  letter-spacing: .02em; color: #55636d;
  min-width: 0;
}
.brands__list li { transition: color .25s; }
.brands__list li:hover { color: var(--fg-2); }

/* ---------------- карточки «почему» ---------------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  position: relative; padding: 30px 26px 32px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2) 70%);
  transition: border-color .28s, transform .28s;
}
.card:hover { border-color: rgba(30, 240, 138, .35); transform: translateY(-4px); }

.card__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 24px;
  border: 1px solid rgba(30, 240, 138, .28); border-radius: 15px;
  background: rgba(30, 240, 138, .07);
  color: var(--br);
}
.card__ico .i { width: 24px; height: 24px; }

.card h3 { font-size: var(--t-h3); margin-bottom: 10px; }
.card p { font-size: var(--t-sm); color: var(--fg-2); }

/* ---------------- 8. шаги ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 34px); }

.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); }

.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 34%; height: 2px;
  background: var(--br); box-shadow: 0 0 14px rgba(30, 240, 138, .7);
}

.step__num {
  font-family: var(--f-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .18em; color: var(--br);
}

.step__ico {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 20px 0 22px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--ink-2); color: var(--br);
  transition: border-color .28s, background .28s;
}
.step__ico .i { width: 25px; height: 25px; }
.step:hover .step__ico { border-color: rgba(30, 240, 138, .5); background: rgba(30, 240, 138, .08); }

.step h3 { font-size: var(--t-h3); margin-bottom: 10px; }
.step p { font-size: var(--t-sm); color: var(--fg-2); }

/* ---------------- 9. магазины ---------------- */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 0; }

.store {
  --shot: 200px;
  display: flex; flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: var(--ink-2);
}

.store--a { border-color: rgba(30, 240, 138, .5); box-shadow: 0 0 0 1px rgba(30, 240, 138, .1), var(--sh-lg); }
.store--b { box-shadow: var(--sh); }

.store__img {
  display: block; flex: none;
  width: 100%; height: var(--shot);
  object-fit: cover;
}

.store::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0;
  height: var(--shot); pointer-events: none;
  background: linear-gradient(to top, var(--ink-2) 0%, rgba(var(--fade), 0) 48%);
}

.store__body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; flex: 1;
  padding: 22px 22px 24px;
  background: var(--ink-2);
}
.store__body .btn { margin-top: auto; }

.store__brand { display: flex; align-items: center; gap: 14px; min-height: 48px; margin-bottom: 16px; }

.mark-a { display: block; width: 46px; }
.mark-a__txt { font-family: var(--f-display); line-height: 1; }
.mark-a__txt b { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: .01em; }
.mark-a__txt i { display: block; margin-top: 3px; font-size: 1.28rem; font-weight: 800; font-style: normal; color: #ffba00; }

.mark-b {
  font-family: var(--f-display); font-size: 2.05rem; font-weight: 800; font-style: italic;
  letter-spacing: -.02em; text-transform: uppercase; color: #ff2a20;
  text-shadow: 0 2px 20px rgba(255, 42, 32, .45);
}

.store__title { font-size: clamp(1.28rem, 1.7vw, 1.62rem); max-width: 19em; margin-bottom: 16px; color: var(--fg); }

.store__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.store__tags li {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--wash);
  font-size: var(--t-xs); color: var(--fg-2);
}

.store__meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: var(--t-sm); font-weight: 600; color: var(--br);
}
.store__meta .i { width: 17px; height: 17px; }

/* ---------------- 10. категории ---------------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.cat {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  isolation: isolate;
  background: var(--ink-1);
}

.cat img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.cat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(16, 24, 32, .9) 4%, rgba(16, 24, 32, .5) 28%, transparent 62%);
}

.cat__body {
  position: absolute; z-index: 1; inset: auto 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px clamp(18px, 1.8vw, 26px);
  color: #fff;
}
.cat__body b { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.cat__body i {
  flex: none; padding: 6px 12px; border-radius: 999px;
  background: rgba(30, 240, 138, .14); border: 1px solid rgba(30, 240, 138, .3);
  font-size: var(--t-xs); font-style: normal; font-weight: 600; color: var(--br);
}

/* ---------------- 11. кейс ---------------- */
.case { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }

.case__txt .eyebrow { margin-bottom: 18px; }
.case__txt .lead { margin-top: 20px; }

.bill {
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: linear-gradient(170deg, var(--ink-3), var(--ink-1));
  box-shadow: var(--sh-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bill table { width: max(100%, 32rem); }
.bill th, .bill td { padding: 15px 0; text-align: right; font-variant-numeric: tabular-nums; }
.bill thead th, .bill td { white-space: nowrap; }
.bill thead th {
  font-family: var(--f-display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.bill thead th:first-child { text-align: left; }
.bill tbody th, .bill tfoot th { text-align: left; font-weight: 500; font-size: var(--t-sm); color: var(--fg-2); padding-right: 16px; }
.bill tbody tr { border-bottom: 1px solid var(--line); }
.bill tbody td { font-size: var(--t-sm); font-family: var(--f-display); }
.bill tbody td:last-child { color: var(--fg); font-weight: 600; }
.bill td s { color: var(--fg-3); }

.bill tfoot th, .bill tfoot td { padding-top: 20px; font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; }
.bill tfoot th { font-size: var(--t-sm); color: var(--fg); }
.bill tfoot td { font-size: 1.16rem; }
.bill tfoot td:last-child { color: var(--br); }

.bill__sum {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 20px;
  margin-top: 24px; padding: 18px 22px;
  border-radius: var(--r); background: rgba(30, 240, 138, .1);
  border: 1px solid rgba(30, 240, 138, .22);
}
.bill__sum span {
  grid-row: 1 / 3; align-self: center;
  font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2);
}
.bill__sum b {
  font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1; color: var(--br); text-align: right;
  font-variant-numeric: tabular-nums;
}
.bill__sum i { font-size: var(--t-xs); font-style: normal; color: var(--fg-3); text-align: right; }

/* ---------------- 13. отзывы с Авито ---------------- */
.revs { display: none; }

#reviews { scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px)); }
.sec--band {
  background: var(--ink-1);
  border-block: 1px solid var(--line);
}

.rev-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.rev__card { min-width: 0; height: 100%; }
.rev__card--lead { grid-column: 1 / -1; }
@media (min-width: 981px) {
  .rev__card--lead { grid-column: span 2; }
}
.rev__card a {
  display: flex; flex-direction: column; height: 100%; padding: 26px 24px 24px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--ink-2);
  box-shadow: var(--sh);
}
.rev__card--lead a { padding: 32px 30px 28px; }
.rev__card--lead .rev__text {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55;
  -webkit-line-clamp: 8; line-clamp: 8;
}
.rev__card a:hover { border-color: rgba(30, 240, 138, .4); }
.rev__card a:hover .rev__go { color: var(--br); }
.rev__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: var(--t-xs); color: var(--fg-3); }
.rev__stars { color: #f5b301; letter-spacing: 2px; font-size: 1rem; flex: none; }
.rev__text {
  flex: 1; font-size: var(--t-sm); line-height: 1.6; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.rev__who { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: var(--t-xs); color: var(--fg-3); min-width: 0; }
.rev__who b { font-size: var(--t-sm); color: var(--fg); }
.rev__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev__go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: var(--t-xs); font-weight: 600; color: var(--fg-2); transition: color .2s;
}
.rev__go .i { width: 14px; height: 14px; }
.rev__more { margin-top: 28px; text-align: center; }
.rev__total {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 18px; font-size: var(--t-sm); color: var(--fg-3);
}
.rev__score { font: 800 1.35rem var(--f-display); color: var(--br); letter-spacing: -.02em; }

/* ---------------- 14. FAQ ---------------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }

.faq__head { position: sticky; top: 120px; }
.faq__head .eyebrow { margin-bottom: 18px; }
.faq__head .lead { margin-top: 20px; margin-bottom: 28px; }

.acc { border-top: 1px solid var(--line); }

.acc__item { border-bottom: 1px solid var(--line); }

.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 24px 4px; border: 0; background: none; cursor: pointer;
  text-align: left;
  font-family: var(--f-display); font-size: clamp(1.02rem, 1.25vw, 1.2rem); font-weight: 600;
  letter-spacing: -.015em; color: var(--fg);
  transition: color .2s;
}
.acc__btn:hover { color: var(--br); }
.acc__btn .i { flex: none; width: 20px; height: 20px; color: var(--fg-3); transition: rotate .3s, color .2s; }
.acc__item.is-open .acc__btn .i { rotate: 180deg; color: var(--br); }

.acc__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s cubic-bezier(.3, .7, .2, 1);
}
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; min-height: 0; }
.acc__body p { padding: 0 44px 26px 4px; font-size: var(--t-sm); line-height: 1.68; color: var(--fg-2); }

/* ---------------- 15. финальный CTA ---------------- */
.final { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); }

.final__img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

.final::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 14%, rgba(var(--veil), .9) 46%, rgba(var(--veil), .55) 100%),
    linear-gradient(0deg, var(--ink) 2%, transparent 44%);
}

.final__in { padding: clamp(72px, 8vw, 128px) var(--gutter); max-width: var(--shell); }
.final__in h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -.03em; max-width: 16em; }
.final__in > p { max-width: 34em; margin-top: 22px; font-size: var(--t-lead); line-height: 1.58; color: var(--fg-2); }

.final__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.final__note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: var(--t-xs); color: var(--fg-3); }
.final__note .i { width: 16px; height: 16px; color: var(--br); }

/* ---------------- 16. подвал ---------------- */
.foot { background: var(--ink-1); border-top: 1px solid var(--line); }

.foot__in {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 60px);
  padding-top: clamp(52px, 6vw, 84px); padding-bottom: clamp(40px, 4vw, 56px);
}

.foot__brand p { margin-top: 20px; max-width: 30em; font-size: var(--t-sm); color: var(--fg-3); }

.foot__soc { display: flex; gap: 10px; margin-top: 24px; }
.foot__soc a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-2); border-radius: 12px; color: var(--fg-2);
  transition: color .2s, border-color .2s, background .2s;
}
.foot__soc a:hover { color: var(--br); border-color: rgba(30, 240, 138, .45); background: rgba(30, 240, 138, .07); }
.foot__soc .i { width: 20px; height: 20px; }

.foot__col h3 {
  margin-bottom: 20px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3);
}
.foot__col li + li { margin-top: 13px; }
.foot__col a, .foot__col span {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--t-sm); color: var(--fg-2); transition: color .2s;
  overflow-wrap: anywhere;
}
.foot__col a:hover { color: var(--br); }
.foot__col .i { flex: none; width: 16px; height: 16px; color: var(--fg-3); }

.foot__bot {
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between;
  padding-top: 26px; padding-bottom: 34px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs); line-height: 1.6; color: var(--fg-3);
}
.foot__bot p:last-child { max-width: 46em; }

/* ---------------- 18. анимация появления ---------------- */
[data-reveal] { opacity: 0; }

.is-in[data-reveal] {
  opacity: 1;
  transition: opacity .55s ease;
  transition-delay: var(--d, 0ms);
}

body.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero__in { padding-top: 20px; --pad-b: 24px; }
  .hero__h1 { margin-top: 14px; }
  .hero__lead { margin-top: 14px; }
  .hero__cta { margin-top: 20px; }
  .hero__proof { margin-top: 12px; }
  .hero__facts { margin-top: 24px; padding-top: 16px; }
}

/* ---------------- адаптив ---------------- */
/* 21.10 (вёрстка шапки после site-20261021-2): бургер — только ≤ 768px; на 769–1400 nav остаётся в строке (ссылки плотнее) */
@media (max-width: 1400px) {
  .nav a { padding: 9px 8px; }
  .grid4, .steps { grid-template-columns: repeat(2, 1fr); gap: 20px 18px; }
  .hero__art { width: 76%; }
}
@media (max-width: 1100px) {
  .nav a { padding: 8px 6px; font-size: .8rem; }
  .head__in { gap: 12px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: grid; }
  .head__act { margin-left: auto; }

  .head.is-open .nav {
    position: absolute; top: 100%; left: 0; width: 100%;
    display: grid; gap: 4px;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
  }
  .head.is-open .nav a { padding: 13px 14px; font-size: 1rem; }
  .head.is-open .nav a.is-active::after { display: none; }
}

@media (max-width: 1100px) {
  .rev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { background: var(--ink); }
  .hero__in {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__art {
    position: relative; z-index: 0;
    width: 100%; height: min(38vw, 200px); margin: 0;
  }
  .hero__art::after {
    background: linear-gradient(to top, var(--ink) 0%, rgba(var(--veil), .35) 45%, transparent 70%);
  }
  .hero__in { padding-top: 20px; --pad-b: 36px; background: var(--ink); }
  .hero__card {
    width: 100%;
    max-width: 340px;
    margin-top: 28px;
    justify-self: start;
  }
  .hero__facts { gap: 24px 36px; }

  .stores, .case, .faq, .cats { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .store { --shot: 180px; }
  .faq__head { position: static; }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .foot__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  .head__in { height: 68px; gap: 8px; }
  .head.is-stuck .head__in { height: 62px; }
  .head__act > .btn { display: none; }
  .head__act { gap: 8px; margin-left: auto; }
  .theme, .burger { width: 44px; height: 44px; }

  .final::before {
    background: linear-gradient(0deg, var(--ink) 4%, rgba(var(--veil), .9) 42%, rgba(var(--veil), .84) 100%);
  }

  .hero__art { height: 168px; }
  .hero__in {
    --pad-b: 28px;
    padding-top: 16px;
  }
  .hero__copy { display: flex; flex-direction: column; }
  .hero__copy .eyebrow { order: 1; }
  .hero__h1 { order: 2; margin-top: 12px; }
  .hero__cta {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
    gap: 10px;
  }
  .hero__cta .btn { width: 100%; }
  .hero__cta .btn--lg { --h: 52px; padding: 0 20px; }
  .hero__proof { order: 4; margin-top: 16px; }
  .hero__lead { order: 5; margin-top: 16px; }
  .hero__facts {
    order: 6;
    margin-top: 28px;
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .hero__facts > div { min-width: 0; }
  .hero__facts dt { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .hero__card { order: 7; }

  .brands__in { display: grid; gap: 18px; }
  .brands__note br { display: none; }
  .brands__list { gap: 12px 20px; font-size: 1rem; }

  .grid4, .steps, .cats, .rev-list { grid-template-columns: 1fr; }
  .steps { gap: 30px; }

  .bill th, .bill td { padding: 12px 0; }
  .bill tbody th { font-size: var(--t-xs); }
  .bill__sum b { margin-left: 0; }
  .bill table { width: 100%; }
  .bill thead { display: none; }
  .bill tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 12px 0;
  }
  .bill tbody th, .bill tfoot th {
    grid-column: 1 / -1;
    padding: 0;
    white-space: normal;
  }
  .bill td { padding: 0; white-space: nowrap; text-align: left; }
  .bill td:last-child { text-align: right; }
  .bill tbody td:nth-child(2)::before,
  .bill tfoot td:nth-child(2)::before { content: "В магазине"; display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 2px; }
  .bill tbody td:nth-child(3)::before,
  .bill tfoot td:nth-child(3)::before { content: "У нас"; display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 2px; }
  .store__brand { margin-bottom: 20px; }
}

@media (max-width: 380px) {
  .logo__name { font-size: 1.05rem; letter-spacing: .08em; }
  .head__act .btn { padding: 0 10px; font-size: .72rem; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
}

.head__in > .btn { margin-left: auto; }
.doc { padding-top: 40px; padding-bottom: 88px; max-width: calc(720px + 2 * var(--gutter)); }
.doc h1 { margin: 18px 0 20px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.doc h2 { margin: 28px 0 10px; font-size: 1.15rem; }
.doc p, .doc li { margin: 0 0 12px; color: var(--fg-2); font-size: var(--t-sm); line-height: 1.65; }
.doc ul { padding-left: 1.1em; list-style: disc; }
.doc ol { padding-left: 1.4em; list-style: decimal; }
.doc a { color: var(--br); text-decoration: underline; text-underline-offset: 3px; }
.doc .doc__meta { font-size: var(--t-xs); color: var(--fg-3); }
.doc table { margin: 4px 0 24px; font-size: var(--t-sm); }
.doc th, .doc td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.doc th { width: 38%; font-weight: 500; color: var(--fg-3); }
.doc td { color: var(--fg); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .doc th, .doc td { display: block; width: auto; padding-right: 0; }
  .doc th { padding-bottom: 2px; border-bottom: 0; }
  .doc td { padding-top: 0; }
}

@media (hover: none) {
  .head.is-stuck {
    background: var(--ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .rev__card a:hover { transform: none; }
}

/* ---------------- 19. мобильная нижняя панель (E2.2) ---------------- */
.mbar { display: none; }

@media (max-width: 767px) {
  .mbar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: flex; gap: 10px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ink-2);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -12px 32px -18px rgba(0, 0, 0, .35);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .mbar.is-on {
    transform: none;
    visibility: visible;
    transition: transform .25s ease, visibility 0s;
  }
  .mbar__cta { flex: 1; --h: 48px; padding: 0 16px; }
}

@media (max-width: 767px) {
  .theme { display: none; }
}

/* ---------------- 24. подписи номеров в подвале (E2.10) ---------------- */
.foot__lbl { font-size: var(--t-xs); color: var(--fg-3); }

/* E2.13: стоп-лист на виду — v2 (05.10): яркое предупреждение-ограничение.
   Практика: цвет + иконка + жирный заголовок обычного размера + полоса слева; контраст текста AA. */
.stopnote { margin: 6px 0 4px; padding: 14px 16px 14px 14px; border-radius: 12px; border: 1px solid #fca5a5; border-left: 5px solid #dc2626; background: #fef2f2; font-size: var(--t-sm, 15px); line-height: 1.5; color: #3f1d1d; }
.stopnote__t { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 800; font-size: 1.08em; color: #b91c1c; }
.stopnote__ic { flex: 0 0 auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dc2626; color: #fff; font-weight: 900; font-size: 15px; line-height: 1; }
.stopnote__ex { margin: 0 0 6px !important; font-weight: 600; color: #7f1d1d; }
.stopnote__ex code { padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px dashed #dc2626; color: #b91c1c; font: 700 .95em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.stopnote p { margin: 0; }
:root[data-theme="dark"] .stopnote { background: rgba(220,38,38,.14); border-color: rgba(248,113,113,.45); border-left-color: #ef4444; color: #fde2e2; }
:root[data-theme="dark"] .stopnote__t { color: #fca5a5; }
:root[data-theme="dark"] .stopnote__ex { color: #fecaca; }
:root[data-theme="dark"] .stopnote__ex code { background: rgba(0,0,0,.25); color: #fca5a5; border-color: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stopnote { background: rgba(220,38,38,.14); border-color: rgba(248,113,113,.45); border-left-color: #ef4444; color: #fde2e2; } :root:not([data-theme="light"]) .stopnote__t { color: #fca5a5; } :root:not([data-theme="light"]) .stopnote__ex { color: #fecaca; } }

/* ---------------- E2.13 текст v3 (06.10, владелец): плашка из нескольких абзацев ---------------- */
.stopnote p + p { margin-top: 6px; }
.stopnote__ex { margin-bottom: 0 !important; }
.acc__body p:not(:last-child) { padding-bottom: 0; }
.acc__body p + p { margin-top: 8px; }

/* ===== 07.10 «Telegram спит» снят 14.10 (WZ-2, владелец): Telegram → @Deltaformat_bot → Wazzup → amo ===== */

/* 07.10: подвал «Контакты» — номер не рвётся, подпись «городской / сотовый» строкой под номером */
.foot__col a[href^="tel:"] { display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; row-gap: 2px; align-items: center; overflow-wrap: normal; }
.foot__col a[href^="tel:"] .i { grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
.foot__col a[href^="tel:"] { white-space: nowrap; }
.foot__col a[href^="tel:"] .foot__lbl { grid-column: 2; font-size: var(--t-xs); line-height: 1.2; color: var(--fg-3); white-space: nowrap; }

/* ---------------- L5.1: карточка «Пример корзины» — кликабельная ---------------- */
a.hero__card { display: block; cursor: pointer; transition: transform .18s, box-shadow .25s, border-color .2s; }
a.hero__card:hover { transform: translateY(-2px); border-color: rgba(30, 240, 138, .45); }
a.hero__card:focus-visible { outline: 3px solid var(--br); outline-offset: 3px; }
.hero__card-hint { margin-top: 10px; font-size: var(--t-xs); color: var(--fg-3); text-decoration: underline dotted; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { a.hero__card:hover { transform: none; } }

/* WZ-2: .btn задаёт display и перебивал атрибут hidden (кнопка WhatsApp была видна) */
.btn[hidden] { display: none !important; }
/* WZ-2: «Написать нам» — первый экран и подвал */
.write { margin-top: 18px; }
.write__t { margin: 0 0 8px; font-size: var(--t-sm); font-weight: 600; }
.write__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.write__qrs { display: flex; flex-wrap: wrap; gap: 16px; }
.write__qrs[hidden], .write__opts[hidden] { display: none; }
.write__qr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--t-sm); text-decoration: none; color: inherit; }
.write__qr-img { width: 112px; height: 112px; background: #fff; padding: 5px; border-radius: 8px; }
.write__qr-img svg { width: 100%; height: 100%; display: block; }
.foot .write { margin-top: 14px; }
/* 15.10: MAX выключен — <html data-max="off"> прячет кнопки и QR MAX (первый экран, подвал) */
[data-max="off"] [data-msgr-link="max"] { display: none !important; }

/* 02.11 артикулы на 9 (ДА владельца 11:49) */
.step__note { margin-top: .5rem; font-size: var(--t-sm); color: var(--fg-2); }
.step__note a { color: inherit; text-decoration: underline; }
.store__meta--warn { color: #dc2626; }
