/* ── design-system/tokens.css */
/* ГЕНЕРИРУЕТСЯ АВТОМАТИЧЕСКИ из tokens.json. Не редактировать вручную. */
/* Система: Dedon (№1 из 10) */

:root {

  /* Палитра — единственное, что меняется при клонировании под другой бренд */
  --c-ink: #1A1917;
  --c-graphite: #3D3A35;
  --c-stone-600: #6E6862;
  --c-stone-400: #A9A29A;
  --c-stone-200: #D8D2CA;
  --c-sand-100: #EDE8E1;
  --c-cream: #F6F3EE;
  --c-white: #FFFFFF;
  --c-moss: #4A5240;
  --c-moss-soft: #E4E7DE;
  --c-moss-deep: #343A2D;
  --c-clay: #9E5438;
  --c-danger: #9E3B2E;

  /* Семантика — вёрстка использует только эти токены */
  --bg-page: var(--c-cream);
  --bg-surface: var(--c-white);
  --bg-muted: var(--c-sand-100);
  --bg-accent: var(--c-moss-soft);
  --bg-inverse: var(--c-ink);
  --text-primary: var(--c-ink);
  --text-secondary: var(--c-graphite);
  --text-muted: var(--c-stone-600);
  --text-inverse: var(--c-white);
  --text-link: var(--c-moss);
  --text-disabled: var(--c-stone-400);
  --border-subtle: var(--c-stone-200);
  --border-strong: var(--c-graphite);
  --focus-ring: var(--c-moss);
  --badge-bg: var(--c-clay);
  --error: var(--c-danger);

  /* Полупрозрачные слои */
  --overlay-hero: rgba(26, 25, 23, 0.45);
  --overlay-soft: rgba(26, 25, 23, 0.14);
  --scrim: rgba(26, 25, 23, 0.72);

  /* Шрифты */
  --font-heading: 'Onest', 'Onest Fallback', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, monospace;

  /* Типографическая шкала */
  --fs-display: clamp(3.5rem, 7vw, 6.5rem);
  --lh-display: 1.05;
  --ls-display: -0.02em;
  --fw-display: 500;
  --ff-display: var(--font-heading);
  --fs-h1: clamp(2.5rem, 4.5vw, 4rem);
  --lh-h1: 1.1;
  --ls-h1: -0.02em;
  --fw-h1: 500;
  --ff-h1: var(--font-heading);
  --fs-h2: clamp(1.875rem, 3vw, 2.75rem);
  --lh-h2: 1.15;
  --ls-h2: -0.01em;
  --fw-h2: 500;
  --ff-h2: var(--font-heading);
  --fs-h3: clamp(1.375rem, 1.8vw, 1.75rem);
  --lh-h3: 1.25;
  --ls-h3: 0;
  --fw-h3: 600;
  --ff-h3: var(--font-heading);
  --fs-body-lg: clamp(1.0625rem, 1.2vw, 1.25rem);
  --lh-body-lg: 1.6;
  --ls-body-lg: 0;
  --fw-body-lg: 400;
  --ff-body-lg: var(--font-body);
  --fs-body: clamp(1rem, 1vw, 1.0625rem);
  --lh-body: 1.65;
  --ls-body: 0;
  --fw-body: 400;
  --ff-body: var(--font-body);
  --fs-small: 0.875rem;
  --lh-small: 1.5;
  --ls-small: 0;
  --fw-small: 400;
  --ff-small: var(--font-body);
  --fs-caption: 0.75rem;
  --lh-caption: 1.4;
  --ls-caption: 0.12em;
  --fw-caption: 500;
  --ff-caption: var(--font-body);
  --measure-text: 68ch;
  --measure-prose: 72ch;

  /* Спейсинг */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-120: 120px;
  --sp-160: 160px;
  --section-sm: 80px;
  --section-md: 120px;
  --section-lg: 160px;

  /* Радиусы */
  --r-none: 0px;
  --r-input: 8px;
  --r-card: 12px;
  --r-pill: 999px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(26, 25, 23, 0.05);
  --shadow-lg: 0 12px 32px rgba(26, 25, 23, 0.08);

  /* Раскладка */
  --container: 1440px;
  --container-narrow: 1120px;
  --container-text: 768px;
  --header-h: 72px;
  --gutter: 24px;
  --gutter-lg: 32px;
  --columns: 12;
  --stagger: 72px;
  --bp-xs: 480px;
  --bp-sm: 768px;
  --bp-md: 1024px;
  --bp-lg: 1280px;
  --bp-xl: 1536px;

  /* Движение */
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
  --dur-reveal: 640ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-inout: cubic-bezier(0.6, 0.05, 0.3, 1);
  --tilt-rotate-y: 8deg;
  --tilt-rotate-x: 4deg;
  --tilt-scale: 1.06;
  --tilt-cursor-boost: 4deg;
  --hover-photo-scale: 1.03;
  --hover-arrow-shift: 6px;
  --parallax-back: 0.06;
  --parallax-front: 0.14;
  --arc-perspective: 1200px;
  --arc-radius: 640;
  --arc-radius-mobile: 380;
  --arc-step-max: 26;
  --arc-friction: 0.95;
  --arc-snap: 400ms;
}

/* ── design-system/fonts.css */
/**
 * Шрифты — локальные woff2, без запросов к Google Fonts в рантайме.
 * Сгенерировано из Google Fonts CSS, файлы лежат рядом в ./fonts/.
 *
 * Onest — заголовки, Inter — текст. Обе SIL OFL.
 *
 * Сайт англоязычный (рынок США), и на боевой странице скачиваются только
 * latin: Inter 48 КБ и Onest 34 КБ. Кириллические подмножества объявлены,
 * но браузер их не запрашивает — unicode-range отдаёт лишь тот файл, чьи
 * символы встретились в тексте. Нужны они для внутренних styleguide.html
 * и motion.html, которые на русском. Греческий и вьетнамский выброшены.
 *
 * Обновить: скачать новый css2 у Google и прогнать тем же способом.
 */

/* cyrillic-ext — Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic — Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext — Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin — Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext — Onest */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic — Onest */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext — Onest */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin — Onest */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/Onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── design-system/reset.css */
/* Reset. Минимальный, без обнуления того, что потом придётся возвращать. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Тёмной темы нет намеренно: каталог живёт на дневном фото, инверсия убивает материал. */
  color-scheme: light;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

body {
  min-height: 100svh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Фокус виден всегда. outline: none без замены — запрещено правилами системы. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--bg-accent);
  color: var(--text-primary);
}

/* ── design-system/base.css */
/* Базовая типографика и элементы документа. */

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
}

/* ─── Заголовки ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4,
.t-display, .t-h1, .t-h2, .t-h3 {
  font-family: var(--font-heading);
  text-wrap: balance;
  color: var(--text-primary);
}

.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-display);
}

h1, .t-h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: var(--fw-h1);
}

h2, .t-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-h2);
}

h3, .t-h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  font-weight: var(--fw-h3);
}

/* ─── Текст ──────────────────────────────────────────────────────────────── */

p {
  max-width: var(--measure-text);
}

.t-lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-secondary);
}

.t-small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

/* Приём HIKLI: мелкий разряженный капс для лейблов материалов и категорий. */
.t-caption {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  font-weight: var(--fw-caption);
  text-transform: uppercase;
  color: var(--text-muted);
}

.t-muted {
  color: var(--text-muted);
}

/* Размеры, артикулы, цифры характеристик — моноширинные цифры. */
.t-num {
  font-variant-numeric: tabular-nums;
}

strong, b {
  font-weight: 500;
}

/* ─── Ссылки ─────────────────────────────────────────────────────────────── */

a:where(:not([class])) {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}

a:where(:not([class])):hover {
  color: var(--text-primary);
}

/* ─── prose: статьи раздела «Инсайты» ────────────────────────────────────── */

.prose {
  max-width: var(--measure-prose);
  hyphens: auto;
  color: var(--text-secondary);
}

.prose > * + * {
  margin-top: var(--sp-24);
}

.prose h2 {
  margin-top: var(--sp-64);
  color: var(--text-primary);
}

.prose h3 {
  margin-top: var(--sp-48);
  color: var(--text-primary);
}

.prose p {
  max-width: none;
}

.prose ul,
.prose ol {
  padding-left: var(--sp-24);
}

.prose li + li {
  margin-top: var(--sp-8);
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul > li {
  position: relative;
  padding-left: var(--sp-24);
}

/* Моховые маркеры вместо дисков. */
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-moss);
}

.prose figure {
  margin-top: var(--sp-40);
  margin-bottom: var(--sp-40);
}

.prose figure img {
  width: 100%;
  border-radius: var(--r-none);
}

.prose figcaption {
  margin-top: var(--sp-12);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.prose blockquote {
  margin: var(--sp-48) 0;
  padding-left: var(--sp-24);
  border-left: 2px solid var(--c-moss);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--text-primary);
}

/* Врезка внутри статьи. */
.prose .callout {
  padding: var(--sp-24);
  background: var(--bg-accent);
  border-radius: var(--r-card);
  color: var(--text-primary);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--sp-64) 0;
}

/* ─── Изображения ────────────────────────────────────────────────────────── */

/* Правило системы без исключений: фотография никогда не скругляется. */
img,
.photo {
  border-radius: var(--r-none);
}

figure {
  margin: 0;
}

/* ── design-system/layout.css */
/* Контейнеры, 12-колоночная сетка, секции, «лесенка». */

/* ─── Контейнеры ─────────────────────────────────────────────────────────── */

.container,
.container-narrow,
.container-text {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container { max-width: calc(var(--container) + var(--gutter) * 2); }
.container-narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container-text { max-width: calc(var(--container-text) + var(--gutter) * 2); }

@media (min-width: 1024px) {
  .container,
  .container-narrow,
  .container-text {
    padding-inline: var(--gutter-lg);
  }
}

/* Секция во всю ширину окна изнутри контейнера. */
.full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* ─── Вертикальный ритм ──────────────────────────────────────────────────── */

.section {
  padding-block: var(--section-sm);
}

@media (min-width: 768px) {
  .section { padding-block: var(--section-md); }
}

@media (min-width: 1280px) {
  .section { padding-block: var(--section-lg); }
}

.section--tight { padding-block: var(--sp-64); }
.section--muted { background: var(--bg-muted); }
.section--accent { background: var(--bg-accent); }
.section--inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.section--inverse :is(h1, h2, h3, .t-display) { color: var(--text-inverse); }
.section--inverse .t-caption,
.section--inverse .t-muted { color: var(--c-stone-400); }

/* Заголовок секции: капс-лейбл + h2 + опциональная ссылка справа. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-24);
  margin-bottom: var(--sp-48);
}

.section-head__title > * + * {
  margin-top: var(--sp-12);
}

/* ─── Сетка ──────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--gutter);
}

@media (min-width: 1024px) {
  .grid { gap: var(--gutter-lg); }
}

/* Спаны: на мобильном всё в одну колонку, спаны включаются с 768px.
   Селекторы ниже намеренно той же специфичности, что и базовый, — иначе
   базовый span 12 перебивал бы их независимо от порядка. */
.grid > [class*='col-'] { grid-column: span var(--columns); }

@media (min-width: 768px) {
  .grid > .col-1  { grid-column: span 1; }
  .grid > .col-2  { grid-column: span 2; }
  .grid > .col-3  { grid-column: span 3; }
  .grid > .col-4  { grid-column: span 4; }
  .grid > .col-5  { grid-column: span 5; }
  .grid > .col-6  { grid-column: span 6; }
  .grid > .col-7  { grid-column: span 7; }
  .grid > .col-8  { grid-column: span 8; }
  .grid > .col-9  { grid-column: span 9; }
  .grid > .col-10 { grid-column: span 10; }
  .grid > .col-11 { grid-column: span 11; }
  .grid > .col-12 { grid-column: span 12; }
}

/* Простые авто-сетки для карточек. */
.auto-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr));
}

@media (min-width: 1024px) {
  .auto-grid { gap: var(--gutter-lg); }
}

/* ─── «Лесенка» коллекций ────────────────────────────────────────────────── */
/* Каждая вторая карточка опущена на --stagger. На мобильном сдвиг снимается. */

.ladder {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ladder {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gutter-lg);
    align-items: start;
  }

  .ladder > :nth-child(even) {
    transform: translateY(var(--stagger));
  }

  /* Хвост лесенки не должен обрезаться следующей секцией. */
  .ladder { padding-bottom: var(--stagger); }
}

@media (min-width: 1280px) {
  .ladder--3 { grid-template-columns: repeat(3, 1fr); }
  .ladder--3 > :nth-child(3n + 2) { transform: translateY(var(--stagger)); }
  .ladder--3 > :nth-child(3n + 3) { transform: translateY(calc(var(--stagger) * 2)); }
  .ladder--3 { padding-bottom: calc(var(--stagger) * 2); }
}

/* ─── Утилиты раскладки ──────────────────────────────────────────────────── */

.stack > * + * { margin-top: var(--gap, var(--sp-16)); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--sp-12));
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
}

.center-text {
  max-width: var(--measure-text);
  margin-inline: auto;
  text-align: center;
}

/* Sticky-оглавление статьи. */
.sticky-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-24));
  align-self: start;
}

/* ── design-system/components.css */
/**
 * Компоненты. Каталог под лид-ген, не под корзину:
 * нет корзины, чекаута, вишлиста и цен с валютой — намеренно.
 *
 * Правило формы без исключений:
 *   фотография никогда не скругляется (--r-none),
 *   интерактив всегда скруглён (--r-pill / --r-input).
 */

/* ═══ Кнопки ═════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  min-height: 44px;
  padding: var(--sp-12) var(--sp-24);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn[disabled],
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 1;
  background: var(--bg-muted);
  border-color: var(--border-subtle);
  color: var(--text-disabled);
  pointer-events: none;
}

.btn--primary {
  background: var(--c-moss);
  color: var(--text-inverse);
}

/* Матрица, колонка Dedon: пилюля темнеет на ховере. */
.btn--primary:hover { background: var(--c-moss-deep); }

.btn--ink {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.btn--ink:hover { background: #000; }

.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--secondary:hover {
  background: var(--bg-muted);
  border-color: var(--text-primary);
}

.btn--ghost {
  padding-inline: 0;
  background: none;
  color: var(--text-link);
  border-radius: 2px;
}

.btn--ghost:hover { color: var(--c-moss-deep); }

.btn--lg {
  min-height: 52px;
  padding: var(--sp-16) var(--sp-32);
  font-size: var(--fs-body);
}

/* Стрелка едет вправо на ховере — общий приём для всех «уводящих» ссылок. */
.btn .arrow,
.link-arrow .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(var(--hover-arrow-shift));
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  color: var(--text-link);
  font-size: var(--fs-small);
  font-weight: 500;
}

/* Ссылка на ховере уходит в мох, стрелка едет на 6px. */
.link-arrow:hover { color: var(--c-moss-deep); }

/* .link-underline снят: раскрытие линии слева направо закреплено матрицей за Tribù. */

/* ═══ Чипы категорий ═════════════════════════════════════════════════════ */

.chip-row {
  display: flex;
  gap: var(--sp-8);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--sp-4);
  scroll-snap-type: x proximity;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 40px;
  padding: var(--sp-8) var(--sp-20);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  white-space: nowrap;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.chip:hover { border-color: var(--border-strong); }

.chip[aria-pressed='true'],
.chip.is-active {
  background: var(--bg-accent);
  border-color: var(--c-moss);
  color: var(--text-primary);
}

/* ═══ Бейджи ═════════════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  padding: var(--sp-4) var(--sp-12);
  border-radius: var(--r-pill);
  background: var(--badge-bg);
  color: var(--text-inverse);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  font-weight: 500;
}

.badge--quiet {
  background: var(--bg-muted);
  color: var(--text-muted);
}

/* ═══ Хедер ══════════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Класс вешает JS при отходе от верха страницы. */
.header.is-stuck {
  background: var(--bg-page);
  border-bottom-color: var(--border-subtle);
}

/* Поверх героя — светлый текст, пока хедер прозрачный. */
.header--over-hero:not(.is-stuck) {
  color: var(--text-inverse);
}

/* Sticky, в отличие от fixed, занимает место в потоке: без этой поправки
   герой начинается ПОД хедером, и «прозрачный хедер поверх фото» не работает —
   вместо фото за ним оказывается фон страницы. Поднимаем первый герой
   на высоту хедера; верхнее затемнение в .hero__scrim делает текст читаемым. */
.header--over-hero ~ main > .hero:first-child {
  margin-top: calc(var(--header-h) * -1);
}

/* Сетка ROOMLINE: логотип, меню кучкой ЛЕВЕЕ центра, иконный кластер справа.
   Меню не центрируется намеренно — центрированная строка это дежурная маска,
   которая делает все сайты десятки одинаковыми. */
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-40);
  min-height: var(--header-h);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Знак — плетение: ремень сквозь три планки. Исходник brand/logo.svg. */
.header__mark-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.nav {
  display: none;
  /* Строка начинается сразу за логотипом и обрывается задолго до правого края. */
  justify-content: flex-start;
  gap: var(--sp-32);
}

/* Иконный кластер справа вместо кнопки-пилюли. */
.header__utils {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  justify-self: end;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: inherit;
  transition: background-color var(--dur-base) var(--ease-out);
}

.icon-btn:hover { background: var(--overlay-soft); }
.icon-btn svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  position: relative;
  padding-block: var(--sp-8);
}

.nav__link:hover { color: var(--c-moss); }

/* Мега-меню коллекций: 3 колонки, превью справа. */
.megamenu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--bg-page);
  border-block: 1px solid var(--border-subtle);
  padding-block: var(--sp-40);
}

.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  gap: var(--gutter-lg);
}

.megamenu__preview img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* Полноэкранное меню и бургер-символ сняты: у Tribù тот же скрытый список с кнопкой Close.
   Мобильная навигация Dedon — шторка из-под шапки с пилюлями категорий (site.css, .dropsheet). */

/* ═══ Герой ══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Градиенты сверху и снизу — читаемость поверх любого фото.
   Верхний обязателен: хедер лежит на герое светлым текстом, а фото парсятся
   с чужих сайтов и вверху кадра может оказаться небо или светлая стена. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--overlay-hero) 0%, transparent 26%),
    linear-gradient(to top, var(--overlay-hero) 0%, var(--overlay-soft) 45%, transparent 72%);
}

.hero__content {
  padding-block: var(--sp-64) var(--sp-80);
  color: var(--text-inverse);
  display: grid;
  gap: var(--sp-24);
  justify-items: start;
}

/* Подпись мелкая, ей контраст нужнее всего: на светлом фото stone-200 пропадает. */
.hero__content .t-caption { color: var(--c-sand-100); }
.hero__content .t-display { color: var(--text-inverse); }

.hero--light .hero__content,
.hero--light .hero__content .t-display { color: var(--text-primary); }

.scroll-hint {
  position: absolute;
  bottom: var(--sp-24);
  left: 50%;
  translate: -50% 0;
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--text-inverse);
  display: grid;
  justify-items: center;
  gap: var(--sp-8);
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: currentColor;
  transform-origin: top;
  animation: scroll-hint 1.8s var(--ease-inout) infinite;
}

@keyframes scroll-hint {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(40px); opacity: 0; }
}

/* ═══ Рельс категорий ════════════════════════════════════════════════════ */
/* Второй обязательный элемент шапочной зоны, приём ROOMLINE: строка пилюль
   на белой подложке, наезжающая на нижний край героя. */

.category-rail {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: var(--sp-12);
  background: var(--bg-surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
}

.category-rail__row {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.category-rail__row::-webkit-scrollbar { display: none; }

.category-rail .chip {
  border-color: transparent;
  background: transparent;
  scroll-snap-align: start;
}

.category-rail .chip:hover { background: var(--bg-muted); }

.category-rail .chip[aria-pressed='true'] {
  background: var(--bg-inverse);
  border-color: var(--bg-inverse);
  color: var(--text-inverse);
}

/* Ссылка «весь каталог» прижата к правому краю рельса. */
.category-rail__all {
  margin-left: auto;
  padding-inline: var(--sp-20);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .category-rail {
    margin-top: -28px;
    border-radius: var(--r-card);
  }
}

/* ═══ Карточки каталога ══════════════════════════════════════════════════ */

.card-collection {
  display: grid;
  gap: var(--sp-16);
}

.card-collection__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
  aspect-ratio: 4 / 5;
}

.card-collection__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card-collection:hover .card-collection__media img {
  transform: scale(var(--hover-photo-scale));
}

.card-collection__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-16);
}

.card-collection__meta {
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.card-model {
  display: grid;
  gap: var(--sp-12);
  background: var(--bg-surface);
  border-radius: var(--r-card);
  padding: var(--sp-12);
  border: 1px solid transparent;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.card-model:hover .card-model__media img { transform: scale(var(--hover-photo-scale)); }

.card-model__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-muted);
}

.card-model__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card-model__badge {
  position: absolute;
  top: var(--sp-12);
  left: var(--sp-12);
  z-index: 2;
}

.card-model__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
}

/* ═══ Свотчи материалов ══════════════════════════════════════════════════ */

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
}

.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--swatch, var(--bg-muted));
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 0 3px var(--bg-surface);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.swatch:hover,
.swatch[aria-pressed='true'] {
  box-shadow:
    inset 0 0 0 3px var(--bg-surface),
    0 0 0 2px var(--c-moss);
}

/* Подпись материала — из title, показывается при наведении и фокусе. */
.swatch__label {
  position: absolute;
  bottom: calc(100% + var(--sp-8));
  left: 50%;
  translate: -50% 0;
  padding: var(--sp-4) var(--sp-8);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--r-input);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.swatch:hover .swatch__label,
.swatch:focus-visible .swatch__label { opacity: 1; }

/* ═══ Таблица характеристик ══════════════════════════════════════════════ */

.spec-table th,
.spec-table td {
  padding: var(--sp-16) 0;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.spec-table th {
  width: 40%;
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.spec-table td { font-variant-numeric: tabular-nums; }

/* ═══ Люди и доверие ═════════════════════════════════════════════════════ */

.card-designer {
  display: grid;
  gap: var(--sp-16);
}

.card-designer__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-muted);
}

.card-designer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition:
    filter var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.card-designer:hover .card-designer__media img {
  filter: grayscale(0);
  transform: scale(var(--hover-photo-scale));
}

.trust-row {
  display: grid;
  gap: var(--sp-32);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .trust-row { grid-template-columns: repeat(4, 1fr); }
}

.trust-item__value {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.trust-item__label { margin-top: var(--sp-8); }

.quote {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 500;
  max-width: 20ch;
}

.quote__author {
  margin-top: var(--sp-24);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ═══ Контент ════════════════════════════════════════════════════════════ */

.card-article {
  display: grid;
  gap: var(--sp-16);
}

.card-article__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-muted);
}

.card-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card-article:hover .card-article__media img {
  transform: scale(var(--hover-photo-scale));
}

.card-article__lead {
  font-size: var(--fs-small);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toc {
  font-size: var(--fs-small);
  display: grid;
  gap: var(--sp-8);
}

.toc a { color: var(--text-muted); }
.toc a:hover,
.toc a[aria-current='true'] { color: var(--text-primary); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--sp-8);
  color: var(--text-disabled);
}

.breadcrumbs ol,
.breadcrumbs ul {
  display: contents;
}

/* ═══ Формы ══════════════════════════════════════════════════════════════ */

.field {
  display: grid;
  gap: var(--sp-8);
}

.field__label {
  font-size: var(--fs-small);
  font-weight: 500;
}

.field__hint {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--text-muted);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-12) var(--sp-16);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-input);
  color: var(--text-primary);
  transition:
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}

.input::placeholder,
.textarea::placeholder { color: var(--text-disabled); }

.input:hover,
.textarea:hover,
.select:hover { border-color: var(--border-strong); }

.textarea {
  min-height: 120px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--sp-40);
}

.field--error .input,
.field--error .textarea,
.field--error .select { border-color: var(--error); }

.field__error {
  font-size: var(--fs-small);
  color: var(--error);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  background: var(--bg-muted);
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* Форма заявки: 4 поля, больше — нельзя. */
.form-lead {
  display: grid;
  gap: var(--sp-20);
  max-width: 560px;
}

@media (min-width: 768px) {
  .form-lead { grid-template-columns: 1fr 1fr; }
  .form-lead > .field--full,
  .form-lead > .form-lead__actions { grid-column: 1 / -1; }
}

.form-lead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-16);
}

/* Плашка «Оставить заявку» в конце страницы коллекции. */
.cta-band {
  display: grid;
  gap: var(--sp-24);
  padding: var(--sp-48);
  background: var(--bg-accent);
  border-radius: var(--r-card);
}

@media (min-width: 1024px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--sp-64);
  }
}

/* ═══ Обратная связь ═════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: var(--sp-24);
  left: 50%;
  translate: -50% 0;
  z-index: 80;
  padding: var(--sp-16) var(--sp-24);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small);
  animation: toast-in var(--dur-slow) var(--ease-out);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-muted) 0%,
    var(--c-stone-200) 50%,
    var(--bg-muted) 100%
  );
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
  border-radius: var(--r-card);
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--sp-16);
  padding: var(--sp-80) var(--sp-24);
  text-align: center;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--r-card);
  color: var(--text-muted);
}

/* ═══ Футер ══════════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding-block: var(--section-sm) var(--sp-40);
}

/* Ярус 1 — полоса доверия: четыре ячейки через вертикальные линии.
   Приём взят из нижней части ROOMLINE и заменяет четыре колонки ссылок:
   именно они и были той дежурной маской, от которой уходим. */
.footer__trust {
  display: grid;
  gap: var(--sp-24);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .footer__trust { grid-template-columns: repeat(4, 1fr); }
  .footer__trust > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: var(--sp-32);
  }
}

.footer__trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--sp-16);
  align-items: start;
}

.footer__trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--c-stone-400);
  grid-row: span 2;
}

.footer__trust-item .t-caption { color: var(--text-inverse); }
.footer__trust-item p:last-child {
  font-size: var(--fs-small);
  color: var(--c-stone-400);
  margin-top: 2px;
}

/* Ярус 2 — вордмарк во всю ширину контейнера. */
.footer__wordmark {
  margin-top: var(--sp-80);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  text-align: center;
  color: var(--text-inverse);
  white-space: nowrap;
}

/* Ярус 3 — ссылки строкой через разделители, а не колонками. */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-16);
  margin-top: var(--sp-40);
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--c-stone-200);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover { color: var(--text-inverse); }

.footer__links li + li::before {
  content: '·';
  margin-right: var(--sp-16);
  color: var(--c-stone-600);
}

/* display:contents у ul не снимает маркеры с li — гасим явно. */
.footer__links ul { display: contents; }
.footer__links li { list-style: none; }

.footer__bottom {
  /* Базовое p { max-width } обрезало бы и текст, и линию над ним. */
  max-width: none;
  margin-top: var(--sp-64);
  padding-top: var(--sp-24);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-small);
  color: var(--c-stone-400);
}

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

.to-top {
  position: fixed;
  right: var(--sp-24);
  bottom: var(--sp-24);
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-bar {
  position: fixed;
  inset-inline: var(--sp-24);
  bottom: var(--sp-24);
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding: var(--sp-20) var(--sp-24);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small);
}

/* ── design-system/utilities.css */
/* Утилиты. Немного и по делу — система компонентная, а не утилитарная. */

/* ─── Отступы ────────────────────────────────────────────────────────────── */

.mt-8   { margin-top: var(--sp-8); }
.mt-16  { margin-top: var(--sp-16); }
.mt-24  { margin-top: var(--sp-24); }
.mt-32  { margin-top: var(--sp-32); }
.mt-48  { margin-top: var(--sp-48); }
.mt-64  { margin-top: var(--sp-64); }
.mt-80  { margin-top: var(--sp-80); }

.mb-8   { margin-bottom: var(--sp-8); }
.mb-16  { margin-bottom: var(--sp-16); }
.mb-24  { margin-bottom: var(--sp-24); }
.mb-32  { margin-bottom: var(--sp-32); }
.mb-48  { margin-bottom: var(--sp-48); }

.p-24 { padding: var(--sp-24); }
.p-32 { padding: var(--sp-32); }
.p-48 { padding: var(--sp-48); }

/* ─── Поверхности ────────────────────────────────────────────────────────── */

.surface {
  background: var(--bg-surface);
  border-radius: var(--r-card);
  border: 1px solid var(--border-subtle);
}

.surface-muted {
  background: var(--bg-muted);
  border-radius: var(--r-card);
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* ─── Изображения ────────────────────────────────────────────────────────── */

.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-4-5  { aspect-ratio: 4 / 5; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Обёртка, обрезающая зум фото на ховере. */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}

/* ─── Текст ──────────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.uppercase   { text-transform: uppercase; }
.nowrap      { white-space: nowrap; }
.balance     { text-wrap: balance; }

.measure      { max-width: var(--measure-text); }
.measure-none { max-width: none; }

/* ─── Доступность ────────────────────────────────────────────────────────── */

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

.skip-link {
  position: absolute;
  top: var(--sp-8);
  left: var(--sp-8);
  z-index: 100;
  padding: var(--sp-12) var(--sp-20);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--r-pill);
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus-visible { transform: none; }

/* ─── Видимость по брейкпоинтам ──────────────────────────────────────────── */

@media (max-width: 767px)  { .hide-sm { display: none !important; } }
@media (min-width: 768px)  { .show-sm-only { display: none !important; } }
@media (max-width: 1023px) { .hide-md { display: none !important; } }

/* ── site-src/css/site.css */
/* dedon-patio-furniture.com — сайт поверх дизайн-системы Dedon.
   Всё ниже написано под колонку Dedon в DESIGN-MATRIX.md: шапка «логотип слева,
   меню левее центра, иконки справа», шторка из-под шапки с пилюлями, ховеры
   «цвет в мох + стрелка 6px», «пилюля темнеет», «подложка стоит, фото зумится»,
   подвал «полоса доверия + вордмарк». Mobile-first, базовая ширина 360. */

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { overflow-x: hidden; }
main { display: block; }

/* ═══ Шапка ═════════════════════════════════════════════════════════════ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--text-primary);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

/* Прозрачная поверх героя до первого скролла или открытой шторки. */
.topbar--glass:not(.is-stuck):not(.is-open) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--text-inverse);
}

.topbar--glass ~ main > .stage:first-child { margin-top: calc(var(--header-h) * -1 - 1px); }

.topbar__row {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  flex: 0 0 auto;
}

.wordmark svg { width: 22px; height: 22px; }

/* Меню кучкой левее центра: сразу за логотипом, до правого края далеко. */
.topnav {
  display: none;
  gap: var(--sp-32);
  margin-left: var(--sp-48);
}

.topnav a {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  padding-block: var(--sp-8);
  transition: color var(--dur-fast) var(--ease-out);
}

.topnav a:hover { color: var(--c-moss); }
.topbar--glass:not(.is-stuck):not(.is-open) .topnav a:hover { color: var(--c-moss-soft); }

/* Текущий раздел — моховая точка под пунктом, не линия. */
.topnav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  background: currentColor;
  translate: -50% 0;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
}

.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  min-width: 44px;
  height: 44px;
  padding-inline: var(--sp-8);
  border-radius: var(--r-pill);
  color: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background-color var(--dur-base) var(--ease-out);
}

.tool svg { width: 20px; height: 20px; flex: 0 0 auto; }
.tool:hover { background: var(--overlay-soft); }

.tool--quote {
  padding-inline: var(--sp-12) var(--sp-16);
  border: 1px solid currentColor;
}

/* Бургер: две планки сходятся в крест, без символа ☰ */
.tool--menu .bars { position: relative; width: 20px; height: 12px; }
.tool--menu .bars::before,
.tool--menu .bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out);
}
.tool--menu .bars::before { top: 1px; }
.tool--menu .bars::after { top: 9px; }
.topbar.is-open [data-sheet-open='menu'] .bars::before { top: 5px; transform: rotate(45deg); }
.topbar.is-open [data-sheet-open='menu'] .bars::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .topnav { display: flex; }
  .tool--menu { display: none; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 1.2rem; gap: var(--sp-8); }
  .tool--quote span { display: none; }
  .tool--quote { padding-inline: var(--sp-8); border-color: transparent; background: var(--overlay-soft); }
}

/* ═══ Шторка: падает из-под шапки, внутри пилюли категорий ═══════════════ */

.dropsheet {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 2;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  background: var(--bg-page);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--r-card) var(--r-card);
  box-shadow: var(--shadow-lg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-out);
}

.topbar.is-open .dropsheet { clip-path: inset(0 0 0 0); }

.dropsheet__inner {
  display: grid;
  gap: var(--sp-32);
  padding-block: var(--sp-24) var(--sp-32);
}

.dropsheet__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: 44px;
  padding: var(--sp-8) var(--sp-20);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.pill:hover { background: var(--bg-muted); border-color: var(--border-strong); }
.pill[aria-pressed='true'], .pill.is-active { background: var(--bg-accent); border-color: var(--c-moss); }
.pill small { color: var(--text-muted); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }

.finder label { display: block; margin-bottom: var(--sp-8); }
.finder__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-16);
  margin-top: var(--sp-16);
  list-style: none;
  padding: 0;
}
.finder__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--fs-small);
  transition: color var(--dur-fast) var(--ease-out);
}
.finder__list a:hover { color: var(--c-moss); }
.finder__empty { margin-top: var(--sp-16); color: var(--text-muted); }

.dropsheet__links { display: grid; gap: var(--sp-4); list-style: none; padding: 0; }
.dropsheet__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color var(--dur-fast) var(--ease-out);
}
.dropsheet__links a .arrow { transition: transform var(--dur-base) var(--ease-out); font-size: 1rem; }
.dropsheet__links a:hover { color: var(--c-moss); }
.dropsheet__links a:hover .arrow { transform: translateX(var(--hover-arrow-shift)); }

@media (min-width: 768px) {
  .finder__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dropsheet__inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .dropsheet__inner > .dropsheet__pills, .dropsheet__inner > .finder { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  /* На десктопе шторку открывает только поиск: разделы уже стоят в шапке */
  .dropsheet__links, .dropsheet__cta { display: none; }
}

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.sheet-scrim.is-on { opacity: 1; pointer-events: auto; }

/* ═══ Герой главной ═════════════════════════════════════════════════════ */

.stage {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-inverse);
}

.stage__media { position: absolute; inset: 0; z-index: -2; }
.stage__media img { width: 100%; height: 100%; object-fit: cover; }
.stage__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(26, 25, 23, 0.55) 0%, transparent 30%),
    linear-gradient(to top, rgba(26, 25, 23, 0.72) 0%, rgba(26, 25, 23, 0.25) 50%, transparent 75%);
}

.stage__copy {
  display: grid;
  gap: var(--sp-20);
  justify-items: start;
  padding-block: var(--sp-120) var(--sp-96);
  max-width: 980px;
}

.stage__copy .t-caption { color: var(--c-sand-100); }
.stage__copy h1 { color: var(--text-inverse); font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: 1.04; letter-spacing: -0.02em; }
.stage__copy p { color: var(--c-sand-100); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); max-width: 60ch; }
.stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-16) var(--sp-24); }
.stage .link-arrow { color: var(--text-inverse); }
.stage .link-arrow:hover { color: var(--c-moss-soft); }

/* Рельс категорий наезжает на низ героя — приём ROOMLINE из DESIGN.md */
.rail {
  position: relative;
  z-index: 3;
  margin-top: -36px;
  padding: var(--sp-8);
  background: var(--bg-surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.rail__row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.rail__row::-webkit-scrollbar { display: none; }
.rail .pill { border-color: transparent; background: transparent; scroll-snap-align: start; white-space: nowrap; flex: 0 0 auto; }
.rail .pill:hover { background: var(--bg-muted); }
.rail .pill.is-active { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.rail__all { margin-left: auto; padding-inline: var(--sp-16); white-space: nowrap; }

@media (min-width: 768px) {
  .rail { border-radius: var(--r-pill); padding: var(--sp-12); }
}

/* ═══ Шапка внутренних страниц: текст слева, кадр справа ════════════════ */

.lede {
  display: grid;
  gap: var(--sp-32);
  padding-block: var(--sp-32) var(--sp-64);
}

.lede__text { display: grid; gap: var(--sp-20); align-content: start; }
.lede__text h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.lede__text .t-lead { max-width: 58ch; }
.lede__media { position: relative; overflow: hidden; background: var(--bg-muted); aspect-ratio: 4 / 3; }
.lede__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.lede__media:hover img { transform: scale(var(--hover-photo-scale)); }
.lede__cta { display: flex; flex-wrap: wrap; gap: var(--sp-12) var(--sp-24); align-items: center; }

@media (min-width: 1024px) {
  .lede { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter-lg); padding-block: var(--sp-48) var(--sp-96); }
  .lede__text { grid-column: 1 / span 5; padding-top: var(--sp-32); }
  .lede__media { grid-column: 7 / span 6; aspect-ratio: 5 / 6; }
  .lede--wide .lede__text { grid-column: 1 / span 6; }
  .lede--wide .lede__media { grid-column: 8 / span 5; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: var(--sp-8); list-style: none; padding: 0; font-size: var(--fs-small); color: var(--text-muted); }
.crumbs li + li::before { content: '/'; margin-right: var(--sp-8); color: var(--c-stone-400); }
.crumbs a { transition: color var(--dur-fast) var(--ease-out); }
.crumbs a:hover { color: var(--c-moss); }

/* ═══ Секции ════════════════════════════════════════════════════════════ */

.band { padding-block: var(--section-sm); }
.band--sand { background: var(--bg-muted); }
.band--white { background: var(--bg-surface); }
.band--tight { padding-block: var(--sp-64); }
@media (min-width: 768px) { .band { padding-block: var(--section-md); } }
@media (min-width: 1280px) { .band { padding-block: 136px; } }

.headrow {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-16) var(--sp-32);
  margin-bottom: var(--sp-40);
}
.headrow > div { display: grid; gap: var(--sp-12); max-width: 760px; }
.headrow p:not(.t-caption) { color: var(--text-secondary); }

.split { display: grid; gap: var(--sp-40); }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter-lg); align-items: start; }
  .split > :first-child { grid-column: 1 / span 6; }
  .split > :last-child { grid-column: 8 / span 5; }
  .split--flip > :first-child { grid-column: 7 / span 6; order: 2; }
  .split--flip > :last-child { grid-column: 1 / span 5; order: 1; }
}

.copy { display: grid; gap: var(--sp-20); color: var(--text-secondary); }
.copy h2, .copy h3 { color: var(--text-primary); }
.copy h3 { margin-top: var(--sp-16); }
.copy ul { display: grid; gap: var(--sp-8); padding-left: 0; list-style: none; }
.copy ul li { position: relative; padding-left: var(--sp-24); }
.copy ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--c-moss); }
.copy a { color: var(--text-link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color var(--dur-fast) var(--ease-out); }
.copy a:hover { color: var(--c-moss-deep); }

.photo { position: relative; overflow: hidden; background: var(--bg-muted); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.photo:hover img { transform: scale(var(--hover-photo-scale)); }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--tall { aspect-ratio: 4 / 5; }
figure.photo figcaption { position: absolute; left: var(--sp-16); bottom: var(--sp-16); padding: var(--sp-4) var(--sp-12); border-radius: var(--r-pill); background: var(--bg-surface); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; color: var(--text-secondary); }

/* ═══ «Лесенка» коллекций ═══════════════════════════════════════════════ */

.card-collection { position: relative; }
.card-collection a.card-collection__link::after { content: ''; position: absolute; inset: 0; }
.card-collection__media { aspect-ratio: 4 / 5; }
.card-collection__body h3 { font-size: var(--fs-h3); }
.card-collection__tags { color: var(--text-muted); }
.card-collection:hover h3 { color: var(--c-moss); }
.card-collection h3 { transition: color var(--dur-fast) var(--ease-out); }
.ladder[data-filterable] > [hidden] { display: none; }

@media (min-width: 768px) {
  /* При фильтре «лесенку» пересчитывает JS: сдвиг ставится по видимому порядку */
  .ladder.is-filtered > * { transform: none; }
  .ladder.is-filtered > .is-down { transform: translateY(var(--stagger)); }
}
@media (min-width: 1280px) {
  .ladder--3.is-filtered > .is-down2 { transform: translateY(calc(var(--stagger) * 2)); }
}

/* ═══ Карточки предметов ════════════════════════════════════════════════ */

.pieces {
  display: grid;
  gap: var(--sp-16);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}
@media (min-width: 768px) { .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter-lg); } }
@media (min-width: 1280px) { .pieces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pieces .card-model { padding: var(--sp-8); }
.pieces .card-model__media { background: #fff; }
.pieces .card-model__media img { object-fit: contain; }
.pieces .card-model__title { font-size: 1.0625rem; font-weight: 500; font-family: var(--font-body); padding: 0 var(--sp-8) var(--sp-8); }

/* ═══ Галерея: лента со снапом ══════════════════════════════════════════ */

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: var(--sp-16);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-16);
  scrollbar-width: thin;
  list-style: none;
  padding-left: 0;
}
.strip > * { scroll-snap-align: start; }
.strip .photo { aspect-ratio: 16 / 10; }
@media (min-width: 768px) { .strip { grid-auto-columns: 58%; gap: var(--gutter-lg); } }
@media (min-width: 1280px) { .strip { grid-auto-columns: 44%; } }

/* ═══ Таблицы: остаются таблицами, скроллятся внутри своей рамки ════════ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  background: var(--bg-surface);
}
.table-wrap:focus-visible { outline-offset: 4px; }
.table-wrap table { min-width: 620px; font-size: var(--fs-small); }
.table-wrap caption { text-align: left; padding: var(--sp-16) var(--sp-20) 0; color: var(--text-muted); font-size: var(--fs-small); }
.table-wrap th, .table-wrap td { padding: var(--sp-12) var(--sp-20); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.table-wrap thead th { font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; color: var(--text-muted); font-weight: 500; background: var(--bg-surface); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody th { font-weight: 500; color: var(--text-primary); }
.table-wrap td { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.table-wrap a { color: var(--text-link); transition: color var(--dur-fast) var(--ease-out); }
.table-wrap a:hover { color: var(--c-moss-deep); }
/* Первая колонка закреплена на узком экране */
.table-wrap tbody th:first-child, .table-wrap thead th:first-child { position: sticky; left: 0; background: var(--bg-surface); z-index: 1; }
.table-note { margin-top: var(--sp-12); font-size: var(--fs-small); color: var(--text-muted); }

/* ═══ Инфографика: схемы на креме ═══════════════════════════════════════ */

.infographic {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  background: var(--bg-page);
  padding: var(--sp-24);
}
.infographic__title { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 600; }
.infographic__note { margin-top: var(--sp-16); font-size: var(--fs-small); color: var(--text-muted); }
@media (min-width: 768px) { .infographic { padding: var(--sp-40); } }

/* Маршрут: узлы на линии. Вертикально на телефоне, горизонтально с 768 */
.ig-route { list-style: none; padding: 0; margin-top: var(--sp-24); display: grid; gap: 0; counter-reset: node; }
.ig-route li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: var(--sp-16); padding-bottom: var(--sp-24); }
.ig-route li::before {
  counter-increment: node;
  content: counter(node, decimal-leading-zero);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-moss);
  background: var(--bg-surface);
  color: var(--c-moss);
  font-size: var(--fs-caption);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  grid-row: span 3;
  position: relative;
  z-index: 1;
}
.ig-route li::after { content: ''; position: absolute; left: 20px; top: 40px; bottom: 0; width: 1px; background: var(--c-moss); opacity: 0.5; }
.ig-route li:last-child::after { display: none; }
.ig-route li:last-child { padding-bottom: 0; }
.ig-route .ig-place { font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }
.ig-route .ig-head { font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; margin-top: 2px; }
.ig-route .ig-fact { font-size: var(--fs-small); color: var(--text-secondary); margin-top: var(--sp-4); }
.ig-route .ig-num { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; color: var(--c-moss); font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .ig-route { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--sp-24); }
  .ig-route li { grid-template-columns: 1fr; row-gap: var(--sp-8); padding-bottom: 0; align-content: start; }
  .ig-route li::before { grid-row: auto; }
  .ig-route li::after { left: 40px; right: calc(var(--sp-24) * -1); top: 20px; bottom: auto; width: auto; height: 1px; }
}

/* Разрез: слои изделия от лица к основанию */
.ig-layers { list-style: none; padding: 0; margin-top: var(--sp-24); display: grid; gap: var(--sp-8); }
.ig-layers li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: var(--sp-16);
  align-items: start;
  padding: var(--sp-16);
  border-radius: var(--r-input);
  background: var(--bg-surface);
  border-left: 6px solid var(--layer, var(--c-moss));
}
.ig-layers li:nth-child(1) { --layer: #4A5240; margin-right: 0; }
.ig-layers li:nth-child(2) { --layer: #6E7560; margin-right: 4%; }
.ig-layers li:nth-child(3) { --layer: #9E5438; margin-right: 8%; }
.ig-layers li:nth-child(4) { --layer: #A9A29A; margin-right: 12%; }
.ig-layers li:nth-child(5) { --layer: #3D3A35; margin-right: 16%; }
.ig-layers .ig-idx { font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--ls-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.ig-layers strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; }
.ig-layers span.ig-text { display: block; margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--text-secondary); }

/* Полосы: доли и счёт */
.ig-bars { list-style: none; padding: 0; margin-top: var(--sp-24); display: grid; gap: var(--sp-16); }
.ig-bars li { display: grid; gap: var(--sp-8); }
.ig-bars .ig-label { display: flex; justify-content: space-between; gap: var(--sp-16); font-size: var(--fs-small); }
.ig-bars .ig-label b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ig-bars .ig-track { height: 12px; border-radius: var(--r-pill); background: var(--bg-muted); overflow: hidden; }
.ig-bars .ig-fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--c-moss); width: var(--w, 0%); transform-origin: left; }
.js .ig-bars .ig-fill { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.js .ig-bars.is-in .ig-fill { transform: scaleX(1); }

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

.faq { display: grid; gap: var(--sp-8); }
.faq details { background: var(--bg-surface); border-radius: var(--r-card); border: 1px solid var(--border-subtle); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-16);
  min-height: 56px; padding: var(--sp-16) var(--sp-20);
  cursor: pointer; list-style: none; font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.25rem; color: var(--c-moss); transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--c-moss); }
.faq details p { padding: 0 var(--sp-20) var(--sp-20); color: var(--text-secondary); }

/* ═══ Дизайнер коллекции ════════════════════════════════════════════════ */

.byline-card { display: grid; gap: var(--sp-24); align-items: center; }
.byline-card .card-designer__media { aspect-ratio: 16 / 9; }
.byline-card blockquote { font-family: var(--font-heading); font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; }
@media (min-width: 1024px) {
  .byline-card { grid-template-columns: 7fr 5fr; gap: var(--gutter-lg); }
}

.people { display: grid; gap: var(--gutter-lg); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; padding: 0; }
.people .card-designer__media { aspect-ratio: 4 / 3; }
.people h3 { font-size: 1.25rem; }
.people p { font-size: var(--fs-small); color: var(--text-secondary); }
.people .card-designer a { transition: color var(--dur-fast) var(--ease-out); }
.people .card-designer a:hover { color: var(--c-moss); }

/* ═══ Форма запроса ═════════════════════════════════════════════════════ */

.quote-block { display: grid; gap: var(--sp-40); }
@media (min-width: 1024px) {
  .quote-block { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter-lg); }
  .quote-block > :first-child { grid-column: 1 / span 5; }
  .quote-block > :last-child { grid-column: 7 / span 6; }
}
.after-send { display: grid; gap: var(--sp-12); list-style: none; padding: 0; margin-top: var(--sp-24); }
.after-send li { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-12); font-size: var(--fs-small); color: var(--text-secondary); }
.after-send li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--bg-accent); color: var(--c-moss); font-weight: 600; font-size: var(--fs-caption); }

.leadform { display: grid; gap: var(--sp-20); padding: var(--sp-24); background: var(--bg-surface); border-radius: var(--r-card); border: 1px solid var(--border-subtle); }
@media (min-width: 768px) {
  .leadform { grid-template-columns: 1fr 1fr; padding: var(--sp-40); }
  .leadform > .field--full, .leadform > .leadform__foot, .leadform > .cf-turnstile, .leadform > .leadform__status { grid-column: 1 / -1; }
}
.leadform .input, .leadform .select, .leadform .textarea { font-size: 16px; }
.leadform .input:focus-visible, .leadform .select:focus-visible, .leadform .textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--c-moss); }
.leadform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.leadform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-16); }
.leadform__foot .btn { min-width: 200px; }
@media (max-width: 767px) { .leadform__foot .btn { width: 100%; } }
.leadform__status { font-size: var(--fs-small); min-height: 1.5em; }
.leadform__status[data-state='ok'] { color: var(--c-moss); font-weight: 500; }
.leadform__status[data-state='error'] { color: var(--error); }
.leadform__status a { color: inherit; text-decoration: underline; }
.leadform .t-small { color: var(--text-muted); }

/* ═══ Turntable: кресло меняет цвет плетения по мере прокрутки ══════════ */

.spin { position: relative; }
.spin__scene { height: 260svh; }
.spin__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  gap: var(--sp-24);
}
.spin__grid { display: grid; gap: var(--sp-24); align-items: center; }
.spin__stage { position: relative; aspect-ratio: 3 / 2; background: #fff; border-radius: 0; overflow: hidden; }
.spin__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.spin__stage img:first-child { opacity: 1; }
.spin__dial { display: flex; flex-wrap: wrap; gap: var(--sp-8); list-style: none; padding: 0; }
.spin__dial li { padding: var(--sp-4) var(--sp-12); border-radius: var(--r-pill); border: 1px solid var(--border-subtle); font-size: var(--fs-small); color: var(--text-muted); transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.spin__dial li.is-on { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.spin__progress { height: 2px; background: var(--border-subtle); border-radius: var(--r-pill); overflow: hidden; }
.spin__progress i { display: block; height: 100%; background: var(--c-moss); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (min-width: 1024px) { .spin__grid { grid-template-columns: 5fr 7fr; gap: var(--gutter-lg); } }
/* Без JS, на телефоне и при reduced-motion — статичный кадр без залипания */
.no-spin .spin__scene { height: auto; }
.no-spin .spin__sticky { position: static; height: auto; padding-block: var(--section-sm); }

/* ═══ Появление ═════════════════════════════════════════════════════════ */

.js .rise { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rise.is-in { opacity: 1; transform: none; }

/* ═══ Подвал: полоса доверия, вордмарк, ссылки строкой ══════════════════ */

.basefoot { background: var(--bg-inverse); color: var(--text-inverse); padding-block: var(--sp-64) var(--sp-32); margin-top: 0; }
.trustbar { display: grid; gap: var(--sp-24); grid-template-columns: 1fr; list-style: none; padding: 0; }
.trustbar li { display: grid; grid-template-columns: 24px 1fr; column-gap: var(--sp-16); }
.trustbar svg { width: 22px; height: 22px; color: var(--c-stone-400); grid-row: span 2; }
.trustbar b { font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; font-weight: 500; }
.trustbar span { font-size: var(--fs-small); color: var(--c-stone-400); }
@media (min-width: 600px) { .trustbar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .trustbar { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .trustbar li { padding-inline: var(--sp-32); }
  .trustbar li:first-child { padding-left: 0; }
  .trustbar li + li { border-left: 1px solid rgba(255, 255, 255, 0.14); }
}

.basefoot__word {
  margin-top: var(--sp-64);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(3.25rem, 17vw, 15.5rem);
  line-height: 0.82;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  color: var(--text-inverse);
  max-width: none;
  user-select: none;
}

.basefoot__links { margin-top: var(--sp-40); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-8) var(--sp-16); list-style: none; padding: 0; }
.basefoot__links li + li::before { content: '/'; margin-right: var(--sp-16); color: var(--c-stone-600); }
.basefoot__links a { font-size: var(--fs-small); color: var(--c-stone-200); display: inline-flex; min-height: 32px; align-items: center; transition: color var(--dur-fast) var(--ease-out); }
.basefoot__links a:hover { color: var(--c-moss-soft); }
.basefoot__legal { max-width: none; margin-top: var(--sp-40); padding-top: var(--sp-24); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--fs-small); color: var(--c-stone-400); text-align: center; }
.basefoot__legal a { color: var(--c-stone-200); text-decoration: underline; }

/* ═══ Мелочи ════════════════════════════════════════════════════════════ */

.chips-static { display: flex; flex-wrap: wrap; gap: var(--sp-8); list-style: none; padding: 0; }
.chips-static li { padding: var(--sp-4) var(--sp-12); border-radius: var(--r-pill); background: var(--bg-surface); border: 1px solid var(--border-subtle); font-size: var(--fs-small); }
.glance { display: grid; gap: 0; border-top: 1px solid var(--border-subtle); }
.glance div { display: grid; grid-template-columns: 38% 1fr; gap: var(--sp-16); padding-block: var(--sp-12); border-bottom: 1px solid var(--border-subtle); font-size: var(--fs-small); }
.glance dt { color: var(--text-muted); }
.glance dd { margin: 0; color: var(--text-primary); }
.stamp { display: inline-flex; align-items: center; gap: var(--sp-8); padding: var(--sp-4) var(--sp-12); border-radius: var(--r-pill); background: var(--bg-accent); color: var(--c-moss-deep); font-size: var(--fs-small); font-weight: 500; }
.badge { background: var(--c-clay); }
.stack-lg > * + * { margin-top: var(--sp-64); }
.stack-md > * + * { margin-top: var(--sp-40); }
.mt-40 { margin-top: var(--sp-40); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .rise { opacity: 1; transform: none; }
  .js .ig-bars .ig-fill { transform: none; }
  .dropsheet { transition: none; }
}

/* Рельс фильтра внутри страницы: без наезда на героя */
.rail--flat { margin-top: 0; box-shadow: none; border: 1px solid var(--border-subtle); }
.mb-48 { margin-bottom: var(--sp-48); }
@media (min-width: 1024px) {
  .lede--solo .lede__text { grid-column: 1 / span 8; }
}

/* Ссылки внутри навигационных блоков: без базового подчёркивания текста */
.topnav a, .crumbs a, .finder__list a, .dropsheet__links a, .basefoot__links a,
.glance a, .people a, .table-wrap a, .card-collection a { text-decoration: none; }
.table-wrap a, .glance a { color: var(--text-link); }
.people a:hover, .glance a:hover { color: var(--c-moss-deep); }

/* <picture> не должен ломать рамки кадров: картинка ведёт себя как прямой ребёнок рамки */
picture { display: contents; }
.people .card-designer__media img, .byline-card .card-designer__media img { object-position: 50% 20%; }
.topnav a { color: inherit; }
/* Turnstile не уже 300px: на узком экране форма теряет рамку и внутренние поля */
@media (max-width: 479px) {
  .leadform { padding: 0; border: 0; background: transparent; }
  .quote-block > * { min-width: 0; }
}
.cf-turnstile { min-height: 65px; max-width: 100%; }
.dropsheet__pills { list-style: none; padding: 0; margin: 0; }
.table-block { min-width: 0; }
.spec-grid { display: grid; gap: var(--sp-40); }
@media (min-width: 1280px) { .spec-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
