/* ==========================================================================
   Учебный центр «Авалон» — основная таблица стилей
   ========================================================================== */

/* ---------- 0. Шрифт Onest (локально, вариативный 100–900, OFL — assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-latin-wght-normal.woff2) format("woff2-variations");
  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;
}

/* ---------- 1. Токены ---------- */
:root {
  --navy-950: #08132a;
  --navy-900: #0d1b3a;
  --navy-800: #13284f;
  --navy-700: #1c3766;
  --blue-600: #2456d6;
  --blue-500: #3a6cf0;
  --blue-100: #dfe8ff;
  --blue-50:  #f0f4ff;
  --amber-500: #f4a81d;
  --amber-600: #d98d06;
  --amber-100: #fff1d6;
  --green-600: #138a57;

  --ink:      #121a2b;
  --ink-2:    #364156;
  --muted:    #637087;
  --line:     #e2e7f0;
  --line-2:   #d3dae6;
  --bg:       #f5f7fb;
  --surface:  #ffffff;

  --primary:  var(--blue-600);
  --primary-hover: #1b45b5;
  --accent:   var(--amber-500);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 58, .06), 0 1px 3px rgba(13, 27, 58, .05);
  --shadow:    0 6px 24px -8px rgba(13, 27, 58, .18), 0 2px 6px rgba(13, 27, 58, .05);
  --shadow-lg: 0 24px 60px -20px rgba(13, 27, 58, .35);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;

  --i-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-base: 17px;
  --lh: 1.6;
  --ls: normal;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  letter-spacing: var(--ls);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; color: var(--ink); }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 1.2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(36, 86, 214, .6); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--accent { background: var(--accent); color: var(--navy-950); }
.btn--accent:hover { background: #ffb935; color: var(--navy-950); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- 4. Верхняя полоса ---------- */
.topbar { background: var(--navy-950); color: #c6d0e4; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 42px; }
.topbar__item { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar__item .icon { width: 16px; height: 16px; color: var(--amber-500); }
a.topbar__item:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar__a11y { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; margin-right: -12px;
  background: none; border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-size: 14px;
}
.topbar__a11y:hover { background: rgba(255, 255, 255, .1); }
.topbar__a11y .icon { width: 18px; height: 18px; }

/* ---------- 5. Шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: flex; flex: none; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo__mark { width: auto; max-width: 160px; height: 46px; flex: none; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; min-width: 0; }
.logo__title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.header .logo__sub { display: none; }
.logo__sub { font-size: 12.5px; color: var(--muted); line-height: 1.3; max-width: 260px; }

/* Меню. Разметка соответствует wp_nav_menu(): ul > li.menu-item > a + ul.sub-menu.
   Кнопка .submenu-toggle добавляется скриптом к каждому .menu-item-has-children. */
.nav { margin-left: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__menu > li { position: relative; display: flex; align-items: center; }
.nav__menu > li > a {
  display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__menu > .menu-item-has-children > a { padding-right: 36px; }
.nav__menu > li > a:hover, .nav__menu > li.is-open > a { background: var(--blue-50); color: var(--primary); }
.nav__menu > .current-menu-item > a, .nav__menu > .current-menu-ancestor > a { color: var(--primary); }

.submenu-toggle {
  position: absolute; top: 50%; right: 8px; width: 26px; height: 26px; margin-top: -13px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer;
}
.nav__menu > li > .submenu-toggle { color: var(--ink-2); }
.nav__menu > li:hover > .submenu-toggle, .nav__menu > li.is-open > .submenu-toggle,
.nav__menu > .current-menu-ancestor > .submenu-toggle { color: var(--primary); }
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

/* Выпадающее подменю (мега-меню разделов сведений) */
.nav__menu .sub-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 10; width: min(860px, 92vw);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; margin: 0; padding: 20px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-40%, 8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__menu .is-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-40%, 0); }
.nav__menu .sub-menu a {
  display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: 15px; line-height: 1.35; text-decoration: none;
}
.nav__menu .sub-menu a:hover, .nav__menu .sub-menu .current-menu-item > a { background: var(--blue-50); color: var(--primary); }

/* Нумерация разделов сведений — CSS-счётчиком, без лишней разметки в пунктах меню */
.nav__menu .sub-menu, .drawer__menu .sub-menu, .sidenav__list--num { counter-reset: menu; }
.nav__menu .sub-menu > li > a::before, .drawer__menu .sub-menu > li > a::before, .sidenav__list--num > li > a::before {
  counter-increment: menu; content: counter(menu, decimal-leading-zero);
  flex: none; width: 24px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}

.header__actions { display: flex; align-items: center; gap: 10px; }
/* Кнопка СДО в шапке — только иконка: с пятью пунктами меню текст не помещается; подпись с текстом — в топбаре */
.header__sdo { width: 42px; min-height: 42px; padding: 0; }
.header__sdo-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); cursor: pointer; }
.burger .icon { width: 22px; height: 22px; }

/* ---------- 6. Мобильное меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 19, 42, .55); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--surface); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__close { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 12px 24px; }
.drawer__menu { margin: 0; padding: 0; list-style: none; }
.drawer__menu li { position: relative; }
.drawer__menu a { display: flex; gap: 10px; padding: 12px; border-radius: var(--radius-sm); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.drawer__menu > .menu-item-has-children > a { padding-right: 56px; }
.drawer__menu a:hover, .drawer__menu .current-menu-item > a { background: var(--blue-50); color: var(--primary); }
.drawer__menu > li > .submenu-toggle { top: 6px; right: 6px; width: 40px; height: 40px; margin-top: 0; border: 1px solid var(--line); }
.drawer__menu .sub-menu { display: none; margin: 2px 0 10px 14px; padding: 0 0 0 10px; border-left: 2px solid var(--line); list-style: none; }
.drawer__menu .is-open > .sub-menu { display: block; }
.drawer__menu .sub-menu a { padding: 9px 12px; font-size: 15px; font-weight: 400; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- 7. Hero главной ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(58, 108, 240, .55), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(244, 168, 29, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-block: 88px 104px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; color: #d4dcf0; }
.eyebrow__dot { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber-500); color: var(--navy-950); }
.eyebrow__dot .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.hero__title { font-size: clamp(38px, 5.4vw, 64px); font-weight: 750; letter-spacing: -.035em; color: #fff; line-height: 1.04; }
.hero__title span { color: var(--amber-500); }
.hero__lead { max-width: 560px; margin: 22px 0 34px; font-size: 19px; line-height: 1.55; color: #c9d3ea; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.license {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
}
.license__badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(19, 138, 87, .22); color: #8ff0c1; font-size: 13px; font-weight: 600; }
.license__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62, 224, 143, .2); }
.license__label { margin-top: 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #9fb0d3; }
.license__num { margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: #fff; word-break: break-word; }
.license__meta { margin: 16px 0 0; display: grid; gap: 10px; font-size: 15px; color: #d4dcf0; }
.license__meta div { display: flex; gap: 10px; }
.license__meta dt { flex: none; width: 92px; color: #9fb0d3; }
.license__meta dd { margin: 0; }
.license__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* ---------- 8. Факты ---------- */
.facts { position: relative; z-index: 2; margin-top: -48px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 26px 28px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__value { font-size: 36px; font-weight: 750; letter-spacing: -.03em; line-height: 1; color: var(--navy-900); }
.fact__value::after { content: ""; display: block; width: 28px; height: 3px; margin: 14px 0 12px; border-radius: 3px; background: var(--accent); }
.fact__label { font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------- 9. Секции ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head__kicker { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.section-head__title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; }
.section-head__text { max-width: 440px; margin: 0; color: var(--muted); }

/* Карточки разделов сведений */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { color: var(--ink); border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px; background: var(--blue-50); color: var(--primary); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.card:hover .card__num { background: var(--primary); color: #fff; }
.card__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.card__text { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card__arrow { position: absolute; top: 22px; right: 20px; width: 20px; height: 20px; color: var(--line-2); transition: color .2s, transform .2s; }
.card:hover .card__arrow { color: var(--primary); transform: translate(2px, -2px); }

.card--cta { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.card--cta:hover { color: #fff; border-color: var(--navy-900); }
.card--cta .card__num { background: rgba(244, 168, 29, .16); color: var(--amber-500); }
.card--cta:hover .card__num { background: var(--amber-500); color: var(--navy-950); }
.card--cta .card__title { color: #fff; }
.card--cta .card__text { color: #aab6cf; }
.card--cta .card__arrow, .card--cta:hover .card__arrow { color: var(--amber-500); }
.card--cta .card__phone { margin-top: auto; padding-top: 14px; font-size: 20px; font-weight: 700; color: #fff; }

/* Программы обучения */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.program[hidden] { display: none; }
.program__card {
  display: flex; flex-direction: column; height: 100%; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s;
}
.program__card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); }
.program__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.badge--po, .badge--blue { background: var(--blue-50); color: var(--primary); }
.badge--dpo, .badge--amber { background: var(--amber-100); color: #8a5300; }
.badge--green { background: #e3f6ec; color: #0e6b43; }
.badge--violet { background: #f1ebff; color: #5b3cc4; }
.badge--gray { background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.program__hours { flex: none; color: var(--muted); font-size: 14px; white-space: nowrap; }
.program__hours b { font-size: 26px; font-weight: 750; letter-spacing: -.03em; color: var(--navy-900); }
.program__title { font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.program__code { margin-top: 6px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.program__meta { display: grid; gap: 12px; margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.program__meta li { display: flex; gap: 12px; }
.program__meta .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }
.program__label { display: block; font-size: 13px; color: var(--muted); }
.program__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.program--cta .program__card { background: var(--navy-900); border-color: var(--navy-900); color: #fff; text-decoration: none; }
.program--cta .program__card:hover { color: #fff; box-shadow: var(--shadow-lg); }
.program--cta .program__title { color: #fff; margin-top: 20px; }
.program__cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(244, 168, 29, .16); color: var(--amber-500); }
.program__cta-icon .icon { width: 24px; height: 24px; }
.program__cta-text { margin-top: 10px; color: #aab6cf; font-size: 15px; line-height: 1.5; }
.program__cta-phone { margin-top: auto; padding-top: 24px; font-size: 24px; font-weight: 700; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip span { padding: 1px 8px; border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .14); color: #fff; }
.programs + .cta { margin-top: 32px; }

.program__title a { color: inherit; text-decoration: none; }
.program__title a:hover { color: var(--primary); }

/* Страница 404 */
.nf { position: relative; overflow: hidden; color: #fff; text-align: center; background: radial-gradient(800px 360px at 50% -10%, rgba(58, 108, 240, .55), transparent 70%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.nf .hero__grid-bg { opacity: .4; }
.nf__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-block: 88px 104px; }
.nf__code { font-size: clamp(110px, 20vw, 220px); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .5); }
.nf__code span { color: var(--amber-500); -webkit-text-stroke: 0; }
.nf__title { margin-top: 28px; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; color: #fff; }
.nf__lead { max-width: 600px; margin: 18px 0 0; font-size: 17.5px; line-height: 1.6; color: #c9d3ea; }
.nf__actions { justify-content: center; margin-top: 32px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--4 .card__num .icon { width: 18px; height: 18px; }

/* Новости */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.news-card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.news-card::before { content: ""; position: absolute; top: -1px; left: 24px; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transition: width .25s; }
.news-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card:hover::before { width: 72px; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); }
.news-card__meta .icon { width: 16px; height: 16px; color: var(--primary); }
.news-card__cat { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--primary); font-size: 12.5px; font-weight: 600; }
.news-card__title { margin-top: 18px; font-size: 19px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card__title a:focus-visible { outline: none; }
.news-card:focus-within { outline: 3px solid var(--blue-100); outline-offset: 2px; }
.news-card:hover .news-card__title { color: var(--primary); }
.news-card__text { margin: 10px 0 20px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.news-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 15px; font-weight: 600; color: var(--primary); }
.news-card__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.news-card:hover .news-card__more .icon { transform: translateX(3px); }

.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s; }
a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.page-numbers.current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.news-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; font-size: 15px; color: #c9d3ea; }
.news-hero__meta .icon { width: 18px; height: 18px; color: var(--amber-500); }
.news-prose { max-width: 720px; }
.news-prose > :first-child { margin-top: 0; }
.news-prose > :last-child { margin-bottom: 0; }
.news-prose p, .news-prose ul { margin: 0 0 16px; }
.news-prose h2 { margin: 32px 0 14px; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.news-prose ul { padding-left: 22px; }
.news-prose li + li { margin-top: 6px; }
.news-prose li::marker { color: var(--accent); }
.news-article + .pager { margin-top: 0; }
.news-list { padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.news-list ul { margin: 0; padding: 0; list-style: none; }
.news-list li a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); text-decoration: none; }
.news-list li a:hover { background: var(--bg); color: var(--primary); }
.news-list__date { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.news-list__all { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 6px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.news-list__all .icon { width: 16px; height: 16px; }

/* Страница программы */
.badge--on-dark { background: rgba(255, 255, 255, .12); color: #fff; }
.prog-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.prog-hero__code { font-size: 14px; color: #9fb0d3; }
.prog-hero__actions { margin-top: 28px; }
.prog-facts .license__meta dt { width: 100px; }

.prog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-block: 48px 72px; }
.prog-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.prog-section { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.prog-section__title { margin-bottom: 20px; font-size: 26px; letter-spacing: -.02em; }
.prog-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.prog-section__head .prog-section__title { margin-bottom: 0; }
.prog-section__meta { font-size: 15px; color: var(--muted); }
.prog-section__sub { margin: 32px 0 16px; font-size: 19px; }
.prog-prose { font-size: 17px; color: var(--ink-2); }
.prog-prose + .notice { margin-top: 20px; }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--blue-50); color: var(--primary); stroke-width: 2.6; }
.checklist--audience .icon { background: var(--amber-100); color: #8a5300; stroke-width: 2; }

.plan__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.plan { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.plan th, .plan td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plan thead th { background: var(--bg); font-size: 13px; font-weight: 600; color: var(--muted); }
.plan tbody th { font-weight: 400; }
.plan__num { width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .plan__h, .plan .plan__sub { width: 76px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .plan__h { font-weight: 600; }
.plan__ctrl { width: 160px; color: var(--ink-2); }
.plan__group-row { background: rgba(240, 244, 255, .6); }
.plan__group-row th { font-weight: 650 !important; }
.plan__topic th { padding-left: 30px; font-size: 14.5px; color: var(--ink-2); }
.plan__topic td { font-size: 14.5px; }
.plan__total th, .plan__total td { border-top: 2px solid var(--navy-900); border-bottom: 0; font-weight: 700 !important; }
.plan__legend { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.plan__toggle { display: inline-flex; align-items: flex-start; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; text-align: left; color: inherit; cursor: pointer; }
.plan__toggle:hover { color: var(--primary); }
.plan__toggle .icon { width: 16px; height: 16px; margin-top: 3px; transition: transform .2s; }
.plan__group.is-open .plan__toggle .icon { transform: rotate(180deg); }
.plan.is-collapsing .plan__group:not(.is-open) .plan__topic { display: none; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step { padding: 22px 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--navy-900); color: var(--amber-500); font-weight: 700; }
.step__title { margin-bottom: 6px; font-size: 17px; }
.step__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--muted); transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

.prog-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.prog-aside__card {
  padding: 26px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(320px 200px at 100% 0%, rgba(244, 168, 29, .25), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.prog-aside__title { font-size: 20px; font-weight: 700; }
.prog-aside__text { margin: 8px 0 18px; font-size: 15px; color: #c9d3ea; }
.prog-aside__phone { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.prog-aside__phone:hover { color: var(--amber-500); }
.prog-aside__note { margin-top: 4px; font-size: 13.5px; color: #9fb0d3; }
.prog-aside__mail { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 20px; font-size: 15px; color: #d4dcf0; text-decoration: none; }
.prog-aside__mail:hover { color: #fff; }
.prog-aside__mail .icon { width: 18px; height: 18px; color: var(--amber-500); }
.prog-aside__card .btn { width: 100%; }
.prog-aside__toc { padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.prog-aside__toc ul { margin: 0; padding: 0; list-style: none; }
.prog-aside__toc a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.prog-aside__toc a:hover { background: var(--bg); color: var(--ink); }

/* Кнопка PDF */
.pdf-meta { font-size: .82em; font-weight: 500; opacity: .7; }
.btn--soft { background: var(--blue-50); color: var(--primary); }
.btn--soft:hover { background: var(--blue-100); color: var(--primary-hover); }
.program__pdf { width: 100%; margin-top: 8px; }

/* Попап */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 19, 42, .6); opacity: 0; transition: opacity .25s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; width: min(600px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 36px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); cursor: pointer;
}
.modal__close:hover { border-color: var(--primary); color: var(--primary); }
.modal__title { padding-right: 44px; font-size: 26px; letter-spacing: -.02em; }
.modal__lead { margin: 8px 0 24px; color: var(--muted); font-size: 15.5px; }
.modal__success { padding: 12px 0 4px; text-align: center; }
.modal__success .modal__title { padding: 0; }
.modal__success-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: #e3f6ec; color: var(--green-600); }
.modal__success-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
body.has-modal { overflow: hidden; }

/* Форма */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.form__row[hidden] { display: none; }
.form__row:has(.form__field--short) { grid-template-columns: 1fr 120px; }
.form__field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__label { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form__req { color: #d93a3a; }
.form__control {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form__control::placeholder { color: #9aa4b6; }
.form__control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 86, 214, .18); }
textarea.form__control { min-height: 88px; resize: vertical; }
select.form__control {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23637087' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.form__switch { display: flex; flex-wrap: wrap; gap: 8px; }
.form__switch legend { width: 100%; margin-bottom: 6px; }
.form__switch label { position: relative; }
.form__switch input { position: absolute; opacity: 0; }
.form__switch span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.form__switch input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.form__switch input:focus-visible + span { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.form__check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.form__error { display: none; font-size: 13px; color: #d93a3a; }
.is-invalid > .form__error { display: block; }
.is-invalid .form__control { border-color: #d93a3a; }
.form__submit { width: 100%; margin-top: 4px; }
.form__alt { margin: 0; font-size: 14px; text-align: center; color: var(--muted); }

/* Форматы обучения */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.format { padding: 28px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.format__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--navy-900); color: var(--amber-500); }
.format__icon .icon { width: 26px; height: 26px; }
.format__title { font-size: 19px; font-weight: 650; margin-bottom: 10px; }
.format__text { margin: 0; font-size: 15px; color: var(--ink-2); }

/* CTA-полоса СДО */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; padding: 32px 36px;
  border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(500px 200px at 100% 0%, rgba(244, 168, 29, .35), transparent 70%), linear-gradient(120deg, var(--navy-800), var(--blue-600));
}
.cta__title { font-size: 24px; font-weight: 700; color: #fff; }
.cta__text { margin: 6px 0 0; color: #d7e0f5; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Реквизиты */
.req { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.panel__title { font-size: 18px; font-weight: 650; }
.kv { margin: 0; }
.kv__row { display: grid; grid-template-columns: 210px 1fr auto; gap: 16px; align-items: start; padding: 13px 26px; border-bottom: 1px solid var(--line); }
.kv__row:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; font-size: 15.5px; font-weight: 500; word-break: break-word; }
.copy { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -4px -6px -4px 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; opacity: .55; transition: opacity .2s, background-color .2s, color .2s; }
.kv__row:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { background: var(--blue-50); color: var(--primary); }
.copy .icon { width: 16px; height: 16px; }
.copy.is-done { color: var(--green-600); opacity: 1; }
.req__aside { display: grid; gap: 24px; }
.kv--compact .kv__row { grid-template-columns: 130px 1fr auto; padding: 11px 22px; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; align-items: stretch; }
.contacts__list { display: grid; gap: 4px; padding: 14px; }
.contact { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.contact:hover { background: var(--blue-50); color: var(--ink); }
.contact__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--primary); }
.contact__label { font-size: 14px; color: var(--muted); }
.contact__value { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; }
.contact__note { font-size: 14px; color: var(--muted); }
.map { min-height: 420px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--blue-50); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--ink-2); font-size: 15.5px; }
.notice .icon { margin-top: 2px; color: var(--primary); }

/* ---------- 10. Внутренние страницы ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 300px at 90% -20%, rgba(58, 108, 240, .5), transparent 65%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.page-hero .hero__grid-bg { opacity: .35; }
.page-hero__inner { position: relative; padding-block: 40px 52px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: #9fb0d3; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumbs a { color: #d4dcf0; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero__num { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(244, 168, 29, .16); color: var(--amber-500); font-size: 14px; font-weight: 600; }
.sidenav__title:hover { color: var(--primary); }
.page-hero__lead { max-width: 640px; margin: 18px 0 0; font-size: 17.5px; line-height: 1.6; color: #c9d3ea; }
.page-hero__split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; padding-bottom: 12px; }
.page-hero__title { max-width: 900px; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; color: #fff; }

.layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding-block: 48px 96px; }
.sidenav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); scrollbar-width: thin; }
.sidenav__title { display: block; text-decoration: none; padding: 10px 12px 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sidenav__list { margin: 0; padding: 0; list-style: none; }
.sidenav__list a { display: flex; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14.5px; line-height: 1.38; text-decoration: none; transition: background-color .15s, color .15s; }
.sidenav__list a:hover { background: var(--bg); color: var(--ink); }
.sidenav__list .current-menu-item > a { background: var(--navy-900); color: #fff; }
.sidenav__list .current-menu-item > a::before { color: var(--amber-500); }
.sidenav__ext { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.sidenav__ext a { color: var(--muted); font-size: 13.5px; }
.sidenav__ext a[target="_blank"]::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; background: currentColor;
  -webkit-mask: var(--i-external) center / contain no-repeat; mask: var(--i-external) center / contain no-repeat;
}

.content { min-width: 0; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.info + .info { margin-top: 24px; }
.info__group { padding: 22px 28px 10px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.info__group:not(:first-child) { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 28px; }
.info__row { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; gap: 28px; padding: 20px 28px; border-top: 1px solid var(--line); }
.info__group + .info__row, .info__group + .info__notice, .info__group + .doc { border-top: 0; }
.info__row:first-child { border-top: 0; }
.info__label { font-size: 15px; line-height: 1.5; color: var(--muted); }
.info__value { font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.info__value ul { padding-left: 0; list-style: none; }
.info__value li { position: relative; padding-left: 20px; }
.info__value li + li { margin-top: 4px; }
.info__value li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.info__value p + p, .info__value ul + p { margin-top: .8em; }
.info__notice { padding: 0 28px 20px; }
.info__notice:first-child { padding-top: 20px; }
.info__text { padding: 8px 28px 20px; color: var(--ink-2); }
.info__text:first-child { padding-top: 24px; }

.doc { display: flex; align-items: flex-start; gap: 18px; padding: 18px 28px; border-top: 1px solid var(--line); color: var(--ink); }
.doc:first-child { border-top: 0; }
.doc__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 52px; flex: none; border-radius: 8px; background: var(--blue-50); color: var(--primary); }
.doc__icon .icon { width: 22px; height: 22px; }
.doc__icon b { position: absolute; bottom: -6px; right: -8px; padding: 1px 5px; border-radius: 4px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.doc__body { flex: 1; min-width: 0; }
.doc__title { font-size: 16px; font-weight: 550; line-height: 1.45; }
.doc__files { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.doc__file { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; }
.doc__file + .doc__file { padding-top: 8px; border-top: 1px dashed var(--line); }
.doc__file-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc__file-name { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--muted); }
.doc__sig-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px 1px 7px; border-radius: 999px; background: #e3f6ec; color: var(--green-600); font-size: 12.5px; font-weight: 600; }
.doc__sig-badge .icon { width: 13px; height: 13px; stroke-width: 2.8; }
/* Сведения из файла подписи: отметка раскрывает подробности (<details>, без JS) */
.sig { margin-top: 4px; }
.doc__file:has(.sig[open]) { align-items: start; }
.sig__toggle { width: fit-content; cursor: pointer; list-style: none; user-select: none; }
.sig__toggle::-webkit-details-marker { display: none; }
.sig__toggle:hover { background: #d3f0e0; }
.sig__toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sig__date { font-weight: 500; }
.sig .sig__chevron { width: 12px; height: 12px; transition: transform .15s; }
.sig[open] .sig__chevron { transform: rotate(180deg); }
.sig__panel { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 13.5px; line-height: 1.5; }
.sig__list { display: grid; gap: 6px; margin: 0; }
.sig__list + .sig__list { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.sig__row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.sig__row dt { color: var(--muted); }
.sig__row dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.sig__match { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--green-600); font-weight: 600; }
.sig__match .icon { width: 14px; height: 14px; stroke-width: 2.8; }
.sig__match--bad { color: #b42318; }
.sig__note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.doc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; flex: none; }
.doc__go { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.doc__go:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.doc__go .icon { width: 15px; height: 15px; }
.doc__sig, .sig-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.doc__sig:hover, .sig-link:hover { color: var(--primary); text-decoration: underline; }
.doc__sig .icon, .sig-link .icon { width: 16px; height: 16px; }
.doc--empty .doc__icon { background: var(--bg); color: var(--muted); }
.doc--empty .doc__icon b { display: none; }
.doc--empty .doc__title { color: var(--ink-2); }
.pdf-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.program__card .pdf-group { display: flex; width: 100%; }
.page-hero .sig-link, .license .sig-link { color: #c6d0e4; }
.page-hero .sig-link:hover, .license .sig-link:hover { color: #fff; }

.person { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 26px 28px; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person__avatar { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(140deg, var(--navy-800), var(--blue-600)); color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.person__caption { font-size: 14px; color: var(--muted); }
.person__fio { margin: 4px 0 2px; font-size: 21px; font-weight: 650; }
.person__post { color: var(--ink-2); }
.person__contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 15px; }
.person__contacts a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.person__contacts .icon { width: 17px; height: 17px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.pager a:hover { border-color: var(--blue-100); box-shadow: var(--shadow); color: var(--ink); }
.pager span { font-size: 13.5px; color: var(--muted); }
.pager b { font-weight: 600; line-height: 1.35; }
.pager .pager__next { text-align: right; grid-column: 2; }
.updated { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- 11. Подвал ---------- */
.footer { background: var(--navy-950); color: #aab6cf; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer .logo, .footer .logo:hover { color: #fff; }
.footer .logo__sub { color: #8b98b4; }
.footer__about { margin-top: 18px; max-width: 360px; font-size: 14.5px; line-height: 1.55; }
.footer__title { margin-bottom: 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.footer__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer a { color: #d4dcf0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact { display: flex; gap: 10px; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--amber-500); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: #7f8ca8; }

/* ---------- 12. Версия для слабовидящих ---------- */
.a11y-panel { display: none; background: #fff; border-bottom: 2px solid #000; color: #000; font-size: 16px; }
.a11y-on .a11y-panel { display: block; }
.a11y-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 12px 0; }
.a11y-group { display: flex; align-items: center; gap: 6px; }
.a11y-group__label { margin-right: 4px; font-weight: 600; }
.a11y-btn { min-width: 40px; height: 40px; padding: 0 10px; border: 2px solid #000; border-radius: 6px; background: #fff; color: #000; font-weight: 700; cursor: pointer; }
.a11y-btn[aria-pressed="true"] { outline: 3px solid #f4a81d; outline-offset: 1px; }
.a11y-btn--bw { background: #fff; color: #000; }
.a11y-btn--wb { background: #000; color: #fff; }
.a11y-btn--bb { background: #9dd1ff; color: #063462; border-color: #063462; }
.a11y-btn--yb { background: #f7f3d6; color: #4d4b43; }

.a11y-on { --fs-base: 20px; }
.a11y-on[data-a11y-size="2"] { --fs-base: 24px; }
.a11y-on[data-a11y-size="3"] { --fs-base: 28px; }
.a11y-on[data-a11y-spacing="2"] { --ls: .08em; }
.a11y-on[data-a11y-spacing="3"] { --ls: .16em; }
.a11y-on[data-a11y-lh="2"] { --lh: 2; }
.a11y-on body, .a11y-on body * { font-size: var(--fs-base) !important; letter-spacing: var(--ls) !important; box-shadow: none !important; text-shadow: none !important; }
.a11y-on body { line-height: var(--lh); }
.a11y-on h1, .a11y-on .hero__title, .a11y-on .page-hero__title { font-size: calc(var(--fs-base) * 1.6) !important; }
.a11y-on h2, .a11y-on .section-head__title { font-size: calc(var(--fs-base) * 1.35) !important; }
.a11y-on .hero__grid-bg, .a11y-on .logo__mark { display: none; }
.a11y-on .header { position: static; backdrop-filter: none; }
.a11y-on[data-a11y-img="off"] img, .a11y-on[data-a11y-img="off"] .map { display: none !important; }
.a11y-on .info__row, .a11y-on .kv__row { grid-template-columns: 1fr; gap: 6px; }
.a11y-on .cards, .a11y-on .formats, .a11y-on .programs, .a11y-on .news { grid-template-columns: repeat(2, 1fr); }
.a11y-on .nf__code { color: inherit; -webkit-text-stroke: 0; }
.a11y-on .news-card::before, .a11y-on .news-card__meta .icon { display: none; }
.a11y-on .news-card__cat { margin-left: 0; }

.a11y-on .header__inner { height: auto; flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; }
.a11y-on .topbar__inner { flex-wrap: wrap; padding-block: 6px; }
.a11y-on .logo__sub, .a11y-on .eyebrow, .a11y-on .card__arrow { display: none; }
.a11y-on .nav { flex-wrap: wrap; margin-left: 0; }
.a11y-on .nav__menu { flex-wrap: wrap; }
.a11y-on .nav__menu .sub-menu { grid-template-columns: 1fr; }
.a11y-on .hero__inner, .a11y-on .req, .a11y-on .contacts, .a11y-on .layout { grid-template-columns: 1fr; }
.a11y-on .facts { margin-top: 24px; }
.a11y-on .facts__grid { grid-template-columns: repeat(2, 1fr); }
.a11y-on .sidenav, .a11y-on .topbar__a11y, .a11y-on .prog-aside__toc { display: none; }
.a11y-on .prog-layout, .a11y-on .checklist, .a11y-on .steps { grid-template-columns: 1fr; }
.a11y-on .prog-aside { position: static; }
.a11y-on .doc { flex-wrap: wrap; }
.a11y-on .doc__file { grid-template-columns: 1fr; justify-items: start; }
.a11y-on .sig__row { grid-template-columns: 1fr; gap: 0; }

/* Цветовые схемы: перекрашиваем всё в 2 цвета */
.a11y-on[data-a11y-scheme] body, .a11y-on[data-a11y-scheme] body *:not(.a11y-btn):not(.a11y-btn *) {
  background: var(--a-bg) !important; color: var(--a-fg) !important; border-color: var(--a-fg) !important;
}
.a11y-on[data-a11y-scheme] a, .a11y-on[data-a11y-scheme] a * { text-decoration: underline !important; }
.a11y-on[data-a11y-scheme] .btn, .a11y-on[data-a11y-scheme] .card, .a11y-on[data-a11y-scheme] .doc__go { border: 2px solid var(--a-fg) !important; }
.a11y-on[data-a11y-scheme="bw"] { --a-bg: #fff; --a-fg: #000; }
.a11y-on[data-a11y-scheme="wb"] { --a-bg: #000; --a-fg: #fff; }
.a11y-on[data-a11y-scheme="bb"] { --a-bg: #9dd1ff; --a-fg: #063462; }
.a11y-on[data-a11y-scheme="yb"] { --a-bg: #f7f3d6; --a-fg: #4d4b43; }
.a11y-on[data-a11y-scheme] .a11y-panel { border-bottom: 2px solid var(--a-fg) !important; }

/* ---------- 13. Адаптив ---------- */
@media (max-width: 1480px) {
  .logo__mark { height: 40px; }
  .header__inner { gap: 20px; }
  .nav__menu > li > a { padding: 0 12px; }
  .nav__menu > .menu-item-has-children > a { padding-right: 34px; }
}
@media (max-width: 1280px) {
  .nav__menu > li > a { padding: 0 10px; font-size: 15px; }
  .nav__menu > .menu-item-has-children > a { padding-right: 32px; }
}
/* Шапка впритык: название в две строки, пока рядом меню */
@media (min-width: 1181px) and (max-width: 1280px) {
  .header .logo__title { max-width: 130px; font-size: 17px; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 64px 96px; }
  .license { max-width: 560px; }
  .page-hero__split { grid-template-columns: 1fr; gap: 32px; }
  .prog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .prog-aside { position: static; }
  .prog-aside__toc { display: none; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .sidenav { display: none; }
  .req { grid-template-columns: 1fr; }
  .req__aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .cards, .cards--4, .programs, .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news--home > li:nth-child(3) { display: none; }
  .cards--all > li:last-child { grid-column: 1 / -1; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .req, .contacts { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .topbar__hide-md { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 66px; --fs-base: 16px; }
  .topbar__inner { gap: 16px; }
  .topbar__hide-sm { display: none; }
  .logo__sub { display: none; }
  .header .logo__title { max-width: 130px; font-size: 17px; }
  .header__actions .btn { display: none; }
  .hero__inner { padding-block: 48px 88px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .license { padding: 22px; }
  .license__num { font-size: 20px; }
  .fact { padding: 20px; }
  .fact__value { font-size: 28px; }
  .section { padding: 64px 0; }
  .cards, .cards--4, .formats, .req__aside, .programs, .news { grid-template-columns: 1fr; }
  .nf__inner { padding-block: 56px 72px; }
  .news--home > li:nth-child(3) { display: block; }
  .news-card { padding: 22px 20px 20px; }
  .program__card { padding: 20px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { width: 100%; max-height: 94dvh; padding: 28px 18px 24px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(40px); }
  .modal__title { font-size: 22px; }
  .form__row, .form__row:has(.form__field--short) { grid-template-columns: 1fr; }
  .prog-section { padding: 22px 18px; }
  .prog-section__title { font-size: 22px; }
  .checklist, .steps { grid-template-columns: 1fr; }
  .plan .plan__sub { display: none; }
  .plan th, .plan td { padding: 10px 8px; }
  .plan__num { width: 48px; }
  .plan__ctrl { width: 110px; }
  .plan__topic th { padding-left: 16px; }
  .prog-facts .license__meta dt { width: 84px; }
  .kv__row, .kv--compact .kv__row { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 18px; }
  .kv dt { grid-column: 1 / -1; font-size: 13.5px; }
  .kv dd { grid-column: 1; }
  .kv .copy { grid-column: 2; grid-row: 2; }
  .panel__head { padding: 18px; }
  .info__row { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .info__group { padding-left: 18px; padding-right: 18px; font-size: 18px; }
  .info__notice, .info__text { padding-left: 18px; padding-right: 18px; }
  .info__label { font-size: 14px; }
  .doc { padding: 16px 18px; gap: 14px; flex-wrap: wrap; }
  .doc__file { grid-template-columns: 1fr; justify-items: start; }
  .sig__row { grid-template-columns: 1fr; gap: 0; }
  .topbar { font-size: 13px; }
  .person { grid-template-columns: 1fr; padding: 20px 18px; }
  .pager { grid-template-columns: 1fr; }
  .pager .pager__next { grid-column: 1; }
  .map, .map iframe { min-height: 320px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .cta { padding: 26px 22px; }
  .a11y-on .cards, .a11y-on .formats, .a11y-on .programs, .a11y-on .news { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header, .footer, .sidenav, .pager, .a11y-panel, .map { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero__title { color: #000; }
  .layout { display: block; padding: 0; }
}
@media (max-width: 420px) {
  .logo__mark { height: 34px; }
  .logo { gap: 8px; }
  .header__inner { gap: 12px; }
  .topbar__a11y [data-a11y-label] { display: none; }
  .topbar__a11y::after { content: "Для слабовидящих"; }
}
