/* =========================================================
   РКИ · МУТПТ — дизайн-система
   Палитра: тёплая бумага + чернильный синий + терракота
   ========================================================= */

:root {
  --bg:        #F8F6F1;
  --bg-2:      #F1EDE4;
  --surface:   #FFFFFF;
  --ink:       #0E1A2B;
  --ink-2:     #35404F;
  --muted:     #6C7484;
  --line:      #E4DFD4;
  --line-2:    #D5CFC2;
  --brand:     #14325C;
  --brand-2:   #1F4A85;
  --accent:    #C8553D;
  --accent-2:  #E07B5C;
  --gold:      #D9A441;
  --success:   #2F7D5B;

  --on-dark:   #F4F1EA;
  --on-dark-2: rgba(244, 241, 234, .68);
  --dark:      #0E1A2B;
  --dark-2:    #142338;

  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 43, .05), 0 2px 8px rgba(14, 26, 43, .05);
  --shadow:    0 6px 24px rgba(14, 26, 43, .08), 0 1px 3px rgba(14, 26, 43, .05);
  --shadow-lg: 0 24px 60px rgba(14, 26, 43, .14);

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 17px; height: 17px; }
.icon--xs { width: 14px; height: 14px; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.section-kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-kicker--light { color: var(--gold); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 20px;
}
.section--dark .section-title { color: var(--on-dark); }

.section-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.section--dark .section-lead { color: var(--on-dark-2); }

.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  font-weight: 500; margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; min-height: 48px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 18px 30px; min-height: 56px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; min-height: 40px; font-size: .92rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(200, 85, 61, .28); }
.btn--primary:hover { background: #B54A34; box-shadow: 0 12px 28px rgba(200, 85, 61, .35); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn--outline-light { background: transparent; color: var(--on-dark); border-color: rgba(244,241,234,.28); }
.btn--outline-light:hover { background: rgba(244,241,234,.08); border-color: var(--on-dark); }

.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.25); }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: var(--bg-2); color: var(--ink-2);
}
.chip--live { background: rgba(47,125,91,.1); color: var(--success); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,125,91,.45);} 60% { box-shadow: 0 0 0 7px rgba(47,125,91,0);} }

.badge {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(200,85,61,.15); }
.eyebrow__dot--ok { background: var(--success); box-shadow: 0 0 0 4px rgba(47,125,91,.15); }
.eyebrow--link { transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.eyebrow--link:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.eyebrow--link .icon { color: var(--accent); transition: transform .2s var(--ease); }
.eyebrow--link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(248, 246, 241, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(248,246,241,.92); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 40px; height: 40px; color: var(--ink); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand__text small { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.brand--light { color: var(--on-dark); }
.brand--light .brand__mark { color: var(--on-dark); }
.brand--light .brand__text small { color: var(--on-dark-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  padding: 10px 13px; border-radius: 10px; white-space: nowrap;
  font-size: .95rem; font-weight: 600; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav > a:not(.btn):hover, .nav > a:not(.btn)[aria-current="page"] { color: var(--ink); background: rgba(14,26,43,.05); }
.nav__cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(200,85,61,.22); }
.nav__cta { margin-left: 10px; }

.burger {
  display: none; width: 46px; height: 46px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glyph {
  position: absolute; font-family: var(--font-head); font-weight: 500; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(20,50,92,.16); user-select: none;
}
.hero__glyph--1 { font-size: 34rem; right: -6rem; top: -6rem; transform: rotate(-8deg); }
.hero__glyph--2 { font-size: 20rem; left: -4rem; bottom: -6rem; transform: rotate(10deg); -webkit-text-stroke-color: rgba(200,85,61,.14); }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__orb--1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(31,74,133,.28), transparent 70%); }
.hero__orb--2 { width: 420px; height: 420px; left: -160px; bottom: -80px; background: radial-gradient(circle, rgba(224,123,92,.26), transparent 70%); }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem);
  font-weight: 500; line-height: 1.06; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__title-tail {
  display: block;
  margin-top: 18px;
  max-width: 30ch;
  font-family: var(--font-head);
  font-size: clamp(1.08rem, .85rem + .85vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink-2);
}
.hero__lead { font-size: 1.18rem; color: var(--ink-2); max-width: 50ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__notes { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.hero__notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero__notes .icon { color: var(--success); }

.fact-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(228,223,212,.7);
  position: relative;
}
.fact-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(200,85,61,.35), transparent 40%, transparent 60%, rgba(20,50,92,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.fact-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.fact-card__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { padding: 18px; border-radius: var(--radius); background: var(--bg); }
.fact__value { font-family: var(--font-head); font-size: 2.1rem; font-weight: 600; color: var(--brand); line-height: 1; margin-bottom: 8px; }
.fact__label { font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.fact-card__foot { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line-2); display: grid; gap: 14px; }
.fact-card__row { display: flex; align-items: flex-start; gap: 12px; }
.fact-card__row .icon { color: var(--accent); margin-top: 2px; }
.fact-card__row div { display: flex; flex-direction: column; line-height: 1.35; }
.fact-card__row strong { font-size: .92rem; }
.fact-card__row span { font-size: .88rem; color: var(--muted); }

.partners {
  position: relative; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.partners__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.partners__list { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.partner { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink-2); }
.partners__sep { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--flush { padding-top: 40px; }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--center { text-align: center; }
.section-head { margin-bottom: 56px; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head--split .section-lead { margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about-text p { color: var(--ink-2); font-size: 1.08rem; }
.about-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.highlight { padding: 20px 18px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.highlight__num { font-family: var(--font-head); font-size: 2.2rem; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.highlight__text { font-size: .88rem; color: var(--ink-2); line-height: 1.4; font-weight: 600; }

.quote-card {
  position: relative; padding: 44px 40px 36px; border-radius: var(--radius-lg);
  background: var(--dark); color: var(--on-dark); overflow: hidden;
}
.quote-card::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,123,92,.35), transparent 70%);
}
.quote-card__mark { position: absolute; left: 28px; top: 8px; font-family: var(--font-head); font-size: 6rem; line-height: 1; color: rgba(217,164,65,.5); }
.quote-card__text { position: relative; font-family: var(--font-head); font-size: 1.32rem; line-height: 1.5; font-style: italic; margin-bottom: 26px; }
.quote-card__meta { position: relative; font-size: .84rem; color: var(--on-dark-2); font-weight: 600; letter-spacing: .02em; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 28px 22px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.step__num { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 18px; }
.step__num::after { content: ''; display: block; width: 100%; height: 1px; background: var(--line); margin-top: 14px; }
.step__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.step__text { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---------- Levels ---------- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.level {
  display: flex; flex-direction: column;
  position: relative; padding: 32px 30px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.level:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.level__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.level__code {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  background: var(--bg-2); color: var(--brand);
}
.level--1 .level__code, .level__code--1 { background: rgba(31,74,133,.1); color: var(--brand); }
.level--2 .level__code, .level__code--2 { background: rgba(200,85,61,.1); color: var(--accent); }
.level--3 .level__code, .level__code--3 { background: rgba(217,164,65,.16); color: #9A6E1E; }
.level__tag { font-size: .8rem; font-weight: 700; color: var(--muted); text-align: right; }
.level__name { font-family: var(--font-head); font-size: 1.7rem; font-weight: 500; margin-bottom: 12px; }
.level__text { color: var(--ink-2); font-size: .98rem; margin-bottom: 22px; }
.level__list { display: grid; gap: 10px; margin-bottom: 26px; }
.level__list li { display: flex; gap: 10px; align-items: center; font-size: .94rem; font-weight: 600; color: var(--ink-2); }
.level__list .icon { color: var(--success); }
.level__bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; margin-top: auto; }
.level__group {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  margin-top: 20px; padding: 12px 14px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.level__group:hover { background: var(--surface); border-color: var(--ink); }
.level__group-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.level__group-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.level__group-text strong { font-size: .95rem; }
.level__group-text span { font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level__group-go {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: #fff;
  transition: transform .2s var(--ease);
}
.level__group:hover .level__group-go { transform: translateX(3px); }
.level__bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--accent)); transform-origin: left; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Modules (dark) ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module {
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--dark-2); border: 1px solid rgba(244,241,234,.08);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.module:hover { border-color: rgba(244,241,234,.22); transform: translateY(-3px); background: #182A42; }
.module__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: .8rem; font-weight: 700; }
.module__lesson { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.module__period { color: var(--on-dark-2); }
.module__title { font-family: var(--font-head); font-size: 1.22rem; font-weight: 500; line-height: 1.3; margin-bottom: 12px; color: var(--on-dark); }
.module__text { font-size: .92rem; color: var(--on-dark-2); margin: 0; line-height: 1.55; }

/* ---------- Timeline ---------- */
.dates-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.dates-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.dates-intro .section-lead { margin-bottom: 28px; }

.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line-2); }
.tl { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 0 0 34px 40px; }
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: 4px; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--line-2); box-sizing: border-box;
}
.tl__dot { z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; }
.tl__dot .icon { width: 10px; height: 10px; stroke-width: 3.2; }
.tl--now .tl__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(200,85,61,.18); }
.tl--done .tl__dot, .tl--active .tl__dot { border-color: var(--brand); background: var(--brand); }
.tl--done::after, .tl--active::after {            /* закрашенный отрезок оси до следующего этапа */
  content: ''; position: absolute; left: 11px; top: 15px; width: 2px; height: 100%;
  background: var(--brand);
}
.tl--done:last-child::after, .tl--active:last-child::after { display: none; }
.tl--done .tl__date { color: var(--muted); }
.tl--done .tl__title { color: var(--ink-2); }
.tl__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .9rem; font-weight: 700; color: var(--accent); }
.tl__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl__date { font-family: var(--font-head); font-size: 1.05rem; color: var(--brand); padding-top: 2px; }
.tl__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl__text { font-size: .94rem; color: var(--ink-2); margin: 0; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__icon {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(20,50,92,.07); color: var(--brand); margin-bottom: 20px;
}
.benefit__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.benefit__text { font-size: .94rem; color: var(--ink-2); margin: 0; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--ink); transition: transform .25s var(--ease), background .2s, color .2s;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__a { padding: 0 26px 24px; color: var(--ink-2); }
.faq__a p { margin: 0; }

/* ---------- CTA ---------- */
.section--cta { padding-top: 0; }
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #14325C 0%, #0E1A2B 60%, #1B2537 100%);
  color: var(--on-dark);
}
.cta__glow { position: absolute; width: 640px; height: 640px; left: 50%; top: -420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(224,123,92,.4), transparent 65%); pointer-events: none; }
.cta__title { position: relative; font-family: var(--font-head); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); margin-bottom: 18px; }
.cta__text { position: relative; color: var(--on-dark-2); font-size: 1.12rem; max-width: 46ch; margin: 0 auto 36px; }
.cta__actions { position: relative; display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta__mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--on-dark); border-bottom: 1px solid rgba(244,241,234,.3); padding-bottom: 2px; transition: border-color .2s; }
.cta__mail:hover { border-color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(244,241,234,.1); }
.footer-col h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col p { font-size: .95rem; margin-bottom: 8px; }
.footer-col a:hover { text-decoration: underline; }
.footer-col .muted { color: var(--on-dark-2); }
.footer-project { margin-top: 20px; font-size: .9rem; color: var(--on-dark-2); max-width: 40ch; }
.footer-links { display: grid; gap: 10px; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 32px; padding-top: 28px; flex-wrap: wrap; }
.footer-grant { font-size: .86rem; color: var(--on-dark-2); max-width: 72ch; margin: 0; }
.footer-grant a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .muted { color: var(--on-dark-2); font-size: .86rem; margin: 0; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 64px 0 24px; position: relative; }
.page-hero--compact { padding-bottom: 8px; }
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 26px; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend__dot { width: 10px; height: 10px; border-radius: 50%; }
.legend__dot--lesson { background: var(--brand-2); }
.legend__dot--event { background: var(--accent); }
.legend__dot--final { background: var(--gold); }

.program-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.program-side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.side-card--soft { background: var(--bg-2); border-color: transparent; }
.side-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.side-card .btn { margin-top: 8px; }
.side-levels { display: grid; gap: 14px; margin-bottom: 18px; }
.side-levels li { display: flex; align-items: center; gap: 14px; }
.side-levels li div { display: flex; flex-direction: column; line-height: 1.3; }
.side-levels li strong { font-size: .95rem; }
.side-levels li span { font-size: .82rem; color: var(--muted); }
.side-levels .level__code { font-size: .92rem; padding: 6px 10px; min-width: 66px; text-align: center; }

.program { display: grid; gap: 12px; }
.pitem {
  display: grid; grid-template-columns: 170px 1fr; gap: 24px;
  padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  border-left-width: 4px; border-left-color: var(--brand-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pitem:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.pitem--event { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(200,85,61,.05), var(--surface) 40%); }
.pitem--final { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(217,164,65,.12), var(--surface) 40%); }
.pitem__side { display: flex; flex-direction: column; gap: 6px; }
.pitem__lesson { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.pitem--event .pitem__lesson { color: var(--accent); }
.pitem--final .pitem__lesson { color: #9A6E1E; }
.pitem__period { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.pitem__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.pitem__text { font-size: .94rem; color: var(--ink-2); margin: 0; }

.register-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.register-card { padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.register-card__title { font-size: 1.15rem; font-weight: 700; margin: 30px 0 16px; }
.notice { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: rgba(217,164,65,.14); border: 1px solid rgba(217,164,65,.4); }
.notice__icon { color: #9A6E1E; margin-top: 2px; }
.notice p { margin: 4px 0 0; font-size: .94rem; color: var(--ink-2); }
.notice a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.notice--ok { background: rgba(47,125,91,.08); border-color: rgba(47,125,91,.28); }
.notice--ok .notice__icon { color: var(--success); }
.register-card--closed { max-width: 760px; }
.register-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.check-list { display: grid; gap: 12px; margin-bottom: 30px; }
.check-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink-2); }
.check-list .icon { color: var(--success); }
.mini-steps { display: grid; gap: 14px; font-size: .94rem; color: var(--ink-2); }
.mini-steps li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; }
.mini-steps span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; }

.error-page { max-width: 560px; }
.error-page__code { display: block; font-family: var(--font-head); font-size: 8rem; line-height: 1; color: var(--line-2); margin-bottom: 8px; }
.error-page .section-lead { margin: 0 auto 28px; }

/* ---------- Teachers ---------- */
.teachers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.teacher {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.teacher:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teacher__head { display: flex; align-items: center; gap: 28px; }
.teacher__photo { position: relative; flex: none; width: 136px; aspect-ratio: 4 / 5; margin: 0 8px 8px 0; }
.teacher__photo::before {      /* арка-подложка со смещением */
  content: ''; position: absolute; inset: 0; transform: translate(8px, 8px);
  border: 1.5px solid rgba(200,85,61,.5);
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
}
.teacher__photo img {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
  background: var(--bg-2);
}
.teacher__id { min-width: 0; }
.teacher__role { display: block; margin-bottom: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); }
.teacher__name { font-family: var(--font-head); font-size: 1.75rem; font-weight: 500; line-height: 1.1; margin-bottom: 10px; }
.teacher__name span { display: block; margin-top: 4px; font-size: 1.12rem; font-weight: 400; color: var(--ink-2); }
.teacher__dept { margin: 0 0 14px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.teacher__degree {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(217,164,65,.15); color: #83591A; font-size: .8rem; font-weight: 700; line-height: 1.3;
}
.teacher__stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-block: 1px solid var(--line); }
.teacher__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 0; }
.teacher__stats > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.teacher__stats dt { font-size: .82rem; font-weight: 600; color: var(--muted); }
.teacher__stats dd { margin: 0; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--brand); }
.teacher__stats dd small { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.teacher__bio p { margin: 0 0 .85em; font-size: .95rem; line-height: 1.65; color: var(--ink-2); }
.teacher__bio p:last-child { margin-bottom: 0; }

/* ---------- Groups ---------- */
.gsummary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.gsummary__total { margin-right: 10px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.gsummary__total strong { margin-right: 4px; font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.gpill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 700; color: var(--ink-2);
  transition: border-color .2s, transform .2s var(--ease);
}
.gpill:hover { border-color: var(--ink); transform: translateY(-1px); }
.gpill__code { padding: 5px 10px; border-radius: 999px; font-family: var(--font-head); font-size: .86rem; font-weight: 600; }
.gpill--1 .gpill__code { background: rgba(31,74,133,.1); color: var(--brand); }
.gpill--2 .gpill__code { background: rgba(200,85,61,.1); color: var(--accent); }
.gpill--3 .gpill__code { background: rgba(217,164,65,.16); color: #9A6E1E; }

.gsearch { max-width: 560px; margin-bottom: 30px; }
.gsearch__label { display: block; margin-bottom: 10px; font-size: .92rem; font-weight: 700; }
.gsearch__field { position: relative; }
.gsearch__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gsearch__input {
  width: 100%; min-height: 56px; padding: 14px 56px 14px 54px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-sm);
  font: inherit; font-size: 1.05rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.gsearch__input::placeholder { color: var(--muted); }
.gsearch__input::-webkit-search-cancel-button { display: none; }
.gsearch__input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(31,74,133,.14); }
.gsearch__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink-2);
  transition: background .2s;
}
.gsearch__clear:hover { background: var(--line); }
.gsearch__status { min-height: 1.5em; margin: 10px 6px 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.no-js .gsearch { display: none; }

.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gcard {
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.gcard__head { position: relative; padding: 26px 24px 20px; border-bottom: 1px solid var(--line); }
.gcard__head::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-2); }
.gcard--2 .gcard__head::before { background: var(--accent); }
.gcard--3 .gcard__head::before { background: var(--gold); }
.gcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.gcard__score { font-size: .82rem; font-weight: 700; color: var(--muted); }
.gcard__title { margin-bottom: 4px; font-family: var(--font-head); font-size: 1.85rem; font-weight: 500; }
.gcard__meta { margin: 0 0 14px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); font-weight: 600; }
.gcard__meta span { display: block; font-weight: 400; color: var(--muted); }
.gcard__count {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: var(--bg); font-size: .86rem; font-weight: 700;
}
.gcard__cols {
  display: flex; justify-content: space-between; padding: 14px 24px 4px 60px;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.gcard__list { padding: 4px 12px 14px; }
.gcard__list li {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px;
  font-size: .96rem; line-height: 1.4; break-inside: avoid;
  transition: background .15s;
}
.gcard__list li:hover { background: var(--bg); }
.gcard__list li.is-match { background: rgba(217,164,65,.12); }
.gcard__num { flex: none; width: 1.7em; text-align: right; font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.gcard__name { flex: 1; min-width: 0; }
.gcard__score-val {
  flex: none; min-width: 2.4em; padding: 2px 8px; border-radius: 8px; text-align: center;
  font-size: .86rem; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(31,74,133,.08); color: var(--brand);
}
.gcard--2 .gcard__score-val { background: rgba(200,85,61,.09); color: #A8412B; }
.gcard--3 .gcard__score-val { background: rgba(217,164,65,.16); color: #83591A; }
.gcard__name mark { padding: 0 1px; border-radius: 3px; background: rgba(217,164,65,.42); color: inherit; }

.gnote { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.gnote__item { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-2); }
.gnote__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--brand); }
.gnote__item p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }
.gnote__item strong { display: block; margin-bottom: 2px; color: var(--ink); }
.gnote__item a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .groups { grid-template-columns: minmax(0, 1fr); }
  .gcard__list { column-count: 2; column-gap: 8px; padding-top: 12px; }
  .gcard__cols { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__glyph--1 { font-size: 26rem; }
}

@media (max-width: 1150px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav__cta { margin: 12px 0 0; }
  .burger { display: flex; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 48px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-grid, .dates-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .dates-intro, .program-side { position: static; }
  .levels, .modules, .benefits { grid-template-columns: 1fr 1fr; }
  .program-grid { grid-template-columns: 1fr; gap: 32px; }
  .register-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 64px 0; }
  .hero__glyph--1 { font-size: 16rem; right: -3rem; top: -2rem; }
  .hero__glyph--2 { display: none; }
  .hero__actions .btn { width: 100%; }
  .fact-card { padding: 22px; }
  .about-highlights { grid-template-columns: 1fr; }
  .steps, .levels, .modules, .benefits { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .teacher { padding: 24px; gap: 20px; }
  .teacher__head { gap: 20px; }
  .teacher__photo { width: 104px; }
  /* степень — отдельной строкой под фото, чтобы плашка не сжималась в три строки */
  .teacher__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; row-gap: 14px; }
  .teacher__id { display: contents; }
  .teacher__degree { grid-column: 1 / -1; justify-self: start; }
  .teacher__dept { margin-bottom: 0; }
  .teacher__name { font-size: 1.45rem; }
  .teacher__name span { font-size: 1rem; }
  .teacher__stats dd { font-size: 1.7rem; }
  .gcard__list { column-count: 1; padding-top: 4px; }
  .gcard__cols { display: flex; }
  .gnote { grid-template-columns: 1fr; }
  .gsummary__total { width: 100%; }
  .pitem { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 64px 24px; }
  .register-card { padding: 26px; }
  .brand__text small { display: none; }
  .brand__text strong { font-size: .9rem; }
}
