/* Кухни Стайл — демо-концепция редизайна
   Палитра: графит, белый, светлый дуб, латунь. Шрифты: Prata (заголовки), Golos Text (текст). */

/* Шрифты лежат на своём сервере (fonts/), без обращений к Google — 152-ФЗ.
   Golos Text вариативный: один файл на набор символов покрывает 400–600. */
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/golos-text-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/golos-text-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;
}
@font-face {
  font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/prata-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/prata-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;
}

:root {
  /* Цвета */
  --graphite: #23211e;
  --graphite-2: #2f2c28;
  --graphite-3: #3d3933;
  --ink: #23211e;
  --ink-soft: #524c45;
  --paper: #faf9f6;
  --white: #ffffff;
  --oak: #ece3d4;
  --oak-2: #e2d5c0;
  --oak-line: #c8b393;
  --brass: #b8873e;
  --brass-hover: #c99851;
  --brass-ink: #23211e;
  --brass-on-dark: #d4a862;
  --line: rgba(35, 33, 30, 0.16);
  --line-strong: rgba(35, 33, 30, 0.32);
  --on-dark: #f3efe8;
  --on-dark-soft: #bdb5a9;
  --line-dark: rgba(243, 239, 232, 0.2);
  --error: #a63d2a;
  --error-on-dark: #f0a08c;
  --todo-bg: #fff3c4;
  --todo-ink: #5a4300;

  /* Шрифты */
  --font-display: "Prata", "Georgia", "Times New Roman", serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Размеры текста */
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.9rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(1.875rem, 1rem + 4.4vw, 4.75rem);

  /* Отступы */
  --gutter: 16px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --section: clamp(72px, 6vw + 48px, 136px);
  --wrap: 1240px;

  /* Формы */
  --r-handle: 999px;
  --r-sm: 4px;
  --r-md: 8px;

  /* Движение */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  /* Слои */
  --z-header: 40;
  --z-bar: 50;
  --z-cookie: 60;

  --header-h: 92px;
  --shadow: 0 10px 30px -12px rgba(35, 33, 30, 0.28);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 104px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

/* База */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) - 8px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
  padding-bottom: 72px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, p, li, dd, legend, label { overflow-wrap: break-word; }
.quiz-layout, .why-layout, .reviews-layout, .showroom-layout, .faq-layout, .final-layout, .footer-grid, .review-list, .steps-list { grid-template-columns: minmax(0, 1fr); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
a[href^="tel:"] { white-space: nowrap; }
.nowrap { white-space: nowrap; }
input, select, textarea { font: inherit; }
::selection { background: var(--oak-2); color: var(--graphite); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
html { scrollbar-color: var(--oak-line) var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 40px; height: 40px; }

.skip-link {
  position: absolute; left: var(--s-4); top: 0; z-index: 100; transform: translateY(-120%);
  background: var(--graphite); color: var(--on-dark); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
}
.skip-link:focus { transform: translateY(var(--s-4)); }

.todo {
  display: inline; background: var(--todo-bg); color: var(--todo-ink);
  font-size: 0.9em; font-weight: 500; padding: 0.05em 0.35em; border-radius: 3px;
  outline: 1px dashed #b38a00; outline-offset: -1px;
}

/* Кнопки — форма «мебельной ручки» */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: var(--r-handle);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-brass { background: var(--brass); color: var(--brass-ink); }
.btn-dark { background: var(--graphite); color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn-brass:hover:not(:disabled) { background: var(--brass-hover); }
  .btn-dark:hover { background: var(--graphite-3); }
  .btn-outline:hover { border-color: var(--ink); }
  .btn-ghost-light:hover:not(:disabled) { border-color: var(--on-dark); }
}

.text-link {
  color: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--oak-line);
  transition: text-decoration-color var(--t-fast) ease;
}
.text-link:hover { text-decoration-color: currentColor; }
.link-light {
  color: var(--on-dark); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(243, 239, 232, 0.5);
  padding: 12px 4px; transition: text-decoration-color var(--t-fast) ease;
}
.link-light:hover { text-decoration-color: var(--on-dark); }
.link-button { background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 0.2em; }

/* Размерная линия — фирменный элемент */
.dim { position: relative; display: flex; align-items: center; gap: 10px; height: 28px; color: var(--ink-soft); }
.dim::before, .dim::after { content: ""; flex: 1 1 0; min-width: 12px; height: 1px; background: currentColor; }
.dim::before { transform-origin: right; }
.dim::after { transform-origin: left; }
.dim-line { position: absolute; inset: 0; pointer-events: none; }
.dim-line::before, .dim-line::after {
  content: ""; position: absolute; top: 50%; width: 1px; height: 17px; margin-top: -8px; background: currentColor;
}
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }
.dim-label { flex: none; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* Шапка */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--on-dark);
  transition: background-color var(--t-med) ease, color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.demo-bar {
  background: var(--graphite); color: var(--on-dark-soft);
  font-size: 0.75rem; line-height: 1.3; text-align: center; padding: 5px var(--gutter);
}
.header-row { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.brand { display: block; flex: none; width: 96px; }
.brand img { width: 100%; height: auto; }
.brand-dark { display: none; }
.site-header.is-solid { background: rgba(250, 249, 246, 0.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-solid { background: rgba(250, 249, 246, 0.86); backdrop-filter: blur(12px) saturate(1.2); }
}
.site-header.is-solid .brand-light, .site-header.nav-open .brand-light { display: none; }
.site-header.is-solid .brand-dark, .site-header.nav-open .brand-dark { display: block; }

.main-nav { display: none; }
.header-phone { display: none; }
.header-cta { display: none; }
.burger {
  margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); border-radius: var(--r-handle);
}
.burger-lines, .burger-lines::before, .burger-lines::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) ease;
}
.burger-lines { position: relative; }
.burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger-lines { background: transparent; }
.burger[aria-expanded="true"] .burger-lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
@media (max-width: 1099.98px) {
  /* backdrop-filter делает шапку контейнером для fixed-меню — при открытом меню его убираем */
  .site-header.nav-open { background: var(--paper); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); color: var(--ink);
    padding: var(--s-5) var(--gutter) calc(var(--s-7) + 72px); overflow-y: auto; overscroll-behavior: contain;
    animation: menu-in var(--t-med) var(--ease-out);
  }
  .main-nav ul { display: grid; }
  .main-nav li a {
    display: block; padding: 14px 0; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2;
    text-decoration: none; border-bottom: 1px solid var(--line);
  }
  .nav-extra { margin-top: var(--s-6); }
  .nav-phone { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
  .nav-hours { color: var(--ink-soft); font-size: var(--fs-small); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 768px) {
  .brand { width: 112px; }
  .header-row { height: 76px; }
  .header-phone { display: inline-flex; align-items: center; gap: var(--s-2); margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .header-cta { display: inline-flex; }
  .burger { margin-left: 0; }
}
@media (min-width: 1100px) {
  .burger { display: none; }
  .main-nav { display: block; margin-left: var(--s-5); }
  .main-nav ul { display: flex; gap: clamp(14px, 1.6vw, 26px); }
  .main-nav a { font-size: 0.9375rem; font-weight: 500; text-decoration: none; padding: 8px 0; position: relative; }
  .main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
  }
  .main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-extra { display: none; }
}

/* Первый экран */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + var(--s-6)) 0 var(--s-7);
  background: var(--graphite);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 21, 19, 0.55) 0%, rgba(23, 21, 19, 0.2) 30%, rgba(23, 21, 19, 0.82) 72%, rgba(23, 21, 19, 0.94) 100%);
}
.hero-title { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.015em; max-width: 15ch; }
.hero-lead { margin-top: var(--s-4); max-width: 46ch; color: var(--on-dark); opacity: 0.88; font-size: 1.0625rem; }
.dim-hero { color: var(--brass-on-dark); margin-top: var(--s-6); max-width: 520px; }
.dim-hero .dim-label { color: var(--on-dark); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); font-size: var(--fs-small); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-facts .icon { color: var(--on-dark-soft); width: 20px; height: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
@media (max-width: 479.98px) {
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 767.98px) {
  .hero { padding-bottom: calc(var(--s-6) + 72px); }
}
@media (min-width: 1100px) {
  .hero { padding-bottom: var(--s-8); }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(23, 21, 19, 0.88) 0%, rgba(23, 21, 19, 0.6) 45%, rgba(23, 21, 19, 0.1) 80%),
      linear-gradient(180deg, rgba(23, 21, 19, 0.5) 0%, transparent 25%, transparent 70%, rgba(23, 21, 19, 0.6) 100%);
  }
  .hero-bg { object-position: center 35%; }
}

/* Загрузка первого экрана — одна срежиссированная сцена */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title, .js .hero-lead, .js .hero-facts, .js .hero-actions { animation: rise 900ms var(--ease-out) both; }
  .js .hero-lead { animation-delay: 120ms; }
  .js .hero-facts { animation-delay: 900ms; }
  .js .hero-actions { animation-delay: 1000ms; }
  .js .dim-hero::before, .js .dim-hero::after { animation: draw 900ms var(--ease-in-out) 450ms both; }
  .js .dim-hero .dim-label { animation: fade 500ms ease 250ms both; }
  .js .dim-hero .dim-line { animation: fade 300ms ease 1250ms both; }
  .js .hero-bg { animation: settle 1800ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.06); opacity: 0.6; } }

/* Секции */
.section { padding-block: var(--section); }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-sub { margin-top: var(--s-4); color: var(--ink-soft); max-width: 60ch; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); }
.fineprint { margin-top: var(--s-6); font-size: var(--fs-xs); color: var(--ink-soft); max-width: 70ch; }

/* Что делаем */
.services { background: var(--paper); }
.service-media { margin: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--oak); }
.service-media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service:hover .service-media img { transform: scale(1.03); }
}
.service-body { display: flex; flex-direction: column; gap: var(--s-4); padding-top: var(--s-5); }
.service-body > p { color: var(--ink-soft); max-width: 52ch; }
.service-main h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; }
.price-ruler { margin-top: var(--s-2); }
.price-ruler .dim { max-width: 260px; color: var(--oak-line); }
.price-ruler .dim-label { color: var(--ink-soft); }
.price-main { margin-top: var(--s-2); font-size: 1.125rem; }
.price-main strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price-list { border-top: 1px solid var(--line); }
.price-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.price-list li span:first-child { min-width: 0; flex: 1 1 12ch; }
.price-list li span:last-child { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-body .btn { align-self: flex-start; margin-top: var(--s-2); }
.service-body .text-link { align-self: flex-start; padding-block: 10px; }
.service-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); margin-top: var(--s-8); }
.service-small .service-media img { aspect-ratio: 4 / 3; }

@media (min-width: 768px) {
  .service-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
  .service-small .price-list li { flex-direction: column; gap: 2px; }
}
@media (min-width: 1100px) {
  .service-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
  .service-main .service-body { padding-top: 0; }
  .service-pair { grid-template-columns: 5fr 4fr; align-items: start; margin-top: var(--s-8); }
  .service-pair .service:last-child { margin-top: var(--s-8); }
}

/* Портфолио */
.portfolio { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border-radius: var(--r-handle); border: 1px solid var(--line-strong); background: transparent; font-weight: 500; font-size: 0.9375rem;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip-count { font-size: var(--fs-xs); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.chip[aria-pressed="true"] .chip-count { color: var(--on-dark-soft); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; grid-auto-flow: dense; }
.g-item[hidden] { display: none; }
.g-item button { display: block; width: 100%; padding: 0; border: 0; background: var(--oak); border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 600ms var(--ease-out), opacity var(--t-med) ease; }
.g-big { grid-column: span 2; }
.g-item.is-entering { animation: fade 240ms ease both; }
@media (hover: hover) and (pointer: fine) { .g-item button:hover img { transform: scale(1.04); } }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .g-big { grid-row: span 2; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
.portfolio-more { margin-top: var(--s-6); color: var(--ink-soft); }

/* Квиз */
.quiz-section { background: var(--graphite); color: var(--on-dark); --dim-bg: var(--graphite); }
.quiz-layout { display: grid; gap: var(--s-7); }
.quiz-intro p { color: var(--on-dark-soft); margin-top: var(--s-4); max-width: 44ch; }
.estimate { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); max-width: 420px; }
.estimate[hidden] { display: none; }
.estimate .estimate-label { margin: 0; font-size: var(--fs-small); color: var(--on-dark-soft); }
.estimate .estimate-value { margin: var(--s-2) 0 0; font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.estimate .estimate-note { margin-top: var(--s-3); font-size: var(--fs-xs); }

.quiz { background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: var(--s-5) var(--s-4); }
.quiz-progress { margin-bottom: var(--s-5); }
.quiz-step-label { font-size: var(--fs-small); color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.quiz-bar { height: 2px; background: var(--line-dark); margin-top: var(--s-2); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 100%; background: var(--brass-on-dark); transform-origin: left; transform: scaleX(0.2); transition: transform 420ms var(--ease-out); }
.quiz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-step[hidden] { display: none; }
.quiz-step.is-entering { animation: fade 220ms ease both; }
.quiz legend { font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.2; margin-bottom: var(--s-5); padding: 0; }
.hint { color: var(--on-dark-soft); font-size: var(--fs-small); margin: calc(var(--s-3) * -1) 0 var(--s-5); max-width: 52ch; }

.option {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  padding: 14px 16px; min-height: 56px;
  border: 1px solid var(--line-dark); border-radius: var(--r-md); cursor: pointer;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.option:active { transform: scale(0.985); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option b { display: block; font-weight: 600; }
.option small { display: block; color: var(--on-dark-soft); font-size: var(--fs-xs); margin-top: 2px; }
.option-price { margin-left: auto; font-size: var(--fs-small); color: var(--on-dark-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.option:has(input:checked) { border-color: var(--brass-on-dark); background: rgba(212, 168, 98, 0.1); }
.option:has(input:checked) .option-price { color: var(--brass-on-dark); }
.option:has(input:focus-visible) { outline: 2px solid var(--brass-on-dark); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .option:hover { border-color: rgba(243, 239, 232, 0.5); } }
.option-list { display: grid; gap: var(--s-2); }

.shape-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.option-shape { flex-direction: column; align-items: stretch; gap: var(--s-2); padding: 12px; text-align: center; font-weight: 600; }
.option-shape svg { width: 100%; height: auto; aspect-ratio: 120 / 84; fill: none; stroke: var(--on-dark-soft); stroke-width: 1.4; transition: stroke var(--t-fast) ease; }
.option-shape svg .wall { stroke-width: 3; stroke: var(--on-dark-soft); opacity: 0.6; }
.option-shape:has(input:checked) svg { stroke: var(--brass-on-dark); }
.option-shape:has(input:checked) svg .wall { stroke: var(--on-dark); opacity: 1; }
.option-shape:has(input:checked) svg rect, .option-shape:has(input:checked) svg path:not(.wall):not(.dimm) { fill: rgba(212, 168, 98, 0.12); }
.option-shape svg .dimm { stroke: var(--on-dark-soft); stroke-width: 1; opacity: 0.7; fill: none; }
.option-shape:has(input:checked) svg .dimm { stroke: var(--brass-on-dark); opacity: 1; }
.length-dim { padding-block: var(--s-2); }
.dim-length { gap: 0; color: var(--brass-on-dark); width: 37.5%; min-width: 48px; transition: width 260ms var(--ease-out); }

.length-control { display: grid; gap: var(--s-3); }
.length-value { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.length-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--on-dark-soft); }
input[type="range"] { width: 100%; height: 44px; background: transparent; accent-color: var(--brass-on-dark); cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--brass-on-dark) var(--fill, 23%), var(--line-dark) var(--fill, 23%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-dark); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--brass-on-dark); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -13px; border-radius: 50%; background: var(--on-dark); border: 6px solid var(--brass-on-dark); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--on-dark); border: 6px solid var(--brass-on-dark); }
input[type="range"]:disabled { opacity: 0.35; }

.check-inline { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; margin-top: var(--s-4); font-size: var(--fs-small); line-height: 1.45; }
.check-inline input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--brass); cursor: pointer; }
.check-inline a { text-underline-offset: 0.2em; }

.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field input {
  min-height: 52px; padding: 12px 16px; width: 100%;
  border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184, 135, 62, 0.25); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: var(--fs-xs); color: var(--error); font-weight: 500; }
.quiz .field input { background: var(--graphite); border-color: var(--line-dark); color: var(--on-dark); }
.quiz .field input::placeholder { color: var(--on-dark-soft); }
.quiz .field input[aria-invalid="true"] { border-color: var(--error-on-dark); }
.quiz .field-error { color: var(--error-on-dark); }
.consent { margin-top: var(--s-2); }
.consent .check-inline { margin-top: 0; }
.consent-note { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--ink-soft); padding-left: 34px; }
.quiz .consent-note { color: var(--on-dark-soft); }

.quiz-nav { display: flex; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-6); }
.quiz-nav [data-next], .quiz-nav [data-submit] { margin-left: auto; }
.quiz-nav [hidden] { display: none; }
.quiz-disabled-hint { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--on-dark-soft); text-align: right; }
.quiz-disabled-hint[hidden] { display: none; }
.lead-form .quiz-disabled-hint { color: var(--ink-soft); text-align: left; }

.quiz-success, .form-success { text-align: left; padding-block: var(--s-4); }
.quiz-success[hidden], .form-success[hidden] { display: none; }
.quiz-success .icon, .form-success .icon { color: var(--brass-on-dark); margin-bottom: var(--s-3); }
.form-success .icon { color: var(--brass); }
.quiz-success h3, .form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin-bottom: var(--s-3); }
.quiz-success p { color: var(--on-dark-soft); }
.demo-note { margin-top: var(--s-3); font-size: var(--fs-xs); opacity: 0.8; }
.is-done .quiz-progress, .is-done .quiz-nav, .is-done .quiz-disabled-hint { display: none; }
.quiz-success:focus, .form-success:focus { outline: none; }
.is-revealed { animation: fade 300ms ease both; }

@media (min-width: 768px) {
  .quiz { padding: var(--s-7); }
  .shape-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .quiz-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
  .quiz-intro { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* Почему мы */
.why { background: var(--oak); --dim-bg: var(--oak); }
.why-layout { display: grid; gap: var(--s-7); }
.why-media { margin: 0; }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); }
.why-media figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-soft); max-width: 44ch; }
.spec { margin: var(--s-6) 0 0; border-top: 1px solid var(--line-strong); }
.spec > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
.spec dd { margin: 0; display: grid; gap: 2px; }
.spec b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.15; }
.spec dd span { color: var(--ink-soft); font-size: var(--fs-small); }
@media (min-width: 768px) {
  .spec > div { grid-template-columns: 9rem minmax(0, 1fr); column-gap: var(--s-6); align-items: baseline; }
}
@media (min-width: 1100px) {
  .why-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
  .why-media { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

/* Этапы */
.steps { background: var(--paper); }
.steps-list { display: grid; counter-reset: step; }
.steps-list li { counter-increment: step; position: relative; padding: 0 0 var(--s-6) 56px; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; font-size: var(--fs-small); font-weight: 600; background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.steps-list li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 1px; background: var(--line); }
.steps-list li:last-child::after { display: none; }
.steps-list h3 { padding-top: 5px; }
.steps-list p { color: var(--ink-soft); font-size: var(--fs-small); margin-top: 4px; max-width: 34ch; }
.step-key::before { background: var(--brass) !important; border-color: var(--brass) !important; color: var(--brass-ink); }
.steps-chain { margin-bottom: var(--s-5); }
.dim-step { color: var(--brass); }
.dim-step .dim-label { color: var(--ink); }
.steps-cta { margin-top: var(--s-5); }
@media (min-width: 1100px) {
  .steps-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5); }
  .steps-list li { padding: 56px 0 0; }
  .steps-list li::after { left: 44px; right: calc(var(--s-5) * -1 + 4px); top: 18px; bottom: auto; width: auto; height: 1px; }
  .steps-list li:last-child::after { display: none; }
  .steps-chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5); margin-bottom: var(--s-3); }
  .steps-chain .dim { grid-column: 4 / 6; }
  .steps-cta { margin-top: var(--s-7); }
  .js .steps-list li::after { transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
  .js .steps-list.is-in li::after { transform: scaleX(1); }
  .js .steps-list.is-in li:nth-child(2)::after { transition-delay: 120ms; }
  .js .steps-list.is-in li:nth-child(3)::after { transition-delay: 240ms; }
  .js .steps-list.is-in li:nth-child(4)::after { transition-delay: 360ms; }
  .js .steps-list.is-in li:nth-child(5)::after { transition-delay: 480ms; }
}
@media (prefers-reduced-motion: reduce) { .js .steps-list li::after { transform: none !important; } }

/* Отзывы */
.reviews { background: var(--white); }
.reviews-layout { display: grid; gap: var(--s-7); }
.rating-score { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.rating-num { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: 0.9; letter-spacing: -0.02em; }
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.rating-meta { margin: var(--s-3) 0 var(--s-5); color: var(--ink-soft); }
.review-list { display: grid; gap: var(--s-6); }
.review { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.125rem; line-height: 1.55; }
.review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-small); }
.review-meta span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .review-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-6); row-gap: var(--s-7); }
  .review:nth-child(even) { margin-top: var(--s-8); }
}
@media (min-width: 1100px) {
  .reviews-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); align-items: start; }
  .rating { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* Шоурум */
.showroom { background: var(--paper); }
.showroom-layout { display: grid; gap: var(--s-6); }
.placeholder {
  display: grid; place-items: center; text-align: center; padding: var(--s-5);
  background: #e6e1d8;
  color: #45403a; font-weight: 600; font-size: var(--fs-small); border-radius: var(--r-sm);
  outline: 1px dashed #9c958b; outline-offset: -1px;
}
.placeholder-photo { aspect-ratio: 4 / 3; }
.showroom-info > p { color: var(--ink-soft); margin-top: var(--s-4); max-width: 48ch; }
.facts { margin: var(--s-5) 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-xs); color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.showroom-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.map { min-height: 320px; border-radius: var(--r-sm); overflow: hidden; background: var(--oak); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center; gap: var(--s-2);
  border: 0; background: var(--oak);
  font-weight: 600;
}
.map-load small { font-weight: 400; color: var(--ink-soft); font-size: var(--fs-xs); }
.map-load .icon { color: var(--ink); }
@media (min-width: 768px) {
  .showroom-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
  .map { grid-column: 1 / -1; min-height: 360px; }
}
@media (min-width: 1100px) {
  .showroom-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s-8); row-gap: var(--s-6); align-items: center; }
}

/* FAQ */
.faq { background: var(--white); }
.faq-layout { display: grid; gap: var(--s-6); }
.faq-head p { margin-top: var(--s-4); color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 20px 0; font-weight: 600; font-size: 1.125rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform var(--t-med) var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding-bottom: var(--s-5); color: var(--ink-soft); max-width: 64ch; display: grid; gap: var(--s-3); }
.faq-list details[open] .faq-body { animation: fade-down var(--t-med) var(--ease-out); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }
@media (min-width: 1100px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); }
}

/* Финальная заявка */
.final { background: var(--oak); --dim-bg: var(--oak); }
.final-layout { display: grid; gap: var(--s-7); }
.final-copy > p { margin-top: var(--s-4); color: var(--ink-soft); max-width: 46ch; }
.dim-final { margin-top: var(--s-6); max-width: 280px; color: var(--oak-line); }
.dim-final .dim-label { color: var(--ink-soft); }
.final-copy .final-alt { margin-top: var(--s-5); color: var(--ink); }
.lead-form { background: var(--white); border-radius: var(--r-md); padding: var(--s-5) var(--s-4); box-shadow: var(--shadow); }
.lead-form .btn-block { margin-top: var(--s-5); }
@media (min-width: 768px) { .lead-form { padding: var(--s-7); } }
@media (min-width: 1100px) {
  .final-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
}

/* Подвал */
.site-footer { background: var(--graphite); color: var(--on-dark); padding: var(--s-8) 0 var(--s-6); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-brand img { width: 140px; }
.footer-brand p, .footer-grid p { color: var(--on-dark-soft); font-size: var(--fs-small); margin-top: var(--s-3); max-width: 36ch; }
.footer-h { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; color: var(--on-dark); margin-bottom: var(--s-3); }
.footer-list { display: grid; gap: var(--s-2); font-size: var(--fs-small); color: var(--on-dark-soft); }
.footer-list a { color: var(--on-dark); text-decoration-color: var(--line-dark); padding-block: 4px; display: inline-block; }
.footer-list a:hover { text-decoration-color: var(--on-dark); }
.footer-list small { color: var(--on-dark-soft); }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); display: grid; gap: var(--s-2); font-size: var(--fs-xs); color: var(--on-dark-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-links a, .footer-links button { color: var(--on-dark); text-decoration-color: var(--line-dark); padding-block: 4px; font-size: var(--fs-xs); }
.site-footer .todo { font-size: 0.85em; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr 0.9fr 1fr; } }

/* Липкая панель на телефоне */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1fr 1.25fr;
  background: var(--graphite); border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px; color: var(--on-dark); text-decoration: none; font-size: 0.8125rem; font-weight: 500;
  transition: background-color var(--t-fast) ease;
}
.mobile-bar a:active { background: var(--graphite-3); }
.mobile-bar .mobile-bar-main { background: var(--brass); color: var(--brass-ink); font-weight: 600; }
.mobile-bar .mobile-bar-main:active { background: var(--brass-hover); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* Cookie */
.cookie {
  position: fixed; z-index: var(--z-cookie); left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom));
  background: var(--white); color: var(--ink); border-radius: var(--r-md); box-shadow: 0 16px 40px -12px rgba(35, 33, 30, 0.4);
  padding: var(--s-4); display: grid; gap: var(--s-3); font-size: var(--fs-small);
  border: 1px solid var(--line);
}
.cookie[hidden] { display: none; }
.cookie.is-entering { animation: fade 300ms ease both; }
.cookie a { color: var(--ink); }
.cookie-actions { display: flex; gap: var(--s-2); }
.cookie-actions .btn { flex: 1 1 auto; padding-inline: 14px; }
@media (max-width: 767.98px) {
  .cookie { padding: var(--s-3) var(--s-4); font-size: 0.875rem; line-height: 1.45; }
  .cookie-actions .btn { font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 440px; }
}

/* Просмотр фото */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 19, 17, 0.96); color: var(--on-dark); overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(20, 19, 17, 0.6); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb-figure { margin: 0; display: grid; gap: var(--s-3); justify-items: center; padding: 72px 12px 24px; max-width: 100%; }
.lb-figure img { max-width: min(92vw, 1100px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox[open] .lb-figure img { animation: lb-img 320ms var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); } }
.lb-figure figcaption { display: flex; gap: var(--s-4); justify-content: space-between; width: 100%; max-width: min(92vw, 1100px); font-size: var(--fs-small); color: var(--on-dark-soft); }
.lb-count { font-variant-numeric: tabular-nums; flex: none; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(35, 33, 30, 0.7); color: var(--on-dark);
  transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.lb-btn:active { transform: scale(0.95); }
.lb-btn:hover { background: var(--graphite-3); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 767.98px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-figure { padding-bottom: 88px; }
}

/* Меньше движения */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* Юридические страницы */
.legal-page { padding-bottom: 0; }
.legal-header { background: var(--graphite); color: var(--on-dark); }
.legal-header .demo-bar { border-bottom: 1px solid var(--line-dark); }
.legal-header .header-row { justify-content: space-between; }
.legal-header .brand { width: 96px; }
.legal-main { padding-block: var(--s-7) var(--s-8); }
.legal-main article { max-width: 72ch; }
.legal-main h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); line-height: 1.15; margin-bottom: var(--s-5); }
.legal-main h2 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 600; margin: var(--s-6) 0 var(--s-3); }
.legal-main p, .legal-main li { color: var(--ink); margin-bottom: var(--s-3); }
.legal-main ul, .legal-main ol { padding-left: 1.25em; list-style: disc; margin-bottom: var(--s-3); }
.legal-main ol { list-style: decimal; }
.legal-warning {
  background: var(--todo-bg); color: var(--todo-ink); border: 1px dashed #b38a00; border-radius: var(--r-md);
  padding: var(--s-4); margin-bottom: var(--s-6); font-weight: 500;
}
.legal-back { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--on-dark); font-weight: 500; padding: 10px 0; }
