/* ВЫШКА · vy-shell.css v2.1 — 28.11.2026. Часть 1: токены комплекта VYSHKA-DESIGN-2026 v2.1 (tokens/tokens.css, без изменений, кроме путей к шрифтам). Часть 2: оболочка действующих страниц. */
/* ВЫШКА · локальный Inter и единые семантические токены */
@font-face{font-family:Inter;src:url("/assets/vyshka/v2.1/tokens/fonts/inter-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;src:url("/assets/vyshka/v2.1/tokens/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root {
  --control-radius: 7px;
  --control-pad-y: .58rem;
  --control-pad-x: .75rem;

  color-scheme: light;
  --navy-50: #eef4f8;
  --navy-100: #dce9f2;
  --navy-200: #bdd4e5;
  --navy-300: #91b5d0;
  --navy-400: #6999bd;
  --navy-500: #487fa8;
  --navy-600: #30658d;
  --navy-700: #1c507b;
  --navy-800: #0D3B66;
  --navy-900: #092b4c;
  --navy-950: #081e33;
  --brand: var(--navy-800);
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-alt: #eaf0f3;
  --ink: #162c3a;
  --muted: #475f6e;
  --line: #c6d2d9;
  --strong-line: #637988;
  --accent: #0D3B66;
  --on-accent: #ffffff;
  --soft: #e1edf4;
  --danger: #922d38;
  --danger-bg: #fcebee;
  --ok: #1b634f;
  --ok-bg: #e4f3eb;
  --warning: #754900;
  --warning-bg: #fff0d4;
  --focus: #8b4e00;
  --info-bg: var(--soft);
  --font-ui: Inter, Arial, sans-serif;
  --font-doc-head: Arial, sans-serif;
  --font-doc-body: 'Times New Roman', Times, serif;
  --font-mono: ui-monospace, 'Courier New', monospace;
  --type-display: clamp(2.5rem, 4.8vw, 4.25rem);
  --type-h1: clamp(2rem, 3.5vw, 3.25rem);
  --type-h2: clamp(1.5rem, 2.6vw, 2.25rem);
  --type-h3: 1.25rem;
  --type-lead: clamp(1rem, 1.5vw, 1.25rem);
  --type-body: 1rem;
  --type-compact: .875rem;
  --type-meta: .75rem;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --hit: 44px;
  --header-h: 56px;
  --page-max: 1220px;
  --measure: 68ch;
  --elevation-0: none;
  --elevation-1: 0 2px 8px rgb(12 42 65 / .08);
  --elevation-2: 0 12px 38px rgb(12 42 65 / .16);
  --elevation-3: 0 24px 80px rgb(9 33 54 / .25);
  --duration-fast: 120ms;
  --duration-normal: 180ms;
  --duration-panel: 240ms;
  --ease: cubic-bezier(.2,.65,.25,1);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101e29;
  --surface: #192c3a;
  --surface-alt: #233b4b;
  --ink: #f1f6f9;
  --muted: #bdcfd9;
  --line: #415c6b;
  --strong-line: #89a0ad;
  --accent: #abd0f2;
  --on-accent: #102b42;
  --soft: #233f53;
  --danger: #ffb4b9;
  --danger-bg: #492831;
  --ok: #a0dfbd;
  --ok-bg: #193c32;
  --warning: #f6cf87;
  --warning-bg: #433722;
  --focus: #ffd180;
  --elevation-1: 0 2px 8px rgb(0 0 0 / .20);
  --elevation-2: 0 12px 38px rgb(0 0 0 / .32);
  --elevation-3: 0 24px 80px rgb(0 0 0 / .45);
}

/* ВЫШКА · оболочка v2.1 для действующих страниц (28.11.2026, ООО «НЬЮ-ССТ»).
   Часть 2 файла vy-shell.css. Часть 1 — токены комплекта v2.1 (tokens.css, пути к шрифтам — свои, /assets/vyshka/v2.1/).
   Правила только для оболочки (знак «ВЫШКА ▾», меню сервисов, подпись продукта) и точечных нормализаций кнопок,
   зон нажатия и размера текста по результатам замера. Содержимое страниц не меняется. */

/* ---- 1. Знак «ВЫШКА ▾» и меню сервисов (по components/header.html комплекта) ---- */
.vy-brandline{display:inline-flex;align-items:center;gap:10px;min-width:0;flex:none;margin:0}
.vy-brandbox{position:relative;margin:0;padding:0}
.vy-brandbox>summary{list-style:none}
.vy-brandbox>summary::-webkit-details-marker{display:none}
.vy-brandbox[open]{z-index:2147483000}
.vy-brand{display:inline-flex;align-items:center;gap:.5rem;box-sizing:border-box;min-height:44px;min-width:44px;margin:0;padding:0 6px 0 2px;border:0;border-radius:8px;background:none;box-shadow:none;
  font-family:var(--font-ui);font-size:17px;font-weight:700;line-height:1;letter-spacing:-.02em;text-transform:none;white-space:nowrap;color:var(--ink) !important;text-decoration:none !important;cursor:pointer}
.vy-brand:hover,.vy-brand:focus-visible{color:var(--ink) !important;text-decoration:none !important;background:var(--soft)}
.vy-brand:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.vy-brand-mark{width:32px;height:32px;flex:none;display:inline-flex}
.vy-brand-mark svg{width:100%;height:100%;display:block}
.vy-caret{display:inline-block;font-size:13px;font-weight:400;line-height:1}
.vy-brandbox[open] .vy-caret{transform:rotate(180deg)}
.vy-service-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:2147483001;box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:min(70vh,560px);overflow:auto;margin:0;padding:14px;
  display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;background:var(--surface);color:var(--ink);border:1px solid var(--strong-line);border-radius:10px;box-shadow:var(--elevation-2);text-align:left;text-transform:none;letter-spacing:0}
.vy-brandbox:not([open])>.vy-service-menu{display:none}
.vy-service-menu a{display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;margin:0;padding:6px 10px;border:0;border-radius:6px;background:none;
  font-family:var(--font-ui);font-size:15px;font-weight:500;line-height:1.25;color:var(--ink) !important;text-decoration:none}
.vy-service-menu a:hover,.vy-service-menu a:focus-visible{background:var(--soft);color:var(--ink) !important}
.vy-service-menu a:focus-visible{outline:3px solid var(--focus);outline-offset:-2px}
.vy-service-menu .vy-menu-note{grid-column:1/-1;margin:0;padding:8px 10px 2px;font-family:var(--font-ui);font-size:12px;font-weight:400;line-height:1.4;color:var(--muted);background:none}
.vy-product-label{display:inline-block;box-sizing:border-box;margin:0;padding:0 0 0 8px;max-width:16ch;border-left:1px solid var(--line);
  font-family:var(--font-ui);font-size:12px;font-weight:400;line-height:1.25;color:var(--muted);text-transform:none;letter-spacing:0}
@media(max-width:480px){.vy-product-label{display:none}}
/* ---- 2. Нормализации по замеру (только оболочка и элементы действий) ---- */
/* 2.1. Кнопки-действия: ровный navy-800, радиус 8, без градиента (правила 7.3, 7.4) */
.vy-shell-on .gis-btn,.vy-shell-on .gis-btn.primary,.vy-shell-on .gis-cta,.vy-shell-on .nss-shell-cta{background-image:none !important;border-radius:8px !important}
.vy-shell-on .gis-btn.primary,.vy-shell-on .gis-btn[type=submit],.vy-shell-on button.gis-btn{background-color:#0D3B66 !important;color:#fff !important;border-color:#0D3B66 !important}
.vy-shell-on .gis-btn:hover{background-color:#0A3054 !important}
/* 2.2. Зоны нажатия >= 44 px у кнопок-строк и кнопок-ссылок оболочки (не у ссылок в сплошном тексте) */
.vy-shell-on .nss-shell-nav a,.vy-shell-on .nss-shell-toggle,.vy-shell-on .b-nav a,.vy-shell-on .ref-cab,.vy-shell-on .ref-direct,
.vy-shell-on #gis-request-routes a,.vy-shell-on .e-crumbs a,.vy-shell-on .crumbs a,.vy-shell-on .buttons a,.vy-shell-on footer #contact a,
.vy-shell-on .market-related a,.vy-shell-on .b-foot a,.vy-shell-on .nss-foot a,.vy-shell-on .nss-shell-footer a,
.vy-shell-on .gis-footer a,.vy-shell-on #footCab,.vy-shell-on [data-store],.vy-shell-on .nss-shell-footer-intro a{min-height:44px}
/* 2.3. Служебный текст не мельче 12 px (правило 6.3) */
.vy-shell-on small,.vy-shell-on .nss-shell-brand small,.vy-shell-on .eyebrow,.vy-shell-on .nss-eyebrow,.vy-shell-on .step-no,.vy-shell-on .nss-step-no,
.vy-shell-on .gis-eyebrow,.vy-shell-on .nf-eyebrow,.vy-shell-on .lead-form-note,.vy-shell-on .market-meta,.vy-shell-on .market-tag,.vy-shell-on .market-status{font-size:12px}
/* 2.4. Строка действий под шапкой на сайтах ГИС: на узком экране четыре ссылки в два столбца целиком (слово не рвётся, стрелка при слове) */
@media(max-width:420px){
  .vy-shell-on #gis-request-routes{grid-template-columns:repeat(2,minmax(0,1fr));height:auto}
  .vy-shell-on #gis-request-routes a{height:auto;min-height:44px;font-size:13px;padding:4px 6px}
}
.vy-product-label{white-space:nowrap;max-width:none}
/* 2.5. Каталог /magazin/ и карточки программ: интерфейс на Inter (решение 0.1; был Arial). Скрипт каталога меняет класс body
   (nss-commerce-page -> nss-ready), поэтому правило не зависит от класса: срабатывает только там, где есть шаблон знака каталога. */
html.vy-shell-on:has(template#vy-brandline-tpl) body,html.vy-shell-on:has(template#vy-brandline-tpl) body :is(main,main *,header,header *,footer,footer *){font-family:var(--font-ui)}
/* 2.6. pp411.ru / гис-411.рф, узкий экран (до выбора в окне согласия полоса занимает низ первого экрана): основное действие страницы
   показывается сразу после вводного абзаца, отступы героя компактнее — заголовок, пояснение и действие видны над полосой (правило 1.3).
   Порядок блоков в HTML не меняется: только порядок показа (order) и отступы на узком экране. */
@media(max-width:420px){
  .vy-shell-on .v-shell{padding-top:8px}
  .vy-shell-on .v-dossier-copy,.vy-shell-on .v-legal-copy{display:flex;flex-direction:column}
  .vy-shell-on .v-dossier-copy>p.v-kicker,.vy-shell-on .v-legal-copy>p.v-kicker{order:0;margin-bottom:4px!important}
  .vy-shell-on .v-legal-copy>h1,.vy-shell-on .v-dossier-copy>h1{order:1;margin-top:0!important;margin-bottom:10px!important}
  .vy-shell-on .v-legal-copy>p:not(.v-kicker),.vy-shell-on .v-dossier-copy>p:not(.v-kicker){order:2;margin-top:0!important;margin-bottom:10px!important}
  .vy-shell-on .v-dossier-copy>a.v-button,.vy-shell-on .v-legal-copy>.v-index{order:3;margin-top:0!important;margin-bottom:12px!important}
  .vy-shell-on .v-dossier-copy>div,.vy-shell-on .v-legal-copy>div:not(.v-index){order:4}
}
.vy-shell-on main .wrap nav.breadcrumbs a,.vy-shell-on main .wrap nav.breadcrumbs span,.vy-shell-on .nh-page .breadcrumbs a,.vy-shell-on .nh-page .breadcrumbs span{font-size:12px}
