/* ==========================================================================
   линолеум.бел — единая дизайн-система
   Light-default + dark-toggle. Mobile-first. Sections with alt bg.
   Typography: Fraunces (display) + Inter (body) from Google Fonts.
   ========================================================================== */

/* Fonts loaded via <link preconnect + preload + stylesheet> in _base.html.j2 */

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, video, svg { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; }

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS — LIGHT THEME (default)
   -------------------------------------------------------------------------- */
:root {
  /* palette */
  --bg: #FAF7F2;
  --bg-alt: #F4EEE3;                                   /* alternating sections */
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-sunk: #F0EBDF;

  --text: #1A1A1A;
  --text-muted: #6B6355;
  --text-subtle: #9A9082;

  --accent: #A6894E;
  --accent-strong: #8C6F3A;
  --accent-soft: rgba(166,137,78,.10);
  --accent-softer: rgba(166,137,78,.05);
  --accent-text: #8C6F3A;

  --border: rgba(26,26,26,.08);
  --border-strong: rgba(26,26,26,.16);
  --border-accent: rgba(166,137,78,.28);

  --success: #2F8A4B;
  --warn: #C48A2D;
  --danger: #C13B2B;

  --on-accent: #FFFFFF;
  --on-surface: #1A1A1A;

  --overlay: rgba(26,26,26,.55);

  /* typography */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;

  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.875rem;   /* 14 */
  --fs-base: 1rem;     /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.375rem;   /* 22 */
  --fs-2xl: 1.75rem;   /* 28 */
  --fs-3xl: 2.25rem;   /* 36 */
  --fs-4xl: 3rem;      /* 48 */
  --fs-5xl: 3.75rem;   /* 60 */
  --fs-6xl: 4.5rem;    /* 72 */

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* shadows — warm layered (brass-tint для премиум-глубины) */
  --sh-sm: 0 1px 2px rgba(80,56,24,.04), 0 1px 3px rgba(80,56,24,.05);
  --sh-md: 0 2px 6px rgba(80,56,24,.04), 0 6px 14px rgba(80,56,24,.05);
  --sh-lg: 0 4px 10px rgba(80,56,24,.05), 0 16px 32px rgba(80,56,24,.07);
  --sh-xl: 0 8px 20px rgba(80,56,24,.06), 0 28px 56px rgba(80,56,24,.1);
  --sh-accent: 0 10px 28px rgba(166,137,78,.24), 0 4px 10px rgba(166,137,78,.12);

  /* layout */
  --container: 1200px;
  --container-narrow: 860px;
  --container-wide: 1280px;
  --gutter: 1.25rem;
  --header-h: 64px;

  /* transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 360ms;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   3. DESIGN TOKENS — DARK THEME
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg: #0F1418;
  --bg-alt: #141A1F;
  --surface: #1A2126;
  --surface-raised: #1F272D;
  --surface-sunk: #0B1013;

  --text: #E8EBEE;
  --text-muted: #A8B0B7;
  --text-subtle: #6F7780;

  --accent: #D4AA44;
  --accent-strong: #E8C560;
  --accent-soft: rgba(212,170,68,.14);
  --accent-softer: rgba(212,170,68,.07);
  --accent-text: #D4AA44;

  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --border-accent: rgba(212,170,68,.32);

  --on-accent: #0F1418;
  --on-surface: #E8EBEE;

  --overlay: rgba(0,0,0,.72);

  --sh-sm: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.4);
  --sh-md: 0 4px 8px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
  --sh-lg: 0 12px 24px rgba(0,0,0,.4), 0 4px 8px rgba(0,0,0,.2);
  --sh-xl: 0 24px 48px rgba(0,0,0,.5), 0 8px 16px rgba(0,0,0,.3);
  --sh-accent: 0 12px 32px rgba(212,170,68,.22);

  color-scheme: dark;
}

/* smooth theme switch */
html { transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
body { transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }
}
@media (min-width: 1024px) {
  h1 { font-size: var(--fs-5xl); letter-spacing: -0.03em; }
  h2 { font-size: var(--fs-4xl); }
  h3 { font-size: var(--fs-2xl); }
}

p { line-height: var(--lh-relaxed); color: var(--text); }
p + p { margin-top: 1em; }
strong, b { font-weight: 700; }
em { font-style: italic; }
a { color: var(--accent-text); transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-strong); }

code { font-family: 'SF Mono', Consolas, Menlo, monospace; background: var(--accent-soft); padding: 2px 6px; border-radius: var(--r-sm); font-size: 0.9em; color: var(--accent-text); }

/* --------------------------------------------------------------------------
   5. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

.stack { display: flex; flex-direction: column; }
.stack-sm { gap: var(--s-2); }
.stack-md { gap: var(--s-4); }
.stack-lg { gap: var(--s-6); }
.stack-xl { gap: var(--s-8); }

.row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid { gap: var(--s-5); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  /* grid-4 — adaptive auto-fit: на узких контейнерах (776px у detail-страниц
     с aside) колонки min 220px = 3 колонки; на широких (home 1200px) = 4.
     Это чинит перенос текста «Толстый/защитный/слой» на detail-страницах. */
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }

  /* На detail-страницах внутри .content-main — максимум 2 колонки
     (контейнер ~776px, делить на 4 = 194px что мало). */
  .with-aside .content-main .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .with-aside .content-main .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Card text-size меньше когда карточка узкая (на ПК с 4 колонками) */
@media (min-width: 1024px) {
  .grid-4 .card__title { font-size: 1.0625rem; letter-spacing: -0.01em; }
  .grid-4 .card__desc { font-size: 0.875rem; line-height: 1.55; }
}

.center { text-align: center; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.no-select { user-select: none; -webkit-user-select: none; }

/* --------------------------------------------------------------------------
   6. HEADER + TOP NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .site-header { background: rgba(15,20,24,.85); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--t-fast, .15s) ease;
}
.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.site-logo:hover .site-logo__mark { transform: translateY(-1px) scale(1.03); background: var(--accent); color: var(--on-accent); }
.site-logo__word { display: inline-block; }
.site-logo b { color: var(--accent); font-weight: 700; }
.site-logo:hover { opacity: 1; }

.topnav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 2px;
}
@media (min-width: 1024px) { .topnav { display: flex; } }

.topnav a {
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.topnav a:hover { color: var(--text); background: var(--accent-softer); }
.topnav a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  flex-shrink: 0;
}

.theme-toggle,
.burger {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-softer);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
  color: var(--text-muted);
}
.theme-toggle:hover, .burger:hover { background: var(--accent-soft); color: var(--accent); }
.theme-toggle svg, .burger svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

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

.header-cta {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-fast);
}
.header-cta:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

/* --------------------------------------------------------------------------
   7. DRAWER (mobile menu)
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
  z-index: 200;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; max-width: 85vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: right var(--t-base) var(--ease);
  box-shadow: var(--sh-xl);
}
.drawer.is-open { right: 0; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 1;
}
.drawer__close {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--accent-softer);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.drawer__close:hover { background: var(--accent-soft); color: var(--accent); }

.drawer__section-title {
  padding: 22px 20px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}
.drawer__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  font-size: 0.9375rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast), background var(--t-fast), padding-left var(--t-fast);
}
.drawer__link .drawer__marker {
  width: 6px; height: 1.5px;
  background: var(--text-subtle);
  flex-shrink: 0;
  border-radius: 2px;
  opacity: 0.55;
  transition: width var(--t-fast) var(--ease), background var(--t-fast), opacity var(--t-fast);
}
.drawer__link .drawer__label { flex: 1 1 auto; }
.drawer__link .drawer__arrow { color: var(--accent); font-weight: 500; opacity: 0.85; transition: transform var(--t-fast) var(--ease); }
.drawer__link:hover { background: var(--accent-softer); color: var(--accent); }
.drawer__link:hover .drawer__marker { width: 14px; background: var(--accent); opacity: 1; }
.drawer__link:hover .drawer__arrow { transform: translateX(3px); }
.drawer__link.is-highlight { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.drawer__link.is-highlight .drawer__marker { background: var(--accent); opacity: 0.9; }
.drawer__link.is-highlight:hover { background: var(--accent-soft); }

.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 20px 24px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-accent);
}
.drawer__cta:hover { color: var(--on-accent); transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   8. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 20px 0 4px;
  font-size: 0.75rem;
  color: var(--text-subtle);
  letter-spacing: 0.01em;
}
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { color: var(--text-subtle); transition: color var(--t-fast); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep {
  color: var(--text-subtle);
  opacity: 0.5;
  font-weight: 400;
  user-select: none;
}
.breadcrumbs__current { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   9. HERO (split layout: text + card)
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--s-7) 0 var(--s-8);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
/* Subtle warm pattern behind hero (linoleum-layers texture) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 85% 40%, var(--accent-soft), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(166,137,78,.04) 22px 23px);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
@media (min-width: 768px) { .hero { padding: var(--s-8) 0 var(--s-9); } }
@media (min-width: 1024px) { .hero { padding: var(--s-9) 0 var(--s-10); } }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-9); } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  width: fit-content;
  margin-bottom: var(--s-5);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  margin-bottom: var(--s-4);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  font-size: 0.82em;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-top: 0.08em;
}

.hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: var(--s-6);
}
@media (min-width: 768px) { .hero__lead { font-size: 1.1875rem; } }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* hero card (right side на desktop) */
.hero-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--sh-xl);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero-card { padding: var(--s-7) var(--s-7) var(--s-7) var(--s-7); } }

.hero-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: var(--s-4);
}
.hero-card__kicker::before {
  content: '';
  width: 18px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: none;
  opacity: 0.8;
}
.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  margin-bottom: var(--s-4);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.hero-card__text { color: var(--text-muted); line-height: 1.65; margin-bottom: var(--s-5); font-size: 0.9375rem; }
.hero-card__bullets { display: flex; flex-direction: column; gap: var(--s-3); }
.hero-card__bullets li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 0.9375rem; color: var(--text);
  line-height: 1.5;
}
.hero-card__bullets li::before {
  content: '';
  width: 14px; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 11px;
  border-radius: 2px;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   10. SECTIONS
   -------------------------------------------------------------------------- */
.section {
  padding: var(--s-8) 0;
  position: relative;
}
@media (min-width: 768px) { .section { padding: var(--s-9) 0; } }
@media (min-width: 1024px) { .section { padding: var(--s-10) 0; } }

.section-alt { background: var(--bg-alt); }

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.section__label::after {
  content: '';
  width: 36px; height: 1.5px;
  background: var(--accent);
  opacity: 0.7;
  border-radius: 2px;
}

.section__head {
  margin-bottom: var(--s-8);
  max-width: 720px;
}
.section__head--center {
  margin-left: auto; margin-right: auto; text-align: center;
}
.section__head--center .section__label::before {
  content: ''; width: 36px; height: 1.5px; background: var(--accent); opacity: 0.7; border-radius: 2px; margin-right: 12px;
}

.section__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 768px) { .section__title { font-size: var(--fs-3xl); letter-spacing: -0.028em; } }
@media (min-width: 1024px) { .section__title { font-size: var(--fs-4xl); letter-spacing: -0.032em; } }

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
  text-wrap: pretty;
}
.section__head--center .section__subtitle { margin-inline: auto; }

.section__cta-after {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.section__cta-after-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s, gap 0.2s;
}
.section__cta-after-link:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  gap: 12px;
}

/* --------------------------------------------------------------------------
   11. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  user-select: none;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-accent);
}
.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(166,137,78,.22), 0 20px 48px rgba(166,137,78,.28);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}
.btn--outline:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-softer); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--accent-softer); color: var(--text); border-color: var(--border-strong); }

.btn--lg { padding: 18px 32px; font-size: 1rem; min-height: 56px; letter-spacing: 0.005em; }
.btn--sm { padding: 10px 16px; font-size: 0.875rem; min-height: 40px; }

.btn--block { width: 100%; }

.btn__icon { font-size: 1.1em; line-height: 1; }

/* Premium arrow — стрелка справа от primary CTA, чуть сдвигается на hover */
.btn__arrow {
  display: inline-block;
  margin-left: 10px;
  font-weight: 400;
  opacity: 0.9;
  transition: transform var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:hover .btn__arrow { transform: translateX(3px); opacity: 1; }
.btn__label { display: inline-block; }

/* --------------------------------------------------------------------------
   12. BADGES / TAGS / CHIPS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  line-height: 1;
}
.badge--accent { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--border-accent); }
.badge--outline { background: transparent; color: var(--accent); border: 1px solid var(--border-accent); }
.badge--success { background: rgba(47,138,75,.12); color: var(--success); border: 1px solid rgba(47,138,75,.25); }
.badge--warn { background: rgba(196,138,45,.12); color: var(--warn); border: 1px solid rgba(196,138,45,.25); }
.badge--danger { background: rgba(193,59,43,.1); color: var(--danger); border: 1px solid rgba(193,59,43,.22); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. CARDS (general)
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  box-shadow: var(--sh-sm);
  position: relative;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-accent); }
}

.card__icon { font-size: 1.75rem; margin-bottom: var(--s-3); display: block; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.22;
  letter-spacing: -0.012em;
}
.card__desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* link card (clickable) */
a.card { color: inherit; display: block; }
a.card:hover { color: inherit; }

/* room card: icon + title + hint + tag */
.room-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base) var(--ease);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) {
  .room-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-accent); color: inherit; }
}
.room-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-3);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  transition: background .2s ease, color .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.room-card:hover .room-card__icon {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(-3deg) scale(1.05);
}
.room-card__icon svg { display: block; }
.room-card__title { font-weight: 600; font-size: 1.0625rem; color: var(--text); }
.room-card__hint { font-size: 0.875rem; color: var(--text-muted); }
.room-card__tag {
  margin-top: var(--s-3);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
}

/* class card: big badge + name + hint */
.class-card {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base) var(--ease);
  box-shadow: var(--sh-sm);
}
@media (hover: hover) {
  .class-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-accent); color: inherit; }
}
.class-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--r-md);
  letter-spacing: -0.01em;
}
.class-card__body { flex: 1; min-width: 0; }
.class-card__name { font-weight: 600; font-size: 1.0625rem; color: var(--text); margin-bottom: 4px; }
.class-card__hint { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; }

/* brand card: flag + name + country + note */
.brand-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base) var(--ease);
  box-shadow: var(--sh-sm);
}
@media (hover: hover) {
  .brand-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-accent); color: inherit; }
}
.brand-card__flag {
  font-size: 2.25rem;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.brand-card__body { display: flex; flex-direction: column; gap: 2px; }
.brand-card__name { font-weight: 700; font-size: 1.125rem; color: var(--text); font-family: var(--font-display); }
.brand-card__country { font-size: 0.8125rem; color: var(--text-subtle); font-weight: 500; }
.brand-card__note { font-size: 0.875rem; color: var(--text-muted); margin-top: 6px; line-height: 1.45; }

/* line (коллекция бренда) */
.line-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
  transition: all var(--t-base) var(--ease);
}
@media (hover: hover) { .line-card:hover { box-shadow: var(--sh-md); } }
.line-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; margin-bottom: 8px; color: var(--text); }
.line-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.line-card__desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   14. STEPS
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

.step {
  position: relative;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--s-3);
  display: block;
  letter-spacing: -0.02em;
}
.step__title { font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.3; font-family: var(--font-display); }
.step__desc { color: var(--text-muted); line-height: 1.6; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .faq { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); align-items: start; } }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item.is-open { border-color: var(--border-accent); }

.faq-item__q {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-4) var(--s-5);
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  min-height: 60px;
}
.faq-item__q:hover { background: var(--accent-softer); }
.faq-item__q-text { flex: 1; line-height: 1.4; }
.faq-item__chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--accent);
  transition: transform var(--t-base);
}
.faq-item.is-open .faq-item__chevron { transform: rotate(90deg); }

.faq-item__a {
  display: none;
  padding: 0 var(--s-5) var(--s-5);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item.is-open .faq-item__a { display: block; }

/* --------------------------------------------------------------------------
   16. COMPARE TABLE (parameter rows)
   -------------------------------------------------------------------------- */
.compare { display: flex; flex-direction: column; gap: var(--s-3); }
.compare-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.compare-row__label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.compare-row__value { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.compare-row__badge {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   17. OK / NO / MAYBE rows
   -------------------------------------------------------------------------- */
.ok-list { display: flex; flex-direction: column; gap: var(--s-2); }
.ok-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.ok-row__icon { font-size: 1.25rem; text-align: center; }
.ok-row__text { font-size: 0.9375rem; color: var(--text); line-height: 1.5; }
.ok-row__verdict { font-size: 0.8125rem; font-weight: 700; }
.ok-row__verdict--yes { color: var(--success); }
.ok-row__verdict--no { color: var(--danger); }
.ok-row__verdict--maybe { color: var(--warn); }

/* --------------------------------------------------------------------------
   18. CTA BLOCK (final)
   -------------------------------------------------------------------------- */
.cta-block {
  background: linear-gradient(135deg, var(--surface-raised), var(--accent-softer));
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  box-shadow: var(--sh-md);
}
@media (min-width: 768px) { .cta-block { padding: var(--s-8) var(--s-8); } }

.cta-block__title { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: var(--s-3); color: var(--text); }
@media (min-width: 768px) { .cta-block__title { font-size: var(--fs-3xl); } }

.cta-block__sub { color: var(--text-muted); max-width: 560px; margin: 0 auto var(--s-6); line-height: 1.6; font-size: 1.0625rem; }
.cta-block__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* --------------------------------------------------------------------------
   19. SIDEBAR LAYOUT (на detail-страницах)
   -------------------------------------------------------------------------- */
.with-aside { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
@media (min-width: 1024px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-8); } }

.content-main { min-width: 0; }
.content-main > * + * { margin-top: var(--s-8); }

.aside {
  display: none;
}
@media (min-width: 1024px) {
  .aside { display: flex; flex-direction: column; gap: var(--s-5); }
  .aside__box {
    position: sticky; top: calc(var(--header-h) + var(--s-4));
    display: flex; flex-direction: column; gap: var(--s-4);
  }
}

.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
}
.aside-card__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-subtle);
  margin-bottom: var(--s-3);
}
.aside-card h3 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: var(--s-2); letter-spacing: -0.01em; }
.aside-card ul { display: flex; flex-direction: column; gap: 8px; }
.aside-card li { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* Related list — editorial стиль с тонким marker-dash */
.aside-related { display: flex; flex-direction: column; gap: 2px !important; }
.aside-related li {
  border-top: 1px solid var(--border);
  padding: 10px 0;
  color: var(--text) !important;
  font-size: 0.9375rem !important;
  line-height: 1.4 !important;
}
.aside-related li:first-child { border-top: none; padding-top: 4px; }
.aside-related li a {
  display: flex; align-items: center; gap: 12px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast), gap var(--t-fast) var(--ease);
}
.aside-related li a::before {
  content: '';
  flex: 0 0 auto;
  width: 8px; height: 1.5px;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 2px;
  transition: width var(--t-fast) var(--ease), opacity var(--t-fast);
}
.aside-related li a:hover { color: var(--accent); }
.aside-related li a:hover::before { width: 16px; opacity: 1; }

/* --------------------------------------------------------------------------
   20. CALCULATOR WIDGET
   -------------------------------------------------------------------------- */
.calc {
  background: var(--surface-raised);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.calc__head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border-accent);
  background: var(--accent-softer);
}
.calc__head h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin-bottom: 4px; }
.calc__head p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.5; }
.calc__body {
  padding: var(--s-6);
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
/* Скрываем правую колонку (result) пока в ней пустой плейсхолдер */
.calc__body:has(.calc__result > .calc-empty:only-child) .calc__result { display: none; }
@media (min-width: 768px) {
  .calc__body { grid-template-columns: 1.1fr 1fr; gap: var(--s-6); }
  /* На ПК: пока результата нет, форма full-width (без огромной пустой колонки справа) */
  .calc__body:has(.calc__result > .calc-empty:only-child) { grid-template-columns: 1fr; }
}

/* ==========================================================================
   40. QUIZ v2 — идеальный подбор класса (Проход 5)
   ========================================================================== */

.quiz2 {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-5) var(--s-6);
  box-shadow: var(--sh-md);
}
@media (min-width: 1024px) { .quiz2 { padding: var(--s-7); max-width: 1100px; } }

/* ---- Progress bar -------------------------------------------------------- */
.quiz2__progress { margin-bottom: var(--s-5); }
.quiz2__progress-track {
  height: 6px;
  background: var(--surface-sunk);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.quiz2__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.quiz2__progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.quiz2__progress-dot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--surface-sunk);
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: all .25s;
}
.quiz2__progress-dot.is-done {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface));
  color: var(--accent-strong);
}
.quiz2__progress-dot.is-active {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-accent);
}

/* ---- Layout (main + preview) -------------------------------------------- */
.quiz2__layout {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .quiz2__layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: var(--s-6);
  }
}

.quiz2__main { min-height: 360px; }

/* ---- Step head ---------------------------------------------------------- */
.quiz2__head { margin-bottom: var(--s-4); }
.quiz2__step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.quiz2__question {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px;
}
@media (min-width: 768px) { .quiz2__question { font-size: 1.875rem; } }
.quiz2__hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* ---- Options grid ------------------------------------------------------- */
.quiz2__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) { .quiz2__options { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quiz2__options { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.quiz2__options--multi { grid-template-columns: 1fr; }
@media (min-width: 560px) { .quiz2__options--multi { grid-template-columns: repeat(2, 1fr); } }

.quiz2__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: all .15s;
  position: relative;
}
.quiz2__option:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
  transform: translateY(-1px);
}
.quiz2__option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.quiz2__option.is-selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 12px;
  width: 22px; height: 22px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.quiz2__option-icon { font-size: 1.5rem; line-height: 1; }
.quiz2__option-label {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.quiz2__option-sub, .quiz2__option-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}
.quiz2__option-counter {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.quiz2__option-counter--soft {
  color: var(--text-muted);
  background: var(--surface-sunk);
}

/* Popular badge — «★ Популярный выбор» в углу опции */
.quiz2__option-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 35%, transparent);
  z-index: 1;
  pointer-events: none;
}
.quiz2__option.is-selected::after { z-index: 2; }
@media (max-width: 559px) {
  .quiz2__option-badge { font-size: 0.625rem; padding: 3px 8px; right: 8px; }
}

/* «Не уверены? Спросите консультанта» — на сложных шагах */
.quiz2__not-sure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  padding: 10px 14px;
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-strong);
  cursor: pointer;
  transition: all .15s;
}
.quiz2__not-sure:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  border-style: solid;
}

/* ---- Restore-banner: «Продолжить прошлый подбор?» ---------------------- */
.quiz2__restore {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-soft) 80%, var(--surface)),
    var(--surface));
  border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--r-lg, 16px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 12%, transparent);
}
.quiz2__restore-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.quiz2__restore-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.quiz2__restore-sub {
  margin: 0 0 var(--s-3);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.quiz2__restore-age {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.quiz2__restore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
@media (max-width: 559px) {
  .quiz2__restore { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-4); }
  .quiz2__restore-icon { width: 48px; height: 48px; font-size: 1.5rem; }
}

/* ---- Tooltip на классе в результате ----------------------------------- */
.quiz2__class-tip {
  position: relative;
  cursor: help;
}
.quiz2__class-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  padding: 12px 14px;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  letter-spacing: 0;
  font-family: var(--font-body);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
}
.quiz2__class-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}
.quiz2__class-popover strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--surface);
}
.quiz2__class-popover-use {
  display: block;
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--surface) 88%, var(--text));
}
.quiz2__class-popover-layer {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--surface) 25%, transparent);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--surface) 75%, var(--text));
}
.quiz2__class-tip:hover .quiz2__class-popover,
.quiz2__class-tip:focus .quiz2__class-popover,
.quiz2__class-tip:focus-within .quiz2__class-popover {
  display: block;
  opacity: 1;
  animation: quiz2-popover-in 0.18s ease-out;
}
@keyframes quiz2-popover-in {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz2__class-tip:hover .quiz2__class-popover,
  .quiz2__class-tip:focus .quiz2__class-popover,
  .quiz2__class-tip:focus-within .quiz2__class-popover { animation: none; }
}
@media (max-width: 559px) {
  .quiz2__class-popover { max-width: 200px; font-size: 12px; padding: 10px 12px; }
}

/* ---- Warning-state на опции бюджета (когда нет матча) ----------- */
.quiz2__option--warn {
  border-color: color-mix(in srgb, var(--warning, #d97706) 50%, var(--border)) !important;
  background: color-mix(in srgb, var(--warning, #d97706) 4%, var(--surface)) !important;
}
.quiz2__option--warn:hover {
  border-color: var(--warning, #d97706) !important;
}
.quiz2__option--warn .quiz2__option-counter--soft {
  color: var(--warning, #d97706);
  background: color-mix(in srgb, var(--warning, #d97706) 12%, var(--surface));
}
:root { --warning: #d97706; }

/* ---- Сравнительная таблица коллекций ----------- */
.quiz2__compare-toggle {
  margin-top: var(--s-3);
  width: fit-content;
}
.quiz2__compare {
  margin-top: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  animation: quiz2-compare-in 0.24s ease-out;
}
@keyframes quiz2-compare-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz2__compare { animation: none; }
}
.quiz2__compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.quiz2__compare-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.quiz2__compare-table th,
.quiz2__compare-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  line-height: 1.45;
}
.quiz2__compare-table th:last-child,
.quiz2__compare-table td:last-child { border-right: none; }
.quiz2__compare-table tbody tr:last-child th,
.quiz2__compare-table tbody tr:last-child td { border-bottom: none; }
.quiz2__compare-table thead th {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-align: center;
}
.quiz2__compare-collname {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.quiz2__compare-rowhead {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted) !important;
  background: var(--surface-sunk) !important;
  font-family: var(--font-body) !important;
  white-space: nowrap;
  text-align: left !important;
  width: 1%;
}
.quiz2__compare-table td {
  font-variant-numeric: tabular-nums;
}

/* ---- «А что если» бюджет — pill-buttons на result-экране ---- */
.quiz2__what-if {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-sunk, color-mix(in srgb, var(--bg) 60%, var(--surface)));
  border-radius: var(--r-md);
}
.quiz2__what-if-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}
.quiz2__what-if-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 720px) {
  .quiz2__what-if-pills { grid-template-columns: repeat(4, 1fr); }
}
.quiz2__what-if-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon label count"
    "icon sub   count";
  align-items: center;
  gap: 2px 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  transition: all .15s;
}
.quiz2__what-if-pill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.quiz2__what-if-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.quiz2__what-if-pill.is-empty {
  opacity: 0.55;
}
.quiz2__what-if-pill.is-empty:hover { opacity: 0.8; }
.quiz2__what-if-icon {
  grid-area: icon;
  font-size: 1.25rem;
  line-height: 1;
}
.quiz2__what-if-label {
  grid-area: label;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.quiz2__what-if-sub {
  grid-area: sub;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.quiz2__what-if-count {
  grid-area: count;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quiz2__what-if-pill.is-active .quiz2__what-if-count {
  background: var(--accent);
  color: var(--on-accent);
}
.quiz2__what-if-pill.is-empty .quiz2__what-if-count {
  background: var(--surface-sunk);
  color: var(--text-muted);
}

/* ---- Live-preview: анимация счётчика ----------- */
.quiz2__preview-count {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1.5em;
  text-align: right;
}

/* Info-блок на result-экране (расширили поиск под бюджет) */
.quiz2__info {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-left: 4px solid var(--accent);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.quiz2__info strong {
  display: block;
  color: var(--accent-strong);
  margin-bottom: 6px;
  font-weight: 700;
}
.quiz2__info p { margin: 0; color: var(--text); }
.quiz2__info b { color: var(--accent-strong); font-weight: 700; }

/* Скорректированный класс на result (визуально отличаем от исходного) */
.quiz2__result-classes > span.is-adjusted {
  border-style: dashed;
  background: var(--accent-soft);
}

/* ---- Size step ---------------------------------------------------------- */
.quiz2__size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.quiz2__size-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz2__size-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.quiz2__size-field input {
  padding: 14px 18px;
  background: var(--surface-sunk);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color .15s;
}
.quiz2__size-field input:focus { border-color: var(--accent); }

/* ---- Live-preview panel ------------------------------------------------- */
.quiz2__preview {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-soft) 60%, var(--surface)),
    var(--surface));
  border: 1px solid var(--border-accent, var(--accent));
  border-radius: var(--r-md);
  padding: var(--s-4);
  align-self: start;
  position: sticky;
  top: var(--s-4);
}
.quiz2__preview-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.quiz2__preview-body { display: flex; flex-direction: column; gap: 10px; }
.quiz2__preview-fallback {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
}
.quiz2__preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 60%, transparent);
}
.quiz2__preview-row:last-child { border-bottom: none; }
.quiz2__preview-row--final {
  border-top: 2px solid var(--accent);
  padding-top: 12px;
  margin-top: 4px;
  border-bottom: none;
}
.quiz2__preview-label { font-size: 0.8125rem; color: var(--text-muted); }
.quiz2__preview-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}
.quiz2__preview-row--final .quiz2__preview-val {
  color: var(--accent);
  font-size: 1.25rem;
}

/* ---- Navigation buttons (Назад / Skip / Дальше) ------------------------- */
.quiz2__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.quiz2__nav button[hidden] { display: none; }
.quiz2__nav #quiz2-back { margin-right: auto; }
.quiz2__nav #quiz2-next { margin-left: auto; }

/* ---- Result screen ------------------------------------------------------ */
.quiz2__result-loading {
  text-align: center;
  padding: var(--s-7);
  color: var(--text-muted);
  font-style: italic;
}
.quiz2__result {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.quiz2__result-head {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-soft) 70%, var(--surface)),
    var(--surface));
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .quiz2__result-head { grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; }
}
.quiz2__result-classes {
  display: flex;
  gap: 6px;
}
.quiz2__result-classes > span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
}
@media (min-width: 768px) {
  .quiz2__result-classes > span { width: 80px; height: 80px; font-size: 3rem; }
}
.quiz2__result-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; line-height: 1.5; }
.quiz2__result-meta strong { color: var(--text); font-weight: 700; }

.quiz2__result-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quiz2__result-ctas .btn { flex: 1 1 240px; justify-content: center; }

.quiz2__result-section h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 var(--s-3);
  color: var(--text);
  letter-spacing: -0.01em;
}

.quiz2__result-collections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) { .quiz2__result-collections { grid-template-columns: repeat(3, 1fr); } }
.quiz2__coll {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quiz2__coll:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  color: inherit;
}
.quiz2__coll-img {
  aspect-ratio: 16/10;
  background-color: var(--surface-sunk);
  background-size: cover;
  background-position: center;
}
.quiz2__coll-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.quiz2__coll-brand { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.quiz2__coll-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.quiz2__coll-meta { font-size: 0.8125rem; color: var(--text-muted); }
.quiz2__coll-price {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.125rem;
}

.quiz2__result-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quiz2__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.quiz2__brand:hover { border-color: var(--accent); transform: translateY(-1px); color: inherit; }
.quiz2__brand strong { color: var(--accent-strong); font-weight: 700; }
.quiz2__brand span { color: var(--text-muted); font-size: 0.8125rem; }

.quiz2__result-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
}

/* Mobile-polish ---------------------------------------------------------- */
@media (max-width: 1023px) {
  .quiz2__preview {
    position: static;
    order: -1;  /* preview сверху на мобиле */
  }
}
@media (max-width: 560px) {
  .quiz2 { padding: var(--s-4); }
  .quiz2__question { font-size: 1.25rem; }
  .quiz2__option { padding: 12px 14px; }
  .quiz2__progress-dot { font-size: 10px; height: 22px; }
}


.calc__inputs { display: flex; flex-direction: column; gap: var(--s-4); }

.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.calc-field input {
  padding: 14px 18px;
  background: var(--surface-sunk);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  outline: none;
  transition: border-color var(--t-fast);
}
.calc-field input:focus { border-color: var(--accent); background: var(--surface); }
.calc-field input::placeholder { color: var(--text-subtle); font-weight: 400; font-size: 1rem; }

.calc-dims { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-3); align-items: end; }
.calc-dims__x { padding-bottom: 14px; text-align: center; color: var(--text-subtle); font-size: 1.25rem; font-weight: 400; }

.calc-widths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 640px) { .calc-widths { grid-template-columns: repeat(6, 1fr); } }
.calc-width-chip {
  min-height: 48px;
  padding: 0 12px;
  background: var(--surface-sunk);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.calc-width-chip:hover { border-color: var(--border-accent); color: var(--accent); }
.calc-width-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* calc blocks */
.calc-block { display: flex; flex-direction: column; gap: 10px; }
.calc-block__label {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.calc-field--small input { font-size: 1rem; padding: 10px 14px; }
.calc-reserves { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.calc-hint { font-size: 0.8125rem; color: var(--text-subtle); line-height: 1.5; }
.calc-rooms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
@media (min-width: 500px) { .calc-rooms { grid-template-columns: repeat(3, 1fr); } }
.calc-room {
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.8125rem; font-weight: 500; color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
  line-height: 1.3;
}
.calc-room:hover { border-color: var(--border-accent); background: var(--accent-softer); }
.calc-room.is-active {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-text); font-weight: 600;
}

/* collections grid внутри результата калькулятора */
.calc-collections { margin-top: var(--s-4); }
.calc-collections__head { margin-bottom: var(--s-3); }
.calc-collections__head h4 { font-family: var(--font-display); font-size: 1.125rem; color: var(--text); margin-bottom: 4px; }
.calc-collections__head p { font-size: 0.8125rem; color: var(--text-muted); }
.calc-collections__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 640px) { .calc-collections__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .calc-collections__grid { grid-template-columns: repeat(3, 1fr); } }

.calc-card {
  display: flex; flex-direction: column; gap: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.calc-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.calc-card:hover .calc-card__image { transform: scale(1.03); }

.calc-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--surface-sunk);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  /* subtle gradient to улучшить читаемость brand-тега когда он будет оверлеен */
}
.calc-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--accent-strong);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-sunk));
}
.calc-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-4);
}
.calc-card__head { display: flex; justify-content: space-between; align-items: center; }
.calc-card__brand { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.calc-card__tier {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: var(--r-pill);
}
.calc-card__tier.tier-budget { background: #e6f7e9; color: #2d6e3a; }
.calc-card__tier.tier-mid { background: #fef3d4; color: #8a6400; }
.calc-card__tier.tier-top { background: #f3e6ff; color: #5a2e9a; }
.calc-card__name { font-family: var(--font-display); font-size: 1.125rem; color: var(--text); font-weight: 600; }
.calc-card__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.75rem; color: var(--text-subtle);
}
.calc-card__meta span { background: var(--surface-sunk); padding: 2px 8px; border-radius: var(--r-pill); }
.calc-card__price {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: 4px;
}
.calc-card__price-from { font-size: 0.75rem; color: var(--text-subtle); }
.calc-card__price-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); font-family: var(--font-display); line-height: 1; font-feature-settings: "tnum" 1; }
.calc-card__price-unit { font-size: 0.8125rem; color: var(--text-muted); }
.calc-card__price-range { font-size: 0.75rem; color: var(--text-subtle); margin-left: 6px; }
.calc-card__widths { font-size: 0.75rem; color: var(--text-subtle); }
.calc-card__cta {
  margin-top: 4px; padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.8125rem; font-weight: 600; color: var(--accent);
}

/* калькулятор: блоки-лейблы с примечанием */
.calc-block__note {
  font-size: 0.6875rem; font-weight: 500;
  color: var(--accent); text-transform: none; letter-spacing: 0;
  margin-left: 6px;
}

/* варианты раскладки — переключатель */
.calc-layouts { margin-top: var(--s-3); }
.calc-layouts__head {
  font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 8px;
}
.calc-layouts__grid {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
@media (min-width: 720px) { .calc-layouts__grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }

.calc-layout {
  text-align: left; cursor: pointer;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 6px;
  transition: all var(--t-fast);
}
.calc-layout:hover { border-color: var(--border-accent); }
.calc-layout.is-active {
  border-color: var(--accent);
  background: var(--accent-softer);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.calc-layout__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.calc-layout__tag {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-subtle);
  background: var(--surface-sunk); padding: 2px 8px; border-radius: var(--r-pill);
}
.calc-layout__tag--main { background: var(--accent-soft); color: var(--accent-text); }
.calc-layout__tagline { font-size: 0.75rem; color: var(--text-subtle); text-align: right; line-height: 1.3; }
.calc-layout__main { display: flex; justify-content: space-between; align-items: baseline; }
.calc-layout__roll { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.calc-layout__area {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--accent); font-feature-settings: "tnum" 1;
}
.calc-layout__area::after { content: ' м²'; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.calc-layout__meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-subtle); }
.calc-layout__seam--ok { color: #2d6e3a; font-weight: 600; }
.calc-layout__seam--warn { color: #c0392b; font-weight: 600; }

/* warning про разнотон — contrast-safe на обеих темах */
.calc-warning {
  margin-top: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: rgba(233, 169, 84, 0.10);
  border: 1px solid rgba(233, 169, 84, 0.55);
  border-left: 4px solid #e9a954;
  border-radius: var(--r-md);
  color: var(--text);                      /* наследуем text color обеих тем */
  font-size: 0.875rem;
  line-height: 1.55;
}
.calc-warning > strong:first-child {
  display: block;
  margin-bottom: 8px;
  color: #b36b1a;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.calc-warning p { margin: 0 0 8px 0; color: var(--text); }
.calc-warning p:last-child { margin-bottom: 0; }
.calc-warning__option {
  padding: 10px 0 0;
  border-top: 1px dashed rgba(233, 169, 84, 0.35);
  margin-top: 10px;
}
.calc-warning__option strong {
  color: #8a3f12;
  font-weight: 700;
}
.calc-warning ul { margin: 6px 0 0 0; padding-left: 22px; }
.calc-warning li { margin-bottom: 3px; }

/* dark theme overrides: тёплый-тёмный фон + читаемые акценты */
:root[data-theme="dark"] .calc-warning {
  background: rgba(233, 169, 84, 0.12);
  border-color: rgba(233, 169, 84, 0.45);
  border-left-color: #e9a954;
  color: var(--text);
}
:root[data-theme="dark"] .calc-warning > strong:first-child { color: #f5c378; }
:root[data-theme="dark"] .calc-warning__option {
  border-top-color: rgba(233, 169, 84, 0.25);
}
:root[data-theme="dark"] .calc-warning__option strong { color: #f5c378; }

/* ctas под результатом */
.calc-ctas {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  margin-top: var(--s-3);
}
@media (min-width: 560px) { .calc-ctas { grid-template-columns: 1fr 1fr; } }
.calc-cta--ai {
  background: var(--accent); color: var(--on-accent); border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: var(--r-md);
  font-size: 0.9375rem; font-weight: 600;
  transition: filter var(--t-fast);
}
.calc-cta--ai:hover { filter: brightness(1.08); }

/* results */
.calc__result {
  background: var(--surface-sunk);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  min-height: 280px;
}
.calc-empty { text-align: center; color: var(--text-subtle); padding: var(--s-7) 0; line-height: 1.6; }
.calc-empty__icon { font-size: 2.5rem; display: block; margin-bottom: var(--s-3); opacity: .4; }

.calc-main-result {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--sh-accent);
}
.calc-main-result__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: .85; margin-bottom: 4px; }
.calc-main-result__value { font-size: 2.75rem; font-weight: 800; font-family: var(--font-display); line-height: 1; letter-spacing: -0.02em; }
.calc-main-result__unit { font-size: 1.125rem; font-weight: 500; opacity: .85; }
.calc-main-result__hint { font-size: 0.8125rem; opacity: .85; margin-top: 8px; }

.calc-grid-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--r-md); overflow: hidden; margin-top: var(--s-3); }
.calc-cell { padding: var(--s-3); background: var(--surface); }
.calc-cell__label { font-size: 0.75rem; color: var(--text-subtle); margin-bottom: 2px; }
.calc-cell__val { font-weight: 700; font-size: 0.9375rem; color: var(--text); }

.calc-cta {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 14px; border-radius: var(--r-md);
  background: var(--surface); color: var(--accent-text); border: 1px solid var(--border-accent);
  font-weight: 600; font-size: 0.9375rem;
  margin-top: var(--s-3);
}
.calc-cta:hover { background: var(--accent-softer); }

/* --------------------------------------------------------------------------
   21. QUIZ (подбор)
   -------------------------------------------------------------------------- */
.quiz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--sh-lg);
}
@media (min-width: 768px) { .quiz { padding: var(--s-7); } }

.quiz__progress { height: 4px; background: var(--border); border-radius: var(--r-pill); overflow: hidden; margin-bottom: var(--s-6); }
.quiz__progress-fill { height: 100%; background: var(--accent); transition: width var(--t-slow) var(--ease); width: 0%; }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; }

.quiz__question { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: var(--s-5); color: var(--text); line-height: 1.3; }
@media (min-width: 768px) { .quiz__question { font-size: 1.75rem; } }

.quiz__options { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 640px) { .quiz__options { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quiz__options { grid-template-columns: repeat(3, 1fr); } }

.quiz__option {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
  min-height: 64px;
}
.quiz__option:hover { border-color: var(--border-accent); background: var(--accent-softer); }
.quiz__option.is-selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.quiz__option__icon { font-size: 1.5rem; flex-shrink: 0; }

/* quiz result */
.quiz__result { text-align: center; }
.quiz__result-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 100px; padding: var(--s-3) var(--s-4);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
  box-shadow: var(--sh-accent);
}
.quiz__result-name { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: var(--s-3); }
.quiz__result-desc { color: var(--text-muted); max-width: 480px; margin: 0 auto var(--s-6); line-height: 1.6; }
.quiz__result-btn { margin-bottom: var(--s-3); }
.quiz__result-restart { display: inline-block; font-size: 0.875rem; color: var(--text-subtle); text-decoration: underline; margin-top: var(--s-3); cursor: pointer; background: none; border: 0; }
.quiz__result-restart:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   22. AI CHAT WIDGET
   -------------------------------------------------------------------------- */
/* Floating Action Button stack (bottom-right): phone + chat */
.fab-stack {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.fab {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-xl);
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
}
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab--chat {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
}
.fab--phone {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  color: var(--accent-strong);
  display: none;  /* desktop: скрыт (есть в header) */
}
@media (max-width: 767px) { .fab--phone { display: inline-flex; } }

.fab__badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  background: #E74C3C;
  border: 2px solid var(--bg);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: .8; } }

.chat-panel {
  position: fixed;
  right: 16px; bottom: 88px;
  z-index: 195;
  width: calc(100% - 32px);
  max-width: 400px;
  max-height: calc(100vh - 104px);
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity var(--t-base), transform var(--t-base);
}
.chat-panel.is-open { display: flex; opacity: 1; transform: none; }
@media (min-width: 768px) { .chat-panel { width: 420px; max-height: 640px; } }

.chat-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  background: var(--accent-softer);
  border-bottom: 1px solid var(--border);
}
.chat-panel__title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--text);
}
.chat-panel__dot { width: 8px; height: 8px; border-radius: 50%; background: #2F8A4B; box-shadow: 0 0 0 4px rgba(47,138,75,.2); }
.chat-panel__close { width: 32px; height: 32px; border-radius: var(--r-md); background: transparent; color: var(--text-muted); }
.chat-panel__close:hover { background: var(--accent-soft); color: var(--text); }

.chat-panel__body {
  flex: 1; overflow-y: auto; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
  scroll-behavior: smooth;
}
.chat-msg { max-width: 92%; padding: 10px 14px; font-size: 0.9375rem; line-height: 1.55; border-radius: var(--r-lg); word-break: break-word; }
.chat-msg--bot { align-self: flex-start; background: var(--surface-sunk); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: var(--r-sm); }
.chat-msg--user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: var(--r-sm); }
.chat-msg--typing { color: var(--text-subtle); font-style: italic; }
.chat-msg a { color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.chat-msg--user a { color: var(--on-accent); }

.chat-panel__quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 var(--s-4) var(--s-3);
}
.chat-quick-btn {
  padding: 7px 12px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
}
.chat-quick-btn:hover { border-color: var(--border-accent); color: var(--accent); }

.chat-panel__input-row {
  display: flex; gap: 8px; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--border); background: var(--surface);
}
.chat-panel__input {
  flex: 1;
  padding: 10px 14px;
  background: var(--surface-sunk);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
}
.chat-panel__input:focus { border-color: var(--accent); }
.chat-panel__input::placeholder { color: var(--text-subtle); }
.chat-panel__send {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-panel__send:hover { background: var(--accent-strong); color: var(--on-accent); }

/* --------------------------------------------------------------------------
   23. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: var(--s-8) 0 var(--s-6);
  background: var(--surface-sunk);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); margin-bottom: var(--s-6); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7); } }

.site-footer__brand { display: flex; flex-direction: column; gap: var(--s-3); max-width: 340px; }
.site-footer__brand-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--text); }
.site-footer__tagline { color: var(--text-muted); line-height: 1.55; }
.site-footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.site-footer__contacts a { color: var(--text); font-weight: 500; text-decoration: none; }
.site-footer__contacts a:hover { color: var(--accent); }
.site-footer__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; letter-spacing: -0.005em; }
.site-footer__phone svg { color: var(--accent); flex-shrink: 0; }

.site-footer__col-title { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-subtle); margin-bottom: var(--s-4); }
.site-footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col-links a { color: var(--text-muted); font-size: 0.9375rem; text-decoration: none; transition: color var(--t-fast), padding-left var(--t-fast) var(--ease); }
.site-footer__col-links a:hover { color: var(--accent); padding-left: 4px; }
.site-footer__catalog { color: var(--accent) !important; font-weight: 500; }
.site-footer__catalog:hover { color: var(--accent-strong) !important; }

.site-footer__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-subtle);
}
.site-footer__meta a { color: var(--text-subtle); }
.site-footer__meta a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   24. REVEAL ANIMATION (subtle, безопасная на desktop)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible,
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html, body, * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* --------------------------------------------------------------------------
   25. MAIN / CONTENT FLOW
   -------------------------------------------------------------------------- */
main { flex: 1; }
main > section + section { /* sections sequence: no extra margin — padding внутри */ }

/* page body — длинные статьи */
.page-prose {
  max-width: 760px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}
.page-prose p { margin: 0 0 1.25em; }
.page-prose h2 { font-size: 1.75rem; margin: 2em 0 .6em; line-height: 1.25; }
.page-prose h3 { font-size: 1.375rem; margin: 1.6em 0 .5em; }
.page-prose ul, .page-prose ol { margin: 0 0 1.25em 1.5em; display: flex; flex-direction: column; gap: 8px; }
.page-prose ul li { list-style: disc; }
.page-prose ol li { list-style: decimal; }
.page-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  background: var(--accent-softer);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   26. SCROLLBAR (desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  html { scrollbar-width: thin; scrollbar-color: var(--border-accent) transparent; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
}

/* --------------------------------------------------------------------------
   27. FOCUS (accessibility)
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   28. HELPERS
   -------------------------------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }

.mono { font-family: 'SF Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }

/* preload-ready: hide elements that JS должен inject */
body.no-js .fab-stack,
body.no-js .chat-panel { display: none !important; }

/* --------------------------------------------------------------------------
   29. SKIP-LINK (a11y)
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: top .18s ease;
  box-shadow: var(--sh-lg);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

/* --------------------------------------------------------------------------
   30. TRUST STRIP (social-proof numbers between hero and steps)
   -------------------------------------------------------------------------- */
.trust-strip {
  padding: var(--s-6) 0;
  background: linear-gradient(to bottom, var(--bg), var(--surface));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (min-width: 768px) { .trust-strip__grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }

.trust-stat {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .trust-stat:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--sh-md); }
}
.trust-stat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
}
.trust-stat__body { display: flex; flex-direction: column; min-width: 0; }
.trust-stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.025em;
  font-feature-settings: "tnum" 1, "lnum" 1;
  display: flex; align-items: baseline; gap: 3px;
}
.trust-stat__value strong { font-weight: 600; }
.trust-stat__unit { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.trust-stat__label { font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-top: 4px; letter-spacing: -0.005em; }
.trust-stat__sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; display: none; letter-spacing: 0; line-height: 1.4; }
@media (min-width: 1024px) { .trust-stat__sub { display: block; } }

/* --------------------------------------------------------------------------
   31. FAQ smooth expand (aria-expanded driven)
   -------------------------------------------------------------------------- */
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.2,.8,.2,1);
}
.faq-item__a > * { overflow: hidden; }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__chevron { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.faq-item.is-open .faq-item__chevron { transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   32. STICKY CTA (detail-pages only, shown after 40% scroll)
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 120%);
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-xl);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100% - 32px);
  width: auto;
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
.sticky-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sticky-cta__kicker { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; line-height: 1; }
.sticky-cta__title { font-size: 0.9rem; color: var(--text); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
  flex-shrink: 0;
}
.sticky-cta__btn:hover { transform: translateY(-1px); color: var(--on-accent); box-shadow: var(--sh-accent); }
.sticky-cta__close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sticky-cta__close:hover { background: var(--accent-soft); color: var(--accent-strong); }

@media (max-width: 640px) {
  .sticky-cta { bottom: 16px; padding: 8px 10px 8px 14px; gap: 8px; }
  .sticky-cta__kicker { display: none; }
  .sticky-cta__title { font-size: 0.8125rem; max-width: 150px; }
  .sticky-cta__btn { padding: 8px 12px; font-size: 0.8125rem; }
  /* Сдвигаем FAB-стек вверх чтобы не перекрывать sticky-CTA */
  .sticky-cta.is-visible ~ .fab-stack,
  body.has-sticky-cta .fab-stack { bottom: 80px; transition: bottom .3s ease; }
}

/* --------------------------------------------------------------------------
   33. ARTICLE META + TOC
   -------------------------------------------------------------------------- */
.article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 14px;
  background: var(--accent-softer);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0 0 var(--s-5);
}
.article-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta__dot { color: var(--text-subtle); }

.toc {
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 0 0 var(--s-6);
}
.toc__head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--s-3);
}
.toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
  padding: 0; margin: 0;
}
.toc__item {
  position: relative;
  padding-left: 28px;
  counter-increment: toc;
}
.toc__item::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  opacity: .7;
}
.toc__item a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.toc__item a:hover { color: var(--accent-strong); border-bottom-color: var(--border-accent); }

/* scroll offset for anchor links so they don't hide under sticky header */
[id^="sec-"] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   34. РЕДИЗАЙН 2026-04-24 · Wave A — Foundation
   Per-hub color palette + info-rich cards + header CTA + visual hierarchy
   ========================================================================== */

/* ---- 34.1 Единая палитра на всех страницах --------------------------
   (убран per-hub accent override — брасс везде, цельность бренда).
   Цветовая категоризация остаётся только в micro-chips:
   - class-badge-цвета по диапазону 21-23/31-33/41-43 (ниже в §34.5)
   - room-tag, parameter-tag — не глобальный accent, а локальный chip
   ------------------------------------------------------------------------ */

/* ---- 34.2 Header CTA — более контрастный ------------------------------- */
.header-cta {
  /* override default из §6 — тёмный фон, кремовый текст, брасс-подсветка на hover */
  background: var(--text);
  color: var(--bg);
  border: 1px solid transparent;
  padding: 10px 18px;
  box-shadow: 0 2px 6px rgba(26,26,26,.08);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.header-cta:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: var(--sh-accent);
}
:root[data-theme="dark"] .header-cta {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
:root[data-theme="dark"] .header-cta:hover {
  background: var(--accent-strong);
}

/* ---- 34.3 Info-rich карточки — цифры в ряд ----------------------------- */

/* Общие метрики на карточке: сразу под названием, моноширинные числа */
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.card-stats__num {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}
.card-stats__sep { color: var(--text-subtle); opacity: 0.7; }
.card-stats__label { font-size: 0.75rem; }

/* Brand card — с метриками */
.brand-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  align-items: flex-start;
}
@media (hover: hover) {
  .brand-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
  }
}
.brand-card__flag {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  padding: 8px;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s;
}
.brand-card__flag img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;  /* убирает белый фон логотипа на кремовой карточке */
}
:root[data-theme="dark"] .brand-card__flag img {
  mix-blend-mode: screen;
  filter: brightness(1.08) contrast(0.95);
}
.brand-card:hover .brand-card__flag { border-color: var(--border-accent); transform: translateY(-1px); }
.brand-card__body { min-width: 0; }
.brand-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 2px;
}
.brand-card__country {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}
.brand-card__note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Class card — badge + name + доп. метрика */
.class-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  align-items: flex-start;
}
@media (hover: hover) {
  .class-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
  }
}
.class-card__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 12px;
  border-radius: var(--r-md);
  letter-spacing: -0.01em;
  line-height: 1.1;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
}
.class-card__body { min-width: 0; flex: 1; }
.class-card__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.class-card__hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Room card — иконка + название + hint + tag */
.room-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  min-height: 160px;
}
@media (hover: hover) {
  .room-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
    color: var(--text);
  }
}
.room-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  transition: background .2s ease, color .2s ease;
}
.room-card:hover .room-card__icon {
  background: var(--accent);
  color: var(--on-accent);
}
.room-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.room-card__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: auto;
}
.room-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-softer);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  margin-top: 10px;
}

/* Badge для классов на class-card — цветовой код по диапазону */
.class-card--residential .class-card__badge { color: #5A7158; background: rgba(90,113,88,.10); }
.class-card--commercial  .class-card__badge { color: #4B7B8B; background: rgba(75,123,139,.10); }
.class-card--industrial  .class-card__badge { color: #4A4A4A; background: rgba(74,74,74,.10); }

/* ==========================================================================
   35. РЕДИЗАЙН 2026-04-24 · Wave B — Motion + Mobile nav + Calc showcase + Typography
   ========================================================================== */

/* ---- 35.1 Mobile sticky nav (4 icon-tabs) ------------------------------ */
.mobile-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: none;                     /* скрыт на desktop/tablet */
  background: rgba(250,247,242,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
}
:root[data-theme="dark"] .mobile-nav { background: rgba(15,20,24,.90); }

@media (max-width: 640px) {
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); }
  /* компенсация для контента, чтобы не перекрывался */
  main { padding-bottom: 64px; }
  /* fab-стек поднять выше mobile-nav */
  .fab-stack { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color .15s ease, transform .15s ease;
  min-height: 56px;
  position: relative;
}
.mobile-nav__item:hover { color: var(--accent); }
.mobile-nav__item:active { transform: scale(0.96); }
.mobile-nav__item.is-active {
  color: var(--accent);
  font-weight: 700;
}
.mobile-nav__item.is-active::before {
  content: '';
  position: absolute;
  top: 2px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.mobile-nav__icon {
  width: 22px; height: 22px;
  stroke: currentColor;
  transition: transform .18s ease;
}
.mobile-nav__item.is-active .mobile-nav__icon { transform: translateY(-1px); }
.mobile-nav__label {
  letter-spacing: -0.005em;
  line-height: 1;
}

/* ---- 35.2 Calc showcase на главной ------------------------------------ */
.section--calc-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,127,58,.08), transparent 70%),
    linear-gradient(to bottom, var(--bg), var(--bg-alt));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--calc-showcase::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(197,127,58,.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.section--calc-showcase > .container { position: relative; z-index: 1; }

.calc-showcase__head .section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #C57F3A;
  margin-bottom: var(--s-3);
}
.calc-showcase__head .section__kicker::before,
.calc-showcase__head .section__kicker::after {
  content: '';
  width: 22px; height: 1.5px;
  background: #C57F3A;
  opacity: 0.6;
  border-radius: 2px;
}

.calc-showcase__wrap {
  position: relative;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  max-width: 960px;
  margin-inline: auto;
}
@media (min-width: 768px) { .calc-showcase__wrap { padding: var(--s-6); } }
@media (min-width: 1024px) { .calc-showcase__wrap { padding: var(--s-7); } }

/* --- dark ---- */
:root[data-theme="dark"] .section--calc-showcase {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,127,58,.14), transparent 70%),
    linear-gradient(to bottom, var(--bg), var(--bg-alt));
}

/* ---- 35.3 Hero — ambient glow полоска + hero-card bullets hover -------- */
.hero::after {
  /* warm ambient glow внизу-слева, balance right-side card */
  content: '';
  position: absolute;
  bottom: -40px; left: -10%;
  width: 520px; height: 320px;
  background: radial-gradient(ellipse, rgba(166,137,78,.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@media (hover: hover) {
  .hero-card__bullets li {
    padding: 4px 0 4px 0;
    transition: color .15s ease, padding-left .18s ease;
    border-radius: 4px;
  }
  .hero-card__bullets li:hover {
    color: var(--accent);
    padding-left: 4px;
  }
  .hero-card__bullets li:hover::before {
    opacity: 1;
    width: 20px;
  }
}

/* ---- 35.4 Typography — drop-cap + pull-quote + section spacing --------- */

/* Drop-cap — первая буква первого параграфа .page-prose внутри article */
body.page-articles .page-prose > p:first-of-type::first-letter,
.article-body .page-prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4em;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  margin-right: 0.04em;
  color: var(--accent);
  letter-spacing: -0.04em;
}

/* Pull-quote — использование: <blockquote class="pull">текст</blockquote> */
.page-prose blockquote.pull,
.article-body blockquote.pull {
  border-left: none;
  background: transparent;
  padding: var(--s-6) var(--s-5) var(--s-6) var(--s-6);
  margin: var(--s-7) 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.25;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  position: relative;
  max-width: 720px;
}
.page-prose blockquote.pull::before,
.article-body blockquote.pull::before {
  content: '«';
  position: absolute;
  left: -4px; top: -16px;
  font-family: var(--font-display);
  font-size: 4em;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
}
@media (min-width: 768px) {
  .page-prose blockquote.pull,
  .article-body blockquote.pull { font-size: 2.125rem; padding-left: var(--s-7); }
  .page-prose blockquote.pull::before,
  .article-body blockquote.pull::before { font-size: 5.5em; left: 0; }
}

/* Section spacing bump на desktop — 1024+ получает больше воздуха */
@media (min-width: 1024px) {
  .section { padding: 120px 0; }
  .section__head { margin-bottom: 72px; }
}
@media (min-width: 1280px) {
  .section { padding: 140px 0; }
}

/* ---- 35.5 Counter animate — не прыгает в момент анимации -------------- */
.trust-stat__value strong {
  display: inline-block;
  min-width: 1ch;
  will-change: contents;
  font-variant-numeric: tabular-nums;
}

/* ---- 35.6 Brand/Class/Room cards reveal (более мягкая анимация) ------- */
.brand-card.reveal,
.class-card.reveal,
.room-card.reveal {
  transform: translateY(20px) scale(0.98);
}
.brand-card.reveal.is-visible,
.class-card.reveal.is-visible,
.room-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   36. ПРОХОД 1 2026-04-24: unification + premium polish
   ========================================================================== */

/* ---- 36.1 Brand collections showcase (/brands/<brand>/) ---------------- */
.brand-collections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 560px) { .brand-collections__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .brand-collections__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .brand-collections__grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }

.brand-coll-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.brand-coll-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
  color: inherit;
}
.brand-coll-card:hover .brand-coll-card__img { transform: scale(1.04); }

.brand-coll-card__img {
  position: relative;
  aspect-ratio: 16 / 11;
  background-color: var(--surface-sunk);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; justify-content: center;
}
.brand-coll-card__placeholder {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-strong);
  opacity: 0.5;
  letter-spacing: -0.03em;
}
.brand-coll-card__tier {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.brand-coll-card__tier.tier-budget { background: rgba(230,247,233,.92); color: #2d6e3a; }
.brand-coll-card__tier.tier-mid    { background: rgba(254,243,212,.92); color: #8a6400; }
.brand-coll-card__tier.tier-top    { background: rgba(243,230,255,.92); color: #5a2e9a; }
:root[data-theme="dark"] .brand-coll-card__tier.tier-budget { background: rgba(45,110,58,.85); color: #dcf3e0; }
:root[data-theme="dark"] .brand-coll-card__tier.tier-mid    { background: rgba(138,100,0,.85); color: #fbe9b0; }
:root[data-theme="dark"] .brand-coll-card__tier.tier-top    { background: rgba(90,46,154,.85); color: #e5d0ff; }

.brand-coll-card__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.brand-coll-card__name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.brand-coll-card__meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.brand-coll-card__meta span {
  background: var(--surface-sunk);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
}
.brand-coll-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: auto;
  padding-top: var(--s-3);
}
.brand-coll-card__from { font-size: 0.75rem; color: var(--text-subtle); }
.brand-coll-card__val {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}
.brand-coll-card__unit { font-size: 0.8125rem; color: var(--text-muted); }

/* ---- 36.2 Визуальная шкала классов (/classes/<klass>/) ----------------- */
.class-scale {
  margin: var(--s-5) 0 var(--s-7);
  padding: var(--s-5) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.class-scale__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.class-scale__head strong { color: var(--text); font-weight: 700; }
.class-scale__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.class-scale__step {
  position: relative;
  padding: 10px 4px 18px;
  background: var(--surface-sunk);
  border-radius: var(--r-sm);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: all .2s var(--ease);
}
.class-scale__step--residential { background: color-mix(in srgb, #5A7158 15%, var(--surface-sunk)); }
.class-scale__step--commercial  { background: color-mix(in srgb, #4B7B8B 15%, var(--surface-sunk)); }
.class-scale__step--industrial  { background: color-mix(in srgb, #4A4A4A 15%, var(--surface-sunk)); }
.class-scale__step.is-current {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.125rem;
  transform: scale(1.08);
  box-shadow: var(--sh-accent);
  z-index: 2;
}
.class-scale__step.is-current::after {
  content: '↓';
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 12px;
}
.class-scale__legend {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.class-scale__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.class-scale__legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}
.class-scale__legend-dot--residential { background: #5A7158; }
.class-scale__legend-dot--commercial  { background: #4B7B8B; }
.class-scale__legend-dot--industrial  { background: #4A4A4A; }

/* ---- 36.3 SVG раскладка рулонов в калькуляторе ------------------------ */
.calc-layout-viz {
  margin: var(--s-4) 0 var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.calc-layout-viz__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.calc-layout-viz__head strong { color: var(--text); font-weight: 700; }
.calc-layout-viz__svg {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
}
.calc-layout-viz__svg .room-bg {
  fill: var(--surface);
  stroke: var(--text-subtle);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.calc-layout-viz__svg .strip {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1;
  transition: fill .3s;
}
.calc-layout-viz__svg .strip:hover { fill: var(--accent-softer); }
.calc-layout-viz__svg .strip-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  fill: var(--accent-strong);
  text-anchor: middle;
  dominant-baseline: middle;
}
.calc-layout-viz__svg .seam {
  stroke: var(--danger);
  stroke-width: 1.5;
  stroke-dasharray: 2 2;
}
.calc-layout-viz__svg .dim-label {
  font-size: 10px;
  fill: var(--text-muted);
  text-anchor: middle;
}
.calc-layout-viz__legend {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.75rem;
  color: var(--text-muted);
  justify-content: center;
}
.calc-layout-viz__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.calc-layout-viz__legend-swatch {
  width: 14px; height: 8px; border-radius: 2px;
}
.calc-layout-viz__legend-swatch--strip { background: var(--accent-soft); border: 1px solid var(--accent); }
.calc-layout-viz__legend-swatch--seam  { background: transparent; border-top: 1.5px dashed var(--danger); height: 0; }
.calc-layout-viz__legend-swatch--room  { background: transparent; border: 1.5px dashed var(--text-subtle); }

/* ---- 36.4 View Transitions API (progressive enhancement) -------------- */
@view-transition { navigation: auto; }

/* Плавный кросс-фейд (default), плюс slide для hero */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .32s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}
::view-transition-old(root) {
  animation-name: vt-fade-out;
}
::view-transition-new(root) {
  animation-name: vt-fade-in;
}
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* Логотип остаётся "плавающим" при переходах */
.site-logo { view-transition-name: site-logo; }
.site-header { view-transition-name: site-header; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---- 36.5 Унификация hero-декора hub/detail --------------------------- */
/* На detail-page (narrow hero без aside-card) добавляем ambient-glow как на home */
.hero:not(:has(.hero-card))::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -10%;
  width: 520px;
  height: 320px;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}


/* ---- 34.4 Section labels — вертикальная линия слева ----------------- */
.section__label {
  /* оставляем текущую правую линию, она есть */
}

/* ---- 34.5 Mobile stats для compactности --------------------------------- */
@media (max-width: 640px) {
  .brand-card { grid-template-columns: 48px 1fr; gap: 12px; padding: 16px; }
  .brand-card__flag { width: 48px; height: 48px; font-size: 1.5rem; }
  .brand-card__name { font-size: 1.125rem; }
  .class-card { padding: 16px; gap: 12px; }
  .class-card__badge { font-size: 1rem; padding: 6px 10px; }
  .room-card { min-height: 140px; padding: 16px; }
}

/* ==========================================================================
   38. ПРОХОД 3 2026-04-24 — ПК-верстка (user: «много косяков на ПК»)
   ========================================================================== */

/* ---- 38.1 Hero--simple → редизайн (Проход 8): сбалансированный 1-кол. --- */
.hero--simple .hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: end;
}
.hero--simple .hero__body {
  max-width: 760px;
}
.hero--simple .hero__body h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: none;
}
.hero--simple .hero__lead {
  font-size: 1rem;
  max-width: 620px;
}
.hero--simple .hero__deco { display: none; }

/* Уменьшаем вертикальный padding на detail-страницах — H1 сам по себе компактен */
.hero--simple { padding: var(--s-6) 0 var(--s-5); }
@media (min-width: 768px) {
  .hero--simple { padding: var(--s-7) 0 var(--s-6); }
  .hero--simple .hero__lead { font-size: 1.0625rem; }
}
@media (min-width: 1024px) {
  .hero--simple { padding: var(--s-8) 0 var(--s-7); }
  /* На ПК — 2 колонки: текст + декор-шейп для визуального баланса */
  .hero--simple .hero__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-8);
    align-items: center;
  }
  .hero--simple .hero__deco {
    display: block;
    position: relative;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
    pointer-events: none;
  }
  /* Декор: концентрические круги напоминающие срез линолеума */
  .hero--simple .hero__deco-shape {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 65% 50%, var(--accent-soft) 0%, transparent 55%),
      conic-gradient(from 0deg at 65% 50%,
        color-mix(in srgb, var(--accent) 18%, transparent) 0deg,
        transparent 60deg,
        color-mix(in srgb, var(--accent) 12%, transparent) 180deg,
        transparent 280deg);
    opacity: 0.55;
    mask-image: radial-gradient(circle at 65% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 65% 50%, black 30%, transparent 70%);
  }
  .hero--simple .hero__deco::before {
    content: '';
    position: absolute;
    top: 50%; left: 65%;
    width: 220px; height: 220px;
    transform: translate(-50%, -50%);
    background:
      repeating-radial-gradient(circle at center,
        transparent 0 8px,
        color-mix(in srgb, var(--accent) 18%, transparent) 8px 9px);
    border-radius: 50%;
    opacity: 0.5;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    animation: hero-deco-rotate 38s linear infinite;
  }
  @keyframes hero-deco-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero--simple .hero__deco::before { animation: none; }
}
/* Убираем старый ambient glow из §36.5 — теперь hero__deco даёт визуал */
.hero.hero--simple:not(:has(.hero-card))::after { display: none; }

/* ---- 38.2 Container-narrow → обычный контейнер на detail/calc ---------- */
/* Страницы (raschet, podbor, kak-vybrat-linoleum) имели container-narrow
   в hero → остаются узкими. Дадим дефолт. */
.hero .container-narrow {
  max-width: var(--container);
}
.hero .container-narrow > *:not(.hero__layout):not(.hero__body):not(.hero__deco) {
  max-width: 720px;
}

/* ---- 38.3 Content-main ширина на ПК ------------------------------------- */
/* На detail страницах с aside контент 776px, без aside — 900px. */
.with-aside .content-main { min-width: 0; }
.content-main > .toc--sticky { margin-bottom: var(--s-6); }

/* ---- 38.4 Section padding на ПК — больше воздуха -------------------------- */
@media (min-width: 1024px) {
  .section { padding: var(--s-9) 0; }
  .section + .section { padding-top: 0; }
}

/* ---- 38.5 Brand-coll-card на 4 колонки по умолчанию на ПК ---------------- */
@media (min-width: 1280px) {
  .brand-collections__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1440px) {
  .brand-collections__grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
}

/* ---- 38.6 Protective-viz на ПК — (картинку убрали, остался vertical stack) ---- */
@media (min-width: 900px) {
  .protective-viz {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
  }
  .protective-viz__head { margin-bottom: 0; }
  .protective-viz__slider-wrap { margin-top: var(--s-2); }
  .protective-viz__presets { margin-top: 0; }
  .protective-viz__verdict { margin-top: var(--s-2); }
}

/* ---- 38.7 Class-scale на ПК — больше, с описаниями снизу --------------- */
@media (min-width: 1024px) {
  .class-scale__step {
    padding: 14px 6px 22px;
    font-size: 1.0625rem;
  }
  .class-scale__step.is-current {
    font-size: 1.375rem;
  }
  .class-scale__legend {
    margin-top: var(--s-4);
    justify-content: space-between;
    font-size: 0.8125rem;
  }
}

/* ---- 38.8 Calc на ПК — 2-column result layout --------------------------- */
@media (min-width: 1024px) {
  .calc__result {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-4) var(--s-5);
    align-items: start;
  }
  .calc__result > .calc-main-result,
  .calc__result > .calc-grid-details,
  .calc__result > .calc-warning,
  .calc__result > .calc-collections__head,
  .calc__result > .calc-cta-stack { grid-column: 1 / -1; }
  .calc__result > .calc-layout-viz,
  .calc__result > .calc-layouts { grid-column: 1; }
  .calc__result > .calc-collections { grid-column: 2; align-self: start; }
}

/* ---- 38.9 Header CTA на ПК — более prominently --------------------------- */
@media (min-width: 1024px) {
  .header-cta {
    padding: 11px 22px;
    font-size: 0.9375rem;
  }
}

/* ---- 38.10 Aside-card premium polish на ПК -------------------------------- */
@media (min-width: 1024px) {
  .aside {
    position: sticky;
    top: calc(var(--header-h, 64px) + var(--s-4));
    max-height: calc(100vh - var(--header-h, 64px) - var(--s-5));
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* ---- 38.11 Quiz на ПК — карточки в два-три столбца ---------------------- */
@media (min-width: 768px) {
  .quiz__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s-3);
  }
  .quiz__option {
    flex-direction: column;
    padding: var(--s-4);
    text-align: center;
    gap: 8px;
    min-height: 120px;
  }
  .quiz__option__icon { font-size: 2rem; }
}

/* ---- 38.12 FAB-stack на ПК — не перекрываются ---------------------------- */
@media (min-width: 1024px) {
  .fab-stack { right: 24px; bottom: 24px; gap: 12px; }
  body.has-sticky-cta .fab-stack { bottom: 84px; }
}



/* ==========================================================================
   37. ПРОХОД 2 2026-04-24 — Motion & Depth
   Scroll-driven, 3D parallax, premium dark, reading experience, калькулятор polish
   ========================================================================== */

/* ---- 37.1 Reading progress bar (scroll-timeline, progressive enhancement) ---- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: transparent;
  z-index: 1001;
  pointer-events: none;
}
.reading-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transform-origin: 0 50%;
  transition: width .08s linear;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}
/* CSS scroll-timeline (Chrome 115+, Firefox 134+) — отключает JS-обновление */
@supports (animation-timeline: scroll()) {
  .reading-progress__fill {
    width: 100%;
    transform: scaleX(0);
    animation: reading-progress-fill linear;
    animation-timeline: scroll(root);
    transition: none;
  }
}
@keyframes reading-progress-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
}

/* ---- 37.2 Hero parallax glow (scroll-timeline) --------------------------- */
@supports (animation-timeline: scroll()) {
  .hero::before,
  .hero::after {
    animation: hero-parallax linear;
    animation-timeline: scroll(root);
    animation-range: 0 60vh;
    will-change: transform, opacity;
  }
  @keyframes hero-parallax {
    to { transform: translateY(-30px); opacity: 0.4; }
  }
  .hero:not(:has(.hero-card))::after {
    animation: hero-glow-drift linear;
    animation-timeline: scroll(root);
    animation-range: 0 80vh;
  }
  @keyframes hero-glow-drift {
    to { transform: translate(40px, -20px) scale(1.15); opacity: 0.3; }
  }
}

/* ---- 37.3 3D parallax cards (mousemove tilt) ----------------------------- */
/* JS добавляет data-tilt на карточки и обновляет --tx/--ty */
.brand-card,
.brand-coll-card,
.class-card,
.room-card,
.calc-card {
  transform-style: preserve-3d;
  will-change: transform;
}
[data-tilt] {
  position: relative;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  /* transform задаётся inline через JS — перекрывает :hover transform карточек */
}
[data-tilt].is-tilting {
  transition: transform .06s linear;
}
/* Блеск на hover — симулируем движение света */
[data-tilt]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at calc(50% + var(--tx, 0) * 30%) calc(50% + var(--ty, 0) * 30%),
    color-mix(in srgb, var(--accent) 10%, transparent) 0%,
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  z-index: 1;
  mix-blend-mode: plus-lighter;
}
[data-tilt].is-tilting::before { opacity: 1; }
[data-tilt] > * { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  [data-tilt] { transform: none !important; }
  [data-tilt]::before { display: none; }
}

/* ---- 37.4 (удалено) view-timeline reveal конфликтовал с inline transform у 3D tilt;
              JS IntersectionObserver в §3 покрывает нужное. ---- */

/* ---- 37.5 Интерактивная инфографика защитного слоя ----------------------- */
.protective-viz {
  margin: var(--s-5) 0 var(--s-7);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.protective-viz__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.protective-viz__head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 200px;
}
.protective-viz__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.protective-viz__sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.protective-viz__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
  transition: color .3s;
}
.protective-viz__value-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}
/* Картинка-разрез удалена по фидбеку user'а («не получается нормальная картинка, убирай»).
   Виджет теперь чисто интерактивный: slider + presets + verdict + note. */

/* ==========================================================================
   39. ПРОХОД 4 · Share + Restore (3D-комната была удалена по фидбеку user'а)
   ========================================================================== */

/* ---- 39.2 Share-кнопка ------------------------------------------------- */
.calc-cta--share {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.calc-cta--share:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}
.calc-cta--share svg {
  color: var(--accent);
}

/* ---- 39.3 Toast (copy clipboard confirmation) ------------------------- */
.calc-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1);
  z-index: 9999;
  pointer-events: none;
}
.calc-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- 39.4 Restore-banner («напомнить вашу комнату?») ------------------ */
.calc-restore-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-soft) 60%, var(--surface)),
    var(--surface));
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  animation: restore-banner-in .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes restore-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.calc-restore-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.calc-restore-banner__text strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9375rem;
}
.calc-restore-banner__text span {
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.calc-restore-banner__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn--sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

/* ---- 39.5 Mobile polish ------------------------------------------------- */
@media (max-width: 640px) {
  .calc-restore-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .calc-restore-banner__actions { justify-content: flex-end; }
}


/* Блок-note про гомогенный линолеум (под verdict) */
.protective-viz__note {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface));
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.protective-viz__note strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}
.protective-viz__note b {
  color: var(--accent-strong);
  font-weight: 700;
}
/* Slider */
.protective-viz__slider-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 0;
}
.protective-viz__slider-wrap label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  flex: 0 0 auto;
}
.protective-viz__slider {
  flex: 1;
  height: 34px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.protective-viz__slider::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 80%, transparent) 0%,
    color-mix(in srgb, var(--accent) 80%, transparent) var(--progress, 50%),
    var(--surface-sunk) var(--progress, 50%),
    var(--surface-sunk) 100%);
  border-radius: 3px;
  border: 1px solid var(--border);
}
.protective-viz__slider::-moz-range-track {
  height: 6px;
  background: var(--surface-sunk);
  border-radius: 3px;
  border: 1px solid var(--border);
}
.protective-viz__slider::-moz-range-progress {
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
}
.protective-viz__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent);
  cursor: grab;
  margin-top: -9px;
  transition: transform .15s, box-shadow .15s;
}
.protective-viz__slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.protective-viz__slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.25); }
.protective-viz__slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent);
  cursor: grab;
}
.protective-viz__verdict {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: baseline;
}
.protective-viz__verdict-class {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
}
.protective-viz__verdict-where {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}
.protective-viz__verdict-where strong { color: var(--accent-strong); font-weight: 700; }
.protective-viz__presets {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.protective-viz__preset {
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-variant-numeric: tabular-nums;
}
.protective-viz__preset:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}
.protective-viz__preset.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-accent);
}

/* ---- 37.6 Premium dark mode polish --------------------------------------- */
:root[data-theme="dark"] {
  /* Дополнительные surface-уровни для глубины */
  --surface-1: #141a1f;
  --surface-2: #1c232a;
  --surface-3: #252d35;
  --surface-elev: #2a333c;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at top left, rgba(166,137,78,.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(166,137,78,.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .brand-card,
:root[data-theme="dark"] .class-card,
:root[data-theme="dark"] .room-card,
:root[data-theme="dark"] .brand-coll-card {
  background: var(--surface);
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 4px 12px rgba(0,0,0,.3);
}
:root[data-theme="dark"] .brand-card:hover,
:root[data-theme="dark"] .class-card:hover,
:root[data-theme="dark"] .room-card:hover,
:root[data-theme="dark"] .brand-coll-card:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 8px 24px rgba(0,0,0,.4),
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Subtle accent glow под главной hero plate на dark */
:root[data-theme="dark"] .hero-card {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 20px 60px -20px rgba(0,0,0,.5),
    0 0 80px -30px color-mix(in srgb, var(--accent) 50%, transparent);
}
/* Smooth theme transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color .3s ease,
    border-color .3s ease,
    color .2s ease,
    box-shadow .3s ease !important;
}

/* ---- 37.7 Reading time + TOC (articles/types detail) --------------------- */
.article-meta__reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.article-meta__reading-time svg {
  width: 12px; height: 12px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-5);
}
.toc__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc__link {
  display: block;
  padding: 6px 10px 6px 14px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0 4px 4px 0;
  transition: all .15s;
  line-height: 1.4;
}
.toc__link:hover {
  border-left-color: var(--accent);
  background: var(--surface-sunk);
  color: var(--text);
}
.toc__link.is-active {
  border-left-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}
@media (min-width: 1100px) {
  .toc--sticky {
    position: sticky;
    top: calc(var(--header-h, 64px) + var(--s-4));
    max-height: calc(100vh - var(--header-h, 64px) - var(--s-5));
    overflow-y: auto;
  }
}

/* ---- 37.8 Calculator micro-interactions ---------------------------------- */
/* SVG strip reveal — animated dash на submit */
.calc-layout-viz__svg .strip {
  animation: strip-slide-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.calc-layout-viz__svg .strip:nth-child(2) { animation-delay: .05s; }
.calc-layout-viz__svg .strip:nth-child(3) { animation-delay: .1s; }
.calc-layout-viz__svg .strip:nth-child(4) { animation-delay: .15s; }
@keyframes strip-slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.calc-layout-viz__svg .seam {
  stroke-dasharray: 0 8;
  animation: seam-dash 1s cubic-bezier(.2,.8,.2,1) .3s forwards;
}
@keyframes seam-dash {
  to { stroke-dasharray: 2 2; }
}
.calc-layout-viz__svg .room-bg {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: room-trace 1.2s cubic-bezier(.4,0,.2,1) .3s forwards;
}
@keyframes room-trace {
  to { stroke-dashoffset: 0; }
}
.calc-layout-viz__svg .strip-label,
.calc-layout-viz__svg .dim-label {
  animation: label-fade-in .4s ease-out .6s both;
}
@keyframes label-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Animated value with @property (progressive enhancement) */
@property --calc-main-num {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}
.calc-main-result__value {
  display: inline-block;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.calc-main-result__value.is-pulsing {
  animation: num-pulse .5s cubic-bezier(.4, 0, .2, 1);
}
@keyframes num-pulse {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.12); filter: brightness(1.1); }
}

/* Layout switcher — активная кнопка светится */
.calc-layout.is-active {
  position: relative;
}
.calc-layout.is-active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px -4px var(--accent);
  pointer-events: none;
  animation: layout-glow .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes layout-glow {
  0%   { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .calc-layout-viz__svg *,
  .calc-main-result__value,
  .calc-layout.is-active::after {
    animation: none !important;
  }
}

/* ==========================================================================
   43. PWA install prompt + animated diagram в quiz2 preview
   ========================================================================== */

/* PWA install banner — fixed bottom-center, slide-up */
.pwa-install {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  width: min(94vw, 480px);
  padding: 14px 18px;
  background: var(--surface-raised, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 16px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--text) 22%, transparent);
  z-index: 9000;
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), opacity 0.32s;
  opacity: 0;
}
.pwa-install.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.pwa-install__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  font-size: 1.25rem;
}
.pwa-install__title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.pwa-install__sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.pwa-install__close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.pwa-install__close:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 559px) {
  .pwa-install {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon body close"
      "btn btn btn";
    padding: 12px 14px;
    gap: 10px;
  }
  .pwa-install__icon { grid-area: icon; }
  .pwa-install__body { grid-area: body; }
  .pwa-install__close { grid-area: close; }
  .pwa-install #pwa-install-btn { grid-area: btn; width: 100%; margin-top: 4px; }
}

/* Animated diagram в quiz2 live-preview */
.quiz2__diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: var(--s-3) 4px;
  margin-bottom: var(--s-2);
}
.quiz2__diagram-line {
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--diagram-progress, 100%),
    color-mix(in srgb, var(--border) 60%, transparent) var(--diagram-progress, 100%),
    color-mix(in srgb, var(--border) 60%, transparent) 100%
  );
  z-index: 0;
}
.quiz2__diagram-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  animation: quiz2-node-in .35s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes quiz2-node-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz2__diagram-node { animation: none; }
}
.quiz2__diagram-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-sunk, var(--surface));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all .25s;
}
.quiz2__diagram-node.is-done .quiz2__diagram-circle {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.quiz2__diagram-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.2;
}
.quiz2__diagram-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.quiz2__diagram-node.is-done .quiz2__diagram-value { color: var(--accent-strong); }

.quiz2__diagram-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-sunk, color-mix(in srgb, var(--bg) 60%, var(--surface)));
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
}
.quiz2__diagram-extra-label {
  font-weight: 600;
  color: var(--text-muted);
}
.quiz2__diagram-extra-value {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Mobile: вертикальная компоновка диаграммы */
@media (max-width: 1023px) {
  .quiz2__diagram {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .quiz2__diagram-line { display: none; }
}

/* ==========================================================================
   42. LEGACY raw_html-стили (контент из extract.py: err-list, myth-card,
       timeline, tool-list, spot-list, faq-item, duration-card, related-list)
       — мимикрия под наш базовый дизайн без перерисовки JSON-контента
   ========================================================================== */

/* Wrapper-обёртка raw_html — нейтрализуем встроенный .section (наш partial
   уже даёт <section class="section">) */
.section .section-label,
.section > .section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.section > .section-label::after {
  content: ''; width: 36px; height: 1.5px;
  background: var(--accent); opacity: 0.7; border-radius: 2px;
}
.section > .section-title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
@media (min-width: 768px) { .section > .section-title { font-size: var(--fs-3xl); letter-spacing: -0.028em; } }
@media (min-width: 1024px) { .section > .section-title { font-size: var(--fs-4xl); letter-spacing: -0.032em; } }

/* err-list — Топ-10 ошибок, проверка готовности */
.err-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
@media (min-width: 768px) { .err-list { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.err {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: grid;
  gap: 6px;
}
.err-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.err-text {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.err-fix { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }

/* myth-list — мифы и факты */
.myth-list { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 768px) { .myth-list { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.myth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.myth-x {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #d97706 16%, transparent);
  color: #d97706;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.myth-title { font-weight: 700; margin-bottom: 4px; color: var(--text); font-size: 1rem; }
.myth-body { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.myth-desc { display: block; }

/* tool-list — инструменты для укладки */
.tool-list { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 560px) { .tool-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tool-list { grid-template-columns: repeat(3, 1fr); } }
.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex; flex-direction: column;
  gap: 6px;
}
.tool-icon { font-size: 1.75rem; line-height: 1; margin-bottom: 4px; }
.tool-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.tool-note { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.tool-price {
  display: inline-block;
  margin-top: auto;
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  width: fit-content;
}

/* spot-list — список пятен и способов очистки */
.spot-list { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.spot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.spot-emoji { font-size: 1.875rem; line-height: 1; }
.spot-name { font-weight: 700; color: var(--text); font-size: 1.0625rem; margin-bottom: 4px; }
.spot-info { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.5; margin-bottom: 6px; }
.spot-fix {
  display: block;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* duration-grid — длительности службы по классам */
.duration-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 560px) { .duration-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .duration-grid { grid-template-columns: repeat(4, 1fr); } }
.duration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
}
.duration-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.875rem;
}
.duration-info { font-size: 0.875rem; color: var(--text-muted); }
.tier { font-weight: 700; color: var(--text); font-size: 1rem; }
.tier-sub { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.time {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}

/* timeline — история, эволюция */
.timeline { position: relative; padding-left: var(--s-5); margin-top: var(--s-5); }
.timeline::before {
  content: ''; position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent-soft);
}
.tl-item { position: relative; padding-bottom: var(--s-4); }
.tl-item:last-child { padding-bottom: 0; }
.tl-circle, .tl-dot {
  position: absolute;
  left: -22px; top: 4px;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.tl-line { display: none; }
.tl-year { font-weight: 700; color: var(--accent); font-size: 0.9375rem; margin-bottom: 2px; display: block; }
.tl-text { color: var(--text); font-size: 0.9375rem; line-height: 1.55; }

/* faq-list (legacy) — мимикрия под наш .faq */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: var(--s-5); }
.faq-item {
  border-top: 1px solid var(--border);
  padding: var(--s-4) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.faq-a { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; }
.faq-divider, .faq-icon { display: none; }

/* related-list — кросс-ссылки */
.related-list { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s-5); }
.related-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
  transition: all .15s;
}
.related-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.rl-icon { font-size: 1.125rem; flex-shrink: 0; }
.rl-arrow { margin-left: auto; color: var(--text-subtle); font-weight: 600; }

/* prose — общий текстовый блок */
.prose { max-width: 720px; }
.prose p { margin-bottom: var(--s-3); line-height: 1.65; }
.prose ul, .prose ol { padding-left: var(--s-4); margin-bottom: var(--s-3); }
.prose li { margin-bottom: 6px; line-height: 1.6; }

/* === Quiz Redesign 2026-05-25 === */

/* Опция с 0 коллекциями — серая */
.quiz2__option--zero {
  opacity: 0.55;
  background: #f5f5f5;
}
.quiz2__option--zero .quiz2__option-counter {
  color: #c77f5e;
  font-weight: 600;
}

/* Результат: hero блок */
.quiz2__result-hero {
  text-align: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, #faf7f2 0%, #fff 100%);
  border-radius: 16px;
  margin-bottom: 24px;
}
.quiz2__result-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: #5b4223;
  margin: 0 0 8px;
}
.quiz2__result-layer {
  color: #a6894e;
  font-size: 16px;
  margin: 0 0 16px;
}
.quiz2__result-why {
  color: #5b4223;
  font-size: 14px;
  font-style: italic;
  margin: 0 0 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.quiz2__result-cta {
  display: inline-block;
  background: #a6894e;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.15s;
}
.quiz2__result-cta:hover { background: #5b4223; }

/* Топ-3 */
.quiz2__result-top3 {
  margin: 24px 0;
}
.quiz2__result-top3 h3 {
  font-family: 'Fraunces', serif;
  margin: 0 0 12px;
  color: #5b4223;
}
.quiz2__result-collection {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #ebe4d6;
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.quiz2__result-collection:hover { border-color: #a6894e; }
.quiz2__result-collection img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.quiz2__result-collection-name { flex: 1; font-weight: 500; }
.quiz2__result-collection-price { color: #a6894e; font-weight: 600; }

/* Tips */
.quiz2__result-tips {
  background: #fff8e7;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}
.quiz2__result-tips h3 {
  margin: 0 0 8px;
  font-family: 'Fraunces', serif;
}
.quiz2__result-tips ul { margin: 0; padding-left: 20px; }

/* What-if pills */
.quiz2__result-whatif {
  margin: 24px 0;
}
.quiz2__result-whatif h3 {
  margin: 0 0 12px;
  font-family: 'Fraunces', serif;
}
.quiz2__what-if-pill {
  display: inline-block;
  background: white;
  border: 1px solid #a6894e;
  color: #5b4223;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  margin: 4px;
  transition: background 0.15s;
}
.quiz2__what-if-pill:hover { background: #faf7f2; }

/* Footer */
.quiz2__result-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #ebe4d6;
}
.quiz2__result-footer a, .quiz2__result-footer button {
  background: none;
  border: none;
  color: #5b4223;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
}
.quiz2__result-footer a:hover, .quiz2__result-footer button:hover {
  color: #a6894e;
  text-decoration: underline;
}

/* Fallback state */
.quiz2__result-fallback {
  text-align: center;
  padding: 32px 16px;
}
.quiz2__result-fallback-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  color: #c77f5e;
  margin: 0 0 16px;
}
.quiz2__result-fallback-explain {
  color: #5b4223;
  font-size: 16px;
  margin: 0 0 8px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.quiz2__result-fallback-reason {
  color: #a6894e;
  font-size: 14px;
  margin: 0 0 24px;
}
.quiz2__result-fallback-path {
  display: block;
  background: white;
  border: 1px solid #ebe4d6;
  border-radius: 8px;
  padding: 16px;
  margin: 8px auto;
  max-width: 480px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.quiz2__result-fallback-path:hover {
  border-color: #a6894e;
  transform: translateY(-1px);
}
.quiz2__result-fallback-path-label {
  display: block;
  font-weight: 600;
  color: #5b4223;
  font-size: 15px;
}
.quiz2__result-fallback-path-count {
  display: block;
  color: #a6894e;
  font-size: 13px;
  margin-top: 4px;
}
.quiz2__result-fallback-empty {
  color: #888;
  font-style: italic;
  margin: 24px 0;
}

/* === v1 → v2 migration toast === */
.quiz2__migration-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #5b4223;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.quiz2__migration-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}
