/* ==========================================================================
   Фирма РОСТ — стиль по DESIGN.md (Vodafone, VoltAgent/awesome-design-md, MIT).
   Адаптация: светлый первый экран, шрифт Inter (кириллица), фото товаров.
   Анимации — по исходникам Kinetics (github.com/ckissi/kinetics):
   stagger entrance, float-bob, spring hover.
   ========================================================================== */

:root {
  /* DESIGN.md → colors */
  --primary:     #E60000;
  --primary-dk:  #B80000;
  --on-primary:  #FFFFFF;
  --ink:         #25282B;
  --body:        #6E6E6E;   /* DESIGN.md: #7E7E7E — затемнено до 5:1 ради читаемости */
  --mute:        #BEBEBE;
  --canvas:      #FFFFFF;
  --canvas-soft: #F2F2F2;
  --on-dark:     #FFFFFF;
  --hairline:    #E3E3E3;
  --on-dark-dim: rgba(255,255,255,.66);

  /* DESIGN.md → spacing (база 4px) */
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 20px; --s-2xl: 24px; --s-3xl: 32px;

  /* DESIGN.md → rounded */
  --r-sm: 6px;
  --r-card: 6px;
  --r-pill-md: 32px;
  --r-pill-lg: 60px;

  /* Kinetics → motion */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glide:  cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1280px;
  --gutter: 32px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--ink); }
a:hover { color: var(--primary); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); }

/* --------------------------------------------------------------- типографика (DESIGN.md → typography) */
.display-hero { font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 5.6vw, 84px); line-height: .94; letter-spacing: -0.02em; }
.display-xl   { font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 5vw, 72px);  line-height: .96; letter-spacing: -0.015em; }
.display-lg   { font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.display-sm   { font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }
.display-xs   { font-weight: 700; font-size: 22px; line-height: 1.15; }
.eyebrow      { display: block; font-weight: 800; font-size: 14px; line-height: 24px; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: var(--s-lg); }
.lead         { font-weight: 300; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; color: var(--ink); max-width: 34ch; }
.muted        { color: var(--body); }
.red          { color: var(--primary); }

/* --------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(64px, 8vw, 112px) 0; }
.band--soft { background: var(--canvas-soft); }
.band--ink { background: var(--ink); color: var(--on-dark); }
.band--ink a { color: var(--on-dark); }
.band--red { background: var(--primary); color: var(--on-primary); }
.band__head { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3xl); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.band__head p { color: var(--body); max-width: 52ch; margin: var(--s-lg) 0 0; }
.band--ink .band__head p, .band--red .band__head p { color: var(--on-dark-dim); }
.band--ink .eyebrow, .band--red .eyebrow { color: var(--on-dark); }

/* --------------------------------------------------------------- кнопки (DESIGN.md → buttons, pill 60px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: var(--r-pill-lg);
  font-family: var(--font); font-size: 18px; line-height: 28px; font-weight: 400; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: transform .3s var(--spring), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); color: var(--on-primary); }
.btn--outline { background: var(--canvas); color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--on-primary); }
.btn--dark { background: var(--canvas); color: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--on-dark); }
.btn--on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn--on-dark:hover { background: var(--on-dark); color: var(--ink); }
.btn--white { background: var(--canvas); color: var(--primary); border-color: var(--canvas); }
.btn--white:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn--tg { background: #2AA3DC; color: #fff; border-color: #2AA3DC; }
.btn--wa { background: #25C35A; color: #fff; border-color: #25C35A; }
.btn--max { background: linear-gradient(135deg, #2A6AD8, #6A2FE0); color: #fff; border-color: transparent; }
.btn--tg:hover, .btn--wa:hover, .btn--max:hover { color: #fff; filter: brightness(.93); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-md); }

/* --------------------------------------------------------------- бейдж-пилюля (DESIGN.md → badge-chip) */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: var(--r-pill-md); background: var(--canvas-soft);
  color: var(--ink); font-size: 14px; line-height: 21px; font-weight: 700; }
.chip--red { background: var(--primary); color: var(--on-primary); }
.chip--red::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* --------------------------------------------------------------- шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.header__inner { display: flex; align-items: center; gap: var(--s-3xl); height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__orb { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.logo__name { font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: -0.01em; }
.logo__name small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--body); margin-top: 4px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--s-3xl); }
.nav a { color: var(--ink); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--primary); }
.header__cta { display: flex; align-items: center; gap: var(--s-xl); }
.header__phone { font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.header .btn { padding: 10px 22px; font-size: 16px; line-height: 24px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: var(--canvas); cursor: pointer; padding: 0; margin-left: auto; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: rotate(45deg); top: 0; }
.nav-open .burger span::after { transform: rotate(-45deg); top: 0; }

/* --------------------------------------------------------------- герой: билборд-заголовок + витрина хитов */
.hero { padding: clamp(32px, 3.6vw, 52px) 0 clamp(48px, 6vw, 88px); }
.hero__title { margin-bottom: clamp(24px, 2.6vw, 36px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 4vw, 64px); align-items: end; }
.hero__lead { margin-bottom: var(--s-2xl); max-width: 40ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: clamp(32px, 3.4vw, 48px); border-top: 1px solid var(--ink); }
.facts div { padding: var(--s-lg) var(--s-3xl) 0 0; margin-right: var(--s-3xl); border-right: 1px solid var(--hairline); }
.facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts b { display: block; font-size: 16px; line-height: 22px; font-weight: 700; }
.facts span { font-size: 14px; line-height: 20px; color: var(--body); }

.hits { position: relative; }
.hits__label { position: absolute; top: 0; left: 0; z-index: 3; }
.hits__row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; align-items: end; gap: var(--s-2xl); padding-top: 44px; }
.hits__row > * { min-width: 0; }
.hit { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.hit:hover { color: var(--ink); }
.hit__stage { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: center; height: clamp(180px, 16vw, 236px); }
.hit__stage img { position: relative; z-index: 1; max-height: 100%; width: auto; object-fit: contain; animation: float-bob 4s ease-in-out infinite; }
.hit__stage::after { content: ""; position: absolute; bottom: -10px; left: 50%; width: 72%; height: 18px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,40,43,.32), transparent); animation: float-shadow 4s ease-in-out infinite; }
.hit--2 .hit__stage img, .hit--2 .hit__stage::after { animation-delay: -1.3s; }
.hit--3 .hit__stage img, .hit--3 .hit__stage::after { animation-delay: -2.6s; }
.hit__stage img.native { max-width: 190px; max-height: 210px; }  /* фото 190×260 — не растягиваем */
.hit--1 .hit__stage { height: clamp(220px, 20vw, 290px); }       /* №1 — самый крупный */
.hit__rank { margin-top: 30px; font-size: 13px; line-height: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); }
.hit__name { margin-top: 4px; font-size: 18px; line-height: 22px; font-weight: 700; }
.hit__type { font-size: 14px; line-height: 20px; color: var(--body); }

/* Kinetics → float-bob (тень вынесена в отдельный эллипс, чтобы не было прямоугольника вокруг фото) */
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-shadow { 0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; } 50% { transform: translateX(-50%) scaleX(.82); opacity: .6; } }

/* --------------------------------------------------------------- цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: var(--s-2xl) var(--s-2xl) 0 0; }
.stat + .stat { padding-left: var(--s-2xl); border-left: 1px solid var(--hairline); }
.stat b { display: block; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.stat b em { font-style: normal; color: var(--primary); }
.stat span { display: block; margin-top: 6px; font-size: 16px; line-height: 22px; color: var(--body); }

/* --------------------------------------------------------------- каталог (DESIGN.md → card-content, radius 6, без тени) */
.cat { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2xl); }
.card { display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: var(--ink); transition: transform .3s var(--spring), border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--ink); color: var(--ink); }
.card__img { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--canvas); }
.card__img img { position: absolute; inset: var(--s-2xl); width: calc(100% - 2 * var(--s-2xl)); height: calc(100% - 2 * var(--s-2xl)); object-fit: contain; transition: transform .45s var(--glide); }
.card:hover .card__img img { transform: scale(1.04); }
.card__img svg { width: 72px; height: 72px; color: var(--primary); }
.card__body { display: flex; flex-direction: column; gap: var(--s-sm); padding: var(--s-lg) var(--s-lg) var(--s-xl); border-top: 1px solid var(--hairline); flex: 1; }
.card__body .chip { align-self: flex-start; }
.card__go { margin-top: auto; padding-top: var(--s-sm); font-size: 16px; line-height: 22px; font-weight: 700; color: var(--primary); }

/* --------------------------------------------------------------- тёмная полоса: почему выгодно */
.value { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.value .display-xl { font-size: clamp(32px, 3.8vw, 54px); }
.value__points li { padding: var(--s-2xl) 0; border-top: 1px solid rgba(255,255,255,.25); display: grid; grid-template-columns: 120px 1fr; gap: var(--s-2xl); }
.value__points li:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.value__points b { font-size: 14px; line-height: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); }
.value__points h3 { font-size: 22px; line-height: 1.2; font-weight: 700; margin-bottom: 6px; }
.value__points p { margin: 0; color: var(--on-dark-dim); font-size: 16px; line-height: 24px; }

/* --------------------------------------------------------------- split (текст + медиа) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev .split__media { order: -1; }
.ticks li { position: relative; padding: 14px 0 14px 36px; border-top: 1px solid var(--hairline); font-size: 18px; line-height: 26px; }
.ticks li:last-child { border-bottom: 1px solid var(--hairline); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

.media { position: relative; border-radius: var(--r-sm); background: var(--canvas); border: 1px solid var(--hairline); aspect-ratio: 4 / 3.4; display: grid; place-items: center; overflow: hidden; }
.media__note { position: absolute; left: var(--s-lg); bottom: var(--s-lg); z-index: 4; }
.media img.product { width: 44%; height: auto; object-fit: contain; }

/* СТМ-демо: этикетка на пакете сменяется (ВАШ БРЕНД / ВАША МАРКА / ВАШ ЛОГОТИП) */
.stm-bag { position: relative; width: 40%; }
.stm-bag > img { width: 100%; height: auto; display: block; }
.stm-bag__label { position: absolute; left: 30%; top: 35%; width: 40%; height: 30%; }
.stm-bag__label span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; border-radius: var(--r-sm);
  font-weight: 800; text-transform: uppercase; font-size: clamp(11px, 1.2vw, 16px); line-height: 1.05; letter-spacing: -0.01em;
  clip-path: inset(0 0 100% 0); animation: stm-apply 6.9s var(--glide) infinite; }
.stm-bag__label .l1 { background: var(--primary); color: #fff; animation-delay: 0s; }
.stm-bag__label .l2 { background: var(--ink); color: #fff; animation-delay: 2.3s; }
.stm-bag__label .l3 { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1px var(--hairline); animation-delay: 4.6s; }
@keyframes stm-apply { 0% { clip-path: inset(0 0 100% 0); } 8% { clip-path: inset(0 0 0 0); } 30% { clip-path: inset(0 0 0 0); } 37% { clip-path: inset(100% 0 0 0); } 100% { clip-path: inset(100% 0 0 0); } }

/* --------------------------------------------------------------- плитки (продавцам) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.tile { padding: var(--s-3xl) var(--s-2xl) var(--s-3xl) 0; border-bottom: 1px solid var(--hairline); }
.tile:not(:nth-child(3n+1)) { padding-left: var(--s-2xl); border-left: 1px solid var(--hairline); }
.tile__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--canvas-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: var(--s-lg); }
.tile__ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 22px; line-height: 1.2; font-weight: 700; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--body); font-size: 16px; line-height: 24px; }

/* --------------------------------------------------------------- шаги (красная полоса СТМ / процесс) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.4); }
.step { padding: var(--s-2xl) var(--s-2xl) var(--s-3xl) 0; border-bottom: 1px solid rgba(255,255,255,.4); }
.step:not(:nth-child(3n+1)) { padding-left: var(--s-2xl); border-left: 1px solid rgba(255,255,255,.4); }
.step__n { font-size: clamp(40px, 4vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--s-md); }
.step h3 { font-size: 22px; line-height: 1.2; font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; font-size: 16px; line-height: 24px; color: rgba(255,255,255,.82); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.flow li { padding: var(--s-2xl) var(--s-lg) 0 0; position: relative; }
.flow li + li { padding-left: var(--s-lg); border-left: 1px solid var(--hairline); }
.flow b { display: block; font-size: 13px; line-height: 16px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.flow h3 { font-size: 22px; line-height: 1.2; font-weight: 700; }
.flow p { margin: 6px 0 0; font-size: 16px; line-height: 22px; color: var(--body); }

/* --------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 22px 56px 22px 0; font-size: 22px; line-height: 1.25; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; border: 1px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--primary); background: linear-gradient(var(--primary), var(--primary)) center/14px 2px no-repeat, linear-gradient(var(--primary), var(--primary)) center/2px 14px no-repeat; }
.faq .faq__body { padding: 0 56px 24px 0; color: var(--body); }
.faq .faq__body p { margin: 0; }

/* --------------------------------------------------------------- форма (DESIGN.md → text-input: 1px ink, radius 6) */
.form-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.form { background: var(--canvas); color: var(--ink); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.field { margin-bottom: var(--s-xl); }
.field > label, .field__label { display: block; font-size: 14px; line-height: 21px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--canvas);
  font-family: var(--font); font-size: 16px; line-height: 22px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,0,0,.15); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { display: inline-block; padding: 8px 16px; border-radius: var(--r-pill-md); border: 1px solid var(--ink); font-size: 15px; line-height: 20px; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .3s var(--spring); user-select: none; }
.check span:hover { border-color: var(--primary); color: var(--primary); }
.check input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.check input:active + span { transform: scale(.96); }
.form__note { font-size: 13px; line-height: 18px; color: var(--body); margin: var(--s-md) 0 0; }
.form__note a { color: var(--ink); }
.form__msg { display: none; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: var(--s-lg); font-size: 16px; }
.form__msg.is-ok { display: block; background: #E8F6EC; color: #16652F; }
.form__msg.is-err { display: block; background: #FDECEC; color: var(--primary-dk); }

.contacts-list li { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-lg); padding: 14px 0; border-top: 1px solid rgba(255,255,255,.25); font-size: 16px; line-height: 22px; }
.contacts-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.contacts-list .k { color: var(--on-dark-dim); }
.contacts-list .v { font-weight: 700; }
.contacts-list a { text-decoration: none; }
.on-light .contacts-list li { border-color: var(--hairline); }
.on-light .contacts-list .k { color: var(--body); }
.on-light .contacts-list a { color: var(--ink); }
.on-light .form { border: 1px solid var(--ink); }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 36px 0 12px; }
.prose p { color: var(--ink); }

/* --------------------------------------------------------------- футер (DESIGN.md → footer: ink) */
.footer { background: var(--ink); color: var(--on-dark); padding: 64px 0 32px; font-size: 16px; line-height: 22px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-3xl); padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer h4 { font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--on-dark-dim); margin-bottom: var(--s-lg); }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: #FF5A5A; }
.footer .logo, .footer .logo:hover { color: var(--on-dark); }
.footer .logo__name small { color: var(--on-dark-dim); }
.footer__brand p { margin-top: var(--s-lg); color: var(--on-dark-dim); max-width: 32ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 14px; color: var(--on-dark-dim); }

/* --------------------------------------------------------------- внутренние страницы */
.page-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--hairline); }
.page-hero .lead { margin-top: var(--s-2xl); max-width: 48ch; }
.crumbs { font-size: 14px; color: var(--body); margin-bottom: var(--s-2xl); }
.crumbs a { color: var(--body); }
.u-mt { margin-top: var(--s-3xl); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }

/* --------------------------------------------------------------- липкая кнопка на мобильном */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--hairline); }

/* --------------------------------------------------------------- Kinetics → stagger entrance (класс .reveal навешивает JS) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--glide), transform .45s var(--glide); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.hero .anim { opacity: 0; transform: translateY(14px); animation: hero-in .6s var(--glide) forwards; }
.hero .anim.d1 { animation-delay: .05s; } .hero .anim.d2 { animation-delay: .15s; } .hero .anim.d3 { animation-delay: .25s; } .hero .anim.d4 { animation-delay: .35s; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------- адаптив (DESIGN.md → responsive: карточки 2-up / 1-up) */
@media (max-width: 1100px) {
  .nav ul { gap: var(--s-xl); }
  .header__phone { display: none; }
  .cat { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  .hero__grid, .value, .split, .form-wrap, .grid-2 { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .tiles, .steps { grid-template-columns: repeat(2, 1fr); }
  .tile:not(:nth-child(3n+1)), .step:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .tile:nth-child(even), .step:nth-child(even) { padding-left: var(--s-2xl); border-left: 1px solid var(--hairline); }
  .step:nth-child(even) { border-left-color: rgba(255,255,255,.4); }
  .band__head { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 24px; padding-bottom: 76px; }
  .header__cta { display: none; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--canvas); } /* иначе fixed-меню привязывается к шапке */
  .burger { display: block; }
  .header__inner { height: 64px; }
  .nav { position: fixed; inset: 64px 0 0 0; margin: 0; background: var(--canvas); padding: var(--s-2xl) var(--gutter); overflow-y: auto;
    visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .3s var(--glide), visibility 0s linear .3s; }
  .nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .45s var(--glide), visibility 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 18px 0; font-size: 22px; font-weight: 700; border-bottom: 1px solid var(--hairline);
    opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
  .nav.is-open a { opacity: 1; transform: none; transition: opacity .4s var(--glide), transform .4s var(--glide); }
  .nav.is-open li:nth-child(2) a { transition-delay: .04s; } .nav.is-open li:nth-child(3) a { transition-delay: .08s; }
  .nav.is-open li:nth-child(4) a { transition-delay: .12s; } .nav.is-open li:nth-child(5) a { transition-delay: .16s; }
  .display-hero { font-size: 7.3vw; }
  .eyebrow { font-size: 12px; line-height: 18px; }
  .hero .facts { display: none; }
  .hits__row { grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s-sm); }
  .hit__stage, .hit--1 .hit__stage { height: 170px; }
  .hit__stage img.native { max-height: 140px; }
  .hit__stage img.native { max-width: 100%; }
  .hit__name { font-size: 14px; line-height: 18px; }
  .hit__type { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; padding-right: 0; margin-right: 0; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
  .cat { grid-template-columns: 1fr 1fr; gap: var(--s-md); }
  .card__img { padding: var(--s-lg); }
  .tiles, .steps, .stats, .flow { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(even), .step, .step:nth-child(even), .stat, .stat + .stat, .flow li + li { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: var(--s-lg); border-bottom: 1px solid var(--hairline); }
  .flow li { padding-bottom: var(--s-lg); }
  .value__points li { grid-template-columns: 1fr; gap: 6px; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  .stm-bag { width: 52%; }
}



/* ==========================================================================
   MOTION — идея «нанесение»: трафарет заголовка, шторка этикетки, прочерченные линейки.
   Одна авторская сцена (загрузка героя), остальное — отклик и связь состояний.
   Кривые — Kinetics (--glide). Контент виден по умолчанию: скрывает только JS.
   ========================================================================== */

/* 1. Фокус-сцена героя: строки заголовка выходят из-под «трафарета», затем на полку встают хиты */
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero__title .ln > span { display: inline-block; transform: translateY(104%); animation: ln-up .8s var(--glide) forwards; }
.hero__title .ln:nth-child(1) > span { animation-delay: .05s; }
.hero__title .ln:nth-child(2) > span { animation-delay: .14s; }
.hero__title .ln:nth-child(3) > span { animation-delay: .23s; }
@keyframes ln-up { to { transform: translateY(0); } }

.hits__label { animation: chip-in .5s var(--glide) .55s both; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-8px) scale(.9); } }
.hit { animation: hit-land .9s var(--glide) both; }
.hit--1 { animation-delay: .5s; } .hit--2 { animation-delay: .62s; } .hit--3 { animation-delay: .74s; }
@keyframes hit-land { from { opacity: 0; transform: translateY(-36px); filter: blur(10px); } 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: none; } }
/* плавание стартует, когда товар уже «встал» */
.hit__stage img, .hit__stage::after { animation-delay: 1.4s; }
.hit--2 .hit__stage img, .hit--2 .hit__stage::after { animation-delay: .1s; }
.hit--3 .hit__stage img, .hit--3 .hit__stage::after { animation-delay: -1.2s; }
.hit:hover .hit__stage img { animation-play-state: paused; }
.hit .hit__name { transition: color .2s; } .hit:hover .hit__name { color: var(--primary); }
.is-offscreen .hit__stage img, .is-offscreen .hit__stage::after, .is-offscreen .stm-bag__label span { animation-play-state: paused; }

/* 2. Прочерченные линейки: верхние правила блоков рисуются слева направо при появлении */
.stats, .tiles, .flow, .faq { border-top: 0; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1px no-repeat; transition: background-size 1.1s var(--glide); }
.steps { border-top: 0; background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) 0 0 / 100% 1px no-repeat; transition: background-size 1.1s var(--glide); }
.rule-pending { background-size: 0% 1px; }

/* 3. Медиа-окна открываются шторкой снизу вверх — тот же жест, что и этикетка */
.media.wipe-pending { clip-path: inset(100% 0 0 0); }
.media { transition: clip-path .9s var(--glide); }

/* 4. Шапка: при прокрутке становится компактной */
.header__inner { transition: height .3s var(--glide); }
.logo__orb { transition: transform .3s var(--glide); }
.header.is-stuck .header__inner { height: 60px; }
.header.is-stuck .logo__orb { transform: scale(.86); }

/* 5. Отклик: выбор категорий в форме — заливка проходит слева направо */
.check span { background-image: linear-gradient(var(--primary), var(--primary)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left;
  transition: background-size .3s var(--glide), color .2s, border-color .2s, transform .3s var(--spring); }
.check input:checked + span { background-color: var(--canvas); background-image: linear-gradient(var(--primary), var(--primary)); background-size: 100% 100%; color: #fff; border-color: var(--primary); }

/* 6. FAQ раскрывается плавно (Chrome/Edge 131+; в остальных — мгновенно) */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--glide), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* 7. Кнопка отправки в процессе */
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__msg.is-ok, .form__msg.is-err { animation: msg-in .35s var(--glide); }
@keyframes msg-in { from { opacity: 0; transform: translateY(-6px); } }

/* 8. Поверхности браузера — в палитре */
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 4px; }
a { text-underline-offset: .18em; }
html { scrollbar-color: var(--ink) var(--canvas-soft); accent-color: var(--primary); }

/* Уменьшенное движение: убираем перемещения и циклы, оставляем смену цвета/состояний */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .ln > span, .hits__label, .hit, .hero .anim { animation: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
  .hit__stage img, .hit__stage::after { animation: none !important; }
  .stm-bag__label span { animation: none !important; }
  .stm-bag__label .l1 { clip-path: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .rule-pending { background-size: 100% 1px; }
  .media.wipe-pending { clip-path: none; }
  .nav, .nav a, .header__inner, .logo__orb, .btn, .card, .card__img img { transition-property: opacity, color, background-color, border-color, clip-path, visibility !important; transform: none; }
  .btn:hover, .card:hover { transform: none; }
  .faq details::details-content { transition: none; }
}

/* --------------------------------------------------------------- v29: «горячие точки» героя, бренды, цифры */
.hot { margin: 0 0 var(--s-2xl); padding: 0; list-style: none; display: grid; gap: 10px; }
.hot li { position: relative; padding-left: 28px; font-size: 17px; line-height: 24px; color: var(--ink); }
.hot li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 9px; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg); }
.hot b { font-weight: 700; }

.marquee { overflow: hidden; border-block: 1px solid var(--hairline); padding: 18px 0; background: var(--canvas);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { flex: none; padding: 0 28px; font-size: clamp(20px, 2.2vw, 30px); line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.marquee__track span::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 56px; border-radius: 2px; background: var(--primary); vertical-align: middle; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

#numbers .eyebrow { display: block; margin-bottom: var(--s-lg); }
.stat b [data-count] { display: inline; margin: 0; font: inherit; color: inherit; font-variant-numeric: tabular-nums; }

@media (max-width: 599px) {
  .hot li { font-size: 16px; }
  .marquee { padding: 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}
.marquee.is-offscreen .marquee__track { animation-play-state: paused; }
.cat > .card--wide { grid-column: span 2; }
.card--wide .card__img { aspect-ratio: auto; flex: 1 1 auto; min-height: 160px; }

/* v35: цены «от» в карточках и хитах */
.price { display: block; margin-top: var(--s-md); font-size: 24px; line-height: 28px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.hit__price { display: block; margin-top: 2px; font-size: 18px; line-height: 24px; font-weight: 800; color: var(--ink); }
