/* =========================================================
   NØRWA — кухни и шкафы на заказ
   Палитра: полярная ночь · тёмный дуб · фьорд · латунь
   ========================================================= */

:root {
  --ink: #0c0e11;          /* полярная ночь — основной фон */
  --ink-2: #12151a;        /* поверхности */
  --ink-3: #1a1e25;
  --oak: #1b1510;          /* тёмный дуб — тёплые секции */
  --oak-2: #261d15;
  --oak-3: #3a2c1f;
  --fjord: #1d2b3a;        /* глубокий синий */
  --fjord-2: #34506a;
  --frost: #8fa6b8;        /* холодный акцент */
  --brass: #b8a07e;        /* латунь — главный акцент */
  --brass-2: #d6c3a1;
  --bone: #ede6da;         /* текст */
  --mist: #a19a8e;         /* приглушённый текст */
  --mist-2: #8a8479;
  --line: rgba(237, 230, 218, 0.12);
  --line-2: rgba(237, 230, 218, 0.22);

  --serif: 'Canela', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(20px, 5vw, 88px);
  --max: 1480px;
  --radius: 2px;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--ink); }

/* Зерно поверх всего — «плёночная» фактура */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 900;
  opacity: 0.055;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Типографика ---------- */
.serif { font-family: var(--serif); }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.1;
}
.display em, .h1 em, .h2 em, .h3 em {
  font-style: italic;
  color: var(--brass);
}
.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  color: var(--mist);
  max-width: 34em;
}
.muted { color: var(--mist); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.7;
}
.eyebrow.no-line::before { display: none; }

/* Маски для построчной анимации заголовков */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; will-change: transform; }
.word { display: inline-block; }

/* ---------- Раскладка ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.section--tight { padding: clamp(72px, 9vw, 130px) 0; }
.section--oak { background: var(--oak); }
.section--fjord { background: linear-gradient(180deg, var(--ink) 0%, #0f1822 40%, #0f1822 60%, var(--ink) 100%); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 6vw;
  align-items: end; margin-bottom: clamp(48px, 7vw, 100px);
}
.section-head .lead { justify-self: end; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 30px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 100px;
  overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s;
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass::before { background: var(--bone); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--bone); }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover { color: var(--ink); border-color: var(--bone); }
.btn--sm { height: 46px; padding: 0 22px; font-size: 0.68rem; }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 6px;
}
.link-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform 0.7s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: right; animation: line-in 0.7s 0.3s var(--ease) forwards; }
@keyframes line-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.link-line svg { width: 14px; height: 14px; }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  background: var(--ink);
  pointer-events: none;
}
.preloader__inner { text-align: center; }
.preloader__logo {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.32em; padding-left: 0.32em;
  display: flex; justify-content: center; overflow: hidden;
}
.preloader__logo span { display: inline-block; }
.preloader__bar {
  width: min(260px, 60vw); height: 1px; margin: 28px auto 0;
  background: var(--line); position: relative; overflow: hidden;
}
.preloader__bar i { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.preloader__count {
  margin-top: 16px; font-size: 0.72rem; letter-spacing: 0.3em; color: var(--mist);
  font-variant-numeric: tabular-nums;
}
html.no-motion .preloader { display: none; }

/* Шторка перехода между страницами */
.curtain {
  position: fixed; inset: 0; z-index: 1100; pointer-events: none;
  display: grid; place-items: center;
  background: var(--oak);
  transform: translateY(100%);
}
.curtain__logo { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.3em; opacity: 0; color: var(--brass); }

/* ---------- Курсор ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; mix-blend-mode: normal; }
.cursor__dot {
  position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--brass);
}
.cursor__ring {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 1px solid rgba(184, 160, 126, 0.5);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background 0.45s, border-color 0.45s;
}
.cursor__label {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); opacity: 0; transition: opacity 0.3s;
}
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: var(--brass); }
.cursor.is-view .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--brass); border-color: var(--brass); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform 0.6s var(--ease-out), background 0.5s, border-color 0.5s, height 0.5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(12, 14, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
  height: 70px;
}
.header.is-hidden { transform: translateY(-100%); }
.header__in {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex; flex-direction: column; line-height: 1;
}
.logo__word {
  font-family: var(--serif); font-weight: 500; font-size: 1.85rem; letter-spacing: 0.3em;
}
.logo__sub {
  margin-top: 6px; font-size: 0.55rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mist);
}
.nav { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav a {
  position: relative; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 0; color: rgba(237, 230, 218, 0.82); transition: color 0.3s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--bone); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; letter-spacing: 0.04em; font-weight: 400;
}
.header__phone svg { width: 16px; height: 16px; color: var(--brass); }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); position: relative;
}
.burger i {
  position: absolute; left: 14px; right: 14px; height: 1px; background: var(--bone);
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.burger i:nth-child(1) { top: 19px; }
.burger i:nth-child(2) { top: 27px; }
.menu-open .burger i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--oak);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 30px) var(--pad) 36px;
  overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.1;
  display: flex; align-items: baseline; gap: 16px;
  transform: translateY(40px); opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.8s;
}
.menu__links a small { font-family: var(--sans); font-size: 0.7rem; color: var(--brass); letter-spacing: 0.2em; }
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links a:nth-child(1) { transition-delay: 0.25s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.35s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: 0.45s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: 0.5s; }
.menu__foot { display: grid; gap: 18px; margin-top: 40px; }
.menu__foot .socials { justify-content: flex-start; }

/* ---------- Плавающие кнопки связи ---------- */
.fab {
  position: fixed; right: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 2.4vw, 36px); z-index: 700;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab__list { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab__item {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 8px 0 20px; border-radius: 100px;
  background: rgba(18, 21, 26, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.4s, border-color 0.3s;
}
.fab__item i {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-3); color: var(--brass);
}
.fab__item i svg { width: 17px; height: 17px; }
.fab__item:hover { border-color: var(--brass); }
.fab.is-open .fab__item { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__item:nth-child(3) { transition-delay: 0.0s; }
.fab.is-open .fab__item:nth-child(2) { transition-delay: 0.05s; }
.fab.is-open .fab__item:nth-child(1) { transition-delay: 0.1s; }
.fab__toggle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brass); color: var(--ink);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 18px 50px -12px rgba(184, 160, 126, 0.55);
  transition: transform 0.5s var(--ease-out), background 0.3s;
}
.fab__toggle::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(184, 160, 126, 0.45);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.fab__toggle svg { width: 24px; height: 24px; transition: transform 0.5s var(--ease-out), opacity 0.3s; position: absolute; }
.fab__toggle .ic-close { opacity: 0; transform: rotate(-90deg); }
.fab.is-open .fab__toggle .ic-chat { opacity: 0; transform: rotate(90deg); }
.fab.is-open .fab__toggle .ic-close { opacity: 1; transform: none; }
.fab.is-open .fab__toggle::before { animation: none; opacity: 0; }

/* Нижняя панель на телефонах */
.mbar { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; will-change: transform; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 14, 17, 0.55) 0%, rgba(12, 14, 17, 0) 28%),
    linear-gradient(0deg, rgba(12, 14, 17, 0.92) 0%, rgba(12, 14, 17, 0.35) 42%, rgba(12, 14, 17, 0) 70%),
    linear-gradient(90deg, rgba(12, 14, 17, 0.55) 0%, rgba(12, 14, 17, 0) 60%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(40px, 8vh, 90px);
}
.hero__title { margin: 22px 0 28px; max-width: 12ch; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  display: flex; gap: clamp(24px, 4vw, 64px);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist);
}
.hero__meta b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; letter-spacing: 0; color: var(--bone); text-transform: none; line-height: 1.1; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 1px; height: 64px; background: var(--line); overflow: hidden;
}
.scroll-cue::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 110%; } }

/* Hero внутренних страниц */
.phero { position: relative; height: 88svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.phero .hero__media::after {
  background:
    linear-gradient(180deg, rgba(12, 14, 17, 0.6) 0%, rgba(12, 14, 17, 0) 30%),
    linear-gradient(0deg, rgba(12, 14, 17, 0.96) 0%, rgba(12, 14, 17, 0.7) 38%, rgba(12, 14, 17, 0.2) 65%, rgba(12, 14, 17, 0.1) 100%);
}
.phero__content { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(48px, 9vh, 100px); }
.phero__content .h1 { margin: 20px 0 24px; max-width: 14ch; }
.crumbs { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--brass); }

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 30px) 0; background: var(--ink);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.6rem); font-style: italic; white-space: nowrap; color: var(--bone);
}
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(237, 230, 218, 0.4); font-style: normal; }
.marquee__star { width: clamp(16px, 1.6vw, 26px); height: auto; color: var(--brass); flex: none; }

/* ---------- Манифест (заливка слов при прокрутке) ---------- */
.manifesto { max-width: 1240px; }
.manifesto__text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 4.1rem); line-height: 1.12; letter-spacing: -0.01em;
}
.manifesto__text .w { color: rgba(237, 230, 218, 0.16); transition: color 0.2s; }
.manifesto__text em { font-style: italic; }
.manifesto__text .w.is-brass { }
.manifesto__foot { display: flex; flex-wrap: wrap; gap: 32px 80px; margin-top: clamp(48px, 6vw, 90px); align-items: flex-start; }
.manifesto__foot p { max-width: 30em; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--brass); }

/* ---------- Сборка кухни (pinned SVG) ---------- */
.build { position: relative; background: var(--ink); }
.build__pin { position: relative; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.6fr; }
.build__side {
  position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) var(--pad) 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
}
.build__steps { list-style: none; display: grid; gap: 0; margin-top: 28px; }
.build__step {
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
  opacity: 0.32; transition: opacity 0.5s;
}
.build__step:last-child { border-bottom: 1px solid var(--line); }
.build__step.is-active { opacity: 1; }
.build__step span { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brass); }
.build__step b { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 400; line-height: 1.1; }
.build__step p { grid-column: 2; font-size: 0.9rem; color: var(--mist); max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out); }
.build__step.is-active p { max-height: 6em; }
.build__progress { height: 1px; background: var(--line); position: relative; margin-top: 30px; }
.build__progress i { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(0); }
.build__stage {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(52, 80, 106, 0.28), transparent 60%),
    linear-gradient(180deg, #0e1116 0%, #10141a 100%);
}
.build__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(143, 166, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 166, 184, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.build__svg { position: absolute; inset: 6% 5% 8%; width: 90%; height: 86%; overflow: visible; }
.build__photo { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.build__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.build__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,14,17,0.75), transparent 45%); }
.build__final {
  position: absolute; left: clamp(24px, 4vw, 60px); bottom: clamp(28px, 5vw, 64px); z-index: 3; opacity: 0;
}
.build__final .h2 { margin-top: 10px; }
.build__dims {
  position: absolute; top: calc(var(--header-h) + 24px); right: clamp(20px, 3vw, 48px); z-index: 3;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--frost); text-align: right;
  font-variant-numeric: tabular-nums;
}
.build__dims b { display: block; font-family: var(--serif); font-size: 2.6rem; letter-spacing: 0; color: var(--bone); font-weight: 400; line-height: 1; }
/* Элементы чертежа */
.bp-line { fill: none; stroke: var(--frost); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bp-dim { fill: none; stroke: rgba(143, 166, 184, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-text { fill: var(--frost); font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; }

/* ---------- Направления (карточки) ---------- */
.dirs { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.dir { position: relative; display: block; overflow: hidden; background: var(--ink-2); }
.dir:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 4.6; }
.dir:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 5.6; margin-top: clamp(60px, 12vw, 180px); }
.dir:nth-child(3) { grid-column: 3 / span 6; aspect-ratio: 16 / 11; margin-top: clamp(-120px, -6vw, -40px); }
.dir:nth-child(4) { grid-column: span 4; aspect-ratio: 4 / 5; align-self: end; }
.dir__img { position: absolute; inset: 0; overflow: hidden; }
.dir__img img { width: 100%; height: 120%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter 1s; }
.dir:hover .dir__img img { transform: scale(1.06); }
.dir::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12, 14, 17, 0.88) 0%, rgba(12, 14, 17, 0.1) 50%, rgba(12, 14, 17, 0) 100%);
}
.dir__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(22px, 3vw, 42px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.dir__num { font-size: 0.7rem; letter-spacing: 0.22em; color: var(--brass); display: block; margin-bottom: 10px; }
.dir__body p { color: var(--mist); font-size: 0.92rem; max-width: 26em; margin-top: 10px; }
.dir__arrow {
  width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: background 0.5s, border-color 0.5s, color 0.5s, transform 0.6s var(--ease-out);
}
.dir__arrow svg { width: 18px; height: 18px; }
.dir:hover .dir__arrow { background: var(--brass); border-color: var(--brass); color: var(--ink); transform: rotate(-45deg); }

/* ---------- Смена слоёв: «из чего состоит кухня» ---------- */
.layers { position: relative; }
.layers__pin { position: relative; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; overflow: hidden; }
.layer:not(:first-child) { clip-path: inset(100% 0 0 0); }
.layer img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.layer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,17,0.92) 0%, rgba(12,14,17,0.62) 42%, rgba(12,14,17,0.1) 78%), linear-gradient(0deg, rgba(12,14,17,0.65), transparent 40%); }
.layers__ui {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: var(--header-h) var(--pad) 40px;
}
.layers__texts { position: relative; height: 340px; max-width: 560px; }
.layers__text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.layers__text .h1 { margin: 16px 0 20px; }
.layers__text:not(:first-child) { opacity: 0; }
.layers__count {
  font-family: var(--serif); font-size: clamp(5rem, 14vw, 13rem); line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1px rgba(237, 230, 218, 0.35); display: flex; overflow: hidden; height: 0.82em;
}
.layers__count .reel { display: flex; flex-direction: column; }
.layers__count .reel span { display: block; height: 0.82em; line-height: 0.82em; }
.layers__nav {
  position: absolute; z-index: 6; left: var(--pad); right: var(--pad); bottom: 34px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto;
}
.layers__nav div { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.layers__nav div::before { content: ''; display: block; height: 1px; margin-bottom: 12px; background: var(--line-2); }
.layers__nav div i { display: block; height: 1px; background: var(--brass); margin-top: -13px; margin-bottom: 12px; transform: scaleX(0); transform-origin: left; }

/* ---------- Материалы: горизонтальная прокрутка ---------- */
.hscroll { position: relative; overflow: hidden; background: var(--oak); }
.hscroll__pin { height: 100svh; display: flex; align-items: center; }
.hscroll__track { display: flex; gap: clamp(20px, 2.6vw, 40px); padding: 0 var(--pad); will-change: transform; align-items: center; }
.hscroll__intro { flex: none; width: min(460px, 80vw); padding-right: 4vw; }
.hscroll__intro .h2 { margin: 18px 0 22px; }
.mat {
  position: relative; flex: none; width: clamp(280px, 30vw, 460px);
  display: flex; flex-direction: column; gap: 22px;
}
.mat:nth-child(odd) { transform: translateY(6vh); }
.mat__img { position: relative; aspect-ratio: 4 / 5.2; overflow: hidden; }
.mat__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.mat__swatch {
  position: absolute; left: 18px; top: 18px; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.mat__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.mat__row span { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brass); }
.mat p { color: var(--mist); font-size: 0.92rem; }

/* ---------- Сплит: производство ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 100svh; }
.split__media { position: relative; overflow: hidden; }
.split__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.split__body {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: clamp(64px, 8vw, 140px) var(--pad);
  background: var(--oak);
}
.split--rev { grid-template-columns: 0.95fr 1.05fr; }
.split--rev .split__media { order: 2; }
.split--ink .split__body { background: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fact { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 24px; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 3.6vw, 3.6rem); line-height: 1; color: var(--bone); }
.fact > span { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--mist); }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; letter-spacing: -0.02em;
}
.stat b sup { font-size: 0.4em; color: var(--brass); }
.stat > span { display: block; margin-top: 14px; color: var(--mist); font-size: 0.9rem; max-width: 18em; }

/* ---------- Этапы работы ---------- */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; align-items: start; }
.process__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.process__sticky .h2 { margin: 18px 0 24px; }
.process__img { margin-top: 40px; aspect-ratio: 4 / 3; overflow: hidden; }
.process__img img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; counter-reset: step; }
.steps li {
  position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 20px;
  padding: clamp(28px, 3.4vw, 48px) 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brass);
}
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; margin-bottom: 10px; }
.steps p { color: var(--mist); max-width: 34em; }
.steps .tag { display: inline-block; margin-top: 14px; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--frost); }

/* ---------- Проекты ---------- */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.proj { position: relative; display: block; cursor: pointer; }
.proj__img { position: relative; overflow: hidden; background: var(--ink-2); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.proj:hover .proj__img img { transform: scale(1.05); }
.proj__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; align-items: baseline; }
.proj__cap b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.proj__cap span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
.projects .proj:nth-child(4n+1) { grid-column: span 7; }
.projects .proj:nth-child(4n+1) .proj__img { aspect-ratio: 16 / 11; }
.projects .proj:nth-child(4n+2) { grid-column: span 5; margin-top: 18vh; }
.projects .proj:nth-child(4n+2) .proj__img { aspect-ratio: 4 / 5; }
.projects .proj:nth-child(4n+3) { grid-column: 2 / span 5; }
.projects .proj:nth-child(4n+3) .proj__img { aspect-ratio: 4 / 5; }
.projects .proj:nth-child(4n+4) { grid-column: span 6; margin-top: 10vh; }
.projects .proj:nth-child(4n+4) .proj__img { aspect-ratio: 4 / 3; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 70px); }
.chip {
  height: 44px; padding: 0 22px; border-radius: 100px; border: 1px solid var(--line-2);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.chip:hover { border-color: var(--brass); }
.chip.is-active { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.proj.is-hidden { display: none; }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 1050; background: rgba(8, 9, 11, 0.94);
  display: grid; place-items: center; padding: 5vh 5vw;
  opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; display: grid; justify-items: center; max-width: min(1200px, 100%); }
.lightbox img { max-height: 72vh; max-width: 100%; width: auto; object-fit: contain; transform: scale(0.96); transition: transform 0.7s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox__cap { margin-top: 18px; text-align: center; display: grid; gap: 6px; max-width: 62ch; }
.lightbox__cap b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.lightbox__desc { font-size: 0.9rem; line-height: 1.5; color: var(--mist); }
.lightbox__count { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--brass); }
.lightbox__nav { position: absolute; top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(8, 9, 11, 0.5); transition: border-color 0.3s; }
.lightbox__nav:hover { border-color: var(--brass); }
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox.is-single .lightbox__nav { display: none; }
@media (max-width: 860px) {
  .lightbox { padding: 70px 12px 24px; }
  .lightbox img { max-height: 62vh; }
  .lightbox__nav { top: auto; bottom: 18px; margin: 0; width: 46px; height: 46px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
}
.lightbox__close { position: absolute; top: 24px; right: 24px; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.lightbox__close svg { width: 18px; height: 18px; }

/* ---------- Карточки-сетка (услуги, типы шкафов) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  position: relative; background: var(--ink); padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 16px; min-height: 340px; overflow: hidden;
  transition: background 0.6s;
}
.card:hover { background: var(--ink-2); }
.card__num { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brass); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.3vw, 2.2rem); line-height: 1.1; margin-top: auto; }
.card p { color: var(--mist); font-size: 0.94rem; }
.card__icon { width: 46px; height: 46px; color: var(--brass); }
.card__bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; z-index: 0; }
.card__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.4s var(--ease-out); }
.card__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,14,17,0.95), rgba(12,14,17,0.55)); }
.card > *:not(.card__bg) { position: relative; z-index: 1; }
.card:hover .card__bg { opacity: 1; }
.card:hover .card__bg img { transform: scale(1); }

/* Коллекции */
.collections { display: grid; gap: clamp(80px, 10vw, 160px); }
.coll { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.coll:nth-child(even) { grid-template-columns: 0.8fr 1.2fr; }
.coll:nth-child(even) .coll__media { order: 2; }
.coll__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.coll__media img { width: 100%; height: 115%; object-fit: cover; }
.coll__body .h2 { margin: 16px 0 22px; }
.coll__specs { list-style: none; margin: 28px 0 34px; border-top: 1px solid var(--line); }
.coll__specs li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.coll__specs li span:first-child { color: var(--mist); }
.coll__swatches { display: flex; gap: 10px; margin-top: 8px; }
.coll__swatches i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }

/* Планировки */
.layouts { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.layouts__tabs { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.layouts__tab {
  text-align: left; display: grid; grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 20px 0;
  border-bottom: 1px solid var(--line); opacity: 0.45; transition: opacity 0.4s;
}
.layouts__tab span { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brass); padding-top: 8px; }
.layouts__tab b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.1; }
.layouts__tab p { grid-column: 2; font-size: 0.9rem; color: var(--mist); max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out); }
.layouts__tab.is-active, .layouts__tab:hover { opacity: 1; }
.layouts__tab.is-active p { max-height: 8em; }
.layouts__plan {
  position: relative; aspect-ratio: 1; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(52, 80, 106, 0.18), transparent 70%);
}
.layouts__plan svg { position: absolute; inset: 10%; width: 80%; height: 80%; }
.plan-room { fill: none; stroke: rgba(237,230,218,0.3); stroke-width: 2; }
.plan-mod { fill: url(#oakfill); stroke: var(--brass); stroke-width: 1.5; transition: all 0.9s var(--ease); }
.plan-label { fill: var(--mist); font-size: 12px; letter-spacing: 0.18em; font-family: var(--sans); }

/* ---------- FAQ ---------- */
.faq { max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 22px; height: 22px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--brass); transition: transform 0.5s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { color: var(--mist); padding: 0 0 30px; max-width: 46em; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 16vw, 230px) 0; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 130%; object-fit: cover; opacity: 0.38; }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(12,14,17,0.3), rgba(12,14,17,0.95) 75%); }
.cta .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta .display { margin: 24px 0 30px; }
.cta .lead { margin: 0 auto 44px; text-align: center; }
.contact-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 10px;
  border-radius: 100px; border: 1px solid var(--line-2); background: rgba(12,14,17,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease-out);
}
.pill i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--brass); transition: background 0.4s, color 0.4s; }
.pill i svg { width: 18px; height: 18px; }
.pill:hover { border-color: var(--brass); }
.pill:hover i { background: var(--brass); color: var(--ink); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 6vw, 110px); align-items: start; }
/* форма сразу справа от заголовка, карта — под контактами */
.contact-grid__form { grid-column: 2; grid-row: 1 / span 2; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease-out);
}
.contact-row:hover { padding-left: 12px; }
.contact-row small { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.contact-row b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; word-break: break-word; }
.contact-row svg { width: 18px; height: 18px; color: var(--brass); }
/* Карта: assets/img/map.svg (OpenStreetMap, tools/map-build.mjs) — точка адреса ровно в центре картинки */
.map-card {
  position: relative; margin-top: 40px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line);
  background: #0f1318;
}
.map-card__map {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 1.6s var(--ease-out);
}
.map-card:hover .map-card__map { transform: scale(1.07); }
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-100% + 9px)); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
}
.map-pin i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 6px rgba(184,160,126,0.22), 0 0 24px 6px rgba(184,160,126,0.35); }
.map-pin i::before, .map-pin i::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--brass);
  animation: map-ping 2.8s var(--ease-out) infinite;
}
.map-pin i::after { animation-delay: 1.4s; }
@keyframes map-ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(4.2); opacity: 0; } }
html.no-motion .map-pin i::before, html.no-motion .map-pin i::after { animation: none; opacity: 0; }
.map-pin span {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  background: rgba(12,14,17,0.86); backdrop-filter: blur(6px); padding: 7px 13px; border: 1px solid var(--line-2); color: var(--brass-2);
}
.map-card__route {
  position: absolute; left: clamp(12px, 2vw, 20px); bottom: clamp(12px, 2vw, 20px); z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 99px;
  background: rgba(12,14,17,0.82); backdrop-filter: blur(6px);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.map-card__route svg { width: 13px; height: 13px; color: var(--brass); }
.map-card__route:hover { border-color: var(--brass); background: var(--brass); color: var(--ink); }
.map-card__route:hover svg { color: var(--ink); }
.map-card__osm { position: absolute; right: 10px; bottom: 6px; z-index: 1; font-size: 0.56rem; letter-spacing: 0.06em; color: rgba(161,154,142,0.55); }

/* ---------- Форма заявки ---------- */
.form { display: grid; gap: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; padding-top: 22px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 12px 0 14px; font-size: 1.05rem; font-weight: 300; outline: none; border-radius: 0;
  transition: border-color 0.4s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--bone); }
.field textarea { resize: vertical; min-height: 110px; }
.field label {
  position: absolute; left: 0; top: 34px; font-size: 1rem; color: var(--mist); pointer-events: none;
  transition: transform 0.4s var(--ease-out), font-size 0.4s, color 0.4s, top 0.4s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brass); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label {
  top: 4px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass);
}
.field.is-error input { border-color: #c0675a; }
.field--select::after {
  content: ''; position: absolute; right: 4px; top: 42px; width: 8px; height: 8px;
  border-right: 1px solid var(--brass); border-bottom: 1px solid var(--brass); transform: rotate(45deg); pointer-events: none;
}
.chips-field { padding-top: 26px; }
.chips-field > span { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.chips-field .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-field input { position: absolute; opacity: 0; pointer-events: none; }
.chips-field label {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--line-2);
  font-size: 0.8rem; cursor: pointer; transition: all 0.35s;
}
.chips-field input:checked + label { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.chips-field input:focus-visible + label { outline: 1px solid var(--brass); outline-offset: 3px; }
.form__agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 0.8rem; color: var(--mist); cursor: pointer; }
.form__agree input { margin-top: 3px; accent-color: var(--brass); width: 16px; height: 16px; flex: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.form__note { font-size: 0.8rem; color: var(--mist); }
.form__status { font-size: 0.9rem; min-height: 1.4em; margin-top: 10px; }
.form__status.is-ok { color: #a8c3a0; }
.form__status.is-err { color: #d68a7e; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success .h2 { margin: 18px 0 16px; }
.form.is-sent { display: none; }
.form.is-sent + .form-success { display: block; }
.success-mark { width: 84px; height: 84px; margin: 0 auto; color: var(--brass); }

/* Модальное окно заявки */
.modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: flex-end;
  pointer-events: none;
}
.modal__overlay { position: absolute; inset: 0; background: rgba(6, 7, 9, 0.7); opacity: 0; transition: opacity 0.6s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; width: min(640px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink-2); border-left: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
  transform: translateX(100%); transition: transform 0.9s var(--ease);
}
.modal.is-open { pointer-events: auto; }
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.modal__head .h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 14px; }
.modal__close { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.6s var(--ease-out), border-color 0.3s; }
.modal__close:hover { transform: rotate(90deg); border-color: var(--brass); }
.modal__close svg { width: 18px; height: 18px; }
.modal__quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 26px 0 8px; }
.modal__quick a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--line);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; transition: border-color 0.3s, background 0.3s;
}
.modal__quick a:hover { border-color: var(--brass); background: var(--ink-3); }
.modal__quick svg { width: 20px; height: 20px; color: var(--brass); }
.modal__or { display: flex; align-items: center; gap: 16px; margin: 22px 0 4px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.modal__or::before, .modal__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Подвал ---------- */
.footer { position: relative; background: linear-gradient(180deg, #0b1219 0%, #07090c 70%); padding: clamp(80px, 10vw, 140px) 0 34px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
.footer h4 { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--brass); margin-bottom: 22px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a, .footer li span { color: var(--mist); transition: color 0.3s; font-size: 0.95rem; }
.footer li a:hover { color: var(--bone); }
.footer__lead { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.15; max-width: 14em; margin-bottom: 30px; }
.footer__big {
  margin-top: clamp(60px, 9vw, 130px);
  font-family: var(--serif); font-weight: 500; line-height: 0.8;
  font-size: clamp(3.4rem, 18.5vw, 22rem); letter-spacing: 0.06em;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(237,230,218,0.14) 0%, rgba(237,230,218,0.02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--mist-2);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

/* ---------- Анимации-утилиты ---------- */
.reveal-img { overflow: hidden; }
.parallax img, img.parallax { will-change: transform; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav, .header__phone span { display: none; }
  .burger { display: block; }
  .header__phone { width: 48px; height: 48px; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; }
  .build__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .build__side { padding: calc(var(--header-h) + 8px) var(--pad) 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .build__side > .eyebrow, .build__side > .h3, .build__progress { display: none; }
  .build__steps { margin-top: 16px; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .build__step { grid-template-columns: 1fr; padding: 10px 0 0; border-top: 0; border-bottom: 0 !important; position: relative; }
  .build__step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-2); }
  .build__step.is-active::before { background: var(--brass); }
  .build__step b { font-size: 1.05rem; }
  .build__step p { display: none; }
  .build__dims { top: 18px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__img { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  body { font-size: 15px; }
  .header__actions .btn { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .hero__meta { display: none; }
  .hero__title { max-width: none; }
  .hero__cta .btn { flex: 1 1 auto; }
  .dirs { grid-template-columns: 1fr; gap: 18px; }
  .dir:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 4.4; margin-top: 0; }
  .layers__ui { grid-template-columns: 1fr; align-items: end; padding-bottom: 110px; }
  .layers__count { display: none; }
  .layers__texts { height: 300px; }
  .layer::after { background: linear-gradient(0deg, rgba(12,14,17,0.95) 0%, rgba(12,14,17,0.55) 50%, rgba(12,14,17,0.15) 100%); }
  .layers__nav { grid-template-columns: repeat(4, 1fr); gap: 8px; bottom: 90px; }
  .layers__nav div { font-size: 0.56rem; letter-spacing: 0.1em; }
  .hscroll__pin { height: auto; display: block; padding: 90px 0; }
  .hscroll__track { flex-direction: column; align-items: stretch; gap: 48px; transform: none !important; }
  .hscroll__intro { width: auto; padding: 0; }
  .mat { width: 100%; }
  .mat:nth-child(odd) { transform: none; }
  .split, .split--rev { grid-template-columns: 1fr; min-height: 0; }
  .split__media { aspect-ratio: 4 / 3.4; }
  .split--rev .split__media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps li { grid-template-columns: 60px 1fr; }
  .steps li::before { font-size: 2rem; }
  .projects { grid-template-columns: 1fr; }
  .projects .proj:nth-child(n) { grid-column: auto; margin-top: 0; }
  .projects .proj:nth-child(n) .proj__img { aspect-ratio: 4 / 3.4; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { margin-top: 18px; }
  .coll, .coll:nth-child(even) { grid-template-columns: 1fr; }
  .coll:nth-child(even) .coll__media { order: 0; }
  .layouts { grid-template-columns: 1fr; }
  .layouts__plan { order: -1; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .contact-grid__form { grid-column: auto; grid-row: auto; }
  .contact-row { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; }
  .contact-row small { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .modal__panel { border-left: 0; }
  .fab { display: none; }
  /* нижняя панель с быстрыми действиями */
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 760;
    display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; padding: 6px;
    border-radius: 100px; background: rgba(18, 21, 26, 0.9); border: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
    transform: translateY(140%); transition: transform 0.7s var(--ease-out);
  }
  .mbar.is-visible { transform: none; }
  .mbar a, .mbar button {
    height: 50px; border-radius: 100px; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  }
  .mbar a { background: var(--ink-3); color: var(--brass); }
  .mbar a svg { width: 19px; height: 19px; }
  .mbar button { background: var(--brass); color: var(--ink); }
  .footer { padding-bottom: 110px; }
  .menu-open .mbar { transform: translateY(140%); }
}

@media (max-width: 480px) {
  .logo__sub { display: none; }
  .logo__word { font-size: 1.6rem; }
  .display { font-size: clamp(2.5rem, 12.5vw, 3.4rem); }
  .btn { height: 54px; padding: 0 22px; }
  .hero__cta { width: 100%; }
  .stat b { font-size: 2.8rem; }
  .pill { width: 100%; justify-content: flex-start; }
  .modal__quick a { font-size: 0.58rem; letter-spacing: 0.1em; }
}

@media (hover: none), (max-width: 860px) {
  .grain { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
}

/* ---------- Маски слов (анимация заголовков) ---------- */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wi { display: inline-block; will-change: transform; }

/* Заставка до запуска скриптов (без мигания контента) */
html.is-loading::after, html.is-entering::after {
  content: ''; position: fixed; inset: 0; z-index: 1300; background: var(--ink);
  animation: veil-out 0.4s 4s forwards;
}
html.is-entering::after { background: var(--oak); }
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Кухня SVG ---------- */
.kitchen-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.build__svg, .cfg__stage {
  --k-base: #22384c; --k-base-grain: 0; --k-base-sheen: 0.4;
  --k-tall: #4a3524; --k-tall-grain: 0.85; --k-tall-sheen: 0.08;
  --k-top: #e7e1d6; --k-top-vd: 0.34; --k-top-vl: 0; --k-top-wood: 0;
  --k-handle: #c2a77c; --k-wall: #1d2127; --k-floor: #3a2b1e;
}
.kitchen-svg rect, .kitchen-svg path, .kitchen-svg ellipse { transition: fill 0.9s var(--ease-out), opacity 0.9s var(--ease-out), stroke 0.9s; }
.kitchen-svg .k-glowfx { opacity: 0.5; transition: opacity 1.2s var(--ease-out); }
.kitchen-svg .k-night { opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease-out); }
.is-night .kitchen-svg .k-night { opacity: 0.58; }
.is-night .kitchen-svg .k-glowfx { opacity: 1; }

/* ---------- Конструктор ---------- */
.cfg { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.cfg__frame {
  position: relative; aspect-ratio: 1000 / 600; overflow: hidden;
  border: 1px solid var(--line); background: #0a0b0d;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8);
}
.cfg__stage { position: absolute; inset: 0; }
.cfg__stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 240, 215, 0.12) 50%, transparent 62%);
  transform: translateX(-110%);
}
.cfg__stage.is-flash::after { animation: sweep 1.3s var(--ease-out); }
@keyframes sweep { to { transform: translateX(110%); } }
.cfg__hud {
  position: absolute; z-index: 2; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(237, 230, 218, 0.75); pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.cfg__hud--tl { left: 22px; top: 20px; display: flex; align-items: center; gap: 10px; }
.cfg__hud--tl i { width: 7px; height: 7px; border-radius: 50%; background: #d8644f; box-shadow: 0 0 0 4px rgba(216, 100, 79, 0.2); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: 0.3; } }
.cfg__hud--bl { left: 24px; bottom: 22px; text-transform: none; letter-spacing: 0; }
.cfg__hud--bl small { display: block; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.cfg__hud--bl b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--bone); line-height: 1; }
.cfg__hud--br { right: 24px; bottom: 24px; text-align: right; line-height: 1.7; }
.cfg__mode {
  position: absolute; z-index: 3; right: 18px; top: 16px;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 100px;
  background: rgba(12, 14, 17, 0.6); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.cfg__mode i { position: relative; width: 34px; height: 18px; border-radius: 20px; background: var(--ink-3); border: 1px solid var(--line-2); }
.cfg__mode i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); transition: transform 0.5s var(--ease-out); }
.cfg__mode[aria-pressed="true"] i::after { transform: translateX(16px); background: #ffd59a; box-shadow: 0 0 12px #ffd59a; }
.cfg__mode span:first-child { color: var(--bone); }
.cfg__mode[aria-pressed="true"] span:first-child { color: var(--mist); }
.cfg__mode span:last-child { color: var(--mist); }
.cfg__mode[aria-pressed="true"] span:last-child { color: #ffd59a; }

.cfg__body { display: grid; grid-template-columns: 1fr 360px; gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.cfg__controls { min-width: 0; border: 1px solid var(--line); background: rgba(18, 21, 26, 0.6); }
.cfg__tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.cfg__tab {
  position: relative; text-align: left; padding: 18px 18px 16px; display: grid; gap: 4px; min-width: 0;
  border-right: 1px solid var(--line); transition: background 0.4s;
}
.cfg__tab:last-child { border-right: 0; }
.cfg__tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.cfg__tab.is-active::after { transform: scaleX(1); }
.cfg__tab:hover { background: rgba(255, 255, 255, 0.02); }
.cfg__tab span { font-size: 0.62rem; letter-spacing: 0.2em; color: var(--brass); }
.cfg__tab b { font-weight: 400; font-size: 0.8rem; color: var(--mist); transition: color 0.3s; }
.cfg__tab.is-active b { color: var(--bone); }
.cfg__tab small { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--bone); opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg__cards { display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 20px; }
.cfg__cards.is-active { display: grid; animation: qin 0.7s var(--ease-out); }
.mcard {
  position: relative; text-align: left; display: grid; gap: 4px; padding: 10px 10px 14px; align-content: start;
  border: 1px solid var(--line); background: var(--ink); transition: border-color 0.35s, transform 0.5s var(--ease-out), background 0.35s;
}
.mcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.mcard.is-active { border-color: var(--brass); background: rgba(184, 160, 126, 0.07); }
.mcard.is-active::after {
  content: ''; position: absolute; right: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%230c0e11' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat;
}
.mcard__tile { display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -20px 30px -20px rgba(0, 0, 0, 0.5); }
.mcard__name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; color: var(--bone); }
.mcard__sub { font-size: 0.74rem; color: var(--mist); line-height: 1.35; }
.mcard__price { margin-top: 6px; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }

.cfg__summary { border: 1px solid var(--line); background: rgba(18, 21, 26, 0.6); padding: 26px; display: grid; gap: 20px; }
.cfg__list { list-style: none; border-top: 1px solid var(--line); }
.cfg__list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.cfg__list li > span:first-child { color: var(--mist); }
.cfg__list li > span:last-child { text-align: right; color: var(--bone); }
.cfg__list small { display: block; font-size: 0.7rem; color: var(--mist-2); }
.cfg__price small { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.cfg__price b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1.1; margin: 6px 0; color: var(--bone); }
.cfg__summary .btn { width: 100%; }
.cfg__presets small { display: block; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
.cfg__presets > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg__presets .chip { height: 36px; padding: 0 14px; font-size: 0.62rem; }

/* ---------- Квиз ---------- */
.quiz { border: 1px solid var(--line); background: var(--ink-2); padding: clamp(24px, 4vw, 64px); position: relative; overflow: hidden; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.quiz__bar { height: 1px; background: var(--line); margin-bottom: clamp(30px, 4vw, 54px); }
.quiz__bar i { display: block; height: 100%; background: var(--brass); width: 0; transition: width 0.8s var(--ease-out); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: qin 0.8s var(--ease-out); }
@keyframes qin { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.quiz__step .h2 { margin-bottom: 32px; font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.quiz__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qopt {
  text-align: left; border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.3s, background 0.3s, transform 0.5s var(--ease-out);
}
.qopt:hover { border-color: var(--brass); transform: translateY(-4px); }
.qopt.is-picked { border-color: var(--brass); background: rgba(184, 160, 126, 0.08); }
.qopt svg { width: 100%; height: 90px; }
.qopt b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.qopt small { color: var(--mist); font-size: 0.82rem; }
.qopt .qimg { aspect-ratio: 4 / 3; overflow: hidden; }
.qopt .qimg img { width: 100%; height: 100%; object-fit: cover; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 16px; }
.quiz__back { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.quiz__back:hover { color: var(--bone); }
.quiz__result { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.quiz__result ul { list-style: none; border-top: 1px solid var(--line); margin: 20px 0 0; }
.quiz__result li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.quiz__result li span:first-child { color: var(--mist); }

/* ---------- Юридические страницы ---------- */
.legal { max-width: 860px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--mist); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal .note { border: 1px dashed var(--brass); padding: 18px 20px; color: var(--brass-2); margin-bottom: 30px; font-size: 0.92rem; }

@media (max-width: 1100px) {
  .cfg__body { grid-template-columns: 1fr; }
  .quiz__opts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cfg__frame { aspect-ratio: 4 / 3.4; margin: 0 calc(-1 * var(--pad)); border-left: 0; border-right: 0; }
  .cfg__hud--br { display: none; }
  .cfg__hud--bl b { font-size: 1.5rem; }
  .cfg__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .cfg__tabs::-webkit-scrollbar { display: none; }
  .cfg__tab { flex: 0 0 auto; min-width: 150px; }
  .cfg__cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 148px; overflow-x: auto; padding: 16px; scroll-snap-type: x mandatory; }
  .mcard { scroll-snap-align: start; }
  .cfg__controls { margin: 0 calc(-1 * var(--pad)); border-left: 0; border-right: 0; }
  .quiz__result { grid-template-columns: 1fr; }
  .qopt svg { height: 70px; }
}

/* ---------- Film: покадровая анимация при прокрутке ---------- */
.film { position: relative; background: var(--ink); }
.film__pin { position: relative; height: 100svh; overflow: hidden; }
.film__canvas, .film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film__poster { display: none; }
html.no-motion .film__poster { display: block; }
html.no-motion .film__canvas { display: none; }
.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(12, 14, 17, 0.9) 0%, rgba(12, 14, 17, 0.25) 38%, rgba(12, 14, 17, 0) 60%),
    linear-gradient(180deg, rgba(12, 14, 17, 0.55) 0%, rgba(12, 14, 17, 0) 22%);
}
.film__hud {
  position: absolute; top: calc(var(--header-h) + 18px); z-index: 2;
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--frost); line-height: 1.9;
  font-variant-numeric: tabular-nums;
}
.film__hud span { color: var(--mist); }
.film__hud--tl { left: var(--pad); }
.film__hud--tr { right: var(--pad); text-align: right; }
.film__texts { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(70px, 12vh, 140px); z-index: 2; height: 40vh; pointer-events: none; }
.film__text { position: absolute; left: 0; bottom: 0; width: min(100%, 980px); }
.film__text:not(:first-child) { opacity: 0; }
.film__title {
  font-family: var(--serif); font-weight: 400; margin-top: 18px;
  font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: 0.98; letter-spacing: -0.015em; max-width: 9.5em;
}
.film__title em { font-style: italic; color: var(--brass); }
.film__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 36px; height: 1px; background: var(--line); z-index: 2; }
.film__progress i { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .film__hud--tr { display: none; }
  .film__title { max-width: 8.5em; }
  .film__texts { bottom: 110px; }
  .film__progress { bottom: 92px; }
}
.cfg__frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(8, 9, 11, 0.78), rgba(8, 9, 11, 0)); }

/* ---------- Карусель проектов ---------- */
.carousel {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 0 var(--pad);
  cursor: grab; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-drag { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-drag .ccard { pointer-events: none; }
.carousel__track { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 28px); width: max-content; padding-right: var(--pad); }
.ccard { flex: none; width: clamp(280px, 40vw, 680px); scroll-snap-align: start; user-select: none; -webkit-user-select: none; }
.ccard:nth-child(even) { width: clamp(240px, 30vw, 500px); margin-top: clamp(30px, 6vw, 90px); }
.ccard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--oak-2); }
.ccard:nth-child(even) .ccard__img { aspect-ratio: 4 / 5; }
.ccard__img img { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; object-fit: cover; will-change: transform; transition: scale 1.4s var(--ease-out); }
.ccard:hover .ccard__img img { scale: 1.05; }
.ccard__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 14, 17, 0.35), transparent 40%); }
.ccard__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; padding-top: 18px; }
.ccard__meta > span { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brass); }
.ccard__meta b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; }
.ccard__meta small { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.ccard__meta em { grid-column: 2; font-style: normal; font-size: 0.86rem; color: var(--mist); opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.ccard:hover .ccard__meta em { opacity: 1; transform: none; }
.ccard--all {
  align-self: stretch; width: clamp(220px, 22vw, 340px); display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line-2); padding: 30px; font-family: var(--serif); font-size: 2rem; line-height: 1.1;
  transition: background 0.5s, color 0.5s;
}
.ccard--all svg { width: 42px; height: 42px; align-self: flex-end; color: var(--brass); transition: transform 0.6s var(--ease-out), color 0.5s; }
.ccard--all:hover { background: var(--brass); color: var(--ink); }
.ccard--all:hover svg { color: var(--ink); transform: rotate(45deg); }
.carousel__ctrl { justify-self: end; display: flex; align-items: center; gap: 12px; }
.carousel__count { font-size: 0.74rem; letter-spacing: 0.2em; color: var(--mist); margin-right: 14px; font-variant-numeric: tabular-nums; }
.carousel__count b { color: var(--bone); font-weight: 400; }
.carousel__btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.4s, border-color 0.4s, color 0.4s; }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.carousel__bar { height: 1px; background: var(--line); margin-top: clamp(36px, 5vw, 60px); position: relative; }
.carousel__bar i { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0.1); }
@media (max-width: 860px) {
  .carousel { cursor: auto; }
  .ccard, .ccard:nth-child(even) { width: 78vw; margin-top: 0; }
  .ccard:nth-child(even) .ccard__img { aspect-ratio: 4 / 3; }
  .ccard__meta em { opacity: 1; transform: none; }
  .ccard--all { width: 60vw; min-height: 200px; }
  .carousel__ctrl { justify-self: start; }
  .carousel__btn { width: 48px; height: 48px; }
}

/* ---------- Форма-шаги ---------- */
.fsteps__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.fsteps__names { display: flex; gap: 14px; }
.fsteps__names b { font-weight: 400; opacity: 0.45; transition: opacity 0.4s, color 0.4s; }
.fsteps__names b.is-on { opacity: 1; color: var(--brass); }
.fsteps__bar { height: 1px; background: var(--line); margin: 12px 0 6px; }
.fsteps__bar i { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0.333); transition: transform 0.8s var(--ease-out); }
.fstep { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.fstep.is-active { display: grid; gap: 4px; animation: qin 0.7s var(--ease-out); }
.fstep__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; padding: 22px 0 14px; }
.fstep__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; }
.fstep__nav .link-line { color: var(--mist); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 16px; cursor: pointer;
  border: 1px solid var(--line-2); transition: border-color 0.35s, background 0.35s, transform 0.4s var(--ease-out);
}
.choice svg { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.3; }
.choice span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.choice::after { content: ''; position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); transition: all 0.3s; }
.choice:hover { border-color: var(--brass); transform: translateY(-2px); }
.choice-grid input:checked + .choice { border-color: var(--brass); background: rgba(184, 160, 126, 0.08); }
.choice-grid input:checked + .choice::after { background: var(--brass); border-color: var(--brass); box-shadow: inset 0 0 0 3px var(--ink-2); }
.choice-grid input:focus-visible + .choice { outline: 1px solid var(--brass); outline-offset: 3px; }
.upload {
  display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; cursor: pointer;
  border: 1px dashed var(--line-2); transition: border-color 0.3s, background 0.3s;
}
.upload:hover { border-color: var(--brass); background: rgba(184, 160, 126, 0.05); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload svg { width: 28px; height: 28px; color: var(--brass); flex: none; }
.upload b { display: block; font-weight: 400; font-size: 0.95rem; }
.upload small { color: var(--mist); font-size: 0.78rem; }
.upload__list { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.upload__list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--ink-3); font-size: 0.84rem; }
.upload__list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__list small { color: var(--mist); }
.upload__list button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); line-height: 1; }
.form__hint { font-size: 0.78rem; color: var(--mist); margin-top: 6px; }
@media (max-width: 480px) {
  .choice-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .choice span { font-size: 1.05rem; }
  .fsteps__names { display: none; }
  .fstep__nav .btn { flex: 1; }
}

/* ---------- Materialien & Farben ---------- */
.matnav { position: sticky; top: 0; z-index: 600; background: rgba(12, 14, 17, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.matnav__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); height: 64px; overflow-x: auto; scrollbar-width: none; }
.matnav__in::-webkit-scrollbar { display: none; }
.matnav a { flex: none; position: relative; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); padding: 6px 0; transition: color 0.3s; }
.matnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.matnav a:hover, .matnav a.is-active { color: var(--bone); }
.matnav a.is-active::after { transform: scaleX(1); }
.matnav__cta { margin-left: auto; flex: none; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); border: 1px solid rgba(184, 160, 126, 0.5); border-radius: 100px; height: 36px; padding: 0 16px; transition: background 0.3s, color 0.3s; }
.matnav__cta:hover { background: var(--brass); color: var(--ink); }


.matsec { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 92svh; scroll-margin-top: 64px; }
.matsec--rev { grid-template-columns: 0.9fr 1.1fr; }
.matsec--rev .matsec__media { order: 2; }
.matsec__media { position: relative; overflow: hidden; min-height: 60svh; }
.matsec__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.matsec__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(56px, 7vw, 120px) var(--pad); }
.matsec:nth-of-type(even) .matsec__body { background: var(--ink-2); }
.matsec__num { font-family: var(--serif); font-size: 1.2rem; color: var(--brass); }
.matsec__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2; color: var(--brass-2); margin-bottom: 6px; }
.matsec .muted { max-width: 32em; }
.swatchrow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.swatchrow figure { display: grid; gap: 8px; width: 76px; }
.swatchrow i { display: block; width: 76px; height: 76px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 24px -10px rgba(0, 0, 0, 0.7); transition: transform 0.5s var(--ease-out); }
.swatchrow figure:hover i { transform: translateY(-4px) scale(1.05); }
.swatchrow figcaption { font-size: 0.7rem; color: var(--mist); text-align: center; line-height: 1.3; }
.swatchrow--colors figure, .swatchrow--colors i { width: 60px; }
.swatchrow--colors i { height: 60px; }

.featured-mat { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 220px) 0; scroll-margin-top: 64px; }
.featured-mat__bg { position: absolute; inset: 0; }
.featured-mat__bg img { width: 100%; height: 130%; object-fit: cover; }
.featured-mat__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 14, 17, 0.94) 0%, rgba(12, 14, 17, 0.75) 55%, rgba(12, 14, 17, 0.45) 100%); }
.featured-mat__in { position: relative; z-index: 2; }
.featured-mat .display { margin: 22px 0 34px; max-width: 12ch; }
.featured-mat__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 60px; max-width: 1040px; }
.worktops { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border-top: 1px solid var(--line-2); max-width: 1200px; }
.worktops li { padding: 22px 22px 0 0; display: grid; gap: 6px; }
.worktops b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.worktops span { font-size: 0.84rem; color: var(--mist); }

.samples { background: var(--oak); padding: clamp(90px, 12vw, 170px) 0; }
.samples__in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.samples__visual { position: relative; height: clamp(300px, 34vw, 460px); }
.samples__visual i { position: absolute; width: 46%; aspect-ratio: 1; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.9s var(--ease-out); }
.samples__visual i:nth-child(1) { left: 0; top: 10%; transform: rotate(-8deg); }
.samples__visual i:nth-child(2) { left: 22%; top: 0; transform: rotate(4deg); }
.samples__visual i:nth-child(3) { left: 44%; top: 16%; transform: rotate(-3deg); }
.samples__visual i:nth-child(4) { left: 12%; top: 42%; transform: rotate(6deg); }
.samples__visual i:nth-child(5) { left: 40%; top: 50%; width: 30%; transform: rotate(-10deg); border-radius: 50%; }
.samples__visual:hover i:nth-child(1) { transform: rotate(-14deg) translate(-12px, -6px); }
.samples__visual:hover i:nth-child(3) { transform: rotate(4deg) translate(14px, -8px); }
.samples__visual:hover i:nth-child(5) { transform: rotate(-20deg) translate(12px, 10px); }

/* Выпадающее меню «Küchen» */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__drop {
  position: absolute; top: calc(100% + 14px); left: -24px; min-width: 260px; padding: 14px 0;
  background: rgba(18, 21, 26, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.35s, transform 0.5s var(--ease-out), visibility 0.35s;
}
.nav__drop::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav .nav__drop a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 24px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: none; color: var(--mist); }
.nav .nav__drop a::after { display: none; }
.nav .nav__drop a:hover { color: var(--bone); background: rgba(255, 255, 255, 0.03); }
.nav .nav__drop a small { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--brass); text-transform: uppercase; }
.nav__drop hr { border: 0; height: 1px; background: var(--line); margin: 8px 24px; }

@media (max-width: 860px) {
  .matsec, .matsec--rev { grid-template-columns: 1fr; min-height: 0; }
  .matsec--rev .matsec__media { order: 0; }
  .matsec__media { min-height: 0; aspect-ratio: 4 / 3; }
  .featured-mat__cols { grid-template-columns: 1fr; }
  .worktops { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .samples__in { grid-template-columns: 1fr; }
  .samples__visual { height: 260px; }
  .swatchrow figure, .swatchrow i { width: 62px; }
  .swatchrow i { height: 62px; }
  .matnav__in { height: 56px; }
  .matnav__cta { display: none; }
}
.matnav { top: 70px; transition: top 0.6s var(--ease-out); }
body.hdr-hidden .matnav { top: 0; }
.menu-open .menu__links a:nth-child(7) { transition-delay: 0.55s; }

/* ---------- Hero «фонарик» ---------- */
.hero__media[data-torch] .hero__base { filter: brightness(0.36) saturate(0.75); }
.hero__lit {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 62%) var(--my, 42%), #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 62%) var(--my, 42%), #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
}
.hero__lit img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; filter: brightness(1.22) saturate(1.1) sepia(0.14); }
.torch-hint {
  position: absolute; z-index: 3; right: var(--pad); top: calc(var(--header-h) + 24px);
  display: flex; align-items: center; gap: 10px; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist);
  transition: opacity 0.8s;
}
.torch-hint i { width: 8px; height: 8px; border-radius: 50%; background: #ffd59a; box-shadow: 0 0 14px 4px rgba(255, 213, 154, 0.5); }
.hero.is-torch .torch-hint { opacity: 0; }
html.no-motion .hero__media[data-torch] .hero__base { filter: none; }
html.no-motion .hero__lit, html.no-motion .torch-hint { display: none; }
@media (hover: none), (pointer: coarse) { .torch-hint { display: none; } }
.mat__tag { font-family: var(--serif); font-size: 1.15rem; color: var(--brass-2); display: block; margin-bottom: 4px; }

/* ---------- Слайдер «Entwurf ↔ Realität» ---------- */
.compare { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); user-select: none; touch-action: pan-y; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--brass); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 20px rgba(184, 160, 126, 0.6); }
.compare__handle i { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease-out); }
.compare__handle svg { width: 22px; height: 22px; }
.compare:hover .compare__handle i { transform: scale(1.1); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; top: 20px; z-index: 2; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 12px; background: rgba(12, 14, 17, 0.7); border: 1px solid var(--line); pointer-events: none; }
.compare__label--l { left: 20px; color: var(--frost); }
.compare__label--r { right: 20px; color: var(--brass); }
@media (max-width: 860px) { .compare { aspect-ratio: 4 / 3.2; } }

/* ---------- Film: размерные линии поверх кадров ---------- */
.film__anno { position: absolute; z-index: 1; pointer-events: none; overflow: visible; color: #cfe1f2; max-width: none; }
.film__anno .fa-l, .film__anno .fa-x { fill: none; stroke: #e8c88f; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.film__anno .fa-x { stroke: #e8c88f; opacity: 0.9; }
.film__anno .fa-dot { fill: #e8c88f; }
.film__anno text { fill: #f0d9ad; font-family: var(--sans); font-weight: 500; letter-spacing: 0.08em; font-size: calc(var(--u, 2) * 11px); paint-order: stroke; stroke: rgba(11, 15, 22, 0.85); stroke-width: calc(var(--u, 2) * 3px); }
.film__anno .fa-d, .film__anno .fa-m { display: none; }
.film__anno.is-d .fa-d, .film__anno.is-m .fa-m { display: inline; }
html.no-motion .film__anno { display: none; }

/* ===================== NØRWA Studio (конструктор v2) ===================== */
.cfg2 { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(18px, 2vw, 28px); align-items: start; }
.cfg2__stagewrap { position: sticky; top: 90px; }
.cfg2__stage {
  position: relative; aspect-ratio: 1000 / 640; overflow: hidden; border: 1px solid var(--line); background: #0a0b0d;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8); cursor: grab; touch-action: pan-y; user-select: none;
}
.cfg2__stage.is-drag { cursor: grabbing; }
.cfg2__svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.kitchen-svg .k-eve { opacity: 0; }
.is-night .kitchen-svg .k-eve { opacity: 1; }
.kitchen-svg .k-nightwin { opacity: 0; transition: opacity 1.2s; }
.is-night .kitchen-svg .k-nightwin { opacity: 0.94; }
.cfg2__hud { position: absolute; z-index: 2; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(237, 230, 218, 0.85); pointer-events: none; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.cfg2__hud--tl { left: 18px; top: 18px; display: flex; align-items: center; gap: 9px; }
.cfg2__hud--tl i { width: 7px; height: 7px; border-radius: 50%; background: #d8644f; box-shadow: 0 0 0 4px rgba(216, 100, 79, 0.2); animation: rec 1.6s infinite; }
.cfg2__mode { right: 16px; top: 14px; }
.cfg2__title { position: absolute; z-index: 2; left: 20px; bottom: 18px; pointer-events: none; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.cfg2__title small { display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 6px; }
.cfg2__title b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1; color: #fff; }
.cfg2__stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(8, 9, 11, 0.7), transparent); }
.cfg2__views { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.cfg2__views button {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(12, 14, 17, 0.65); border: 1px solid var(--line-2); color: var(--bone);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 0.9rem; transition: background 0.3s, border-color 0.3s;
}
.cfg2__views button:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.cfg2__drag {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px; background: rgba(12, 14, 17, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); pointer-events: none;
  transition: opacity 0.6s; animation: dragHint 2.4s var(--ease-out) infinite;
}
.cfg2__drag svg { width: 22px; height: 22px; color: var(--brass); }
@keyframes dragHint { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(calc(-50% + 10px), -50%); } }
.was-dragged .cfg2__drag { opacity: 0; }

.cfg2__panel { border: 1px solid var(--line); background: rgba(18, 21, 26, 0.7); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.cfg2 > *, .cg { min-width: 0; }
.cfg2__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--ink); border: 1px solid var(--line); border-radius: 100px; margin-bottom: 10px; }
.cfg2__seg button {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 100px;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--mist); transition: background 0.4s, color 0.4s;
}
.cfg2__seg svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cfg2__seg button.is-on { background: var(--brass); color: var(--ink); }
.cg { padding: 12px 0; border-top: 1px solid var(--line); }
.cg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.cg__head b { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--mist); }
.cg__head em { font-family: var(--serif); font-size: 1.05rem; color: var(--bone); font-style: italic; }
.cg__row { display: flex; flex-wrap: wrap; gap: 8px; }
.cg__row--chips .chip { height: 38px; padding: 0 14px; font-size: 0.62rem; }
.ib {
  flex: 1 1 0; min-width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 9px;
  border: 1px solid var(--line-2); background: var(--ink); color: var(--mist); font-size: 0.7rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.ib svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ib:hover { border-color: var(--brass); color: var(--bone); transform: translateY(-2px); }
.ib.is-on { border-color: var(--brass); background: rgba(184, 160, 126, 0.12); color: var(--brass-2); }
.ib.is-on svg { stroke: var(--brass); }
.sw { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sw i { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 16px -6px rgba(0, 0, 0, 0.7); transition: transform 0.4s var(--ease-out); }
.sw i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--brass); opacity: 0; transform: scale(0.85); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.sw span { font-size: 0.58rem; line-height: 1.2; color: var(--mist); text-align: center; max-width: 56px; }
.sw:hover i { transform: scale(1.08); }
.sw.is-on i::after { opacity: 1; transform: none; }
.sw.is-on span { color: var(--bone); }
[data-configurator].is-k .only-w, [data-configurator].is-k .only-w-btn, [data-configurator].is-k .only-w-i { display: none; }
[data-configurator].is-w .only-k, [data-configurator].is-w .only-k-i { display: none; }
.cfg2__sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 14px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 4px; }
.cfg2__sum .btn { flex: 1 1 100%; }   /* «Anfragen» — своей строкой во всю ширину, текст не обрезается */
.cfg2__sum small { display: block; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.cfg2__sum b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.cfg2__note { font-size: 0.74rem; color: var(--mist-2); margin-top: 8px; line-height: 1.5; }

@media (max-width: 1100px) {
  .cfg2 { grid-template-columns: minmax(0, 1fr); }
  .cfg2__stagewrap { top: 0; z-index: 5; margin: 0 calc(-1 * var(--pad)); }
  .cfg2__stage { border-left: 0; border-right: 0; aspect-ratio: 1000 / 700; }
}
@media (max-width: 860px) {
  .cfg2__stage { aspect-ratio: 4 / 3.3; }
  .cfg2__panel { margin: 0 calc(-1 * var(--pad)); border-left: 0; border-right: 0; padding: 14px var(--pad); }
  .cg__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 4px; }
  .cg__row::-webkit-scrollbar { display: none; }
  .ib { flex: 0 0 84px; min-height: 76px; }
  .sw { flex: 0 0 58px; width: 58px; }
  .sw i { width: 48px; height: 48px; }
  .cfg2__title b { font-size: 1.35rem; }
  .cfg2__views button { width: 44px; height: 44px; }
  .cfg2__drag { font-size: 0.58rem; padding: 10px 14px; }
  .cfg2__sum .btn { padding: 0 20px; }
}

/* Удобные области нажатия на телефоне (не меньше ~44 px) */
@media (max-width: 860px) {
  .link-line { padding: 14px 0 9px; margin: -8px 0 -4px; }
  .footer__bottom a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
  .footer li a { display: inline-block; padding: 6px 0; }
  .matnav a { padding: 16px 0; }
  .logo { padding: 9px 0; }
  .crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}

/* Ноутбуки 1100–1400 px: компактная шапка без переносов */
@media (min-width: 1101px) and (max-width: 1400px) {
  .logo__sub { display: none; }
  .nav { gap: clamp(16px, 1.8vw, 30px); }
  .header__phone span { display: none; }
  .header__phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; }
}
/* Плавающая кнопка уходит, когда виден низ подвала */
.fab { transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.fab.is-away, .fab.is-away-cfg { opacity: 0; transform: translateY(20px); pointer-events: none; }
.mbar.is-away { transform: translateY(140%); }
@media (min-width: 861px) { .hero__row { padding-right: 96px; } }

/* Профиль интереса: согласие и предпросмотр в форме */
.journey { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line-2); }
.journey .form__agree { margin-top: 0; }
.journey__peek { margin-top: 8px; font-size: 0.78rem; color: var(--mist); }
.journey__peek summary { cursor: pointer; color: var(--brass); font-size: 0.72rem; letter-spacing: 0.08em; padding: 6px 0; }
.journey__peek ul { list-style: none; display: grid; gap: 4px; margin-top: 6px; }
.journey__peek li { line-height: 1.45; }

/* =========================================================
   «Meine Auswahl» — ♡ на товарах, плавающая кнопка, шторка с отправкой
   ========================================================= */
.has-wish { position: relative; }
.wbtn svg, .wheart svg, .wdot svg, .wish__list button svg, .wish__head svg, .wsend svg { fill: none; }
.wbtn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; margin: 30px 0 0 10px;
  border: 1px solid var(--line-2); border-radius: 100px; color: var(--bone);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.wbtn svg { width: 19px; height: 19px; color: var(--brass); }
.wbtn:hover { border-color: var(--brass); }
.wbtn.is-on { background: rgba(184, 160, 126, 0.12); border-color: var(--brass); color: var(--brass-2); }
.wbtn.is-on svg, .wheart.is-on svg, .wdot.is-on svg, .wpill svg, .wfly svg { fill: currentColor; }
.wbtn.is-on svg, .wheart.is-on svg, .wdot.is-on svg { animation: wpop 0.5s var(--ease-out); }
@keyframes wpop { 0% { transform: scale(0.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.wbtn--plan { margin: 18px 0 0; }
.cfg2__sum .wbtn { margin: 0 0 0 auto; height: 48px; padding: 0 18px; }

.wheart {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--bone);
  background: rgba(12, 14, 17, 0.55); border: 1px solid rgba(237, 230, 218, 0.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.wheart svg { width: 20px; height: 20px; }
.wheart:hover { transform: scale(1.08); border-color: var(--brass); }
.wheart.is-on { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.ccard .wheart { top: 12px; right: 12px; }
.has-wish > .wheart { position: absolute; z-index: 4; }   /* сильнее, чем .card > * */

.swatchrow figure.has-wish { cursor: pointer; }
.wdot {
  position: absolute; top: -4px; right: -4px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink-3); color: var(--mist); border: 1px solid var(--line-2);
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.wdot svg { width: 15px; height: 15px; }
.swatchrow--colors .wdot { top: -6px; right: -8px; }
.wdot.is-on { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.swatchrow figure.is-wished i { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--brass), 0 10px 24px -10px rgba(0, 0, 0, 0.7); }
.swatchrow figure.is-wished figcaption { color: var(--brass-2); }
@media (hover: hover) {
  .swatchrow figure .wdot:not(.is-on) { opacity: 0; }
  .swatchrow figure:hover .wdot { opacity: 1; }
}

/* Плавающая кнопка «Meine Auswahl» */
.wpill {
  position: fixed; left: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 2.4vw, 36px); z-index: 690;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 10px 0 20px; border-radius: 100px;
  background: rgba(18, 21, 26, 0.9); border: 1px solid var(--brass); color: var(--bone);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 18px 50px -14px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity 0.4s, transform 0.6s var(--ease-out), border-color 0.3s;
}
.wpill.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wpill svg { width: 20px; height: 20px; color: var(--brass); }
.wpill b { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 100px; display: grid; place-items: center; background: var(--brass); color: var(--ink); font-size: 0.9rem; letter-spacing: 0; }
.wpill.is-bump { animation: wbump 0.6s var(--ease-out); }
@keyframes wbump { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
.wfly { position: fixed; z-index: 1200; width: 28px; height: 28px; color: var(--brass); pointer-events: none; }
.wfly svg { width: 28px; height: 28px; filter: drop-shadow(0 6px 14px rgba(184, 160, 126, 0.6)); }

/* Подсказка после «Merken» */
.wtoast {
  position: fixed; left: 50%; bottom: clamp(90px, 9vw, 110px); z-index: 1100;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 10px 10px 10px 18px; border-radius: 100px;
  background: var(--bone); color: var(--ink); font-size: 0.88rem; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.wtoast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.wtoast svg { width: 18px; height: 18px; flex: none; fill: var(--ink); }
.wtoast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtoast button { flex: none; padding: 9px 14px; border-radius: 100px; background: var(--ink); color: var(--bone); font-size: 0.74rem; letter-spacing: 0.06em; }

/* Шторка */
.wish { position: fixed; inset: 0; z-index: 1010; display: flex; justify-content: flex-end; pointer-events: none; }
.wish__overlay { position: absolute; inset: 0; background: rgba(6, 7, 9, 0.7); opacity: 0; transition: opacity 0.5s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.wish__panel {
  position: relative; width: min(520px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink-2); border-left: 1px solid var(--line); padding: clamp(24px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 18px;
  transform: translateX(100%); transition: transform 0.8s var(--ease);
}
.wish.is-open { pointer-events: auto; }
.wish.is-open .wish__overlay { opacity: 1; }
.wish.is-open .wish__panel { transform: none; }
.wish__grab { display: none; }
.wish__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wish__head .h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 12px; }
.wish__head sup { font-family: var(--sans); font-size: 0.9rem; color: var(--brass); vertical-align: super; }
.wish__empty { display: none; text-align: center; padding: 40px 10px; color: var(--mist); }
.wish__empty i { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--brass); margin-bottom: 16px; }
.wish__empty i svg { width: 30px; height: 30px; fill: none; }
.wish__empty p { font-family: var(--serif); font-size: 1.6rem; color: var(--bone); margin-bottom: 8px; }
.wish__empty small { font-size: 0.9rem; line-height: 1.55; display: block; max-width: 30em; margin: 0 auto; }
.wish.is-empty .wish__empty { display: block; }
.wish.is-empty .wish__list, .wish.is-empty .wish__msg, .wish.is-empty .wish__send, .wish.is-empty .wish__foot button { display: none; }
.wish__list { list-style: none; display: grid; gap: 8px; }
.wish__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); background: var(--ink); animation: wslide 0.5s var(--ease-out); }
@keyframes wslide { from { opacity: 0; transform: translateY(8px); } }
.wish__thumb { width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink-3) center/cover no-repeat; color: var(--brass); }
.wish__thumb svg { width: 20px; height: 20px; fill: currentColor; }
.wish__list small { display: block; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.wish__list b { display: block; font-weight: 500; font-size: 1rem; line-height: 1.3; }
.wish__list span { font-size: 0.8rem; color: var(--mist); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wish__list button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--mist); transition: color 0.3s, background 0.3s; }
.wish__list button:hover { color: var(--bone); background: var(--ink-3); }
.wish__list button svg { width: 15px; height: 15px; }
.wish__msghead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.wish__msghead label { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.wish__msghead button { font-size: 0.74rem; color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.wish__msg textarea {
  width: 100%; resize: vertical; min-height: 140px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 0;
  background: var(--ink); color: var(--bone); font: 0.92rem/1.55 var(--sans);
}
.wish__msg textarea:focus { outline: none; border-color: var(--brass); }
.wish__send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wsend {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; text-align: left;
  border: 1px solid var(--line-2); color: var(--bone); transition: border-color 0.3s, background 0.3s;
}
.wsend:hover { border-color: var(--brass); background: var(--ink-3); }
.wsend svg { width: 24px; height: 24px; flex: none; color: var(--brass); }
.wsend b { display: block; font-weight: 500; font-size: 0.95rem; }
.wsend small { display: block; font-size: 0.72rem; color: var(--mist); }
.wsend--wa { grid-column: 1 / -1; min-height: 72px; background: var(--brass); border-color: var(--brass); color: var(--ink); }
.wsend--wa svg, .wsend--wa small { color: var(--ink); }
.wsend--wa b { font-size: 1.08rem; }
.wsend--wa:hover { background: var(--brass-2); border-color: var(--brass-2); }
.wish__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.74rem; color: var(--mist-2); padding-bottom: 6px; }
.wish__foot button { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }

/* Заметка в форме заявки */
.wish-note { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; padding: 12px 14px; border: 1px solid rgba(184, 160, 126, 0.4); background: rgba(184, 160, 126, 0.08); font-size: 0.86rem; }
.wish-note[hidden] { display: none; }
.wish-note svg { width: 18px; height: 18px; flex: none; color: var(--brass); fill: currentColor; }
.wish-note span { flex: 1; }
.wish-note button { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; font-size: 0.8rem; }

@media (max-width: 1100px) {
  .wish { align-items: flex-end; }
  .wish__panel {
    width: 100%; height: auto; max-height: 92svh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%);
  }
  .wish__grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 2px auto 0; flex: none; }
  .wish__head .modal__close { width: 44px; height: 44px; }
  .wbtn { margin-left: 0; margin-right: 10px; }
}
@media (max-width: 860px) {
  .wpill { bottom: calc(78px + env(safe-area-inset-bottom)); left: 12px; height: 50px; padding: 0 8px 0 16px; }
  .wpill span { display: none; }
  .wpill b { min-width: 32px; height: 32px; }
  .wtoast { bottom: calc(146px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .wish__send { grid-template-columns: 1fr; }
  .wish__list li { grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 10px; }
  .wish__thumb { width: 48px; height: 48px; }
}

/* =========================================================
   Декоры EGGER: виды поверхностей, библиотека, подборки, просмотр
   ========================================================= */
.surf { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink-2); scroll-margin-top: 64px; }
.surf__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.surf__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 22px 22px 24px; border: 1px solid var(--line); background: var(--ink); border-radius: var(--radius);
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.surf__card:hover { border-color: rgba(184, 160, 126, 0.55); transform: translateY(-4px); }
.surf__sw { position: relative; height: 92px; width: 100%; margin-bottom: 22px; }
.surf__sw img { position: absolute; top: 0; width: 76px; height: 76px; object-fit: cover; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.7s var(--ease-out); }
.surf__sw img:nth-child(1) { left: 0; transform: rotate(-6deg); }
.surf__sw img:nth-child(2) { left: 46px; top: 10px; transform: rotate(3deg); }
.surf__sw img:nth-child(3) { left: 92px; transform: rotate(-2deg); }
.surf__card:hover .surf__sw img:nth-child(1) { transform: rotate(-10deg) translate(-4px, -2px); }
.surf__card:hover .surf__sw img:nth-child(3) { transform: rotate(4deg) translate(6px, -4px); }
.surf__card b { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.surf__card b sup { font-size: 0.5em; }
.surf__card small { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.surf__txt { margin-top: 10px; font-size: 0.86rem; line-height: 1.55; color: var(--mist); flex: 1; }
.surf__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); }
.surf__go svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.surf__card:hover .surf__go svg { transform: translateX(4px); }

.dklib { padding: clamp(80px, 10vw, 140px) 0; scroll-margin-top: 64px; }
.dklib__head { display: grid; grid-template-columns: 1fr minmax(0, 30em); gap: 20px 60px; align-items: end; margin-bottom: clamp(30px, 4vw, 50px); }
.dklib__bar {
  position: sticky; top: 134px; z-index: 30; transition: top 0.6s var(--ease-out); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 0; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad);
  background: rgba(12, 14, 17, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
body.hdr-hidden .dklib__bar { top: 64px; }
.dklib__tabs { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 24px; }
.dklib__tabs::-webkit-scrollbar { display: none; }
.dklib__tabs .chip { flex: none; height: 38px; padding: 0 16px; font-size: 0.62rem; display: inline-flex; align-items: center; gap: 8px; }
.dklib__tabs .chip small { font-size: 0.6rem; letter-spacing: 0.06em; opacity: 0.6; font-weight: 400; }
.dklib__search { flex: 0 1 300px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 100px; transition: border-color 0.3s; }
.dklib__search:focus-within { border-color: var(--brass); }
.dklib__search svg { width: 16px; height: 16px; flex: none; color: var(--mist); }
.dklib__search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 0.86rem; }
.dklib__search input::placeholder { color: var(--mist-2); }
.dklib__count { margin: 22px 0 18px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.dklib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px 14px; }
.dklib__empty { padding: 50px 0; color: var(--mist); text-align: center; }
.dklib__more { display: flex; justify-content: center; margin-top: 44px; }
.dklib__more .btn[hidden] { display: none; }
.dklib__note { margin-top: 50px; max-width: 52em; font-size: 0.76rem; line-height: 1.6; color: var(--mist-2); }

.dk { display: grid; gap: 9px; align-content: start; cursor: pointer; outline: 0; }
.dk[hidden], .dk.is-more { display: none; }
.dk__sw { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--c, var(--ink-3)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.dk__sw img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.dk:hover .dk__sw img, .dk:focus-visible .dk__sw img { transform: scale(1.07); }
.dk:focus-visible .dk__sw { outline: 2px solid var(--brass); outline-offset: 3px; }
.dk__neu { position: absolute; left: 8px; top: 8px; padding: 3px 7px; font-style: normal; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; background: var(--brass); color: var(--ink); }
.dk__cap { display: grid; gap: 1px; line-height: 1.3; }
.dk__cap b { font-weight: 500; font-size: 0.74rem; letter-spacing: 0.06em; }
.dk__cap span { font-size: 0.76rem; color: var(--mist); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dk > .wheart { top: 6px; right: 6px; width: 34px; height: 34px; opacity: 0; transition: opacity 0.3s, background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out); }
.dk > .wheart svg { width: 16px; height: 16px; }
.dk:hover > .wheart, .dk > .wheart.is-on, .dk:focus-within > .wheart { opacity: 1; }
.dk.is-wished .dk__sw { box-shadow: inset 0 0 0 2px var(--brass); }

.dkteaser { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 14px; }
.dkteaser .dk__cap span { -webkit-line-clamp: 1; }

/* Крупный просмотр декора */
.dkview { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; background: rgba(8, 9, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.dkview.is-open { opacity: 1; pointer-events: auto; }
.dkview__box { position: relative; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 340px); gap: 34px; align-items: center; width: min(860px, 100%); padding: 34px; background: var(--ink-2); border: 1px solid var(--line); transform: translateY(14px); transition: transform 0.6s var(--ease-out); }
.dkview.is-open .dkview__box { transform: none; }
.dkview__sw { aspect-ratio: 1; background: var(--c, var(--ink-3)) center/cover; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); }
.dkview__info { display: grid; gap: 8px; align-content: center; }
.dkview__code { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.dkview__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; }
.dkview__uses { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.dkview__uses li { font-size: 0.7rem; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--mist); }
.dkview__hint { font-size: 0.78rem; color: var(--mist-2); line-height: 1.5; }
.dkview__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dkview__btns .btn { height: 48px; padding: 0 20px; font-size: 0.66rem; }
.dkview__btns .wbtn--dk.is-on { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.dkview__btns .wbtn--dk svg { fill: none; }
.dkview__btns .wbtn--dk.is-on svg { fill: currentColor; }
.dkview__close, .dkview__nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--ink-2); transition: border-color 0.3s; }
.dkview__close:hover, .dkview__nav:hover { border-color: var(--brass); }
.dkview__close { top: -18px; right: -18px; }
.dkview__close svg, .dkview__nav svg { width: 16px; height: 16px; }
.dkview__nav { top: 50%; margin-top: -23px; }
.dkview__nav--prev { left: -23px; }
.dkview__nav--prev svg { transform: rotate(180deg); }
.dkview__nav--next { right: -23px; }

@media (max-width: 1200px) {
  .surf__grid { grid-template-columns: repeat(3, 1fr); }
  .dkteaser { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .surf__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px; }
  .surf__grid::-webkit-scrollbar { display: none; }
  .surf__card { flex: 0 0 78%; scroll-snap-align: start; }
  .dklib__head { grid-template-columns: 1fr; }
  .dklib__bar { top: 126px; }
  body.hdr-hidden .dklib__bar { top: 56px; }
  .dklib__search { flex: 1 1 100%; order: -1; }
  .dklib__grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .dk__cap b { font-size: 0.66rem; }
  .dk__cap span { font-size: 0.7rem; }
  .dk > .wheart { opacity: 1; width: 30px; height: 30px; top: 4px; right: 4px; }
  .dkteaser { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .dkview { place-items: end center; padding: 0; }
  .dkview__box { grid-template-columns: 1fr; gap: 18px; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92svh; overflow-y: auto; transform: translateY(40px); }
  .dkview__sw { aspect-ratio: 16 / 10; }
  .dkview__close { top: 26px; right: 26px; }
  .dkview__nav { top: auto; bottom: auto; margin: 0; }
  .dkview__nav--prev { left: 26px; top: calc(18px + (100vw - 36px) * 0.625 - 58px); }
  .dkview__nav--next { right: 26px; left: auto; top: calc(18px + (100vw - 36px) * 0.625 - 58px); }
  .dkview__btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Студия: образцы декоров и окно «Alle Dekore» ---------- */
.sw--more i { display: grid; place-items: center; background: transparent; border: 1px dashed rgba(184, 160, 126, 0.6); box-shadow: none; color: var(--brass); }
.sw--more i svg { width: 20px; height: 20px; }
.sw--more span { color: var(--brass-2); }
.sw--more:hover i { background: rgba(184, 160, 126, 0.12); }
.sw span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.cg__head em { text-align: right; line-height: 1.25; }

.dkpick { position: fixed; inset: 0; z-index: 1300; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 20px; background: rgba(8, 9, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.dkpick.is-open { opacity: 1; pointer-events: auto; }
.dkpick__box { display: flex; flex-direction: column; gap: 14px; width: min(980px, 100%); height: min(760px, 100%); padding: 24px; background: var(--ink-2); border: 1px solid var(--line); transform: translateY(14px); transition: transform 0.5s var(--ease-out); }
.dkpick.is-open .dkpick__box { transform: none; }
.dkpick__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dkpick__head small { display: block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.dkpick__head b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; }
.dkpick__x { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color 0.3s; }
.dkpick__x:hover { border-color: var(--brass); }
.dkpick__x svg { width: 16px; height: 16px; }
.dkpick__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: none; }
.dkpick__tabs::-webkit-scrollbar { display: none; }
.dkpick__tabs .chip { flex: none; height: 36px; padding: 0 14px; font-size: 0.6rem; display: inline-flex; align-items: center; gap: 7px; }
.dkpick__tabs .chip small { font-size: 0.58rem; opacity: 0.6; letter-spacing: 0.05em; font-weight: 400; }
.dkpick__search { flex: none; max-width: 420px; order: 0; }
.dkpick__grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; align-content: start; padding: 4px 4px 4px 0; }
.dkpick__it { display: grid; gap: 6px; align-content: start; text-align: left; min-width: 0; }
.dkpick__sw { position: relative; display: block; aspect-ratio: 1; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.dkpick__sw img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.dkpick__it:hover .dkpick__sw img { transform: scale(1.07); }
.dkpick__it.is-on .dkpick__sw { outline: 2px solid var(--brass); outline-offset: 3px; }
.dkpick__it b { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; }
.dkpick__it small { font-size: 0.72rem; line-height: 1.3; color: var(--mist); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dkpick__none { color: var(--mist); padding: 40px 0; grid-column: 1 / -1; text-align: center; }
@media (max-width: 860px) {
  .dkpick { padding: 0; place-items: end center; }
  .dkpick__box { height: 92svh; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .dkpick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .dkpick__search { max-width: none; order: 0; flex: none; }
}
