/* =========================================================
   ООО «ВЕком» — охрана труда
   ========================================================= */
:root {
  --accent: #ff6a13;
  --accent-600: #ffab7d;
  --accent-100: #4a3430;
  --graphite: #14161b;
  --graphite-2: #25242a;
  --graphite-3: #323037;
  --ink: #f5f0ed;
  --muted: #cec7c7;
  --line: #625b5e;
  --paper: #39363a;
  --page-base: #494343;
  --page-gradient: linear-gradient(180deg, #17181e, #25242a 22%, #39353a 64%, var(--page-base));
  --surface-card: #2d2b31;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.18), 0 14px 32px -16px rgba(0,0,0,.42);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --container: 1280px;
  --fs: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: calc(17px * var(--fs));
  line-height: 1.6;
  color: var(--ink);
  background: var(--page-base);
  overflow-x: hidden;
}
body:not(.home-page) main { background: var(--page-gradient); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--accent); color: #171418; padding: 10px 16px; border-radius: 10px; z-index: 1000; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--font); text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #171418; box-shadow: 0 10px 30px -10px rgba(255,106,19,.7); }
.btn-primary:hover { background: #ff823c; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--graphite-3); transform: translateY(-2px); }

/* ---------- top bar ---------- */
.topbar { background: var(--graphite); color: #b9bdc7; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; gap: 24px; min-height: 42px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #e9eaee; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-item svg { width: 15px; height: 15px; color: var(--accent); }
.topbar .tb-spacer { flex: 1; }
.a11y-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #e9eaee;
  border: 1px solid #343944; border-radius: 999px; padding: 6px 14px; font: 600 .85rem var(--font); cursor: pointer;
}
.a11y-toggle:hover { border-color: var(--accent); color: #fff; }
.a11y-toggle svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .topbar .tb-hide-sm { display: none; } .topbar .container { gap: 14px; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; color: #fff;
  background: rgba(32,31,37,.95); border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header .container { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; border-radius: 9px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: -.02em; }
.logo-text b span { color: var(--accent); }
.logo-text small { font-size: .72rem; color: #c0babb; text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }

.nav { --nav-link-color: #ffd4bc; margin-left: auto; }
.nav-list, .service-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li > a, .nav-services summary {
  display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 13px; border: 1px solid transparent;
  border-radius: 12px; white-space: nowrap; text-decoration: none; color: var(--nav-link-color); font-size: .94rem; font-weight: 700;
}
.nav-list > li > a:hover, .nav-services summary:hover, .nav-services[open] summary { background: rgba(255,255,255,.08); }
.nav-list > li > a[aria-current="page"], .nav-services.is-current summary {
  border-color: rgba(255,160,105,.28); background: rgba(255,106,19,.10);
}
.nav-services { position: relative; }
.nav-services summary { list-style: none; cursor: pointer; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary svg { width: 15px; height: 15px; transition: transform .2s; }
.nav-services[open] summary svg { transform: rotate(180deg); }
.service-menu {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px;
  position: absolute; top: 100%; left: 0; z-index: 1; width: min(610px, 66vw);
  max-height: min(64dvh, 550px); overflow: auto; padding: 10px;
  border: 1px solid #61595d; border-radius: 18px; background: #2c292f; box-shadow: 0 18px 40px rgba(0,0,0,.38);
}
.nav-services:not([open]) .service-menu { display: none; }
.nav-services[open] .service-menu { animation: service-menu-in .16s ease-out both; }
.nav-services.is-closing .service-menu { animation: service-menu-out .135s ease-in both; }
@keyframes service-menu-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes service-menu-out { to { opacity: 0; transform: translateY(-4px); } }
.service-menu > li { display: flex; min-width: 0; }
.service-overview { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 3px; }
.service-menu a {
  display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 42px; padding: 8px 10px;
  border-radius: 10px; color: #eee7e6; text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.service-menu a:hover, .service-menu a:focus-visible { background: rgba(255,255,255,.08); }
.service-menu svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--accent-600); }
.service-overview a { color: var(--nav-link-color); font-weight: 800; }
.header-cta { flex-shrink: 0; padding: 11px 16px; font-size: .9rem; color: #f0e9e7; border: 1px solid rgba(255,255,255,.22); }
.header-cta:hover { background: rgba(255,255,255,.08); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1250px) and (min-width: 1081px) {
  .header-cta { width: 44px; height: 44px; padding: 0; font-size: 0; gap: 0; }
  .nav-list > li > a, .nav-services summary { padding-inline: 10px; }
}
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 115px); margin: 0;
    padding: 12px 16px 20px; overflow: auto; background: #232228; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a, .nav-services summary { min-height: 45px; font-size: 1rem; }
  .nav-services summary { justify-content: space-between; }
  .service-menu {
    position: static; grid-template-columns: 1fr; width: 100%; max-height: none;
    margin: 6px 0 8px; padding: 6px; border-radius: 12px; box-shadow: none;
  }
}

/* ---------- переходы между страницами ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 300; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #342a2b 0%, #19191f 46%, #101116 100%);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.transition-orbit { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.transition-orbit img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 24px #0c1220); }
.transition-orbit::before, .transition-orbit::after {
  content: ""; position: absolute; inset: -34%; border: 1px solid #ff6a1360; border-radius: 50%; pointer-events: none;
}
.transition-orbit::before { border-top-color: #ffae74; border-right-color: transparent; box-shadow: 0 0 28px #ff6a1320; }
.transition-orbit::after { inset: -60%; border-style: dashed; border-left-color: #ff6a13; opacity: .6; }
.page-leaving .page-transition, .page-arriving .page-transition { visibility: visible; pointer-events: auto; }
.page-leaving .page-transition { animation: page-leave .145s ease-in both; }
.page-arriving .page-transition { animation: page-arrive .54s cubic-bezier(.22,.65,.3,1) both; }
.page-arriving:has(.home-page) .page-transition { animation-duration: .82s; }
.page-arriving .transition-orbit { animation: logo-launch .54s cubic-bezier(.2,.72,.24,1) both; }
.page-arriving:has(.home-page) .transition-orbit {
  --launch-x: 0px; --launch-y: min(14svh, 120px);
  animation: logo-dock .82s cubic-bezier(.2,.65,.26,1) both;
}
@media (min-width: 961px) {
  .page-arriving:has(.home-page) .transition-orbit {
    --launch-x: min(29vw, calc(25vw + max(0px, (100vw - 1440px) * .12)), 448px); --launch-y: -5svh;
  }
}
.page-arriving .transition-orbit::before { animation: orbit-sweep .8s cubic-bezier(.16,.8,.3,1) both; }
.page-arriving .transition-orbit::after { animation: orbit-sweep .8s ease-out reverse both; }
.page-arriving .hero-intro, .page-arriving .hero-facts { animation: hero-reveal .66s .14s cubic-bezier(.22,.7,.3,1) both; }
@keyframes page-leave { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-arrive { 0%, 24% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes logo-launch {
  0% { transform: scale(.72) rotate(-15deg); opacity: .56; }
  32% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(1.32) rotate(9deg); opacity: 0; }
}
@keyframes logo-dock {
  0% { transform: scale(.7) rotate(-18deg); opacity: .55; }
  29%, 43% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: translate(var(--launch-x), var(--launch-y)) scale(2.25) rotate(12deg); opacity: 0; }
}
@keyframes orbit-sweep { from { transform: rotate(-130deg) scale(.84); } to { transform: rotate(150deg) scale(1.12); } }
@keyframes hero-reveal { from { transform: translateY(20px); opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .nav, .nav-services summary svg { transition: none; }
  .nav-services[open] .service-menu { animation: none; }
  .page-transition { display: none; }
  .page-arriving .hero-intro, .page-arriving .hero-facts { animation: none; }
}
html.a11y .page-transition { display: none; }

/* ---------- hero ---------- */
.home-page { display: flex; flex-direction: column; min-height: 100svh; }
.home-page main { flex: 1; display: grid; }
.orbit-trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html.a11y .orbit-trail { display: none; }
.home-page .hero { display: grid; align-items: center; }
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 40%, rgba(142,104,88,.24), transparent 43%),
    radial-gradient(ellipse at 86% 17%, rgba(56,69,95,.18), transparent 47%),
    linear-gradient(180deg, #17181e 0%, #26262c 43%, #373437 74%, var(--page-base) 100%);
}
.hero .container {
  display: grid; grid-template-columns: 1fr minmax(0, 1fr); align-items: center; gap: 24px;
  padding-top: clamp(24px, calc(10svh - 34px), 66px); padding-bottom: 30px;
}
.hero-kicker { margin-bottom: 18px; color: #d3cfce; font-size: .875rem; font-weight: 700; }
.hero-kicker span { margin: 0 4px; }
.hero h1 { margin-bottom: 22px; font-size: clamp(1.75rem, 4.25vw, 3.75rem); line-height: 1.12; }
.hero h1 span { display: block; color: #e1d8d4; }
.hero-lead { font-size: clamp(1rem, 1.55vw, 1.13rem); color: #d9d4d3; max-width: 470px; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 32px; }
.hero-link { color: #efebea; font-size: .95rem; font-weight: 700; text-decoration-color: #a29b9a; text-underline-offset: .28em; }
.hero-link:hover { text-decoration-color: currentColor; }
.hero-scroll { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: #e2d9d7; text-decoration: none; }
.hero-scroll svg { width: 16px; height: 16px; color: var(--accent); }
.hero-scroll:hover { color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--font-head); font-size: 1rem; color: #fff; }
.hero-facts span { font-size: .85rem; color: #cec8c7; }

/* ---------- Земля ---------- */
.hero-stage { --earth-center: 43%; position: relative; isolation: isolate; aspect-ratio: 1; width: 100%; max-width: 565px; justify-self: center; }
.earth-visual {
  position: absolute; z-index: 1; width: 74%; aspect-ratio: 1; top: var(--earth-center); left: 50%;
  transform: translate(-50%, -50%);
}
.earth-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: grab; touch-action: pan-y; border-radius: 50%; }
.hero-stage canvas:active { cursor: grabbing; }
.globe-fallback { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-stage.ready .globe-fallback { visibility: hidden; }
.hero-stage:not(.ready) canvas { visibility: hidden; }
.earth-caption {
  position: absolute; z-index: 3; bottom: 4%; left: 50%; transform: translateX(-50%);
  display: flex; gap: 16px; align-items: center; white-space: nowrap; color: #e5ddda; font-size: .875rem; pointer-events: none;
}
.earth-caption span { display: inline-flex; align-items: center; gap: 6px; }
.earth-caption svg { width: 15px; height: 15px; }
.earth-caption > span:first-child svg { color: var(--accent); }
.earth-caption .drag-hint { color: #c9c2c1; display: none; }
.hero-stage.ready .drag-hint { display: inline-flex; }

/* Карточки движутся за границей видимого диска Земли. */
.chip {
  position: absolute; top: var(--chip-top); left: var(--chip-left); z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 7px;
  border: 1px solid rgba(255,225,209,.24); border-radius: 999px;
  background: var(--accent); color: #171418; text-decoration: none;
  font-size: .83rem; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 18px #ff6a1333;
  transform: translate(-50%, -50%);
}
.chip i { display: grid; place-items: center; width: 25px; height: 25px; color: inherit; }
.chip:hover, .chip:focus-visible { background: #ff823c; }
.chip svg { width: 15px; height: 15px; }
.chip.c1 { --chip-left: 73%; --chip-top: 17%; }
.chip.c2 { --chip-left: 80%; --chip-top: 70%; }
.chip.c3 { --chip-left: 18%; --chip-top: 58%; }
.hero-stage.orbiting .chip { top: 0; left: 0; }

@media (min-width: 961px) {
  .hero-stage { max-width: clamp(360px, calc(100svh - 326px), 565px); translate: clamp(12px, calc((100vw - 960px) * .08), 38px) 0; }
}
@media (min-width: 961px) and (max-height: 760px) {
  .hero .container { padding-block: 24px; }
}
@media (min-width: 1440px) {
  .hero-stage { --earth-center: 42%; translate: clamp(49px, calc(49px + (100vw - 1440px) * .18), 128px) 0; }
  .earth-visual { width: clamp(76%, calc(76% + (100vw - 1440px) * .2), 94%); }
  .earth-caption { bottom: 0; }
}
@media (max-width: 590px), (min-width: 961px) and (max-width: 1399px) {
  .chip { padding: 5px; }
  .chip span { display: none; }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; padding-bottom: 28px; }
  .hero-copy { display: contents; }
  .hero-intro { grid-row: 1; }
  .hero-actions { margin-bottom: 0; }
  .hero-stage { grid-row: 2; max-width: 380px; }
  .hero-facts { grid-row: 3; }
  .earth-caption { bottom: 0; }
}
@media (max-width: 520px) {
  .hero-stage { max-width: 320px; }
  .earth-visual { width: 79%; }
  .hero-facts { gap: 14px 18px; }
}

@media (max-width: 360px) { .earth-caption { bottom: -12px; } }

/* ---------- орбитальные акценты ---------- */
.orbital-accent {
  display: none; position: absolute; pointer-events: none; isolation: isolate;
  width: 216px; height: 158px; opacity: .64; color: #ff8548;
}
.orbital-accent i {
  position: absolute; inset: 21% 5% 22%; border: 1px solid transparent;
  border-top-color: #ff8548; border-bottom-color: #ff6a134a;
  border-radius: 44% 56% 48% 52% / 54% 39% 61% 46%;
  transform: rotate(var(--tilt)); animation: orbit-accent-drift 7.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 5px #ff6a1344); --tilt: -24deg;
}
.orbital-accent i::after {
  content: ""; position: absolute; width: 4px; height: 4px; right: 14%; top: 9%;
  border-radius: 50%; background: #ffd1a7; box-shadow: 0 0 9px #ff6a13;
}
.orbital-accent i:nth-child(2) {
  inset: 11% 16% 19%; border-top-color: #ff6a1345; border-bottom-color: #ff9f66;
  --tilt: 29deg; animation-duration: 9s; animation-delay: -3s;
}
.orbital-accent i:nth-child(3) {
  inset: 29% 3% 27%; border-top-color: #ff9f6666; border-bottom-color: transparent;
  --tilt: -48deg; animation-duration: 6.5s; animation-delay: -2s;
}
.orbital-accent i:nth-child(3)::after { width: 2px; height: 2px; opacity: .7; }
@keyframes orbit-accent-drift {
  from { transform: rotate(var(--tilt)) scale(.77, 1.12) translate(2px, -4px); }
  to { transform: rotate(calc(var(--tilt) + 33deg)) scale(1.12, .79) translate(-3px, 5px); }
}
@media (min-width: 1250px) {
  .section-page-hero > .container { position: relative; padding-right: 284px; }
  .section-page-hero .orbital-accent {
    display: block; width: 234px; height: min(158px, 100%); right: 32px; top: 50%; translate: 0 -50%;
  }
}
@media (min-width: 1580px) {
  .home-routes > .container { position: relative; }
  .home-routes .orbital-accent {
    display: block; width: min(182px, calc((100vw - 1280px) / 2 - 28px));
    height: 160px; left: calc(100% + 12px); top: 45%; opacity: .43;
  }
}
/* Дуги держатся в полях страницы, вне колонок с текстом. */
main { position: relative; }
.orbital-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
@media (min-width: 1540px) {
  .orbital-field .orbital-accent {
    display: block; width: min(235px, calc((100vw - 1280px) / 2 - 25px));
    height: clamp(115px, 10vw, 204px); opacity: .48;
    animation: orbital-field-float 10s ease-in-out infinite alternate;
  }
  .orbital-field .orbital-accent:nth-child(1) { left: 13px; top: 12%; --sweep: -28deg; animation-delay: -6s; }
  .orbital-field .orbital-accent:nth-child(2) { right: 13px; top: 30%; --sweep: 36deg; animation-duration: 13s; animation-delay: -3s; }
  .orbital-field .orbital-accent:nth-child(3) { left: 10px; top: 57%; --sweep: 29deg; animation-duration: 12s; animation-delay: -8s; }
  .orbital-field .orbital-accent:nth-child(4) { right: 15px; top: 76%; --sweep: -34deg; animation-duration: 14s; animation-delay: -5s; }
  .orbital-field .orbital-accent:nth-child(even) i { animation-direction: alternate-reverse; }
  .home-page .orbital-field .orbital-accent:nth-child(2) { top: 45%; }
  .home-page .orbital-field .orbital-accent:nth-child(4) { top: 73%; }
}
@keyframes orbital-field-float {
  0% { transform: translateY(-25px) rotate(calc(var(--sweep) * -.8)) scale(.76, 1.12); }
  46% { transform: translateY(3px) rotate(9deg) scale(1.05, .8); }
  100% { transform: translateY(25px) rotate(var(--sweep)) scale(.93, 1.08); }
}
@media (prefers-reduced-motion: reduce) { .orbital-field .orbital-accent { animation: none; } }
html.a11y .orbital-field { display: none; }

@media (prefers-reduced-motion: reduce) { .orbital-accent i { animation: none; } }
html.a11y .orbital-accent { display: none; }
@media (min-width: 1250px) { html.a11y .section-page-hero > .container { padding-right: 32px; } }

/* ---------- навигатор на главной ---------- */
.home-routes {
  padding: clamp(46px, 6vw, 88px) 0;
  background: linear-gradient(var(--page-base), #242126 72%, #2d272d);
}
.home-routes-heading {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 10px 24px; margin-bottom: 26px;
}
.home-routes-heading h2, .home-routes-heading p { margin: 0; }
.home-routes-heading p { color: var(--muted); }
.route-console {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  border: 1px solid #6b5d5c; border-radius: 24px; background: #221f25;
}
.route-console:has(.route-tabs:not([hidden])) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.55fr); }
.route-tabs:not([hidden]) { display: grid; align-content: stretch; }
.route-tab {
  display: flex; align-items: center; gap: 15px; text-align: left; padding: 18px 22px;
  border: 0; border-bottom: 1px solid #ffffff12; border-radius: 0;
  background: #26242b; color: #e4dcdb; cursor: pointer; font: 750 1rem/1.35 var(--font);
  transition: background .2s, color .2s;
}
.route-tab:last-child { border-bottom: 0; }
.route-tab:hover { background: #30282c; color: #fff; }
.route-tab:focus-visible { outline-offset: -5px; z-index: 1; }
.route-tab[aria-selected="true"] {
  color: #fff; background: linear-gradient(90deg, #51312a, #30272c);
  box-shadow: inset 3px 0 var(--accent);
}
.route-tab-icon {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid #ffffff1a; border-radius: 13px; color: var(--accent-600);
}
.route-tab[aria-selected="true"] .route-tab-icon { background: var(--accent); color: #171418; border-color: transparent; }
.route-tab-icon svg { width: 20px; height: 20px; }
.route-panels {
  min-width: 0;
  background:
    radial-gradient(ellipse at 100% 0%, #ff6a1321, transparent 55%),
    repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 36px),
    #242127;
}
.route-panel { padding: clamp(22px, 4vw, 48px); }
.route-panel + .route-panel:not([hidden]) { border-top: 1px solid var(--line); }
.route-panel h3 { margin: 0 0 10px; font-size: clamp(1.2rem, 2.5vw, 1.85rem); }
.route-panel p { max-width: 520px; margin: 0; color: var(--muted); }
.route-panel .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.15; }
.route-steps {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin: 27px 0 23px; padding: 0; list-style: none;
}
.route-steps::before, .route-steps::after {
  content: ""; position: absolute; inset: 8px 16.666% auto; height: 2px;
  background: #ff6a1349; pointer-events: none;
}
.route-steps::after { background: linear-gradient(90deg, #ff6a13, #ffbf96); transform-origin: left; animation: route-trace .62s ease-out both; }
.route-steps li { position: relative; z-index: 1; text-align: center; font-size: .87rem; font-weight: 700; line-height: 1.35; }
.route-steps li::before {
  content: ""; display: block; width: 17px; height: 17px; margin: 0 auto 10px;
  border: 4px solid #34252a; border-radius: 50%; background: #ff9b64; box-shadow: 0 0 0 1px #ff8a55;
}
@keyframes route-trace { from { transform: scaleX(0); } }
.hazard-card { position: relative; overflow: hidden; }
.hazard-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(-48deg, #171418 0 10px, var(--accent) 10px 20px);
  transition: opacity .18s;
}
.hazard-card:hover::after, .hazard-card:focus-within::after, .hazard-card:focus-visible::after { opacity: 1; }
@media (max-width: 760px) {
  .route-console:has(.route-tabs:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .route-tab { padding: 12px 16px; }
  .route-tab:last-child { border-bottom: 1px solid #ffffff19; }
}
@media (max-width: 440px) {
  .route-steps { grid-template-columns: 1fr; gap: 16px; }
  .route-steps::before, .route-steps::after { inset: 9px auto 9px 8px; width: 2px; height: auto; }
  .route-steps::after { transform-origin: top; animation-name: route-trace-vertical; }
  .route-steps li { display: flex; align-items: center; gap: 12px; text-align: left; }
  .route-steps li::before { flex: 0 0 17px; margin: 0; }
  @keyframes route-trace-vertical { from { transform: scaleY(0); } }
}
@media (prefers-reduced-motion: reduce) { .route-tab, .hazard-card::after { transition: none; } .route-steps::after { animation: none; } }
html.a11y .home-routes, html.a11y .route-tabs, html.a11y .route-panels, html.a11y .route-tab, html.a11y .route-tab-icon {
  background: var(--a-bg); color: var(--a-fg); border-color: var(--a-fg);
}
html.a11y .route-tab[aria-selected="true"] { box-shadow: none; outline: 2px solid var(--a-fg); outline-offset: -3px; }
html.a11y .route-steps::before, html.a11y .route-steps::after, html.a11y .route-steps li::before, html.a11y .hazard-card::after { display: none; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.section-page-hero {
  padding: clamp(28px, 3.6vw, 50px) 0 clamp(24px, 3vw, 42px);
  background: radial-gradient(ellipse at 88% 30%, rgba(142,104,88,.23), transparent 61%);
  color: #fff;
}
.section-page-hero h1 { max-width: 950px; margin: 0 0 16px; }
.doc-page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.75rem); }
.section-page-hero p { max-width: 610px; margin: 0; color: #e2d9d6; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.section-page-hero:only-child { min-height: clamp(300px, 46svh, 460px); }
.section-page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.section-page-hero + .section { padding-top: clamp(18px, 2.8vw, 40px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 38px); flex-wrap: wrap; }
.section-head p { max-width: 520px; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-600); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section-dark { color: #fff; }
.section-dark .section-head p { color: var(--muted); }
.section-dark .eyebrow { color: var(--accent); }

/* ---------- services explorer ---------- */
.services { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.service-picker {
  display: grid; gap: 10px; min-width: 0; padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-card);
}
.service-picker label { font-weight: 800; }
.service-select-field { position: relative; min-width: 0; }
.service-select-field select {
  appearance: none; display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 44px 10px 12px;
  border: 1px solid #807579; border-radius: 12px; background: #222126; color: var(--ink);
  font: 700 1rem/1.35 var(--font); text-overflow: ellipsis; cursor: pointer; color-scheme: dark;
}
.service-select-field svg {
  position: absolute; width: 18px; height: 18px; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--accent-600); pointer-events: none;
}
.svc-panel {
  display: flex; flex-direction: column; min-width: 0; background: var(--surface-card); border-radius: 24px;
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.svc-panel[hidden] { display: none; }
.svc-panel .svc-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; margin-bottom: 22px; }
.svc-panel .svc-icon svg { width: 32px; height: 32px; }
.svc-panel h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.svc-panel .svc-lead { color: var(--muted); font-size: 1.05rem; }
.svc-panel ul.checks { margin: 8px 0 28px; }
.svc-panel .svc-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.svc-panel .svc-foot small { color: var(--muted); }
ul.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ul.checks li { position: relative; padding-left: 34px; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- видео тренажёров ---------- */
.simulator-videos h2 { margin-bottom: clamp(18px, 3vw, 32px); }
.simulator-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.simulator-video {
  min-width: 0; padding: 10px; border: 1px solid #ff904f75; border-radius: 21px;
  background: linear-gradient(140deg, #382b2e, #26242b 56%);
  box-shadow: 0 12px 32px #0e0c132e;
  transition: border-color .2s, box-shadow .2s;
}
.simulator-video:hover, .simulator-video:focus-within {
  border-color: #ff914fc9; box-shadow: 0 14px 34px #09080e52, 0 0 22px #ff6a131c;
}
.simulator-video-frame { position: relative; overflow: hidden; border: 1px solid #ffb98e26; border-radius: 13px; background: #15141a; }
.simulator-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.simulator-play:not([hidden]) {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0;
  background: #140e1724; color: #fff; cursor: pointer;
}
.simulator-play:hover { background: #140e174d; }
.simulator-play:focus-visible { outline-offset: -4px; }
.simulator-play span {
  display: grid; place-items: center; width: 54px; height: 54px;
  border: 1px solid #ffd0ac71; border-radius: 50%; background: #271a20db;
  box-shadow: 0 5px 24px #110c18aa; transition: background .2s, color .2s;
}
.simulator-play span::before {
  content: ""; width: 15px; height: 18px; margin-left: 3px;
  background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.simulator-play:hover span, .simulator-play:focus-visible span { background: var(--accent); color: #171418; }
.simulator-video h3 { margin: 0; padding: 16px 9px 11px; line-height: 1.35; }
.simulator-video { display: flex; flex-direction: column; }
.simulator-launch {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  margin-top: 26px; padding: 24px 16px; border: 1px solid #ff904f45; border-radius: 18px;
  background: linear-gradient(120deg, #3e2d30, #26242b 68%);
}
.simulator-launch .btn { width: min(100%, 304px); min-height: 60px; padding: 16px 22px; font-size: 1.1rem; white-space: normal; line-height: 1.2; }
.simulator-launch p { margin: 0; color: var(--muted); }
html.a11y .simulator-launch { background: var(--a-bg); border-color: var(--a-fg); }
.simulator-player { padding: clamp(22px, 4vw, 48px) 0 48px; }
.simulator-player-heading {
  margin: 14px 0 20px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px; align-items: flex-end;
}
.simulator-player h1 { margin: 0 0 7px; font-size: clamp(1.4rem, 3.5vw, 2.5rem); }
.simulator-player-heading p { margin: 0; color: var(--muted); }
.simulator-player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.simulator-player-actions .btn[hidden] { display: none; }
.simulator-player-frame {
  overflow: hidden; background: #16151b; border: 1px solid #ff904f8a;
  border-radius: 18px; box-shadow: 0 18px 40px #0e0c1340;
}
.simulator-player-frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.simulator-player-frame iframe:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; }
@media (max-width: 900px) { .simulator-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 590px) { .simulator-video-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .simulator-video, .simulator-play span { transition: none; } }
html.a11y .simulator-video { background: var(--a-bg); border-color: var(--a-fg); }

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.benefit:hover { transform: translateY(-4px); border-color: rgba(255,106,19,.5); }
.benefit .b-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,106,19,.14); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.benefit .b-ico svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.05rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 1000px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- training ---------- */
.training { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course { background: var(--surface-card); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: var(--accent-100); color: var(--accent-600); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.course h3 { font-size: 1.15rem; margin-bottom: 12px; }
.course p { color: var(--muted); font-size: .95rem; }
.course a.more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.course a.more svg { width: 18px; height: 18px; color: var(--accent); transition: transform .2s; }
.course a.more:hover svg { transform: translateX(4px); }
.license-banner { margin-top: 24px; display: flex; align-items: center; gap: 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface-card); color: #fff; border: 1px solid var(--line); flex-wrap: wrap; }
.license-banner .lb-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.license-banner .lb-ico svg { width: 28px; height: 28px; color: var(--graphite); }
.license-banner b { font-family: var(--font-head); font-weight: 500; display: block; }
.license-banner span { color: #a7acb8; font-size: .92rem; }
.license-banner .btn { margin-left: auto; }
@media (max-width: 960px) { .training { grid-template-columns: 1fr; } .license-banner .btn { margin-left: 0; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 20px 0 0; position: relative; }
.step .s-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--surface-card); border: 2px solid var(--accent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: var(--accent-600); margin-bottom: 20px; position: relative; z-index: 1; }
.step:not(:last-child)::before { content: ""; position: absolute; top: 27px; left: 54px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { display: grid; grid-template-columns: 54px 1fr; gap: 0 18px; padding: 0 0 18px; }
  .step .s-dot { margin: 0; grid-row: span 2; }
  .step:not(:last-child)::before { top: 54px; bottom: -8px; left: 26px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); }
}

/* ---------- contacts ---------- */
.home-contacts { padding-block: clamp(36px, 5.4vw, 76px); background: linear-gradient(#2d272d, #343036); }
.home-contacts .section-head h2 { margin: 0; }
.home-request { padding-top: 0; padding-bottom: clamp(44px, 6vw, 88px); background: linear-gradient(#343036, var(--page-base)); }
.contact-row > :last-child { min-width: 0; overflow-wrap: anywhere; }
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
.contact-card { background: var(--surface-card); border-radius: 28px; padding: 36px; border: 1px solid var(--line); }
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .c-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .c-ico svg { width: 22px; height: 22px; }
.contact-row small { display: block; color: var(--muted); font-size: .82rem; }
.contact-row a, .contact-row b { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.contact-row a:hover { color: var(--accent-600); }
.schedule-mini { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; font-size: .95rem; margin-top: 4px; }
.schedule-mini span:nth-child(odd) { color: var(--muted); }
.map-wrap { border-radius: 28px; overflow: hidden; min-height: 420px; background: var(--graphite-3); position: relative; border: 1px solid var(--line); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .contacts { grid-template-columns: 1fr; } .contact-card { padding: 26px 22px; } .map-wrap { min-height: 340px; } }

/* ---------- form ---------- */
.cta { position: relative; overflow: hidden; }
.cta-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: var(--graphite); color: #fff; border-radius: 32px; padding: 56px; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,19,.35), transparent 70%); }
.cta-box > * { position: relative; }
.cta-box p { color: #a7acb8; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; color: #b9bdc7; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid #343944; background: #1d2027; color: #fff;
  font: 500 1rem var(--font); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #22262e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: #a7acb8; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.form-note { font-size: .85rem; color: #9aa0ad; margin: 0; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: rgba(255,106,19,.12); border: 1px solid rgba(255,106,19,.4); font-size: .92rem; display: none; }
.form-status.show { display: block; }
@media (max-width: 960px) { .cta-box { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; border-radius: 24px; } .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--page-base); color: #d6cfce; padding: 44px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.home-footer { padding: 22px 0 16px; }
.home-footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 16px; }
.home-footer .home-footer-row .logo { margin: 0; }
.home-footer-doc { font-weight: 700; }
.home-footer .footer-bottom { padding-top: 12px; gap: 6px 20px; }
@media (max-width: 620px) {
  .home-footer-row { align-items: flex-start; flex-direction: column; gap: 15px; }
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 48px; }
.footer h4 { font-family: var(--font); font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; color: #eee7e5; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .82rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }


/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Раздел «Сведения об образовательной организации»
   ========================================================= */
.breadcrumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #c5bdbe; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #555b67; }
.breadcrumbs a { color: #c4c8d1; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.sveden { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding: 32px 0 80px; align-items: start; }
.sveden-nav { position: sticky; top: 96px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.sveden-nav h2 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 12px 10px; margin: 0; }
.sveden-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: sv; }
.sveden-nav li { counter-increment: sv; }
.sveden-nav a { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.sveden-nav a::before { content: counter(sv, decimal-leading-zero); font-family: var(--font-head); font-size: .72rem; color: var(--muted); padding-top: 3px; min-width: 20px; }
.sveden-nav a:hover { background: var(--paper); }
.sveden-nav a[aria-current="page"] { background: var(--graphite); color: #fff; }
.sveden-nav a[aria-current="page"]::before { color: var(--accent); }
.sveden-nav details summary { display: none; }
@media (max-width: 960px) {
  .sveden { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .sveden-nav { position: static; padding: 0; overflow: hidden; }
  .sveden-nav h2 { display: none; }
  .sveden-nav details summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; }
  .sveden-nav details summary::-webkit-details-marker { display: none; }
  .sveden-nav details summary svg { width: 20px; height: 20px; transition: transform .2s; }
  .sveden-nav details[open] summary svg { transform: rotate(180deg); }
  .sveden-nav details ol { padding: 0 8px 10px; }
}

.doc { min-width: 0; }
.doc > h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 20px; }
.doc h3 { margin-top: 36px; font-size: 1.1rem; }
.card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
@media (max-width: 560px) { .card { padding: 20px 16px; border-radius: 16px; } }
.kv { display: grid; grid-template-columns: minmax(200px, 34%) 1fr; margin: 0; }
.kv dt, .kv dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: .92rem; padding-right: 20px; }
.kv dd { font-weight: 600; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { border: 0; padding-bottom: 0; } .kv dd { padding-top: 4px; } }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-card); }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
table.t th, table.t td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--paper); font-weight: 700; font-size: .85rem; color: var(--muted); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.off { color: var(--muted); }
.pending { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1.5px dashed #8d7c78; background: var(--surface-card); color: var(--muted); font-size: .95rem; }
.pending svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-600); margin-top: 1px; }
.doclist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.doclist li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-card); }
.doclist .d-ico { width: 44px; height: 52px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; font-size: .62rem; font-weight: 800; color: var(--muted); }
.doclist .d-body { flex: 1; min-width: 0; }
.doclist .d-body b { display: block; font-weight: 700; }
.doclist .d-body small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge.wait { background: #fff4e0; color: #9a5a00; }
.badge.ok { background: #e3f6e8; color: #1c7a3c; }
@media (max-width: 560px) { .doclist li { flex-wrap: wrap; } .doclist .badge { margin-left: 60px; } }

/* org chart */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 12px 0; }
.org-node { background: var(--surface-card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; text-align: center; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); max-width: 360px; }
.org-node small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.org-node.top { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.org-node.top small { color: #9aa0ad; }
.org-node.accent { border-color: var(--accent); }
.org-line { width: 2px; height: 28px; background: var(--accent); }
.org-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; padding-top: 28px; width: 100%; max-width: 520px; }
.org-split::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 28px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 10px 10px 0 0; }
.org-split .org-node { max-width: none; }

/* =========================================================
   Версия для слабовидящих
   ========================================================= */
.a11y-panel { background: #fff; color: #000; border-bottom: 3px solid #000; display: none; }
.a11y-panel.open { display: block; }
.a11y-panel .container { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.a11y-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a11y-group > span { font-weight: 700; font-size: 15px; }
.a11y-panel button { min-width: 44px; height: 44px; padding: 0 12px; border: 2px solid #000; background: #fff; color: #000; font: 700 16px Arial, sans-serif; cursor: pointer; border-radius: 6px; }
.a11y-panel button[aria-pressed="true"] { background: #000; color: #fff; }
.a11y-panel button.sc-wb { background: #fff; color: #000; }
.a11y-panel button.sc-bw { background: #000; color: #fff; }
.a11y-panel button.sc-blue { background: #9dd1ff; color: #063462; border-color: #063462; }
.a11y-panel button.sc-beige { background: #f7f3d6; color: #4d4b43; border-color: #4d4b43; }
.a11y-panel button.sc-wb[aria-pressed="true"], .a11y-panel button.sc-bw[aria-pressed="true"], .a11y-panel button.sc-blue[aria-pressed="true"], .a11y-panel button.sc-beige[aria-pressed="true"] { outline: 4px solid #ff6a13; outline-offset: 2px; }
.a11y-panel .a11y-exit { margin-left: auto; }

html.a11y { --fs: 1.15; }
html.a11y.fs-2 { --fs: 1.35; }
html.a11y.fs-3 { --fs: 1.6; }
html.a11y body { font-family: Arial, Helvetica, sans-serif; }
html.a11y h1, html.a11y h2, html.a11y h3, html.a11y h4, html.a11y .logo-text b, html.a11y .hero-facts b { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
html.a11y h1 { font-size: calc(2.2rem * var(--fs)); }
html.a11y h2 { font-size: calc(1.8rem * var(--fs)); }
html.a11y h3 { font-size: calc(1.3rem * var(--fs)); }
html.a11y.ls-2 body { letter-spacing: .08em; word-spacing: .16em; }
html.a11y.ls-3 body { letter-spacing: .16em; word-spacing: .3em; }
html.a11y *, html.a11y *::before, html.a11y *::after { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y .reveal { opacity: 1; transform: none; }
html.a11y .hero-stage { display: none !important; }
html.a11y .hero .container { display: block; }
html.a11y .hero-facts { margin-top: 24px; }
html.a11y .header { position: static; backdrop-filter: none; }
html.a11y.noimg img:not(.keep), html.a11y.noimg .map-wrap, html.a11y.noimg svg:not(.keep) { display: none !important; }
html.a11y a { text-decoration: underline; }

/* схемы: чёрный на белом (по умолчанию в режиме) */
html.a11y body, html.a11y body main, html.a11y .topbar, html.a11y .header, html.a11y .hero, html.a11y .section-page-hero, html.a11y .section, html.a11y .section-dark, html.a11y .footer,
html.a11y .card, html.a11y .svc-panel, html.a11y .service-picker, html.a11y .service-select-field select, html.a11y .benefit, html.a11y .course, html.a11y .contact-card, html.a11y .cta-box, html.a11y .license-banner,
html.a11y .sveden-nav, html.a11y .doclist li, html.a11y .table-wrap, html.a11y table.t th, html.a11y .org-node, html.a11y .pending, html.a11y .nav, html.a11y .field input, html.a11y .field select, html.a11y .field textarea, html.a11y .btn, html.a11y .hero-kicker {
  background: var(--a-bg) !important; color: var(--a-fg) !important; border-color: var(--a-fg) !important; background-image: none !important;
}
html.a11y * { color: var(--a-fg) !important; border-color: var(--a-fg) !important; }
html.a11y .card, html.a11y .svc-panel, html.a11y .benefit, html.a11y .course, html.a11y .contact-card, html.a11y .cta-box, html.a11y .sveden-nav, html.a11y .doclist li, html.a11y .org-node, html.a11y .btn, html.a11y .service-picker, html.a11y .service-select-field select, html.a11y .field input, html.a11y .field select, html.a11y .field textarea { border: 2px solid var(--a-fg) !important; }
html.a11y .sveden-nav a[aria-current="page"], html.a11y .nav-list a[aria-current="page"], html.a11y .nav-services.is-current summary {
  background: var(--a-fg) !important; color: var(--a-bg) !important;
}
html.a11y .nav-services.is-current summary svg { color: var(--a-bg) !important; }
html.a11y .service-menu, html.a11y .nav-services summary, html.a11y .burger {
  background: var(--a-bg); border-color: var(--a-fg);
}
html.a11y .service-select-field select { color-scheme: normal; }
html.a11y .org-line, html.a11y .org-split::before, html.a11y .step:not(:last-child)::before { background: var(--a-fg) !important; }
html.a11y ul.checks li::before { background-color: var(--a-fg) !important; }
html.a11y .a11y-panel, html.a11y .a11y-panel * { background: #fff !important; color: #000 !important; border-color: #000 !important; }
html.a11y .a11y-panel button[aria-pressed="true"] { background: #000 !important; color: #fff !important; }
html.a11y { --a-bg: #fff; --a-fg: #000; }
html.a11y.sc-bw { --a-bg: #000; --a-fg: #fff; }
html.a11y.sc-blue { --a-bg: #9dd1ff; --a-fg: #063462; }
html.a11y.sc-beige { --a-bg: #f7f3d6; --a-fg: #4d4b43; }

.btn { white-space: nowrap; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #c4c8d1; text-decoration: none; text-align: center; padding: 24px; }
.map-fallback svg { width: 40px; height: 40px; color: var(--accent); }
.map-fallback b { color: #fff; }
.map-wrap iframe { z-index: 1; }
html.a11y .sveden-nav h2 { font-size: calc(.95rem * var(--fs)); letter-spacing: .05em; }
@media (max-width: 520px) { .topbar .tb-mail { display: none; } }


/* ---------- переходы к разделам ---------- */
main [id] { scroll-margin-top: 92px; }

@media (max-width: 520px) {
  .license-banner .btn { white-space: normal; text-align: center; }
}
