@charset "utf-8";
/* Слой сайта region-int.ru поверх site.css (2026-10): два продукта, продуктовая полоса, единая форма заявки,
   живые копии программ только на компьютере, липкая кнопка на телефоне. Подключать после site.css.
   Режимы: ≤ 767 телефон, 768–1023 планшет (чтение), ≥ 1024 компьютер с живыми интерфейсами. */
:root {
  color-scheme: only light;
  --line-strong: #8B939F;                    /* рамка полей: 3,1:1 к белому (WCAG 1.4.11) */
  --evac: #BF360C;
  --focus: var(--accent);
  --wrap-wide: 1360px;
  --text: 720px;
  --sec: clamp(48px, 7vw, 96px);
  --top-h: 68px;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cta-band :focus-visible { outline-color: #fff; }
html { scroll-padding-top: calc(var(--top-h) + 64px); }
h1 { font-size: clamp(30px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 24px; }
.text { max-width: var(--text); }
section.ri { padding: var(--sec) 0; }

/* --- кнопки: крупные, с понятными состояниями --- */
.btn { min-height: 46px; }
.btn-l { min-height: 52px; padding: 13px 24px; font-size: 17px; }
.btn-xl { min-height: 64px; padding: 16px 30px; font-size: 19px; border-radius: 12px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary:active { background: #173F98; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.btn-ghost:active { background: var(--bg-3); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(31, 91, 215, .18); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[aria-busy="true"] { cursor: progress; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: .3em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- шапка (разметка: tools/site_chrome.py): логотип = главная · три направления · телефон и почта текстом · «Получить КП».
   ≥ 1320: всё в строку. 1181–1319: названия направлений в две строки. ≤ 1180: меню свёрнуто, в баре телефон, почта, КП.
   Свёрнутое меню: три направления крупно с одной строкой пользы, «Получить КП», телефон и почта кнопками, второй уровень.
   ≤ 760: меню на весь экран, в баре логотип, трубка и «Меню». --- */
.brand img { width: 34px; height: 34px; flex: none; }
.top-bar .nav { gap: 4px; }
.top-bar .nav a.nav-p { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1.2; }
.top-bar .nav a.nav-p:hover { background: var(--blue-soft); color: var(--blue-dark); }
.top-bar .nav a.nav-p[aria-current] { background: var(--blue-soft); color: var(--blue-dark); box-shadow: none; }
.nav-p .nav-ico { display: none; flex: none; }
.nav-t small { display: none; }
.nav-act, .nav-more { display: none; }
.top-phone { font-size: 16px; }
.top-mail { font-size: 13px; color: var(--ink-2); }
@media (min-width: 1181px) and (max-width: 1319px) {
  .top-bar .nav a.nav-p { white-space: normal; max-width: 150px; font-size: 14px; padding: 6px 10px; }
}
@media (max-width: 1180px) {
  .top-bar .nav { gap: 0; padding: 8px 24px 20px; }
  .top-bar .nav a.nav-p { padding: 12px 4px; gap: 14px; border-radius: 0; border-bottom: 1px solid var(--bg-3); font-size: 18px; white-space: normal; }
  .top-bar .nav a.nav-p:hover, .top-bar .nav a.nav-p[aria-current] { background: none; }
  .top-bar .nav a.nav-p[aria-current] .nav-ico { background: var(--blue); color: #fff; }
  .nav-p .nav-ico { display: block; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
  .nav-t small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
  .nav-act { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav .nav-act a.btn { margin: 0; justify-content: center; min-height: 52px; padding: 12px 16px; font-size: 16px; }
  .nav .nav-act a.btn-primary { font-size: 18px; }
  .nav .nav-act a.btn-ghost, .nav .nav-act a.btn-ghost:hover { border: 2px solid var(--blue); color: var(--blue); background: #fff; }
  .nav-act .tel-ico, .nav-act svg { flex: none; }
  .nav-more { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-more b { grid-column: 1 / -1; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
  .top-bar .nav .nav-more a { padding: 10px 0; border-bottom: 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .top-bar .nav { left: auto; right: 16px; width: 440px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }
}
@media (max-width: 760px) {
  .top-bar .nav { height: calc(100vh - 68px); height: calc(100dvh - 68px); max-height: none; padding: 4px 16px calc(24px + env(safe-area-inset-bottom));
    overscroll-behavior: contain; }
  body:has(.nav.open) { overflow: hidden; }
  body:has(.nav.open) .mcta { display: none; }
}

/* --- продуктовая полоса (лендинги и страницы продуктов) --- */
.pbar { position: sticky; top: var(--top-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.pbar-in { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.pbar-switch { display: inline-flex; background: var(--bg-3); border-radius: 12px; padding: 4px; gap: 4px; flex: none; }
.pbar-p { padding: 8px 16px; border-radius: 9px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.pbar-p:hover { text-decoration: none; color: var(--blue); }
.pbar-p[aria-current="page"] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(16, 38, 64, .15); }
.pbar-secs { display: flex; gap: 18px; overflow: hidden; }
.pbar-secs a { color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.pbar-cta { margin-left: auto; flex: none; }
/* полоса по ширине шапки (1320): с длинным именем расписания якоря разделов помещаются только от 1400 px */
.pbar .pbar-in { max-width: 1320px; }
.pbar-secs { gap: 16px; }
.pbar-secs a { font-size: 14px; }
@media (max-width: 1399px) { .pbar-secs { display: none; } }
@media (max-width: 767.98px) {
  .pbar { position: static; }
  .pbar-in { min-height: 0; padding: 8px 16px; }
  .pbar-switch { width: 100%; }
  .pbar-p { flex: 1; text-align: center; padding: 10px 8px; font-size: 15px; white-space: normal; }
  .pbar-cta { display: none; }
}

/* --- закупочная плашка и честные факты --- */
.buy-strip { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.buy-strip span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }

/* --- «как сейчас / как надо»: две колонки на компьютере, подряд на телефоне --- */
.now-need { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.now-need > div { padding: 24px 28px; }
.now-need > div + div { border-left: 1px solid var(--line); background: #F6FBF8; }
.now-need h3 { display: flex; align-items: center; gap: 10px; }
.now-need ul { margin: 0; padding: 0; list-style: none; }
.now-need li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--bg-3); }
.now-need li:first-child { border-top: 0; }
.now-need .now li::before { content: "✕"; position: absolute; left: 4px; color: var(--red); font-weight: 700; }
.now-need .need li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
@media (max-width: 767.98px) {
  .now-need { grid-template-columns: 1fr; }
  .now-need > div { padding: 18px 18px; }
  .now-need > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* --- причины: нумерованный список --- */
.reasons { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.reasons li { counter-increment: r; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 22px 20px 64px; position: relative; }
.reasons li::before { content: counter(r); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
                      background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 600; display: grid; place-items: center;
                      font-variant-numeric: tabular-nums; }
.reasons b { display: block; margin-bottom: 4px; font-weight: 600; }

/* --- эффекты --- */
.effects { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.effect { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; }
.effect b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-bottom: 6px; }
.effect p { margin: 0; color: var(--ink-2); }

/* --- карточки ролей и продуктов --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; color: var(--ink); }
a.card { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
a.card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); margin: 0 0 10px; }

/* --- живые копии программ: картинка для всех, живой интерфейс только на компьютере --- */
figure.demo { margin: 0; position: relative; }
figure.demo .demo-pic img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-shot); }
figure.demo.demo-on .demo-pic { display: none; }
figure.demo.demo-loading .demo-live { min-height: 200px; }
figure.demo .demo-live { display: none; }
figure.demo.demo-on .demo-live, figure.demo.demo-loading .demo-live { display: block; }
figure.demo.demo-loading .demo-live { position: absolute; inset: 0; visibility: hidden; }
figure.demo figcaption { color: var(--ink-3); font-size: 15px; margin-top: 10px; }
.demo-run { margin-top: 14px; }
.demo-pc-only { display: none; }
@media (min-width: 1024px) { .demo-pc-only { display: revert; } .demo-mob-only { display: none; } }

/* --- форма заявки (окно и на странице) --- */
dialog.ld { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
            box-shadow: 0 24px 64px -16px rgba(11, 15, 23, .35); }
dialog.ld::backdrop { background: rgba(11, 15, 23, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ld-in { padding: 28px 28px 24px; position: relative; }
.ld-x { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px;
        line-height: 1; cursor: pointer; color: var(--ink-3); border-radius: 10px; }
.ld-x:hover { background: var(--bg-3); }
.ld-title { margin: 0 44px 6px 0; font-size: 24px; letter-spacing: -.02em; }
.ld-lead { color: var(--ink-2); margin-bottom: 16px; }
.lead-inline { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lift); max-width: 640px; }
.lf-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg-3); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.lf-tab { flex: 1 1 auto; min-height: 44px; border: 0; background: none; border-radius: 9px; font: inherit; font-weight: 600;
          color: var(--ink-3); cursor: pointer; padding: 6px 12px; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.lf-tab:hover { color: var(--ink); }
.lf-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 15, 23, .08), 0 0 0 1px rgba(11, 15, 23, .04); }
.lead-form { display: grid; gap: 14px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf-field { display: grid; gap: 6px; }
.lf-field label { font-weight: 600; font-size: 15px; }
.lf-field label span, .lf-more summary span { font-weight: 500; color: var(--ink-3); }
.lf-field input, .lf-field select, .lf-field textarea { font: inherit; font-size: 16px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong);
            border-radius: 10px; background: #fff; color: var(--ink); width: 100%; box-shadow: 0 1px 2px rgba(11, 15, 23, .04);
            transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.lf-field input:hover, .lf-field select:hover, .lf-field textarea:hover { border-color: var(--ink-3); }
.lf-field textarea { resize: vertical; }
.lf-field input:focus, .lf-field select:focus, .lf-field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 4px rgba(31, 91, 215, .18); }
.lf-bad input, .lf-bad select, .lf-bad textarea { border-color: var(--red); }
.lf-err { color: var(--red); font-size: 14px; font-weight: 600; }
.lf-hint { color: var(--ink-3); font-size: 14px; }
.lf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-products { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lf-products legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.lf-products input { position: absolute; opacity: 0; }
.lf-products label { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 500; min-height: 44px;
                     display: inline-flex; align-items: center; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.lf-products label:hover { border-color: var(--ink-3); }
.lf-products input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); box-shadow: inset 0 0 0 1px var(--accent); }
.lf-products input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.lf-more summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; }
.lf-more[open] { display: grid; gap: 12px; }
.lf-consent { grid-template-columns: 24px 1fr; align-items: start; gap: 10px; }
.lf-consent input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; }
.lf-consent label { font-weight: 500; }
.lf-consent .lf-err { grid-column: 1 / -1; }
.lf-submit { width: 100%; justify-content: center; }
.lf-note { color: var(--ink-3); font-size: 14px; margin: 0; }
.lf-msg { color: var(--red); font-weight: 600; margin: 0; }
@media (max-width: 767.98px) {
  .lf-row { grid-template-columns: 1fr; }
  .ld-in { padding: 22px 16px 18px; }
  .lead-inline { padding: 20px 16px; }
}

/* --- липкая полоса на телефоне и планшете --- */
.mcta { display: none; }
@media (max-width: 1023.98px) {
  .mcta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
          background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
          border-top: 1px solid var(--line); }
  .mcta[hidden] { display: none; }
  .mcta .btn { width: auto; flex: 1; min-height: 52px; }
  .mcta .mcta-tel { flex: 0 0 auto; }
  body { padding-bottom: 0; }
}
@media (max-width: 380px) { .mcta .mcta-tel span { display: none; } }

/* --- вкладки продуктов на главной (JS включает только на компьютере) --- */
.ptabs-list { display: none; }
@media (min-width: 1024px) {
  .ptabs.js .ptabs-list { display: flex; gap: 8px; background: var(--bg-3); border-radius: 14px; padding: 6px; margin-bottom: 20px; }
  .ptabs.js .ptabs-list a { flex: 1; text-align: center; padding: 14px 18px; border-radius: 10px; font-weight: 600; font-size: 17px; color: var(--ink-3); }
  .ptabs.js .ptabs-list a:hover { text-decoration: none; color: var(--ink); }
  .ptabs.js .ptabs-list a[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 15, 23, .08), 0 0 0 1px rgba(11, 15, 23, .04); }
  .ptabs.js .ptab[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .pbar, .mcta, dialog.ld { display: none !important; } }
.lf-docs input { position: absolute; opacity: 0; }
.lf-docs label { font-size: 15px; }

/* форма по пути клиента: переключение «вопрос / перезвоните» ссылками, второй шаг КП */
.lf-alt { margin: 4px 0 0; text-align: center; color: var(--ink-3); font-size: 15px; }
.lf-link { background: none; border: 0; padding: 6px 4px; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; min-height: 40px; }
.lf-link:hover { text-decoration: underline; }
.lf-ok { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.lf-ok b { color: var(--green); }
.lf-step { font-weight: 800; font-size: 18px; margin: 0; }
.lf-step span { font-weight: 500; color: var(--ink-3); font-size: 15px; }
.lf-more-form .btn { width: auto; }
.lf-more-form .lf-submit { width: auto; }
.lf-docs input, .lf-more-form .lf-products input { position: absolute; opacity: 0; }
@media (max-width: 767.98px) { .lf-more-form .btn { width: 100%; } }

/* --- подсказка «нажмите сюда» в живых копиях (TapHint в demo-loader.js) --- */
.tap-hint { position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none; }
.tap-hint[hidden] { display: none; }
.tap-ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
            border: 3px solid #FFB300; box-shadow: 0 0 0 2px rgba(23, 32, 42, .35); animation: tapRing 1.8s ease-out infinite; }
.tap-hand { position: absolute; left: -18px; top: -8px; fill: #fff; stroke: #17202A; stroke-width: 1.3px; paint-order: stroke;
            filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); animation: tapHand 1.8s ease-in-out infinite; transform-origin: 18px 8px; }
.tap-label { position: absolute; left: 24px; top: 30px; background: #17202A; color: #fff; font: 700 14px/1 var(--font);
             padding: 7px 11px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.tap-hint.tap-left .tap-label { left: auto; right: 24px; }
.tap-hint.tap-hold .tap-label { background: #BF360C; }
.tap-hint.tap-hold .tap-hand { animation: tapHold 2.4s ease-in-out infinite; }
@keyframes tapHand { 0%, 100% { transform: translate(8px, 10px); } 38% { transform: translate(0, 0) scale(.92); } 55% { transform: translate(0, 0) scale(.92); } 70% { transform: translate(4px, 5px); } }
@keyframes tapHold { 0%, 100% { transform: translate(8px, 10px); } 20%, 75% { transform: translate(0, 0) scale(.9); } }
@keyframes tapRing { 0%, 36% { transform: scale(.35); opacity: 0; } 42% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tap-ring, .tap-hand, .tap-hint.tap-hold .tap-hand { animation: none !important; }
  .tap-ring { opacity: 1; transform: none; }
  .tap-hand { transform: translate(4px, 5px); }
}

/* тап-цели на телефоне не меньше 44 px (аудит 18.10) */
@media (max-width: 1023.98px) {
  .menu-btn, .top-call, .top-phone-btn, .top .tel-btn { min-width: 44px; min-height: 44px; }
  footer .foot-col a { display: inline-block; padding: 8px 0; min-height: 44px; box-sizing: border-box; }
}

/* ===== Шапка «B» (18.10, без кнопки «Меню»; разметка — header() в tools/site_chrome.py) =====
   ≥ 768: полоса контактов 28 px + строка «логотип · три раздела · КП» 56 px. Шапка sticky с top = −28 px:
   при прокрутке полоса уезжает сама (без JS и без сдвига вёрстки), остаётся строка 56 px; site.js ставит .is-stuck —
   в строке проявляются значки телефона и почты (место под них занято заранее, ничего не прыгает).
   < 768: строка «логотип · ☎ · ✉ · КП» 46 px + ряд из трёх чипов 51 px; при прокрутке остаются чипы,
   вниз — шапка прячется (.is-hidden), вверх — возвращается. «Получить КП» и звонок — ещё и в нижней полосе .mcta. */
:root { --hb-strip: 28px; --hb-row: 56px; --top-h: 57px; }
html { scroll-padding-top: calc(var(--top-h) + 16px); }
.top.hb { position: sticky; top: calc(-1 * var(--hb-strip)); z-index: 50; background: rgba(255, 255, 255, .82);
          -webkit-backdrop-filter: saturate(1.8) blur(14px); backdrop-filter: saturate(1.8) blur(14px);
          border-bottom: 1px solid var(--line); transition: transform .24s var(--ease), box-shadow .2s ease; will-change: transform; }
.top.hb.is-stuck { box-shadow: 0 1px 0 rgba(11, 15, 23, .02), 0 8px 24px -16px rgba(11, 15, 23, .18); }

/* полоса контактов: белая, отделена волосяной линией; текст мелкий и серый, номер — основным цветом */
.hb-strip { height: var(--hb-strip); background: transparent; border-bottom: 1px solid var(--line); font-size: 12.5px; line-height: 1; }
.top.hb .hb-strip-in { display: flex; align-items: center; justify-content: flex-end; gap: 22px; height: 100%; max-width: 1400px; }
.hb-tag { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.hb-strip a { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 2px; color: var(--ink); white-space: nowrap; }
.hb-strip a:hover { color: var(--ink); text-decoration: none; }
.hb-strip a:hover span { text-decoration: underline; text-decoration-color: var(--line-2); }
.hb-strip .hb-sphone { font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-sphone small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.hb-strip .hb-smail { color: var(--ink-2); }
.hb-strip svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); }

/* основная строка */
.top.hb .hb-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand nav quick cta";
                   align-items: center; gap: 0 12px; height: var(--hb-row); max-width: 1400px; }
.top.hb .hb-main .brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px;
                          font-size: 16.5px; line-height: 1.1; white-space: nowrap; flex: none; }
.top.hb .hb-main .brand img { width: 32px; height: 32px; }
.top.hb .hb-main .brand small { display: none; }
.hb-nav { grid-area: nav; display: flex; justify-content: center; gap: 4px; min-width: 0; }
.hb-nav .nav-p { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px;
                 color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -.005em; line-height: 1.15; white-space: nowrap;
                 transition: color var(--dur) var(--ease); }
.hb-nav .nav-p:hover { background: var(--bg-3); color: var(--blue-dark); text-decoration: none; }
.hb-nav .nav-p[aria-current] { background: var(--blue-soft); color: var(--blue-dark); box-shadow: inset 0 -2px 0 var(--blue); }
.hb-nav .nav-ico { display: block; width: 18px; height: 18px; flex: none; padding: 0; border-radius: 0; background: none; color: var(--ink-3);
                   stroke-width: 1.75; transition: color var(--dur) var(--ease); }
.hb-nav .nav-full { display: none; }
.hb-nav .nav-short { display: inline; }
.hb-quick { grid-area: quick; display: flex; gap: 2px; }
.hb-quick a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink-2); }
.hb-quick a:hover { background: var(--bg-3); color: var(--ink); }
.hb-quick svg { display: block; width: 18px; height: 18px; }
.top.hb .hb-kp { grid-area: cta; width: auto; min-height: 40px; padding: 0 16px; font-size: 14.5px; white-space: nowrap; }
@media (pointer: coarse) { .top.hb .hb-kp { min-height: 44px; } }

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  /* мышь: значки появляются, когда уехала полоса с номером и почтой текстом; место под них занято заранее.
     На сенсорном планшете значки 44 × 44 видны всегда — полоса 28 px для пальца мелковата. */
  .hb-quick a { transition: opacity .2s ease, visibility .2s; }
  .top.hb:not(.is-stuck) .hb-quick a { visibility: hidden; opacity: 0; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {      /* планшет: разделы без значков; < 900 — логотип без названия */
  .top.hb .hb-main { column-gap: 8px; }
  .top.hb .hb-main .brand > span { font-size: 16px; }
  .hb-nav { gap: 2px; }
  .hb-nav .nav-p { padding: 0 10px; }
  .hb-nav .nav-ico { display: none; }
  .hb-tag { font-size: 12px; }
}
@media (min-width: 768px) and (max-width: 899.98px) {
  .hb-sphone small { display: none; }
  .top.hb .hb-main .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1440px) {                                  /* широко: полные названия разделов */
  .hb-nav .nav-full { display: inline; }
  .hb-nav .nav-short { display: none; }
}

/* телефон */
@media (max-width: 767.98px) {
  :root { --hb-strip: 0px; --hb-a: 46px; --top-h: 51px; }
  .top.hb { top: calc(-1 * var(--hb-a)); }
  .top.hb.is-hidden { transform: translateY(-100%); box-shadow: none; }
  .hb-strip { display: none; }
  .top.hb .hb-main { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: var(--hb-a) auto;
                     grid-template-areas: "brand . quick cta" "nav nav nav nav"; column-gap: 6px; height: auto; padding: 0 12px; }
  .top.hb .hb-main .brand { gap: 8px; font-size: 13px; }
  .top.hb .hb-main .brand img { width: 30px; height: 30px; }
  .top.hb .hb-main .brand > span { white-space: normal; max-width: 6.6em; }   /* «Регион-» / «Интеграция» */
  .hb-quick { gap: 4px; }
  .hb-quick a { border: 1px solid var(--line); color: var(--ink-2); }
  .top.hb .hb-kp { padding: 0 12px; font-size: 14px; }
  .hb-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px 0; }
  .hb-nav .nav-p { flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 3px 2px; background: var(--bg-2);
                   font-size: 12px; font-weight: 500; text-align: center; }
  .hb-nav .nav-p[aria-current] { box-shadow: inset 0 0 0 1.5px var(--blue); }
  .hb-nav .nav-ico { width: 18px; height: 18px; }
  .hb-nav .nav-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 359.98px) {
  .top.hb .hb-main { padding: 0 10px; }
  .top.hb .hb-main .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hb-nav .nav-pro { display: none; }   /* название логотипа скрыто только визуально — у ссылки остаётся имя */
}
@media (prefers-reduced-motion: reduce) { .top.hb, .hb-quick a { transition: none; } }
@media print { .hb-strip, .hb-quick, .hb-kp { display: none !important; } .top.hb { position: static; } }

/* --- «Оборудование»: выпадающий список (наведение, фокус; на касание открывает site.js) --- */
.nav-dd { position: relative; display: flex; }
.nav-dd .nav-caret { flex: none; margin-left: -2px; color: var(--ink-3); transition: transform .15s; }
.nav-dd:hover .nav-caret, .nav-dd:focus-within .nav-caret, .nav-dd.open .nav-caret { transform: rotate(180deg); }
.nav-sub { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 60; min-width: 300px;
           background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(11, 15, 23, .22);
           padding: 6px; display: none; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* мостик под курсором */
.nav-dd:hover .nav-sub, .nav-dd:focus-within .nav-sub, .nav-dd.open .nav-sub { display: grid; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); min-height: 44px; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--bg-2); text-decoration: none; }
.nav-sub b { display: block; font-size: 15px; font-weight: 600; }
.nav-sub small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 767.98px) {
  .nav-dd { display: block; }
  .nav-dd .nav-p { width: 100%; height: 100%; }
  .nav-dd .nav-caret { position: absolute; right: 4px; top: 6px; width: 12px; height: 12px; }
  .nav-sub { position: fixed; left: 8px; right: 8px; top: auto; transform: none; min-width: 0; margin-top: 6px; }
  .nav-dd:hover .nav-sub { display: none; }
  .nav-dd.open .nav-sub, .nav-dd:focus-within.open .nav-sub { display: grid; }
}

/* активный раздел в шапке: без плашки, цвет и тонкая линия снизу (18.10) */
.hb-nav .nav-p { position: relative; background: none !important; box-shadow: none !important; color: var(--ink-2); }
.hb-nav .nav-p:hover { color: var(--ink); background: none !important; }
.hb-nav .nav-p:hover .nav-ico { color: var(--ink); }
.hb-nav .nav-p[aria-current] { color: var(--accent) !important; font-weight: 600; }
.hb-nav .nav-p[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -6px; height: 2px;
                                      border-radius: 2px 2px 0 0; background: var(--accent); }
.hb-nav .nav-p[aria-current] .nav-ico { color: var(--accent) !important; }
@media (max-width: 767.98px) {
  .hb-nav .nav-p { background: none !important; }
  .hb-nav .nav-p[aria-current]::after { left: 20%; right: 20%; bottom: 0; }
}

/* подвал (18.10): реквизиты и контакты + четыре колонки; ссылки в колонке всегда одна под другой */
.foot-col a { display: block; }
@media (max-width: 1023.98px) { footer .foot-col a { display: block; } }
.foot-contacts { margin: 0 0 12px; }
.foot-contacts a { font-weight: 700; color: #fff; }

/* полоса контактов в шапке на компьютере и планшете не уезжает (18.10): шапка прилипает целиком */
@media (min-width: 768px) {
  :root { --top-h: 85px; }
  .top.hb { top: 0; }
  .top.hb .hb-quick { display: none; }   /* телефон и почта уже в полосе */
}
@media (min-width: 768px) and (max-width: 1023.98px) { .foot { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* активный раздел: тёмная плашка цвета логотипа, белый текст и голубой значок (18.10, «лучше видно, где мы») */
.hb-nav .nav-p { transition: background-color .15s ease, color .15s ease; }
.hb-nav .nav-p:hover { background: var(--bg-3) !important; color: var(--ink) !important; }
.hb-nav .nav-p[aria-current],
.hb-nav .nav-p[aria-current]:hover { background: #0F172A !important; color: #fff !important; }
.hb-nav .nav-p[aria-current]::after { content: none; }
.hb-nav .nav-p[aria-current] .nav-ico { color: #38BDF8 !important; }
.hb-nav .nav-dd.is-cur > .nav-p { background: #0F172A !important; color: #fff !important; }
@media (max-width: 767.98px) {
  .hb-nav .nav-p { background: var(--bg-2) !important; }
  .hb-nav .nav-p[aria-current] { background: #0F172A !important; color: #fff !important; box-shadow: none !important; }
}

/* сценарии работы (scenarii.html) */
.scn-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.scn-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
             background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.scn-nav a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.scn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.scn { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.scn h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.scn-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; font-size: 13px; font-weight: 600; }
.scn-role { color: var(--ink-3); }
.scn-role::after { content: "·"; margin-left: 8px; color: var(--line-strong); }
.scn-prod { color: var(--blue-dark); }
.scn-sit { margin: 0; color: var(--ink-2); }
.scn-do { margin: 0; padding-left: 20px; }
.scn-do li { margin: 4px 0; }
.scn-res { margin: auto 0 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); }
.alt .scn-res { background: var(--bg-3); }

/* строка «где я» под шапкой: хлебные крошки страницы, последний пункт выделен (18.10) */
.hb-crumbs { border-top: 1px solid var(--bg-3); background: #fff; font-size: 14px; line-height: 1.2; }
.hb-crumbs .wrap { display: flex; align-items: center; min-height: 36px; max-width: 1400px; overflow: hidden; }
.hb-crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; min-width: 0; }
.hb-crumbs li { display: flex; align-items: center; white-space: nowrap; min-width: 0; }
.hb-crumbs li + li::before, .hb-crumbs .wrap > span[aria-hidden]  { content: "›"; margin: 0 10px; color: var(--line-strong); }
.hb-crumbs .wrap > span[aria-hidden] { margin: 0 10px; }
.hb-crumbs a { color: var(--ink-3); }
.hb-crumbs a:hover { color: var(--blue); }
.hb-crumbs [aria-current], .hb-crumbs .wrap > span:last-child { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.hb-crumbs [aria-current]::after, .hb-crumbs .wrap > span:last-child::after { content: none; }
@media (min-width: 768px) {
  :root:has(.hb-crumbs) { --top-h: 122px; }
  body:has(.hb-crumbs) main .crumbs { display: none; }
}
@media (max-width: 767.98px) { .hb-crumbs { display: none; } }
.hb-crumbs .wrap > a, .hb-crumbs .wrap > span { margin: 0; padding: 0; }
.hb-crumbs .wrap > span[aria-hidden] { margin: 0 10px; color: var(--line-strong); }

/* строка «где я» компактнее (18.10): 30 px, мелкий шрифт */
.hb-crumbs { font-size: 13px; background: var(--bg-2); }
.hb-crumbs .wrap { height: 30px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.hb-crumbs ol, .hb-crumbs li { margin: 0; padding: 0; }
.hb-crumbs a, .hb-crumbs span, .hb-crumbs li { min-height: 0 !important; height: auto; padding: 0 !important; line-height: 30px; }
.hb-crumbs li + li::before { margin: 0 8px; }
.hb-crumbs [aria-current], .hb-crumbs .wrap > span:last-child { font-weight: 600; }
@media (min-width: 768px) { :root:has(.hb-crumbs) { --top-h: 116px; } }

/* статьи (stati/*.html, генерирует tools/gen_stati.py) */
.art-date { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.art { max-width: 760px; font-size: 17px; line-height: 1.65; }
.art h2 { font-size: 26px; margin: 40px 0 12px; scroll-margin-top: calc(var(--top-h) + 16px); }
.art h2:first-of-type { margin-top: 8px; }
.art h3 { font-size: 20px; margin: 28px 0 8px; }
.art ul, .art ol { padding-left: 22px; }
.art li { margin: 6px 0; }
.art blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.art .tbl-wrap { margin: 16px 0 24px; overflow-x: auto; }
.art-toc { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: 15px; }
.art-toc b { display: block; margin-bottom: 6px; }
.art-toc ol { margin: 0; padding-left: 20px; }
.art-prod { position: sticky; top: calc(var(--top-h) + 24px); padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.art-prod > b { display: block; font-size: 19px; margin: 4px 0 6px; }
.art-prod p { margin: 0 0 14px; color: var(--ink-2); }
.art-prod .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.art-index h2 { margin: 32px 0 14px; font-size: 24px; }
.art-index h2:first-child { margin-top: 0; }
.art-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.art-card { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); }
.art-card:hover { border-color: var(--blue); text-decoration: none; }
.art-card b { font-size: 18px; line-height: 1.3; }
.art-card span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 1023.98px) { .art-grid { grid-template-columns: 1fr; } .art-prod { position: static; } }

/* ===== Стиль v1 «строгий минимализм» (2026-10): то, чего нет в правилах выше ===== */

/* живые копии программ — интерфейс программы: прежние цвета и шрифт Windows, стиль сайта на них не распространяется */
.zv-demo, .zva {
  --blue: #1565C0; --blue-dark: #0D47A1; --blue-soft: #E3F2FD; --green: #2E7D32; --green-soft: #E8F5E9;
  --red: #C62828; --purple: #6A1B9A; --orange: #E65100;
  --ink: #17202A; --ink-2: #44515E; --ink-3: #6B7785; --line: #DDE3EA; --bg-2: #F5F7FA; --bg-3: #EEF2F6;
  --radius: 14px; --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* цифры в таблицах, ценах и телефонах — моноширинные, столбцы ровные */
.tbl, .hub-tel, .top-phone, .flow, .irp-price { font-variant-numeric: tabular-nums; }

/* спокойное появление первого экрана: 8 px вверх и прозрачность, по очереди; без анимации, если её отключили в системе */
@media (prefers-reduced-motion: no-preference) {
  .hero-x .wrap > *, .hero .wrap > *, .hub-hero .wrap > * { animation: ri-rise .6s var(--ease) both; }
  .hero-x .wrap > :nth-child(2), .hero .wrap > :nth-child(2), .hub-hero .wrap > :nth-child(2) { animation-delay: .06s; }
  .hero-x .wrap > :nth-child(3), .hero .wrap > :nth-child(3), .hub-hero .wrap > :nth-child(3) { animation-delay: .12s; }
  .hero-x .wrap > :nth-child(n+4), .hero .wrap > :nth-child(n+4), .hub-hero .wrap > :nth-child(n+4) { animation-delay: .18s; }
}
@keyframes ri-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* картинки-скриншоты программы: тонкая рамка и мягкая длинная тень (единственные «тени» на сайте) */
.zv-shots img { box-shadow: var(--shadow-shot); }

/* схемы и стенды: без цветных рамок */
.hub-say { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
/* подвал на телефоне: ссылки столбиком (inline-block из блока «тап-цели» с узким шрифтом вставали по две в строку без пробела) */
@media (max-width: 1023.98px) { footer .foot-col a { display: block; } }

/* --- v1 поверх правок 18.10: активный раздел остаётся тёмной плашкой (решение владельца «лучше видно, где мы») --- */
/* подвал светлый: контакты под реквизитами — основным цветом текста */
.foot-contacts a { color: var(--ink); font-weight: 600; }
/* строка «где я»: белая, тонкая линия, текущая страница — основным цветом */
.hb-crumbs { background: transparent; border-top: 1px solid var(--line); }
.hb-crumbs a { color: var(--ink-3); }
.hb-crumbs a:hover { color: var(--ink); text-decoration: none; }
.hb-crumbs [aria-current], .hb-crumbs .wrap > span:last-child { color: var(--ink); font-weight: 500; }
.hb-crumbs li + li::before { content: "/"; color: var(--line-2); }
.scn-nav a:hover { border-color: var(--line-2); color: var(--ink); }
.scn-prod { color: var(--accent); }
/* заголовок заявки — основным цветом (раньше наследовал серый текст колонки) */
.zv-lead aside h2, .hub-lead h2, .irp-lead h2, .tv-lead-box h2 { color: var(--ink); }

/* ===== Шапка по структуре 18.10 (header.top.hd, разметка — header() в tools/site_chrome.py) =====
   ≥ 1024: строка разделов 32 px + основная 64 px (+ строка «где я» 30 px), липкая целиком.
   < 1024: «логотип · ☎ · ☰» 56 px, меню на весь экран. Старые правила .hb-* больше ни к чему не относятся. */
:root { --top-h: 96px; }
:root:has(.hb-crumbs) { --top-h: 126px; }
html { scroll-padding-top: calc(var(--top-h) + 16px); }
.top.hd { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
          -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s ease; }
.top.hd.is-stuck { box-shadow: 0 6px 18px -10px rgba(11, 15, 23, .18); }
.hd .wrap { max-width: 1400px; }

/* верхняя строка */
.hd-strip { height: 32px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; line-height: 1; }
.hd-strip-in { display: flex; align-items: center; gap: 20px; height: 100%; }
.hd-sec { display: flex; align-items: center; gap: 2px; margin-right: auto; min-width: 0; }
.hd-sec a { display: inline-flex; align-items: center; height: 32px; padding: 0 9px; color: var(--ink-2); white-space: nowrap; border-radius: 6px; }
.hd-sec a:first-child { padding-left: 0; }
.hd-sec a:hover { color: var(--ink); text-decoration: none; }
.hd-sec a[aria-current] { color: var(--ink); font-weight: 600; }
.hd-sphone, .hd-smail { display: inline-flex; align-items: center; gap: 6px; height: 32px; color: var(--ink); white-space: nowrap; }
.hd-sphone { font-weight: 700; }
.hd-sphone small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.hd-smail { color: var(--ink-2); }
.hd-sphone:hover, .hd-smail:hover { color: var(--accent); text-decoration: none; }
.hd-strip svg { width: 14px; height: 14px; flex: none; color: var(--accent); }

/* основная строка */
.hd-main { display: flex; align-items: center; gap: 12px; height: 64px; }
.hd-main .brand { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; font-size: 17px; font-weight: 700; color: var(--ink);
                  white-space: nowrap; margin-right: 8px; }
.hd-main .brand img { width: 34px; height: 34px; }
.hd-main .brand small { display: none; }
.hd-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; min-width: 0; }
.hd-dd { position: relative; }
.hd-p { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink);
        font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.hd-p:hover, .hd-dd:hover > .hd-p, .hd-dd.open > .hd-p { background: var(--bg-3); color: var(--ink); text-decoration: none; }
.hd-p[aria-current], .hd-dd:hover > .hd-p[aria-current] { background: #0F172A; color: #fff; }
.hd-ico { width: 20px; height: 20px; flex: none; color: var(--accent); }
.hd-p[aria-current] .hd-ico { color: #38BDF8; }
.hd-caret { flex: none; opacity: .6; transition: transform .15s ease; }
.hd-dd:hover .hd-caret, .hd-dd.open .hd-caret { transform: rotate(180deg); }
.hd-kp { flex: none; min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.hd-tel, .hd-burger { display: none; }

/* выпадающий список раздела */
.hd-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 10px; z-index: 70; display: none; }
.hd-dd:last-child .hd-sub { left: auto; right: 0; transform: none; }
.hd-dd:hover > .hd-sub, .hd-dd:focus-within > .hd-sub, .hd-dd.open > .hd-sub { display: block; }
.hd-dd.closed > .hd-sub { display: none; }
.hd-sub-in { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 600px; padding: 10px; background: #fff;
             border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(11, 15, 23, .22); }
.hd-sub-lead { grid-column: 1 / -1; margin: 2px 10px 8px; color: var(--ink-3); font-size: 13px; }
.hd-sub a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.hd-sub a:hover, .hd-sub a:focus-visible { background: var(--bg-2); text-decoration: none; }
.hd-sub a[aria-current] { background: var(--accent-soft); }
.hd-sub b { font-size: 15px; font-weight: 600; }
.hd-sub small { font-size: 13px; color: var(--ink-3); line-height: 1.35; }

/* 1024–1279: у логотипа только знак, без значков у пунктов — полные названия помещаются */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hd-main .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hd-main .brand { margin-right: 0; }
  .hd-ico { display: none; }
  .hd-p { padding: 0 10px; }
  .hd-sphone small { display: none; }
}

/* < 1024: логотип · ☎ · ☰ и меню на весь экран */
@media (max-width: 1023.98px) {
  :root, :root:has(.hb-crumbs) { --top-h: 56px; }
  @media (min-width: 768px) { :root:has(.hb-crumbs) { --top-h: 86px; } }
  .hd-strip, .hd-nav, .hd-kp { display: none; }
  .hd-main { height: 56px; gap: 8px; }
  .hd-main .brand { margin-right: auto; font-size: 16px; }
  .hd-tel, .hd-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
                        background: #fff; color: var(--ink); cursor: pointer; padding: 0; }
  .hd-tel { color: var(--accent); }
  .hd-tel svg { width: 20px; height: 20px; }
  .hd-burger[aria-expanded="true"] { background: #0F172A; color: #fff; border-color: #0F172A; }
  .hd-m { position: fixed; inset: 56px 0 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain; background: #fff;
          border-top: 1px solid var(--line); }
  .hd-m[hidden] { display: none; }
  .hd-m-in { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; padding-bottom: 32px; }
  .hd-m-sec { border-bottom: 1px solid var(--line); }
  .hd-m-sec summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; cursor: pointer; list-style: none;
                      font-size: 17px; font-weight: 600; color: var(--ink); }
  .hd-m-sec summary::-webkit-details-marker { display: none; }
  .hd-m-sec summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3);
                             border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s ease; flex: none; }
  .hd-m-sec[open] summary::after { transform: rotate(225deg); }
  .hd-m-sec summary small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
  .hd-m-sec .hd-ico { width: 24px; height: 24px; }
  .hd-m-links { display: flex; flex-direction: column; padding: 0 0 12px 36px; }
  .hd-m-links a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; }
  .hd-m-top { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 8px; }
  .hd-m-top a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
                color: var(--ink); font-size: 15px; }
  .hd-m-contacts { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
  .hd-m-contacts a { font-size: 18px; font-weight: 700; color: var(--ink); min-height: 32px; }
  .hd-m-contacts small { color: var(--ink-3); margin-bottom: 8px; }
  .hd-m-kp { width: 100%; min-height: 52px; }
  body.hd-open { overflow: hidden; }
}
@media (max-width: 359.98px) { .hd-main .brand > span { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .hd-caret, .hd-p, .hd-m-sec summary::after { transition: none; } }
@media print { .hd-strip, .hd-nav, .hd-kp, .hd-tel, .hd-burger, .hd-m { display: none !important; } .top.hd { position: static; } }

/* хаб «Оборудование» (oborudovanie/index.html) */
.eq-grid { display: grid; gap: 16px; }
.eq-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.eq-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.eq-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
           color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.eq-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lift); text-decoration: none; }
.eq-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--accent); margin-bottom: 4px; }
.eq-card b { font-size: 20px; line-height: 1.25; }
.eq-t { color: var(--ink-2); flex: 1; }
.eq-card .link-arrow { margin-top: 4px; }
/* < 1024: без размытия фона — иначе шапка становится контейнером для position: fixed и меню на весь экран схлопывается */
@media (max-width: 1023.98px) { .top.hd { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; } }

/* меню раздела продукта (section_nav в tools/site_chrome.py): полоса под шапкой, внутри липкой шапки */
:root:has(.sec-nav) { --top-h: 144px; }
.sec-nav { border-top: 1px solid var(--line); background: #fff; }
.sec-in { display: flex; align-items: center; gap: 16px; height: 48px; }
.sec-title { flex: none; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; padding-right: 16px; border-right: 1px solid var(--line); }
.sec-title:hover { color: var(--accent); text-decoration: none; }
.sec-links { display: flex; align-items: center; gap: 2px; min-width: 0; margin-right: auto; }
.sec-a { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink-2);
         font-size: 14px; font-weight: 500; white-space: nowrap; }
.sec-a:hover, .sec-dd:hover > .sec-a { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.sec-a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 8px 8px 0 0; }
.sec-cta { flex: none; min-height: 36px; padding: 0 14px; font-size: 14px; }
.sec-dd { position: relative; }
.sec-sub { position: absolute; top: 100%; left: 0; padding-top: 6px; z-index: 70; display: none; }
.sec-dd:hover > .sec-sub, .sec-dd:focus-within > .sec-sub { display: block; }
.sec-sub-in { display: flex; flex-direction: column; min-width: 300px; padding: 8px; background: #fff; border: 1px solid var(--line);
              border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(11, 15, 23, .22); }
.sec-sub a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.sec-sub a:hover { background: var(--bg-2); text-decoration: none; }
.sec-sub a[aria-current] { background: var(--accent-soft); font-weight: 600; }
.sec-m { display: none; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .sec-title { display: none; }
  .sec-a { padding: 0 8px; }
}
@media (max-width: 1023.98px) {
  :root:has(.sec-nav) { --top-h: 102px; }
  .sec-in { height: auto; min-height: 46px; }
  .sec-title, .sec-links, .sec-cta { display: none; }
  .sec-m { display: block; width: 100%; }
  .sec-m summary { display: flex; align-items: center; gap: 8px; min-height: 46px; cursor: pointer; list-style: none; font-size: 15px; }
  .sec-m summary::-webkit-details-marker { display: none; }
  .sec-m summary b { white-space: nowrap; }
  .sec-m summary span { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .sec-m summary span:not(:empty)::before { content: "· "; }
  .sec-m summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
                          transform: rotate(45deg); flex: none; }
  .sec-m[open] summary::after { transform: rotate(225deg); }
  .sec-m-list { display: flex; flex-direction: column; padding: 0 0 12px; max-height: 60vh; overflow-y: auto; }
  .sec-m-list a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; }
  .sec-m-list a[aria-current] { font-weight: 700; }
  .sec-m-list .sec-m-f { padding-left: 16px; font-size: 15px; color: var(--ink-2); min-height: 40px; }
  .sec-m-list .sec-m-cta { color: var(--accent); font-weight: 600; }
}

/* записи голосовых сообщений в тексте (trevoga.html): плеер отдельной строкой под текстом */
main li audio, main p audio { display: block; width: 100%; max-width: 360px; height: 40px; margin: 8px 0 6px; }
/* меню раздела: до 1440 название раздела не показываем (оно подсвечено в шапке); пункты не вылезают за край */
@media (min-width: 1024px) and (max-width: 1439.98px) { .sec-title { display: none; } .sec-a { padding: 0 8px; } }
.sec-links { overflow-x: auto; scrollbar-width: none; }
.sec-links::-webkit-scrollbar { display: none; }
.sec-dd { position: static; }
.sec-links .sec-dd .sec-sub { left: auto; }
