/* ==========================================================================
   Стальная линия — лендинг
   Источник: Figma «платформа workplace», фрейм landing (1440) + mob (390)
   ========================================================================== */

:root {
  /* Цвета */
  --c-navy: #061f3b;
  --c-ink: #1a2320;
  --c-ink-2: #0e172a;
  --c-muted: #5e6c66;
  --c-muted-2: #6c7280;
  --c-blue: #1e67b9;
  --c-chip-bg: #f2f8ff;
  --c-chip-text: #757382;
  --c-divider: rgba(194, 194, 194, 0.4);
  --c-cta-bg: #fbfbfb;
  --c-footer-bg: #f1f2f4;

  /* Градиент основной кнопки (radial из макета, пересчитан в % от размеров кнопки) */
  --grad-primary:
    radial-gradient(35.56% 91.86% at 50% 118.6%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(49.69% 49.69% at 52.16% 1.16%, #4996ea 0%, #347ed2 50%, #1e67b9 100%);

  /* Шрифты */
  --f-manrope: "Manrope", system-ui, sans-serif;
  --f-inter: "Inter", system-ui, sans-serif;
  --f-chip: "Google Sans", "Manrope", system-ui, sans-serif;

  --page-x: 60px;
  /* Колонка 1280px из макета: на широких экранах шапка и первый экран не расползаются к краям */
  --wrap-min: 80px;
  --wrap-x: max(var(--wrap-min), calc((100vw - 1280px) / 2));
  --header-h: 120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: #fff;
  color: var(--c-ink);
  font-family: var(--f-manrope);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
/* перенос и текст только для телефона / только для компьютера */
.br-mobile { display: none; }
@media (max-width: 767px) {
  .br-mobile { display: inline; }
  .desk-only { display: none; }
}
img { display: block; max-width: none; }
/* Типографика: заголовки делятся на строки поровну, в абзацах нет одинокого слова в последней строке */
h1, h2, h3, h4,
.section__title, .cta__title, .lead__title { text-wrap: balance; }
p, li, .section__lead, .feature__text, .eng-card__text, .idea2-card__text, .beyond-card__text { text-wrap: pretty; }
/* телефоны не переносим */
a[href^="tel:"] { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--f-manrope);
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s, background-color 0.2s, border-color 0.2s;
}
/* Стрелки в кнопках опущены на 1px: буквы в кнопках в основном строчные, и их видимый центр ниже
   геометрического — так стрелка оптически встаёт ровно по середине текста */
.btn img { flex: none; transform: translateY(1px); transition: transform 0.2s; }
.btn:hover img { transform: translate(3px, 1px); }
.btn--lg { height: 48px; }

.btn--gradient { background: var(--grad-primary); color: #fff; }
.btn--gradient.btn--lg { gap: 12px; }
.btn--gradient:hover { filter: brightness(1.08); }

.btn--solid { background: var(--c-blue); color: #fff; }
.btn--solid:hover { filter: brightness(1.1); }

.btn--outline { border: 1px solid rgba(26, 35, 32, 0.48); color: var(--c-navy); }
.btn--outline-soft { border-color: rgba(6, 31, 59, 0.32); }
.btn--outline:hover { border-color: var(--c-navy); background: rgba(6, 31, 59, 0.03); }

.btn--outline-sm {
  border: 1px solid rgba(0, 0, 0, 0.48);
  padding: 8px 16px;
  color: #000;
  font-weight: 600;
}
.btn--outline-sm:hover { border-color: #000; }

.btn--glass,
.btn--outline-light {
  gap: 12px;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.btn--glass {
  background: rgba(255, 255, 255, 0.18);
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.26); }
.btn--outline-light { border: 1px solid #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }

/* Закреплённая кнопка заявки — только на телефоне */
.sticky-cta { display: none; }

/* Уведомление о cookie */
.cookie {
  position: fixed;
  z-index: 60;
  left: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--c-navy);
  box-shadow: 0 12px 40px rgba(6, 31, 59, 0.18);
  animation: cookie-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .cookie { animation: none; } }
.cookie__text { font-family: var(--f-inter); font-size: 14px; line-height: 1.45; color: var(--c-muted); text-wrap: pretty; }
.cookie__actions { display: flex; gap: 8px; }
.cookie__btn { flex: 1; justify-content: center; height: 44px; padding: 0 16px; }
.reviews__more .arrow-dark { display: none; }

.actions { display: flex; gap: 12px; justify-content: center; }

/* Кнопка «Смотреть каталог» — только в мобильном макете */
.btn--mobile {
  display: none;
  justify-content: center;
  gap: 10.145px;
  padding: 13.527px 20.29px;
  border: 0.845px solid var(--c-navy);
  border-radius: 3.382px;
  color: var(--c-navy);
  font-weight: 600;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 9.413px 14.12px 7.06px;
  border-radius: 23.533px;
  font-family: var(--f-manrope);
  font-weight: 700;
  font-size: 13px;
  line-height: 18.826px;
  letter-spacing: 0.2353px;
  white-space: nowrap;
}
.tag--light { border: 1.177px solid rgba(255, 255, 255, 0.48); color: #fff; }
.tag--blue { border: 1.177px solid var(--c-blue); color: var(--c-blue); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--wrap-x);
  background: #fff;
  backdrop-filter: blur(12px);
}
.header__logo { flex: none; display: block; width: 246.805px; height: 44px; }
.header__logo img { margin: 0.92px 0 0 0.15px; }
.header__logo-mobile { display: none; }

.header__nav {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-navy);
  white-space: nowrap;
}
.header__nav a:hover { color: var(--c-blue); }

.header__address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-navy);
  white-space: nowrap;
}
.header__burger { display: none; }

.header__facts {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 10px 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)), #fff;
  backdrop-filter: blur(12px);
}
.fact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-blue);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
/* Слайдер высотой 811px. Баннеры 1713×811: исходный кадр 1442px + фон, дорисованный для широких экранов.
   У каждого слайда своя привязка (--x — десктоп, --xm — телефон), чтобы на 1440 был виден исходный кадр, а на телефоне — дверь. */
.hero {
  position: relative;
  height: 811px;
  overflow: hidden;
  color: #fff;
}
.hero__slides,
.hero__slide,
.hero__canvas {
  position: absolute;
  inset: 0;
}
.hero__slide { opacity: 0; transition: opacity 0.8s ease; }
/* листание жестами: горизонтальный свайп/перетаскивание забирает слайдер, вертикальный — прокрутка страницы */
.hero { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero.is-grabbing { cursor: grabbing; }
.hero a, .hero button { cursor: pointer; }
.hero__slide.is-active { opacity: 1; }
.hero__canvas picture { display: contents; }
.hero__canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--x, 50%) 50%;
}
.hero__scrim { display: none; }
/* Блок с текстом: 92px сверху, как в макете; индикатор слайдов внизу —
   отступ снизу равен отступу слева (80px; 40px на ноутбуках; 24px на телефоне) */
.hero__inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--wrap-x);
  right: var(--wrap-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__steps { position: absolute; left: 0; bottom: var(--wrap-min); }
.hero__content { display: flex; flex-direction: column; gap: 40px; width: 640px; max-width: 100%; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.1;
}
.hero__lead {
  font-family: var(--f-inter);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__steps { display: flex; gap: 8px; }
.hero__steps button {
  width: 19px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(252, 245, 255, 0.24);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
/* увеличенная зона нажатия */
.hero__steps button::before { content: ""; position: absolute; inset: -10px -4px; }
/* Активная полоска заполняется за время показа слайда */
.hero__steps button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero__steps button[aria-selected="true"]::after { animation: step-fill var(--slide-ms, 6000ms) linear forwards; }
@keyframes step-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__steps button[aria-selected="true"]::after { animation: none; transform: none; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker var(--ticker-dur, 40s) linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; gap: 4px; padding-right: 4px; }
.ticker__list li {
  padding: 8px 10px 6px;
  border-radius: 20px;
  background: var(--c-chip-bg);
  color: var(--c-chip-text);
  font-family: var(--f-chip);
  font-size: 11.2px;
  line-height: 16px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(calc(-1 * var(--ticker-shift, 50%))); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- Sections (common) ---------- */
.section { padding: 100px var(--page-x); }
.section__head { display: flex; flex-direction: column; gap: 24px; }
.section__head--center { align-items: center; text-align: center; }
.section__title {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--c-ink);
}
.section__lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-muted);
}
.divider {
  height: 1px;
  margin: 0 var(--page-x);
  border: 0;
  background: url("assets/icons/divider.svg") no-repeat 0 0 / 100% 100%;
}

.scroller {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar { display: none; }
[data-drag] { cursor: grab; }
[data-drag].is-dragging { cursor: grabbing; scroll-snap-type: none; }
[data-drag].is-dragging * { pointer-events: none; user-select: none; }

/* Общая карточка (изображение + подпись) */
.feature { display: flex; flex-direction: column; min-width: 0; }
.feature__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.feature__media img { position: absolute; }
.feature__title {
  font-family: var(--f-inter);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.24px;
  color: var(--c-ink-2);
}
.feature__text {
  font-family: var(--f-inter);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.18px;
  color: var(--c-muted-2);
}

/* ---------- Video reviews ---------- */
.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px max(var(--page-x), calc((100% - 1040px) / 2)) 80px;
}
.reviews .section__head { width: 100%; max-width: 1040px; }
.reviews__grid {
  display: flex;
  gap: 24px;
  margin: 48px 0 56px;
  max-width: 1040px;
}
.video-card { flex: 0 1 241.707px; min-width: 200px; display: flex; flex-direction: column; }
/* Центрирование, которое не ломает прокрутку: пока карточки помещаются — они по центру,
   если не помещаются — лента начинается от левого отступа */
.reviews__grid > :first-child { margin-left: auto; }
.reviews__grid > :last-child { margin-right: auto; }
.video-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 241.707 / 373.926;
  margin: 0 0 16.025px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.video-card__thumb > img { width: 100%; height: 100%; object-fit: cover; }
/* Лёгкий зум фото при наведении на карточку — для всех карточек сайта */
.video-card__thumb > img,
.zoom,
.beyond-card__crop,
.beyond-card__img--1 { transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.zoom { position: absolute; inset: 0; }
.video-card:hover .video-card__thumb > img,
.feature:hover .zoom,
.idea2-card__media:hover .zoom,
.salon-gallery__item:hover .zoom,
.eng-card:hover .zoom,
.beyond-card:hover .beyond-card__crop { transform: scale(1.05); }
.beyond-card--1:hover .beyond-card__img--1 { transform: scaleX(-1) scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .video-card__thumb > img,
  .zoom,
  .beyond-card__crop,
  .beyond-card__img--1 { transition: none; }
}
/* превью ролика без звука при наведении */
.video-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.video-card__preview.is-playing { opacity: 1; }
.video-card:hover .video-card__preview { transform: scale(1.05); }
.video-card__badge {
  z-index: 1;
  position: absolute;
  left: 16.03px;
  bottom: 15.54px;
  display: inline-flex;
  align-items: center;
  gap: 8.013px;
  padding: 8.013px 13.355px;
  border-radius: 133.545px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: var(--f-inter);
  font-weight: 500;
  font-size: 16.025px;
  line-height: normal;
}
.video-card__title { font-weight: 700; font-size: 18px; line-height: normal; color: var(--c-ink); }
.video-card__text {
  margin-top: 2px;
  font-family: var(--f-inter);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-muted);
}
.video-card:last-child .video-card__text { margin-top: 5.342px; font-size: 16.095px; }

/* ---------- Idea ---------- */
.idea { display: flex; flex-direction: column; gap: 56px; background: #fff; }
.idea__head { display: flex; flex-direction: column; gap: 32px; }
.idea__sub { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.idea__sub .section__lead { width: 790px; max-width: 100%; }
.idea__sub .btn { flex: none; }
.idea__grid { display: flex; gap: 24px; }
.idea__grid .feature { flex: 1 1 0; gap: 24px; }
.idea__grid .feature__text { margin-top: -12px; }
.idea__media { aspect-ratio: 424 / 470; }
.idea__img-1 { top: 0; left: -29.62%; width: 218.14%; height: 100%; }
.idea__img-2 { top: -32.13%; left: -121.78%; width: 350.17%; height: 149.97%; }
.idea__img-3 { top: -8.49%; left: -0.03%; width: 100.03%; height: 126.04%; }

/* ---------- Idea, вариант 2: большая карточка + две маленькие (Figma 193:1444) ---------- */
/* Карточки стоят на месте; по стрелкам внутри них «перетекают» фото и меняются подписи (script.js) */
.idea2__stage {
  position: relative;
  display: grid;
  grid-template-columns: 572.806fr 349.598fr 349.598fr;
  column-gap: 24px;
  align-items: start;
}
.idea2-card { grid-row: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.idea2-card[data-pos="0"] { grid-column: 1; }
.idea2-card[data-pos="1"] { grid-column: 2; }
.idea2-card[data-pos="2"] { grid-column: 3; }
.idea2-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 572.806 / 620; /* у маленьких карточек те же пропорции: 349.6 × 378.4 */
  padding: 0;
  border: 0;
  border-radius: 8px; /* как у карточек видеообзоров */
  overflow: hidden;
  background: #2b2d31;
  cursor: pointer;
  isolation: isolate;
}
.idea2-card--big .idea2-card__media { cursor: default; }
/* слои фото: текущее и новое, которое «натекает» поверх */
.idea2-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.idea2-card__go {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  right: 24.408px;
  bottom: 24.401px;
}
.idea2-card--big .idea2-card__go { right: 32.806px; bottom: 32.42px; }
.idea2-card__go > img { grid-area: 1 / 1; }
.idea2-card__corner { transform: rotate(90deg); }
.idea2-card__desc { display: flex; flex-direction: column; gap: 12px; }
.idea2-card__title { font-weight: 600; font-size: 20px; line-height: 1.1; color: var(--c-ink); }
.idea2-card__text {
  font-family: var(--f-inter);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.16px;
  color: var(--c-muted-2);
}

/* лента для телефона — на компьютере скрыта */
.idea2__mobile { display: none; }
.idea2__nav {
  grid-column: 2 / 4;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 2px;
}
.idea2__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}
.idea2__btn > img { position: absolute; inset: 0; }
.idea2__btn:hover { background: rgba(14, 23, 42, 0.04); }
.idea2__btn:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.idea2__btn-arrow { display: grid; place-items: center; width: 24px; height: 24px; }
.idea2__btn-arrow img { transform: rotate(135deg); }
.idea2__btn--prev .idea2__btn-arrow img { transform: rotate(-45deg); }

/* ---------- Beyond standard ---------- */
.beyond {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 100px 0 80px;
  background: #fefeff;
}
.beyond .section__head { padding: 0 var(--page-x); }
/* Карусель по центру: активная карточка в центре экрана, соседние выглядывают по бокам и мягко бледнеют к краю (до 40% видимости).
   Отступы ленты (--pad-l/--pad-r), ширину fade (--fade) и масштаб карточек (--s) считает script.js */
.beyond__track {
  display: flex;
  align-items: center;
  gap: 28.085px;
  padding: 0 var(--pad-r, 70px) 0 var(--pad-l, 70px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0, #000 var(--fade, 0px), #000 calc(100% - var(--fade, 0px)), rgba(0, 0, 0, 0.4) 100%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0, #000 var(--fade, 0px), #000 calc(100% - var(--fade, 0px)), rgba(0, 0, 0, 0.4) 100%);
}
/* Карточка = макетный размер × масштаб: фото, выноски и текст уменьшаются вместе, ничего не съезжает */
.beyond-card {
  --w: 1475px;
  position: relative;
  flex: none;
  width: calc(var(--w) * var(--s, 1));
  height: calc(550px * var(--s, 1));
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: center;
  color: #fff;
}
.beyond-card--1 { --w: 1275px; }
.beyond-card--4,
.beyond-card--5 { --w: 1474.468px; }
.beyond-card__stage {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  height: 550px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
}
.beyond-card--5,
.beyond-card--5 .beyond-card__crop { border-radius: 12px; }

.beyond-card__img--1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.beyond-card__crop { position: absolute; inset: 0; overflow: hidden; border-radius: 8px; }
.beyond-card__crop > img { position: absolute; }
.beyond-card__img--2 { left: -0.02%; top: -12.43%; width: 130.72%; height: 124.78%; }
.beyond-card__img--3 { left: 0.04%; top: -17.02%; width: 99.95%; height: 134.1%; }
.beyond-card__img--4 { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beyond-card__img--5 { left: 0.01%; top: -6.56%; width: 100.02%; height: 135.81%; }

.beyond-card__shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 876px;
  height: 550px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 1.484%, rgba(0, 0, 0, 0));
}
/* Размытие фона слабеет вместе с градиентом, как в Figma — без жёсткой границы */
.beyond-card__shade::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  -webkit-mask-image: linear-gradient(90deg, #000 1.484%, transparent);
          mask-image: linear-gradient(90deg, #000 1.484%, transparent);
}
.beyond-card__body {
  position: absolute;
  top: 56px;
  left: 56.79px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 433px;
  height: 438px;
}
.beyond-card__body--445 { width: 445px; }
.beyond-card__body--349 { width: 349px; }
.beyond-card__desc { display: flex; flex-direction: column; gap: 24px; }
.beyond-card__title { font-weight: 600; font-size: 36px; line-height: 1.2; }
.beyond-card__text {
  font-family: var(--f-inter);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.18px;
}
.beyond-card__text { width: 457.716px; }
.beyond-card__body--349 .beyond-card__text { width: 348px; } /* 346 в макете + запас на субпиксельный рендер */

/* Стрелки каруселей «За рамками…» и «Красота…» */
.slider-nav {
  display: flex;
  gap: 8px;
  align-self: flex-end;
  margin: -24px var(--nav-x, var(--page-x)) 0 0;
}
.beyond .slider-nav { align-self: center; margin-right: 0; }
.eng .slider-nav { margin-top: -56px; }
.slider-nav__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f2f4;
  color: #8a919c;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.slider-nav__btn--prev svg { transform: scaleX(-1); }
.slider-nav__btn:hover:not(:disabled) { background: #e4e7eb; color: var(--c-navy); }
.slider-nav__btn:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.slider-nav__btn:disabled { opacity: 0.45; cursor: default; }

/* Выноски на фото */
.callouts { position: absolute; inset: 0; }
.callouts > *,
.callout-group > * { position: absolute; }
.callout-label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.24px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.callout-label.is-dim { color: rgba(255, 255, 255, 0.8); }
.callout-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 77.624px;
  height: 63.5px;
}
.callout-line img { transform: rotate(-23.96deg); }
.callout-group { width: 118px; height: 97px; }
.is-flipped { transform: scaleY(-1); }
.callout-stack { top: 52px; display: flex; flex-direction: column; align-items: flex-start; }
.callout-stack--gap { gap: 8px; }
.callout-stack .callout-label { white-space: normal; min-width: 100%; }
.callout-stack > * { position: static; }
.blur-patch {
  top: 65.53px;
  width: 184.894px;
  height: 43.298px;
  background: #727272;
  filter: blur(2.34px);
}

/* ---------- Engineering ---------- */
.eng { display: flex; flex-direction: column; gap: 80px; padding-left: 0; padding-right: 0; }
.eng__head {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 0 var(--page-x);
}
.eng__head .section__title { flex: 1 1 0; }
.eng__brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-family: var(--f-inter);
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.2px;
  color: var(--c-ink);
}
.eng__track {
  display: flex;
  gap: 28.24px;
  padding: 16px var(--page-x) 24px;
  margin: -16px 0 -24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--page-x);
}
.eng-card {
  position: relative;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 1158px;
  height: 558px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  filter: drop-shadow(0 4.192px 12.577px rgba(0, 0, 0, 0.06));
  scroll-snap-align: start;
}
.eng-card:nth-child(n + 3) { border-radius: 12.577px; }
.eng-card__tag { position: absolute; top: 20px; left: 24px; }
.eng-card__desc { display: flex; flex-direction: column; gap: 24px; width: 503.605px; }
.eng-card__desc--cta { gap: 32px; align-items: flex-start; }
.eng-card__copy { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.eng-card__title { font-weight: 500; font-size: 36px; line-height: 1.2; color: var(--c-ink); }
.eng-card__text {
  width: 457.716px;
  font-family: var(--f-inter);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.18px;
  color: var(--c-muted-2);
}
.eng-card__desc--cta .eng-card__text { width: auto; }
.eng-card__media {
  position: relative;
  flex: none;
  width: 541px;
  height: 510px;
  border-radius: 8px;
  overflow: hidden;
}
.eng-card__media--1 {
  background: radial-gradient(50% 50% at 50% 50%, #a7a5a5 0%, #87868b 100%);
}
.eng-card__media--2 {
  width: 541.257px;
  background: radial-gradient(50% 50% at 50% 50%, #f0f0f0 0%, #d1d0d2 100%);
}
.eng-crop { position: absolute; overflow: hidden; }
.eng-crop--frame { border-radius: 13.718px; }
.eng-crop--r8 { border-radius: 8px; }
/* фото, уже кадрированные под карточку (541×510) */
.eng-img-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eng-crop img,
.eng-img-abs { position: absolute; }
.eng-crop img.is-fill { inset: 0; width: 100%; height: 100%; object-position: bottom; }

/* ---------- Doors ---------- */
.doors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  padding: 100px 200px;
  background: #fff;
}
.doors .section__head { width: 100%; }
.doors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  width: 1040px;
  max-width: 100%;
}
.doors__grid .feature { gap: 16px; }
.doors__grid .feature__text { margin-top: -8px; }
/* «Индивидуальные входные группы» — того же размера, что остальные, по центру последнего ряда */
.doors__wide { grid-column: 1 / -1; }
.doors__media { aspect-ratio: 508 / 509; }
.doors__media--wide { aspect-ratio: 1040 / 509; }
/* кнопка-стрелка → раздел каталога */
.doors__link {
  position: absolute; z-index: 2; right: 24px; bottom: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .3s ease;
}
.doors__link:hover { transform: scale(1.08); }
.doors__link:focus-visible { outline: 2px solid #1e67b9; outline-offset: 3px; }
.doors__go { display: grid; place-items: center; }
.doors__go > img { grid-area: 1 / 1; position: static; }
.doors__corner { transform: rotate(90deg); }
.doors .actions { margin-top: -32px; }

/* ---------- Final CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 200px 100px;
  background: var(--c-cta-bg);
  text-align: center;
}
.cta__texts { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.cta__title {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: var(--c-navy);
}
.cta__lead { width: 766px; max-width: 100%; }
.cta__actions { display: flex; gap: 8px; margin-top: 40px; }

/* ---------- Мини-галерея салона (финальный блок) ---------- */
.salon-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 1040px;
  height: 560px;
  margin-top: 56px;
}
.salon-gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e9eaec;
  cursor: zoom-in;
}
.salon-gallery__item--main { grid-row: 1 / 3; }
.salon-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.salon-gallery__item:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.salon-gallery__caption {
  margin-top: 16px;
  font-family: var(--f-inter);
  font-size: 14px;
  color: var(--c-muted);
}

/* Просмотр фото: та же оболочка, что у плеера видео, но фото в своих пропорциях */
.gallery-view__stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  max-width: calc(100vw - 160px);
}
.gallery-view__img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 96px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #111;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 64px var(--wrap-x) 40px;
  background: var(--c-footer-bg);
  color: var(--c-navy);
}
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer__rep { display: flex; flex-direction: column; gap: 24px; }
.footer__logo {
  display: block;
  width: 266.341px; /* 213×48 в макете, увеличен на 25% */
  height: 60px;
  background: var(--c-navy);
  -webkit-mask: url("assets/img/footer-logo-mask.png") no-repeat 0 0 / 100% 100%;
          mask: url("assets/img/footer-logo-mask.png") no-repeat 0 0 / 100% 100%;
}
.footer__rep-text { font-size: 14px; line-height: 1.4; }
.footer__nav {
  display: flex;
  gap: 48px;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}
.footer__nav a:hover,
.footer__legal a:hover { color: var(--c-blue); }
.footer__salons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 32px 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(6, 31, 59, 0.1);
}
.footer-salon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
}
.footer-salon__name { margin-bottom: 4px; font-weight: 700; font-size: 16px; }
.footer-salon__muted { color: var(--c-muted); }
.footer-salon__links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.footer__phone { font-weight: 700; font-size: 18px; }
.footer-salon a:hover { color: var(--c-blue); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.footer__legal { display: flex; gap: 24px; }

/* ---------- Форма заявки (модальное окно) ---------- */
.lead {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(120% 260px at 50% 0, #eef5ff 0%, rgba(238, 245, 255, 0) 100%) no-repeat,
    #fff;
  color: var(--c-navy);
  box-shadow: 0 24px 64px rgba(6, 31, 59, 0.18);
  overflow: auto;
  overscroll-behavior: contain;
}
/* тонкий аккуратный скроллбар в модалках */
@supports not selector(::-webkit-scrollbar) {
  .lead { scrollbar-width: thin; scrollbar-color: rgba(6, 31, 59, 0.18) transparent; }
}
.lead::-webkit-scrollbar { width: 10px; }
.lead::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.lead::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: rgba(6, 31, 59, 0.18) padding-box;
}
.lead::-webkit-scrollbar-thumb:hover { background-color: rgba(6, 31, 59, 0.32); }
.lead::backdrop {
  background: rgba(6, 31, 59, 0.48);
  backdrop-filter: blur(4px);
}
.lead[open] { animation: lead-in 0.25s ease; }
@keyframes lead-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .lead[open] { animation: none; } }
body.has-modal { overflow: hidden; }

.lead__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-navy);
  cursor: pointer;
}
.lead__close:focus { outline: none; }
.lead__close:focus-visible { box-shadow: 0 0 0 2px rgba(30, 103, 185, 0.45); }

.lead__form,
.lead__done { display: flex; flex-direction: column; gap: 22px; padding: 64px 80px 56px; }
.lead__head {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-bottom: 8px; text-align: center;
}
.lead__head .lead__lead { max-width: 480px; }
/* тег «Бесплатный подбор» в окне — компактный */
.lead__head .tag {
  padding: 5px 10px 4px;
  border-width: 1px;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.2px;
}
.lead__title {
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--c-navy);
}
.lead__lead { font-size: 16px; line-height: 1.5; color: var(--c-muted); }

.lead__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.lead__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  color: var(--c-navy);
}
/* линия-связка между шагами */
.lead__steps li + li::before {
  content: "";
  position: absolute;
  top: 16px;
  right: calc(50% + 24px);
  width: calc(100% - 48px);
  border-top: 1.5px dashed rgba(30, 103, 185, 0.3);
}
.lead__steps span {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(30, 103, 185, 0.35), 0 4px 12px rgba(30, 103, 185, 0.1);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue);
}

.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-weight: 600; font-size: 14px; color: var(--c-navy); }
.field__hint { margin-left: 4px; font-weight: 400; font-size: 13px; color: var(--c-muted); }
.field__error { min-height: 0; font-family: var(--f-inter); font-size: 12px; color: #c53b3b; }
.field__error:empty { display: none; }

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(6, 31, 59, 0.16);
  border-radius: 4px;
  background: #fff;
  color: var(--c-navy);
  font-family: var(--f-inter);
  font-size: 16px; /* 16px — чтобы iOS не зумил поле */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: rgba(94, 108, 102, 0.7); }
.input:hover { border-color: rgba(6, 31, 59, 0.32); }
.input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(30, 103, 185, 0.12); }
.input--area { height: auto; min-height: 88px; padding: 14px 16px; line-height: 1.4; resize: vertical; }
.field.is-invalid .input { border-color: #c53b3b; }

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1.5px dashed rgba(30, 103, 185, 0.4);
  border-radius: 8px;
  background: var(--c-chip-bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone:hover,
.dropzone.is-over { border-color: var(--c-blue); background: #e8f2ff; }
.dropzone:focus-within { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(30, 103, 185, 0.12); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__icon { color: var(--c-blue); margin-bottom: 4px; }
.dropzone__text { font-size: 15px; color: var(--c-navy); }
.dropzone__text b { font-weight: 700; color: var(--c-blue); }
.dropzone__sub { font-family: var(--f-inter); font-size: 13px; color: var(--c-muted); }

.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews:empty { display: none; }
.preview {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-chip-bg);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview__name {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 4px;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  word-break: break-all;
  color: var(--c-muted);
}
.preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 31, 59, 0.72);
  color: #fff;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--f-inter);
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-muted);
  cursor: pointer;
}
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--c-blue); }
.check a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }

.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lead__submit { width: 100%; justify-content: center; height: 52px; font-size: 15px; }
.lead__submit[disabled] { opacity: 0.7; cursor: progress; }
.lead__status { font-family: var(--f-inter); font-size: 14px; line-height: 1.4; color: #c53b3b; text-align: center; }
.lead__status:empty { display: none; }
.lead__status.is-info { color: var(--c-navy); }
.lead__status a { color: var(--c-blue); font-weight: 600; white-space: nowrap; }

.lead__done { align-items: center; text-align: center; padding: 72px 80px; }
.lead__done .lead__lead { max-width: 440px; }
.lead__submit + .lead__status, .lead__submit { margin-top: 4px; }
.lead__done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-chip-bg);
  color: var(--c-blue);
}
.lead__done .btn { margin-top: 8px; }

/* ---------- Все видеообзоры (модальное окно) ---------- */
.reels { width: min(1160px, calc(100vw - 32px)); }
.reels__body { display: flex; flex-direction: column; gap: 40px; padding: 40px; }
.reels__head { display: flex; flex-direction: column; gap: 12px; padding-right: 48px; }
.reels__group { display: flex; flex-direction: column; gap: 20px; }
.reels__group-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--c-ink);
}
.reels__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 32px 20px;
}
.reels .video-card { min-width: 0; }
.reels .video-card__thumb { margin-bottom: 12px; }
.reels .video-card__title { font-size: 16px; line-height: 1.3; }

/* ---------- Большой плеер видеообзоров ---------- */
.player {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.player::backdrop { background: rgba(6, 12, 20, 0.88); backdrop-filter: blur(6px); }
.player[open] { display: grid; place-items: center; animation: lead-in 0.25s ease; }
.player__stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* вертикальное видео 9:16 почти на всю высоту экрана */
  height: min(calc(100dvh - 48px), 1280px);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 160px);
}
.player__video {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}
.player__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}
.player__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.player__count { flex: none; font-family: var(--f-inter); font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.player__nav,
.player__close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.player__nav:hover,
.player__close:hover { background: rgba(255, 255, 255, 0.24); }
.player__nav:focus { outline: none; }
.player__nav:focus-visible,
.player__close:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }
.player__close:focus { outline: none; }
.player__nav { top: 50%; transform: translateY(-50%); right: 24px; }
.player__nav--prev { left: 24px; right: auto; }
.player__nav--prev svg { transform: scaleX(-1); }
.player__close { top: 20px; right: 24px; }
.player__nav[hidden] { display: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1365px) {
  :root { --wrap-min: 40px; }
  .header__nav { gap: 24px; }
  .reviews,
  .doors,
  .cta { padding-left: var(--page-x); padding-right: var(--page-x); }
  .footer { padding-left: var(--page-x); padding-right: var(--page-x); }
  .footer__nav { gap: 28px; }
}

@media (max-width: 1199px) {
  .header__address { display: none; }
  .footer__top { flex-wrap: wrap; }
  .footer__nav { order: 3; width: 100%; flex-wrap: wrap; gap: 16px 32px; }
}

@media (max-width: 1099px) {
  /* Ручные переносы из макета рассчитаны на 1440 — на узких экранах текст переносится сам */
  .section__lead .br-desktop,
  .hero__lead .br-desktop,
  .section__title .br-desktop,
  .cta__title .br-desktop { display: none; }

  .reviews__grid {
    max-width: calc(100% + 2 * var(--page-x));
    margin-left: calc(-1 * var(--page-x));
    margin-right: calc(-1 * var(--page-x));
    padding: 0 var(--page-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--page-x);
  }
  .video-card { scroll-snap-align: start; }
}

@media (max-width: 1023px) {
  :root { --page-x: 32px; --header-h: 64px; }

  /* Header → бургер */
  .header__main { padding: 16px 24px; }
  .header__logo { width: 179.494px; height: 32px; }
  .header__logo-desktop { display: none; }
  .header__logo-mobile { display: block; margin: 0.67px 0 0 0.1px; }
  .header__cta { display: none; }
  .header__facts { display: none; }
  .header__burger {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(6, 31, 59, 0.08);
    font-size: 16px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .header__nav a { padding: 14px 0; border-bottom: 1px solid var(--c-divider); }
  .header.is-open .header__nav { visibility: visible; opacity: 1; transform: none; }

  .section__title,
  .cta__title { font-size: 40px; }

  .idea__sub { flex-direction: column; align-items: flex-start; }

  .eng__head { flex-direction: column; gap: 24px; }

  .footer__top { flex-direction: column; }
}

@media (max-width: 767px) {
  :root { --page-x: 12px; }
  .br-desktop { display: none; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .section__title,
  .cta__title { font-size: 32px; letter-spacing: -0.32px; }
  .section__lead { font-size: 16px; }
  .section__head--center .section__title { text-wrap: balance; }

  .btn--lg { width: 100%; justify-content: center; }
  .btn--mobile { display: flex; margin: 0 var(--page-x); }
  .reviews .section__head { align-items: flex-start; text-align: left; }
  .actions { flex-direction: column; width: 100%; padding: 0 var(--page-x); }

  /* Hero */
  /* баннер на 15% выше свободной высоты экрана (экран − шапка 64px − бегущая строка 62px);
     svh — без учёта панелей браузера. Фото 390×785 подрезается (object-fit: cover),
     баннер не выше самого фото и не ниже 480px */
  .hero {
    height: clamp(520px, calc((100svh - 64px - 62px) * 1.15 - 16px), calc(100vw * 1570 / 780)); /* +15% и −16px: бегущая строка — по скроллу */
    min-height: 0;
    aspect-ratio: auto;
  }
  .hero__canvas img { object-position: var(--xm, 70%) 50%; }
  /* у слайдов с отдельным мобильным фото кадр уже готов — показываем целиком */
  /* Фото подрезается сверху — убираем пространство над дверью (верх двери ≈ 13% кадра 780×1570):
     дверь поднимается к верху баннера и меньше уходит под текст. Сдвиг считается от высоты фото
     (100vw × 1570/780): срезаем 12% кадра и возвращаем 32px — над дверью остаётся ~40px воздуха. max(…, 100%) — чтобы низ фото
     никогда не отрывался от низа баннера */
  .hero__canvas picture img { object-position: 50% max(calc(32px - 100vw * 1570 / 780 * 0.12), 100%); }
  /* На телефоне подложка из макета уходит за край кадра — затемняем верх под текстом */
  /* Мобильный первый экран — по макету Figma 211:1112 (390×785) */
  /* затемнение под текстом снизу: градиент + размытие, которое слабеет кверху */
  .hero__scrim {
    display: block;
    position: absolute;
    inset: auto 0 0;
    height: 303px;
    background: linear-gradient(0deg, rgba(9, 10, 6, 0.48) 1.484%, rgba(9, 10, 6, 0));
  }
  .hero__scrim::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(0deg, #000 1.484%, transparent);
            mask-image: linear-gradient(0deg, #000 1.484%, transparent);
  }
  .hero__inner {
    position: absolute;
    inset: 0;
    padding: 0 24px 32.27px;
    justify-content: flex-end;
  }
  .hero__content { gap: 24px; width: 100%; }
  .hero__text { gap: 16px; }
  .hero__title { font-size: 28px; line-height: 1.1; }
  .hero__lead { font-size: 15px; line-height: 1.3; }
  /* в баннере — «Смотреть каталог» в стеклянном стиле; заявка — в закреплённой кнопке снизу */
  .hero__actions .btn--glass { display: none; }
  .hero__actions .btn--outline-light {
    background: rgba(255, 255, 255, 0.18);
    border: 0.423px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .hero__actions .btn--outline-light img { width: 20.29px; height: 20.29px; }
  .hero__actions .btn--outline-light,
  .hero__actions .btn--glass {
    gap: 10.145px;
    padding: 13.527px 20.29px;
    border-width: 0.423px;
    border-radius: 3.382px;
    font-size: 13px;
  }
  .hero__actions .btn--glass img { width: 20.29px; height: 20.29px; }

  .sticky-cta {
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: center;
    height: 52px;
    gap: 12px;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(6, 31, 59, 0.28);
    /* появляется только после первого экрана (класс ставит script.js) */
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, filter 0.2s;
  }
  .sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  /* пока открыто уведомление о cookie — кнопка заявки стоит над ним */
  .sticky-cta { bottom: calc(12px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 16px; gap: 12px; }
  .cookie__text { font-size: 13px; }
  /* при открытом меню кнопку прячем */
  body:has(.header.is-open) .sticky-cta { display: none; }
  /* индикатор слайдов — вверху, полоски мельче */
  .hero__steps { position: absolute; left: 24px; top: 24px; bottom: auto; gap: 6.763px; }
  .hero__steps button { width: 16.063px; height: 3.382px; }

  /* Reviews */
  .reviews { padding: 64px var(--page-x); }
  .reviews__grid { margin-top: 32px; margin-bottom: 32px; gap: 12px; }
  .video-card { flex-basis: 200px; }
  .video-card__title { font-size: 16px; }

  /* Idea */
  .idea { gap: 32px; }
  .idea__head { gap: 16px; }
  .idea__sub { gap: 24px; }
  .idea__sub .btn { order: 2; }
  .idea__grid {
    margin: 0 calc(-1 * var(--page-x));
    padding: 0 var(--page-x);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--page-x);
  }
  .idea__grid .feature { flex: 0 0 66%; gap: 16px; scroll-snap-align: start; }
  .idea__grid .feature__title { font-size: 18px; }
  .idea__grid .feature__text { font-size: 15px; margin-top: -8px; }

  /* Beyond: карточка — фото на всю высоту, текст сверху */
  .beyond { gap: 32px; padding: 64px 0; }
  .beyond .section__head { align-items: flex-start; text-align: left; }
  .beyond__track { gap: 12px; scroll-snap-type: x mandatory; }
  .beyond-card,
  .beyond-card--1 { --card-w: calc(100vw - 64px); width: var(--card-w); height: auto; aspect-ratio: 342 / 578; }
  .beyond-card__stage { width: 100%; height: 100%; transform: none; }
  .beyond-card__crop > img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
  /* Кадр из mob: бокс 342×630 отражён, картинка 216.7% × auto, сдвиг -18.56% / -17.14% */
  .beyond-card__img--1 {
    inset: auto;
    top: calc(var(--card-w) * -0.3157);
    right: -18.56%;
    width: 216.7%;
    height: auto;
    object-fit: fill;
  }
  .beyond-card__img--3 { object-position: 60% 50%; }
  .callouts { display: none; }
  .beyond-card__shade {
    width: 100%;
    height: 60%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  }
  .beyond-card__shade::before { display: none; }
  .beyond-card__body,
  .beyond-card__body--445,
  .beyond-card__body--349 {
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 24px;
  }
  .beyond-card__title { font-size: 24px; }
  .beyond-card__text,
  .beyond-card__body--349 .beyond-card__text { width: auto; font-size: 15px; }

  /* Engineering: вертикальная карточка */
  /* Idea, вариант 2 на телефоне: вместо сцены — лента карточек одного размера со скроллом вбок, без стрелок */
  .idea2__stage { display: none; }
  .idea2__mobile {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--page-x));
    padding: 0 var(--page-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--page-x);
  }
  /* при ширине 390: карточка 326px, следующая выглядывает примерно на 40px */
  .idea2-mcard { flex: 0 0 calc(100vw - 64px); display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-snap-align: start; }
  .idea2-mcard__media {
    position: relative;
    aspect-ratio: 572.806 / 620;
    border-radius: 8px;
    overflow: hidden;
    background: #2b2d31;
  }
  .idea2-mcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .idea2-mcard .idea2-card__title { font-size: 16px; }
  .idea2-mcard .idea2-card__text { font-size: 14px; }
  .idea2-mcard .idea2-card__desc { gap: 8px; }
  /* кнопка «Подобрать дверь» — под лентой во всю ширину, вместо кнопки у описания */
  .idea2 .idea__sub .btn--outline-sm { display: none; }
  .idea2 .idea2__mbtn { margin: 0; }
  /* «Красота, за которой стоят инженерия…» на телефоне */
  .eng { gap: 40px; } /* заголовок и бейдж — с большим отступом до карточек */
  .eng__head { gap: 16px; }
  .eng__brand {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    padding: 8px 12px 8px 10px;
    font-size: 13px;
    line-height: 16px;
  }
  .eng__brand img { width: 20px; height: 20px; }
  .slider-nav { margin-top: -16px; }
  .eng .slider-nav { display: none; } /* листают пальцем — стрелки на телефоне не нужны */
  /* поля сверху и снизу — чтобы тень карточек не обрезалась */
  .eng__track {
    align-items: stretch;
    gap: 12px;
    padding: 8px var(--page-x) 32px;
    margin: -8px 0 -32px;
    scroll-snap-type: x mandatory;
  }
  .eng-card {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    width: calc(100vw - 64px); /* при 390: 326px, следующая карточка выглядывает примерно на 40px */
    height: auto;
    padding: 16px;
    border: 1px solid rgba(14, 23, 42, 0.05);
    border-radius: 12px;
    filter: none;
    box-shadow: 0 6px 20px rgba(14, 23, 42, 0.09);
  }
  /* тег — в потоке над заголовком, меньше */
  .eng-card__tag {
    position: static;
    align-self: flex-start;
    padding: 6px 10px 5px;
    border-width: 1px;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.2px;
  }
  .eng-card__desc,
  .eng-card__desc--cta { width: auto; gap: 10px; }
  .eng-card__copy { gap: 10px; }
  .eng-card__desc--cta { gap: 16px; align-items: stretch; }
  /* на телефоне заявку ведёт закреплённая кнопка — дублирующие кнопки прячем */
  .eng-card__desc--cta .btn,
  .doors__cta { display: none; }
  /* «Смотреть обзоры» — обводкой, без заливки */
  .reviews__more { background: transparent; color: var(--c-navy); border: 1px solid rgba(6, 31, 59, 0.32); }
  .reviews__more .arrow-light { display: none; }
  .reviews__more .arrow-dark { display: block; }
  .eng-card__desc--cta .btn {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px; /* 16px поле карточки + 12px от края фото */
    z-index: 2;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(6, 31, 59, 0.25);
  }
  .eng-card__title { font-size: 22px; line-height: 1.2; }
  .eng-card__text { width: auto; font-size: 15px; line-height: 1.35; white-space: normal; }
  /* фото внизу карточки — у всех на одной линии */
  .eng-card__media,
  .eng-card__media--2 { margin-top: auto; width: 100%; height: auto; aspect-ratio: 541 / 510; border-radius: 8px; }
  .eng-card__media .eng-crop { inset: 0; width: 100% !important; height: 100% !important; left: 0 !important; top: 0 !important; }
  .eng-card__media img { inset: 0; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover; }

  /* Doors */
  .doors { gap: 32px; padding: 64px var(--page-x); }
  .doors__grid { grid-template-columns: 1fr; gap: 24px; }
  .doors__media--wide { aspect-ratio: 508 / 509; }
  .doors__link { right: 16px; bottom: 16px; }
  .doors__grid .feature { gap: 12px; }
  .doors__grid .feature__title { font-size: 18px; }
  .doors__grid .feature__text { font-size: 15px; margin-top: -4px; }
  .doors .actions { margin-top: 0; padding: 0; }

  /* CTA */
  .cta { padding: 80px var(--page-x) 64px; }
  .cta__actions { flex-direction: column; width: 100%; margin-top: 32px; }
  /* Галерея салона на телефоне — лента с прокруткой */
  .salon-gallery {
    display: flex;
    gap: 8px;
    height: 260px;
    width: calc(100% + 2 * var(--page-x));
    margin: 40px calc(-1 * var(--page-x)) 0;
    padding: 0 var(--page-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--page-x);
    scrollbar-width: none;
  }
  .salon-gallery::-webkit-scrollbar { display: none; }
  .salon-gallery__item { flex: 0 0 78%; scroll-snap-align: start; }
  .salon-gallery__item--main { flex-basis: 52%; }
  .gallery-view__stage { max-width: 100vw; gap: 0; }
  .gallery-view__img { max-height: 100dvh; border-radius: 0; }
  .gallery-view .player__bar { position: absolute; left: 16px; right: 72px; top: 24px; }

  /* Форма — почти на весь экран */
  .lead { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .lead__form,
  .lead__done { gap: 18px; padding: 48px 20px 28px; }
  .lead__close { top: 8px; right: 8px; }
  .lead__title { font-size: 26px; }
  .lead__lead { font-size: 15px; }
  .lead__steps { margin-bottom: 4px; }
  .lead__steps li { gap: 8px; font-size: 12px; }
  .dropzone__drag { display: none; }
  .lead__grid { grid-template-columns: 1fr; gap: 18px; }
  /* Плеер на телефоне: видео на весь экран, кнопки поверх */
  .player::backdrop { background: #000; }
  .player__stage { height: 100dvh; max-width: 100vw; width: 100vw; aspect-ratio: auto; gap: 0; }
  .player__video { border-radius: 0; }
  .player__bar { position: absolute; left: 16px; right: 72px; top: 24px; pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
  .player__nav { width: 40px; height: 40px; top: auto; bottom: 96px; transform: none; right: 12px; background: rgba(0, 0, 0, 0.35); }
  .player__nav--prev { left: 12px; right: auto; }
  .player__close { top: 12px; right: 12px; background: rgba(0, 0, 0, 0.35); }
  .reels__body { gap: 28px; padding: 24px 16px; }
  .reels__head { padding-right: 40px; }
  .reels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .reels .video-card__title { font-size: 14px; }
  .reels .video-card__badge { left: 8px; bottom: 8px; padding: 6px 10px; font-size: 13px; gap: 6px; }

  /* Footer */
  /* снизу место под закреплённую кнопку заявки */
  .footer { gap: 32px; padding: 48px 24px calc(108px + env(safe-area-inset-bottom, 0px)); }
  .footer__salons { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-direction: column; gap: 8px; }
}
