/* ===== Video-Panels.ru — новая версия. Дизайн-система ===== */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.25rem, 1rem + 3.6vw, 4.25rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Фирменные цвета старого сайта: navy #01295b + оранжевый акцент схем */
  --navy-950: #000f24;
  --navy-900: #011a3b;
  --navy-800: #01295b;
  --navy-700: #0a3a75;
  --navy-100: #dfe7f2;
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-surface-2: #f9fafc;
  --color-surface-offset: #eaeef4;
  --color-divider: #dde3eb;
  --color-border: #cfd7e2;
  --color-text: #0d1b2e;
  --color-text-muted: #56657a;
  --color-text-faint: #8d99aa;
  --color-text-inverse: #f3f6fb;
  --color-primary: #f39200;
  --color-primary-hover: #d97f00;
  --color-primary-active: #b86b00;
  --color-primary-ink: #b25f00; /* оранжевый для текста на светлом фоне (контраст) */
  --color-success: #2f7d32;
  --color-error: #b3261e;

  --radius-sm: .375rem; --radius-md: .5rem; --radius-lg: .75rem; --radius-xl: 1rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgb(1 26 59 / .06);
  --shadow-md: 0 6px 18px rgb(1 26 59 / .08);
  --shadow-lg: 0 18px 40px rgb(1 26 59 / .14);
  --content-wide: 1240px;
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Onest', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
a { color: inherit; }
ul[role='list'] { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input, select, textarea { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.container { width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), var(--content-wide)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--white { background: var(--color-surface); }
.section--navy { background: var(--navy-900); color: var(--color-text-inverse); }

.eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary-ink); font-weight: 500; display: inline-flex; gap: var(--space-2); align-items: center; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--color-primary); }
.h2 { font-size: var(--text-xl); font-weight: 800; margin-top: var(--space-3); }
.lead { color: var(--color-text-muted); max-width: 62ch; margin-top: var(--space-4); }
.section--navy .lead { color: #b7c4d8; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-8); margin-bottom: var(--space-10); flex-wrap: wrap; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: .85rem 1.4rem; border-radius: var(--radius-md); font-weight: 600; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; line-height: 1.2; }
.btn--primary { background: var(--color-primary); color: #1b1100; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .08); border-color: #fff; }
.btn--outline { border-color: var(--color-border); color: var(--color-text); background: var(--color-surface); }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { color: var(--navy-800); font-weight: 600; text-decoration: none; font-size: var(--text-sm); display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow:hover { color: var(--color-primary-ink); }

/* ===== Шапка ===== */
.topbar { background: var(--navy-950); color: #9fb0c8; font-size: var(--text-xs); }
.topbar .container { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #d8e1ee; }
.topbar a:hover { color: var(--color-primary); }
.topbar__group { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-divider); }
.header .container { display: flex; align-items: center; gap: var(--space-6); min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--navy-800); flex-shrink: 0; }
.logo__mark { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; }
.footer .logo__mark { box-shadow: 0 0 0 2px #fff; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.logo__sub { font-size: .75rem; color: var(--color-text-muted); }
.nav { display: flex; gap: var(--space-1); margin-left: auto; }
.nav a { padding: .55rem .8rem; border-radius: var(--radius-md); text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.nav a:hover { background: var(--color-surface-offset); }
.nav a[aria-current='page'] { color: var(--navy-800); background: var(--navy-100); }
.header__cta { display: flex; gap: var(--space-3); align-items: center; }
.header__phone { font-weight: 700; text-decoration: none; font-size: var(--text-sm); color: var(--navy-800); white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--color-border); align-items: center; justify-content: center; margin-left: auto; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .nav, .header__phone { display: none; }
  .burger { display: inline-flex; }
  .header__cta { margin-left: 0; }
  .mobile-nav.open { display: block; position: fixed; inset: 0; top: 0; background: var(--color-surface); z-index: 60; padding: var(--space-6); overflow-y: auto; }
  .mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
  .mobile-nav a.m-link { display: block; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); font-size: var(--text-lg); font-weight: 600; text-decoration: none; font-family: var(--font-display); }
  .mobile-nav .btn { margin-top: var(--space-6); }
}
@media (max-width: 560px) { .header__cta .btn { display: none; } .topbar__hours { display: none; } }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; background: var(--navy-950); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 15 36 / .96) 0%, rgb(0 15 36 / .85) 42%, rgb(0 15 36 / .25) 100%); }
/* фирменный мотив: швы видеостены поверх картинки */
.hero__seams { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgb(0 0 0 / .55) 2px, transparent 2px), linear-gradient(to bottom, rgb(0 0 0 / .55) 2px, transparent 2px); background-size: calc(100% / 6) calc(100% / 3); mask-image: linear-gradient(90deg, transparent 35%, #000 70%); pointer-events: none; }
.hero .container { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.hero__content { max-width: 720px; }
.hero h1 { font-size: var(--text-3xl); font-weight: 800; margin-top: var(--space-4); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero__sub { margin-top: var(--space-5); color: #c7d3e4; font-size: var(--text-base); max-width: 58ch; }
.hero__actions { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.hero__facts { display: grid; grid-template-columns: repeat(4, auto); gap: var(--space-6) var(--space-10); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgb(255 255 255 / .15); justify-content: start; }
.hero__facts dt { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: #fff; }
.hero__facts dd { font-size: var(--text-xs); color: #9fb0c8; max-width: 18ch; }
@media (max-width: 720px) { .hero__facts { grid-template-columns: 1fr 1fr; } .hero::before { background: linear-gradient(180deg, rgb(0 15 36 / .8), rgb(0 15 36 / .95)); } }

/* ===== Быстрый выбор ===== */
.quick { margin-top: calc(-1 * var(--space-12)); position: relative; z-index: 2; }
.quick__grid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--color-divider); }
.quick__item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-5); text-decoration: none; border-right: 1px solid var(--color-divider); }
.quick__item:last-child { border-right: 0; }
.quick__item:hover { background: var(--color-surface-2); }
.quick__item:hover .quick__title { color: var(--color-primary-ink); }
.quick__icon { width: 34px; height: 34px; color: var(--navy-800); }
.quick__title { font-weight: 700; font-size: var(--text-sm); line-height: 1.25; }
.quick__meta { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.4; }
@media (max-width: 1080px) { .quick__grid { grid-template-columns: repeat(3, 1fr); } .quick__item:nth-child(3) { border-right: 0; } .quick__item:nth-child(-n+3) { border-bottom: 1px solid var(--color-divider); } }
@media (max-width: 560px) { .quick__grid { grid-template-columns: 1fr 1fr; } .quick__item { border-right: 1px solid var(--color-divider) !important; border-bottom: 1px solid var(--color-divider); } .quick__item:nth-child(2n) { border-right: 0 !important; } }

/* ===== Калькулятор ===== */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--color-surface); border-radius: var(--radius-xl); border: 1px solid var(--color-divider); overflow: hidden; box-shadow: var(--shadow-md); }
.calc__form { padding: clamp(var(--space-6), 4vw, var(--space-10)); display: grid; gap: var(--space-6); align-content: start; }
.calc__result { background: var(--navy-900); color: #fff; padding: clamp(var(--space-6), 4vw, var(--space-10)); display: flex; flex-direction: column; gap: var(--space-6); }
.field-label { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); display: block; }
.field-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .5rem .9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--text-sm); background: var(--color-surface); cursor: pointer; }
.chip input:hover + span { border-color: var(--navy-700); }
.chip input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.input, .select, .textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-sm); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgb(1 41 91 / .12); }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); }
.stepper button { width: 44px; height: 44px; font-size: 1.2rem; font-weight: 600; color: var(--navy-800); }
.stepper button:hover { background: var(--color-surface-offset); }
.stepper output { flex: 1; text-align: center; font-family: var(--font-mono); font-weight: 600; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); }
.check { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy-800); }
.wall-preview { background: #04142b; border-radius: var(--radius-lg); padding: var(--space-5); border: 1px solid rgb(255 255 255 / .08); }
.wall-preview__grid { display: grid; gap: 3px; margin-inline: auto; background: #000; padding: 3px; border-radius: 4px; transition: aspect-ratio .3s; }
.wall-preview__grid div { background: linear-gradient(135deg, #0a3a75, #12508f 55%, #f39200 160%); }
.wall-preview__cap { font-family: var(--font-mono); font-size: var(--text-xs); color: #8fa3c0; margin-top: var(--space-3); text-align: center; }
.specs-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgb(255 255 255 / .1); border-radius: var(--radius-md); overflow: hidden; }
.specs-out div { background: var(--navy-900); padding: var(--space-3) var(--space-4); }
.specs-out dt { font-size: var(--text-xs); color: #8fa3c0; }
.specs-out dd { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); color: #fff; }
.calc__note { font-size: var(--text-xs); color: #9fb0c8; }
.calc__price { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .checks, .grid-2 { grid-template-columns: 1fr; } }

/* ===== Карточки ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1000px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3, .cards-4 { grid-template-columns: 1fr; } }
.card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.card h3 { font-size: var(--text-base); font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.card__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-primary-ink); font-weight: 600; }
.card--link { text-decoration: none; }
.card--link:hover { border-color: var(--navy-700); box-shadow: var(--shadow-md); }

/* Конфигурации */
.config { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.config:hover { box-shadow: var(--shadow-md); border-color: var(--navy-700); }
.config__vis { aspect-ratio: 16/10; background: var(--navy-900); display: grid; place-items: center; padding: var(--space-6); }
.config__vis .mini-wall { display: grid; gap: 2px; background: #000; padding: 2px; width: 72%; }
.config__vis .mini-wall i { aspect-ratio: 16/9; background: linear-gradient(135deg, #0a3a75, #1a5fa6 60%, #f39200 170%); }
.config__body { padding: var(--space-5); display: grid; gap: var(--space-2); }
.config__body h3 { font-size: var(--text-base); font-family: var(--font-body); letter-spacing: 0; }
.config__tags { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }

/* Отрасли — split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.split__img { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.industry-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-8); margin-top: var(--space-8); }
.industry-list a { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); text-decoration: none; font-weight: 600; font-size: var(--text-sm); }
.industry-list a:hover { color: var(--color-primary-ink); }
.industry-list small { display: block; font-weight: 400; color: var(--color-text-muted); font-size: var(--text-xs); }
@media (max-width: 480px) { .industry-list { grid-template-columns: 1fr; } }

/* Полоса изображения */
.band { position: relative; min-height: 440px; display: flex; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 15 36 / .92) 10%, rgb(0 15 36 / .2) 80%); }
.band .container { padding-block: var(--space-12); }
.band h2 { font-size: var(--text-2xl); font-weight: 800; max-width: 22ch; }
.band p { color: #c7d3e4; max-width: 56ch; margin-top: var(--space-3); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-3); counter-reset: s; }
.step { border-top: 3px solid var(--color-primary); padding-top: var(--space-4); }
.step b { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-primary); display: block; }
.step h3 { font-size: var(--text-sm); font-family: var(--font-body); letter-spacing: 0; margin-top: var(--space-2); color: #fff; }
.step p { font-size: var(--text-xs); color: #9fb0c8; margin-top: var(--space-1); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); row-gap: var(--space-8); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Бренды */
.brands { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.brands span { padding: .6rem 1.1rem; border: 1px solid var(--color-divider); border-radius: var(--radius-md); font-family: var(--font-display); font-weight: 700; color: var(--color-text-muted); background: var(--color-surface); font-size: var(--text-sm); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); max-width: 880px; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-5) var(--space-6); font-weight: 600; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--color-primary-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 var(--space-6) var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }

/* Форма заявки */
.lead-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.lead-form { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); display: grid; gap: var(--space-4); }
.lead-form .consent { font-size: var(--text-xs); color: var(--color-text-muted); }
.lead-form .consent a { color: var(--navy-800); }
.lead-perks { display: grid; gap: var(--space-4); margin-top: var(--space-8); list-style: none; }
.lead-perks li { display: flex; gap: var(--space-3); color: #c7d3e4; font-size: var(--text-sm); }
.lead-perks li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: .5em; background: var(--color-primary); border-radius: 2px; }
.form-ok { display: none; text-align: center; padding: var(--space-8) 0; }
.form-ok h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.form-ok p { color: var(--color-text-muted); font-size: var(--text-sm); margin-inline: auto; }
form.sent .form-fields { display: none; } form.sent .form-ok { display: block; }
.form-fields { display: grid; gap: var(--space-4); }
.input.invalid { border-color: var(--color-error); }
.err-msg { color: var(--color-error); font-size: var(--text-xs); display: none; }
.input.invalid + .err-msg { display: block; }
@media (max-width: 900px) { .lead-box { grid-template-columns: 1fr; } }

/* ===== Подвал ===== */
.footer { background: var(--navy-950); color: #9fb0c8; font-size: var(--text-sm); }
.footer .container { padding-block: var(--space-16) var(--space-8); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-8); }
.footer h3 { color: #fff; font-size: var(--text-sm); font-family: var(--font-body); letter-spacing: 0; margin-bottom: var(--space-4); }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer a { text-decoration: none; color: #c7d3e4; }
.footer a:hover { color: var(--color-primary); }
.footer .logo { color: #fff; }
.footer .logo__sub { color: #8fa3c0; }
.footer__bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgb(255 255 255 / .1); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Плавающая кнопка мессенджера на мобильных */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--color-divider); backdrop-filter: blur(10px); }
  body { padding-bottom: 68px; }
}

/* ===== Внутренние страницы ===== */
.page-head { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.page-head .container { padding-block: var(--space-12) var(--space-10); }
.page-head h1 { font-size: var(--text-2xl); font-weight: 800; margin-top: var(--space-3); }
.page-head p { color: #b7c4d8; margin-top: var(--space-3); max-width: 64ch; }
.page-head::after { content: ''; position: absolute; right: -40px; top: 0; bottom: 0; width: 45%; background-image: linear-gradient(to right, rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 64px 36px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.crumbs { font-size: var(--text-xs); color: #8fa3c0; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.crumbs a { color: #c7d3e4; text-decoration: none; }
.crumbs a:hover { color: var(--color-primary); }

/* Каталог */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-8); align-items: start; }
.filters { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-6); position: sticky; top: 96px; }
.filters fieldset { border: 0; display: grid; gap: var(--space-2); }
.filters legend { font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.filters .check { font-size: var(--text-sm); }
.filters-toggle { display: none; }
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.cat-toolbar .count { font-size: var(--text-sm); color: var(--color-text-muted); }
.cat-toolbar .select { width: auto; }
.subcats { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.subcats button { padding: .5rem .9rem; border-radius: var(--radius-full); border: 1.5px solid var(--color-border); background: var(--color-surface); font-size: var(--text-sm); font-weight: 500; }
.subcats button:hover { border-color: var(--navy-700); }
.subcats button[aria-pressed='true'] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.product { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; }
.product:hover { box-shadow: var(--shadow-md); border-color: var(--color-border); }
.product__img { aspect-ratio: 4/3; background: #fff; display: grid; place-items: center; padding: var(--space-4); border-bottom: 1px solid var(--color-divider); position: relative; }
.product__img img { max-height: 100%; object-fit: contain; }
.badge { position: absolute; top: var(--space-3); left: var(--space-3); font-size: var(--text-xs); font-weight: 600; padding: .2rem .55rem; border-radius: var(--radius-sm); background: var(--navy-100); color: var(--navy-800); }
.badge--stock { background: #dff0e0; color: var(--color-success); }
.product__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.product__brand { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.product h3 { font-size: var(--text-sm); font-family: var(--font-body); letter-spacing: 0; font-weight: 700; line-height: 1.35; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { color: var(--color-primary-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .2rem var(--space-3); font-size: var(--text-xs); }
.kv dt { color: var(--color-text-muted); }
.kv dd { font-family: var(--font-mono); text-align: right; }
.product__foot { margin-top: auto; display: grid; gap: var(--space-2); }
.product__price { font-weight: 700; font-size: var(--text-sm); }
.product__price small { display: block; font-weight: 400; color: var(--color-text-muted); font-size: var(--text-xs); }
.product__actions { display: flex; gap: var(--space-2); }
.product__actions .btn { flex: 1; padding: .65rem .8rem; }
.cmp { width: 42px; flex: 0 0 42px !important; padding: 0 !important; }
.cmp[aria-pressed='true'] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.empty { grid-column: 1/-1; text-align: center; padding: var(--space-16) var(--space-4); background: var(--color-surface); border-radius: var(--radius-lg); border: 1px dashed var(--color-border); }
.empty p { color: var(--color-text-muted); margin: var(--space-2) auto var(--space-4); }
.compare-bar { position: fixed; bottom: var(--space-4); left: 50%; transform: translateX(-50%) translateY(150%); background: var(--navy-900); color: #fff; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); border-radius: var(--radius-full); display: flex; gap: var(--space-4); align-items: center; z-index: 45; box-shadow: var(--shadow-lg); font-size: var(--text-sm); }
.compare-bar.show { transform: translateX(-50%) translateY(0); }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .compare-bar { bottom: 80px; }
}
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }
.seo-text { max-width: 820px; color: var(--color-text-muted); font-size: var(--text-sm); display: grid; gap: var(--space-4); }
.seo-text h2 { color: var(--color-text); font-size: var(--text-lg); }

/* Карточка товара */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.gallery__main { background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-xl); aspect-ratio: 4/3; display: grid; place-items: center; padding: var(--space-6); overflow: hidden; }
.gallery__main img { max-height: 100%; object-fit: contain; }
.gallery__main.cover { padding: 0; } .gallery__main.cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
.gallery__thumbs button { aspect-ratio: 4/3; border: 1.5px solid var(--color-divider); border-radius: var(--radius-md); background: #fff; overflow: hidden; padding: 0; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-current='true'] { border-color: var(--navy-800); box-shadow: 0 0 0 2px var(--navy-100); }
.gallery__thumbs .scheme { display: grid; place-items: center; background: var(--navy-900); color: #fff; font-size: var(--text-xs); font-weight: 600; }
.pdp__info h1 { font-size: var(--text-xl); font-weight: 800; }
.pdp__meta { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); font-family: var(--font-mono); }
.pdp__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
.pdp__keys div { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.pdp__keys dt { font-size: var(--text-xs); color: var(--color-text-muted); }
.pdp__keys dd { font-family: var(--font-mono); font-weight: 600; }
.buybox { margin-top: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
.buybox__price { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; }
.buybox__price small { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; }
.buybox__btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.buybox__perks { display: grid; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); list-style: none; }
.buybox__perks li { display: flex; gap: var(--space-2); }
.buybox__perks svg { width: 16px; height: 16px; color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-divider); overflow-x: auto; }
.tabs button { padding: var(--space-3) var(--space-4); font-weight: 600; font-size: var(--text-sm); color: var(--color-text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--navy-800); border-color: var(--color-primary); }
.tabs button:hover { color: var(--color-text); }
.tabpanel { padding-top: var(--space-8); }
.spec-table th, .spec-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-divider); font-size: var(--text-sm); vertical-align: top; }
.spec-table th { width: 45%; color: var(--color-text-muted); font-weight: 500; }
.spec-table td { font-family: var(--font-mono); }
.spec-table tr.grp th { color: var(--color-text); font-weight: 700; font-family: var(--font-display); background: var(--color-surface-offset); }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.kit li { list-style: none; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); display: flex; gap: var(--space-3); align-items: start; }
.kit li b { font-family: var(--font-mono); color: var(--color-primary-ink); font-size: var(--text-xs); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .kit { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pdp__keys { grid-template-columns: 1fr 1fr; } .kit { grid-template-columns: 1fr; } .buybox__btns { grid-template-columns: 1fr; } }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.contact-grid .card a { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); text-decoration: none; color: var(--navy-800); }
.contact-grid .card a:hover { color: var(--color-primary-ink); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Кейс */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.case-meta div { border-left: 3px solid var(--color-primary); padding-left: var(--space-4); }
.case-meta dt { font-size: var(--text-xs); color: var(--color-text-muted); }
.case-meta dd { font-weight: 700; }
@media (max-width: 700px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.demo-note { background: #fff6e6; border: 1px solid #f6d7a3; color: #6b4300; font-size: var(--text-xs); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.prose { display: grid; gap: var(--space-4); max-width: 760px; }
.prose h2 { font-size: var(--text-lg); margin-top: var(--space-4); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul { padding-left: var(--space-5); display: grid; gap: var(--space-2); }

.reveal { opacity: 1; }
[hidden] { display: none !important; }
/* калькулятор v2 */
.calc-step { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--color-divider); }
.calc-step legend { font-family: var(--font-display); font-weight: 800; font-size: var(--text-base); display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: var(--space-4); float: left; width: 100%; }
.calc-step legend + * { clear: both; }
.calc-step legend b { width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: var(--navy-900); display: grid; place-items: center; font-size: var(--text-sm); }
.upload { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.upload .btn { cursor: pointer; }
.btn--ghost-dark { background: transparent; color: var(--navy-800); border: 1.5px solid transparent; }
.btn--ghost-dark:hover { background: var(--color-surface-offset); }
.field-error { color: #b42318; }
.wall-preview__stage { position: relative; margin-inline: auto; background: #000; padding: 3px; border-radius: 4px; }
.wall-preview__media { position: absolute; inset: 3px; overflow: hidden; }
.wall-preview__media img, .wall-preview__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-preview__stage .wall-preview__grid { position: relative; padding: 0; background: transparent; width: 100% !important; }
.wall-preview__stage.has-media .wall-preview__grid div { background: transparent; }
.wall-preview__stage .wall-preview__grid div { outline: 1.5px solid #000; }
.calc__warn { font-size: var(--text-xs); color: #ffd28a; background: rgb(243 146 0 / .12); border: 1px solid rgb(243 146 0 / .35); border-radius: var(--radius-md); padding: .6rem .8rem; }
.kit-out { margin-top: .5rem; padding-left: 0; list-style: none; font-size: var(--text-sm); display: grid; gap: .4rem; color: #dbe4f0; }
.kit-out li { display: flex; justify-content: space-between; gap: var(--space-3); border-bottom: 1px dashed rgb(255 255 255 / .1); padding-bottom: .35rem; }
.kit-out li span:last-child { font-family: var(--font-mono); white-space: nowrap; color: #fff; text-align: right; }
.kit-out a { color: inherit; }
.calc__price small { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 400; color: #c9d4e3; margin-top: .3rem; }
.filters [data-brands] { max-height: 320px; overflow-y: auto; }

.rrp { display: inline-block; font-family: var(--font-body); font-size: .62em; font-weight: 700; letter-spacing: .04em; color: var(--color-text-muted); vertical-align: .18em; margin-right: .15em; }
.calc__price .rrp, .calc .rrp { color: #c9d4e3; }

a.card { text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.card:hover { border-color: var(--color-primary, #f39200); }

.brand-head { display: flex; align-items: center; gap: var(--space-4); }
.brand-head > img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; }
@media (max-width: 560px) { .brand-head > img { width: 48px; height: 48px; } }

.social { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }
.cases--mini { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.cases--home { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cases--home { grid-template-columns: 1fr; } }
.case { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.case__body { padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.case__body h3 { font-size: var(--text-base); font-family: var(--font-body); letter-spacing: 0; line-height: 1.3; }
.case--mini .case__body { padding: var(--space-4); }
.case__facts { display: grid; gap: var(--space-2); margin: 0; }
.case__facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-2); font-size: var(--text-sm); }
.case__facts dt { color: var(--color-text-muted); }
.case__facts dd { margin: 0; }
.case__links { display: flex; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); margin-top: auto; }
.vbox { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: var(--navy-950); cursor: pointer; overflow: hidden; }
.vbox img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vbox:hover img { transform: scale(1.03); }
.vbox__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: var(--color-primary, #f39200); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.vbox__play svg { width: 28px; height: 28px; margin-left: 3px; }
.vbox__dur { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0,15,36,.8); color: #fff; font-family: var(--font-mono); font-size: var(--text-xs); padding: .15rem .4rem; border-radius: 4px; }
.vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.subcats__label { flex-basis: 100%; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin-top: var(--space-2); }

/* Госзаказчикам */
.gov-stats { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-10); margin-top: var(--space-8); }
.gov-stats dt { font-family: var(--font-display, Manrope, sans-serif); font-weight: 800; font-size: var(--text-lg); color: var(--navy-800); }
.gov-stats dd { font-size: var(--text-sm); color: var(--color-text-muted); }
.etp { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.etp li { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md, 10px); padding: var(--space-4) var(--space-5); display: grid; gap: 2px; }
.etp li b { font-size: var(--text-sm); } .etp li span { font-size: var(--text-xs); color: var(--color-text-muted); }
.etp--compact { grid-template-columns: repeat(2, 1fr); align-content: center; }
@media (max-width: 900px) { .etp { grid-template-columns: repeat(2, 1fr); } }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .steps--5 { grid-template-columns: 1fr 1fr; } }
.lead-box--light { color: var(--color-text); }
.lead-perks--dark li { color: var(--color-text); }
.lead-form--bordered { border: 1px solid var(--color-divider); box-shadow: 0 10px 30px rgba(1, 41, 91, .08); }
.lead-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.seg { display: flex !important; flex-wrap: wrap; gap: var(--space-2) var(--space-6) !important; align-items: center; }
.seg legend { margin-bottom: var(--space-2); }
.checks-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); }
@media (max-width: 560px) { .checks-2 { grid-template-columns: 1fr; } }

/* ---- Помощник подбора ---- */
.va { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; font-size: var(--text-sm); }
.va__fab { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.15rem; border: 0; border-radius: var(--radius-full); background: var(--color-primary); color: #1b1100; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer; }
.va__fab:hover { background: var(--color-primary-hover); }
.va--open .va__fab { display: none; }
.va__panel { width: min(400px, calc(100vw - 2rem)); height: min(620px, calc(100dvh - 2.5rem)); display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.va__panel[hidden] { display: none; }
.va__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; background: var(--navy-800); color: #fff; }
.va__head b { display: block; font-size: var(--text-base); }
.va__head small { color: rgb(255 255 255 / .75); }
.va__x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .25rem .5rem; }
.va__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--color-bg); }
.va__msg { max-width: 92%; padding: .6rem .8rem; border-radius: var(--radius-lg); line-height: 1.45; }
.va__msg--bot { background: var(--color-surface); border: 1px solid var(--color-divider); align-self: flex-start; }
.va__msg--me { background: var(--navy-800); color: #fff; align-self: flex-end; }
.va__msg small { display: block; color: var(--color-text-muted); margin-top: .4rem; }
.va__input { padding: .75rem; border-top: 1px solid var(--color-divider); max-height: 55%; overflow-y: auto; }
.va__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.va__chip { padding: .5rem .8rem; border: 1.5px solid var(--navy-800); border-radius: var(--radius-full); background: #fff; color: var(--navy-800); font-weight: 600; font-size: var(--text-xs); cursor: pointer; text-align: left; }
.va__chip:hover { background: var(--navy-800); color: #fff; }
.va__wait { color: var(--color-text-muted); margin: 0; }
.va__items { display: grid; gap: .5rem; margin-top: .25rem; }
.va__item { display: grid; grid-template-columns: auto auto 1fr 3.6rem; gap: .5rem; align-items: center; padding: .4rem; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface-2); }
.va__item img { width: 56px; height: 42px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); }
.va__item a { color: var(--color-text); font-weight: 600; font-size: var(--text-xs); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.va__item small { margin: 0; }
.va__qty { width: 3.6rem; padding: .35rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }
.va__kp { width: 100%; border-collapse: collapse; margin: .5rem 0 0; font-size: var(--text-xs); }
.va__kp th, .va__kp td { border-bottom: 1px solid var(--color-divider); padding: .3rem .25rem; text-align: left; vertical-align: top; }
.va__kp th:nth-child(n+3), .va__kp td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.va__kp tfoot td { font-weight: 700; border-bottom: 0; }
.va__form { display: grid; gap: .45rem; }
.va__form .input { padding: .6rem .75rem; font-size: var(--text-sm); }
.va__form .invalid { border-color: #c0392b; }
.va__agree { font-size: var(--text-xs); }
.va__agree.invalid, .va__agree:has(.invalid) { color: #c0392b; }
.va__steps { margin: .4rem 0 0; padding-left: 1.2rem; }
@media (max-width: 560px) { .va { right: .75rem; bottom: .75rem; } .va__fab span { display: none; } .va__fab { padding: .9rem; } .va__panel { position: fixed; inset: auto .5rem .5rem .5rem; width: auto; } }
@media print { .va { display: none; } }
@media (max-width: 1440px) and (min-width: 1081px) { .header__phone { display: none; } .header .container { gap: var(--space-4); } .nav a { padding: .55rem .6rem; } }
.va__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.va__form textarea.input { min-height: 0; }
.va__input:has(.va__form) { max-height: 62%; }
.page-head .gov-stats dt { color: var(--color-primary); }
.page-head .gov-stats dd { color: rgb(255 255 255 / .78); margin: 0; }

/* ---- Кабинет менеджера: заявки ---- */
.mgr__top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mgr-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin: 1.25rem 0; }
.mgr-stat { text-align: left; padding: .75rem .9rem; border: 1px solid var(--color-border); border-left: 4px solid var(--c, var(--navy-800)); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-xs); color: var(--color-text-muted); cursor: pointer; }
.mgr-stat b { display: block; font-size: var(--text-lg); color: var(--color-text); }
.mgr-stat[aria-pressed="true"] { background: var(--navy-100); }
.mgr-stat--new, .badge--new { --c: #f39200; } .mgr-stat--work, .badge--work { --c: #1f6fd1; } .mgr-stat--agree, .badge--agree { --c: #7a4fd6; }
.mgr-stat--sent, .badge--sent { --c: #0e8a8a; } .mgr-stat--won, .badge--won { --c: #2e8540; } .mgr-stat--lost, .badge--lost { --c: #8d99aa; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); border: 1px solid color-mix(in srgb, var(--c) 35%, white); white-space: nowrap; }
.mgr-bar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .6rem; align-items: center; margin-bottom: .75rem; }
.mgr-tw { overflow-x: auto; }
.mgr-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); }
.mgr-table th { text-align: left; padding: .6rem .75rem; background: var(--color-surface-offset); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .03em; color: var(--color-text-muted); }
.mgr-table td { padding: .65rem .75rem; border-top: 1px solid var(--color-divider); vertical-align: top; }
.mgr-table td small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); }
.mgr-table tr[data-no] { cursor: pointer; } .mgr-table tr[data-no]:hover { background: var(--color-surface-2); }
.mgr-table .num, .mgr-items .num { text-align: right; white-space: nowrap; }
.mgr-empty { text-align: center; color: var(--color-text-muted); padding: 2.5rem 1rem !important; }
.mgr-d { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--color-surface); box-shadow: var(--shadow-lg); z-index: 70; overflow-y: auto; padding: 1.25rem 1.5rem 2rem; }
.mgr-d h2 { font-size: var(--text-lg); margin: 0; } .mgr-d h3 { font-size: var(--text-base); margin: 1.25rem 0 .5rem; }
.mgr-d__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; } .mgr-d__head small { color: var(--color-text-muted); }
.mgr-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--color-text-muted); }
.mgr-d__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; } .mgr-d__grid label { display: grid; gap: .3rem; }
.mgr-kv { display: grid; grid-template-columns: 9rem 1fr; gap: .3rem .75rem; margin: 0; font-size: var(--text-sm); } .mgr-kv dt { color: var(--color-text-muted); } .mgr-kv dd { margin: 0; }
.mgr-items { width: 100%; border-collapse: collapse; font-size: var(--text-xs); } .mgr-items th, .mgr-items td { padding: .4rem .35rem; border-bottom: 1px solid var(--color-divider); text-align: left; vertical-align: top; }
.mgr-items .input { width: 6.5rem; padding: .35rem .45rem; font-size: var(--text-xs); } .mgr-items td:nth-child(2) .input { width: 3.8rem; }
.mgr-items tfoot td { font-weight: 700; border-bottom: 0; }
.mgr-d__btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.mgr-note { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: start; }
.mgr-hist { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; font-size: var(--text-xs); }
.mgr-hist li { padding: .5rem .7rem; background: var(--color-surface-2); border-left: 3px solid var(--navy-700); border-radius: var(--radius-sm); }
.mgr-mail { margin-top: 1.25rem; font-size: var(--text-sm); } .mgr-mail pre { white-space: pre-wrap; font-size: var(--text-xs); background: var(--color-surface-2); padding: .75rem; border-radius: var(--radius-md); border: 1px solid var(--color-divider); }
.mgr-del { margin-top: 1.25rem; color: #b3261e; }
.lead-no { margin-top: .75rem !important; color: var(--color-text) !important; }
@media (max-width: 900px) { .mgr-stats { grid-template-columns: repeat(3, 1fr); } .mgr-bar { grid-template-columns: 1fr 1fr; } .mgr-bar .input { grid-column: 1 / -1; } }

/* ---- Наличие на складе ---- */
.stock { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .75rem; font-size: var(--text-sm); font-weight: 600; }
.stock svg { flex: none; }
.stock--in { color: #1e7a34; }
.stock--eta { color: #9a5b00; }
.stock--order { color: var(--color-text-muted); font-weight: 500; }
.stock--card { margin: .15rem 0 .35rem; font-size: var(--text-xs); padding: .15rem .5rem .15rem .35rem; border-radius: var(--radius-full); background: #e7f5ea; }
.stock--card.stock--eta { background: #fff2dd; padding-left: .5rem; }
.stock-filter { padding: .6rem .75rem; border: 1px solid #b9dfc2; background: #f1faf3; border-radius: var(--radius-md); font-weight: 600; }
.va__in { color: #1e7a34; } .va__order { color: #9a5b00; font-weight: 600; }
.va__found { display: grid; gap: .35rem; max-height: 220px; overflow-y: auto; }
.va__hit { text-align: left; padding: .45rem .6rem; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface-2); cursor: pointer; font-size: var(--text-xs); }
.va__hit:hover { border-color: var(--navy-800); } .va__hit b { display: block; font-weight: 600; } .va__hit small { color: var(--color-text-muted); }
.va__search .btn { padding: .6rem .7rem; font-size: var(--text-xs); white-space: normal; }

/* ---- Вход менеджера ---- */
.mgr-login { min-height: 100vh; display: grid; place-items: center; background: var(--color-bg); padding: 1rem; }
.mgr-login__box { width: min(420px, 100%); display: grid; gap: .9rem; padding: 2rem; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.mgr-login__box h1 { font-size: var(--text-lg); margin: 0; }
.mgr-login__box p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.mgr-login__err { color: #b3261e !important; font-weight: 600; }
.mgr-logout { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: .75rem; }
.mgr-logout .btn { padding: .4rem .9rem; }
/* Распродажа */
.sale-badge { position: absolute; top: .6rem; left: .6rem; display: inline-flex; align-items: center; gap: .3rem; background: #c8102e; color: #fff; font-size: var(--text-xs); font-weight: 700; line-height: 1; padding: .38rem .6rem .38rem .45rem; border-radius: var(--radius-full); box-shadow: 0 2px 6px rgba(200,16,46,.25); }
.sale-badge--pdp { position: static; margin-bottom: .55rem; font-family: var(--font-body); }
.product__price--sale .old, .buybox__price--sale .old { display: block; font-weight: 400; color: var(--color-text-muted); text-decoration: line-through; font-size: var(--text-xs); }
.product__price--sale .now { color: #c8102e; font-size: var(--text-base); }
.buybox__price--sale .old { font-size: var(--text-sm); font-family: var(--font-body); }
.buybox__price--sale .now { display: block; color: #c8102e; }
.sale-cond { margin: 0 0 .35rem; font-size: var(--text-xs); color: #8a4b00; background: #fff4e5; border-radius: var(--radius-sm, 6px); padding: .25rem .5rem; }
.sale-filter { color: #c8102e; font-weight: 600; }
/* Данные для регистрации проекта */
.kp-note { border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-lg); padding: var(--space-4); background: var(--color-bg); font-size: var(--text-sm); line-height: 1.5; }
.kp-note b { display: block; margin-bottom: .25rem; }
.kp-note p { margin: 0 0 .5rem; }
.kp-note ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.kp-note--dark { margin-top: 1.5rem; background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .2); border-left-color: var(--color-primary); color: rgb(255 255 255 / .9); }
.lead-box--consult .kp-note--dark { opacity: .55; }
.kp-fields { display: grid; gap: var(--space-4); }
.kp-fields[hidden], [data-kp][hidden], [data-end-inn][hidden] { display: none; }
.mode-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .3rem; border-radius: var(--radius-lg); background: var(--color-bg); border: 1px solid var(--color-border); }
.mode-seg label { cursor: pointer; }
.mode-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mode-seg span { display: block; text-align: center; padding: .55rem .5rem; border-radius: var(--radius-md); font-weight: 600; font-size: var(--text-sm); }
.mode-seg input:checked + span { background: var(--navy-800); color: #fff; }
.mode-seg input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.buybox__kp { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; margin: .75rem 0; padding: .6rem .75rem; background: var(--color-bg); border-radius: var(--radius-md); }
.buybox__kp b { color: var(--color-text); }
.va__form [hidden] { display: none; }
.invalid + .err-msg { display: block; } .select.invalid, .textarea.invalid { border-color: var(--color-error); }

/* Бренды и Гид */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); }
.brand-tile { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-4); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.brand-tile:hover { border-color: var(--navy-700); box-shadow: 0 4px 16px rgb(1 41 91 / .08); }
.brand-logo { height: 56px; width: 100%; min-width: 0; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.brand-logo img { max-height: 56px; max-width: 100%; min-width: 0; width: auto; height: auto; object-fit: contain; flex-shrink: 1; }
.brand-logo--text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy-800); letter-spacing: .01em; }
.brand-tile small { color: var(--color-text-muted); font-size: var(--text-xs); }
.brand-hero { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); align-items: center; }
.brand-hero__logo { background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-4); min-height: 120px; display: flex; align-items: center; justify-content: center; }
.brand-hero__logo img { max-width: 100%; max-height: 96px; width: auto; height: auto; }
.brand-hero__logo .brand-logo--text { font-size: 1.8rem; text-align: center; }
.brand-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.brand-facts { color: #b9c6da; } .brand-facts b { color: #fff; }
.cat-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.cat-links a { display: inline-block; padding: .4rem .8rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--text-sm); background: var(--color-surface); text-decoration: none; color: var(--color-text); }
.cat-links a:hover { border-color: var(--navy-700); }
@media (max-width: 720px) { .brand-hero { grid-template-columns: 1fr; gap: var(--space-4); } .brand-hero__logo { max-width: 220px; min-height: 72px; padding: var(--space-3); } }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); align-items: start; }
.article .prose { max-width: none; }
.article .prose h2 { font-size: var(--text-xl); margin-top: var(--space-6); color: var(--color-text); }
.article .prose ol { padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.article .prose ol li { color: var(--color-text-muted); }
.article aside { position: sticky; top: 96px; display: grid; gap: var(--space-4); }
.toc { font-size: var(--text-sm); }
.toc ol { padding-left: var(--space-5); display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.tbl thead th { background: var(--color-surface-offset); color: var(--color-text); }
.tbl td:first-child { font-weight: 600; color: var(--color-text); }
.tbl-wrap { overflow-x: auto; }
.gid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.gid-grid .card h2 { font-size: var(--text-lg); }
.gid-grid .card a { text-decoration: none; color: inherit; }
.incat { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.incat a { display: flex; justify-content: space-between; gap: var(--space-3); text-decoration: none; color: var(--color-text); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-divider); }
.incat a small { color: var(--color-text-muted); white-space: nowrap; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .article aside { position: static; } }
