/* SmartHomes.kz — «Тихая витрина». Цвета и размеры — в tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--w-regular);
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--w-light); letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: var(--w-medium); letter-spacing: -0.005em; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; }
table { font-variant-numeric: tabular-nums; }
::selection { background: var(--copper); color: var(--white); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--graphite); color: var(--paper); padding: 12px 18px; border-radius: var(--pill); text-decoration: none; }
.skip-link:focus { top: 12px; }
.reveal { opacity: 1; transform: none; }

/* ---------- Подписи, рубрики, ссылки ---------- */
.eyebrow, .section-kicker, .filter-label, .model-card-brand, .board-top, .proof-stamp {
  font-size: var(--fs-label);
  font-weight: var(--w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-5);
  line-height: 1.4;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span, .section-kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--copper); flex: none; }
.section-kicker { display: flex; align-items: center; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--graphite); font-weight: var(--w-medium); text-decoration: underline;
  text-decoration-color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: color var(--ease);
}
.text-link:hover { color: var(--copper); }
main p a:not(.button):not(.text-link), main li a:not(.button):not(.text-link), main td a, .answer-lead a {
  text-decoration-color: var(--copper); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--ease);
}
main p a:not(.button):hover, main li a:not(.button):hover, main td a:hover { color: var(--copper); }

/* ---------- Кнопки: таблетки ---------- */
.button, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 26px; border-radius: var(--pill);
  border: 1px solid var(--graphite); background: transparent; color: var(--graphite);
  font: var(--w-bold) 1rem/1.2 var(--font); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.button-primary, .button-accent, .nav-cta { background: var(--copper); border-color: var(--copper); color: var(--white); }
.button-primary:hover, .button-accent:hover, .nav-cta:hover { background: var(--copper-hover); border-color: var(--copper-hover); }
.button-quiet:hover { background: var(--graphite); color: var(--paper); }
.button:disabled { opacity: 0.7; cursor: progress; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); font-size: 1.125rem; font-weight: var(--w-bold); letter-spacing: -0.01em; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; }
.brand span span { font-weight: var(--w-light); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.nav-cta) { font-size: var(--fs-small); text-decoration: none; color: var(--muted); padding: 10px 0; transition: color var(--ease); border-bottom: 1px solid transparent; }
.main-nav a:not(.nav-cta):hover { color: var(--graphite); }
.main-nav a[aria-current="page"] { color: var(--graphite); border-bottom-color: var(--copper); }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; height: 1px; background: var(--graphite); transition: transform var(--ease), opacity var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 32px; background: var(--paper);
    overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity var(--ease), visibility var(--ease);
  }
  .main-nav.is-open { visibility: visible; opacity: 1; }
  .main-nav a:not(.nav-cta) { font-size: 1.5rem; font-weight: var(--w-light); color: var(--graphite); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--copper); }
  .nav-cta { margin-top: 24px; min-height: var(--tap); font-size: 1rem; }
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { max-width: calc(var(--shell) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 0; font-size: 0.8125rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.breadcrumbs a:hover { color: var(--graphite); }

/* ---------- Разделы ---------- */
.section { padding: var(--section) 0; }
.section + .section:not(.section-light):not(.section-ink):not(.request-section) { border-top: 1px solid var(--line); }
.section-light { background: var(--stone); }
.section-ink, .request-section { background: var(--graphite); color: var(--on-dark); }
.section-ink .section-kicker, .request-section .section-kicker { color: var(--on-dark-muted); }
.section-ink .section-kicker::before, .request-section .section-kicker::before { background: var(--copper-light); }
.section-ink p, .request-section p { color: var(--on-dark-muted); }
.section-ink h2, .section-ink h3, .request-section h2 { color: var(--on-dark); }
.section-ink .text-link, .request-section .text-link { color: var(--on-dark); text-decoration-color: var(--copper-light); }
.section-ink .button-quiet { color: var(--on-dark); border-color: var(--on-dark-muted); }

.section-heading { max-width: 760px; margin-bottom: var(--space-7); }
.section-heading h2 { font-size: var(--fs-h2); line-height: 1.08; margin-bottom: var(--space-5); }
.section-heading p { font-size: 1.125rem; color: var(--muted); max-width: var(--measure); }
.section-heading .text-link { margin-top: var(--space-2); }
.h2-small, .section-heading .h2-small { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: var(--w-regular); line-height: 1.2; margin-bottom: var(--space-4); }
.section > .shell > p, .section > .shell > ul, .section > .shell > ol, .split-2 p, .split p { max-width: var(--measure); }

/* ---------- Первый экран ---------- */
.hero { padding-top: var(--space-8); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-copy { max-width: 760px; }
.hero h1, .catalog-hero h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: var(--space-5); }
.hero-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--graphite); max-width: 60ch; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }
.microcopy { font-size: var(--fs-small); color: var(--muted); max-width: 52ch; margin: var(--space-4) 0 0; }
@media (min-width: 1024px) {
  .hero-grid:has(> :nth-child(2)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); }
}

/* Фото замка на камне */
.showcase { margin: 0; }
.showcase-stage { display: flex; align-items: center; justify-content: center; background: var(--stone); padding: 40px 24px; min-height: 360px; border-radius: var(--radius-photo); text-decoration: none; transition: background-color var(--ease); }
.showcase-stage:hover { background: #E1DED8; }
.showcase-stage img { max-height: 520px; width: auto; }
.showcase figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--graphite); margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
.showcase figcaption strong { color: var(--graphite); font-weight: var(--w-medium); }
@media (max-width: 599px) { .showcase-stage { min-height: 300px; } .showcase-stage img { max-height: 340px; } }

.section-light + .section-light { border-top: 1px solid var(--line); }

/* «Коротко» */
.trust-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-rail .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 18px; padding-bottom: 18px; font-size: var(--fs-small); font-weight: var(--w-medium); }
.trust-rail i { width: 4px; height: 4px; border-radius: 50%; background: var(--copper); }

/* Прямой ответ */
.answer-lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 62ch; margin: 0; }

/* ---------- Списки смыслов (вместо карточек) ---------- */
.problem-grid { display: grid; gap: var(--space-6) var(--space-7); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; }
.problem-card { border-top: 1px solid var(--graphite); padding-top: var(--space-5); }
.section-ink .problem-card { border-top-color: var(--line-dark); }
.problem-card > span:first-child { display: block; font-size: var(--fs-label); font-weight: var(--w-bold); color: var(--copper); letter-spacing: 0.1em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.problem-card h3 { margin-bottom: var(--space-3); }
.problem-card h3 a { text-decoration: none; }
.problem-card h3 a:hover { color: var(--copper); }
.problem-card p { color: var(--muted); margin-bottom: var(--space-3); }
.problem-card .text-link { margin-top: auto; }
.related-card { display: flex; flex-direction: column; }

/* Шаги: нумерованная линейка */
.step-grid { display: grid; gap: 0; counter-reset: none; }
.step-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--space-5); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.section-ink .step-card { border-top-color: var(--line-dark); }
.step-card > span { grid-row: span 2; font-size: 2rem; font-weight: var(--w-light); line-height: 1; color: var(--copper); font-variant-numeric: tabular-nums; }
.section-ink .step-card > span { color: var(--copper-light); }
.step-card h3 { margin-bottom: var(--space-2); }
.step-card p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); }
  .step-card { grid-template-columns: 80px minmax(0, 1fr); }
  .step-card > span { font-size: 2.75rem; }
}

/* Две колонки */
.split-2, .split { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .split-2, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); } }
.tick-list, .deliverable-list, .proof-points { list-style: none; display: grid; gap: 10px; }
.tick-list li, .deliverable-list li, .proof-points li { position: relative; padding-left: 26px; }
.tick-list li::before, .deliverable-list li::before, .proof-points li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--copper); }
.section-ink .tick-list li::before { background: var(--copper-light); }
main ol:not([class]) { padding-left: 1.4em; display: grid; gap: 8px; }
main ul:not([class]) { padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- Таблицы ---------- */
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--graphite); }
.spec-table th { font-weight: var(--w-regular); color: var(--muted); width: 40%; }
.spec-table td { color: var(--graphite); }
.spec-table thead th { font-size: var(--fs-label); font-weight: var(--w-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); border-top: 1px solid var(--graphite); background: transparent; }
.spec-table tbody tr:first-child th, .spec-table tbody tr:first-child td { border-top: 0; }
.compare-table th[scope="row"] { color: var(--graphite); font-weight: var(--w-medium); }
.compare-table td { color: var(--muted); }
.compare-table.wide { min-width: 640px; }
.compare-table.wide th[scope="row"] { position: sticky; left: 0; background: var(--paper); }
.section-light .compare-table.wide th[scope="row"] { background: var(--stone); }
.compare-hint { font-size: 0.8125rem; color: var(--muted); margin: 0 0 10px; }
@media (min-width: 900px) { .compare-hint { display: none; } }
.section-ink .spec-table th, .section-ink .spec-table td { border-color: var(--line-dark); color: var(--on-dark); }

/* ---------- Вопросы и ответы ---------- */
.faq-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); align-items: start; } .faq-grid .section-heading { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-list details { border-top: 1px solid var(--graphite); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list details + details { border-top-color: var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 0; min-height: 44px; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: var(--w-medium); line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; flex: none; width: 16px; height: 16px; margin-top: 5px; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: var(--graphite); transition: transform var(--ease); }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list summary:hover { color: var(--copper); }
.faq-list details p { color: var(--muted); max-width: var(--measure); padding-bottom: 20px; margin: 0; }

/* ---------- Заявка ---------- */
.request-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .request-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-9); align-items: start; } }
.request-section .section-heading { margin-bottom: 0; }
.contact-line { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-5); }
.contact-line a { color: var(--on-dark); text-decoration: none; font-size: 1.25rem; font-weight: var(--w-light); min-height: 44px; display: inline-flex; align-items: center; }
.contact-line a:hover { color: var(--copper-light); }
.request-form { display: grid; gap: var(--space-5); }
.request-form label { display: grid; gap: 6px; }
.request-form label > span { font-size: var(--fs-label); font-weight: var(--w-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.request-form input:not([type="checkbox"]), .request-form textarea, .request-form select {
  width: 100%; min-height: var(--tap); padding: 10px 0; border: 0; border-bottom: 1px solid var(--on-dark-muted); border-radius: 0;
  background: transparent; color: var(--on-dark); font: inherit; font-size: var(--fs-body); transition: border-color var(--ease);
}
.request-form select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--copper-light) 50%), linear-gradient(135deg, var(--copper-light) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.request-form select option { color: var(--graphite); background: var(--paper); }
.request-form textarea { resize: vertical; min-height: 96px; }
.request-form input::placeholder, .request-form textarea::placeholder { color: #8C887F; }
.request-form input:focus, .request-form textarea:focus, .request-form select:focus { outline: none; border-bottom-color: var(--copper-light); }
.request-form label.consent { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-small); color: var(--on-dark-muted); }
.request-form label.consent span { font-size: var(--fs-small); font-weight: var(--w-regular); letter-spacing: 0; text-transform: none; }
.request-form input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--copper-light); flex: none; }
.request-form .button { justify-self: start; }
.form-note { font-size: 0.8125rem; color: var(--on-dark-muted); margin: 0; }
.request-section .button-accent:focus-visible, .request-section :focus-visible { outline-color: var(--copper-light); }

/* ---------- Читайте также ---------- */
.see-also { border-top: 1px solid var(--line); padding: var(--space-8) 0; }
.see-also-title { font-size: var(--fs-label); font-weight: var(--w-bold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-4); }
.see-also-list { list-style: none; display: grid; gap: 0; }
.see-also-list a { display: flex; align-items: center; min-height: 64px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 1.25rem; font-weight: var(--w-light); line-height: 1.3; transition: color var(--ease); }
.see-also-list a::after { content: "→"; margin-left: auto; padding-left: 16px; color: var(--copper); }
.see-also-list a:hover { color: var(--copper); }
@media (min-width: 900px) { .see-also-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-7); } .see-also-list a { border-top-color: var(--graphite); } }

/* ---------- Подвал ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-muted); padding: var(--space-8) 0 var(--space-6); font-size: var(--fs-small); }
.footer-grid { display: grid; gap: var(--space-7); }
.site-footer .brand { color: var(--on-dark); margin-bottom: var(--space-4); }
.site-footer p { max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links strong { font-size: var(--fs-label); font-weight: var(--w-bold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 10px; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; padding: 6px 0; transition: color var(--ease); }
.footer-links a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-dark); font-size: 0.8125rem; }
.footer-bottom a { color: var(--on-dark); text-decoration-color: var(--copper-light); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > .footer-links:nth-child(2) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); align-content: start; }
  .footer-grid > .footer-links:nth-child(2) strong { grid-column: 1 / -1; }
}

/* ---------- Страница модели ---------- */
.model-hero { padding-top: var(--space-6); }
.model-hero-grid { display: grid; gap: var(--space-7); align-items: start; }
.model-photo { margin: 0; display: flex; align-items: center; justify-content: center; background: var(--stone); padding: 48px 24px; min-height: 420px; border-radius: var(--radius-photo); }
.model-photo img { max-height: 620px; width: auto; }
.model-info h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: var(--space-5); }
@media (min-width: 1024px) {
  .model-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
  .model-photo { min-height: 640px; position: sticky; top: calc(var(--header-h) + 24px); }
  .model-info { padding-top: var(--space-6); }
}
@media (max-width: 599px) { .model-photo { min-height: 340px; padding: 32px 16px; } .model-photo img { max-height: 360px; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: var(--space-5) 0 0; font-size: var(--fs-small); font-weight: var(--w-medium); }
.chips li + li::before { content: "·"; margin: 0 10px; color: var(--copper); }
.chips-small { margin: 10px 0 0; font-size: 0.875rem; font-weight: var(--w-regular); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: var(--space-6) 0 0; border-top: 1px solid var(--graphite); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-label); font-weight: var(--w-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 1.125rem; font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }

/* ---------- Каталог ---------- */
.catalog-hero { padding-bottom: var(--space-6); }
.catalog-hero .hero-lead { max-width: 64ch; }
.catalog-section { padding-top: var(--space-6); }
.catalog-filters { display: grid; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--line); margin-bottom: var(--space-7); }
.filter-group { display: grid; gap: 8px; }
.filter-label { margin: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--graphite); font: var(--w-medium) 0.9375rem/1 var(--font); cursor: pointer; transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
.filter-btn:hover { border-color: var(--graphite); }
.filter-btn.is-active { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.filter-count { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.filter-empty { color: var(--muted); }
@media (min-width: 1024px) { .catalog-filters { grid-template-columns: 1.6fr 1fr 0.6fr; align-items: start; column-gap: var(--space-6); } .filter-count { grid-column: 1 / -1; } }

.model-grid { display: grid; gap: var(--space-7) var(--space-5); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.model-card { display: flex; flex-direction: column; }
.model-card[hidden] { display: none; }
.model-card-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--stone); padding: 28px; border-radius: var(--radius-photo); transition: background-color var(--ease); }
.section-light .model-card-photo { background: var(--paper); }
.model-card-photo:hover { background: #E1DED8; }
.model-card-photo { overflow: hidden; }
.model-card-photo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.model-card-body { padding-top: var(--space-4); border-top: 0; display: flex; flex-direction: column; flex: 1; }
.model-card-brand { margin: 0 0 6px; }
.model-card h3 { font-size: 1.375rem; font-weight: var(--w-regular); letter-spacing: -0.01em; }
.model-card h3 a { text-decoration: none; }
.model-card h3 a:hover { color: var(--copper); }
.model-card-meta { font-size: var(--fs-small); color: var(--muted); margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.model-card-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; padding-top: var(--space-3); }
.similar-note { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Табло (старые страницы и «как подбираем») ---------- */
.signal-board { border: 1px solid var(--line); padding: var(--space-6); background: var(--paper); }
.board-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: var(--space-4); }
.live-dot, .signal-check { display: none; }
.signal-row { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.signal-index { color: var(--copper); font-variant-numeric: tabular-nums; font-size: var(--fs-small); }
.signal-row strong { font-weight: var(--w-medium); }
.board-result { display: grid; gap: 4px; padding-top: var(--space-4); border-top: 1px solid var(--graphite); }
.board-result span { font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.board-result strong { font-weight: var(--w-regular); font-size: 1.125rem; }

/* Старые разделы умного дома */
.proof-grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions, .request-section, .see-also, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section-light, .section-ink { background: #fff; color: #000; }
  .spec-table th, .spec-table td { border-bottom: 1px solid #999; color: #000; }
  .spec-wrap { overflow: visible; }
  a { text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Шлифовка (этап 4): касание ≥ 44 px, текст на телефоне ≥ 16 px ---------- */
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.model-card h3 a, .problem-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; padding: 0; }
.request-form label.consent { min-height: 44px; cursor: pointer; }
@media (max-width: 767px) {
  .chips, .microcopy, .spec-table, .model-card-meta, .site-footer, .footer-links a, .faq-list details p { font-size: 1rem; }
  .chips-small { font-size: 0.9375rem; }
  .form-note, .breadcrumbs { font-size: 0.875rem; }
}

/* Карта сайта и «Новое» */
.sitemap-group + .sitemap-group { margin-top: var(--space-7); }
.sitemap-group .h2-small { margin-bottom: var(--space-4); }
.new-list { margin-top: var(--space-2); }
.new-list a, .sitemap-group a { display: inline-flex; align-items: center; min-height: 44px; }

/* Таблицы сравнения: первая колонка не забирает 40% ширины */
.compare-table th[scope="row"] { width: 24%; }
.compare-table thead th { width: auto; }
