/* ==========================================================
   СИЛЕНТИУМ — лендинг
   Палитра: чернила / бумага / белый + один акцент (латунь)
   Шрифты:  Playfair Display (заголовки, как в логотипе), Manrope (текст)
   ========================================================== */

:root {
  --paper: #F5F1EA;
  --white: #FFFFFF;
  --ink: #111111;
  --brass: #8A7B63;
  --brass-lt: #B9AA8C;      /* латунь на тёмном фоне */
  --line: #DAD3C5;          /* волосяная линия на бумаге */
  --line-dk: #2F2D2A;       /* волосяная линия на чернилах */
  --mute: #6A645A;          /* вторичный текст на светлом */
  --mute-dk: #A8A195;       /* вторичный текст на тёмном */

  --serif: 'Playfair Display', 'Times New Roman', Times, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --header: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (min-width: 960px) {
  :root { --header: 76px; }
}

/* ---------- База ---------- */

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

html {
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.nowrap { white-space: nowrap; }

::selection { background: var(--brass); color: var(--paper); }

/* Плавная прокрутка к разделам — только когда страница загрузилась
   (иначе браузер «доезжает» до сохранённой позиции при перезагрузке) */
html.is-loaded { scroll-behavior: smooth; }

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

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Типографика ---------- */

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw + .8rem, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow--light { color: var(--brass-lt); }

.tag {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 9px 3px;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- Кнопки и ссылки ---------- */

/* Заливка кнопки «натекает» слева при наведении */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid transparent;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-size .55s var(--ease), color .35s, border-color .35s;
}
.btn:hover { background-size: 100% 100%; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--wide { width: 100%; }

.btn--dark { background-color: var(--ink); background-image: linear-gradient(var(--brass), var(--brass)); color: var(--paper); }

.btn--line { border-color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); color: var(--ink); }
.btn--line:hover { color: var(--paper); }

.btn--light { background-color: var(--paper); background-image: linear-gradient(var(--brass-lt), var(--brass-lt)); color: var(--ink); }

.btn--ghost { border-color: var(--line-dk); background-image: linear-gradient(var(--paper), var(--paper)); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); color: var(--ink); }

.btn[disabled] { opacity: .35; pointer-events: none; }

/* Подчёркивание уходит вправо и прорисовывается заново слева */
.link {
  display: inline-block;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color .3s;
}
.link:hover { color: var(--brass); animation: underline .8s var(--ease); }
.link--light:hover { color: var(--brass-lt); }

@keyframes underline {
  0%     { background-size: 100% 1px; background-position: right bottom; }
  45%    { background-size: 0% 1px;   background-position: right bottom; }
  45.1%  { background-size: 0% 1px;   background-position: left bottom; }
  100%   { background-size: 100% 1px; background-position: left bottom; }
}

/* ---------- Появление при скролле ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Заголовки: слова поднимаются из-под маски */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .1em 0 .16em;
  margin: -.1em 0 -.16em;
}
.wi { display: inline-block; }
.js .split .wi {
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.js .is-in .split .wi,
.js .split.is-in .wi { transform: none; }

/* Фото: открываются шторкой снизу и «оседают» */
/* Шторка — на самой картинке: обрезка контейнера мешала бы IntersectionObserver */
.js .unveil > img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease), scale 1.9s var(--ease), transform 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms), calc(var(--d, 0) * 110ms), 0s;
}
.js .unveil.is-in > img { clip-path: inset(0 0 0 0); }
.js .unveil:not(.is-in) img { scale: 1.3; }

/* Параллакс: запас по краям, сдвиг задаёт JS через --py */
img[data-parallax] {
  scale: 1.12;
  translate: 0 var(--py, 0px);
  will-change: translate;
}

/* ---------- Фактура бумаги ---------- */

/* Едва заметное зерно поверх страницы — убирает «цифровую» гладкость */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Шапка ---------- */

/* Над первым кадром шапка прозрачная, при прокрутке — бумажная с размытием.
   Вниз — прячется, вверх — возвращается. */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: transform .55s var(--ease), background-color .4s, border-color .4s, color .4s;
}
.header.is-stuck {
  background: rgba(245, 241, 234, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-101%); }

/* Над тёмными экранами (первый экран, подбор, заявка) — тёмное стекло */
.header.is-dark { color: var(--paper); }
.header.is-dark.is-stuck {
  background: rgba(17, 17, 17, .58);
  border-bottom-color: rgba(245, 241, 234, .1);
}
.header.is-dark .btn--dark {
  background-color: var(--paper);
  background-image: linear-gradient(var(--brass-lt), var(--brass-lt));
  color: var(--ink);
}
.header.is-dark .header__tel:hover { color: var(--brass-lt); }

/* Когда открыто меню — шапка ложится поверх створок */
.header.is-menu {
  z-index: 100;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--paper);
  transform: none;
}

.header__in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header);
  padding-inline: var(--gutter);
}

.logo { display: block; flex: none; color: inherit; }
.logo svg { width: 116px; height: auto; }
.logo__word { font-family: var(--serif); font-weight: 400; fill: currentColor; }
.logo__script { font-family: 'Caveat', cursive; font-weight: 500; fill: currentColor; }

/* Подпись текущего раздела: «вы здесь» */
.where { display: none; }

.header__act {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.header__tel {
  display: none;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .3s, color .3s;
}
.header__tel:hover { color: var(--brass); }

.header__cta { transition: background-size .55s var(--ease), color .35s, opacity .3s; }
.header.is-menu .header__cta,
.header.is-menu .header__tel { opacity: 0; visibility: hidden; pointer-events: none; }

/* Кнопка меню: маленькая дверь, которая приоткрывается при наведении */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  font-size: .9375rem;
  font-weight: 600;
}
.menu-btn__door {
  position: relative;
  width: 17px;
  height: 23px;
  border: 1.5px solid currentColor;
  border-bottom-width: 0;
  perspective: 70px;
}
.menu-btn__door::after {          /* порог */
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
}
.menu-btn__door i {
  position: absolute;
  inset: 2px 2px 0;
  background: currentColor;
  transform-origin: left center;
  transition: transform .6s var(--ease);
}
.menu-btn__door i::after {        /* ручка */
  content: '';
  position: absolute;
  right: 2px;
  top: 52%;
  width: 3px;
  height: 1.5px;
  background: var(--brass-lt);
}
.menu-btn:hover .menu-btn__door i { transform: rotateY(-58deg); }
.menu-btn[aria-expanded="true"] .menu-btn__door i { transform: rotateY(-80deg); }

.menu-btn__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Линия прогресса страницы */
.header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--brass);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  opacity: 0;
  transition: opacity .4s;
}
.header.is-stuck .header__progress { opacity: 1; }
.header.is-menu .header__progress { opacity: 0; }

@media (max-width: 419px) {
  .hide-xs { display: none; }
  .logo svg { width: 104px; }
  .header__cta { padding: 0 14px; }
}

@media (min-width: 720px) {
  .logo svg { width: 156px; }
  .header__tel { display: inline-flex; margin-right: 18px; }
  .header__act { gap: 14px; }
  .menu-btn { padding-left: 8px; }
  .menu-btn__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

@media (min-width: 960px) {
  .where {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-left: clamp(28px, 4vw, 64px);
    color: var(--mute);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s, color .3s;
  }
  .where.is-on { opacity: 1; pointer-events: auto; }
  .where:hover { color: var(--ink); }
  .header.is-dark .where { color: rgba(245, 241, 234, .62); }
  .header.is-dark .where:hover { color: var(--paper); }
  .header.is-menu .where { opacity: 0; pointer-events: none; }
  .where__mark {                  /* крошечная дверная рамка, как в логотипе */
    width: 7px;
    height: 11px;
    border: 1px solid var(--brass);
    border-bottom: 0;
  }
  .where__text { display: inline-block; white-space: nowrap; }
}

/* ---------- Меню: створки закрываются, на них — разделы ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  color: var(--paper);
  perspective: 2200px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 1s;
}
.menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.menu__leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background: linear-gradient(90deg, #121110, #1a1917 55%, #161513);
  backface-visibility: hidden;
  transition: transform 1s cubic-bezier(.7, 0, .18, 1);
}
.menu__leaf--l { left: 0; transform-origin: left center; transform: rotateY(98deg); }
.menu__leaf--r {
  right: 0;
  transform-origin: right center;
  transform: rotateY(-98deg);
  background: linear-gradient(270deg, #121110, #1a1917 55%, #161513);
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, .6);
}
.menu.is-open .menu__leaf { transform: rotateY(0); }
.menu.is-open .menu__leaf--r { transition-delay: .06s; }

/* Филёнка на каждой створке */
.menu__leaf::before {
  content: '';
  position: absolute;
  top: calc(var(--header) + 3vh);
  bottom: 5vh;
  left: 4vw;
  right: 4vw;
  border: 1px solid rgba(245, 241, 234, .08);
}
/* Латунные ручки у притвора */
.menu__leaf::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 84px;
  margin-top: -42px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6e6250, #cbbb98 50%, #7d705b);
}
.menu__leaf--l::after { right: 14px; }
.menu__leaf--r::after { left: 14px; }

.menu__content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  padding: calc(var(--header) + 2vh + 4vh) 0 calc(4vh + 24px);
  opacity: 0;
  transition: opacity .3s;
}
.menu.is-open .menu__content { opacity: 1; transition: opacity .6s .55s; }

.menu__nav {
  display: grid;
  align-content: start;
  gap: clamp(4px, 1vh, 12px);
  padding: 0 calc(4vw + 56px) 0 calc(4vw + 48px);
}
.menu__nav a {
  display: grid;
  justify-items: start;
  gap: 2px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s, transform .6s var(--ease);
}
.menu.is-open .menu__nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(.55s + var(--i) * 55ms);
}
.menu__name {
  font-family: var(--serif);
  font-size: clamp(1.375rem, min(2vw, 3vh) + .3rem, 2.5rem);   /* 9 пунктов должны влезть и в 720 px высоты */
  line-height: 1.12;
  transition: color .3s, transform .5s var(--ease);
}
.menu__note {
  color: var(--mute-dk);
  font-size: .8125rem;
  transition: color .3s;
}
.menu__nav a:hover .menu__name,
.menu__nav a:focus-visible .menu__name { color: var(--brass-lt); transform: translateX(8px); }
.menu__nav a:hover .menu__note { color: var(--paper); }

.menu__contact {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: 0 calc(4vw + 48px) 0 calc(4vw + 56px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s, transform .6s var(--ease);
}
.menu.is-open .menu__contact { opacity: 1; transform: none; transition-delay: .75s; }
.menu__label {
  color: var(--brass-lt);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.menu__tel {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.2vw + .5rem, 2.75rem);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}
.menu__tel:hover { color: var(--brass-lt); }
.menu__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.menu__hours { color: var(--mute-dk); font-size: .9375rem; line-height: 1.7; }
.menu__cta { margin-top: 14px; }

.menu__foot {
  grid-column: 1 / -1;
  padding-inline: calc(4vw + 48px);
  color: rgba(245, 241, 234, .38);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .5s;
}
.menu.is-open .menu__foot { opacity: 1; transition-delay: .9s; }

/* Телефон: одна створка на петлях слева, содержимое — в одну колонку */
@media (max-width: 859px) {
  .menu__leaf--r { display: none; }
  .menu__leaf--l { width: 100%; }
  .menu__leaf::before { left: 14px; right: 14px; top: calc(var(--header) + 8px); bottom: 14px; }
  .menu__leaf--l::after { right: 6px; height: 64px; margin-top: -32px; }
  .menu__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-content: start;
    gap: 36px;
    padding: calc(var(--header) + 32px) 0 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* при прокрутке пункты не заезжают под логотип, а плавно уходят под шапку */
    -webkit-mask-image: linear-gradient(transparent var(--header), #000 calc(var(--header) + 28px));
    mask-image: linear-gradient(transparent var(--header), #000 calc(var(--header) + 28px));
  }
  .menu__nav { gap: 12px; padding: 0 36px; }
  .menu__name { font-size: 1.75rem; }
  .menu__contact { padding: 0 36px; }
  .menu__foot { padding-inline: 36px; }
}

html.menu-open { overflow: hidden; padding-right: var(--sw, 0px); }

/* ---------- 1. Вход и первый экран ---------- */

/* Шапка лежит поверх сцены, а не над ней */
.entry { margin-top: calc(var(--header) * -1); }

/* Дорожка прокрутки: пока её листают, сцена стоит на месте */
.entry__track { position: relative; height: 290vh; }

.entry__stage {
  --open: 0;          /* 0 — дверь закрыта, 1 — открыта (задаёт JS) */
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
}

/* Комната за дверью — она же фон первого экрана.
   Пока дверь закрыта, комнату не показываем: иначе она мелькает при загрузке */
.entry__room { position: absolute; inset: 0; }
.js .entry:not(.has-room) .entry__room { visibility: hidden; }
.entry__room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  scale: var(--room-scale, 1);
  filter: brightness(var(--room-light, 1)) blur(var(--room-blur, 0px));
}
@media (max-width: 959px) {
  .entry__room img { filter: brightness(var(--room-light, 1)); }
}

/* Стена с дверью: размер и положение считает JS (как object-fit: cover) */
.entry__wall {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  animation: entry-in 1.8s var(--ease) both;
}
@keyframes entry-in {
  from { opacity: 0; scale: 1.05; }
  to { opacity: 1; scale: 1; }
}
.entry__wall-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Когда дверь приоткрыта — в стене вырезается проём */
.entry__wall.is-opening .entry__wall-img {
  -webkit-mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-size: 100% 100%, 12.912% 64.385%;
  -webkit-mask-position: 0 0, 31.72% 45.157%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-size: 100% 100%, 12.912% 64.385%;
  mask-position: 0 0, 31.72% 45.157%;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}

/* Полотно двери. Обёртка задаёт перспективу и прозрачность,
   а поворачивается внутренний слой — так торец остаётся объёмным */
.entry__leaf {
  position: absolute;
  left: 27.625%;
  top: 16.083%;
  width: 12.912%;
  height: 64.385%;
  perspective-origin: 50% 50%;
}
.entry__panel {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(var(--swing, 0deg));
}
.entry__panel img { width: 100%; height: 100%; display: block; }

/* Светотень полотна: у петель плотнее, к свободному краю мягче */
.entry__tone {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(48, 22, 18, .34) 0%, rgba(48, 22, 18, .12) 45%, rgba(255, 236, 214, .05) 100%);
  opacity: min(1, calc(var(--open) * 1.6));
}

/* Торец полотна (≈ 40 мм при ширине 800 мм) */
.entry__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 5%;
  background: linear-gradient(90deg, #b9736c, #9d5d58);
  transform-origin: left center;
  transform: rotateY(90deg);
}

/* Глубина дверной коробки: потолочная и боковая грани проёма */
.entry__jamb {
  position: absolute;
  opacity: min(1, calc(var(--open) * 10));
}
.entry__jamb--head {
  left: 27.625%;
  width: 12.912%;
  top: 16.083%;
  height: .9%;
  background: linear-gradient(#6f3f3c, #9c5f5a);
}
.entry__jamb--side {
  left: 27.625%;
  width: .62%;
  top: 16.083%;
  height: 64.385%;
  background: linear-gradient(90deg, #8c524d, #a9675f);
}

/* Мягкая тень в проёме у петель — полотно закрывает часть света */
.entry__ao {
  position: absolute;
  left: 27.625%;
  width: 12.912%;
  top: 16.083%;
  height: 64.385%;
  background:
    linear-gradient(90deg, rgba(20, 12, 8, .45) 0%, rgba(20, 12, 8, .12) 28%, rgba(20, 12, 8, 0) 50%),
    linear-gradient(180deg, rgba(20, 12, 8, .25) 0%, rgba(20, 12, 8, 0) 10%);
  opacity: min(1, calc(var(--open) * 2));
  pointer-events: none;
}

/* Тёплый свет из комнаты ложится на пол перед дверью.
   Начинается строго от порога: над проёмом ему не на что ложиться */
.entry__spill {
  position: absolute;
  left: 21%;
  width: 26%;
  top: 80.47%;
  height: 8%;
  background: radial-gradient(ellipse 46% 100% at 50% 0%, rgba(255, 214, 160, .5), rgba(255, 206, 140, .16) 55%, rgba(255, 206, 140, 0) 100%);
  mix-blend-mode: soft-light;
  opacity: var(--open);
  pointer-events: none;
}

/* Полоска тёплого света под закрытой дверью */
.entry__light {
  position: absolute;
  left: 28.4%;
  width: 11.4%;
  top: 80.3%;
  height: .55%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 214, 150, .95), rgba(255, 196, 120, 0) 70%);
  filter: blur(2px);
  opacity: calc(.8 - var(--open) * 8);
  animation: light 3.2s ease-in-out infinite;
}
@keyframes light { 50% { filter: blur(3px) brightness(1.25); } }

/* Подсказка: текст на мягком размытом ореоле, без жёстких краёв */
.entry__hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 56px 0;
  translate: -50% 0;
  isolation: isolate;
  color: var(--ink);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: var(--hint, 1);
  pointer-events: none;
}
.entry__hint::before {
  content: '';
  position: absolute;
  inset: -6px -10px -18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 241, 234, .9), rgba(245, 241, 234, .55) 55%, rgba(245, 241, 234, 0));
  filter: blur(10px);
}
.entry__hint span { animation: hint-in 1.2s var(--ease) 1.4s both; }
.entry__hint::after {
  content: '';
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--ink), rgba(17, 17, 17, 0));
  transform-origin: top;
  animation: hint 2.4s var(--ease) 2s infinite both;
}
@keyframes hint-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 719px) {
  .entry__hint { bottom: 84px; padding-inline: 40px; }
}

/* Затемнение под текстом первого экрана */
.entry__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(14, 13, 12, .88) 0%, rgba(14, 13, 12, .55) 42%, rgba(14, 13, 12, .05) 72%);
  opacity: var(--hero, 0);
  pointer-events: none;
}

/* Первый экран поверх комнаты: надпись, заголовок, кнопки, карточка спецпредложения, полоса доверия */
.hero {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--header) + 24px) var(--gutter) clamp(18px, 3vh, 32px);
  color: var(--paper);
  pointer-events: none;
}
.entry.is-hero .hero { pointer-events: auto; }
.hero__inner {
  display: grid;
  align-items: end;
  gap: 22px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}
.hero__text { max-width: 660px; container-type: inline-size; }

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 22px;
  color: rgba(245, 241, 234, .74);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero__eyebrow i { width: 34px; height: 1px; background: var(--brass-lt); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 13.6cqw, 6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero__title span { display: block; }
/* «тишину» — латунь с мягким бликом, который один раз пробегает по слову */
.hero__title em {
  font-style: italic;
  color: var(--brass-lt);
  background: linear-gradient(100deg, var(--brass-lt) 38%, #fff4dc 50%, var(--brass-lt) 62%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.js .entry.is-hero .hero__title em { animation: hero-shine 2.8s 1.1s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes hero-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero__title .ln { overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.js .hero__title .ln > span {
  transform: translateY(112%);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms + 100ms);
}
.js .entry.is-hero .hero__title .ln > span { transform: none; }

.hero__lead {
  max-width: 31em;
  margin-top: 18px;
  color: rgba(245, 241, 234, .84);
  font-size: 1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__cta .btn { flex: 1 1 150px; }
.hero .btn--ghost { border-color: rgba(245, 241, 234, .45); }

/* Карточка спецпредложения: матовое стекло */
.hero__offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(245, 241, 234, .22);
  background: rgba(20, 18, 16, .38);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--paper);
  text-decoration: none;
  transition: border-color .4s, background-color .4s;
}
.hero__offer:hover { border-color: rgba(245, 241, 234, .5); background: rgba(20, 18, 16, .5); }
.hero__offer img { width: 46px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.hero__offer-txt { display: grid; gap: 2px; }
.hero__offer-txt small { color: var(--brass-lt); font-size: .625rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero__offer-txt b { font: 400 1.5rem/1.15 var(--serif); }
.hero__offer-txt span { color: rgba(245, 241, 234, .76); font-size: .8125rem; line-height: 1.4; }
.hero__offer-txt i { margin-top: 4px; color: var(--brass-lt); font-size: .8125rem; font-style: normal; }
.hero__offer-txt i::after { content: ' →'; transition: margin .3s; }
.hero__offer:hover .hero__offer-txt i::after { margin-left: 4px; }

/* Полоса доверия */
.hero__stats { display: none; }

.js .entry .rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
.js .entry.is-hero .rise { opacity: 1; transform: none; }

@media (min-width: 960px) {
  .entry__shade {
    background:
      linear-gradient(90deg, rgba(14, 13, 12, .82) 0%, rgba(14, 13, 12, .52) 36%, rgba(14, 13, 12, 0) 64%),
      linear-gradient(0deg, rgba(14, 13, 12, .7) 0%, rgba(14, 13, 12, 0) 34%);
  }
  .hero { padding-top: calc(var(--header) + 40px); }
  .hero__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
  .hero__text { align-self: center; }
  .hero__lead { margin-top: 26px; font-size: 1.125rem; }
  .hero__cta { margin-top: 36px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__offer { margin-bottom: 6px; }
  .hero__offer img { width: 58px; }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: var(--max);
    margin: 34px auto 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(245, 241, 234, .22);
  }
  .hero__stats li { display: grid; gap: 2px; padding: 16px 20px 0 0; }
  .hero__stats li + li { padding-left: 20px; border-left: 1px solid rgba(245, 241, 234, .14); }
  .hero__stats b { font: 400 1.625rem/1.1 var(--serif); }
  .hero__stats span { color: rgba(245, 241, 234, .66); font-size: .8125rem; }
}
@media (max-height: 760px) and (min-width: 960px) {
  .hero__stats { margin-top: 20px; }
  .hero__stats li { padding-top: 10px; }
  .hero__title { font-size: clamp(2.3rem, 11.5cqw, 5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .js .entry.is-hero .hero__title em { animation: none; background-position: 0 0; }
}

/* Без JS сцены нет: сразу первый экран, шапка — на бумажном фоне */
html:not(.js) .header { background: var(--paper); border-bottom-color: var(--line); }
html:not(.js) .entry { margin-top: 0; }
html:not(.js) .entry__track { height: auto; }
html:not(.js) .entry__stage { position: relative; }
html:not(.js) .entry__wall,
html:not(.js) .entry__hint { display: none; }
html:not(.js) .entry__shade { opacity: 1; }

/* ---------- 2. Квиз ---------- */

.quiz {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--ink);
  color: var(--paper);
}

.quiz__grid { display: grid; gap: 36px; }

.quiz__note {
  max-width: 26em;
  margin-top: 20px;
  color: var(--mute-dk);
  font-size: 1.0625rem;
}

.quiz__card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px 20px;
  border: 1px solid var(--line-dk);
}

.quiz__noscript { color: var(--mute-dk); }

.quiz__top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.quiz__count {
  flex: none;
  color: var(--mute-dk);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.quiz__bar {
  flex: 1;
  height: 1px;
  background: var(--line-dk);
}
.quiz__bar span {
  display: block;
  height: 3px;
  margin-top: -1px;
  background: var(--brass-lt);
  transition: width .6s var(--ease);
}

.quiz__pick {
  margin-top: 14px;
  color: var(--mute-dk);
  font-size: .875rem;
}
.quiz__pick b { color: var(--paper); font-weight: 600; }
.quiz__pick button {
  margin-left: 8px;
  color: var(--mute-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz__pick button:hover { color: var(--paper); }

.quiz__body {
  flex: 1;
  margin-top: 28px;
  animation: quiz-in .5s var(--ease) both;
}
@keyframes quiz-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

.quiz__q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2rem);
  line-height: 1.2;
  outline: none;
}

.quiz__tiles {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 12px 18px;
  border: 1px solid var(--line-dk);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  transition: border-color .25s, background-color .25s, color .25s;
}
.tile svg {
  flex: none;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--brass-lt);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .25s;
}
.tile svg .f { fill: var(--brass-lt); stroke: none; transition: fill .25s; }
.tile:hover { border-color: var(--brass-lt); }
.tile[aria-checked="true"] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.tile[aria-checked="true"] svg { stroke: var(--ink); }
.tile[aria-checked="true"] svg .f { fill: var(--ink); }

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.quiz__nav .btn { min-width: 120px; }
.quiz__nav [hidden] { display: none; }

.quiz__sum {
  margin-top: 12px;
  color: var(--mute-dk);
  font-size: .875rem;
}

.quiz__form {
  display: grid;
  gap: 14px;
  max-width: 440px;
  margin-top: 24px;
}

.quiz__done { text-align: left; }
.quiz__done svg {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  fill: none;
  stroke: var(--brass-lt);
  stroke-width: 1.4;
}
.quiz__done p {
  max-width: 28em;
  margin-top: 16px;
  color: var(--mute-dk);
}
.quiz__done .link { margin-top: 28px; }

.demo-note {
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px dashed var(--brass-lt);
  color: var(--brass-lt);
  font-size: .8125rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .quiz__card { padding: 36px 36px 32px; }
  .quiz__tiles { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; }
  .tile {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    min-height: 148px;
    padding: 18px 16px 16px;
  }
}

@media (min-width: 960px) {
  .quiz__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .quiz__intro { position: sticky; top: calc(var(--header) + 40px); }
  .quiz__card { padding: 44px 48px 40px; min-height: 480px; }
}

/* ---------- Формы ---------- */

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

.form { display: grid; gap: 14px; }

.field { display: block; }
.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--mute-dk);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line-dk);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #6f6a61; }
.field input:hover { border-color: #55514a; }
.field input:focus { outline: none; border-color: var(--brass-lt); }
.field input.is-bad { border-color: #D98A6A; }

.agree {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--mute-dk);
  font-size: .8125rem;
  line-height: 1.5;
  cursor: pointer;
}
.agree input {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #55514a;
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.agree input:checked {
  border-color: var(--brass-lt);
  background: var(--brass-lt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5.5 11.5l3.5 3.5 7.5-8' fill='none' stroke='%23111' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.agree input.is-bad { border-color: #D98A6A; }
.agree a { color: var(--paper); text-underline-offset: 3px; }

.form__err {
  color: #E5A58A;
  font-size: .875rem;
  line-height: 1.5;
}
.form__err[hidden] { display: none; }
.form__err a { color: inherit; }

.form__done h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}
.form__done p { margin-top: 12px; color: var(--mute-dk); }

/* ---------- Общая секция ---------- */

.sec { padding-block: clamp(72px, 10vw, 140px); }
.sec--white { background: var(--white); }

.sec__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec__lead {
  max-width: 34em;
  color: var(--mute);
  font-size: 1.0625rem;
}

@media (min-width: 960px) {
  .sec__head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: end;
  }
  .sec__lead { justify-self: end; padding-bottom: 6px; }
}

/* ---------- 3. Коллекции ---------- */

.cols {
  display: flex;
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.cols::-webkit-scrollbar { display: none; }

.col {
  flex: 0 0 82%;
  max-width: 380px;
  scroll-snap-align: start;
}

.col__pic {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e4ddd0;
}
.col__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.col:hover .col__pic img { transform: scale(1.035); }

.col__body { padding-top: 18px; }
.col__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
}
.col__text {
  margin-top: 8px;
  color: var(--mute);
  font-size: .9375rem;
}
.col__body .link { margin-top: 16px; }

@media (min-width: 960px) {
  .cols {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 56px 24px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .col { max-width: none; }
  .col--a { grid-column: span 7; }
  .col--b { grid-column: span 5; }
  .col--c { grid-column: span 4; }

  .col--a .col__pic,
  .col--b .col__pic { aspect-ratio: auto; height: clamp(380px, 40vw, 540px); }
  .col--c .col__pic { aspect-ratio: 4 / 5; }

  .col__name { font-size: 1.75rem; }
  .col--a .col__name { font-size: 2.125rem; }
  .col__text { font-size: 1rem; }
}

/* Рамка как в логотипе: проявляется при наведении, в разрыве — подпись от руки */
.col__pic,
.work { position: relative; }
.col__pic::after,
.work::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .2);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.frame {
  --c: rgba(255, 255, 255, .92);
  position: absolute;
  inset: 26px;
  z-index: 1;
  font-size: 1rem;
  background:
    linear-gradient(var(--c), var(--c)) left top / 100% 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 100% no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 100% no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / calc(100% - 7.4em) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1.2em 1px no-repeat;
  opacity: 0;
  transition: inset .8s var(--ease), opacity .6s var(--ease);
  pointer-events: none;
}
.frame span {
  position: absolute;
  right: 1.75em;
  bottom: 0;
  translate: 0 52%;
  color: #fff;
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
}
@media (hover: hover) {
  .col:hover .col__pic::after,
  .work:hover::after { opacity: 1; }
  .col:hover .frame,
  .work:hover .frame { opacity: 1; inset: 16px; }
}
.col__pic { cursor: pointer; }

/* Курсивный акцент в заголовках */
.h2 em { font-style: italic; color: var(--brass); }
.quiz .h2 em,
.contact .h2 em { color: var(--brass-lt); }

/* ---------- 4. Тишина ---------- */

.silence { background: var(--white); }

/* Высокая «дорожка» — пока её прокручивают, сцена стоит на месте */
.silence__track { position: relative; height: 260vh; }

.silence__stage {
  --open: 1;                 /* 1 — дверь открыта, 0 — закрыта (задаёт JS) */
  --shut: 0;                 /* 0…1 — проявление заголовка */
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  justify-items: center;
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--header) + 16px) 0 28px;
  overflow: hidden;
}

.silence__kicker {
  display: grid;
  align-self: end;
  margin-bottom: clamp(20px, 4vh, 48px);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.silence__state {
  grid-area: 1 / 1;
  text-align: center;
  transition: opacity .5s, transform .6s var(--ease);
}
.silence__state--shut { opacity: 0; transform: translateY(8px); }
.silence__stage.is-shut .silence__state--open { opacity: 0; transform: translateY(-8px); }
.silence__stage.is-shut .silence__state--shut { opacity: 1; transform: none; }

/* Линия звука: шум слева упирается в дверь, справа — тишина */
.wave {
  position: relative;
  width: 100%;
  height: 230px;
}
.wave__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.wave__svg path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.wave__door {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 84px;
  height: 178px;
  margin-left: -42px;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  background: var(--white);
  perspective: 600px;
}
.wave__door::before {          /* наличник */
  content: '';
  position: absolute;
  inset: -9px -9px 0;
  border: 1px solid var(--ink);
  border-bottom: 0;
  pointer-events: none;
}
.wave__door::after {           /* пол */
  content: '';
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
}

/* Тёплый свет комнаты в проёме — виден, пока дверь открыта */
.wave__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 60% 62%, #F1E4C6 0%, #E8D7B0 38%, rgba(232, 215, 176, 0) 100%);
  opacity: var(--open);
}

.wave__leaf {
  position: absolute;
  inset: 3px 3px 0;
  background: linear-gradient(100deg, #262421 0%, #111 55%, #1b1a18 100%);
  transform-origin: left center;
  transform: rotateY(calc(var(--open) * -82deg));
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
}
.wave__leaf i {                /* ручка */
  position: absolute;
  right: 9px;
  top: 52%;
  width: 13px;
  height: 2px;
  background: var(--brass-lt);
}
.wave__leaf i::before {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--brass-lt);
}

.wave__label {
  position: absolute;
  bottom: -34px;
  color: var(--mute);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wave__label--out { left: var(--gutter); }
.wave__label--in { right: var(--gutter); }

.silence__title {
  max-width: 14em;
  margin-top: clamp(56px, 9vh, 96px);
  padding-inline: var(--gutter);
  font-size: clamp(2.25rem, 4.4vw + .5rem, 4.75rem);
  text-align: center;
  opacity: var(--shut);
  transform: translateY(calc((1 - var(--shut)) * 28px));
}
.silence__title { transform-origin: center; }

.silence__hint {
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--mute);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: calc(1 - var(--shut) * 2);
}
.silence__hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--ink), transparent);
  animation: hint 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.silence__grid {
  display: grid;
  gap: 40px;
  padding-block: clamp(32px, 5vw, 64px) clamp(72px, 10vw, 140px);
}
.silence__text {
  max-width: 34em;
  color: #3b3833;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.silence__pic {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4ddd0;
}
.silence__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}

@media (min-width: 720px) {
  .wave { height: 300px; }
  .wave__door { width: 118px; height: 244px; margin-left: -59px; }
  .wave__door::before { inset: -12px -12px 0; }
  .wave__leaf i { right: 13px; width: 16px; }
}

@media (min-width: 960px) {
  .silence__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }
  .silence__text { font-size: 1.1875rem; }
  .silence__pic { aspect-ratio: 5 / 4; }
}

/* ---------- 5. Почему ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 20px;
}
.fact {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.fact > span {
  display: block;
  max-width: 17em;
  margin-top: 10px;
  color: var(--mute);
  font-size: .9375rem;
  line-height: 1.5;
}

@media (min-width: 860px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 40px;
  }
  .fact { padding-top: 24px; }
  .fact > span { margin-top: 14px; font-size: 1rem; }
}

/* ---------- 6. Как работаем ---------- */

/* Линия пути прорисовывается по мере прокрутки (--p от 0 до 1 задаёт JS),
   шаги загораются, когда линия до них доходит */
.steps {
  --p: 1;
  position: relative;
  display: grid;
  counter-reset: step;
}
.js .steps { --p: 0; }

.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 15px;
  bottom: 48px;
  width: 1px;
  background: var(--line);
}
.steps::after {
  background: var(--brass);
  transform-origin: top;
  transform: scaleY(var(--p));
}

.step {
  position: relative;
  z-index: 1;
  padding: 0 0 36px 54px;
  counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step::before {                 /* номер шага в кружке */
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--mute);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
  transition: border-color .5s, color .5s, background-color .5s;
}
.step h3,
.step p { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.step p { transition-delay: .08s; }

.js .step:not(.is-on) h3,
.js .step:not(.is-on) p { opacity: 0; transform: translateY(16px); }
.step.is-on::before,
html:not(.js) .step::before { border-color: var(--brass); background: var(--brass); color: var(--white); }

.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.25;
}
.step p {
  max-width: 24em;
  margin-top: 8px;
  color: var(--mute);
  font-size: .9375rem;
}

.pay {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.pay b {
  flex-basis: 100%;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.2vw + 1rem, 1.75rem);
  line-height: 1.2;
}
.pay span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: .9375rem;
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
  }
  .steps::before,
  .steps::after {
    left: 15px;
    right: calc((100% - 112px) / 5 - 15px);
    top: 15px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .steps::after { transform-origin: left; transform: scaleX(var(--p)); }
  .step { padding: 60px 0 0; }
  .step h3 { font-size: 1.5rem; }
}

/* ---------- 7. Акции ---------- */

.offers { border-top: 1px solid var(--ink); }
.offer {
  display: grid;
  gap: 10px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.offer b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  color: var(--brass);
}
.offer p { font-size: 1.0625rem; }
.offer__body { display: grid; gap: 14px; }
.ral {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  list-style: none;
  color: var(--mute);
  font-size: .875rem;
  letter-spacing: .02em;
}
.ral li { display: inline-flex; align-items: center; gap: 8px; }
.ral i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .14);
}
.offer .link { justify-self: start; margin-top: 6px; }

@media (min-width: 860px) {
  .offer {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto;
    gap: 40px;
    align-items: baseline;
    padding-block: 36px;
  }
  .offer p { font-size: 1.1875rem; }
  .offer .link { justify-self: end; margin-top: 0; }
}

/* ---------- 8. Примеры работ ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.work {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e9e4da;
  cursor: zoom-in;
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .3s;
}
.work:hover img { transform: scale(1.04); }

@media (min-width: 860px) {
  .works { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

.works[hidden] { display: none; }
.works__more { grid-column: 1 / -1; }

/* Лукбук: первый кадр крупный */
.works--look .work:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.tabs {
  position: relative;
  display: inline-flex;
  gap: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.tabs__btn {
  padding: 0 0 14px;
  color: var(--mute);
  font-size: 1rem;
  font-weight: 600;
  transition: color .3s;
}
.tabs__btn[aria-selected="true"],
.tabs__btn:hover { color: var(--ink); }
.tabs__bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--w, 0);
  translate: var(--x, 0) 0;
  background: var(--brass);
  transition: translate .5s var(--ease), width .5s var(--ease);
}

.js .work--more { display: none; }
.js .works.is-all .work--more { display: block; }
.works__more { margin-top: 36px; text-align: center; }
.works__more[hidden] { display: none; }

/* Лайтбокс */
.lb {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 17, 17, .96);
  color: var(--paper);
}
.lb[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb::backdrop { background: rgba(17, 17, 17, .96); }

.lb__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 32px);
}
.lb__img {
  width: auto;
  max-width: min(calc(100vw - 32px), 620px);
  max-height: calc(100svh - 150px);
}
.lb__cap {
  margin-top: 16px;
  color: var(--mute-dk);
  font-size: .9375rem;
  text-align: center;
}
.lb__close,
.lb__nav {
  position: absolute;
  width: 52px;
  height: 52px;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--paper);
  transition: color .25s;
}
.lb__close:hover,
.lb__nav:hover { color: var(--brass-lt); }
.lb__close { top: 10px; right: 10px; }
.lb__nav { bottom: 14px; }
.lb__nav--prev { left: calc(50% - 64px); }
.lb__nav--next { right: calc(50% - 64px); }

@media (min-width: 860px) {
  .lb__nav { top: 50%; bottom: auto; margin-top: -26px; }
  .lb__nav--prev { left: 24px; }
  .lb__nav--next { right: 24px; }
  .lb__img { max-height: calc(100svh - 120px); }
}

/* ---------- 9. Отзывы ---------- */

.reviews { display: grid; gap: 16px; }
.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 220px;
  padding: 28px;
  background: var(--white);
}
.review blockquote {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
}
.review figcaption {
  color: var(--mute);
  font-size: .875rem;
}
.review--empty {
  background: transparent;
  border: 1px dashed #bdb5a5;
}
.review--empty blockquote { color: #8d867a; font-style: italic; }

.reviews__more { margin-top: 36px; }

@media (min-width: 720px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .review { padding: 36px; }
}

/* ---------- 10. Салоны ---------- */

.salons { border-top: 1px solid var(--ink); }
.salon {
  display: grid;
  gap: 6px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.salon h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.25;
}
.salon p { color: var(--mute); }
.salon .link { justify-self: start; margin-top: 8px; }
.salon__tel { color: var(--ink); text-decoration: none; white-space: nowrap; }
.salon__tel:hover { color: var(--brass); }

@media (min-width: 860px) {
  .salon {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto auto;
    gap: 40px;
    align-items: baseline;
    padding-block: 26px;
  }
  .salon h3 { font-size: 1.5rem; }
  .salon .link { justify-self: end; margin-top: 0; }
}

/* ---------- 11. Финальная форма ---------- */

.contact {
  padding-block: clamp(72px, 10vw, 140px);
  background: var(--ink);
  color: var(--paper);
}
.contact__grid { display: grid; gap: 44px; }

.contact__lead {
  max-width: 28em;
  margin-top: 20px;
  color: var(--mute-dk);
  font-size: 1.0625rem;
}
/* Телефоны менеджеров: имена — ровной колонкой справа, на узком экране — под номером */
.contact__direct, .menu__tels {
  display: grid;
  grid-template-columns: max-content auto;
  justify-content: start;
  align-items: baseline;
  gap: 10px 16px;
}
.contact__direct { margin-top: 36px; }
.contact__mgr, .menu__mgr { display: contents; }
.contact__mgr span, .menu__mgr span { color: var(--mute-dk); font-size: .9375rem; }
@media (max-width: 479px) {
  .contact__direct, .menu__tels { grid-template-columns: max-content; row-gap: 2px; }
  .contact__mgr + .contact__mgr a, .menu__mgr + .menu__mgr a { margin-top: 14px; }
}
.contact__tel {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s;
}
.contact__tel:hover { color: var(--brass-lt); }
.contact__team { margin-top: 18px; color: var(--mute-dk); font-size: .9375rem; }
.cinfo .cinfo__mgr { display: grid; gap: 4px; justify-items: start; color: var(--ink); }
.cinfo__mgr + .cinfo__mgr { margin-top: 16px; }
.cinfo .cinfo__mgr span { color: var(--mute); font-size: .9375rem; }
.cinfo .cinfo__mgr .cinfo__big { font-size: clamp(1.5rem, 1.2vw + .75rem, 1.875rem); white-space: nowrap; }
.form__interest {
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px dashed var(--brass-lt);
  color: var(--brass-lt);
  font-size: .875rem;
  line-height: 1.45;
}

.contact__form {
  padding: 24px 20px;
  border: 1px solid var(--line-dk);
}

@media (min-width: 640px) {
  .contact__form { padding: 40px; }
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
  }
}

/* ---------- 12. Футер ---------- */

.footer {
  padding-block: 56px 96px;
  background: var(--ink);
  color: var(--mute-dk);
  border-top: 1px solid var(--line-dk);
  font-size: .9375rem;
}
.footer__grid { display: grid; gap: 36px; }

.footer__logo { width: 280px; height: auto; color: var(--paper); }
.footer__slogan {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--brass-lt);
}

.footer__contacts { display: grid; gap: 8px; }
.footer__contacts a {
  color: var(--paper);
  text-decoration: none;
  transition: color .25s;
}
.footer__contacts a:hover { color: var(--brass-lt); }
.footer__who { color: var(--mute-dk); font-size: .875rem; }

.footer__legal { font-size: .8125rem; line-height: 1.8; }
.footer__legal a { text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--paper); }

.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.footer__nav div { display: grid; gap: 8px; align-content: start; }
.footer__nav p { margin-bottom: 4px; color: var(--brass-lt); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.footer__nav a { color: rgba(245, 241, 234, .78); font-size: .9375rem; text-decoration: none; transition: color .25s; }
.footer__nav a:hover { color: var(--paper); }
.footer__hours { color: var(--mute-dk); font-size: .875rem; }

@media (min-width: 860px) {
  .footer { padding-block: 72px; }
  .footer__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 56px 64px;
    align-items: start;
  }
  .footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__legal { grid-column: 2; }
}

/* ---------- Cookie ---------- */

.cookie {
  position: fixed;
  left: 12px;
  right: 80px;
  bottom: 12px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  padding: 10px 10px 10px 16px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 20px 44px -22px rgba(17, 17, 17, .4);
  font-size: .75rem;
  line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1; color: var(--mute); }
.cookie a { color: var(--ink); text-underline-offset: 3px; }
.cookie .btn { flex: none; min-height: 40px; padding: 0 16px; font-size: .8125rem; }

/* ---------- 3а. Примерочная цвета ---------- */

.fit__grid { display: grid; gap: 32px; }

.fit__stage { display: grid; gap: 16px; }
.fit__room {
  --wall: #ECE7DE;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--wall);
  transition: background-color .6s cubic-bezier(.4, 0, .2, 1);
}
.fit__floor {
  position: absolute;
  inset: auto 0 0;
  height: 11%;
  background: linear-gradient(#cdbda6, #b9a68b);
  box-shadow: 0 -5px 0 rgba(255, 255, 255, .65);   /* плинтус */
}
.fit__door {
  --casing: #ECECE7;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 11%;
  height: 76%;
  aspect-ratio: 520 / 1622;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 clamp(6px, 1.2vw, 12px) var(--casing),
    0 0 0 clamp(7px, 1.3vw, 13px) rgba(17, 17, 17, .08),
    18px 26px 40px -18px rgba(17, 17, 17, .35);
  transition: box-shadow .6s cubic-bezier(.4, 0, .2, 1);
}
.fit__door img,
.fit__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fit__canvas { opacity: 0; transition: opacity .4s cubic-bezier(.4, 0, .2, 1); }
.fit__door.is-ready .fit__canvas { opacity: 1; }

.fit__now {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  font-family: var(--serif);
  font-size: 1.375rem;
}
.fit__sale[hidden] { display: none; }

.fit__panel { display: grid; gap: 26px; align-content: start; }
.fit__label {
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.fit__label span { margin-left: 8px; color: var(--brass); letter-spacing: .08em; }
.fit__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c) center / cover;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .14);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.chip--wall { border-radius: 0; width: 40px; height: 40px; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-checked="true"] { outline: 1px solid var(--ink); outline-offset: 4px; }
.chip:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.chip__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 5px 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: .75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .25s, transform .25s;
}
.chip:hover .chip__tip,
.chip:focus-visible .chip__tip { opacity: 1; transform: translate(-50%, 0); }
.fit__note { color: var(--mute); font-size: .875rem; max-width: 30em; }
.fit__cta { justify-self: start; }

@media (min-width: 960px) {
  .fit__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
  .fit__room { aspect-ratio: 5 / 5.4; }
}

/* ---------- 4а. Системы открывания ---------- */

.sys { background: var(--ink); color: var(--paper); }
.sys .sec__lead { color: var(--mute-dk); }
.sys .h2 em { color: var(--brass-lt); }

.sys__tabs {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  margin-bottom: 32px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-dk);
  scrollbar-width: none;
}
.sys__tabs::-webkit-scrollbar { display: none; }
.sys__tab {
  position: relative;
  flex: none;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--mute-dk);
  font: 400 clamp(1.0625rem, 1vw + .85rem, 1.5rem) / 1.2 var(--serif);
  cursor: pointer;
  transition: color .3s;
}
.sys__tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--brass-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.sys__tab:hover,
.sys__tab[aria-selected="true"] { color: var(--paper); }
.sys__tab[aria-selected="true"]::after { transform: scaleX(1); }
.sys__tab:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 4px; }

.sys__grid { display: grid; gap: 36px; }

.sys__scene { display: grid; gap: 18px; }
.sys__wall {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #151412;
  perspective: 900px;
  perspective-origin: 52% 28%;
}
/* Стена чуть развёрнута: смотрим немного сверху и сбоку — видно толщину створок и откосы */
.sys__plane {
  position: absolute;
  inset: -30% -40% 18%;
  background:
    radial-gradient(38% 46% at 54% 66%, rgba(255, 214, 160, .16), transparent 70%),
    radial-gradient(70% 80% at 50% 50%, #3a3631, #211f1c 78%);
  transform: rotateX(-9deg) rotateY(-32deg);
  transform-style: preserve-3d;
}
.sys__plinth {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.1%;
  background: linear-gradient(#4a453e, #2e2b27);
  transform: translateZ(2px);
}
.sys__opening {
  --leaf: #ECE6DB;
  --t: 8px;           /* толщина полотна — задаётся из JS по размеру проёма */
  --d: 26px;          /* глубина откоса (толщина стены) */
  position: absolute;
  left: 46%;
  bottom: 0;
  width: 19%;
  height: 54%;
  transform-style: preserve-3d;
}
/* Соседняя комната: тёплый свет в глубине проёма */
.sys__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 55% at 50% 100%, rgba(255, 222, 168, .9), transparent 72%),
    linear-gradient(#6b5940, #b8946a 55%, #f1d7a8);
  transform: translateZ(.5px);
}
/* Откосы — внутренние стороны проёма: от «комнаты за дверью» (z = 0) до лица стены (z = --d) */
.sys__jamb { position: absolute; background: linear-gradient(90deg, #5a4d3c, #8b7558); backface-visibility: visible; }
.sys__jamb--l, .sys__jamb--r { top: 0; height: 100%; width: var(--d); transform-origin: 0 50%; transform: rotateY(-90deg); }
.sys__jamb--l { left: 0; background: linear-gradient(270deg, #a88d68, #d8b886); }
.sys__jamb--r { left: 100%; background: linear-gradient(270deg, #3b342c, #5e5141); }
.sys__jamb--t { left: 0; width: 100%; top: 0; height: var(--d); transform-origin: 50% 0; transform: rotateX(90deg); background: linear-gradient(#2f2a24, #6b5b45); }
/* Наличник по лицу стены */
.sys__casing {
  position: absolute;
  inset: -7% -9% 0;
  border: solid #d9d1c3;
  border-width: clamp(6px, 1.1vw, 11px) clamp(6px, 1.1vw, 11px) 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(0, 0, 0, .18), 0 10px 24px rgba(0, 0, 0, .35);
  background: transparent;
  transform: translateZ(calc(var(--d) + 2px));
  pointer-events: none;
}
/* Направляющая раздвижной двери — видна только у «Раздвижной» */
.sys__rail {
  position: absolute;
  left: -136%;
  right: -12%;
  top: -15%;
  height: 2.2%;
  border-radius: 2px;
  background: linear-gradient(#b9b2a6, #6d675e);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .35);
  transform: translateZ(calc(var(--d) + var(--t) / 2 + 10px));   /* в плоскости полотна */
  opacity: 0;
  transition: opacity .4s;
}
.sys[data-kind="slide"] .sys__rail { opacity: 1; }

.sys__door { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--d) - var(--t) / 2)); }
.sys__a, .sys__b {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: 0 50%;
}
.sys__a { left: 0; width: 50%; }
.sys__b { left: 100%; width: 100%; }
.sys__door.is-single .sys__a { width: 100%; }
.sys__door.is-single .sys__b { display: none; }
.sys__door.is-front { inset: -7% -9% 0; }

/* Полотно — коробка с толщиной: лицо, тыл и три торца */
.sys__f { position: absolute; backface-visibility: hidden; }
.sys__f--front, .sys__f--back { inset: 0; }
.sys__f--front {
  transform: translateZ(calc(var(--t) / 2));
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .22), transparent 40%, rgba(0, 0, 0, .05)),
    var(--leaf);
  box-shadow: inset 0 0 0 1px rgba(60, 50, 40, .22);
}
/* Фрезерованная филёнка */
.sys__f--front::before {
  content: '';
  position: absolute;
  inset: 7% 14% 7%;
  border: 1px solid rgba(70, 58, 45, .2);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .7), 1px 1px 0 rgba(255, 255, 255, .6), inset -1px -1px 0 rgba(70, 58, 45, .08);
}
.sys__door.is-single .sys__f--front::before { inset: 6% 9%; }
.sys__f--back {
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
  background: linear-gradient(80deg, #ddd5c7, #cfc6b6);
  box-shadow: inset 0 0 0 1px rgba(60, 50, 40, .25);
}
.sys__f--l, .sys__f--r {
  top: 0;
  height: 100%;
  width: var(--t);
  transform-origin: 0 50%;
  transform: translateZ(calc(var(--t) / 2)) rotateY(90deg);
  background: linear-gradient(90deg, #b9b0a1, #d2c9ba);
  backface-visibility: visible;
}
.sys__f--l { left: 0; }
.sys__f--r { left: 100%; }
.sys__f--t {
  left: 0;
  width: 100%;
  top: 0;
  height: var(--t);
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--t) / 2)) rotateX(-90deg);
  background: #e2dbcf;
  backface-visibility: visible;
}
/* затенение по углу поворота — из JS */
.sys__f--front::after, .sys__f--back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #120f0b;
  opacity: var(--dim, 0);
}
.sys__a > .sys__f::after { opacity: var(--dim-a, 0); }
.sys__b > .sys__f::after { opacity: var(--dim-b, 0); }
.sys__handle {
  position: absolute;
  right: 9%;
  top: 47%;
  width: 3px;
  height: 12%;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a7b63, #e4cf9f 50%, #8a7b63);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, .35);
  transform: translateZ(calc(var(--t) / 2 + 3px));
}
.sys__handle--a { display: none; }
/* Каретки раздвижной двери: держат полотно на направляющей */
.sys[data-kind="slide"] .sys__a > .sys__f--front { box-shadow: inset 0 0 0 1px rgba(60, 50, 40, .22); }
.sys[data-kind="slide"] .sys__a::before, .sys[data-kind="slide"] .sys__a::after {
  content: '';
  position: absolute;
  top: -7%;
  width: 2.4%;
  height: 7%;
  background: linear-gradient(90deg, #6d675e, #b9b2a6, #6d675e);
  transform: translateZ(calc(var(--t) / 2 + 2px));
}
.sys[data-kind="slide"] .sys__a::before { left: 14%; }
.sys[data-kind="slide"] .sys__a::after { right: 14%; }
.sys__door.is-single .sys__handle--a { display: block; right: 6%; }

/* Пол: плоскость от низа стены к зрителю, со светом из проёма */
.sys__floor {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 160%;
  background:
    radial-gradient(10% 16% at 51.5% 0, rgba(255, 220, 165, .38), transparent 78%),
    linear-gradient(#2a2622, #141210 60%);
  transform: rotateX(90deg);
  transform-origin: 50% 0;
}

.sys__range {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mute-dk);
  font-size: .8125rem;
  letter-spacing: .04em;
}
.sys__range input { flex: 1; accent-color: var(--brass-lt); cursor: pointer; }

.sys__info { display: grid; gap: 16px; align-content: start; }
.sys__name { font: 400 clamp(2rem, 2vw + 1.2rem, 2.75rem) / 1.1 var(--serif); }
.sys__text { color: var(--paper); font-size: 1.0625rem; max-width: 30em; }
.sys__fit { color: var(--mute-dk); font-size: .9375rem; max-width: 30em; }
.sys__fit b { color: var(--brass-lt); font-weight: 500; }
.sys__photo { display: grid; gap: 10px; max-width: 300px; margin-top: 8px; }
.sys__photo[hidden] { display: none; }
.sys__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.sys__photo figcaption { color: var(--mute-dk); font-size: .8125rem; }
.sys__cta { justify-self: start; margin-top: 6px; }
.sys__info > * { transition: opacity .35s cubic-bezier(.4, 0, .2, 1); }
.sys__info.is-swap > * { opacity: 0; }

@media (min-width: 720px) {
  .sys__wall { aspect-ratio: 4 / 3; }
  .sys__opening { left: 44%; width: 15%; }
}
.sys__live { color: var(--mute-dk); font-size: .875rem; }
.sys__live b { color: var(--paper); font-weight: 500; }
.sys__live a { color: var(--brass-lt); }
@media (min-width: 960px) {
  .sys__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
  .sys__info { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 7а. Дизайнерам и прорабам ---------- */

.partners { display: grid; gap: 36px; }
.partners__bonus b {
  display: block;
  font: 400 clamp(4.5rem, 8vw, 7.5rem) / .95 var(--serif);
  color: var(--brass);
  letter-spacing: -.02em;
}
.partners__bonus span { display: block; max-width: 14em; margin-top: 12px; font-size: 1.0625rem; }
.partners__list { padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.partners__list li {
  display: grid;
  gap: 4px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
}
.partners__list b { color: var(--ink); font: 400 1.25rem / 1.3 var(--serif); }
.partners__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-self: start; }

@media (min-width: 960px) {
  .partners {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 40px clamp(48px, 7vw, 112px);
    align-items: start;
  }
  .partners__cta { grid-column: 2; }
}

/* ---------- Служебное ---------- */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cols__more { margin-top: 28px; }

/* ---------- 3а. Каталог ---------- */

.cat__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-bottom: 28px;
}
.cat__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.cat__f {
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 500 .875rem/1 var(--sans);
  cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s;
}
.cat__f:hover { border-color: var(--ink); }
.cat__f[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cat__select select {
  appearance: none;
  padding: 9px 34px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font: 500 .875rem/1 var(--sans);
  cursor: pointer;
}
.cat__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
}
.mcard { display: grid; gap: 12px; align-content: start; }
/* Карточка — маленькая «комната»: тёплая стена и пол, дверь стоит на полу целиком.
   Дверь задана от размеров рамки (а не от картинки), поэтому не обрезается ни на какой ширине. */
.mcard__pic {
  --pic-top: 48px;    /* место под метки над дверью */
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.4;
  border: 0;
  background:
    linear-gradient(180deg, transparent 90%, #E4DBCC 90%, #D8CDBA),
    linear-gradient(180deg, #F5F1EA, #ECE6DB 90%);
  cursor: pointer;
  overflow: hidden;
}
.mcard__pic img {
  position: absolute;
  left: 0;
  bottom: 5%;
  width: 100%;
  height: calc(95% - var(--pic-top));
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(5px 8px 10px rgba(17, 17, 17, .14));
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.mcard__pic:hover img { transform: translateY(-4px); }
.mcard__pic:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
/* Метки над фото: первая всегда на одной высоте с сердечком (центр — 28px от верха),
   если места мало — следующая метка встаёт под первую, а не уезжает под картинку */
.mcard__badges {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 17px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 5px 6px;
  max-width: calc(100% - 64px);
}
.mcard__badges .tag { margin: 0; background: rgba(255, 255, 255, .92); }
/* Планшет: метки чуть компактнее, чтобы «В наличии» и «Тихая» вставали в одну строку */
@media (max-width: 1099px) {
  .mcard__badges { top: 18px; max-width: calc(100% - 58px); }
  .mcard__badges .tag { padding: 3px 7px 2px; font-size: .625rem; letter-spacing: .1em; }
}
/* Телефон: карточка узкая, две метки встают столбиком — дверь начинается ниже них и не перекрывается */
@media (max-width: 599px) {
  .mcard__pic { --pic-top: 66px; aspect-ratio: 3 / 4.9; }
  .mcard__badges { left: 8px; top: 18px; max-width: calc(100% - 56px); }
}
.mhead__tags .tag { margin: 0 8px 0 0; }
.silence__quiet { margin-top: 18px; color: var(--mute); font-size: .9375rem; }
.silence__quiet a { color: var(--ink); }
.mhead__offer { padding: 14px 18px; background: var(--ink); color: var(--paper); font-size: .9375rem; }
.mhead__offer b { margin-right: 6px; font: 400 1.375rem var(--serif); color: var(--brass-lt); }
.mcard h3 { font: 400 1.1875rem/1.2 var(--serif); }
.mcard__meta { color: var(--mute); font-size: .8125rem; }
.mcard__price { font-weight: 600; }
.mcard__price small { margin-left: 6px; color: var(--mute); font-weight: 400; font-size: .8125rem; }
.mcard__price--ask { color: var(--mute); font-weight: 400; font-size: .875rem; }
.mcard__act { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cat__foot { display: grid; justify-items: start; gap: 18px; margin-top: 36px; }
.cat__note { max-width: 46em; color: var(--mute); font-size: .875rem; }

@media (min-width: 720px) {
  .cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (min-width: 1100px) {
  .cat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 3б. Конфигуратор ---------- */

.cfg__grid { display: grid; gap: 32px; }
.cfg__stage { display: grid; gap: 14px; align-content: start; }
.cfg__room {
  --wall: #ECE7DE;
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--wall);
  transition: background-color .6s cubic-bezier(.4, 0, .2, 1);
}
.cfg__floor {
  position: absolute;
  inset: auto 0 0;
  height: 10%;
  background: linear-gradient(#cdbda6, #b9a68b);
  box-shadow: 0 -5px 0 rgba(255, 255, 255, .65);
}
.cfg__door {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 10%;
  height: 80%;
  transform: translateX(-50%);
  filter: drop-shadow(14px 18px 22px rgba(17, 17, 17, .22));
}
.cfg__canvas { display: block; height: 100%; width: auto; opacity: 1; transition: opacity .25s cubic-bezier(.4, 0, .2, 1); }
.cfg__door.is-busy .cfg__canvas { opacity: .35; }
.cfg__nav {
  position: absolute;
  z-index: 2;
  top: 45%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 17, 17, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.cfg__nav--prev { left: 12px; }
.cfg__nav--next { right: 12px; }
.cfg__nav:hover { background: var(--white); }
.cfg__model { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 400 1.5rem/1.2 var(--serif); }
.cfg__coll { color: var(--mute); font: 400 .875rem var(--sans); }
.cfg__hint { color: var(--brass); font-size: .875rem; }

.cfg__panel { display: grid; gap: 24px; align-content: start; }
.cfg__step { display: grid; gap: 14px; }
.cfg__step--two { display: flex; flex-wrap: wrap; gap: 22px 40px; }
.cfg__step--two > div { display: grid; gap: 14px; }
.cfg__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cfg__label span { margin-left: 8px; color: var(--brass); letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: .8125rem; }
.cfg__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.chip--metal { width: 36px; height: 36px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg[hidden] { display: none; }
.seg button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 500 .875rem/1.1 var(--sans);
  cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s;
}
.seg button:hover { border-color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg button small { display: block; margin-top: 3px; opacity: .65; font-size: .6875rem; font-weight: 400; }

.cfg__extras { display: grid; gap: 8px; }
.cfg__extras label { display: flex; align-items: center; gap: 10px; font-size: .9375rem; cursor: pointer; }
.cfg__extras input { width: 18px; height: 18px; accent-color: var(--ink); }
.cfg__extras b { margin-left: auto; font-weight: 500; color: var(--mute); white-space: nowrap; }

.cfg__sum {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--paper);
}
.cfg__qty { display: flex; align-items: center; gap: 12px; font-size: .9375rem; }
.cfg__qty button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1.125rem;
  cursor: pointer;
}
.cfg__qty output { min-width: 1.5em; text-align: center; font-weight: 600; }
.cfg__price { display: grid; gap: 4px; }
.cfg__price span { font: 400 clamp(1.75rem, 2vw + 1rem, 2.5rem) / 1.1 var(--serif); }
.cfg__price small { color: var(--mute); font-size: .8125rem; }
.cfg__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.flat { display: grid; gap: 10px; padding-top: 4px; }
.flat[hidden] { display: none; }
.flat__list { display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.flat__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.flat__list small { display: block; color: var(--mute); font-size: .8125rem; }
.flat__list button { border: 0; background: none; color: var(--mute); font-size: 1.25rem; cursor: pointer; }
.flat__total { font: 400 1.5rem/1.2 var(--serif); }
.flat__bonus { color: var(--brass); font-size: .9375rem; }
.cfg__note { color: var(--mute); font-size: .8125rem; }

@media (min-width: 960px) {
  .cfg__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
  .cfg__stage { position: sticky; top: calc(var(--header) + 20px); }
}

/* ---------- 6а. Без риска ---------- */

.terms__list {
  display: grid;
  gap: 0 40px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.terms__list li {
  display: grid;
  gap: 6px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.terms__list b { font: 400 1.375rem/1.25 var(--serif); }
.terms__list span { color: var(--mute); }
.mount {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper);
}
.mount__title { font: 400 1.5rem/1.2 var(--serif); }
.mount__list {
  display: grid;
  gap: 10px 32px;
  padding: 0;
  list-style: none;
  counter-reset: m;
}
.mount__list li { position: relative; padding-left: 34px; counter-increment: m; }
.mount__list li::before {
  content: counter(m);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-size: .75rem;
  line-height: 20px;
  text-align: center;
}
.mount__note { color: var(--mute); font-size: .9375rem; }

@media (min-width: 860px) {
  .terms__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mount__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 7б. Больше, чем двери ---------- */

.more__grid { display: grid; gap: 28px; }
.more__card { display: grid; gap: 16px; align-content: start; }
.more__pic { overflow: hidden; aspect-ratio: 4 / 3; background: var(--white); }
.more__pic img { width: 100%; height: 100%; object-fit: cover; }
.more__body { display: grid; gap: 8px; }
.more__body h3 { font: 400 1.5rem/1.2 var(--serif); }
.more__body p { color: var(--mute); max-width: 32em; }
.more__body .link { justify-self: start; margin-top: 4px; }
.tall {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18%;
  aspect-ratio: 4 / 3;
  padding: 24px 10% 0;
  background: linear-gradient(var(--white) 92%, #e6dfd2 92%);
}
.tall__door {
  position: relative;
  width: 16%;
  height: calc(var(--h) * 92%);
  margin-bottom: 8%;
  border: 1px solid rgba(17, 17, 17, .25);
  background: linear-gradient(90deg, #efe9df, #e4ddd0);
  transform-origin: bottom;
  transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
}
.js .more__card--tall:not(.is-in) .tall__door { transform: scaleY(.55); }
.tall__door i {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  color: var(--mute);
  font-style: normal;
  font-size: .8125rem;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
}

/* ==========================================================
   МНОГОСТРАНИЧНЫЙ САЙТ: общие элементы страниц
   ========================================================== */

/* ---------- Переход между страницами: створки ---------- */

.pt { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.pt__leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background: linear-gradient(90deg, #121110, #1a1917 55%, #161513);
  transition: transform .52s cubic-bezier(.65, 0, .35, 1);
}
.pt__leaf--l { left: 0; transform: translateX(-101%); }
.pt__leaf--r { right: 0; transform: translateX(101%); background: linear-gradient(270deg, #121110, #1a1917 55%, #161513); box-shadow: inset 1px 0 0 rgba(0, 0, 0, .6); }
.pt__leaf::before { content: ''; position: absolute; inset: 6vh 4vw; border: 1px solid rgba(245, 241, 234, .07); }
.pt__leaf::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 84px;
  margin-top: -42px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6e6250, #cbbb98 50%, #7d705b);
}
.pt__leaf--l::after { right: 14px; }
.pt__leaf--r::after { left: 14px; }
.pt__mark {
  position: absolute;
  left: 50%;
  top: calc(50% + 70px);
  transform: translateX(-50%);
  color: var(--brass-lt);
  font: 400 .8125rem/1 var(--serif);
  letter-spacing: .42em;
  opacity: 0;
  transition: opacity .3s;
}
.pt-out .pt, .pt-in .pt { pointer-events: auto; }
.pt-out .pt__leaf, .pt-in .pt__leaf { transform: none; }
.pt-in .pt__leaf { transition: none; }
.pt-out .pt__mark { opacity: 1; transition-delay: .5s; }
.pt-opening .pt__leaf { transition-duration: .8s; transition-timing-function: cubic-bezier(.7, 0, .18, 1); }
/* если скрипт не загрузился — створки всё равно откроются */
.pt-in .pt__leaf--l { animation: pt-open-l .8s 1.6s cubic-bezier(.7, 0, .18, 1) forwards; }
.pt-in .pt__leaf--r { animation: pt-open-r .8s 1.6s cubic-bezier(.7, 0, .18, 1) forwards; }
@keyframes pt-open-l { to { transform: translateX(-101%); } }
@keyframes pt-open-r { to { transform: translateX(101%); } }

/* ---------- Сердечко «Моя подборка» в шапке ---------- */

.fav-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: inherit;
}
.fav-link svg, .mbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.fav-link__n {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brass);
  color: var(--white);
  font: 600 .6875rem/18px var(--sans);
  text-align: center;
}
.fav-link__n[hidden] { display: none; }

/* ---------- Карточка модели: сердечко ---------- */

.mcard { position: relative; }
.mcard[hidden] { display: none; }
.mcard h3 a { text-decoration: none; color: inherit; }
.mcard h3 a:hover { color: var(--brass); }
.mcard__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  /* центр сердечка — 28px от верха, как у первой метки */
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.mcard__fav svg, .mhead__fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: fill .25s; }
.mcard__fav:hover { background: var(--white); color: var(--brass); }
[data-fav][aria-pressed="true"] { color: var(--brass); }
[data-fav][aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Хлебные крошки ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 22px;
  color: var(--mute);
  font-size: .8125rem;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Заголовок страницы ---------- */

.pg-head { padding: calc(var(--header) + clamp(36px, 6vw, 80px)) 0 clamp(36px, 5vw, 64px); }
.pg-head--tight { padding-bottom: 0; }
.p-cfg .cfg .sec__head { display: none; }
.p-cfg .cfg { padding-top: clamp(32px, 4vw, 56px); }
.pg-head__title {
  max-width: 14em;
  font: 400 clamp(2.5rem, 5vw + .5rem, 5rem) / 1.02 var(--serif);
  letter-spacing: -.018em;
  text-wrap: balance;
}
.pg-head__title em, .cover__title em, .mhead__title em { font-style: italic; color: var(--brass); }
.pg-head__lead { max-width: 36em; margin-top: 22px; color: var(--mute); font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem); }
.pg-head--dark { background: var(--ink); color: var(--paper); padding-bottom: 0; }
.pg-head--dark .crumbs, .pg-head--dark .pg-head__lead { color: var(--mute-dk); }
.cover .crumbs { color: rgba(245, 241, 234, .78); }
.pg-head--dark .crumbs [aria-current], .cover .crumbs [aria-current], .pg-head--dark .crumbs a:hover, .cover .crumbs a:hover { color: var(--paper); }
.pg-head--dark .pg-head__title em { color: var(--brass-lt); }
.pg-head--404 { min-height: 80vh; display: grid; align-content: center; }
.epigraph { margin-top: 40px; padding-left: 22px; border-left: 1px solid var(--brass); }
.epigraph p { font: italic 400 1.375rem/1.5 var(--serif); }
.epigraph cite { display: block; margin-top: 10px; color: var(--mute); font-size: .875rem; font-style: normal; }

/* ---------- Обложка (коллекции, решения) ---------- */

.cover {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 860px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.cover--short { min-height: min(80svh, 720px); }
.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cover-in 2.4s cubic-bezier(.2, .7, .1, 1) both;
}
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, .28), rgba(17, 17, 17, 0) 30%, rgba(17, 17, 17, .72)); }
.cover__in { position: relative; z-index: 1; padding-block: calc(var(--header) + 40px) clamp(40px, 6vw, 80px); }
.cover__title { font: 400 clamp(3rem, 7vw + .5rem, 7.5rem) / .98 var(--serif); letter-spacing: -.02em; }
.cover__lead { max-width: 36em; margin-top: 18px; color: rgba(245, 241, 234, .82); font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem); }
@keyframes cover-in { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Плитки коллекций ---------- */

.ctiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
.ctile { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.ctile__pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); }
.ctile__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
/* коллекция без интерьерного фото — дверь целиком в той же «комнате», что и в карточках */
.ctile__pic:has(.ctile__door) {
  background:
    linear-gradient(180deg, transparent 88%, #E4DBCC 88%, #D8CDBA),
    linear-gradient(180deg, #F5F1EA, #ECE6DB 88%);
}
.ctile__pic .ctile__door {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 100%;
  height: 84%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(5px 8px 10px rgba(17, 17, 17, .14));
}
.ctile:hover .ctile__pic img { transform: scale(1.04); }
.ctile__name { font: 400 1.375rem/1.15 var(--serif); }
.ctile__meta { color: var(--mute); font-size: .8125rem; }
@media (min-width: 720px) { .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1100px) { .ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ctiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sec--tight { padding-block: clamp(48px, 6vw, 88px); }
.sec__more { margin-top: clamp(28px, 4vw, 48px); }
.cat__grid--coll { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Факты о коллекции ---------- */

.facts3 { display: grid; gap: 24px; padding-top: 24px; border-top: 1px solid var(--ink); }
.facts3__h { margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.facts3 ul { display: grid; gap: 4px; padding: 0; list-style: none; color: var(--mute); }
@media (min-width: 860px) { .facts3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* ---------- Страница модели ---------- */

.mhead { padding: calc(var(--header) + clamp(20px, 3vw, 40px)) 0 clamp(40px, 5vw, 72px); }
.mhead__grid { display: grid; gap: 32px; }
.mhead__stage { display: grid; gap: 12px; align-content: start; }
.mhead__room {
  position: relative;
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(var(--white) 89%, #e5ddcf 89%, #d7cbb7);
  overflow: hidden;
}
.mhead__door {
  position: absolute;
  left: 50%;
  bottom: 9%;
  height: 80%;
  width: auto;
  translate: -50% 0;
  filter: drop-shadow(14px 18px 22px rgba(17, 17, 17, .2));
  animation: door-in 1.1s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes door-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.mhead__pn { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.mhead__pn a { color: var(--mute); text-decoration: none; }
.mhead__pn a:hover { color: var(--ink); }
.mhead__info { display: grid; gap: 16px; align-content: start; }
.mhead__info .crumbs { margin-bottom: 4px; }
.mhead__info .eyebrow { margin: 0; }
.mhead__info .eyebrow a { color: inherit; text-decoration: none; }
.mhead__title { font: 400 clamp(2.75rem, 4vw + 1rem, 4.5rem) / 1 var(--serif); letter-spacing: -.015em; }
.mhead__tags:empty { display: none; }
.mhead__tags .tag:first-child { margin-left: 0; }
.mhead__price { font: 400 clamp(1.75rem, 1.4vw + 1.2rem, 2.375rem) / 1.1 var(--serif); }
.mhead__price s { margin-left: 12px; color: var(--mute); font: 400 1.125rem var(--serif); }
.mhead__price small { margin-left: 10px; color: var(--mute); font: 400 .875rem var(--sans); }
.mhead__price--ask { font-size: 1.5rem; }
.mhead__set { color: var(--mute); margin-top: -8px; }
.mhead__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.mhead__fav { display: inline-flex; align-items: center; gap: 8px; }
.mhead__facts { display: grid; gap: 0; margin-top: 8px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mhead__facts li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.mhead__facts b { font-weight: 600; }
.mhead__trust { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.mhead__trust li { padding: 6px 12px; background: var(--white); font-size: .8125rem; color: var(--mute); }
@media (min-width: 960px) {
  .mhead__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .mhead__stage { position: sticky; top: calc(var(--header) + 20px); }
}

/* ---------- Приглашение в конфигуратор ---------- */

.cteaser { padding-block: clamp(64px, 8vw, 120px); background: var(--ink); color: var(--paper); overflow: hidden; }
.cteaser__grid { display: grid; gap: 40px; align-items: center; }
.cteaser .h2 em { color: var(--brass-lt); }
.cteaser__text { display: grid; gap: 22px; justify-items: start; }
.cteaser__lead { max-width: 30em; color: var(--mute-dk); font-size: 1.0625rem; }
.cteaser__stage {
  position: relative;
  height: clamp(320px, 42vw, 520px);
  background: radial-gradient(60% 55% at 50% 60%, #2c2925, transparent 70%);
}
.cteaser__stage img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 92%;
  width: auto;
  transform: translateX(-50%);
  opacity: 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
  animation: cteaser 12.5s infinite;
}
.cteaser__stage img:nth-child(2) { animation-delay: 2.5s; }
.cteaser__stage img:nth-child(3) { animation-delay: 5s; }
.cteaser__stage img:nth-child(4) { animation-delay: 7.5s; }
.cteaser__stage img:nth-child(5) { animation-delay: 10s; }
@keyframes cteaser { 0% { opacity: 0; } 6% { opacity: 1; } 22% { opacity: 1; } 28% { opacity: 0; } 100% { opacity: 0; } }
.cteaser__names { position: absolute; left: 0; right: 0; bottom: -28px; height: 20px; text-align: center; }
.cteaser__names i {
  position: absolute;
  inset: 0;
  color: var(--brass-lt);
  font: italic 400 1rem var(--serif);
  opacity: 0;
  animation: cteaser 12.5s infinite;
}
.cteaser__names i:nth-child(2) { animation-delay: 2.5s; }
.cteaser__names i:nth-child(3) { animation-delay: 5s; }
.cteaser__names i:nth-child(4) { animation-delay: 7.5s; }
.cteaser__names i:nth-child(5) { animation-delay: 10s; }
@media (min-width: 960px) { .cteaser__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* ---------- Истории (решения) ---------- */

.story { display: grid; gap: 32px; align-items: center; }
.story__text { display: grid; gap: 16px; }
.story__text p { max-width: 34em; color: var(--mute); font-size: 1.0625rem; }
.story__list { display: grid; gap: 8px; margin-top: 6px; padding: 0; list-style: none; }
.story__list li { padding-left: 22px; position: relative; }
.story__list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--brass); }
.story__pic { overflow: hidden; }
.story__pic img { width: 100%; height: auto; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 96px); }
  .story--rev .story__text { order: 2; }
}

.cta-band__in { display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 4vw, 56px); background: var(--paper); }
.links-row { display: grid; gap: 12px; padding: 0; list-style: none; }
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font: 400 1.375rem/1.2 var(--serif);
  transition: border-color .3s, background-color .3s;
}
.link-card i { font-style: normal; color: var(--brass); transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
.link-card:hover { border-color: var(--ink); background: var(--white); }
.link-card:hover i { transform: translateX(6px); }
@media (min-width: 860px) { .links-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Перегородки ---------- */
.pfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; margin-top: clamp(56px, 8vw, 104px); }
@media (max-width: 599px) { .pfacts .fact > span { font-size: .8125rem; } }
@media (min-width: 860px) { .pfacts { gap: 40px; } }
.cta-band:not(.sec--white) .cta-band__in { background: var(--white); }

.ptypes { display: grid; gap: 44px 20px; padding: 0; list-style: none; }
.ptype { display: grid; gap: 10px; align-content: start; }
.ptype__pic { aspect-ratio: 4 / 5; margin-bottom: 8px; overflow: hidden; background: #E9E4DA; }
.ptype__pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) { .ptype__pic { aspect-ratio: 4 / 3.4; } .ptype__pic img { object-position: 50% 62%; } }
.ptype__name { font: 400 1.625rem/1.15 var(--serif); }
.ptype p { max-width: 30em; color: var(--mute); }
.ptype .ptype__size { color: var(--ink); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.ptype .link { justify-self: start; margin-top: 4px; }
@media (min-width: 600px) { .ptypes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ptypes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; } }

.tabs__btn sup { margin-left: 3px; color: var(--brass); font-size: .6875rem; font-weight: 600; }
.pmodels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 8px; padding: 0; list-style: none; }
.pmodels[hidden] { display: none; }
.pmodel { display: grid; gap: 8px; justify-items: center; color: inherit; text-decoration: none; }
.pmodel img {
  width: 100%;
  height: auto;
  aspect-ratio: 214 / 615;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .08);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.pmodel span { color: var(--mute); font-size: .75rem; letter-spacing: .04em; white-space: nowrap; transition: color .3s; }
.pmodel span::before { content: '№\00a0'; }
.pmodel i { display: none; font-style: normal; }
.pmodel:hover img { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(17, 17, 17, .14), 0 0 0 1px var(--brass); }
.pmodel:hover span { color: var(--ink); }
.pmodel:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.pmodels__note { margin-top: 32px; color: var(--mute); font-size: .875rem; }
@media (min-width: 720px) {
  .pmodels { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 28px 14px; }
  .pmodel span::before { content: none; }
  .pmodel i { display: inline; }
}
@media (min-width: 1100px) { .pmodels { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.pglass { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; padding: 0; list-style: none; }
.pglass li { display: grid; gap: 6px; align-content: start; }
.pglass__pic { aspect-ratio: 360 / 471; margin-bottom: 8px; overflow: hidden; background: #E9E4DA; }
.pglass__pic img { width: 100%; height: 100%; object-fit: cover; }
.pglass h3,
.pframes h3 { font: 400 1.25rem/1.2 var(--serif); }
.pglass p,
.pframes p { color: var(--mute); font-size: .9375rem; }
@media (min-width: 600px) { .pglass { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 20px; } }
@media (min-width: 1100px) { .pglass { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.pcolor__lead { display: grid; gap: 24px; align-content: start; }
.ral__any { background: conic-gradient(#A8423C, #C9A23F, #6B8452, #3F6189, #77507A, #A8423C) !important; }
.pcolors { display: grid; gap: 32px; }
.pcolors figure { display: grid; gap: 12px; margin: 0; }
.pcolors__pic { aspect-ratio: 700 / 443; overflow: hidden; background: #E9E4DA; }
.pcolors__pic img { width: 100%; height: 100%; object-fit: cover; }
.pcolors figcaption { color: var(--mute); font-size: .9375rem; }
.pcolors figcaption b { color: var(--ink); font-weight: 600; }
@media (min-width: 600px) { .pcolors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .pcolors { gap: 24px; } }

.pframes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; padding: 0; list-style: none; counter-reset: pf; }
.pframes li { display: grid; gap: 6px; align-content: start; counter-increment: pf; }
.pframes__pic { aspect-ratio: 400 / 366; margin-bottom: 8px; overflow: hidden; background: var(--white); }
.pframes__pic img { width: 100%; height: 100%; object-fit: cover; }
.pframes h3::before { content: counter(pf) '\00a0\00a0'; color: var(--brass); }
@media (min-width: 960px) { .pframes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.pspec { display: grid; margin: 6px 0 0; border-top: 1px solid var(--line); }
.pspec div { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pspec dt { color: var(--mute); font-size: .875rem; }
.pspec dd { margin: 0; font-size: .9375rem; }
.story__text .pspec__note { font-size: .875rem; }
.pspec__pic { justify-self: center; width: 100%; max-width: 440px; }
@media (min-width: 960px) { .pspec__pic { max-width: 520px; } }
.pspec__pic img { mix-blend-mode: multiply; }
.pg-head--404 .links-row { margin-top: 36px; }

.terms__list--plain { margin-top: 32px; }
.more__card--tall .tall { max-width: 720px; }
.mount__list--big li { font-size: 1.125rem; padding-block: 4px; }

.choose { display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.choose li { display: grid; gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.choose b { font: 400 1.375rem/1.25 var(--serif); }
.choose span { color: var(--mute); }
@media (min-width: 860px) { .choose li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } }

/* ---------- Вопросы ---------- */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font: 400 1.3125rem/1.3 var(--serif);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--brass);
  font: 300 1.75rem/1 var(--sans);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 44em; padding-bottom: 22px; color: var(--mute); }

/* ---------- Контакты ---------- */

.cinfo { display: grid; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ink); }
.cinfo__h { margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.cinfo__big { font: 400 clamp(1.75rem, 2vw + 1rem, 2.5rem) / 1.1 var(--serif); text-decoration: none; color: inherit; }
.cinfo p { color: var(--mute); }
@media (min-width: 720px) { .cinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cinfo { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }

/* ---------- Салоны: ближайший ---------- */

.salons__near { margin-top: 8px; }
.salon.is-near { background: linear-gradient(90deg, rgba(138, 123, 99, .1), transparent); }
.salon__km { margin-left: 10px; color: var(--brass); font: 500 .875rem var(--sans); }

/* ---------- Подборка ---------- */

.favs__empty { padding: 40px; background: var(--paper); text-align: center; }
.favs__empty[hidden] { display: none; }
.favs__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.favs__act[hidden] { display: none; }
.seen[hidden] { display: none; }

/* ---------- Меню: второстепенные ссылки ---------- */

.menu__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 18px calc(4vw + 56px) 0 calc(4vw + 48px);
  opacity: 0;
  transition: opacity .5s;
}
.menu.is-open .menu__sub { opacity: 1; transition-delay: .9s; }
.menu__sub a { color: var(--mute-dk); font-size: .875rem; text-decoration: none; }
.menu__sub a:hover { color: var(--paper); }
@media (max-width: 859px) { .menu__sub { padding: 0 36px; } }
/* Компьютер: слева разделы и ссылки под ними, справа — телефоны (вторая створка) */
@media (min-width: 860px) {
  .menu__content { grid-template-rows: auto 1fr auto; }
  .menu__nav { grid-column: 1; grid-row: 1; }
  .menu__sub { grid-column: 1; grid-row: 2; align-self: start; }
  .menu__contact { grid-column: 2; grid-row: 1 / 3; }
  .menu__foot { grid-row: 3; }
}

/* ---------- Нижняя панель связи на телефоне ---------- */

.mbar { display: none; }
@media (max-width: 719px) {
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(245, 241, 234, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 var(--line);
  }
  .mbar a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 12px;
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: none;
  }
  .mbar .fav-link__n { top: 2px; right: 0; }
  .mbar__main { background: var(--ink); color: var(--paper) !important; }
  .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

/* ---------- Мягкое напоминание ---------- */

.nudge {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 46;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  max-width: 380px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 40px -18px rgba(17, 17, 17, .6);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1);
}
.nudge.is-on { opacity: 1; transform: none; pointer-events: auto; }
.nudge[hidden] { display: none; }
.nudge__text { grid-column: 1 / -1; font-size: .9375rem; }
.nudge .link { color: var(--brass-lt); }
.nudge__x { justify-self: end; border: 0; background: none; color: var(--mute-dk); font-size: 1.375rem; cursor: pointer; }
@media (max-width: 719px) { .nudge { left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  .pt { display: none; }
  .cover__img, .mhead__door { animation: none; }
  .cteaser__stage img, .cteaser__names i { animation: none; }
  .cteaser__stage img:first-child, .cteaser__names i:first-child { opacity: 1; }
}

/* ---------- Страница политики ---------- */

.doc {
  max-width: 760px;
  margin-inline: auto;
  padding: 56px var(--gutter) 96px;
}
.doc h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}
.doc h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}
.doc p, .doc li { margin-bottom: 12px; color: #3b3833; }
.doc ul { padding-left: 20px; list-style: disc; }
.doc mark { background: #f1e3b8; padding: 0 3px; }
.doc__back { display: inline-block; margin-bottom: 40px; }

/* ---------- Меньше движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html.is-loaded { scroll-behavior: auto; }
  .entry__track { height: auto; }
  .entry__stage { position: relative; }
  .entry__wall, .entry__hint { display: none; }
  .entry__shade { opacity: 1; }
  .js .split .wi,
  .js .hero__title .ln > span { transform: none; transition: none; }
  .js .entry .rise,
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .unveil > img { clip-path: none; transition: none; }
  .js .unveil:not(.is-in) img { scale: 1; }
  img[data-parallax] { translate: none; }
  .silence__track { height: auto; }
  .silence__stage { --open: 0; --shut: 1; position: static; height: auto; padding-block: 72px 24px; }
  .silence__hint { display: none; }
  .js .steps { --p: 1; }
  .js .step:not(.is-on) h3,
  .js .step:not(.is-on) p { opacity: 1; transform: none; }
  .step::before { border-color: var(--brass); background: var(--brass); color: var(--white); }
  .btn, .link:hover { transition: none; animation: none; }
  .quiz__body { animation: none; }
  .col__pic img, .work img, .wa, .tabs__bar, .frame { transition: none; }
  .menu__leaf { transition: opacity .3s; transform: none !important; opacity: 0; }
  .menu.is-open .menu__leaf { opacity: 1; }
  .menu__nav a, .menu__contact { transform: none !important; }
  .menu-btn__door i { transition: none; }
  .chip, .fit__room, .fit__door, .fit__canvas, .sys__tab::after, .sys__info > *, .cfg__room, .cfg__canvas, .mcard__pic img, .tall__door { transition: none; }
  .js .more__card--tall:not(.is-in) .tall__door { transform: none; }
}
