/* nporik.ru — общий стиль */
/* Атрибут hidden всегда скрывает элемент, даже если у класса задан display (.field и др.) */
[hidden] { display: none !important; }
:root {
  --ink: #13222b;
  --ink-2: #33464f;
  --muted: #5d6f78;
  --line: #d9e3e6;
  --bg: #ffffff;
  --soft: #f1f6f7;
  --soft-2: #e6eff1;
  --primary: #0a5a66;
  --primary-700: #07434d;
  --primary-900: #062f37;
  --primary-50: #e3f1f3;
  --accent: #f2a53a;
  --accent-700: #d98b1c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(10, 40, 50, .06), 0 8px 24px rgba(10, 40, 50, .07);
  --wrap: 1240px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-700); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.012em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 2px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #1d1405; }
.btn-accent:hover { background: var(--accent-700); color: #1d1405; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-50); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }

/* ---------- верхняя строка с контактами ---------- */
.topbar { background: var(--primary); color: #d5e6e9; font-size: 14px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-contacts { display: flex; gap: 20px; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar a.topbar-vak { color: var(--accent); }
@media (max-width: 900px) { .topbar-geo { display: none; } .topbar-row { justify-content: center; } }
@media (max-width: 640px) { .topbar a.topbar-vak, .topbar a.topbar-calc { display: none; } }
@media (max-width: 380px) { .topbar { font-size: 13px; } .topbar-contacts { gap: 14px; } }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px);
}
.header-row { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 20px; letter-spacing: .02em; }
.brand-text small { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* в меню 6 пунктов (с «Опросными листами»): подпись логотипа — в две строки, пункты плотнее */
.brand-text .brand-tag { font-size: 16px; letter-spacing: .01em; line-height: 1.2; }
.brand-text { max-width: 230px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 7px; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover { background: var(--soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.site-nav .nav-phone, .site-nav .nav-vak, .site-nav .nav-calc { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1260px) {
  .header-phone { display: none; }
}
/* «бургер» до 1280 px: с пунктом «АСУ ТП» в меню 7 пунктов, на 1240 px контейнера они помещаются впритык */
@media (max-width: 1280px) {
  .header-row { min-height: 64px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-text { max-width: none; }
  .brand-text .brand-tag { font-size: 17px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 8px; font-size: 17px; border-bottom: 1px solid var(--soft-2); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav .nav-phone { display: block; color: var(--primary); font-weight: 650; border-bottom: 0; }
  .header-actions .btn { display: none; }
}
/* «Вакансии» в меню — только на телефоне, где ссылку из верхней полосы скрыли */
@media (max-width: 640px) {
  .site-nav .nav-vak, .site-nav .nav-calc { display: block; color: var(--primary); font-weight: 650; }
}
@media (max-width: 480px) {
  .brand-text .brand-tag { font-size: 15px; }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; color: #e8f2f4; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(242,165,58,.13), transparent 60%),
    linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 55%, #0b6371 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 24px 80px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 19px; color: #cfe2e6; max-width: 620px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-points { list-style: none; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; color: #dbeaed; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(242,165,58,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23f2a53a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.hero-art { width: 100%; max-width: 550px; justify-self: end; }
.hero-art .lbl { font: 600 12px var(--font); fill: #bcd6db; letter-spacing: .02em; }
.hero-art .in { font: 600 11px var(--font); fill: #fff; }
.hero-art .flow { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .hero-art .flow { animation: none; } html { scroll-behavior: auto; } }

.page-hero { padding: 40px 24px 56px; grid-template-columns: 1.3fr .7fr; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #a9c6cc; margin-bottom: 20px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #d6e8eb; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .hero-grid, .page-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
  .hero-art { justify-self: start; max-width: 560px; }
  .page-hero .hero-art { display: none; }
}

/* ---------- полоса фактов ---------- */
.facts { background: var(--soft); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: 17px; color: var(--ink); }
.fact span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; padding: 16px 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- секции ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* направления */
.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dir {
  display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s, color .2s;
}
.dir p { color: var(--muted); font-size: 15px; flex: 1; transition: color .2s; }
.dir h3 { transition: color .2s; }
.dir .more { font-weight: 600; color: var(--primary); font-size: 15px; transition: color .2s; }
.dir-main { background: var(--primary); border-color: var(--primary); color: #fff; }
.dir-main h3, .dir-main .more { color: #fff; }
.dir-main p { color: #cfe4e8; }
.ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary); margin-bottom: 18px;
  transition: background-color .2s, color .2s;
}
.ico svg { width: 26px; height: 26px; }
.dir-main .ico { background: rgba(255,255,255,.12); color: #fff; }
/* при наведении и при переходе с клавиатуры карточка заливается цветом, как «САКВ», текст — белый */
.dir:hover, .dir:focus-visible { background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: #fff; }
.dir:hover h3, .dir:hover .more, .dir:focus-visible h3, .dir:focus-visible .more { color: #fff; }
.dir:hover p, .dir:focus-visible p { color: #cfe4e8; }
.dir:hover .ico, .dir:focus-visible .ico { background: rgba(255,255,255,.12); color: #fff; }
.dir-main:hover, .dir-main:focus-visible { background: var(--primary-700); border-color: var(--primary-700); }
@media (min-width: 1001px) { .dirs-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .dirs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dirs { grid-template-columns: 1fr; } }

/* карточки услуг */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; }
.card-link { border-color: var(--primary); box-shadow: inset 4px 0 0 var(--primary); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* опросные листы */
.ol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ol-card { display: flex; flex-direction: column; }
.ol-card p { flex: 1; margin: 0 0 18px; }
.ol-card .dl { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .ol-grid { grid-template-columns: 1fr; } }
.dl-line { margin-top: 14px; }
.dl-line a { font-weight: 600; }
/* пометка в черновике: что подтвердить у пользователя (build.py не выложит страницу с такой пометкой) */
.chk { background: #fff3c4; color: #6b4700; padding: 1px 6px; border-radius: 4px; font-size: .9em; font-weight: 600; }

/* конфигуратор шкафа */
.cfg-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: stretch; }
.cfg-opts { display: grid; gap: 14px; }
.cfg-group { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 14px 16px 16px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-group[hidden] { display: none; }
/* уточнения к выбору (оптика, кросс): показываются, только если выбран вариант */
.cfg-sub { display: grid; gap: 14px; padding-left: 14px; border-left: 3px solid var(--primary-50); }
.cfg-sub[hidden] { display: none; }
.cfg-sub .cfg-group { background: var(--soft); }
.cfg-group legend { font-weight: 700; font-size: 15px; padding: 0 6px; margin-left: -6px; color: var(--ink); }
.cfg-group label { position: relative; cursor: pointer; }
.cfg-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-group label span {
  display: inline-block; padding: 8px 14px; border: 1px solid #c3d1d5; border-radius: 999px;
  font-size: 15px; line-height: 1.3; background: #fff; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s;
}
.cfg-group label:hover span { border-color: var(--primary); }
.cfg-group input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.cfg-group .cfg-check input:checked + span::before { content: "✓ "; }
.cfg-group input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cfg-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.cfg-sum { position: sticky; top: 96px; background: var(--primary-900); color: #d7e8eb; border-radius: var(--radius); padding: 22px 24px; }
.cfg-sum h3 { color: #fff; margin: 0 0 10px; font-size: 18px; }
.cfg-sum ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.cfg-sum b { color: #fff; font-weight: 600; }
.cfg-form { box-shadow: none; border: 1px solid var(--line); padding: 26px; margin-top: 28px; }
.cfg-form h3 { margin-top: 0; }
.cfg-form .form-grid { gap: 12px; }
@media (max-width: 1000px) { .cfg-grid { grid-template-columns: 1fr; } .cfg-sum { position: static; } }
@media (max-width: 560px) { .cfg-row { grid-template-columns: 1fr; } .cfg-form .form-grid { grid-template-columns: 1fr; } .cfg-form { padding: 22px 18px; } }
.contact .ol-links { font-size: 16px; color: #d7e8eb; }
.contact .ol-links a { color: #fff; font-weight: 600; }

/* две колонки: текст + блок */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-wide { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; display: grid; gap: 12px; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%230a5a66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

.note {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 24px 26px;
}
.note h3 { font-size: 18px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note .ticks li::before { top: 6px; }
@media (max-width: 600px) { .note.fig-scheme { padding: 14px 6px 16px; } .note.fig-scheme figcaption { padding: 0 8px; } }
.panel { background: var(--primary-900); color: #d7e8eb; border-radius: var(--radius); padding: 32px; }
.panel h3 { color: #fff; }
.panel .ticks li::before { background-color: rgba(255,255,255,.12); }

/* шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps b { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* поставка — список-таблица */
.supply { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.supply > div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.supply > div:nth-child(odd) { padding-right: 32px; }
.supply b { display: block; font-size: 18px; margin-bottom: 4px; }
.supply span { color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .supply { grid-template-columns: 1fr; } }

/* реквизиты */
.req { list-style: none; display: grid; gap: 10px; }
.req li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.req li span:first-child { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--primary);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* ---------- форма ---------- */
.contact { background: var(--primary-900); color: #d7e8eb; }
.contact h2 { color: #fff; }
.contact .kicker { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.contact-list span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #8fb2b9; }
.contact-list a, .contact-list b { color: #fff; font-size: 19px; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; font: 16px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid #c3d1d5; border-radius: 9px; padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,90,102,.15); }
.field input[type="file"] { padding: 10px; background: var(--soft); }
.hint { font-size: 13px; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 18px 0; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.form .btn { width: 100%; }
.form-status { margin: 12px 0 0; font-size: 15px; color: var(--primary); min-height: 1.2em; }
.form-status.is-error { color: #b3261e; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form { padding: 22px 18px; } }

/* ---------- подвал ---------- */
.site-footer { background: #081f25; color: #a8c0c5; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.brand-invert, .brand-invert b { color: #fff; }
.brand-invert small { color: #8fb2b9; }
.footer-note { margin-top: 16px; max-width: 340px; }
.footer-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.footer-list { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #d2e3e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a.footer-vak { color: var(--accent); font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- внутренние страницы ---------- */
.page-hero.solo { grid-template-columns: 1fr; }
.page-hero.with-scheme { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 1000px) { .page-hero.with-scheme { grid-template-columns: 1fr; } }
.page-hero.solo .lead { max-width: 780px; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 15px 14px 13px; white-space: nowrap; color: var(--ink-2); text-decoration: none;
  font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); background: var(--soft); }
.subnav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .meta { color: var(--muted); font-size: 15px; }

.faults { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.faults > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faults b { display: block; margin-bottom: 4px; }
.faults span { color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .faults { grid-template-columns: 1fr; } }

.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* ---------- статьи ---------- */
.article-meta { color: #a9c6cc; font-size: 15px; margin-top: 4px; }
.article { max-width: 780px; font-size: 18px; line-height: 1.7; }
.article h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.article h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.article li { margin-bottom: .45em; }
.article table, table.tbl { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.article th, .article td, .tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th, .tbl th { background: var(--soft); font-weight: 650; }
.tbl { background: #fff; }
@media (max-width: 600px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl td { display: block; padding: 3px 0; border: 0; }
  .tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
}
.table-wrap { overflow-x: auto; }
.toc { background: var(--soft); border-radius: var(--radius-sm); padding: 18px 22px; margin: 0 0 2em; font-size: 16px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 4px; }
.cta-box {
  margin: 2.2em 0; padding: 24px 26px; border-radius: var(--radius); background: var(--primary-900); color: #d7e8eb;
}
.cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { margin-bottom: 14px; }
.sources { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2.4em; }
.sources ul { padding-left: 1.2em; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.post:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.post p { color: var(--muted); font-size: 15px; flex: 1; }
.post .more { font-weight: 600; color: var(--primary); font-size: 15px; }
.posts:has(> .post:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .posts:has(> .post:nth-child(4):last-child) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .posts, .posts:has(> .post:nth-child(4):last-child) { grid-template-columns: 1fr; } .article { font-size: 17px; } }
.article .faq { margin-bottom: 1.4em; }
.article .faq details p { font-size: 17px; }

/* ---------- плашка про cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px;
  background: #0d3239; color: #dcebee; font-size: 14px; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(5, 30, 36, .28);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: #fff; }
.cookie .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 10px; left: 12px; right: 12px; bottom: 12px; }
}

.draft-flag {
  position: fixed; right: 12px; bottom: 12px; z-index: 60; background: #fff3dc; color: #6b4a0e;
  border: 1px solid #f0cf94; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600;
}

/* ---------- калькуляторы /kalkulyatory/ ---------- */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.calc h2 { font-size: 24px; margin-bottom: 18px; }
.calc .field-wide.form-grid { gap: 16px; }
.calc-note { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.calc-res { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-res div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.calc-res span { flex: 1 1 220px; color: var(--ink-2); font-size: 15px; }
.calc-res b { font-size: 20px; color: var(--primary); }
.calc-verdict { margin-top: 14px; font-size: 15px; font-weight: 600; }
.calc-verdict-hi { color: #9a3b00; }
.calc-verdict-lo { color: var(--primary); }
@media (max-width: 560px) { .calc { padding: 20px 16px; } .calc h2 { font-size: 21px; } }
.hero-links a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.hero-links a:hover { text-decoration-color: #fff; }
