/* ==========================================================================
   ВидеоДом40 — стили сайта
   Цвета и размеры меняются в переменных ниже.
   ========================================================================== */

:root {
  --blue: #0074cb;          /* фирменный синий из логотипа */
  --blue-deep: #005ba1;
  --blue-soft: #e6f1fb;
  --ink: #0f1d2e;           /* основной текст, тёмные блоки */
  --ink-2: #1b2c40;
  --muted: #56677c;
  --line: #dbe3ec;
  --paper: #f2f5f9;
  --white: #ffffff;
  --rec: #e5372e;           /* индикатор записи */
  --ok: #138a4b;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--ghost-dark { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.link-more:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo img { width: 150px; height: auto; }
.main-nav { margin-right: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { background: var(--paper); }
.main-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-deep); }
.main-nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); text-align: right; }
.header-phone__number { font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.header-phone__hint { font-size: 13px; color: var(--muted); }
.header-call, .nav-toggle { display: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle { gap: 4px; grid-auto-flow: row; align-content: center; justify-items: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 20px; max-width: 13em; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 32em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts div { margin: 0; }
.hero__facts dt { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.hero__facts dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; max-width: 13em; }

/* Монитор видеорегистратора — главный визуальный элемент */
.nvr { margin: 0; background: var(--ink); border-radius: var(--r-lg); padding: 10px; box-shadow: 0 30px 60px -30px rgba(15,29,46,.55); }
.nvr__bar { display: flex; align-items: center; gap: 14px; padding: 4px 6px 10px; color: #c9d5e3; font-size: 13px; font-variant-numeric: tabular-nums; }
.nvr__rec { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.nvr__rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 rgba(229,55,46,.6); animation: rec 2s infinite; }
.nvr__name { color: #8fa3ba; }
.nvr__clock { margin-left: auto; }
.nvr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 10px; overflow: hidden; }
.nvr__grid--1 { grid-template-columns: 1fr; }
.nvr__grid--3 .nvr__cam:first-child { grid-column: 1 / -1; }
.nvr__cam { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.nvr__cam img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: filter .3s; }
.nvr__cam::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px); pointer-events: none; }
.nvr__cam:hover img { filter: none; }
.nvr__label { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; color: #fff; font-size: 12.5px; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nvr__label b { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.55); font-weight: 600; font-size: 11px; letter-spacing: .04em; text-shadow: none; }
.nvr__caption { color: #8fa3ba; font-size: 13px; padding: 10px 6px 2px; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(229,55,46,.55); } 70% { box-shadow: 0 0 0 8px rgba(229,55,46,0); } 100% { box-shadow: 0 0 0 0 rgba(229,55,46,0); } }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 48px 0 72px; }
.section--paper { background: var(--paper); }
.section__title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 750; letter-spacing: -0.025em; margin-bottom: 36px; max-width: 22em; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section__head .section__title { margin-bottom: 0; }

/* Преимущества */
.benefits__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; row-gap: 40px; }
.benefits__list li { position: relative; padding-left: 44px; }
.benefits__icon { position: absolute; left: 0; top: 0; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--blue-soft); fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.benefits__list h3 { font-size: 19px; margin-bottom: 6px; }
.benefits__list p { color: var(--muted); margin: 0; font-size: 16px; }

/* Услуги — плитки с фото */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service-tile { grid-column: span 2; position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; isolation: isolate; }
.services-grid--5 .service-tile:nth-child(-n+2),
.services-grid--4 .service-tile,
.services-grid--2 .service-tile { grid-column: span 3; min-height: 340px; }
.services-grid--1 .service-tile { grid-column: 1 / -1; }
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.service-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,29,46,0) 30%, rgba(15,29,46,.88) 100%); }
.service-tile:hover { color: #fff; }
.service-tile:hover img { transform: scale(1.04); }
.service-tile__body { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.service-tile__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.service-tile__text { color: #d5dfea; font-size: 15px; line-height: 1.4; max-width: 30em; }
.service-tile__price { font-weight: 700; margin-top: 4px; }

/* Этапы */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; }
.steps__item { position: relative; padding-top: 64px; }
.steps__item::before { content: ""; position: absolute; top: 21px; left: 44px; right: -24px; height: 2px; background: var(--line); }
.steps__item:last-child::before { display: none; }
.steps__num { position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; }
.steps__item h3 { font-size: 19px; margin-bottom: 6px; }
.steps__item p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Работы */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.work-card__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover img { transform: scale(1.04); }
.work-card__count { position: absolute; right: 10px; bottom: 10px; background: rgba(15,29,46,.75); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 999px; }
.work-card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 2px 0; }
.work-card__title { font-weight: 650; font-size: 17.5px; line-height: 1.3; }
.work-card:hover .work-card__title { color: var(--blue); }
.work-card__place { color: var(--muted); font-size: 14.5px; }

/* О компании (кратко) */
.about-short__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-short__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.about-short__text .prose { margin-bottom: 20px; }

/* Квиз */
.quiz-section { background: var(--ink); color: #fff; padding: 88px 0; }
.quiz-section__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.quiz-section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 750; letter-spacing: -.025em; }
.quiz-section__intro p { color: #b9c7d8; font-size: 18px; }
.quiz-section__alt a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.quiz { background: var(--ink-2); border-radius: var(--r-lg); padding: 28px; position: relative; }
.quiz__progress { height: 4px; background: rgba(255,255,255,.12); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 25%; background: var(--blue); border-radius: 4px; transition: width .3s ease; }
.quiz__step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__step.is-active { display: block; }
.quiz__step legend { font-size: 22px; font-weight: 700; margin-bottom: 18px; padding: 0; }
.quiz__hint { display: block; font-size: 14px; font-weight: 400; color: #9fb1c6; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); color: #e5ecf4; transition: background .15s, border-color .15s; }
.chip:hover span { border-color: rgba(255,255,255,.55); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #7cc0ff; outline-offset: 2px; }
.quiz__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz .field label { color: #b9c7d8; }
.quiz .field input, .quiz .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.quiz__task { grid-column: 1 / -1; }
.quiz .check { color: #b9c7d8; }
.quiz .check a { color: #fff; }
.quiz__nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.quiz__counter { color: #9fb1c6; font-size: 14px; margin-right: auto; }
.quiz__nav [data-quiz-back]:not([hidden]) + .quiz__counter { margin-left: 4px; }
.quiz__done h3 { font-size: 24px; }
.quiz__done p { color: #b9c7d8; }
.quiz.is-done .quiz__nav, .quiz.is-done .quiz__progress { display: none; }
.quiz .lead-form__status, .quiz .lead-form__status.is-error { color: #ffb4ae; }

/* Вопросы */
.faq__list { max-width: 900px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq__answer { padding: 0 40px 22px 0; color: var(--muted); }
.faq__answer p { margin: 0; }

/* Контакты */
.contacts-block__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch; }
.contact-list { margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list__phone { font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contacts-block__form { margin-top: 36px; padding: 28px; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.contacts-block__form h3 { font-size: 21px; }
.map { position: relative; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: #dfe7ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23cdd8e3' stroke-width='1'/%3E%3C/svg%3E"); display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--white); font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(15,29,46,.15); }
.map__link { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--white); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px rgba(15,29,46,.15); }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: inherit; }

/* ---------- Формы ---------- */
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field__opt { font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white);
  font-size: 17px; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,116,203,.15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--rec); }
.field textarea[rows="2"] { min-height: 76px; }
.field__req { font-weight: 500; font-size: 12.5px; color: var(--rec); margin-left: 4px; }
.field__hint { font-size: 13px; line-height: 1.4; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.lead-form__status { margin: 0; font-size: 15px; min-height: 0; }
.lead-form__status:empty { display: none; }
.lead-form__status.is-error { color: var(--rec); }
.lead-form__status.is-ok { color: var(--ok); font-weight: 600; }
.lead-form--dark .field label, .lead-form--dark .check { color: #b9c7d8; }
.lead-form--dark .field input, .lead-form--dark .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.lead-form--dark .field__hint, .quiz .field__hint { color: #9fb1c6; }
.lead-form--dark .field__req, .quiz .field__req { color: #ffcf7a; }
.lead-form--dark .field textarea::placeholder, .quiz .field textarea::placeholder { color: #8ea2b8; }
.cta-band .cta-band__note { margin-top: 14px; font-size: 16px; color: #e5ecf4; }
.lead-form--dark .check a { color: #fff; }
.lead-form--dark .lead-form__status.is-ok { color: #7fe0a8; }
.lead-form--dark .lead-form__status.is-error { color: #ffb4ae; }
.lead-form.is-sent .field, .lead-form.is-sent .check, .lead-form.is-sent button { display: none; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding: 40px 0 36px; background: var(--paper); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; max-width: 20em; margin-bottom: 12px; }
.page-head__lead { font-size: 19px; color: var(--muted); max-width: 40em; margin: 0; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #a4b2c2; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.service-list { display: grid; gap: 28px; }
.service-row { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.service-row h2 { font-size: 26px; }
.service-row h2 a { color: var(--ink); text-decoration: none; }
.service-row h2 a:hover { color: var(--blue); }
.service-row p { color: var(--muted); }
.service-row__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }
.service-row__price { color: var(--ink); font-weight: 700; }
.service-row__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 32px; }
.side-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; border-radius: var(--r-lg); background: var(--paper); }
.side-card h2 { font-size: 22px; }
.side-card > p { color: var(--muted); font-size: 16px; }
.side-card__price { font-size: 26px; font-weight: 800; color: var(--ink) !important; margin-bottom: 12px; }
.side-card__phone { margin: 16px 0 0; text-align: center; font-size: 15px; }
.side-card__phone a { font-weight: 700; white-space: nowrap; }

.prose { max-width: 46em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); }
.prose img { border-radius: var(--r-md); margin: 1.2em 0; }
.prose > :first-child { margin-top: 0; }
.prose--page { font-size: 18px; }
.prose--article { max-width: 820px; font-size: 17.5px; }
.prose--article .article-cover { aspect-ratio: 2 / 1; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters__item { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.filters__item:hover { border-color: var(--ink); color: var(--ink); }
.filters__item[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { color: var(--muted); }

.work-meta { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.work-meta li { display: flex; flex-direction: column; font-weight: 600; }
.work-meta span { font-weight: 400; color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px; }
.gallery__item { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--1 { grid-template-columns: 1fr; grid-auto-rows: auto; }
.gallery--1 .gallery__item:first-child { grid-column: auto; grid-row: auto; }
.gallery--1 img { max-height: 70vh; }
.gallery--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 360px; }
.gallery--2 .gallery__item:first-child { grid-column: auto; grid-row: auto; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--3 .gallery__item:first-child { grid-column: 1; }
.work-text { margin-top: 36px; }

.cta-band { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-band__inner { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 750; letter-spacing: -.02em; }
.cta-band p { color: #b9c7d8; font-size: 18px; margin: 0; max-width: 32em; }

.not-found { text-align: left; }
.not-found__code { font-size: 96px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 12px; letter-spacing: -.04em; }
.not-found h1 { font-size: 40px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #b9c7d8; padding: 64px 0 28px; font-size: 15.5px; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: #e5ecf4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 40px; }
.site-footer__brand img { width: 150px; margin-bottom: 16px; }
.site-footer h2 { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__phone { font-size: 19px; font-weight: 700; }
.site-footer .socials { margin-top: 14px; }
.site-footer .socials a { border-color: rgba(255,255,255,.2); }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; font-size: 14px; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom p { margin: 0; }

.mobile-bar { display: none; }

/* ---------- Модальное окно ---------- */
.modal { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: var(--r-lg); padding: 32px; color: var(--ink); box-shadow: 0 30px 80px rgba(15,29,46,.35); }
.modal::backdrop { background: rgba(15,29,46,.6); backdrop-filter: blur(3px); }
.modal h2 { font-size: 26px; padding-right: 32px; }
.modal__lead { color: var(--muted); font-size: 16px; }
.modal__close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Просмотр фото ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,15,24,.94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; border-radius: var(--r-sm); }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #b9c7d8; font-size: 14px; margin: 0; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 10px; }
  .header-cta { display: none; }
  .hero__grid { gap: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps__item:nth-child(3)::before { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16.5px; }
  .site-footer { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); }
  .logo img { width: 124px; }
  .site-header__inner { gap: 12px; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .header-phone { display: none; }
  .header-call, .nav-toggle { display: inline-grid; }
  .site-header__actions { margin-left: auto; gap: 8px; }

  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; background: var(--white); padding: 16px var(--gutter) 32px; overflow-y: auto; margin: 0; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 22px; font-weight: 600; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: none; color: var(--blue); }
  .main-nav__mobile-extra { display: block; padding-top: 24px; }
  .main-nav__phone { display: block; font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
  .main-nav__mobile-extra p { color: var(--muted); }
  body.nav-open { overflow: hidden; }

  .hero { padding: 28px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__lead { font-size: 17.5px; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
  .hero__facts dt { font-size: 17px; }
  .hero__facts dd { font-size: 13px; }

  .section { padding: 60px 0; }
  .section--tight { padding: 32px 0 56px; }
  .section__title { margin-bottom: 26px; }
  .section__head { margin-bottom: 26px; }
  .benefits__list { grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 28px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-tile, .services-grid--5 .service-tile:nth-child(-n+2), .services-grid--4 .service-tile, .services-grid--2 .service-tile { grid-column: span 1; min-height: 260px; }
  .services-grid--5 .service-tile:first-child, .services-grid--3 .service-tile:first-child { grid-column: 1 / -1; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about-short__grid, .quiz-section__grid, .contacts-block__grid, .article-grid, .cta-band__inner { grid-template-columns: 1fr; gap: 32px; }
  .about-short__media { order: -1; }
  .quiz-section { padding: 60px 0; }
  .service-row { grid-template-columns: 240px 1fr; gap: 24px; }
  .side-card { position: static; }
  .map { min-height: 340px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery--2, .gallery--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery--3 .gallery__item:first-child { grid-column: 1 / -1; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero h1 { font-size: 2.05rem; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr; gap: 10px; padding-top: 20px; }
  .hero__facts div { display: flex; align-items: baseline; gap: 10px; }
  .hero__facts dd { max-width: none; font-size: 14.5px; }
  .nvr { padding: 6px; border-radius: 14px; margin: 0 -4px; }
  .nvr__bar { font-size: 12px; gap: 10px; padding-bottom: 8px; }
  .nvr__name { display: none; }
  .nvr__label { font-size: 11px; left: 6px; bottom: 6px; -webkit-line-clamp: 1; }
  .nvr__label b { font-size: 10px; }
  .nvr__caption { font-size: 12px; }
  .benefits__list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-tile, .services-grid--5 .service-tile:first-child { grid-column: auto !important; min-height: 220px !important; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__item { padding: 0 0 28px 64px; min-height: 72px; }
  .steps__item::before { display: block !important; top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .steps__item:last-child::before { display: none !important; }
  .steps__item:last-child { padding-bottom: 0; }
  .works-grid { grid-template-columns: 1fr; gap: 24px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .quiz { padding: 20px; margin: 0 -4px; }
  .quiz__step legend { font-size: 19px; }
  .chip span { min-height: 42px; padding: 0 14px; font-size: 15px; }
  .quiz__contact { grid-template-columns: 1fr; }
  .quiz__nav { flex-wrap: wrap; }
  .quiz__counter { width: 100%; order: -1; }
  .quiz__nav .btn { flex: 1; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .contacts-block__form { padding: 20px; margin-left: -4px; margin-right: -4px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row h2 { font-size: 22px; }
  .service-row__actions .btn { flex: 1; padding: 0 12px; white-space: nowrap; font-size: 15px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters__item { white-space: nowrap; flex: none; }
  .page-head { padding: 24px 0 28px; }
  .page-head__lead { font-size: 17px; }
  .gallery, .gallery--2, .gallery--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 6px; }
  .gallery__item:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .side-card { padding: 20px; margin: 0 -4px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .modal { padding: 24px 20px; }
  .faq__list summary { font-size: 17px; padding: 18px 0; }
  .faq__answer { padding-right: 0; }
}


/* ---------- Дополнения: формы, монитор, калькулятор, прайс ---------- */
.field select { width: 100%; min-height: 50px; padding: 10px 40px 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2356677c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; font-size: 17px; -webkit-appearance: none; appearance: none; }
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,116,203,.15); }
.field input[name="city_other"] { margin-top: 8px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form--dark .lead-form__row, .side-card .lead-form__row { grid-template-columns: 1fr; }
.modal { width: min(560px, calc(100vw - 32px)); }
.quiz__city { grid-column: 1 / -1; }
.quiz .field select { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.quiz .field select option { color: var(--ink); }

.nvr__grid--2 { grid-template-columns: 1fr 1fr; }
.nvr__grid--5, .nvr__grid--6, .nvr__grid--7, .nvr__grid--8, .nvr__grid--9 { grid-template-columns: repeat(3, 1fr); }
.nvr__grid--5 .nvr__cam:first-child, .nvr__grid--8 .nvr__cam:first-child { grid-column: span 2; aspect-ratio: auto; }
.nvr__grid--7 .nvr__cam:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.nvr__grid--5 .nvr__label, .nvr__grid--6 .nvr__label, .nvr__grid--7 .nvr__label, .nvr__grid--8 .nvr__label, .nvr__grid--9 .nvr__label { -webkit-line-clamp: 1; font-size: 11.5px; }
div.nvr__cam { cursor: default; }

.section--intro { padding: 36px 0 0; }
.section--intro .prose { font-size: 18px; color: var(--muted); }

.chips--light .chip span { border-color: var(--line); color: var(--ink); background: var(--white); }
.chips--light .chip:hover span { border-color: var(--ink); }
.chips--light .chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips--light .chip input:focus-visible + span { outline-color: var(--blue); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.calc__form { display: grid; gap: 16px; }
.calc__block { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); min-width: 0; }
.calc__block legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 19px; font-weight: 700; }
.calc__block legend + * { clear: both; }
.calc__qty-list { display: grid; gap: 4px; }
.calc__qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--paper); }
.calc__qty:last-child { border-bottom: 0; }
.calc__qty-name { display: flex; flex-direction: column; font-weight: 500; line-height: 1.3; }
.calc__qty-name small { color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 2px; }
.stepper { flex: none; display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--blue); cursor: pointer; }
.stepper button:hover { background: var(--blue-soft); }
.stepper input { width: 60px; height: 42px; border: 0; text-align: center; font-size: 17px; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--blue-soft); }
.calc__radios, .calc__checks { display: grid; gap: 6px; }
.calc__radio, .calc__check { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.calc__radio:hover, .calc__check:hover { border-color: #b6c3d1; }
.calc__radio:has(input:checked), .calc__check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.calc__radio input, .calc__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.calc__radio b, .calc__check b { font-weight: 600; white-space: nowrap; }
.calc__summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px; }
.calc__summary h3 { font-size: 20px; margin-bottom: 16px; }
.calc__lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: #c9d5e3; }
.calc__lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc__lines b { color: #fff; font-weight: 600; white-space: nowrap; }
.calc__empty { color: #8fa3ba; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); margin-bottom: 18px; }
.calc__total span { color: #c9d5e3; }
.calc__total b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc__min { color: #ffd38a; font-size: 14px; margin-top: -8px; }
.calc__mini { display: none; }
@media (max-width: 900px) {
  .calc__mini { display: flex; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(15,29,46,.3); }
  .calc__mini b { font-size: 20px; font-variant-numeric: tabular-nums; }
  .calc__mini a { color: #fff; font-weight: 600; font-size: 15px; }
}
.calc__note { color: #8fa3ba; font-size: 13.5px; margin: 14px 0 0; line-height: 1.45; }

.price-groups { display: grid; gap: 14px; }
.price-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.price-group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 19px; font-weight: 700; }
.price-group summary::-webkit-details-marker { display: none; }
.price-group summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.price-group[open] summary::after { transform: rotate(-135deg); }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 14px; padding: 8px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.price-table td { padding: 11px 24px; border-top: 1px solid var(--paper); vertical-align: top; }
.price-table th:nth-child(2), .price-table td:nth-child(2) { width: 90px; color: var(--muted); }
.price-table th:nth-child(3), .price-table td:nth-child(3) { width: 140px; text-align: right; font-weight: 600; white-space: nowrap; }
.price-table tbody tr:hover td { background: #fafcfe; }
.price-note { color: var(--muted); margin: 20px 0 0; max-width: 50em; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__summary { position: static; }
}
@media (max-width: 600px) {
  .lead-form__row { grid-template-columns: 1fr; }
  .calc__block { padding: 18px 16px; margin: 0 -4px; }
  .calc__qty { gap: 10px; }
  .calc__qty-name { font-size: 15.5px; }
  .stepper button { width: 36px; }
  .stepper input { width: 48px; }
  .calc__radio, .calc__check { gap: 10px; padding: 10px 12px; font-size: 15.5px; }
  .calc__summary { margin: 0 -4px; padding: 22px 18px; }
  .price-group summary { padding: 16px; font-size: 17px; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 16px; border-top: 1px solid var(--paper); }
  .price-table td { padding: 0; border: 0; width: auto !important; }
  .price-table td:first-child { grid-column: 1 / -1; margin-bottom: 2px; }
  .price-table td:nth-child(2) { font-size: 14px; }
  .price-table td:nth-child(2):empty::before { content: ""; }
  .nvr__grid--5, .nvr__grid--6, .nvr__grid--7, .nvr__grid--8, .nvr__grid--9 { grid-template-columns: 1fr 1fr; }
  .nvr__grid--5 .nvr__cam:first-child, .nvr__grid--7 .nvr__cam:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .nvr__grid--8 .nvr__cam:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .nvr__grid--9 .nvr__cam:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}


/* ---------- Решения, статьи, сравнение, схемы, инструменты, бренды ---------- */
.section__lead { font-size: 18px; color: var(--muted); max-width: 40em; margin: -20px 0 28px; }
.entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.entries--compact.entries--articles { grid-template-columns: repeat(3, 1fr); }
.entries--compact.entries--solutions { grid-template-columns: repeat(4, 1fr); }
.entry-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.entry-card:hover { border-color: #b6c3d1; color: var(--ink); }
.entry-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.entry-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.entry-card:hover .entry-card__img img { transform: scale(1.04); }
.entry-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.entry-card__title { font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.entry-card__text { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.entry-card__more { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 600; font-size: 15px; }
.entries--compact .entry-card__title { font-size: 17px; }
.entries--compact .entry-card__text { font-size: 14.5px; }
.entries--compact .entry-card__body { padding: 16px 18px 18px; }

.inline-cta { margin: 1.6em 0; }
.inline-cta--box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--blue-soft); }
.inline-cta--box p { margin: 0; flex: 1 1 280px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); font-weight: 600; font-size: 14.5px; color: var(--muted); }
.prose .table-wrap { overflow-x: auto; }

/* Схемы */
.scheme { margin: 1.6em 0; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fafcfe; }
.scheme svg { width: 100%; height: auto; display: block; }
.scheme figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.scheme figcaption b { color: var(--ink); }
.sch-node rect { fill: var(--white); stroke: #c9d5e3; stroke-width: 1.5; }
.sch-icon { stroke: var(--blue); }
.sch-label { font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.sch-sub { font-size: 11.5px; fill: var(--muted); }
.sch-link { stroke-width: 2.5; stroke-linecap: round; }
.sch-link--cable { stroke: var(--blue); }
.sch-link--wireless { stroke: #e08a00; stroke-dasharray: 2 7; stroke-width: 3; }
.sch-link--internet { stroke: #8a9bb0; stroke-dasharray: 9 6; }
.sch-link-label { font-size: 12px; font-weight: 600; fill: var(--muted); paint-order: stroke; stroke: #fafcfe; stroke-width: 5px; }
.sch-zone { fill: none; stroke: #c9d5e3; stroke-dasharray: 6 6; stroke-width: 1.5; }
.sch-zone-label { font-size: 12.5px; fill: var(--muted); font-weight: 600; }
.sch-pole { stroke: #9aa8b8; stroke-width: 6; stroke-linecap: round; }
.sch-legend text { font-size: 12px; fill: var(--muted); }

/* Сравнение камер */
.compare-section__grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 48px; align-items: center; }
.compare-section .section__lead { margin-top: -16px; }
.compare__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); margin-bottom: 14px; }
.compare__tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted); }
.compare__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.compare__frame { --split: 50%; position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); user-select: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; margin-left: -1.5px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.4); }
.compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.compare__tag { position: absolute; top: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(15,29,46,.72); pointer-events: none; }
.compare__tag--cheap { left: 12px; }
.compare__tag--good { right: 12px; background: rgba(0,116,203,.9); }
.compare__range:focus-visible + .compare__handle::after { outline: 3px solid var(--blue); outline-offset: 2px; }
.compare__note { margin: 12px 0 0; color: var(--ink); font-size: 16px; }
.compare__demo { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.prose .compare { margin: 1.4em 0; }

/* Инструменты */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.tool__media { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); overflow: hidden; }
.tool__media img { width: 100%; height: 100%; object-fit: cover; }
.tool-icon { width: 32px; height: 32px; }
.tool__name { font-weight: 700; font-size: 16px; margin-top: 6px; }
.tool__text { color: var(--muted); font-size: 14px; line-height: 1.4; }
.kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.kit { padding: 24px; border-radius: var(--r-lg); background: var(--paper); }
.kit h3 { font-size: 20px; }
.kit p { color: var(--muted); }

/* Бренды */
.brands__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.brands__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.brand { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 104px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; background: var(--white); }
a.brand:hover { border-color: var(--ink); color: var(--ink); }
.brand__name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.brand img { max-height: 40px; width: auto; object-fit: contain; align-self: flex-start; }
.brand__note { color: var(--muted); font-size: 14px; }

/* Акция */
.promo { background: var(--blue); color: #fff; }
.promo__inner { display: flex; align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.promo__icon { flex: none; width: 48px; height: 48px; }
.promo__text { flex: 1; }
.promo h2 { font-size: 20px; margin: 0 0 4px; }
.promo p { margin: 0; color: #dcebf9; }
.promo__note { opacity: .85; font-size: 14px; }
.promo .btn--primary { background: #fff; color: var(--blue-deep); flex: none; }
.promo .btn--primary:hover { background: var(--blue-soft); }

/* Отзывы */
.reviews__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; }
.review figcaption { color: var(--muted); font-size: 14.5px; margin-top: auto; }
.reviews__empty { color: var(--muted); max-width: 40em; }

@media (max-width: 1100px) {
  .tools { grid-template-columns: repeat(3, 1fr); }
  .entries--compact.entries--solutions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .compare-section__grid, .brands__grid { grid-template-columns: 1fr; gap: 24px; }
  .entries--compact.entries--articles { grid-template-columns: 1fr 1fr; }
  .reviews__list { grid-template-columns: 1fr 1fr; }
  .kit-grid { grid-template-columns: 1fr; }
  .promo__inner { flex-wrap: wrap; }
  .section__lead { margin-top: -12px; }
}
@media (max-width: 600px) {
  .entries, .entries--compact.entries--articles, .entries--compact.entries--solutions, .reviews__list { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .turnkey-teaser .tool:nth-child(n+5) { display: none; }
  .tool { padding: 14px; }
  .brands__list { grid-template-columns: 1fr 1fr; }
  .brand { min-height: 84px; padding: 14px; }
  .brand__name { font-size: 21px; }
  .compare__tabs { display: flex; }
  .compare__tabs button { flex: 1; padding: 9px 8px; font-size: 14px; }
  .compare__frame { margin: 0 -4px; border-radius: 12px; }
  .compare__tag { font-size: 11.5px; top: 8px; padding: 4px 8px; }
  .compare__tag--cheap { left: 8px; } .compare__tag--good { right: 8px; }
  .scheme { margin-left: -8px; margin-right: -8px; padding: 10px 6px 10px; overflow-x: auto; }
  .scheme svg { min-width: 560px; }
  .scheme figcaption { padding: 0 6px; }
  .prose table { font-size: 14.5px; display: block; overflow-x: auto; }
  .promo__inner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .mobile-bar, .site-footer, .quiz-section, .cta-band, .map { display: none !important; }
}
.page-head + .contacts-block { padding-top: 16px; }
