
    /* ==========================================================================
   АКАиР — Академия кинетической анатомии и ремедиации
   Дизайн-система: светлая научно-премиальная тема + тёмные хай-тек секции
   ========================================================================== */

:root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #ECEFEC;
    --surface-3: #E2E7E5;
    --ink: #2d4a3e;
    --ink-2: #3D4B52;
    --muted: #66757C;
    --line: #D9DFDD;
    --line-strong: #C3CCCA;
    --accent: #2d4a3e;
    --accent-hover: #2d4a3e;
    --accent-ink: #FFFFFF;
    --accent-soft: #DCEFEB;
    --accent-text: #2d4a3e;
    --signal: #D9562A;
    --signal-soft: #FBE7DE;
    --gold: #A8822E;
    --shadow-sm: 0 1px 2px rgba(11, 21, 25, .06);
    --shadow: 0 1px 2px rgba(11, 21, 25, .05), 0 12px 32px -12px rgba(11, 21, 25, .14);
    --shadow-lg: 0 30px 80px -30px rgba(11, 21, 25, .35);
    --grid-line: rgba(11, 21, 25, .06);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --r-xl: 32px;
    --container: 1760px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}


/* ---------- База ---------- */
*, *::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: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, .link { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, li a:hover, .link:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 80px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.015em; }
h4 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.dark { background: var(--bg); color: var(--ink); isolation: isolate; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--surface { background: var(--surface); }
.section--alt { background: var(--surface-2); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 680px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent-text); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-bd: var(--ink-2); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-text); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Чипы / бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip--accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.chip--signal { background: var(--signal-soft); color: var(--signal); border-color: transparent; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 19px; letter-spacing: .02em; font-weight: 800; }
.logo-text span { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; max-width: 190px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; display: inline-grid; place-items: center; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.burger { display: none; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease); overflow-y: auto;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a.m-link { font-size: 26px; font-weight: 600; letter-spacing: -.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 24px; }
.mobile-nav .m-contacts { margin-top: 24px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }

@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: inline-grid; }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 90px); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-bg {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow--a { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(63, 224, 203, .45), transparent 65%); }
.glow--b { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(70, 120, 255, .25), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin: 28px 0 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(48px, 6vw, 80px); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg); padding: 26px 26px 24px; }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat b sup { font-size: .5em; color: var(--accent); vertical-align: top; position: relative; top: .15em; margin-left: 2px; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Страничный hero */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 68px); max-width: 15ch; }
.page-hero .lead { margin-top: 24px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; font-family: var(--mono); }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Виджет «Три плоскости» ---------- */
.planes {
  position: relative; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent));
  padding: 20px; box-shadow: var(--shadow-lg);
}
.planes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 6px 12px; }
.planes-head .rec { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); }
.planes-head .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.planes-stage { position: relative; aspect-ratio: 1 / .92; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg); border: 1px solid var(--line); }
.planes-stage svg { width: 100%; height: 100%; }
.planes-stage .scan { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 16%, transparent), transparent); animation: scan 6s linear infinite; pointer-events: none; }
@keyframes scan { to { top: 100%; } }
.pl-skull { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.pl-soft { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 5; }
.pl-orbit { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: var(--ink-2); stroke-width: 1.5; }
.pl-tooth { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.2; }
.pl-line { stroke-width: 2; stroke-linecap: round; }
.pl-opt { stroke: #4C8DFF; }
.pl-vest { stroke: var(--gold); stroke-dasharray: 6 6; }
.pl-occ { stroke: var(--accent); }
.pl-mid { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 6; }
.pl-ear { fill: var(--gold); }
.pl-dot { fill: var(--ink); }
.pl-label { font-family: var(--mono); font-size: 11px; fill: var(--muted); letter-spacing: .04em; }
.pl-rot { transform-box: view-box; transition: transform .9s var(--ease); }
.planes-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.planes-controls button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 6px; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink-2);
  transition: all .2s;
}
.planes-controls button:hover { border-color: var(--line-strong); color: var(--ink); }
.planes-controls button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.planes-readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.planes-readout div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
.planes-readout small { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.planes-readout small i { width: 10px; height: 2px; border-radius: 2px; display: inline-block; }
.planes-readout b { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.planes-caption { margin-top: 12px; font-size: 13.5px; color: var(--muted); min-height: 2.8em; padding: 0 4px; }
.planes-note { font-size: 11.5px; color: var(--muted); padding: 6px 4px 0; font-family: var(--mono); }

/* ---------- Тренды (бегущая строка) ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; padding: 20px 28px; font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--ink-2); }
.ticker-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Цепочка «череп → тело» ---------- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.chain-step { padding: 26px 22px; position: relative; border-right: 1px solid var(--line); }
.chain-step:last-child { border-right: 0; }
.chain-step .n { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.chain-step h4 { margin: 10px 0 6px; font-size: 19px; }
.chain-step p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.chain-step:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 32px; width: 16px; height: 16px; z-index: 2;
  background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
}

/* ---------- Двухколоночные блоки ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
.split--wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }

/* ---------- Bento (5 компонентов метода) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px); position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card:hover { border-color: var(--line-strong); }
.bento .card { grid-column: span 2; min-height: 240px; display: flex; flex-direction: column; }
.bento .card--wide { grid-column: span 3; }
.bento .card--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bento .card--accent p, .bento .card--accent .card-num { color: inherit; opacity: .85; }
.card-num { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 22px; }
.card-icon svg { width: 24px; height: 24px; }
.card--accent .card-icon { background: rgba(255, 255, 255, .16); color: inherit; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.card .card-foot { margin-top: auto; padding-top: 20px; }

/* ---------- Список с галочками ---------- */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230A7A73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.dark .ticks li::before, :root[data-theme="dark"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%233FE0CB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ticks--2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.dash-list { list-style: none; display: grid; gap: 0; }
.dash-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; color: var(--ink-2); }
.dash-list li:first-child { border-top: 1px solid var(--line); }
.dash-list li .mono { color: var(--accent-text); font-size: 13px; padding-top: 3px; min-width: 28px; }

/* ---------- Карточки курсов ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; min-height: 360px; text-align: left; position: relative;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; cursor: pointer; width: 100%;
}
.course-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.course-card .cc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.course-card .cc-track { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.course-card h3 { font-size: 22px; margin-bottom: 12px; }
.course-card .cc-desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-bottom: 20px; }
.course-card .cc-meta { margin-top: auto; display: grid; gap: 8px; padding-top: 18px; border-top: 1px dashed var(--line-strong); font-size: 14px; }
.cc-meta-row { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.cc-meta-row svg { width: 17px; height: 17px; flex: none; color: var(--muted); margin-top: 2px; }
.course-card .cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.price { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cc-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: background .2s, color .2s; flex: none; }
.cc-go svg { width: 18px; height: 18px; }
.course-card:hover .cc-go { background: var(--accent); color: var(--accent-ink); }
.course-card--featured { grid-column: span 2; background: linear-gradient(135deg, var(--surface) 40%, #cdcdcd); }
.course-card--featured h3 { font-size: clamp(24px, 2.6vw, 32px); max-width: 20ch; }

/* ---------- Фильтры ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .2s;
}
.seg button:hover { border-color: var(--line-strong); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg button .cnt { font-family: var(--mono); font-size: 12px; opacity: .6; margin-left: 4px; }
.search { position: relative; }
.search input {
  height: 44px; width: 260px; max-width: 100%; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px 0 42px; font: inherit; font-size: 15px; color: var(--ink);
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

/* ---------- Траектория обучения ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.path-step { position: relative; padding: 26px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.path-step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.path-step h3 { margin: 14px 0 10px; font-size: 21px; }
.path-step p { font-size: 15px; color: var(--ink-2); }
.path-step ul { list-style: none; margin-top: 16px; display: grid; gap: 6px; }
.path-step li a { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); transition: background .2s; }
.path-step li a:hover { background: var(--accent-soft); color: var(--accent-text); }
.path-step:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -17px; width: 18px; height: 1px; background: var(--line-strong); }

/* ---------- Портрет ---------- */
.portrait {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); }
.portrait .ph b { display: block; font-size: clamp(64px, 9vw, 120px); font-weight: 700; letter-spacing: -.05em; color: var(--line-strong); line-height: 1; }
.portrait .ph span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.portrait .tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-size: 14px; line-height: 1.4;
}
.portrait .tag b { display: block; font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 32px 0; }
.facts div { background: var(--surface); padding: 20px 22px; }
.facts b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Клинический случай ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.chart-card h4 { font-size: 15px; margin-bottom: 4px; }
.chart-card .muted { font-size: 13.5px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 260px; margin-top: 24px; position: relative; padding-bottom: 32px; }
.bars .norm { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--signal); font-family: var(--mono); font-size: 11px; color: var(--signal); }
.bars .norm span { position: absolute; right: 0; top: -20px; background: var(--surface); padding-left: 6px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar i { display: block; width: 100%; max-width: 72px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); height: 0; transition: height 1.2s var(--ease); }
.bar:first-child i { background: linear-gradient(180deg, var(--signal), color-mix(in srgb, var(--signal) 45%, transparent)); }
.bar b { font-family: var(--mono); font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.bar span { position: absolute; bottom: -28px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.case-points { display: grid; gap: 14px; margin-top: 28px; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 20px; line-height: 1.5; }

/* ---------- Аудитория / форматы ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.aud .card-icon { margin-bottom: 18px; }
.aud h4 { font-size: 18px; margin-bottom: 6px; }
.aud p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.format { background: var(--surface); padding: 28px; }
.format .mono { font-size: 12px; color: var(--accent-text); letter-spacing: .06em; text-transform: uppercase; }
.format h3 { font-size: 20px; margin: 12px 0 8px; }
.format p { font-size: 15px; color: var(--ink-2); }

/* ---------- Публикации ---------- */
.pubs { display: grid; gap: 16px; }
.pub { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.pub-key { border-right: 1px solid var(--line); padding-right: 24px; }
.pub-key b { display: block; font-size: 40px; letter-spacing: -.04em; line-height: 1; color: var(--accent-text); }
.pub-key span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.pub h3 { font-size: 20px; margin-bottom: 8px; }
.pub .src { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.pub p { font-size: 15px; color: var(--ink-2); }

/* ---------- Таймлайн / международный путь ---------- */
.world { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.country { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.country .mono { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.country h4 { margin: 8px 0 6px; font-size: 18px; }
.country p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Расписание ---------- */
.sched-month { margin-bottom: 40px; }
.sched-month h3 { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sched-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 180px auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sched-date b { display: block; font-size: 30px; letter-spacing: -.04em; line-height: 1; }
.sched-date span { font-size: 13px; color: var(--muted); }
.sched-title { font-weight: 700; font-size: 18px; letter-spacing: -.015em; line-height: 1.3; cursor: pointer; }
.sched-title:hover { color: var(--accent-text); }
.sched-sub { font-size: 14px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sched-side { display: grid; gap: 6px; justify-items: start; font-size: 14px; }
.sched-actions { display: flex; gap: 8px; justify-content: flex-end; }
.sched-row.is-past { opacity: .62; }
.sched-row.is-past:hover { opacity: 1; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-weight: 600; font-size: 18.5px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .3s var(--ease), background .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] .pm { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .answer { padding: 0 60px 26px 0; color: var(--ink-2); }

/* ---------- Форма ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-size: 15px; display: none; padding: 14px 16px; border-radius: 12px; }
.form-status.is-ok { display: block; background: var(--accent-soft); color: var(--accent-text); }
.form-status.is-err { display: block; background: var(--signal-soft); color: var(--signal); }
.contact-lines { display: grid; gap: 18px; margin-top: 36px; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; }
.contact-line .card-icon { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-line small { display: block; font-size: 13px; color: var(--muted); }
.contact-line a, .contact-line b { font-size: 17px; font-weight: 600; }

/* ---------- CTA-баннер ---------- */
.cta-band { border-radius: var(--r-xl); padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.cta-band h2 { max-width: 18ch; }
.cta-band .lead { margin: 20px 0 32px; }

/* ---------- Модальное окно курса ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 10, 12, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s; }
.modal-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--bg); overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: slide .35s var(--ease); display: flex; flex-direction: column;
}
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.modal-body { padding: 28px 28px 40px; }
.modal-body h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 16px; }
.modal-body h4 { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 32px 0 14px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 24px; }
.kv div { background: var(--surface); padding: 14px 16px; }
.kv small { display: block; font-size: 12px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.kv b { font-size: 15.5px; font-weight: 600; }
.sessions { display: grid; gap: 8px; }
.session { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.session.is-past { opacity: .6; }
.modal-cta { position: sticky; bottom: 0; padding: 16px 28px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.modal-cta .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
body.no-scroll { overflow: hidden; }

/* ---------- Подвал ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid li a { color: var(--ink-2); font-size: 15px; }
.footer-grid li a:hover { color: var(--ink); }
.footer-about { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 34ch; }
.socials { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.legal a:hover { color: var(--ink); }

/* ---------- Плавающая кнопка мессенджера ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 26px; height: 26px; }

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .split--wide, .case { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); }
  .path-step::after { display: none; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .chain-step:last-child { border-bottom: 0; }
  .chain-step:not(:last-child)::after { right: auto; left: 32px; top: auto; bottom: -9px; transform: rotate(135deg); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card--wide { grid-column: span 1; }
  .bento .card:last-child:nth-child(odd) { grid-column: span 2; }
  .world { grid-template-columns: repeat(2, 1fr); }
  .sched-row { grid-template-columns: 96px minmax(0, 1fr); }
  .sched-side, .sched-actions { grid-column: 2; justify-content: flex-start; }
  .sched-side { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .logo-text span { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 18px; }
  .course-grid, .path, .aud-grid, .formats, .world, .bento { grid-template-columns: 1fr; }
  .bento .card:last-child:nth-child(odd) { grid-column: span 1; }
  .bento .card { min-height: 0; }
  .course-card--featured { grid-column: span 1; }
  .course-card { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .ticks--2 { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .pub-key { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .kv { grid-template-columns: 1fr; }
  .facts b { font-size: 26px; }
  .planes { padding: 12px; border-radius: var(--r-lg); }
  .planes-controls { grid-template-columns: repeat(3, 1fr); }
  .planes-readout b { font-size: 15px; }
  .filters { flex-direction: column; align-items: stretch; }
  .seg { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .seg button { flex: none; }
  .search input { width: 100%; }
  .faq .answer { padding-right: 0; }
  .faq summary { font-size: 17px; }
  .sched-row { grid-template-columns: 1fr; gap: 10px; }
  .sched-side, .sched-actions { grid-column: 1; }
  .sched-date { display: flex; align-items: baseline; gap: 10px; }
  .sched-date b { font-size: 22px; }
  .modal-body, .modal-head, .modal-cta { padding-left: 18px; padding-right: 18px; }
  .bars { height: 220px; gap: 8px; }
  .bar span { font-size: 11px; }
  .fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ---------- Правки ---------- */
.nav a { white-space: nowrap; }
@media (max-width: 1320px) { .logo-text span { display: none; } }
.path-step li a svg { width: 16px; height: 16px; flex: none; align-self: center; }
.ticker { max-width: 100%; }
.hero-bg { overflow: hidden; }
.hero-grid > *, .split > *, .case > *, .filters > * { min-width: 0; }
.filters > * { max-width: 100%; }
@media (max-width: 720px) {
  .chip { white-space: normal; height: auto; min-height: 28px; padding-block: 4px; line-height: 1.3; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
  .planes-readout { gap: 6px; }
  .planes-readout div { padding: 8px; }
  .planes-readout small { font-size: 9.5px; letter-spacing: .02em; }
}

    
</style>