/* Siegen Parkett — публичная часть. Современная студийная подача:
   нейтральный светлый фон (цвет дуба не искажается), Jost — наследник Futura и немецкого
   модернизма, крупные фото и спокойные подписи моноширинным шрифтом, как на чертеже.
   Жёлтый бренда — только точечно; зелёный — лист в логотипе. */

:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --tile: #e9e9e6;
  --line: #d9d9d4;
  --ink: #141413;
  --ink-2: #5a5a55;
  --ink-3: #8a8a84;
  --dark: #161614;
  --on-dark: #f3f3f1;
  --on-dark-2: #a9a9a2;
  --yellow: #f2c230;
  --leaf: #8daf3c;
  --leaf-vein: #56752a;
  --red: #b3261e;

  --f-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-mono: "Fira Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-s: 8px;
  --r: 14px;
  --r-l: 22px;
  --gutter: 16px;
  --maxw: 1360px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .7, .15, 1);
}
@media (min-width: 900px) { :root { --gutter: 32px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* --- типографика ----------------------------------------------------------- */
.display { font-weight: 400; font-size: clamp(44px, 8.2vw, 132px); line-height: .94; letter-spacing: -.04em; text-wrap: balance; }
.display--m { font-size: clamp(40px, 6vw, 88px); }
.h2 { font-weight: 400; font-size: clamp(32px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.eyebrow, .mono { font: 400 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 32em; }
.section-note { color: var(--ink-2); max-width: 34em; }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* --- кнопки ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--s { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--main { background: var(--ink); color: var(--bg); }
.btn--main:hover { background: #33332f; }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }
.btn-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 500 12px/1 var(--f-mono); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.ico { width: 20px; height: 20px; flex: none; }

/* --- шапка ------------------------------------------------------------------ */
.top { position: sticky; top: 0; z-index: 40; background: rgba(243, 243, 241, .82); backdrop-filter: saturate(1.4) blur(14px); }
.top-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); }
.logo-mark .leaf { width: 30px; height: 22px; }
.logo-word { font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.logo--light { color: var(--on-dark); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; font-size: 16px; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-cta { flex: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; place-items: center; }
.burger .ico { width: 26px; height: 26px; }
@media (max-width: 899px) {
  .burger { display: grid; }
  .top-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
  .nav a { padding: 14px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .22s; }
}
@media (max-width: 380px) { .logo-word { font-size: 13px; letter-spacing: .12em; } }

/* --- шкала (вместо большого метра: тонкая, не перекрывает текст) -------------- */
.scale {
  position: relative; height: 22px; color: var(--ink);
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 100px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat;
  opacity: .5;
}
.scale::after { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 3px; background: var(--yellow); }

/* --- складной метр: отдельная полоса под картинкой, раскладывается звено за звеном --- */
.zs-band { position: relative; margin-top: 22px; padding: 6px 0 14px; overflow: hidden; }
.zs { --seg: clamp(112px, 13vw, 190px); --h: 32px; --u: calc(var(--seg) / 20); position: relative; height: var(--h); }
.zs-seg {
  position: absolute; left: 0; top: 0; width: var(--seg); height: var(--h);
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .06)), var(--yellow);
  border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(60, 40, 0, .22), 0 8px 14px -9px rgba(40, 25, 5, .55);
  transform-origin: 0 50%;
}
.zs-seg .zs-seg { left: var(--seg); transform: rotate(var(--fold)); transition: transform .62s cubic-bezier(.45, .05, .2, 1) calc(var(--i) * .13s + .2s); will-change: transform; backface-visibility: hidden; }
.zs.is-done .zs-seg { will-change: auto; }
.zs.is-open .zs-seg { transform: none; }
.zs-scale {
  position: absolute; inset: 0 0 auto 0; height: 12px; opacity: .82;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--u) - 1px), var(--ink) calc(var(--u) - 1px) var(--u)) 0 0 / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(var(--u) / 2 - 1px), var(--ink) calc(var(--u) / 2 - 1px) calc(var(--u) / 2)) 0 0 / 100% 6px no-repeat;
}
.zs-n { position: absolute; top: 14px; left: calc(var(--u) * var(--k)); transform: translateX(calc(-100% - 3px)); letter-spacing: -.02em; font: 500 10.5px/1 var(--f-sans); color: var(--ink); }
.zs-n--red { color: var(--red); font-weight: 600; font-size: 12.5px; }
.zs-seg > .zs-n--red:last-of-type { transform: translateX(calc(-100% - 7px)); }   /* у шарнира — не под заклёпку */
.zs-rivet { position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #fff, #b9b8b2 55%, #75736c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .28); }

/* --- главный экран: одна картинка на высоту окна и панель с логотипом поверх -------- */
.hero { padding: 16px 0 0; }
.hero-stage {
  position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--tile);
  height: clamp(320px, calc(100svh - var(--header-h) - 156px), 880px);   /* метр под кадром тоже в первом экране */
}
/* низкое окно (ноутбук с панелями браузера): панель компактнее, чтобы не закрывала кадр */
@media (min-width: 701px) and (max-height: 760px) {
  .hero-panel { gap: 12px; padding: 20px 22px; width: min(460px, calc(100% - 28px)); }
  .hero-title { font-size: clamp(28px, 2.8vw, 40px); }
  .hero-lead { font-size: 14.5px; }
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel {
  position: absolute; left: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px);
  width: min(520px, calc(100% - 28px)); display: grid; gap: 16px;
  padding: clamp(20px, 2.6vw, 32px); border-radius: 20px;
  background: rgba(243, 243, 241, .93); backdrop-filter: blur(12px);
}
.hero-brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.hero-title { font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -.03em; }
.hero-lead { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.hero-chip { position: absolute; right: 16px; top: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(243, 243, 241, .9); color: var(--ink); text-decoration: none; }
@media (max-width: 700px) {
  .hero-stage { height: auto; overflow: visible; background: none; }
  .hero-img { position: static; aspect-ratio: 4 / 5; border-radius: var(--r-l); height: auto; }
  .hero-panel { position: static; width: 100%; margin-top: 12px; padding: 20px 4px 0; background: none; backdrop-filter: none; }
  .hero-chip { right: 12px; top: 12px; }
}

/* --- секции ----------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding-top: 24px; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 52px); }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 56px; } }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }

/* укладки */
.layouts { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .layouts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.layout { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.layout-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--tile); }
.layout-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.layout:hover .layout-media img { transform: scale(1.05); }
.layout-media .pattern { position: absolute; inset: 0; color: var(--ink-3); }
.layout-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.layout-name .ico { transition: transform .25s var(--ease); }
.layout:hover .layout-name .ico { transform: translateX(4px); }
.layout-note { color: var(--ink-2); font-size: 15px; margin-top: -8px; }

/* переключатель укладки */
.switch { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 25px; background: var(--tile); }
/* 25px — половина высоты в одну строку: пилюля, а при переносе ровный скруглённый блок */
.switch button, .switch a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 15px; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.switch [aria-pressed="true"], .switch [aria-current="true"] { background: var(--ink); color: var(--bg); }
.switch svg.pattern-ico { width: 18px; height: 18px; }
@media (max-width: 700px) { .switch { border-radius: 18px; } .switch button, .switch a { padding: 0 12px; font-size: 14px; } }

/* карточки цветов */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 20px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: grid; gap: 12px; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--swatch, var(--tile)); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1s var(--ease); }
.card-media .card-alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-alt { opacity: 1; } .card:hover .card-main { transform: scale(1.03); }
  /* при наведении ярлык уходит — интерьер виден целиком */
  .card:hover .tag { opacity: 0; transform: translateY(-6px); } }
/* плашка как на стендах шоурума: лист, марка между линейками, имя цвета */
.tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: grid; justify-items: center; gap: 4px;
  min-width: 120px; padding: 9px 14px 10px; border-radius: 6px; background: var(--yellow); color: var(--ink);
  outline: 1px solid rgba(31, 31, 29, .45); outline-offset: -4px; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .6);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tag-leaf { width: 30px; height: 22px; }
.tag-brand { font-weight: 500; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 2px; border-top: 1px solid; border-bottom: 1px solid; }
.tag-name { font-weight: 600; font-size: 16px; line-height: 1.1; }
@media (max-width: 700px) { .tag { left: 8px; top: 8px; min-width: 0; padding: 6px 9px 7px; } .tag-leaf { width: 22px; height: 16px; } .tag-brand { font-size: 8px; } .tag-name { font-size: 13px; } }
.card-flag { position: absolute; right: 10px; top: 10px; padding: 5px 9px; border-radius: 999px; background: var(--bg); font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; z-index: 2; }
.card-body { display: grid; gap: 3px; }
.card-title { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.card-sub { font: 400 12px/1.5 var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }

/* цифры */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2.5vw, 32px); background: var(--bg); }
.figure b { font-weight: 400; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em; }
.figure span { color: var(--ink-2); font-size: 15px; }
.about { display: grid; gap: 40px; }
@media (min-width: 1000px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.about-text { display: grid; gap: 18px; align-content: start; }
.about-text p { color: var(--ink-2); max-width: 32em; }
.facts { display: grid; gap: 28px 36px; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { padding-top: 16px; border-top: 1px solid var(--ink); }
.fact dt { font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.fact dd { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* тёмная полоса-призыв */
.cta { background: var(--dark); color: var(--on-dark); border-radius: var(--r-l); padding: clamp(32px, 6vw, 80px); display: grid; gap: 28px; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 2fr) auto; align-items: end; } }
.cta .lead { color: var(--on-dark-2); margin-top: 16px; }

/* --- каталог ----------------------------------------------------------------- */
.page-head { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.page-head .lead { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font: 400 12px/1.4 var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.catalog { padding-bottom: 96px; }
.toolbar { display: grid; gap: 18px; padding: 18px 0 28px; border-top: 1px solid var(--line); }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend { float: left; margin-right: 8px; padding: 0; font: 400 12px/40px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 15px; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.count { font: 400 13px/1 var(--f-mono); color: var(--ink-2); }
.sort select { min-height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.link-reset { font-size: 15px; color: var(--ink-2); }
.js .nojs-only { display: none; }
.empty { display: grid; justify-items: start; gap: 16px; padding: 32px 0 48px; max-width: 520px; }
.empty p { color: var(--ink-2); }

/* --- страница цвета ---------------------------------------------------------- */
.product { padding: clamp(20px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.product-in { display: grid; gap: 28px; }
@media (min-width: 1000px) {
  .product-in { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
  .info { position: sticky; top: calc(var(--header-h) + 20px); }
}
.viewer { position: relative; display: grid; gap: 14px; align-content: start; }
.viewer-stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--swatch, var(--tile)); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.viewer-stage.is-wide { aspect-ratio: 3 / 2; }
.viewer-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.viewer-stage.is-contain { background: #fefefe; }   /* фон рендера стенда — без шва по краям */
.viewer-stage.is-contain img { object-fit: contain; }
/* на широком экране кадр по высоте окна, чтобы при 100 % масштабе всё помещалось:
   пол — узор, его можно обрезать; стенд показываем целиком */
@media (min-width: 1000px) {
  .viewer-stage, .viewer-stage.is-wide { aspect-ratio: auto; height: clamp(340px, calc(100svh - var(--header-h) - 150px), 860px); }
}
@media (max-width: 999px) { .viewer-stage { max-height: 72svh; } }
.viewer-stage img.is-loading { opacity: .35; }
.viewer-tabs { position: absolute; left: 12px; top: 12px; z-index: 2; }
.viewer-tabs.switch { background: rgba(243, 243, 241, .88); backdrop-filter: blur(10px); }
.viewer-note { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(20, 20, 19, .72); color: #fff; font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.viewer-pending { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: 15px; background: color-mix(in srgb, var(--tile) 80%, transparent); }
.viewer-download { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(243, 243, 241, .9); backdrop-filter: blur(10px); color: var(--ink); text-decoration: none; font-size: 14px; }
.viewer-download:hover { background: #fff; }
@media (max-width: 700px) { .viewer-download { top: auto; bottom: 12px; left: 12px; right: auto; } .viewer-note { display: none; } }
.viewer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.product-name { font-weight: 400; font-size: clamp(52px, 7vw, 104px); line-height: .92; letter-spacing: -.045em; margin: 10px 0 16px; overflow-wrap: anywhere; }
.product-tone { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.product-tone .dot { width: 16px; height: 16px; }
.choose { display: grid; gap: 10px; margin-top: 28px; }
.choose-label { font: 400 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.widths { display: flex; flex-wrap: wrap; gap: 6px; }
.buy { display: grid; gap: 16px; margin-top: 28px; padding: 22px; border-radius: var(--r); background: var(--surface); }
.buy-price { font-weight: 400; font-size: 32px; letter-spacing: -.02em; }
.specs { margin-top: 28px; }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs > div:first-child { border-top: 1px solid var(--line); }
.specs dt { color: var(--ink-2); }
.desc { display: grid; gap: 14px; max-width: 40em; }
.desc p { color: var(--ink-2); }

/* примерка у себя */
.try { display: grid; gap: 32px; }
@media (min-width: 1000px) { .try { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; } }
.try-steps { display: grid; gap: 18px; margin-top: 28px; counter-reset: step; }
.try-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.try-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--ink); font: 400 14px/1 var(--f-mono); }
.try-card { display: grid; gap: 18px; padding: clamp(16px, 2.5vw, 28px); border-radius: var(--r-l); background: var(--surface); }
/* в узкой карточке примерки четыре укладки — сеткой 2 × 2, без висящей четвёртой */
.try-card .switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.try-card .switch a { justify-content: center; }
@media (max-width: 480px) { .try-card .switch { grid-template-columns: minmax(0, 1fr); } }
.drop { position: relative; display: grid; place-items: center; gap: 10px; min-height: 260px; padding: 24px; border: 1.5px dashed var(--line); border-radius: var(--r); text-align: center; cursor: pointer; overflow: hidden; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--ink); background: var(--bg); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { font-weight: 500; font-size: 18px; }
.drop span { color: var(--ink-2); font-size: 14px; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tile); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.compare-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 18px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.status { font-size: 15px; color: var(--ink-2); }
.status.is-err { color: var(--red); }
.progress { height: 3px; border-radius: 3px; background: var(--tile); overflow: hidden; }
.progress i { display: block; height: 100%; width: 30%; background: var(--ink); animation: slide 1.4s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* --- формы, заявка ------------------------------------------------------------ */
.dlg { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-l); background: var(--bg); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(20, 20, 19, .5); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg-in .3s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.req-form, .req-done { position: relative; display: grid; gap: 16px; padding: 28px 24px 24px; }
.dlg-title { font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; padding-right: 44px; }
.dlg-lead { color: var(--ink-2); }
.dlg-x { position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--tile); cursor: pointer; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--ink-2); }
.field em { color: var(--red); font-style: normal; }
.field small { color: var(--ink-3); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 194, 48, .55); }
.field input::placeholder, .field textarea::placeholder { color: #9a9a94; }
.form-err { color: var(--red); font-size: 15px; }
.consent-field { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 14px; line-height: 1.5; cursor: pointer; color: var(--ink-2); }
.consent-field input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); }
.consent-field a { color: var(--ink); text-underline-offset: 3px; }
.legal-draft.fine { padding: 12px 14px; border-radius: 12px; background: #fff4cf; color: var(--ink); }

/* контакты */
.feedback-grid { display: grid; gap: 32px; align-items: start; padding-bottom: 96px; }
@media (min-width: 1000px) { .feedback-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.feedback-intro { display: grid; gap: 20px; }
.feedback-card { border-radius: var(--r-l); background: var(--surface); }
.feedback-card .req-form, .feedback-card .req-done { padding: clamp(22px, 3.5vw, 40px); gap: 18px; }

/* --- полноэкранный просмотр ---------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(15, 15, 14, .96); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-s); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 16px; right: 16px; }

/* --- юридическое ---------------------------------------------------------------- */
.legal-layout { display: grid; gap: 32px; padding-bottom: 96px; }
@media (min-width: 900px) { .legal-layout { grid-template-columns: 280px 1fr; gap: 64px; } }
.legal-nav { display: grid; gap: 4px; align-content: start; }
.legal-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.legal-nav a[aria-current] { background: var(--ink); color: var(--bg); }
.legal-copy { min-width: 0; max-width: 780px; overflow-wrap: anywhere; }
.legal-copy h2 { font-weight: 500; font-size: 26px; letter-spacing: -.02em; margin: 32px 0 14px; }
.legal-copy p { margin-bottom: 16px; line-height: 1.7; }
aside.legal-draft { padding: 18px 20px; border-radius: var(--r); background: #fff4cf; margin-bottom: 20px; }
aside.legal-draft p { margin: 8px 0 0; }
.legal-details dt { color: var(--ink-2); font-size: 14px; margin-top: 20px; }
.legal-details dd { margin: 5px 0 0; }

/* --- подвал ------------------------------------------------------------------ */
.foot { margin-top: 24px; background: var(--dark); color: var(--on-dark-2); border-radius: var(--r-l) var(--r-l) 0 0; padding: clamp(40px, 6vw, 80px) 0 24px; font-size: 15px; }
.foot-word { color: var(--on-dark); font-weight: 400; font-size: clamp(48px, 11.5vw, 184px); line-height: .9; letter-spacing: -.05em; margin-bottom: clamp(32px, 5vw, 64px); }
.foot-in { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.foot-nav, .foot-contacts { display: grid; gap: 10px; align-content: start; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 28px; font-size: 14px; }
.foot-legal a { color: var(--on-dark-2); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font: 400 12px/1.5 var(--f-mono); color: #8e8e87; }

.notfound { padding: 72px 0 110px; }
.notfound .lead { margin: 18px 0 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
