/* css/00-tokens.css */
/* Токены дизайна. Значения сняты с Тильды 10.10.2026 (вычисленные стили на 1440 и 375).
   Таблица с пояснениями — в памяти проекта, design-system.md. Новое значение — сначала сюда. */

/* Заголовки и кнопки, включая первый экран. На Тильде — Druk Text Wide (лицензия Type Today действует только
   внутри Тильды); под этим именем стоит Unbounded (OFL) — 12.10.2026 владелец оставил его по всему сайту.
   Замена шрифта — только src здесь. */
@font-face {
  font-family: "KS Head";
  src: url("/assets/fonts/Unbounded-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "KS Head";
  src: url("/assets/fonts/Unbounded-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Первый экран в варианте pill — Google Sans (SIL OFL 1.1), вариативный: шрифт макета, который клиент прислал
   12.10.2026 («шрифт по всему сайту оставим старый… на первом блоке только поменяем»). Только этот блок. */
@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/GoogleSans-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/GoogleSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Текст — Tilda Sans (SIL OFL 1.1), вариативный. */
@font-face {
  font-family: "Tilda Sans";
  src: url("/assets/fonts/TildaSans-VF.woff2") format("woff2");
  font-weight: 250 1000;
  font-display: swap;
}

:root {
  --font-head: "KS Head", "Arial Black", sans-serif;
  /* Первый экран — тем же шрифтом: Google Sans из ролика ТЗ владелец отклонил 12.10.2026. */
  --font-hero: var(--font-head);
  --font-hero-pill: "Google Sans", Arial, sans-serif;
  --font-text: "Tilda Sans", Arial, sans-serif;

  --c-text: #1b1b1b;
  --c-muted: rgba(27, 27, 27, 0.5);
  --c-line: rgba(27, 27, 27, 0.2);
  --c-line-strong: rgba(27, 27, 27, 0.5);
  --c-bg: #ffffff;
  --c-accent: #fba417;          /* выделение в заголовках на светлом */
  --c-accent-on-dark: #ffc138;  /* выделение на тёмном фоне (форма 3D-макета) */
  --c-gold-line: #f9c044;       /* тонкие линии в блоке производства */
  --c-marker: #ffd23f;          /* маркер под выделенными словами первого экрана (ТЗ) */
  --c-surface: #f3f2f3;         /* плитки иконок первого экрана */
  --c-card: #f9f9f9;            /* карточки отзывов */
  --c-panel: #ececec;           /* плашки цены и срока в проекте */
  --c-dark: #1c1c1c;            /* фон формы 3D-макета */
  --c-faq: #2a2929;
  --c-faq-line: #424242;
  --c-faq-num: #818181;
  --c-faq-answer: #e1e1e1;
  --c-arrow: #faac17;
  --c-arrow-hover: #e49c13;

  --c-btn-text: #75543d;
  --c-btn-hover: #feec8e;
  --c-btn-shadow: #e9c73b;
  --c-btn-dark: #242424;
  --c-btn-dark-hover: #4d4d4d;
  --g-yellow: linear-gradient(91deg, #ffeb7b 0%, #ffcf2b 100%);

  --shadow-card: 2px 4px 9px rgba(0, 0, 0, 0.25);

  --container: 1160px;
  --gutter: 12px;
  --section-gap: 56px;

  --h2-size: 19px;
  --h2-line: 1.35;
  --text-size: 14px;
  --text-line: 1.43;
}

@media (min-width: 640px) {
  :root {
    --gutter: 20px;
    --section-gap: 80px;
    --h2-size: 24px;
    --text-size: 16px;
    --text-line: 1.375;
  }
}

@media (min-width: 960px) {
  :root {
    --section-gap: 100px;
    --h2-size: 30px;
    --h2-line: 1.4;
  }
}

/* css/01-base.css */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-size);
  line-height: var(--text-line);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--c-arrow); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; background: #fff; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding-top: var(--section-gap); }

.section__title {
  font-family: var(--font-head);
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section__title--center { text-align: center; }
.section__title--light { color: #fff; }
@media (min-width: 960px) { .section__title { margin-bottom: 38px; max-width: 800px; } }
.section__title--center { margin-left: auto; margin-right: auto; }

.accent { color: var(--c-accent); }

[id] { scroll-margin-top: 16px; }

/* css/02-buttons.css */
/* Кнопки. Основная — жёлтый градиент, коричневый текст, жёсткая тень 2px (как на Тильде). */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font-family: var(--font-head); font-size: 11px; line-height: 1.4; font-weight: 600;
  text-transform: uppercase; text-decoration: none; text-align: center;
  border: 0; border-radius: 0;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
@media (min-width: 640px) { .btn { font-size: 12px; min-height: 60px; } }

.btn--cta {
  color: var(--c-btn-text);
  background: var(--g-yellow);
  box-shadow: 2px 2px 0 0 var(--c-btn-shadow);
}
.btn--cta:hover { background: var(--c-btn-hover); }
.btn--cta:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 var(--c-btn-shadow); }

.btn--xl { min-height: 70px; padding: 0 32px; font-size: 13px; }
@media (min-width: 960px) { .btn--xl { min-height: 80px; min-width: 360px; font-size: 16px; } }

.btn--outline {
  color: var(--c-btn-text);
  background: transparent;
  border: 1px solid var(--c-btn-text);
  min-width: 275px;
}
.btn--outline:hover { background: var(--c-btn-hover); }

.btn--dark { color: #fff; background: var(--c-btn-dark); box-shadow: none; }
.btn--dark:hover { background: var(--c-btn-dark-hover); }

/* Круглые жёлтые стрелки (отзывы, производство). */
.round-arrow {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--c-arrow) center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='%231b1b1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: background-color .2s;
}
.round-arrow:hover { background-color: var(--c-arrow-hover); }
.round-arrow--prev { transform: scaleX(-1); }
@media (max-width: 639px) { .round-arrow { width: 52px; height: 52px; } }

/* css/10-header.css */
/* Шапка: на телефоне — логотип и бургер; с 960px — две строки, как на Тильде. */
.header { background: #fff; position: relative; z-index: 5; }

.header__top { display: none; }

.header__main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 70px;
}
.header__logo img { width: 160px; height: auto; }
/* Через .header: общие .rating и .messengers объявлены ниже и иначе перебили бы скрытие. */
.header .header__rating, .header .header__badge, .header .header__messengers, .header .header__contacts, .header .header__cta { display: none; }

/* margin-left: auto прижимает трубку к бургеру, иначе space-between поставит её посередине. */
.header__call {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-arrow); color: var(--c-text);
}
.header__call:hover { background: var(--c-arrow-hover); }
.header__call:focus-visible { outline: 2px solid var(--c-text); outline-offset: 2px; }

.header__burger {
  width: 40px; height: 40px; padding: 8px; border: 0; background: none;
  display: flex; flex-direction: column; justify-content: space-between;
}
.header__burger span { display: block; height: 3px; border-radius: 2px; background: var(--c-text); }

@media (min-width: 960px) {
  .header__top {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding-top: 19px; padding-bottom: 10px;
  }
  .header__menu { display: flex; gap: 50px; padding-top: 13px; }
  .header__menu a { text-decoration: none; font-size: 16px; }
  .header__menu a:hover { color: var(--c-accent); }
  .header__info { text-align: right; font-size: 16px; line-height: 22px; }
  .header__address { display: inline-flex; align-items: center; gap: 10px; margin-top: 3px; }

  .header__main { min-height: 0; padding-bottom: 21px; gap: 12px; }
  .header__logo img { width: 197px; }
  .header .header__rating { display: inline-flex; }
  .header .header__badge { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; }
  .header__badge img { width: 50px; }
  .header .header__messengers { display: flex; }
  .header .header__contacts { display: flex; flex-direction: column; gap: 0; }
  /* Высота строки 24 px — минимальная область нажатия для отдельной ссылки. */
  .header__phone { font-family: var(--font-head); font-weight: 700; font-size: 13px; line-height: 24px; text-decoration: none; white-space: nowrap; }
  .header__email { font-size: 14px; line-height: 24px; text-decoration: none; }
  .header .header__cta { display: inline-flex; min-height: 50px; min-width: 230px; white-space: nowrap; }
  .header__burger, .header__call { display: none; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .header .header__badge, .header .header__rating { display: none; }
}

/* Плашка рейтинга Яндекс Карт. */
.rating { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-text); }
/* В шапке крупнее, чем было на Тильде: ТЗ (5:25) — «это всё очень мелкое… логотип побольше». */
.rating__logo { width: 140px; height: auto; }
.rating__value { font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.rating__meta { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.rating__stars { color: #fc0; font-size: 12px; letter-spacing: 1px; }
.rating__caption { font-size: 11px; }
.rating--large .rating__logo { width: 180px; }
.rating--large .rating__value { font-size: 40px; }
.rating--large .rating__stars { font-size: 16px; }
.rating--large .rating__caption { font-size: 13px; }

.messengers { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.messengers__icon { width: 34px; height: 34px; object-fit: contain; }

/* css/11-hero.css */
/* Первый экран по ТЗ 07.10.2026: фото на весь экран, текст чёрный слева.
   Телефон: фото сверху, плашка с текстом наезжает на его низ.
   С 960px: фото фоном на всю ширину, текст в левой части — на плашке (plate) или на градиенте (clean).
   Формат фото для клиента — в content/home.php → hero. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { display: block; }
.hero__bg img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 460px; object-fit: cover; object-position: 70% center; }

.hero__inner { position: relative; margin-top: -72px; padding-bottom: 8px; }
.hero__panel { padding: 22px 18px 24px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }

.hero__title {
  font-family: var(--font-hero); font-size: 22px; line-height: 1.36; font-weight: 500;
  text-transform: uppercase; color: var(--c-text);
}
/* Маркер под «пожизненной гарантией» — как «На заказ за 25 дней» в каталоге premier-fasad.com. */
.hero__title .accent {
  color: inherit;
  background: linear-gradient(transparent 55%, var(--c-marker) 55%, var(--c-marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.08em;
}

.hero__cta { width: 100%; margin-top: 22px; }
.hero__advantages { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }

.advantage { display: flex; align-items: flex-start; gap: 14px; }
.advantage__icon { flex: 0 0 56px; height: 56px; display: grid; place-items: center; background: var(--c-surface); }
.advantage__icon img { width: 38px; height: 38px; object-fit: contain; }
.advantage--inline .advantage__icon { background: none; }
.advantage--inline .advantage__icon img { width: 56px; height: 56px; }
.advantage__text { font-size: 15px; line-height: 1.4; padding-top: 2px; }
.advantage__text b { display: block; font-weight: 700; }
.advantage--inline .advantage__text b { display: inline; }

/* Порядок на телефоне: заголовок → кнопка → преимущества. */
.hero__panel { display: flex; flex-direction: column; }
.hero__title { order: 1; }
.hero__cta { order: 2; }
.hero__advantages { order: 3; }

@media (min-width: 640px) {
  .hero__bg img { aspect-ratio: 16 / 9; max-height: 520px; }
  .hero__advantages { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .hero__title { font-size: 28px; }
  .hero__cta { width: auto; align-self: flex-start; }
}

@media (min-width: 960px) {
  .hero { min-height: clamp(640px, calc(100vh - 163px), 820px); display: flex; align-items: center; }
  .hero__bg { position: absolute; inset: 0; z-index: -1; }
  .hero__bg img { height: 100%; max-height: none; aspect-ratio: auto; object-position: right center; }
  .hero__inner { margin-top: 0; padding-top: 56px; padding-bottom: 56px; }
  .hero__panel { max-width: 640px; padding: 44px 44px 46px; }
  .hero__title { font-size: 32px; line-height: 1.38; }
  .hero__advantages { order: 2; margin-top: 34px; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 22px; }
  .hero__cta { order: 3; margin-top: 36px; }
  .advantage__icon { flex-basis: 60px; height: 60px; }
  .advantage__icon img { width: 40px; height: 40px; }
  .advantage--inline .advantage__icon img { width: 60px; height: 60px; }
  .advantage__text { font-size: 16px; line-height: 22px; padding-top: 0; }

  /* plate — полупрозрачная плашка с размытием фона под ней. */
  .hero--plate .hero__panel {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  /* clean — без плашки: текст прямо на фото, левую часть высветляет градиент. */
  .hero--clean .hero__panel { background: none; box-shadow: none; padding-left: 0; }
  .hero--clean .hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 32%, rgba(255, 255, 255, 0) 58%);
  }
}
@media (min-width: 1200px) {
  .hero__title { font-size: 34px; }
}

/* pill — по макету клиента 12.10.2026: строчными, шрифт макета, «с пожизненной гарантией.» на жёлтой
   плашке со скруглением. Размеры строк сняты с макета 1280px: 62 / 40 / 36 px — пропорции сохранены. */
.hero--pill .hero__title { font-family: var(--font-hero-pill); font-weight: 700; text-transform: none; line-height: 1.12; letter-spacing: -0.01em; }
.hero__line { display: block; font-size: 21px; }
.hero__line--lead { font-size: 34px; line-height: 1.05; }
.hero__line--pill {
  display: inline-block; margin-top: 10px; padding: 0.14em 0.5em 0.18em; border-radius: 0.38em;
  background: var(--c-marker); font-size: 19px;
}
.hero-strip { padding: 24px 0 8px; }
.hero-strip .hero__advantages { margin-top: 0; }

@media (min-width: 640px) {
  .hero__line { font-size: 28px; }
  .hero__line--lead { font-size: 44px; }
  .hero__line--pill { font-size: 24px; }
}
@media (min-width: 960px) {
  /* Как clean: текст прямо на фото, левую часть высветляет градиент. */
  .hero--pill .hero__panel { max-width: 720px; background: none; box-shadow: none; padding-left: 0; }
  .hero--pill .hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 34%, rgba(255, 255, 255, 0) 60%);
  }
  .hero--pill .hero__cta { margin-top: 40px; }
  .hero__line { font-size: 38px; }
  .hero__line--lead { font-size: 60px; }
  .hero__line--pill { margin-top: 14px; font-size: 33px; }
  .hero-strip { padding: 36px 0 12px; }
  .hero-strip .hero__advantages { grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
}
@media (min-width: 1200px) {
  .hero__line { font-size: 46px; }
  .hero__line--lead { font-size: 72px; }
  .hero__line--pill { font-size: 40px; }
}

/* css/12-gallery.css */
/* «Посмотрите, как наши кухни…»: телефон — 2 колонки, одна картинка на всю ширину, две скрыты;
   с 960px — сетка 3×3, первая и пятая высокие (как раскладка Тильды). */
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery__item { margin: 0; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 170 / 211; }
.gallery__item--m-wide { grid-column: 1 / -1; }
.gallery__item--m-wide img { aspect-ratio: 352 / 234; }
.gallery__item--m-hide { display: none; }
/* Порядок на телефоне как на Тильде: 1 и 5 в первой строке, затем широкая 2, затем 6 и 7. */
.gallery__item--1 { order: 1; } .gallery__item--5 { order: 2; } .gallery__item--2 { order: 3; }
.gallery__item--6 { order: 4; } .gallery__item--7 { order: 5; }

@media (min-width: 960px) {
  .gallery__grid {
    grid-template-columns: 380fr 380fr 373fr;
    grid-template-rows: 257px 250px 257px;
    gap: 13px 14px;
  }
  .gallery__item, .gallery__item--m-hide { display: block; order: 0; }
  .gallery__item img, .gallery__item--m-wide img { aspect-ratio: auto; }
  .gallery__item--m-wide { grid-column: auto; }
  .gallery__item--1 { grid-area: 1 / 1 / 3 / 2; }
  .gallery__item--2 { grid-area: 1 / 2; }
  .gallery__item--3 { grid-area: 1 / 3; }
  .gallery__item--4 { grid-area: 2 / 2; }
  .gallery__item--5 { grid-area: 2 / 3 / 4 / 4; }
  .gallery__item--6 { grid-area: 3 / 2; }
  .gallery__item--7 { grid-area: 3 / 1; }
}

/* css/13-slider.css */
/* Общий слайдер (data-slider): лента со scroll-snap, стрелки и точки добавляет JS. Работает и без JS —
   лента просто прокручивается пальцем. */
.slider { position: relative; }
.slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.slider__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85) center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 6 6 6-6 6' fill='none' stroke='%231b1b1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.slider__arrow--prev { left: 12px; transform: scaleX(-1); }
.slider__arrow--next { right: 12px; }
.slider__arrow[disabled] { opacity: 0.4; cursor: default; }

/* Жёлтые круглые стрелки под лентой (производство). */
.slider__arrow--round {
  top: auto; bottom: 0; translate: none; width: 53px; height: 53px;
  background-color: transparent; background-image: url("/media/icons/arrow.svg"), var(--g-yellow);
  background-size: 40px, cover; box-shadow: none;
}
.slider__arrow--round.slider__arrow--prev { left: 0; transform: none; }
.slider__arrow--round.slider__arrow--next { right: 0; left: auto; transform: scaleX(-1); }

.slider__dots { display: flex; justify-content: center; padding-top: 6px; }
.slider__dots { gap: 0; }
/* Видимая точка 8 px, а область нажатия 24×24 — иначе на телефоне в неё не попасть. */
.slider__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; }
.slider__dot::before { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #c9c9c9; }
.slider__dot[aria-current="true"]::before { background: var(--c-text); }

/* css/14-projects.css */
/* Реализованные проекты: фото слева (659×679), карточка с тенью справа (480×679) — с 960px. */
.projects__list { display: grid; gap: 40px; }
.project { display: grid; gap: 0; }
.project__gallery .slider__slide img { aspect-ratio: 352 / 268; }

.project__card { display: flex; flex-direction: column; padding: 24px 12px 16px; background: #fff; box-shadow: var(--shadow-card); }
.project__title { font-family: var(--font-head); font-size: 15px; line-height: 1.2; text-transform: uppercase; }
.project__subtitle { margin-top: 8px; font-size: 12px; opacity: 0.7; padding-bottom: 14px; border-bottom: 1px solid var(--c-line-strong); }
.project__params-title { margin-top: 14px; font-size: 12px; font-weight: 700; }
.project__params { margin-top: 8px; }
.project__param {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: 12px;
}
.project__param:last-child { border-bottom-color: var(--c-line-strong); }
.project__param dt { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.project__param dd { text-align: right; }

.project__totals { display: grid; gap: 6px; margin-top: auto; padding-top: 18px; }
.project__total { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px; background: var(--c-panel); }
.project__total-label { font-size: 12px; font-weight: 700; }
.project__total-value { font-family: var(--font-head); font-size: 16px; line-height: 1.4; }
.project__cta { width: 100%; margin-top: 12px; }

.projects__more { display: flex; justify-content: center; margin-top: 40px; }

@media (min-width: 960px) {
  .projects__list { gap: 50px; }
  .project { grid-template-columns: 659fr 480fr; gap: 21px; align-items: stretch; }
  .project__gallery, .project__gallery .slider__track { height: 100%; }
  .project__gallery .slider__slide img { aspect-ratio: auto; height: 679px; }
  .project__card { padding: 37px 40px 24px; }
  .project__title { font-size: 19px; line-height: 22px; }
  .project__subtitle { font-size: 16px; margin-top: 10px; padding-bottom: 20px; }
  .project__params-title { font-size: 16px; margin-top: 22px; }
  .project__param { font-size: 16px; padding: 7px 0; }
  .project__totals { grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 28px; }
  .project__totals--single { grid-template-columns: 1fr; }
  .project__total { flex-direction: column; align-items: flex-start; padding: 6px 14px; }
  .project__total-label { font-size: 16px; }
  .project__total-value { font-size: 20px; line-height: 28px; }
  .project__cta { margin-top: 25px; }
  .projects__more { margin-top: 32px; }
}

/* css/15-videos-factory.css */
/* Видеообзоры: три окна в ряд на десктопе. Телефон: лента (одно и край следующего) или список. */
.videos__slider .slider__slide { padding-right: 12px; }
.videos--m-carousel .videos__slider .slider__slide { flex-basis: 86%; }
.videos__more { display: none; }
@media (max-width: 959px) {
  .videos--m-list .slider__track { display: grid; gap: 14px; overflow: visible; }
  .videos--m-list .slider__slide { padding-right: 0; }
  .videos--m-list .slider__arrow { display: none; }
  .videos--m-list:not(.is-expanded) .slider__slide:nth-child(n + 4) { display: none; }
  .videos--m-list .videos__more { display: flex; justify-content: center; margin-top: 18px; }
  .videos--m-list.is-expanded .videos__more { display: none; }
}
.video-card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; aspect-ratio: 16 / 10; overflow: hidden; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .2s; }
.video-card:hover img { opacity: 1; }
.video-card__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 48px; border-radius: 12px; background: #f00;
}
.video-card__play::after { content: ""; position: absolute; left: 27px; top: 14px; border: 10px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.video-card__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; color: #fff; text-align: left; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); }
@media (min-width: 960px) {
  .videos__slider[data-slider-per-view="3"] .slider__slide { flex-basis: calc(100% / 3); }
}
.video-card:not([data-open]) { cursor: default; }

/* Производство. */
.factory__inner { display: grid; gap: 32px; }
.factory__eyebrow {
  font-family: var(--font-head); font-size: 14px; line-height: 16px; font-weight: 800; color: #2e2e2e;
  text-transform: uppercase; padding-top: 12px; border-top: 1px solid var(--c-gold-line); max-width: 200px;
}
.factory__logo { width: 176px; margin: 14px 0 18px; }
.factory__title {
  font-family: var(--font-head); font-size: 16px; line-height: 1.15; text-transform: uppercase;
  padding-top: 18px; border-top: 1px solid var(--c-gold-line); max-width: 360px;
}
.factory__text { margin-top: 14px; font-size: 13px; line-height: 1.4; }
.factory__stats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.stat {
  display: grid; grid-template-columns: 35px auto 1fr; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; box-shadow: var(--shadow-card);
}
.stat__icon { width: 35px; height: 35px; }
.stat__value { font-family: var(--font-head); font-size: 14px; line-height: 1.4; padding-right: 16px; border-right: 1px solid var(--c-gold-line); }
.stat__label { font-size: 12px; line-height: 1.1; }

.factory__main { box-shadow: var(--shadow-card); }
.factory__main img, .factory__main video { width: 100%; aspect-ratio: 760 / 349; object-fit: cover; display: block; }
.factory__slider { margin-top: 20px; padding-bottom: 70px; }
.factory__slider .slider__slide img { aspect-ratio: 352 / 270; }

@media (min-width: 960px) {
  .factory__inner { grid-template-columns: 360px 1fr; gap: 40px; }
  .factory__eyebrow { font-size: 16px; line-height: 18px; padding-top: 22px; }
  .factory__logo { width: 220px; margin: 17px 0 33px; }
  .factory__title { font-size: 27px; line-height: 31px; padding-top: 30px; }
  .factory__text { font-size: 16px; line-height: 22px; margin-top: 20px; }
  .factory__stats { gap: 15px; margin-top: 20px; }
  .stat { padding: 20px 15px; grid-template-columns: 45px 120px 1fr; }
  .stat__icon { width: 45px; height: 45px; }
  .stat__value { font-size: 20px; line-height: 28px; }
  .stat__label { font-size: 16px; line-height: 18px; }
  .factory__media { padding-top: 17px; }
  .factory__slider[data-slider-per-view="3"] .slider__slide { flex-basis: calc((100% - 40px) / 3); margin-right: 20px; }
  .factory__slider .slider__slide img { aspect-ratio: 241 / 214; }
  .factory__slider { margin-top: 23px; }
}

/* css/16-forms.css */
/* Формы заявок: поля, чекбокс согласия, ошибки, успех. Варианты: row, stack, dark, on-yellow. */
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__fields { display: grid; gap: 10px; }

.field input, .field select {
  width: 100%; height: 60px; padding: 0 20px; border: 1px solid #d9d9d9; border-radius: 0;
  font: 400 16px/1 var(--font-text); color: var(--c-text); background: #fff;
}
.field select { appearance: none; background: #fff right 20px center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1b1b' stroke-width='2'/%3E%3C/svg%3E"); }
.field input::placeholder { color: #9a9a9a; }
.field [aria-invalid="true"] { border-color: #d33; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.35; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { flex: 0 0 18px; height: 18px; margin-top: 1px; border: 2px solid currentColor; display: grid; place-items: center; }
.consent input:checked + .consent__box::after { content: ""; width: 8px; height: 8px; background: currentColor; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--c-arrow); outline-offset: 2px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent--invalid .consent__box { border-color: #d33; }

.lead-form__error { margin-top: 10px; color: #d33; font-size: 14px; }
.lead-form__success { padding: 20px 0; }
.lead-form__success-title { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; margin-bottom: 6px; }
.lead-form.is-sent .lead-form__fields, .lead-form.is-sent .consent { display: none; }
.lead-form.is-busy .lead-form__submit { opacity: 0.6; pointer-events: none; }

@media (min-width: 640px) {
  .lead-form--row .lead-form__fields { grid-template-columns: 1fr auto; gap: 0; }
  .lead-form--row .field input { height: 70px; }
  .lead-form--row .lead-form__submit { min-height: 70px; min-width: 260px; }
}

/* Тёмный фон: белые подписи. */
.lead-form--dark { color: #fff; }
.lead-form--dark .lead-form__success { color: #fff; }

/* На жёлтой плашке: кнопка тёмная. */
.lead-form--on-yellow .lead-form__submit { color: #fff; background: var(--c-btn-dark); box-shadow: none; }
.lead-form--on-yellow .lead-form__submit:hover { background: var(--c-btn-dark-hover); }
@media (min-width: 640px) {
  .lead-form--on-yellow .lead-form__fields { grid-template-columns: 1fr 360px; gap: 3px; }
  .lead-form--on-yellow .field input, .lead-form--on-yellow .lead-form__submit { height: 60px; min-height: 60px; }
}

/* Форма 3D-макета на тёмном фоне с фото. */
.form3d {
  position: relative; margin-top: var(--section-gap); color: #fff;
  background: var(--c-dark);
  isolation: isolate;
}
.form3d__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.form3d::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%); opacity: 0.7; }
.form3d__inner { padding-top: 123px; padding-bottom: 80px; }
.form3d__title { font-family: var(--font-head); font-size: 20px; line-height: 1.2; text-transform: uppercase; max-width: 590px; }
.form3d__title .accent, .form3d__text .accent { color: var(--c-accent-on-dark); }
.form3d__text { margin-top: 12px; font-size: 13px; line-height: 1.4; max-width: 470px; }
.form3d .lead-form { margin-top: 24px; max-width: 561px; }
.form3d__note { margin-top: 14px; font-size: 11px; opacity: 0.9; }
@media (min-width: 960px) {
  .form3d::before { background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.4) 100%); }
  .form3d__inner { min-height: 680px; padding-top: 149px; }
  .form3d__title { font-size: 30px; line-height: 36px; }
  .form3d__text { margin-top: 15px; font-size: 20px; line-height: 28px; }
  .form3d .lead-form { margin-top: 30px; }
  .form3d__note { font-size: 14px; }
}

/* «Сделайте первый шаг — напишите нам». */
.callback__box { background: var(--g-yellow); border-radius: 5px; padding: 34px 24px 32px; text-align: center; }
.callback__title { font-family: var(--font-head); font-size: 20px; line-height: 1.2; text-transform: uppercase; max-width: 700px; margin: 0 auto; }
.callback__text { margin: 18px auto 0; max-width: 430px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.callback .lead-form { margin: 22px auto 0; max-width: 720px; text-align: left; }
@media (min-width: 960px) {
  .callback__box { max-width: 891px; margin: 0 auto; padding: 40px 80px 35px; }
  .callback__title { font-size: 30px; line-height: 42px; }
  .callback__text { font-size: 16px; line-height: 22px; margin-top: 11px; }
  .callback .lead-form { margin-top: 31px; }
}

/* css/17-reviews-team.css */
/* Отзывы: заголовок со стрелками, лента карточек на всю ширину экрана с прокруткой вбок. */
.reviews__head { display: grid; gap: 16px; align-items: center; }
.reviews__head .section__title { margin-bottom: 0; max-width: 560px; }
.reviews__arrows { display: flex; gap: 18px; }
.reviews__track {
  display: flex; gap: 12px; margin-top: 30px; padding: 0 var(--gutter) 20px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.review { flex: 0 0 300px; scroll-snap-align: start; padding: 20px; background: var(--c-card); }
.review__head { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; }
.review__avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review__avatar--initials { display: grid; place-items: center; background: var(--g-yellow); color: var(--c-btn-text); font: 600 16px/1 var(--font-head); }
.review__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.review__city, .review__date { font-size: 12px; opacity: 0.5; }
.review__meta { text-align: right; }
.review__stars { display: flex; gap: 4px; margin-bottom: 4px; }
.review__body { display: grid; grid-template-columns: 1fr 110px; gap: 10px; margin-top: 16px; }
.review__text { font-size: 13px; line-height: 1.45; }
.review__photo { width: 100%; height: 200px; object-fit: cover; }
.review { display: flex; flex-direction: column; }
.review--text .review__body { grid-template-columns: 1fr; }
.review__source { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 640px) {
  .reviews__head { grid-template-columns: 1fr auto auto; }
}
@media (min-width: 1200px) {
  /* Лента начинается от края контейнера и уходит за правый край экрана, как на Тильде. */
  .reviews__track { padding-left: calc((100vw - var(--container)) / 2); padding-right: calc((100vw - var(--container)) / 2); gap: 39px; }
  .review { flex-basis: 380px; padding: 21px 20px 20px; }
  .review__text { font-size: 14px; line-height: 20px; }
}

/* Команда. */
.team__text { padding: 20px 18px; background: var(--c-card); }
.team__lead { font-weight: 600; font-size: 13px; line-height: 1.25; }
.team__text p + p { margin-top: 10px; font-size: 13px; }
.team__photo { width: 100%; margin-top: 24px; aspect-ratio: 352 / 211; object-fit: cover; }
@media (min-width: 960px) {
  .team__text { padding: 20px; }
  .team__lead { font-size: 18px; line-height: 23px; }
  .team__text p + p { font-size: 16px; line-height: 22px; margin-top: 18px; }
  .team__text p + p + p { margin-top: 5px; }
  .team__photo { margin-top: 50px; aspect-ratio: 1160 / 583; }
}

/* Hi Home: три страницы веером. */
.hihome__covers { display: block; position: relative; width: 100%; max-width: 866px; height: 560px; margin: 0 auto; padding: 0; border: 0; background: none; }
.hihome__cover { position: absolute; width: 196px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); border: 6px solid #fff; background: #fff; transition: transform .3s; }
.hihome__cover img { width: 100%; aspect-ratio: 300 / 373; object-fit: cover; }
.hihome__cover--1 { left: 4%; top: 0; transform: rotate(-4deg); }
.hihome__cover--2 { right: 4%; top: 130px; transform: rotate(5deg); z-index: 2; }
.hihome__cover--3 { left: 2%; top: 320px; transform: rotate(-3deg); }
.hihome__covers:hover .hihome__cover--2 { transform: rotate(3deg) translateY(-6px); }
.hihome__action { display: flex; justify-content: center; margin-top: 16px; }
.hihome__action .btn { width: 100%; max-width: 322px; }
@media (min-width: 960px) {
  .hihome__covers { height: 400px; }
  .hihome__cover { width: 300px; }
  .hihome__cover--1 { left: 0; top: 0; transform: rotate(3deg); }
  .hihome__cover--2 { left: 280px; right: auto; top: 0; transform: rotate(-6deg); }
  .hihome__cover--3 { left: 566px; top: 8px; transform: rotate(3deg); }
  .hihome__action { margin-top: 40px; }
  .hihome__action .btn { width: 287px; }
}

/* css/18-faq-builds-contacts.css */
/* FAQ: тёмный фон, две колонки по шесть вопросов с 960px. */
.faq { margin-top: var(--section-gap); padding: 41px 0 50px; background: var(--c-faq); color: #fff; }
.faq__columns { display: grid; gap: 0; }
.faq__item { border-top: 1px solid var(--c-faq-line); }
.faq__column:last-child .faq__item:last-child { border-bottom: 1px solid var(--c-faq-line); }
.faq__item summary {
  display: grid; grid-template-columns: 1fr 34px; gap: 4px 16px; align-items: center;
  padding: 18px 6px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { grid-column: 1; font-size: 12px; color: var(--c-faq-num); }
.faq__q { grid-column: 1; font-size: 16px; line-height: 1.25; font-weight: 500; }
.faq__toggle { grid-column: 2; grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background: var(--c-faq-line); position: relative; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: #fff; translate: -50% -50%; transition: rotate .2s; }
.faq__toggle::after { rotate: 90deg; }
.faq__item[open] .faq__toggle::after { rotate: 0deg; }
.faq__a { padding: 0 6px 20px; color: var(--c-faq-answer); font-size: 15px; line-height: 1.45; }
.faq__a ul { margin: 0; padding-left: 20px; }
@media (min-width: 960px) {
  .faq { padding: 70px 0 70px; }
  .faq__columns { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .faq__column .faq__item:last-child { border-bottom: 1px solid var(--c-faq-line); }
  .faq__q { font-size: 20px; }
  .faq__a { font-size: 16px; }
}

/* Свежие сборки: бесконечная лента, идёт сама. Набор в разметке задублирован — сдвиг на половину. */
.builds__marquee { overflow: hidden; margin-top: 8px; }
.builds__track { display: flex; gap: 20px; width: max-content; animation: builds-run var(--duration, 70s) linear infinite; }
.builds__marquee:hover .builds__track { animation-play-state: paused; }
.builds__item { flex: 0 0 auto; width: 300px; }
.builds__item img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 10px; }
@keyframes builds-run { to { transform: translateX(calc(-50% - 10px)); } }
@media (min-width: 960px) { .builds__item { width: 500px; } }
@media (prefers-reduced-motion: reduce) { .builds__track { animation: none; } .builds__marquee { overflow-x: auto; } }

/* Контакты. */
.contacts__grid { display: grid; gap: 30px; }
.contacts__map { position: relative; min-height: 420px; background: #eee; }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts__map-link { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-size: 13px; padding: 6px 10px; background: #fff; text-decoration: none; }
/* Фото входа — на самой карте, в левом верхнем углу: справа и по центру сидят кнопки и карточка Яндекса,
   на телефоне карточка Яндекса выезжает снизу. Нажатие открывает фото крупно. */
.contacts__entrance {
  position: absolute; left: 12px; top: 12px; z-index: 1; width: 124px; padding: 4px; border: 0; border-radius: 10px;
  background: #fff; color: var(--c-text); text-align: left; box-shadow: var(--shadow-card); cursor: zoom-in;
  transition: transform .2s;
}
.contacts__entrance:hover { transform: translateY(-2px); }
.contacts__entrance:focus-visible { outline: 3px solid var(--c-marker); outline-offset: 2px; }
.contacts__entrance img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.contacts__entrance span { display: block; padding: 6px 4px 2px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.contacts__list { display: grid; gap: 4px; font-size: 15px; line-height: 1.5; }
.contacts__list dt { margin-top: 16px; }
.contacts__list dt:first-child { margin-top: 0; }
.contacts__list dd { font-weight: 600; }
.contacts__list a { text-decoration: underline; text-underline-offset: 3px; }
.contacts__salon-title { margin: 48px 0 18px; font-family: var(--font-head); font-size: 16px; font-weight: 500; text-transform: uppercase; }
/* Фото салона в основном вертикальные: на телефоне одно и край следующего, с 960px — четыре в ряд. */
.contacts__salon-slider .slider__slide { flex-basis: 82%; padding-right: 10px; }
.contacts__salon-slider .slider__slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 960px) {
  .contacts__grid { grid-template-columns: 834px 1fr; grid-template-rows: auto 1fr; column-gap: 40px; }
  .contacts__map { grid-row: 1 / 3; min-height: 582px; }
  .contacts__list { font-size: 20px; line-height: 31px; padding-top: 40px; }
  .contacts__list dt { margin-top: 28px; }
  .contacts__salon-title { font-size: 20px; margin-top: 64px; }
  .contacts__entrance { left: 16px; top: 16px; width: 208px; padding: 6px; }
  .contacts__entrance span { padding: 8px 4px 2px; font-size: 14px; }
  .contacts__salon-slider .slider__slide { flex-basis: 25%; padding-right: 14px; }
}

/* Подвал. */
.footer { margin-top: var(--section-gap); padding: 24px 0 30px; }
.footer__inner { display: grid; gap: 16px; font-size: 12px; line-height: 17px; color: var(--c-muted); }
.footer__links { display: grid; gap: 4px; }
.footer__links a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 960px) {
  .footer__inner { grid-template-columns: 1fr auto; }
  .footer__links { text-align: right; }
}

/* Тексты политики и 404. */
.legal__inner { max-width: 860px; }
.legal__title { font-family: var(--font-head); font-size: 20px; line-height: 1.3; text-transform: uppercase; text-align: center; margin-bottom: 40px; }
.legal__text h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal__text p { margin-top: 10px; }
.not-found p { margin-top: 16px; }

/* Кнопка «наверх». */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(27, 27, 27, 0.6); transition: background-color .2s;
}
.to-top:hover { background: #1c59ff; }
.to-top[hidden] { display: none; }

/* css/19-modals.css */
/* Окна на <dialog>: заявка, меню телефона, предложение по таймеру, видео, фото входа, журнал. */
.modal {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; background: #fff; color: var(--c-text); overflow: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; translate: 0 12px; } }
.modal__close {
  position: absolute; right: 8px; top: 8px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M14 2 2 14' stroke='%231b1b1b' stroke-width='2'/%3E%3C/svg%3E");
}
body.has-modal { overflow: hidden; }

/* Заявка. */
.modal-lead { display: grid; }
.modal-lead__media img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; }
.modal-lead__body { padding: 24px 20px 28px; }
.modal-lead__title { font-family: var(--font-head); font-size: 20px; line-height: 1.25; text-transform: uppercase; }
.modal-lead__text { margin: 12px 0 20px; }
.modal-lead .lead-form__submit { width: 100%; }
@media (min-width: 760px) {
  .modal-lead { grid-template-columns: 1fr 1fr; }
  .modal-lead__media img { max-height: none; min-height: 100%; }
  .modal-lead__body { padding: 48px 40px; }
  .modal-lead__title { font-size: 24px; }
}

/* Меню телефона. */
.modal--menu { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; background: #ebebeb; }
.mobile-menu { display: grid; gap: 4px; padding: 72px 24px 24px; }
.mobile-menu a { padding: 12px 0; font-size: 22px; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.mobile-menu__contacts { display: grid; gap: 10px; padding: 8px 24px 32px; }
.mobile-menu__phone { font-family: var(--font-head); font-size: 18px; font-weight: 700; text-decoration: none; }
.mobile-menu__contacts .btn { margin-top: 10px; }

/* Предложение по таймеру. */
.modal--offer { width: min(1107px, calc(100vw - 24px)); background: #fff; }
.offer { display: grid; }
.offer__body { padding: 32px 20px 20px; }
.offer__title { font-family: var(--font-head); font-size: 20px; line-height: 1.2; text-transform: uppercase; }
.offer__title .accent { color: #ffd232; display: block; }
.offer__text { margin: 12px 0 20px; font-size: 14px; }
.offer__media img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; }
.offer__advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 20px; list-style: none; font-size: 12px; text-align: center; }
.offer__advantages li { display: grid; justify-items: center; gap: 6px; }
@media (min-width: 900px) {
  .offer { grid-template-columns: 460px 1fr; }
  .offer__body { padding: 56px 40px 24px; }
  .offer__title { font-size: 30px; }
  .offer__media { grid-row: 1 / 3; grid-column: 2; }
  .offer__media img { max-height: none; height: 100%; }
  .offer__advantages { grid-template-columns: repeat(4, 1fr); padding: 0 40px 40px; }
}

/* Видео. */
.modal--video { width: min(960px, calc(100vw - 24px)); background: #000; overflow: visible; }
.modal-video { aspect-ratio: 16 / 9; }
.modal-video iframe, .modal-video video { width: 100%; height: 100%; border: 0; display: block; }

/* Фото входа в салон — с карты в контактах. */
.modal--photo { width: min(960px, calc(100vw - 24px)); }
.modal-photo { margin: 0; }
.modal-photo img { display: block; width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; background: #000; }
.modal-photo figcaption { padding: 12px 16px; font-size: 15px; }

/* Журнал Hi Home: страницы перелистываются с поворотом, как в книге. */
.modal--book { width: min(560px, calc(100vw - 24px)); background: #f4f4f4; padding: 56px 16px 20px; overflow: hidden; }
.book__pages { position: relative; perspective: 1600px; aspect-ratio: 1276 / 1586; }
.book__page {
  position: absolute; inset: 0; transform-origin: left center; backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.4, .1, .3, 1), opacity .7s; background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.book__page img { width: 100%; height: 100%; object-fit: cover; }
.book__page::after { /* загнутый правый нижний угол — подсказка, что страницу можно перевернуть */
  content: ""; position: absolute; right: 0; bottom: 0; width: 36px; height: 36px;
  background: linear-gradient(315deg, #f4f4f4 50%, rgba(0, 0, 0, 0.15) 50%, #fff 60%);
}
.book__page.is-turned { transform: rotateY(-100deg); opacity: 0; pointer-events: none; }
.book__page.is-ahead { opacity: 0; pointer-events: none; }
.book__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.book__nav .slider__arrow { position: static; translate: none; }
.book__counter { min-width: 60px; text-align: center; font-size: 14px; }
.book__issue { display: flex; justify-content: center; margin-top: 14px; }
