/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 767px). Подключается с media="(max-width: 767px)".
   Система выведена из макета мобилка.pdf (канвас 320):
     поля страницы 16 · внутренний отступ карточки 16 · зазор между карточками 12
     радиус карточки 20 · радиус кнопки 8 · кнопка 51
     Иерархия шрифтов (Bebas, line-height .8): h2 44 · h3 36 (в т.ч. заголовки карточек и CTA-карточки) · цифры-акценты 40 (никогда не выше h2)
     Inter Tight: название товара/тарифа 20 · текст 16 · подпись 14 · цена 28 / старая цена 15
     Склейка: предлоги и союзы до 3 букв связаны неразрывным пробелом с следующим словом, тире — с предыдущим
   Единица --m растёт от 1px (320) до ~1.18px (430), чтобы текст не раздувался.
   Всё, что в ПК-вёрстке считалось от --s, на мобиле считается от --m,
   поэтому «сырые» числа из ПК-правил дают px, а не доли пикселя.
   ========================================================================== */
:root {
  --m: calc(1px + (clamp(320px, 100vw, 430px) - 320px) * .0016364);
  --s: var(--m);

  --gutter: calc(16 * var(--m));
  --gap:    calc(12 * var(--m));
  --inset:  calc(16 * var(--m));
  --sec:    calc(72 * var(--m));          /* расстояние между секциями */

  --r-section: calc(20 * var(--m));
  --r-card:    calc(14 * var(--m));       /* белые карточки внутри серых блоков */
  --r-btn:     calc(8  * var(--m));
  --r-input:   calc(8  * var(--m));
  --btn-h:     calc(51 * var(--m));

  --fs-hero:   min(22vw, 100px);
  --fs-giant:  min(37vw, 190px);
  --fs-cta:    min(calc((100vw - 2 * var(--gutter)) / 4.55), 110px);   /* «К ПЕРЕМЕНАМ?» ≈ 4,45 em в ширину: строка всегда помещается в колонку */
  --fs-h2:     calc(44 * var(--m));
  --fs-h2-xl:  calc(36 * var(--m));
  --fs-h3:     calc(36 * var(--m));
  --fs-lead:   calc(16 * var(--m));
  --fs-body:   calc(16 * var(--m));
  --fs-small:  calc(16 * var(--m));
  --fs-tiny:   calc(14 * var(--m));
  --fs-card-t: calc(20 * var(--m));
  --fs-price:  calc(28 * var(--m));

  --safe-b: env(safe-area-inset-bottom, 0px);
}

html { scroll-padding-top: calc(16 * var(--m)); }
.display, .product__title, .tariff__name { text-wrap: balance; }
p, li { text-wrap: pretty; }
.product__desc { text-wrap: wrap; }
body { font-size: var(--fs-body); }

/* ---------- Кнопки ---------- */
.btn { padding: 0 calc(16 * var(--m)); font-size: var(--fs-lead); white-space: normal; }
.btn:active { transform: scale(.985); }
.label { font-size: var(--fs-tiny); line-height: 1.2; }
.social { width: var(--btn-h); height: var(--btn-h); min-width: 44px; min-height: 44px; }

/* ---------- Бургер и меню ---------- */
.burger {
  position: fixed; z-index: 70; top: calc(10 * var(--m)); right: var(--gutter);
  display: grid; place-content: center; gap: 6px;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(14, 14, 14, .55); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform var(--dur-2) var(--ease-out); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(84 * var(--m)) var(--gutter) calc(20 * var(--m) + var(--safe-b));
  background:
    radial-gradient(ellipse 90% 40% at 50% 108%, var(--c-glow) 0 55%, rgba(255, 0, 0, 0) 100%),
    var(--c-night);
  color: #fff; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__nav { display: grid; gap: calc(4 * var(--m)); }
.menu__nav a {
  display: block; padding-block: calc(4 * var(--m));
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: min(17vw, 84px); line-height: .9; letter-spacing: -.012em; color: #fff;
}
.menu__nav a:first-child { color: var(--c-red); }
.menu__bottom { display: grid; gap: 8px; margin-top: calc(24 * var(--m)); }
.menu__nav a, .menu__bottom { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: calc(var(--i, 0) * .05s + .08s); }
.menu.is-open .menu__nav a, .menu.is-open .menu__bottom { opacity: 1; transform: none; }
body.menu-lock { overflow: hidden; }

/* ---------- Плавающая кнопка «написать Нике» ---------- */
.wa-fab {
  position: fixed; z-index: 40; right: var(--gutter); bottom: calc(16 * var(--m) + var(--safe-b));
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; min-width: 52px; padding: 0 6px; border-radius: 26px;      /* свёрнута в круг 52 px: только знак WhatsApp */
  background: var(--c-red); color: #fff; font-weight: 450; font-size: 16px; line-height: 1;
  box-shadow: 0 8px 24px rgba(220, 26, 29, .35);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), padding var(--dur-2) var(--ease-out);
}
.wa-fab span { display: block; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.wa-fab.is-open { padding: 0 20px 0 6px; }                                   /* скролл остановился: раскрывается в «написать Нике» */
.wa-fab.is-open span { max-width: 160px; opacity: 1; }
.wa-fab[hidden] { display: none; }
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab svg { flex: none; width: 40px; height: 40px; fill: currentColor; }   /* знак WhatsApp 24 px внутри поля 40 */

/* ==========================================================================
   HERO
   ========================================================================== */
.hero__stage { height: calc(100vw * 1.84 + 30 * var(--m)); min-height: 670px; max-height: 890px; }   /* +30·m: нижний блок текста опущен ниже лица, фото якорится сверху */
/* кадр стоит ниже, чтобы над головой остался воздух под первый заголовок; ноги уходят за нижний край */
.hero__bg, .hero__cutout { top: calc(100vw * .33); height: auto; }
.hero__bg { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
.hero__stage::after {                       /* затемнение низа под текст и кнопки */
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 52%; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 11, 0) 0, rgba(5, 6, 11, .72) 55%, rgba(5, 6, 11, .94) 100%);
}
.site-header { height: calc(68 * var(--m)); grid-template-columns: 1fr auto; padding-inline: var(--gutter); }
.site-header .nav { display: none; }
.site-header__logo { grid-column: 1; justify-self: start; }
.site-header__logo img { height: calc(40 * var(--m)); min-height: 0; }

.hero__title { --ls: -.006em; }
.hero__title--l { left: var(--gutter); top: calc(78 * var(--m)); z-index: 1; }   /* ниже вырезки (z 2): рука Ники слегка перекрывает «с умом» */
.hero__title--r { right: var(--gutter); left: auto; top: auto; bottom: calc(226 * var(--m)); z-index: 4; }
.socials--hero { display: none; }
.hero__lead { z-index: 4; font-size: var(--fs-lead); line-height: 1.2; }
.hero__lead--r { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* текст остаётся для читалок и поиска */
.hero__lead--l { left: var(--gutter); right: var(--gutter); top: auto; width: auto; max-width: calc(300 * var(--m)); bottom: calc(138 * var(--m)); }
.hero__choice { z-index: 4; left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(24 * var(--m)); }
.hero__choice-q { margin-bottom: calc(12 * var(--m)); }
.hero__choice-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero__choice-btns .btn { min-width: 0; }
.marquee { height: calc(32 * var(--m)); min-height: 28px; font-size: var(--fs-tiny); }
.marquee__track { gap: 24px; padding-right: 24px; animation-duration: 26s; }
.marquee__track i { width: 6px; height: 6px; }

/* ==========================================================================
   УСЛУГИ
   ========================================================================== */
.services { padding-top: var(--sec); }
.services .label { margin-bottom: 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tab { min-width: 0; min-height: 48px; padding: 0 12px; font-size: var(--fs-lead); }
.panels { padding-inline: var(--gutter); margin-top: 16px; }
.block { padding: calc(24 * var(--m)) var(--inset) var(--inset); margin-bottom: var(--gap); }
.block--online, .block--food, .block--half { min-height: 0; }
.block__head { display: block; }
.block__title { line-height: .8; }
.block__sub { max-width: none; margin-top: 12px; font-size: var(--fs-body); line-height: 1.2; }

/* рукописные подписи: в потоке, под текстом, справа */
.script-img--head, .script-img--2t { position: static; display: block; width: calc(250 * var(--m)); margin: 12px 0 0 auto; }
.script-img--2t { width: calc(270 * var(--m)); }

/* «Кому подходит / этапы / формат» — аккордеон */
.info { display: block; margin-top: 20px; }
.info__col { border-top: 1px solid rgba(14, 14, 14, .12); }
.info__sum {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; pointer-events: auto; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.info__sum::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--c-ink), var(--c-ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--c-ink), var(--c-ink)) center / 2px 12px no-repeat;
  border: 1px solid rgba(14, 14, 14, .25);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2);
}
.info__col[open] .info__sum::after { transform: rotate(45deg); }
.info__title { font-size: calc(32 * var(--m)); line-height: .8; }
.info__list { margin-top: 0; padding: 0 0 16px; max-width: none !important; font-size: var(--fs-body); line-height: var(--lh-small); }
.info__list li + li { margin-top: 8px; }
.info__title--tariffs { margin-top: 28px; font-size: calc(36 * var(--m)); }
.info__col:last-of-type { border-bottom: 1px solid rgba(14, 14, 14, .12); }

.tariffs, .tariffs--3 { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.tariffs .tariff, .tariffs--3 .tariff, .tariff--wide { min-height: 0; }
.tariff { padding: 16px; }
.tariff__name, .tariffs--3 .tariff__name { font-size: var(--fs-card-t); line-height: 1.15; }
.tariff__desc { margin-top: 8px; font-size: var(--fs-tiny); line-height: var(--lh-small); }
.tariff .price { margin-top: 28px; margin-bottom: 14px; }
.tariff .btn { margin-top: 0; }   /* в каруселях карточки равной высоты: остаток уходит над ценой (правило ниже), цена и кнопка всегда рядом */
.tariff--wide { margin-top: 16px; }
.price, .package__card .price { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; width: auto; }
.price__old { position: static; order: 2; margin: 0; font-size: calc(15 * var(--m)); line-height: 1; opacity: .9; }
.br-m { display: inline; }
.br-d { display: none; }
.duo { grid-template-columns: 1fr; gap: var(--gap); }
.duo .block { margin-bottom: 0; }
.panel .duo { margin-bottom: var(--gap); }

.package { min-height: 0; padding-bottom: var(--inset); }
.package .block__title { margin-bottom: 20px; }
.block--ink .block__title, .shop__sub { position: relative; z-index: 1; }
.package__card { padding: 16px; }
.package__list { font-size: calc(18 * var(--m)); line-height: 1.4; }
.package__list li { padding-left: 16px; }
.package__card .price { margin-top: 20px; margin-bottom: 14px; }
.glow--tr { right: calc(-70 * var(--m)); top: calc(-80 * var(--m)); width: calc(170 * var(--m)); height: calc(170 * var(--m)); }
.glow--bl { left: calc(-120 * var(--m)); bottom: calc(-120 * var(--m)); width: calc(360 * var(--m)); height: calc(260 * var(--m)); }

/* ---------- Тест ---------- */
.test { display: flex; flex-direction: column; gap: 20px; min-height: 0; padding: var(--inset); border-radius: var(--r-section); }
.test--panel { margin-bottom: var(--gap); }
.label--tight { margin-bottom: 12px; }
.test__title { font-size: var(--fs-h3); line-height: .8; }
.test__text { max-width: none; margin-top: 14px; font-size: var(--fs-body); line-height: 1.2; }
.test__right { display: flex; flex-direction: column; }
.test__text + .test__text { margin-top: 8px; }
.test__time { margin-top: 14px; font-size: var(--fs-body); }
.test__stamp { font-size: calc(30 * var(--m)); margin: 4px 4px 16px 0; }
.script-img--test { align-self: flex-end; width: calc(200 * var(--m)); margin-bottom: 12px; }
.form { margin-top: 0; gap: 8px; }
.field input { padding: 0 16px; font-size: 16px; }
.consent { max-width: none; grid-template-columns: 20px 1fr; gap: 10px; font-size: var(--fs-tiny); line-height: 1.2; padding-block: 6px; }
.consent input { width: 20px; height: 20px; border-radius: 5px; }
.consent input:checked::after { width: 9px; height: 5px; }
.form__msg { font-size: var(--fs-tiny); }

/* ==========================================================================
   ОБО МНЕ
   ========================================================================== */
/* --aw — ширина фото; кадр режется на уровне груди, как в макете (видно ~23–67% высоты файла) */
.about { --aw: min(100vw, 520px); }
.about__stage { height: calc(var(--aw) * .76); }
.about__name {
  top: calc(var(--aw) * .06); line-height: .8; white-space: normal;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  font-size: min(38vw, 190px);
}
.about__photo { left: 50%; top: calc(var(--aw) * -.245); width: var(--aw); transform: translateX(-50%); }
.about__card { grid-template-columns: minmax(0, 1fr); width: calc(100% - 2 * var(--gutter)); padding: calc(28 * var(--m)) var(--inset) calc(28 * var(--m)); }
.about__role { text-align: left; font-size: var(--fs-h2-xl); line-height: .8; }
.about__text { max-width: none; margin-top: 16px; font-size: var(--fs-body); line-height: 1.2; }
.stats { margin-top: 24px; gap: 8px; }
.stat { flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; min-height: 0; }
.stat__label { max-width: none; flex: 1 0 100%; font-size: var(--fs-tiny); line-height: 1.2; }
.stat { column-gap: calc(16 * var(--m)); }
.stat__value { flex: 0 0 calc(148 * var(--m)); font-size: calc(40 * var(--m)); text-align: right; }   /* одинаковая колонка: линии-стрелки в обеих карточках равной длины */
.stat__line { min-width: 24px; }
.stat__sign { margin-right: .08em; font-size: .8em; vertical-align: .16em; opacity: .55; }   /* «>» не сливается с ромбом стрелки */
.about__bottom { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 28px; min-height: 0; }
.about__note { max-width: none; padding-bottom: 0; text-align: center; font-size: var(--fs-tiny); line-height: 1.25; }
.about__note--r { justify-self: auto; text-align: center; }
.reels {
  order: -1; position: static; display: flex; gap: 8px; width: calc(100% + 2 * var(--inset)); margin-inline: calc(-1 * var(--inset));
  height: auto; padding: 0 var(--inset) 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; left: auto; bottom: auto; margin: 0; transform: none !important; z-index: 0; flex: 0 0 calc(128 * var(--m)); width: auto; scroll-snap-align: start; }
.reel__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden;
  border-radius: calc(12 * var(--m)); background: #1a1a1a; color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.reel__btn video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.reel__snd {
  position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(14, 14, 14, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.reel__ico { width: 20px; height: 20px; }
.reel__btn[aria-pressed="false"] .reel__wave, .reel__btn[aria-pressed="true"] .reel__mute { display: none; }
.reel__btn:active .reel__snd { transform: scale(.92); }
.about__more { margin-top: 20px; min-width: 0; width: 100%; }

/* ==========================================================================
   КЕЙСЫ (по макету мобилка.pdf)
   ========================================================================== */
.cases { padding-top: var(--sec); }
.cases .label { margin-bottom: 18px; }
.br-m { display: inline; }
.section-title { line-height: .8; }
.section-sub { max-width: none; margin-top: 16px; font-size: var(--fs-body); line-height: var(--lh-small); }
.cases__grid { grid-template-columns: 1fr; gap: var(--gap); margin-top: 24px; }
.case { min-height: 0; padding: var(--inset); border-radius: var(--r-section); }
.case__title { min-height: 0; line-height: .8; }
.case__text { max-width: none; margin-top: 12px; font-size: var(--fs-body); line-height: var(--lh-small); }
.case .stack { margin-block: auto 24px; }   /* остаток высоты — над коллажем, кнопки стоят на одной линии */
.case__text { margin-bottom: 14px; }
.stack { flex: none; min-height: calc(170 * var(--m)); margin-block: 14px 24px; }
.case .btn { margin-top: 0; }
.case--photo { min-height: 0; }   /* раньше 510·m тянула все карточки карусели и давала пустоту под кнопкой */
.case--photo .case__title { font-size: var(--fs-h3); }
.case--photo .case__bg { object-position: 50% 22%; }
.case__text--bottom { margin-top: auto; margin-bottom: 12px; }

/* ==========================================================================
   МАГАЗИН
   ========================================================================== */
.shop { padding: var(--sec) var(--gutter) 0; }
.shop__sub { margin-top: 12px; font-size: var(--fs-body); line-height: 1.2; }
.shop__grid { grid-template-columns: 1fr; margin-top: 24px; gap: var(--gap); }
.product { min-height: 0; padding: 16px; }
.product__kind { font-size: var(--fs-tiny); }
/* Одна обложка по центру карточки. */
.stack--shop { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: calc(200 * var(--m)); min-height: 0; margin-block: 12px 0; }
.stack--shop > .stack__cover { position: static; left: auto; top: auto; width: auto; height: 100%; max-width: 100%; min-height: 0; transform: none; border-radius: 12px; box-shadow: 0 14px 28px rgba(0, 0, 0, .28); }
.product__title { margin-top: 16px; font-size: var(--fs-card-t); line-height: 1.15; }
.product__desc { margin-top: 8px; font-size: var(--fs-tiny); line-height: var(--lh-small); }
.product__desc { margin-bottom: 16px; }
.product .price { margin-top: auto; margin-bottom: 12px; }   /* остаток высоты — над ценой; цена и кнопка у всех карточек на одной линии */
.product .btn { margin-top: 0; }

/* ==========================================================================
   ТЕСТ + ФИНАЛ + ПОДВАЛ
   ========================================================================== */
.finale { margin-top: var(--sec); }
.finale__frame { border-radius: 28px 28px 0 0; padding: var(--gutter) var(--gutter) 0; }

.final { min-height: 0; margin-inline: calc(-1 * var(--gutter)); padding: calc(44 * var(--m)) var(--gutter) calc(24 * var(--m)); overflow: hidden; }
.final::before { display: none; }
.final > * { position: static; inset: auto; }
.final {
  background: radial-gradient(ellipse 85% 30% at 50% 80%, rgba(140, 146, 168, .5) 0, rgba(140, 146, 168, 0) 100%);
}
.final__title { position: relative; inset: auto; z-index: 1; font-size: var(--fs-cta); line-height: .8; text-align: left; white-space: normal; }
.final__nb { display: block; white-space: nowrap; }
.final__cutout {
  display: block; position: relative; z-index: 2; width: min(100%, 480px); margin: calc(-3vw) auto 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 76%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 76%, transparent 100%);
}
.final__text { position: relative; inset: auto; z-index: 3; width: auto; margin-top: calc(-14vw); font-size: var(--fs-body); line-height: 1.2; max-width: calc(300 * var(--m)); }
.script-img--final { position: relative; inset: auto; z-index: 3; display: block; width: calc(220 * var(--m)); margin: 12px 0 0 auto; }
.final__cta { position: relative; inset: auto; z-index: 3; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.final__btn { flex: 1 0 100%; min-width: 0; }
.final__cta .socials { display: none; }   /* на мобилке иконки живут в подвале */
.social--red { width: var(--btn-h); height: var(--btn-h); min-width: 44px; }

/* Соцсети в подвале: белые, при тапе вспыхивают красным и плавно гаснут */
.socials--footer { display: flex; gap: 8px; margin-top: 28px; padding-right: 16px; }   /* запас справа под звёздочку Instagram */
.socials--footer .social { width: max(44px, calc(38 * var(--m))); height: max(44px, calc(38 * var(--m))); min-width: 44px; min-height: 44px; color: var(--c-white); transition: color .45s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.socials--footer .social:active { color: var(--c-red); transition-duration: 0s; transform: none; }
.socials--footer .social:focus-visible { color: var(--c-red); outline: 2px solid var(--c-red); outline-offset: 4px; border-radius: 12px; }

.footer { padding: calc(40 * var(--m)) var(--gutter) calc(24 * var(--m) + var(--safe-b)); }
.footer__glow { width: calc(360 * var(--m)); height: calc(180 * var(--m)); bottom: calc(-110 * var(--m)); }
.footer__top { grid-template-columns: 1fr 1fr; row-gap: 28px; }
.footer__logo { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
.footer__logo img { height: auto; width: min(100%, calc(260 * var(--m))); min-height: 0; }
.footer__top .nav { grid-row: 2; display: grid; gap: 4px; padding-top: 0; font-size: var(--fs-body); }
.footer__top .nav a { padding-block: 8px; }
.footer__top .nav--right { justify-self: start; }
.footer__bottom { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 32px; font-size: var(--fs-tiny); }
.footer__legal ul { margin-top: 12px; line-height: 1.5; }
.footer__legal a { display: inline-block; padding-block: 5px; }
.footer__made { text-align: left; }
.footer__note { margin-top: 20px; font-size: 12px; line-height: 1.3; }

/* ==========================================================================
   Анимации для касания (hover на телефоне нет)
   ========================================================================== */
/* Параллакс героя при скролле: фон и вырезка едут с разной скоростью, заголовки смещаются навстречу.
   Только там, где браузер умеет scroll-driven animations; иначе картинка просто стоит. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__bg      { animation: hero-bg linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero__cutout  { animation: hero-cut linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero__title--l { animation: hero-t-l linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .hero__title--r { animation: hero-t-r linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes hero-bg  { to { transform: translateY(8%) scale(1.04); } }
    @keyframes hero-cut { to { transform: translateY(4%); } }
    @keyframes hero-t-l { to { transform: translateX(-10%); opacity: .2; } }
    @keyframes hero-t-r { to { transform: translateX(10%);  opacity: .2; } }
  }
}
/* Аккордеон: плавное раскрытие там, где браузер умеет ::details-content */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .info__col::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .info__col[open]::details-content { block-size: auto; }
}
/* Нажатие на карточки: короткий «просед» вместо hover */
.case, .product, .tariff { transition: transform var(--dur-1) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.case:active, .product:active, .tariff:active { transform: scale(.992); }
.glow--tr, .glow--bl { animation-duration: 22s; }

/* 431–767: --m упирается в потолок 430, а карточка продолжает расти по ширине.
   Высоту коллажей держим пропорцией ширины, иначе фото налезают на кнопку. */
@media (min-width: 431px) {
  .stack { min-height: 0; aspect-ratio: 355 / 224; }
  .stack--shop { height: calc(200 * var(--m)); }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .menu__nav a, .menu__bottom, .wa-fab { transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ---------- Карусели: однотипные карточки едут вбок (тарифы, кейсы, материалы) ---------- */
.tariffs, .tariffs--3, .cases__grid, .shop__grid {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin-inline: calc(-1 * var(--inset)); padding-inline: var(--inset);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tariffs::-webkit-scrollbar, .cases__grid::-webkit-scrollbar, .shop__grid::-webkit-scrollbar { display: none; }
.tariffs > *, .cases__grid > *, .shop__grid > * { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; }
.cases__grid, .shop__grid { gap: var(--gap); }
.tariffs > .tariff, .shop__grid > .product, .cases__grid > .case { align-self: stretch; }
.tariffs > .tariff { display: flex; flex-direction: column; }
.tariffs > .tariff .price { margin-top: auto; }
.tariffs > .tariff .tariff__desc { margin-bottom: 20px; }
.tariffs > .tariff .btn { margin-top: 0; }
/* Карточки в каруселях не выплывают при свайпе (раньше каждая въезжала на 24 px вверх и мигала прозрачностью — страница «тряслась») */
.js .tariffs > [data-reveal], .js .cases__grid > [data-reveal], .js .shop__grid > [data-reveal] { opacity: 1; transform: none; transition: none; }
.case:active, .product:active, .tariff:active { transform: none; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .25; transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.carousel-dots i.is-on { opacity: 1; transform: scale(1.25); }
.carousel-dots[hidden] { display: none; }
@media (min-width: 600px) { .shop__grid > * { flex: 1 0 calc(50% - var(--gap) / 2); max-width: none; } }
.product__kind::after { top: 12px; right: 12px; width: 36px; height: 36px; background-size: 18px; }
