/* ============================================================
   FASKA v2 — «Кобальт и дуб»
   Фирменный синий #1F5BFF живёт и в интерфейсе, и внутри
   фотографий (кобальтовые стены, мебель), против тёплого дуба.
   Срезанный угол (.cut) — «фаска», визуальное имя бренда.
   Предыдущая версия: versions/v1-blue-2026-10-06/
   ============================================================ */

:root {
  --cobalt: #1F5BFF;
  --cobalt-deep: #1544D9;
  --ink: #0A1430;
  --ink-2: #33415E;
  --muted: #5E6B85;
  --ice: #F2F5FB;
  --ice-2: #E4EAF6;
  --sky: #A9C2FF;
  --line: rgba(10, 20, 48, 0.12);
  --warn: #F2A33A;
  --sale: #E2483D;

  --disp: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hdr: 76px;
  --gutter: 32px;
  --deep: #0B1A55;                 /* фон под фото и тёмные подложки */
  --cobalt-a: rgba(31, 91, 255, 0.16);
}
/* Цветовые темы на выбор (?theme=navy|green): меняются только переменные */
[data-theme="navy"] {
  --cobalt: #1A3270;
  --cobalt-deep: #10234F;
  --ink: #071028;
  --sky: #9FB4E8;
  --ice: #F2F4F8;
  --ice-2: #E2E7F0;
  --deep: #060D24;
  --cobalt-a: rgba(26, 50, 112, 0.16);
}
[data-theme="green"] {
  --cobalt: #1F5C45;
  --cobalt-deep: #174A37;
  --ink: #0C1F17;
  --ink-2: #2E4239;
  --muted: #5C6E66;
  --sky: #A9D8BF;
  --ice: #F1F6F3;
  --ice-2: #E0ECE5;
  --deep: #0B231A;
  --line: rgba(12, 31, 23, 0.12);
  --cobalt-a: rgba(31, 92, 69, 0.16);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: var(--hdr); }

/* Фаска — срезанный угол, как у кромки доски */
.cut {
  clip-path: polygon(
    var(--ch, 10px) 0, 100% 0,
    100% calc(100% - var(--ch, 10px)),
    calc(100% - var(--ch, 10px)) 100%,
    0 100%, 0 var(--ch, 10px)
  );
}

/* ---------- Типографика ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 12.5px/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; flex: 0 0 auto; }
.eyebrow--light { color: rgba(255, 255, 255, 0.92); }
.eyebrow--sky { color: var(--sky); }

.sec-title {
  font: 700 clamp(34px, 4.7vw, 72px)/1.02 var(--disp);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.sec-title--light, .sec--ink .sec-title { color: #fff; }
.sec-title--sm { font-size: clamp(28px, 2.8vw, 40px); }

.note { font-size: 13px; color: var(--muted); }
.note--light { color: rgba(255, 255, 255, 0.78); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--cobalt);
  white-space: nowrap;
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  border: 0;
  padding: 16px 28px;
  font: 600 16px/1 var(--body);
  background: var(--cobalt);
  color: #fff;
  --ch: 12px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn:hover { background: var(--cobalt-deep); }
.btn:active { transform: translateY(1px); }
.btn--white { background: #fff; color: var(--cobalt); }
.btn--white:hover { background: var(--ice-2); }
.btn--glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.26); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1B2A55; }
.btn--ghost { background: var(--ice); color: var(--ink); }
.btn--ghost:hover { background: var(--ice-2); }
.btn--lg { padding: 20px 36px; font-size: 18px; --ch: 14px; }
.btn--sm { padding: 11px 16px; font-size: 14px; --ch: 8px; }
.btn--wide { width: 100%; }

/* ---------- Шапка ---------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  color: #fff;
  background: var(--cobalt);
  box-shadow: 0 10px 30px rgba(5, 12, 40, 0.18);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hdr.at-top { background: transparent; box-shadow: none; }
.hdr-in { display: flex; align-items: center; gap: 40px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.logo-word { font: 800 21px/1 var(--disp); letter-spacing: 0.12em; color: #fff; }
.hdr-nav { display: flex; gap: 30px; }
.hdr-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 0;
  transition: color 0.2s;
}
.hdr-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.hdr-nav a:hover { color: #fff; }
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-cart {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 12px 18px;
  background: #fff;
  color: var(--cobalt);
  font: 600 14px/1 var(--body);
  --ch: 10px;
  transition: background 0.2s;
}
.hdr-cart:hover { background: var(--ice-2); }
.cart-badge {
  display: none;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}
.cart-badge.on { display: inline-flex; }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-tools .hdr-cart { margin-left: 0; }
.hdr-search {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 230px; padding: 11px 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 500 14px/1 var(--body);
  --ch: 10px;
  transition: background 0.2s;
}
.hdr-search:hover { background: rgba(255, 255, 255, 0.26); }
.hdr.at-top .hdr-search { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hdr-search kbd { margin-left: auto; padding: 3px 7px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px; font: 600 11px var(--body); opacity: 0.8; }
/* панель поиска */
.srch { position: fixed; inset: 0; z-index: 85; }
.srch-scrim { position: absolute; inset: 0; background: rgba(5, 10, 30, 0.5); opacity: 0; transition: opacity 0.3s; }
.srch.open .srch-scrim { opacity: 1; }
.srch-panel {
  position: relative;
  max-height: 100dvh; overflow-y: auto;
  padding: 22px 0 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(5, 10, 30, 0.3);
  transform: translateY(-104%);
  transition: transform 0.45s var(--ease);
}
.srch.open .srch-panel { transform: none; }
.srch-bar { display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; background: var(--ice); color: var(--cobalt); --ch: 14px; }
.srch-bar input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 18px 0;
  font: 600 20px var(--body); color: var(--ink);
}
.srch-bar input::-webkit-search-cancel-button { display: none; }
.srch-x { border: 0; background: none; padding: 6px 10px; font-size: 30px; line-height: 1; color: var(--muted); }
.srch-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.srch-quick[hidden] { display: none; }
.srch-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.sres {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px;
  background: var(--ice);
  --ch: 10px;
  opacity: 0; transform: translateY(8px);
  animation: sres-in 0.4s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
  transition: background 0.2s;
}
.sres:hover, .sres:focus-visible { background: var(--ice-2); }
@keyframes sres-in { to { opacity: 1; transform: none; } }
.sres-img {
  width: 56px; height: 56px; flex: 0 0 auto;
  background: var(--ice-2) center / cover no-repeat;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.sres-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sres-txt b, .sres-txt span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sres-txt b { font-size: 15px; }
.sres-txt span { font-size: 12.5px; color: var(--muted); }
.sres mark { background: var(--cobalt-a); color: inherit; }
.sres-price { font-size: 14px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.srch-all { margin-top: 18px; }
.srch-all[hidden] { display: none; }
.srch-empty { grid-column: 1 / -1; padding: 10px 0; color: var(--muted); }
.srch-on, .srch-on body { overflow: hidden; }

/* Внутренние страницы — под фиксированной шапкой */
body:not(.is-home) main { padding-top: var(--hdr); }

/* ---------- Виды (роутер) ---------- */
.view { display: none; }
.view.active { display: block; }

/* ============================================================
   HERO — одна комната, пять полов
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; animation: kb 16s var(--ease) both; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-img.active { opacity: 1; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 14, 50, 0.45) 0%, rgba(6, 14, 50, 0) 22%),
    linear-gradient(90deg, rgba(6, 14, 60, 0.55) 0%, rgba(6, 14, 60, 0.12) 46%, rgba(6, 14, 60, 0) 70%),
    linear-gradient(0deg, rgba(4, 10, 30, 0.6) 0%, rgba(4, 10, 30, 0) 34%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(130px, 19vh, 210px);
}
.hero-title {
  font: 800 clamp(58px, 9.6vw, 172px)/0.88 var(--disp);
  letter-spacing: -0.045em;
  margin: 4px 0 30px;
  text-shadow: 0 6px 40px rgba(4, 12, 60, 0.25);
}
.hero-lead {
  max-width: 430px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.hero-picker {
  position: absolute;
  z-index: 3;
  left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  bottom: clamp(20px, 4vh, 40px);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px 16px 14px;
  background: rgba(8, 18, 52, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  --ch: 18px;
}
.picker-chips { display: flex; gap: 6px; }
.pchip {
  position: relative;
  width: 80px;
  padding: 4px 0 10px;
  border: 0;
  background: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pchip-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pchip:hover .pchip-img { transform: translateY(-3px); }
.pchip.active .pchip-img {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #fff, 0 10px 26px rgba(0, 0, 0, 0.4);
}
.pchip-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.72;
  transition: opacity 0.3s;
}
.pchip.active .pchip-label { opacity: 1; }
.pchip-bar {
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  opacity: 0;
}
.pchip.active .pchip-bar { opacity: 1; }
.pchip-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: #fff;
}
.pchip.active.playing .pchip-bar::after { animation: fill var(--dur, 4.5s) linear forwards; }
.picker-link {
  display: flex;
  flex-direction: column;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  min-width: 140px;
}
.picker-count { font: 800 30px/1 var(--disp); letter-spacing: -0.03em; }
.picker-cta { margin-top: 8px; font-size: 13px; opacity: 0.85; transition: opacity 0.2s; }
.picker-link:hover .picker-cta { opacity: 1; text-decoration: underline; }

/* ---------- Бегущая строка ---------- */
.ticker { background: var(--cobalt); color: #fff; overflow: hidden; padding: 24px 0; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 42s linear infinite;
}
.ticker-track span {
  display: flex;
  align-items: center;
  font: 700 clamp(26px, 3.4vw, 50px)/1 var(--disp);
  letter-spacing: -0.025em;
  white-space: nowrap;
  padding-right: 52px;
}
.ticker-track span::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 52px;
  background: var(--sky);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Секции ---------- */
.sec { padding: clamp(84px, 11vw, 160px) 0; background: #fff; }
.sec--ice { background: var(--ice); }
.sec--ink { background: var(--ink); color: #fff; }
.sec--cobalt { background: var(--cobalt); color: #fff; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

/* ---------- Манифест ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: center;
}
.manifesto-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; --ch: 52px; }
.manifesto-media img { width: 100%; height: 100%; object-fit: cover; }
.manifesto-media figcaption {
  position: absolute;
  left: 22px; bottom: 22px;
  padding: 9px 15px;
  background: rgba(8, 18, 52, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.manifesto-text {
  max-width: 560px;
  margin: 28px 0 44px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: var(--ink-2);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 24px clamp(28px, 4vw, 64px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}
.stat b {
  display: block;
  font: 800 clamp(38px, 4.4vw, 66px)/1 var(--disp);
  letter-spacing: -0.04em;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Бенто категорий ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 20vw, 300px);
  grid-auto-flow: dense;
  gap: 16px;
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  --ch: 30px;
}
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tile:hover img { transform: scale(1.07); }
/* появление: фото «наезжает» из лёгкого приближения; большая плитка тихо дышит */
.js .tile.in img { animation: kb 1.6s var(--ease) backwards; animation-delay: var(--d, 0s); }
.js .tile--big.in img { animation: kb 1.6s var(--ease) backwards, breathe 16s ease-in-out 1.6s infinite alternate; }
.tile:hover img, .js .tile--big.in:hover img { animation-play-state: paused; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }
/* блик по плитке при наведении */
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
}
.tile:hover::before { transform: translateX(120%); transition: transform 0.9s var(--ease); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 12, 38, 0.78) 0%, rgba(5, 12, 38, 0) 48%);
  pointer-events: none;
}
.tile-body {
  position: absolute;
  z-index: 2;
  left: 26px; right: 22px; bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.tile-name { display: block; font: 700 clamp(20px, 1.9vw, 30px)/1.05 var(--disp); letter-spacing: -0.025em; }
.tile--big .tile-name { font-size: clamp(32px, 3.4vw, 56px); }
.tile-count { display: block; margin-top: 8px; font-size: 14px; opacity: 0.88; font-variant-numeric: tabular-nums; }
.tile-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.tile:hover .tile-arrow { background: var(--cobalt); transform: rotate(-45deg); }

/* ---------- Лукбук ---------- */
.looks-nav { display: flex; gap: 10px; }
.round-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.round-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.looks-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))) 6px;
  scroll-padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  cursor: grab;
}
.looks-track::-webkit-scrollbar { display: none; }
.looks-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.look {
  position: relative;
  flex: 0 0 clamp(270px, 27vw, 390px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  --ch: 30px;
}
.look img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  filter: saturate(0.82) brightness(0.86);
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
}
.look:hover img { transform: scale(1.05); filter: none; }
/* «живая» карусель: активная комната медленно наезжает, подпись въезжает следом */
.look.is-active img { filter: none; transform: scale(1.09); transition: transform 7s cubic-bezier(0.25, 0.4, 0.3, 1), filter 0.6s var(--ease); }
.look-cap b, .look-cap span { transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.look:not(.is-active) .look-cap b { transform: translateY(8px); opacity: 0.85; }
.look:not(.is-active) .look-cap span { transform: translateY(12px); opacity: 0.6; }
.look.is-active .look-cap span { transition-delay: 0.08s; }
.look-go {
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 14px;
  background: #fff; color: var(--cobalt);
  font: 700 13px var(--body);
  --ch: 8px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.15s, transform 0.5s var(--ease) 0.15s;
}
.look.is-active .look-go { opacity: 1; transform: none; }
.looks-dots { display: flex; gap: 8px; margin-top: 22px; }
.looks-dots button {
  position: relative; flex: 0 0 44px; height: 14px;
  border: 0; background: none; padding: 0;
}
.looks-dots button::before, .looks-dots i {
  content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.looks-dots i { right: auto; width: 0; background: #fff; }
.looks-dots button.on i { width: 100%; transition: width 0.3s var(--ease); }
.looks-dots.playing button.on i { width: 0; animation: fill var(--dur, 5s) linear forwards; }
.look-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 70px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(0deg, rgba(5, 10, 32, 0.85), rgba(5, 10, 32, 0));
}
.look-cap b { font: 700 24px/1.1 var(--disp); letter-spacing: -0.02em; }
.look-cap span { font-size: 14px; opacity: 0.88; }

/* ---------- Карточки товаров ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.dcard {
  display: flex;
  flex-direction: column;
  background: var(--ice);
  cursor: pointer;
  --ch: 20px;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.dcard:hover { transform: translateY(-6px); background: var(--ice-2); }
.dcard-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice-2); }
.dcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.5s var(--ease); }
/* пока фото грузится — бегущий блик, а не пустая серая карточка */
.js .dcard-img { background: linear-gradient(100deg, var(--ice-2) 35%, #F4F7FD 50%, var(--ice-2) 65%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.js .dcard-img:has(img.ok), .js .dcard-img:has(.dcard-noimg) { animation: none; background: var(--ice-2); }
.js .dcard-img img:not(.ok) { opacity: 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
#cat-more { touch-action: manipulation; }
.dcard:hover .dcard-img img { transform: scale(1.07); }
.dcard-noimg { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.dcard-chips { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(10, 20, 48, 0.82);
  color: #fff;
  --ch: 6px;
}
.chip--order { background: var(--warn); color: #241500; }
.chip--sale { background: var(--sale); }
.chip--disc { background: var(--cobalt); }
s.old { color: var(--muted); font-weight: 500; font-size: 15px; text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.pprice s.old { font-size: clamp(18px, 1.6vw, 22px); }
.deal-price s.old { font-size: 13px; margin-left: 4px; }
.pdisc { margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
/* AR-примерка на карточке товара (сама примерка — css/ar.css, грузится по кнопке) */
.par-btn { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.par-btn svg { flex: 0 0 auto; }
.par-btn[disabled] { opacity: 0.7; cursor: progress; }
.par-note { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.dcard-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.dcard-name { font: 600 17px/1.25 var(--disp); letter-spacing: -0.015em; }
.dcard-coll { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 12px; }
.dcard-price > * { white-space: nowrap; }
.dcard-price b { font: 800 23px/1 var(--disp); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dcard-price span { font-size: 13px; color: var(--muted); }
.ask { font-size: 15px !important; }
.dcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.dcard-pack { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Цены и доставка ---------- */
.deliv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.deliv-text {
  max-width: 520px;
  margin: 28px 0 30px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 15px;
  --ch: 10px;
}
.city b { font-weight: 700; }
.city span { font-size: 13px; opacity: 0.8; }
.tks { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.deliv-media { aspect-ratio: 16 / 10; overflow: hidden; --ch: 44px; }
.deliv-media img { width: 100%; height: 100%; object-fit: cover; }
.deals-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(60px, 7vw, 100px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.deals-head h3 { font: 700 clamp(22px, 2vw, 28px)/1.1 var(--disp); letter-spacing: -0.02em; }
.deals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.deal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  --ch: 14px;
  transition: transform 0.3s var(--ease);
}
.deal:hover { transform: translateY(-4px); }
.deal img { width: 78px; height: 78px; object-fit: cover; flex: 0 0 auto; }
.deal-info { min-width: 0; }
.deal-info > span { display: block; }
.deal-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.deal-brand { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-price { margin-top: 4px; font: 800 19px/1.1 var(--disp); color: var(--cobalt); letter-spacing: -0.02em; }
.deal-stock { font-size: 12px; color: var(--muted); }

/* ---------- Калькулятор ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.calc-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; --ch: 48px; }
.calc-media img { width: 100%; height: 100%; object-fit: cover; }
.calc-badge {
  position: absolute;
  left: 22px; bottom: 22px;
  padding: 13px 18px;
  background: var(--cobalt);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  --ch: 10px;
}
.calc-lead { max-width: 520px; margin: 22px 0 32px; font-size: 18px; color: var(--ink-2); }
.calc-card { background: #fff; padding: clamp(24px, 3vw, 40px); --ch: 30px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--wide { grid-column: span 2; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.inp {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--ice);
  padding: 15px 16px;
  font: 500 16px/1.3 var(--body);
  color: var(--ink);
}
select.inp {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F5BFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.inp:focus { outline: 2px solid var(--cobalt); outline-offset: 0; }
.calc-result {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.calc-packs {
  font: 800 clamp(66px, 8vw, 116px)/0.85 var(--disp);
  letter-spacing: -0.05em;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}
.calc-packs small {
  display: block;
  margin-top: 12px;
  font: 600 15px/1 var(--body);
  letter-spacing: 0;
  color: var(--muted);
}
.calc-line { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-total {
  margin-top: 10px;
  font: 800 clamp(22px, 2.2vw, 30px)/1.1 var(--disp);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Шаги ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.step-media { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 22px; --ch: 26px; }
.step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.step:hover .step-media img { transform: scale(1.05); }
.js .step.in .step-media img { animation: kb 1.4s var(--ease) backwards; animation-delay: var(--d, 0s); }
.js .step.in .step-num { animation: num-in 0.7s var(--ease) backwards; animation-delay: calc(var(--d, 0s) + 0.25s); }
@keyframes num-in { from { opacity: 0; transform: translateY(14px); } }
.step-num {
  position: absolute;
  left: 18px; top: 14px;
  font: 800 56px/1 var(--disp);
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.step h3 { font: 700 21px/1.2 var(--disp); letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Шоурум и контакты ---------- */
.showroom {
  position: relative;
  min-height: clamp(580px, 64vw, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.showroom-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showroom-in { position: relative; z-index: 2; width: 100%; display: flex; justify-content: flex-end; padding-block: 60px; }
.contact-card { width: 100%; max-width: 520px; background: #fff; padding: clamp(28px, 3.4vw, 48px); --ch: 34px; }
.contact-list { display: grid; gap: 16px; margin: 26px 0 30px; }
.contact-list dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin-top: 4px; font-size: 18px; font-weight: 600; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Финальный призыв ---------- */
.finale {
  position: relative;
  height: clamp(480px, 58vw, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
}
.finale-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 80, 0.62) 0%, rgba(8, 20, 80, 0.12) 62%, rgba(8, 20, 80, 0) 100%);
}
.finale-in { position: relative; z-index: 2; width: 100%; }
.finale-title {
  font: 800 clamp(58px, 9.6vw, 160px)/0.88 var(--disp);
  letter-spacing: -0.045em;
  color: #fff;
  margin-bottom: 38px;
}

/* ---------- Подвал ---------- */
.ftr { background: var(--ink); color: rgba(255, 255, 255, 0.74); padding: clamp(64px, 8vw, 110px) 0 30px; overflow: hidden; }
.ftr-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.ftr-brand p { margin-top: 18px; font-size: 15px; line-height: 1.6; }
.ftr-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 56px; font-size: 15px; }
.ftr-links a { transition: color 0.2s; }
.ftr-links a:hover { color: #fff; }
.ftr-word {
  margin: clamp(48px, 7vw, 96px) 0 26px;
  font: 800 clamp(84px, 21.5vw, 300px)/0.8 var(--disp);
  letter-spacing: -0.06em;
  color: var(--cobalt);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.ftr-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.cat-hero {
  position: relative;
  height: clamp(300px, 34vw, 440px);
  display: flex;
  align-items: flex-end;
  background-color: var(--deep);
  background-size: cover;
  background-position: center 60%;
  color: #fff;
  transition: background-image 0.4s;
}
.cat-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 12, 42, 0.78) 0%, rgba(5, 12, 42, 0.18) 72%);
}
.cat-hero-in { position: relative; z-index: 2; width: 100%; padding-bottom: 42px; }
.cat-hero h1 { font: 800 clamp(42px, 6vw, 96px)/0.95 var(--disp); letter-spacing: -0.04em; }
.cat-hero-count { margin-top: 14px; font-size: 17px; opacity: 0.9; }
.cat-pad { padding-top: 30px; padding-bottom: 110px; }
.toolbar-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
/* синяя плашка переезжает под выбранную категорию */
.tabs-ink {
  position: absolute; left: 0; top: 0; z-index: 0;
  background: var(--cobalt);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease);
  pointer-events: none;
}
.toolbar-tabs .tchip { position: relative; z-index: 1; }
.toolbar-tabs.has-ink .tchip.active { background: transparent; transition: background 0s 0.3s, color 0.3s; }
.tchip {
  padding: 10px 16px;
  border: 0;
  background: var(--ice);
  color: var(--ink);
  font: 600 14px/1.2 var(--body);
  --ch: 8px;
  transition: background 0.2s, color 0.2s;
}
.tchip:hover { background: var(--ice-2); }
.tchip.active { background: var(--cobalt); color: #fff; }
.tchip--lg { padding: 13px 20px; font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 32px; }
.search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--ice);
  color: var(--muted);
  --ch: 10px;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--cobalt); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 15px 0;
  font: 500 15px var(--body);
  color: var(--ink);
}
.tone-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inp--sm { width: auto; padding-top: 13px; padding-bottom: 13px; font-size: 14px; }
.more-wrap { display: flex; justify-content: center; margin-top: 44px; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); font-size: 17px; }
.empty .link-arrow { margin-left: 6px; border: 0; background: none; font-size: 17px; }

/* ============================================================
   ТОВАР
   ============================================================ */
.pgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
  padding: 48px 0 40px;
}
.pview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--ice);
  --ch: 34px;
}
/* две панели вида — «Текстура» и «В интерьере» — сменяются наплывом */
.pv-pane {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), visibility 0s 0.5s;
}
.pv-pane.active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
/* образец декора «на столе»: тень, лёгкий наклон за курсором */
.pv-tex {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 30%, #fff 0%, var(--ice) 55%, var(--ice-2) 100%);
  container-type: size;
}
.pv-sample {
  position: relative;
  display: block;
  padding: 0; border: 0; background: none;
  cursor: zoom-in;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 26px 34px rgba(10, 20, 48, 0.28)) drop-shadow(0 4px 8px rgba(10, 20, 48, 0.12));
}
.pv-sample img {
  display: block;
  max-width: 84cqw;
  max-height: 76cqh;
  width: auto; height: auto;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.pv-hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2); font-size: 12px; font-weight: 600;
  transform: translateX(-50%);
  border-radius: 20px;
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.pv-tex:hover .pv-hint { opacity: 1; }
.pv-tags { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; max-width: 55%; pointer-events: none; }
.chip--glass { background: rgba(10, 20, 48, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pv-ruler {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: flex; flex-direction: column; gap: 4px;
  color: #fff; font: 700 12px var(--body);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.pv-ruler[hidden] { display: none; }
.pv-ruler i { display: block; height: 8px; border: 2px solid #fff; border-top: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.pv-room { cursor: zoom-in; }
.pv-inset {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  width: 36%; max-width: 230px;
  padding: 0; border: 0; overflow: hidden;
  background: #fff; text-align: left;
  --ch: 12px;
  box-shadow: 0 14px 40px rgba(5, 12, 40, 0.3);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.pv-inset.show { opacity: 1; transform: none; }
.pv-inset img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.8s var(--ease); }
.pv-inset:hover img { transform: scale(1.06); }
.pv-inset span { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; font: 700 13px var(--body); }
.pv-inset b { color: var(--cobalt); transition: transform 0.3s var(--ease); }
.pv-inset:hover b { transform: translateX(4px); }
.pv-room { background: var(--ice) center / cover no-repeat; }
.pv-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 60%;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.pv-room.drawn .pv-canvas { opacity: 1; }
.pv-wait {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-weight: 600;
}
.pv-wait[hidden] { display: none; }
.pv-spin { width: 18px; height: 18px; border: 2px solid var(--ice-2); border-top-color: var(--cobalt); border-radius: 50%; animation: spin 0.8s linear infinite; }
.pv-cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: flex; flex-direction: column; gap: 2px;
  max-width: 70%; padding: 10px 14px;
  background: rgba(10, 20, 48, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82); font-size: 12px; line-height: 1.3;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease) 0.15s, transform 0.5s var(--ease) 0.15s;
}
.pv-cap b { color: #fff; font-size: 14px; }
.pv-cap:empty { display: none; }
.pv-room.drawn .pv-cap { opacity: 1; transform: none; }
.pv-ar {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 0;
  background: #fff; color: var(--cobalt);
  font: 700 14px var(--body);
  --ch: 10px;
  box-shadow: 0 10px 30px rgba(5, 12, 40, 0.25);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.pv-ar:hover { background: var(--cobalt); color: #fff; transform: translateY(-2px); }
.pv-ar[disabled] { opacity: 0.7; cursor: progress; }
/* миниатюры вида: текстура и интерьер */
.pthumbs { display: flex; gap: 10px; margin-top: 14px; }
.pthumb {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 0; background: var(--ice);
  font: 600 14px var(--body); color: var(--ink-2);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.pthumb-img {
  width: 52px; height: 40px; flex: 0 0 auto;
  background: var(--ice-2) center / cover no-repeat;
  --ch: 6px;
  transition: transform 0.4s var(--ease);
}
.pthumb:hover { background: var(--ice-2); }
.pthumb:hover .pthumb-img { transform: scale(1.06); }
.pthumb.active { background: var(--ink); color: #fff; }
.schemes { margin-top: 22px; }
.schemes[hidden] { display: none; }
.schemes-title { margin-bottom: 10px; font: 700 12px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.schemes-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.schemes-list::-webkit-scrollbar { display: none; }
.scheme {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 108px; padding: 12px 10px 11px;
  border: 0; background: var(--ice); color: var(--ink-2);
  font: 600 12.5px/1.2 var(--body);
  --ch: 10px;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.scheme svg { transition: transform 0.5s var(--ease); }
.scheme:hover { background: var(--ice-2); transform: translateY(-2px); }
.scheme:hover svg { transform: rotate(-8deg) scale(1.1); }
.scheme.active { background: var(--cobalt); color: #fff; }
/* крупный просмотр фото */
.lb {
  position: fixed; inset: 0; z-index: 96;
  background: rgba(6, 10, 26, 0.94);
  opacity: 0; transition: opacity 0.3s;
  touch-action: none;
}
.lb.show { opacity: 1; }
.lb-stage { position: absolute; inset: 56px 12px 64px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.lb.zoomed .lb-stage { cursor: grab; }
.lb-img { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  color: rgba(255, 255, 255, 0.8); font-size: 14px;
}
.lb-cap { color: #fff; font-weight: 700; }
.lb-note { flex: 1; color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.lb-count { font-variant-numeric: tabular-nums; }
.lb-x { position: absolute; top: 8px; right: 14px; border: 0; background: none; color: #fff; font-size: 38px; line-height: 1; padding: 4px 8px; }
.lb-nav {
  position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 30px; line-height: 1;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.18); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
@media (max-width: 700px) {
  .lb-nav { display: none; }
  .lb-note { display: none; }
  .lb-bar { padding: 0 16px; }
}

/* окно-пояснение (AR в тестовом режиме) */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(5, 10, 30, 0.55);
  opacity: 0; transition: opacity 0.3s;
}
.sheet-wrap.show { opacity: 1; }
.sheet {
  position: relative; width: min(470px, 100%);
  padding: 30px 28px 26px;
  background: #fff;
  --ch: 22px;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.45s var(--ease);
}
.sheet-wrap.show .sheet { transform: none; }
.sheet h3 { margin: 16px 0 10px; font: 700 24px/1.15 var(--disp); letter-spacing: -0.02em; }
.sheet p { margin-bottom: 10px; color: var(--ink-2); }
.sheet-ic { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: var(--ice); color: var(--cobalt); --ch: 10px; }
.sheet-ic svg { width: 26px; height: 26px; }
.sheet-x { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); }
.sheet-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sheet-btns .btn { white-space: normal; text-align: left; line-height: 1.25; }
.crumbs { margin-bottom: 18px; font-size: 14px; }
.crumbs a { color: var(--cobalt); font-weight: 700; }
.pinfo h1 { font: 800 clamp(30px, 3.4vw, 50px)/1.02 var(--disp); letter-spacing: -0.035em; }
.pinfo .pcoll { margin: 12px 0 18px; color: var(--muted); }
.pinfo .pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.pinfo .pchips .chip { padding: 7px 12px; font-size: 12px; }
.pprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pprice b { font: 800 clamp(38px, 3.8vw, 56px)/1 var(--disp); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pprice span { color: var(--muted); }
.psave {
  display: inline-block;
  margin-bottom: 28px;
  padding: 10px 16px;
  background: var(--cobalt);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  --ch: 8px;
}
.psave--order { background: var(--warn); color: #241500; }
.psave--sale { background: var(--sale); }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.specs td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs td:first-child { width: 46%; color: var(--muted); }
.specs td:last-child { font-weight: 600; }
.pcalc { margin-bottom: 20px; padding: 24px; background: var(--ice); --ch: 18px; }
.pcalc-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.pcalc-row .field { flex: 1; min-width: 140px; }
.pcalc .inp { background-color: #fff; }
.pgrid > div:first-child { position: sticky; top: calc(var(--hdr) + 24px); }
.pcalc-out { margin-top: 16px; font-size: 16px; font-variant-numeric: tabular-nums; }
.pcalc-out b { color: var(--cobalt); }
.pbuy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.similar { padding: 40px 0 110px; }
.similar h2 { margin-bottom: 28px; font: 700 clamp(26px, 2.6vw, 38px)/1.1 var(--disp); letter-spacing: -0.025em; }

/* ============================================================
   КОРЗИНА, ТОСТ
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(5, 10, 30, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(440px, 94vw);
  display: flex; flex-direction: column;
  background: #fff;
  transform: translateX(105%);
  transition: transform 0.4s var(--ease);
  box-shadow: -30px 0 70px rgba(5, 10, 30, 0.25);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font: 700 22px var(--disp); letter-spacing: -0.02em; }
.drawer-close { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); padding: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 26px; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-swatch { width: 64px; height: 48px; flex: 0 0 auto; background-size: cover; background-position: center; --ch: 8px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; font-size: 14px; }
.ci-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ci-right { text-align: right; }
.ci-price { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; }
.stepper button {
  width: 28px; height: 28px;
  border: 0; background: var(--ice);
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--ice-2); }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.ci-rm { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 4px; }
.ci-rm:hover { color: var(--sale); }
.drawer-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font: 800 20px var(--disp); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.drawer-foot .note { margin-top: 12px; }
.cart-empty { padding: 50px 0; text-align: center; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  max-width: 92vw;
  padding: 14px 22px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500; text-align: center;
  transform: translate(-50%, 90px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  --ch: 10px;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Живой пол в герое ---------- */
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 60%;
  opacity: 0; transition: opacity 0.9s var(--ease);
}
.hero-media.live .hero-canvas { opacity: 1; }
.hero-now {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; padding: 10px 16px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font-size: 14px;
  --ch: 10px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.25s;
}
.hero-now[hidden] { display: none; }
.hero-now:hover { background: rgba(255, 255, 255, 0.24); }
.hero-now span { opacity: 0.75; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-now em { font-style: normal; font-weight: 800; }
.hero-now i { font-style: normal; transition: transform 0.3s var(--ease); }
.hero-now:hover i { transform: translateX(4px); }

/* ---------- Доверие в блоке цен ---------- */
.trust { list-style: none; display: grid; gap: 10px; margin: 0 0 26px; }
.trust li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, 0.92); }
.trust li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Анатомия ламината ---------- */
.anatomy { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.anatomy-pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 90px 0; }
.anatomy-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.anatomy-list { list-style: none; counter-reset: an; display: grid; gap: 6px; margin-top: 30px; }
.anatomy-list li {
  counter-increment: an;
  position: relative; padding: 12px 0 12px 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.45s var(--ease);
}
.anatomy-list li::before {
  content: counter(an, decimal-leading-zero);
  position: absolute; left: 0; top: 13px;
  font: 700 13px var(--body); letter-spacing: 0.08em;
  color: var(--sky);
}
.anatomy-list b { display: block; font: 700 19px/1.25 var(--disp); letter-spacing: -0.01em; }
.anatomy-list span { display: block; max-height: 0; overflow: hidden; font-size: 15px; line-height: 1.5; transition: max-height 0.6s var(--ease), margin 0.6s var(--ease); }
.anatomy-list li.on { color: #fff; }
.anatomy-list li.on span { max-height: 120px; margin-top: 6px; color: rgba(255, 255, 255, 0.75); }
.anatomy-static .anatomy-list li { color: #fff; }
.anatomy-static .anatomy-list span { max-height: none; margin-top: 6px; }
.anatomy-stage { position: relative; aspect-ratio: 5 / 4; }
.anatomy-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); transition: opacity 0.6s; }
.anatomy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s var(--ease); }
.anatomy-stage.has-3d .anatomy-canvas { opacity: 1; }
.anatomy-stage.has-3d .anatomy-fallback { opacity: 0; }
.anatomy-progress { position: absolute; right: -18px; top: 10%; bottom: 10%; width: 2px; background: rgba(255, 255, 255, 0.14); }
.anatomy-progress i { position: absolute; inset: 0; background: var(--sky); transform-origin: top; transform: scaleY(0); }
.anatomy-static .anatomy-progress { display: none; }

/* ---------- Выбор цвета сайта ---------- */
.themes {
  position: fixed; left: 16px; bottom: 16px; z-index: 75;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #fff; color: var(--ink-2);
  font-size: 12px; font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(5, 10, 30, 0.2);
}
.themes[hidden] { display: none; }
.themes button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.themes button.on { box-shadow: 0 0 0 2px var(--c); }

/* ---------- Движение (js/motion.js) ---------- */
.gsap-on .hero-media { animation: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.sw-i { display: inline-block; will-change: transform; }
.steps { position: relative; }
.steps-rail { position: absolute; left: 0; right: 0; top: -22px; height: 3px; background: var(--cobalt); transform-origin: left; }
.looks-pinned .looks { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.looks-pinned .looks-track { overflow: visible; scroll-snap-type: none; cursor: default; will-change: transform; }
.looks-pinned .looks-dots.playing button.on i { animation: none; width: 100%; }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ============================================================
   ДВИЖЕНИЕ
   ============================================================ */
/* Прячем до появления только при работающем JS (класс .js на <html>) */
.js .rv, .js .lay { opacity: 0; transform: translateY(28px); }
.js .rv.in, .js .lay.laid {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 1s var(--ease) var(--d, 0s);
}
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .deals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 1180px) {
  .hdr-search { min-width: 0; padding: 11px 13px; }
  .hdr-search span, .hdr-search kbd { display: none; }
}
@media (max-width: 920px) {
  .hdr-nav { display: none; }
  .manifesto-grid, .deliv-grid, .calc-grid, .pgrid, .anatomy-grid { grid-template-columns: minmax(0, 1fr); }
  .anatomy-stage { order: -1; }
  .pgrid > div:first-child { position: static; }
  .manifesto-media { aspect-ratio: 4 / 3; }
  .calc-media { aspect-ratio: 4 / 3; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .showroom-in { justify-content: center; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; --hdr: 66px; }
  .logo-word { font-size: 18px; }
  .logo-mark { width: 30px; height: 30px; }
  .hdr-cart span:not(.cart-badge) { display: none; }
  .hdr-cart { padding: 11px 13px; }
  .hdr-tools { gap: 8px; }
  .srch-panel { padding: 14px 0 20px; }
  .srch-bar input { padding: 15px 0; font-size: 17px; }
  .srch-res { grid-template-columns: minmax(0, 1fr); }
  .sres-img { width: 48px; height: 48px; }

  .hero { min-height: 640px; }
  .hero-img { object-position: 47% 60%; }
  .hero-copy { padding-top: 104px; }
  .hero-title { margin-bottom: 20px; }
  .hero-lead { max-width: 320px; }
  .hero-cta .btn { padding: 14px 20px; font-size: 15px; }
  .hero-picker {
    left: 12px; right: 12px; bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px 12px;
  }
  .picker-chips { width: 100%; justify-content: space-between; gap: 2px; }
  .pchip { width: auto; flex: 1 1 0; }
  .pchip-img { width: 46px; height: 46px; }
  .pchip-label { font-size: 10.5px; }
  .picker-link {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .picker-count { font-size: 22px; }
  .picker-cta { margin-top: 0; }

  .ticker { padding: 18px 0; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stat b { font-size: 30px; }
  .stat span { font-size: 12px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 10px; }
  .tile--big { grid-column: span 2; grid-row: span 2; }
  .tile--wide { grid-column: span 2; }
  .tile-body { left: 16px; right: 14px; bottom: 14px; }
  .tile-arrow { width: 38px; height: 38px; }
  .tile:not(.tile--big):not(.tile--wide) .tile-arrow { display: none; }
  .tile-name { font-size: 18px; }
  .tile-count { font-size: 12px; }

  .look { flex-basis: 78vw; }
  .looks-nav { display: none; }

  .deals { grid-template-columns: minmax(0, 1fr); }
  .calc-fields { grid-template-columns: minmax(0, 1fr); }
  .field--wide { grid-column: auto; }
  .calc-result { gap: 20px; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: 26px 22px; }
  .ftr-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

  .pview { --ch: 22px; }
  .pv-tags { display: none; }
  .pv-ar { top: 10px; right: 10px; padding: 9px 13px; font-size: 13px; }
  .pv-inset { right: 10px; bottom: 10px; width: 42%; }
  .pv-inset span { padding: 6px 9px; font-size: 12px; }
  .pv-cap { left: 10px; bottom: 10px; max-width: 82%; padding: 8px 12px; }
  .pv-ruler { left: 12px; bottom: 12px; }
  .pthumbs { gap: 8px; }
  .pthumb { flex: 1; padding-right: 10px; font-size: 13px; }
  .pthumb-img { width: 44px; height: 34px; }
  .scheme { min-width: 96px; }

  .hero-canvas { object-position: 47% 60%; }
  .hero-now { margin-top: 16px; font-size: 13px; padding: 8px 12px; }
  .anatomy-pin { padding: 70px 0 40px; align-items: flex-start; }
  .anatomy-stage { aspect-ratio: 4 / 3; }
  .anatomy-progress { display: none; }
  .themes { left: 10px; bottom: 10px; }

  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .dcard-body { padding: 14px; }
  .dcard-name { font-size: 15px; }
  .dcard-price b { font-size: 19px; }
  .dcard-foot { flex-direction: column; align-items: stretch; }
  .dcard-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; }
  .ticker-track { animation: none; }
  .js .rv, .js .lay { opacity: 1; transform: none; }
  .js .tile.in img, .js .step.in .step-media img, .js .step.in .step-num { animation: none; }
  .look.is-active img { transform: none; transition: none; }
  .looks-dots.playing button.on i { animation: none; width: 100%; }
  .tabs-ink, .pv-pane, .pv-sample { transition: none; }
  .js .dcard-img { animation: none; }
  .hero-img { transition: none; }
}
