/* ХексБез — тема «Светлая страница + тёмный терминал», 2026-10-08.
   Страница светлая и бумажная; единственный тёмный элемент — ровные окна терминала (первый экран, карточки фактов).
   Фон — тёплая бумага, текст — тёмный «чернильный», акцент — зелёный (кнопки, коды, полоса CTA во всю ширину).
   Цвет инфобеза — зелёный, сисадмина — синий (как лента принтера). Golos Text (текст, заголовки) + IBM Plex Mono
   (только то, что «печатает» терминал: команды, коды, распечатки). Контраст текста — WCAG AA. */

:root {
  color-scheme: light;
  --bg: #F2F0E9;
  --bg-2: #E9E6DC;
  --paper: #FFFFFF;
  --paper-2: #FBFAF6;
  --ink: #17201A;
  --text: #17201A;
  --text-2: #3F4A43;
  --muted: #5E685F;
  --line: #D6D2C6;
  --line-2: #B9B4A6;
  --green: #1E7A3C;
  --green-d: #155C2C;
  --green-band: #E3F0DF;
  --blue: #1F4FA8;
  --blue-d: #173D84;
  --blue-band: #E3EAF7;
  --tint: var(--green);
  --tint-d: var(--green-d);
  --band: var(--green-band);
  --danger: #B3261E;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-h: var(--font);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 8px;
  --r-sm: 6px;
  --wrap: 1200px;
  --gut: 80px;
  --shadow: 0 16px 30px -14px rgba(23, 32, 26, .28);
}
body[data-dir="sa"] { --tint: var(--blue); --tint-d: var(--blue-d); --band: var(--blue-band); }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: #FFFFFF; }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: calc(860px + var(--gut) * 2); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #FFFFFF; padding: 10px 16px; border-radius: var(--r-sm); z-index: 1000; font-weight: 600; }
.skip:focus { left: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Типографика ---------- */
.h1 { hyphens: manual; font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-weight: 800; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2.h2::before { content: "~/"; font-family: var(--font-mono); font-weight: 500; font-size: .58em; color: var(--tint); margin-right: .4em; vertical-align: .18em; letter-spacing: 0; }
.prose h2.h2::before { content: none; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.mono { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--tint); }
.mark { color: inherit; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--tint); }
.eyebrow::before { content: "$ "; font-weight: 600; }
.prose p + p { margin-top: 14px; }
.prose p, .txt { color: var(--text-2); }
.prose a, .txt a, .faq__a a, .note a, .lnk { color: var(--text); text-decoration: underline; text-decoration-color: var(--tint); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover, .txt a:hover, .faq__a a:hover, .note a:hover, .lnk:hover { color: var(--tint-d); }
.subh { font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin: 48px 0 18px; }
.c-ib { color: var(--green); }
.c-sa { color: var(--blue); }

/* ---------- Кнопки ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; touch-action: manipulation; }
.btn--primary { background: var(--green); color: #FFFFFF; }
.btn--primary:hover { background: var(--green-d); color: #FFFFFF; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--ink); }
.logo__mark { flex: none; font-family: var(--font-mono); font-weight: 600; font-size: 15px; line-height: 1; color: var(--green); border: 1.5px solid var(--green); border-radius: 4px; padding: 5px 7px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__txt b { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.logo__txt small { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav > a, .nav__dd > a { text-decoration: none; padding: 8px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav > a:hover, .nav__dd > a:hover { border-bottom-color: var(--line-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--green); }
.nav__dd { position: relative; }
.nav__menu { position: absolute; left: -16px; top: 100%; width: 380px; padding: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); display: none; }
.nav__dd:hover .nav__menu, .nav__dd:focus-within .nav__menu { display: block; }
.nav__dir { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-sm); text-decoration: none; }
.nav__dir:hover { background: var(--paper-2); color: var(--text); }
.nav__dir span { display: flex; flex-direction: column; }
.nav__dir small { font-size: 13px; color: var(--muted); }
.nav__all { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; }
.nav > a.nav__phone { display: none; }
.hdr__side { display: flex; align-items: center; gap: 18px; }
.hdr__phone { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.city { position: relative; font-size: 14px; }
.city summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--text-2); padding: 8px 0; }
.city summary::-webkit-details-marker { display: none; }
.city .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.city__menu { position: absolute; right: 0; top: 100%; min-width: 220px; padding: 6px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.city__menu a, .city__menu span { padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; }
.city__menu a:hover { background: var(--green-band); }
.city__menu span { color: var(--muted); }
.city__menu small { font-size: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: transparent; cursor: pointer; position: relative; }
.burger span, .burger span::before { position: absolute; left: 11px; width: 19px; height: 2px; background: var(--ink); content: ""; }
.burger span { top: 16px; }
.burger span::before { top: 8px; left: 0; }

/* ---------- Хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: 14px; color: var(--muted); background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Секции ---------- */
.sec { padding: 88px 0; }
.sec--alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--alt + .sec--alt { border-top: 0; }
.sec--tight { padding: 48px 0; }
.shead { margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.shead .lead { font-size: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split--w { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--c { align-items: center; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt { margin-top: 32px; }
.grid + .nsteps, .grid + .note { margin-top: 24px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 80px; }
.hero__txt { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 2; }
.hero__lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 600px; }
.hero__sub { color: var(--muted); font-size: 16px; max-width: 600px; }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__vis { position: relative; min-height: 500px; }
.hero .h1 { font-size: clamp(28px, 3.2vw, 46px); }
.hero .h1--dir { font-size: clamp(26px, 2.7vw, 40px); }
.hero--page .hero__grid { padding-top: 40px; padding-bottom: 80px; }
.hero__photo { position: absolute; top: 0; right: 0; width: 86%; height: 400px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.hero__photo .ph { position: absolute; inset: 0; border: 0; border-radius: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__vis .term { position: absolute; left: 0; bottom: 0; width: min(480px, 94%); z-index: 2; }
/* главная: распечатка вместо фото */
.hero--home .hero__grid { grid-template-columns: minmax(0, 1fr) 560px; align-items: start; padding-top: 64px; padding-bottom: 88px; }
.hero--home .hero__vis { min-height: 0; padding-top: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 4px 0 0; padding-top: 18px; border-top: 1.5px dashed var(--line-2); max-width: 520px; font-family: var(--font-mono); font-size: 14.5px; }
.kv > div { display: contents; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Окно терминала: тёмное, ровное, без наклона ---------- */
/* Внутри окна — свои цвета (светлый текст на тёмном), снаружи страница остаётся светлой */
.term, .shell {
  --t-bg: #141B16; --t-bar: #1D2620; --t-line: #2F3B33;
  --ink: #E8EEE9; --text: #E8EEE9; --text-2: #C8D2CA; --muted: #97A59B; --line: #2F3B33; --line-2: #3B4A40; --paper: transparent;
  --green: #6BD594; --blue: #94B8FF; --tint: #6BD594;
  position: relative; background: var(--t-bg); color: var(--ink); border-radius: 10px; overflow: hidden;
  font-family: var(--font-mono); font-size: 15px; line-height: 1.6;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 22px 44px -22px rgba(23, 32, 26, .55);
}
body[data-dir="sa"] .term { --tint: #94B8FF; }
.term__bar, .shell__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--muted); }
.term__bar span:first-child::before { content: "$ "; color: var(--tint); font-weight: 600; }
.term__body { display: flex; flex-direction: column; padding: 6px 20px 16px; }
.term__body > .tags, .term__body > .ticks { padding-top: 12px; }
.term__cmd, .term__cursor { display: none; }
.term__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line-2); text-decoration: none; font-family: var(--font); }
.term__row:last-of-type { border-bottom: 0; }
.term__row .code { padding-top: 2px; }
.term__row b { display: block; font-weight: 700; font-size: 17px; line-height: 1.3; }
.term__row small { display: block; font-size: 14px; color: var(--muted); }
.term__row .arr { font-family: var(--font-mono); font-weight: 600; color: var(--tint); padding-top: 2px; }
.term .facts > div { border-bottom-color: var(--line-2); }
.term .facts dd { color: #FFFFFF; }
.term .tags li { background: transparent; border-color: var(--line-2); color: var(--ink); }
.term .ticks li { font-family: var(--font); color: var(--ink); }
.term a:hover, .shell a:hover { color: #FFFFFF; }

/* Главная: окно терминала с выводом команды */
.shell__bar b { font-weight: 600; color: var(--ink); }
.shell__body { padding: 22px 26px 24px; }
.shell .p { color: var(--green); font-weight: 600; }
.shell .p i { font-style: normal; color: var(--blue); }
.shell__hr { display: block; border-top: 1px dashed var(--line-2); margin: 12px 0; }
.shell__dir { display: grid; grid-template-columns: 9ch minmax(0, 1fr); text-decoration: none; padding: 6px 8px; margin: 0 -8px 10px; border-radius: 6px; color: var(--ink); }
.shell__dir b { font-weight: 600; }
.shell__dir--ib b { color: var(--green); }
.shell__dir--sa b { color: var(--blue); }
.shell__dir small { font-size: 15px; color: var(--text-2); }
.shell__dir:hover { background: rgba(255, 255, 255, .06); }
.shell__dir:hover span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.shell .ok { color: var(--green); }
.shell .m { color: var(--muted); }
.shell__cur { display: inline-block; width: 9px; height: 17px; background: var(--ink); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Код специальности */
.code { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--tint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.code--ib { color: var(--green); }
.code--sa { color: var(--blue); }

/* Факты (сроки, форма, цена) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.facts > div { padding: 10px 0; border-bottom: 1.5px dashed var(--line-2); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--font); font-weight: 700; font-size: 17px; line-height: 1.3; }
.facts dd span { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--muted); }

/* ---------- Карточки ---------- */
.card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sec--alt .card { background: var(--paper-2); }
.card p { color: var(--text-2); font-size: 16px; }
.card--ib .mono { color: var(--green); }
.card--sa .mono { color: var(--blue); }
.card--link { text-decoration: none; transition: border-color .15s ease; }
.card--link:hover { border-color: var(--ink); color: var(--text); }
.card--go, .dcard { position: relative; }
.card__go { text-decoration: none; }
.card__go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card--go { transition: border-color .15s ease; cursor: pointer; }
.card--go:hover { border-color: var(--ink); }
.card--go h3::after { content: " →"; font-family: var(--font-mono); font-weight: 600; color: var(--tint); }
.card--ib.card--go h3::after { color: var(--green); }
.card--sa.card--go h3::after { color: var(--blue); }
.card--go:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dcard__body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dcard:hover { border-color: var(--ink); }
.dcard__body .lnk { position: relative; z-index: 2; }
.card__foot { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--muted); }

/* Большая карточка специальности */
.dcard { display: grid; grid-template-columns: 320px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.dcard + .dcard { margin-top: 20px; }
.dcard__img { position: relative; min-height: 100%; }
.dcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcard__body { padding: 34px 38px; display: flex; flex-direction: column; gap: 14px; }
.dcard__body h3 { font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.dcard__body h3 a { text-decoration: none; }
.dcard__body h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--tint); }
.dcard--sa .dcard__body h3 a:hover { text-decoration-color: var(--blue); }
.dcard__body > p { color: var(--text-2); }
.dcard__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; padding-top: 14px; border-top: 1.5px dashed var(--line-2); }
.dcard__info dt, .dcard__info .k { font-size: 13px; color: var(--muted); }
.dcard__info dd, .dcard__info .v { margin: 2px 0 0; font-weight: 700; font-size: 16px; line-height: 1.3; }

/* ---------- Списки ---------- */
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 40px; color: var(--text-2); }
.ticks li::before { content: "[x]"; position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--tint); }
.term .ticks li { font-family: var(--font); color: var(--ink); }
.ticks--box { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 28px; gap: 16px; }
.sec--alt .ticks--box { background: var(--paper-2); }
.ticks b { color: var(--text); }
.nsteps { list-style: none; counter-reset: s; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.nsteps > li { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 22px 26px; border-bottom: 1.5px dashed var(--line); }
.nsteps > li:last-child { border-bottom: 0; }
.nsteps > li::before { content: "0" counter(s); font-family: var(--font-mono); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--tint); }
.nsteps h3 { margin-bottom: 6px; }
.nsteps p { color: var(--text-2); font-size: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.tags li { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 10px; }
.clist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.clist li { position: relative; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px 18px 58px; display: flex; flex-direction: column; gap: 4px; }
.clist li::before { content: "[x]"; position: absolute; left: 18px; top: 19px; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--tint); }
.sec--alt .clist li { background: var(--paper-2); }
.clist b { font-weight: 700; font-size: 17px; line-height: 1.3; }
.clist span { font-size: 15px; color: var(--muted); }

/* Курсы обучения — лента */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.track > li { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.track > li + li { border-left: 1.5px dashed var(--line); }
.track p { font-size: 15px; color: var(--text-2); }

/* ---------- Таблица ---------- */
.tbl-box { overflow-x: auto; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:nth-child(even) { background: var(--band); }
.tbl thead th { font-weight: 700; font-size: 15px; color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.tbl tbody th { font-weight: 600; width: 26%; color: var(--text); }
.tbl td { color: var(--text-2); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* ---------- Раскрывашки ---------- */
.more { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.sec--alt .more { background: var(--paper-2); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary .mono { display: block; margin-bottom: 4px; }
.more > summary::after { content: "[+]"; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--tint); flex: none; }
.more[open] > summary::after { content: "[−]"; }
.more > p, .more > ul, .more > div { padding: 0 22px 22px; color: var(--text-2); font-size: 16px; }
.more > ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.more > ul li::before { content: "— "; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.sec--alt .faq__item { background: var(--paper-2); }
.faq__item[open] { border-color: var(--ink); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 24px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-size: 17px; }
.faq__ico { flex: none; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--tint); }
.faq__ico::before { content: "[+]"; }
.faq__item[open] .faq__ico::before { content: "[−]"; }
.faq__a { padding: 0 24px 22px; color: var(--text-2); }
.faq-cat { margin-top: 60px; }
.faq-cat:first-of-type { margin-top: 0; }
.faqnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.faqnav a { font-family: var(--font-mono); font-size: 14px; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-sm); padding: 8px 14px; text-decoration: none; }
.faqnav a:hover { border-color: var(--green); color: var(--green); }

/* ---------- Заметка ---------- */
.note { margin-top: 28px; background: var(--band); border-radius: var(--r); padding: 20px 24px; color: var(--text-2); display: flex; flex-direction: column; gap: 10px; }
.note::before { content: "# важно"; font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--tint); }
.note--plain { background: var(--paper); border: 1px solid var(--line-2); }
.sec--alt .note--plain { background: var(--paper-2); }
.note--plain::before { content: none; }

/* ---------- Фото ---------- */
.ph { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--tall, .ph--wide, .ph--sq { width: 100%; }
.ph--tall img, .ph--wide img, .ph--sq img { position: absolute; inset: 0; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--sq { aspect-ratio: 1 / 1; }
.ph picture { display: block; height: 100%; }
.dcard__img .ph { position: absolute; inset: 0; border: 0; border-radius: 0; margin: 0; }
figure { margin: 0; }
.ph figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); background: var(--paper); padding: 5px 10px; border-radius: 4px; }
.ph-pair { position: relative; }
.ph-pair .ph--small { position: absolute; width: 46%; right: -20px; bottom: -28px; border: 6px solid var(--bg); aspect-ratio: 1 / 1; }

/* ---------- Полоса CTA: зелёная во всю ширину ---------- */
.sec--cta { padding: 0; background: var(--green); color: #FFFFFF; }
body[data-dir="sa"] .sec--cta { background: var(--blue); }
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 52px 0; }
.band__title { font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.band__title::before { content: "$ "; font-family: var(--font-mono); font-weight: 500; opacity: .75; }
.band p:not(.band__title) { color: rgba(255, 255, 255, .92); max-width: 660px; }
.band__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-family: var(--font-mono); font-size: 14px; color: #FFFFFF; }
.band__trust li::before { content: "+ "; font-weight: 600; }
.band__act { display: flex; flex-direction: column; gap: 10px; }
.band .btn--primary { background: #FFFFFF; color: var(--green-d); }
body[data-dir="sa"] .band .btn--primary { color: var(--blue-d); }
.band .btn--primary:hover { background: var(--bg); }
.band .btn--ghost { border-color: #FFFFFF; color: #FFFFFF; }
.band .btn--ghost:hover { background: #FFFFFF; color: var(--ink); }

/* ---------- Финальная заявка ---------- */
.sec--lead { background: var(--bg); border-top: 1px solid var(--line); }
.sec--lead .split { align-items: center; }
.sec--lead .h2 { margin-bottom: 18px; }
.sec--lead p { color: var(--text-2); }
.lead-tel { display: inline-block; margin-top: 18px; font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.lead-tel:hover { color: var(--green); }
.lead-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 28px; }
form.lead { display: flex; flex-direction: column; gap: 14px; }
.lead__title { font-weight: 800; font-size: 21px; letter-spacing: -0.015em; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input, .field select { width: 100%; max-width: 100%; min-height: 52px; padding: 12px 14px; background: var(--paper); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 16px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 122, 60, .2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.check a { color: var(--text-2); }
.lead__err { padding: 12px 14px; border-radius: var(--r-sm); background: #FBE9E7; color: var(--danger); font-size: 15px; }
.lead__ok { padding: 12px 14px; border-radius: var(--r-sm); background: var(--green-band); color: var(--green-d); font-size: 15px; }

/* ---------- Модальное окно ---------- */
.modal { width: min(480px, calc(100% - 32px)); padding: 32px; background: var(--paper); color: var(--text); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(23, 32, 26, .45); }
.modal__x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; border-radius: var(--r-sm); }
.modal__x:hover { color: var(--text); background: var(--bg); }
.modal__title { font-weight: 800; font-size: 22px; letter-spacing: -0.015em; margin-bottom: 8px; padding-right: 32px; }
.modal .muted { font-size: 15px; margin-bottom: 18px; }

/* ---------- Плавающая кнопка (телефон) ---------- */
.mcta { display: none; }

/* ---------- Города ---------- */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cities__i { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); text-decoration: none; }
.cities__i b { font-weight: 600; color: var(--muted); }
.cities__i span { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.cities__i--on { border: 1.5px solid var(--green); background: var(--green-band); }
.cities__i--on b { color: var(--ink); }
.cities__i--on span { color: var(--green-d); font-weight: 600; }
.cities__i--on:hover { background: #D6EAD0; color: var(--ink); }

/* ---------- Цены ---------- */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.price { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.sec--alt .price { background: var(--paper-2); }
.price--main { border: 1.5px solid var(--green); }
.price__v { font-family: var(--font-mono); font-weight: 600; font-size: 30px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.price--main .price__v { color: var(--green-d); }
.price p:not(.price__v):not(.mono) { color: var(--text-2); font-size: 15px; }

/* ---------- Другие специальности ---------- */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.other { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; background: var(--paper); }
.other::after { content: "→"; margin-left: auto; font-family: var(--font-mono); font-weight: 600; color: var(--green); }
.other:hover { border-color: var(--ink); color: var(--text); }
.other b { font-weight: 600; }

/* ---------- Подвал ---------- */
.ftr { padding: 64px 0 32px; background: var(--paper-2); border-top: 1px solid var(--line-2); font-size: 15px; color: var(--text); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ftr__grid > div { display: flex; flex-direction: column; gap: 10px; }
.ftr__grid a { text-decoration: none; color: var(--text-2); }
.ftr__grid a:hover { color: var(--green); text-decoration: underline; }
.ftr__brand p { color: var(--muted); max-width: 340px; }
.ftr__phone { font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.ftr__h { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--green); }
.ftr__h::before { content: "~/"; }
.ftr__h--sp { margin-top: 14px; }
.ftr__soc { display: flex; gap: 14px; color: var(--muted); }
.ftr__soc span::after { content: " · скоро"; font-size: 12px; }
.ftr__legal { margin-top: 52px; padding-top: 22px; border-top: 1.5px dashed var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.ftr__legal a { color: var(--muted); }

/* ---------- Метки блоков (сборка --labels) ---------- */
.blk-label { position: relative; z-index: 5; display: inline-block; margin: 8px 0 0 8px; padding: 3px 8px; font-family: var(--font-mono); font-size: 11px; color: #FFFFFF; background: var(--green); border-radius: 4px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1520px) {
  .logo__txt small { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 1320px) {
  .hdr__phone { display: none; }
  .hero--home .hero__grid { grid-template-columns: minmax(0, 1fr) 480px; }
}
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 77px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line-2); max-height: calc(100dvh - 77px); overflow-y: auto; display: none; }
  .nav.is-open { display: flex; }
  .nav > a, .nav__dd > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--line); }
  .nav__menu { position: static; width: auto; display: block; padding: 4px 0 8px; background: none; border: 0; box-shadow: none; }
  .nav > a.nav__phone { display: block; font-family: var(--font-mono); font-weight: 600; }
  .burger { display: block; }
  .hero--home .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero--home .hero__vis { max-width: 560px; }
}
@media (max-width: 1100px) {
  :root { --gut: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track > li:nth-child(3) { border-left: 0; }
  .track > li:nth-child(n+3) { border-top: 1.5px dashed var(--line); }
}
@media (max-width: 960px) {
  .hdr__cta { display: none; }
  .hero__grid, .split, .split--w { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__vis, .hero--page .hero__vis { min-height: 0; display: flex; flex-direction: column; }
  .hero__photo { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .hero__vis .term { position: relative; width: auto; margin: -56px 12px 0; }
  .hero--home .hero__vis .term { margin: 0; }
  .dcard { grid-template-columns: minmax(0, 1fr); }
  .dcard__img { aspect-ratio: 16 / 9; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 44px 0; }
  .band__act { flex-direction: row; flex-wrap: wrap; }
  .ph-pair .ph--small { right: 12px; }
  .clist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .shead { margin-bottom: 26px; }
  .lead, .hero__lead { font-size: 17px; }
  .grid--2, .grid--3, .grid--4, .prices, .dcard__info, .track { grid-template-columns: 1fr; }
  .track > li + li { border-left: 0; border-top: 1.5px dashed var(--line); }
  .logo__txt small, .city { display: none; }
  .hdr__in { min-height: 66px; }
  .nav { inset: 67px 0 auto 0; max-height: calc(100dvh - 67px); }
  .hero__grid, .hero--page .hero__grid, .hero--home .hero__grid { padding-top: 26px; padding-bottom: 56px; gap: 36px; }
  .h1, .hero .h1 { font-size: 29px; line-height: 1.1; }
  .h1--dir, .hero .h1--dir { font-size: 26px; }
  .h2 { font-size: 25px; }
  .hero__act .btn { flex: 1 1 100%; }
  .kv { font-size: 13.5px; gap: 3px 14px; }
  .shell__body { padding: 16px 16px 18px; }
  .shell, .term { font-size: 13.5px; }
  .shell__dir { grid-template-columns: 1fr; }
  .shell__dir small { font-size: 13.5px; }
  .term__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .term__row .code { grid-column: 1 / -1; }
  .term__row b { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .dcard__body { padding: 22px 20px 24px; }
  .dcard__body h3 { font-size: 21px; }
  .nsteps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 18px; }
  .nsteps > li::before { font-size: 20px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
  .ftr { padding-bottom: 96px; }
  .lead-card { padding: 20px; }
  .mcta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .2s ease; }
  .mcta.is-on { transform: none; }
  .mcta .btn { flex: 1; }
  .mcta__tel { width: 52px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: var(--r-sm); color: var(--ink); }
  .ph-pair .ph--small { display: none; }
  .band__act .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* Адреса кампусов (2026-10-09) */
.note--addr::before { content: "# адрес кампуса"; }
.addr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.addr b { font-weight: 600; color: var(--text); }
.addr span { display: block; font-size: 14px; color: var(--muted); }
.ftr__soc { flex-wrap: wrap; }
.soc-list { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.prose > h3 { margin-top: 22px; margin-bottom: 8px; }
.prose > h3:first-of-type { margin-top: 18px; }

/* ---------- Политика: списки и таблица ---------- */
.policy ul { list-style: disc; padding-left: 1.3em; margin: 12px 0 0; color: var(--text-2); }
.policy ul ul { list-style: circle; margin-top: 8px; }
.policy li + li { margin-top: 8px; }
.policy li b { color: var(--text); font-weight: 600; }
.policy .shead { margin-top: 44px; }
.policy ul.policy__req { list-style: none; padding-left: 0; }
.ptable { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.ptable table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.ptable th { font-weight: 600; color: var(--text); background: var(--paper-2); }
.ptable tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .ptable table { min-width: 0; }
  .ptable thead { display: none; }
  .ptable tr, .ptable td { display: block; }
  .ptable tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .ptable tr:last-child { border-bottom: 0; }
  .ptable td { border-bottom: 0; padding: 6px 14px; }
  .ptable td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--text); font-size: 13px; margin-bottom: 2px; }
}
.policy ol.policy__ol { list-style: decimal; padding-left: 1.4em; color: var(--text-2); }
.policy ol.policy__ol li + li { margin-top: 12px; }
