/* CodeArt — общий стиль сайта (главная + посадочные экзаменов).
   Mobile-first. Палитра — фирменный гайдбук CodeArt. */

/* ================= Токены ================= */
:root {
  --ink: #3E3B46;
  --paper: #FBF9FF;
  --white: #FFFFFF;
  --purple: #9067F3;
  --apple: #A9E804;
  --coral: #FF6450;
  --yellow: #FFCF01;
  --pink: #FB91E4;

  --ink-2: color-mix(in oklab, var(--ink) 74%, var(--paper));
  --line: color-mix(in oklab, var(--ink) 13%, var(--paper));
  --grid: color-mix(in oklab, var(--ink) 6%, var(--paper));
  --purple-deep: color-mix(in oklab, var(--purple) 72%, var(--ink));
  --purple-ink: color-mix(in oklab, var(--purple) 62%, var(--ink));
  --purple-soft: color-mix(in oklab, var(--purple) 12%, var(--white));
  --coral-soft: color-mix(in oklab, var(--coral) 13%, var(--white));
  --yellow-soft: color-mix(in oklab, var(--yellow) 22%, var(--white));
  --apple-soft: color-mix(in oklab, var(--apple) 20%, var(--white));
  --apple-shade: color-mix(in oklab, var(--apple) 58%, var(--ink));
  --shadow-purple: color-mix(in oklab, var(--purple) 40%, transparent);

  --font-display: "Unbounded", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Gotham Pro", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4.5vw, 40px);

  /* Вертикальный ритм: секция 64→96, заголовок→контент 28→40, подблоки 40→64, сетки 16→20, паддинг карточки 20→32 */
  --sp-section: clamp(64px, 8vw, 96px);
  --sp-head: clamp(28px, 3.4vw, 40px);
  --sp-block: clamp(40px, 5vw, 64px);
  --gap-card: clamp(16px, 1.6vw, 20px);
  --pad-card: clamp(20px, 2.4vw, 32px);
  --cell: 40px;
  --header-h: 64px;

  --z-sticky: 40;
  --z-header: 50;
  --z-menu: 60;

  interpolate-size: allow-keywords;
}
@media (min-width: 768px) { :root { --cell: 64px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --cell: 82px; } }

/* ================= База ================= */
*, *::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-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.25; text-wrap: balance; }
p { margin: 0; max-width: 65ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.section { padding-block: var(--sp-section); position: relative; }
.section--white { background: var(--white); }

/* Сетка-тетрадь */
.paper-grid { position: relative; isolation: isolate; }
.paper-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 72%, transparent);
  mask-image: linear-gradient(to bottom, var(--ink) 72%, transparent);
}

/* ================= Типографика ================= */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--purple)); }
.eyebrow--coral { --dot: var(--coral); }
.h2 { font-size: clamp(24px, calc(12px + 3.4vw), 44px); line-height: 1.14; letter-spacing: -0.02em; }
h1, h2, h3 { overflow-wrap: break-word; }
.h3 { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.45; }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: var(--sp-head); max-width: 980px; }
.sec-head--row { max-width: none; }
@media (min-width: 900px) {
  .sec-head--row { grid-template-columns: 1fr minmax(280px, 420px); align-items: end; column-gap: 48px; }
  .sec-head--row .eyebrow { grid-column: 1 / -1; }
}

/* Выделение-таблетка внутри заголовка (как на текущем сайте) — только hero и один ключевой H2 */
.hl { padding: 0 .24em .02em; border-radius: var(--r-pill); -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--hl, var(--yellow)); }
.hl--apple { --hl: var(--apple); }
.hl--pink { --hl: var(--pink); }
.hl--coral { --hl: var(--coral); color: var(--white); }
.hl--purple { --hl: var(--purple); color: var(--white); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; letter-spacing: .02em; line-height: 1.3; background: var(--tag, var(--paper)); color: var(--ink); white-space: nowrap; }
.tag--yellow { --tag: var(--yellow); }
.tag--apple { --tag: var(--apple); }
.tag--coral { --tag: var(--coral-soft); }
.tag--purple { --tag: var(--purple-soft); color: var(--purple-ink); }
.tag--ink { --tag: var(--ink); color: var(--paper); }
/* ================= Кнопки ================= */
.btn {
  --sh: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill);
  font: 500 16px/1.1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sh); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sh); transition-duration: .08s; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translate(2px, -2px); }
.btn--lime { background: var(--apple); color: var(--ink); --sh: var(--apple-shade); }
.btn--purple { background: var(--purple-deep); color: var(--white); font-weight: 700; --sh: color-mix(in oklab, var(--purple-deep) 60%, var(--ink)); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); background: var(--purple-soft); }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .i { animation: spin .8s linear infinite; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--purple-ink); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s var(--ease); }
.link:hover { background-size: 100% 1.5px; }

/* ================= Шапка ================= */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in oklab, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { flex: none; display: block; border-radius: var(--r-sm); }
.logo img { width: 80px; height: 34px; }
@media (min-width: 768px) { .logo img { width: 104px; height: 44px; } }

.nav { display: none; margin-left: 24px; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease); }
.nav-link:hover, .has-menu:focus-within > .nav-link { background: var(--purple-soft); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--purple); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: var(--z-menu); min-width: 320px;
  display: grid; gap: 2px; padding: 8px; border-radius: var(--r-md); background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px var(--shadow-purple);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .14s var(--ease), transform .14s var(--ease), visibility 0s .14s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.has-menu:hover .chev, .has-menu.is-open .chev { transform: rotate(180deg); }
.submenu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; transition: background-color .2s var(--ease); }
.submenu a:hover { background: var(--paper); }
.submenu small { color: var(--ink-2); font-size: 13px; white-space: nowrap; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-phone, .header-login { display: none; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-phone:hover, .header-login:hover { background: var(--purple-soft); }
.header-cta { display: none; }

/* Мобильное меню на <details> */
.mnav { position: static; }
.mnav > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); cursor: pointer; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary:hover { background: var(--purple-soft); }
.burger { width: 22px; height: 14px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.mnav[open] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mnav[open] .burger span:nth-child(2) { opacity: 0; }
.mnav[open] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav-panel { position: absolute; left: 0; right: 0; top: var(--header-h); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 20px var(--gutter) 32px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px var(--shadow-purple); animation: dropIn .2s var(--ease); }
.mnav-group + .mnav-group { margin-top: 20px; }
.mnav-title { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.mnav-panel a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.mnav-panel .btn { margin-top: 24px; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 768px) { .header-login { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .mnav { display: none; }
}
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

/* ================= Hero (главная) ================= */
.hero { padding-block: clamp(28px, 4.5vw, 56px) var(--sp-section); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); column-gap: clamp(32px, 4vw, 64px); } }

.hero-title { font-size: clamp(22px, 6.3vw, 50px); line-height: 1.24; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .hero-title { font-size: min(3.5vw, 50px); } }
.ht-main { display: flex; flex-direction: column; align-items: flex-start; gap: .2em; }
.ht-line { display: block; line-height: 1.24; padding-bottom: .04em; }
.ht-main, .ht-for { animation: fadeUp .8s var(--ease) both; }
.ht-for { display: block; animation: fadeUp .8s var(--ease) both; }
.ht-for { margin-top: .45em; font-size: max(.5em, 16px); line-height: 1.3; letter-spacing: -0.01em; animation-delay: .12s; }
/* Фирменные таблетки в H1: не больше двух */
.tp { position: relative; display: inline-block; padding: 0 .3em .04em; border-radius: var(--r-pill); line-height: 1.24; white-space: nowrap; }
.tp--yellow { background: var(--yellow); }
.tp--purple { padding-right: 1.45em; overflow: hidden; background: var(--purple); color: var(--white); }
.tp--purple::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1.15em; background: var(--apple); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, .34em 50%); animation: tailIn 1s .35s var(--ease) both; }

.hero-sub { margin-top: clamp(20px, 2vw, 24px); max-width: 56ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-2); animation: fadeUp .8s .2s var(--ease) both; }

.hero-facts { display: grid; margin-top: clamp(20px, 2vw, 24px); font-size: 15px; line-height: 1.45; animation: fadeUp .8s .28s var(--ease) both; }
.hero-facts li { padding-block: 8px; }
.hero-facts li + li { border-top: 1px solid var(--line); }
.hero-facts b { font-weight: 500; }
.hero-facts span { color: var(--ink-2); }
@media (min-width: 640px) {
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; }
  .hero-facts li { display: grid; align-content: start; gap: 4px; padding: 0 20px; max-width: 24ch; }
  .hero-facts li + li { border-top: 0; border-left: 1px solid var(--line); }
  .hero-facts li:first-child { padding-left: 0; }
  .hero-facts b { font-family: var(--font-display); font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
  .hero-facts span { font-size: 14px; }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.4vw, 32px); animation: fadeUp .8s .36s var(--ease) both; }
.hero-cta .btn { flex: 1 1 220px; }
@media (max-width: 559px) { .hero-cta .btn { min-height: 48px; } }
@media (min-width: 560px) { .hero-cta .btn { flex: 0 0 auto; } }

/* Графика: оригинальный маскот на геометрии букв логотипа + ярлыки направлений */
.hero-art { position: relative; width: min(100%, 460px); margin-inline: auto; }
@media (min-width: 1024px) { .hero-art { width: 100%; max-width: 520px; margin-inline: auto 0; } }
.hero-stage { position: relative; aspect-ratio: 520 / 380; }
.hero-geo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.geo-o { fill: var(--purple-soft); transform-box: fill-box; transform-origin: center; animation: geoIn 1s .1s var(--ease) both; }
.geo-c { fill: var(--coral); animation: pillIn .9s .3s var(--ease) both; }
.geo-d { fill: var(--apple); display: none; animation: geoSlide .9s .4s var(--ease) both; }
.hero-art .cat { position: absolute; top: 0; right: 0; width: 78%; animation: bob 7s ease-in-out infinite; }

.hero-tags { display: grid; gap: 8px; margin-top: 16px; }
.hero-tags li { animation: fadeUp .7s var(--ease) both; animation-delay: .5s; }
.hero-tags li:nth-child(2) { animation-delay: .58s; }
.hero-tags li:nth-child(3) { animation-delay: .66s; }
.tag-card { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 20px 8px 12px; border-radius: var(--r-pill); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 14px 28px -22px var(--shadow-purple); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tag-card:hover { transform: translateX(4px); box-shadow: 0 0 0 1px var(--purple), 0 14px 28px -18px var(--shadow-purple); }
.tag-card b { display: block; font-size: 15px; line-height: 1.3; font-weight: 500; }
.tag-card small { display: block; font-size: 13px; line-height: 1.35; letter-spacing: .01em; color: var(--ink-2); }
.lg { flex: none; width: 32px; height: 30px; fill: currentColor; }
.lg--coral { color: var(--coral); }
.lg--purple { color: var(--purple); }
.lg--apple { color: var(--apple); }

@media (min-width: 1024px) {
  .hero-stage { aspect-ratio: 520 / 520; }
  .geo-d { display: inline; }
  .hero-tags { position: absolute; left: 0; bottom: 0; margin: 0; justify-items: start; }
  .tag-card { display: inline-flex; }
}

/* ================= Блок «Что изменилось в 2026» ================= */
.news-grid { display: grid; gap: var(--gap-card); }
@media (min-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
.news-card { display: flex; flex-direction: column; gap: 20px; padding: var(--pad-card); border-radius: var(--r-xl); }
.news-card--social { background: var(--coral-soft); }
.news-card--history { background: var(--purple-soft); }
.news-kicker { font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.news-card h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
.news-card p { color: var(--ink-2); }
.news-card .link { margin-top: auto; }

.grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.grade { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; aspect-ratio: 1 / 1.15; border-radius: 14px; background: var(--white); }
.grade b { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 3vw, 30px); line-height: 1; }
.grade small { font-size: 11px; line-height: 1.2; letter-spacing: .01em; color: var(--ink-2); text-align: center; padding-inline: 2px; }
.grade--none { background: transparent; border: 1.5px dashed var(--line); }
.grade--none b { color: var(--ink-2); }
.grade--off b { color: var(--ink-2); }
.grade--off b { position: relative; }
.grade--off b::after { content: ""; position: absolute; left: -.22em; right: -.22em; top: 54%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--coral); transform: rotate(-14deg) scaleX(0); transform-origin: center; transition: transform .5s var(--ease); transition-delay: var(--d, .2s); }
.grade--off.is-new { box-shadow: inset 0 0 0 2px var(--coral); }
.is-in .grade--off b::after, html:not(.js) .grade--off b::after { transform: rotate(-14deg) scaleX(1); }
.grade--on { background: var(--apple); }
.grade--on small { color: var(--ink); font-weight: 500; }

.tl { display: grid; }
.tl li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding-bottom: 18px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 2px; background: color-mix(in oklab, var(--purple) 35%, var(--white)); }
.tl li:last-child::before { display: none; }
.tl-dot { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--purple); }
.tl li:last-child .tl-dot { background: var(--purple); box-shadow: 0 0 0 5px color-mix(in oklab, var(--purple) 22%, transparent); }
.tl time { display: block; font-family: var(--font-display); font-size: 15px; line-height: 1.3; }
.tl p { font-size: 15px; line-height: 1.5; margin-top: 4px; }

.who { margin-top: var(--gap-card); padding: var(--pad-card); border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 16px; }
@media (min-width: 960px) { .who { grid-template-columns: 200px 1fr; align-items: center; gap: 24px; } }
.who-list { display: grid; gap: 12px; }
@media (min-width: 720px) { .who-list { grid-template-columns: repeat(3, 1fr); } }
.who-item { position: relative; display: grid; gap: 6px; height: 100%; padding: 16px 48px 16px 16px; border-radius: var(--r-md); background: var(--paper); text-decoration: none; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.who-item:hover { background: var(--purple-soft); transform: translateY(-2px); }
.who-item b { font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.25; }
.who-item span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.who-item .i { position: absolute; right: 16px; top: 16px; color: var(--purple-ink); }
.sources { display: grid; gap: 4px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--ink-2); max-width: none; }
.sources b { font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.sources span { max-width: 96ch; }
@media (min-width: 900px) { .sources { grid-template-columns: 120px 1fr; column-gap: 24px; } }

/* ================= Направления (bento) ================= */
.dir-group + .dir-group { margin-top: var(--sp-block); }
.dir-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.dir-head h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
.bento { display: grid; gap: var(--gap-card); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .bento--4 { grid-template-columns: repeat(4, 1fr); }
  .prog--feature { grid-column: span 2; grid-row: span 2; }
  .prog--wide { grid-column: 1 / -1; }
}
@media (min-width: 720px) and (max-width: 1099px) { .prog--feature, .prog--wide { grid-column: 1 / -1; } }
/* Мобильная карусель карточек */
@media (max-width: 719px) {
  .bento--scroll { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .bento--scroll::-webkit-scrollbar { display: none; }
  .bento--scroll > * { scroll-snap-align: start; }
}

.prog { position: relative; display: flex; flex-direction: column; gap: 12px; padding: var(--pad-card); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.prog:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -26px var(--shadow-purple); }
.prog :is(h3, h4) { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.25; letter-spacing: -0.01em; }
.prog :is(h3, h4) a { text-decoration: none; }
.prog :is(h3, h4) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.prog :is(h3, h4) a:focus-visible { outline: none; }
.prog:has(:is(h3, h4) a:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
.prog p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.prog-top { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.prog-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background-color .25s var(--ease), transform .25s var(--ease); }
.prog:hover .prog-go { background: var(--apple); transform: rotate(45deg); }

.prog--feature { background: var(--purple-deep); color: var(--white); box-shadow: none; overflow: hidden; }
.prog--feature h4 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; max-width: 14ch; }
.prog--feature p { color: color-mix(in oklab, var(--white) 86%, var(--purple-deep)); font-size: 16px; line-height: 1.6; max-width: 40ch; }
.prog--feature .prog-meta { border-color: color-mix(in oklab, var(--white) 30%, transparent); color: color-mix(in oklab, var(--white) 86%, var(--purple-deep)); }
.prog--feature .prog-go { background: var(--apple); }
.prog--feature .feature-checks-line { font-size: 15px; line-height: 1.55; color: var(--white); }
.feature-cat { position: absolute; right: -40px; bottom: 56px; width: 180px; opacity: .95; transform: rotate(-8deg); pointer-events: none; display: none; }
@media (min-width: 1100px) { .feature-cat { display: block; } }

.prog--wide { background: var(--yellow-soft); box-shadow: none; }
@media (min-width: 900px) {
  .prog--wide { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
  .prog--wide .prog-meta { margin: 0; padding: 0; border: 0; }
  .prog--wide .prog-body { display: grid; gap: 6px; }
}

.code-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }
.code-ico--py { background: var(--coral); color: var(--ink); }
.code-ico--js { background: var(--yellow); color: var(--ink); }
.code-ico--cpp { background: var(--purple-deep); color: var(--white); }
.code-ico--ps { background: var(--apple); color: var(--ink); }
.code-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--gap-card); }

/* ================= Как проходит обучение ================= */
.learn-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) {
  .learn-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .learn-mock { position: sticky; top: calc(var(--header-h) + 24px); }
}
.lms-shot { margin: 0; }
.lms-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 40px 64px -40px var(--shadow-purple); }
.lms-shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* Шаги обучения — нумерованный список без иконок */
.steps { counter-reset: st; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; border-top: 0; }
.steps li::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-family: var(--font-display); font-size: 15px; line-height: 1.6; color: var(--purple-ink); }
.steps h3 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.25; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ================= Цены ================= */
.price-grid { display: grid; gap: var(--gap-card); }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: var(--pad-card); border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.plan--group { background: var(--purple-soft); box-shadow: none; }
.plan--group .plan-head { padding-right: 88px; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-head h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.015em; }
.plan-head p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.price { display: grid; gap: 6px; }
.price-old { font-size: 18px; line-height: 1.3; color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.price-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.price-now strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-now span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.price-after { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.plan-list { display: grid; }
.plan-list li { padding: 10px 0; border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); font-size: 15px; line-height: 1.45; }
.plan .btn { margin-top: auto; }
.plan-shared { margin-top: 20px; font-size: 15px; line-height: 1.55; }
.sale-sticker { position: absolute; top: -22px; right: 18px; z-index: 2; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); text-align: center; font-family: var(--font-display); font-size: 12px; line-height: 1.15; transform: rotate(-12deg); box-shadow: 0 10px 20px -12px color-mix(in oklab, var(--ink) 40%, transparent); }
.sale-sticker b { display: block; font-weight: 500; font-size: 26px; letter-spacing: -0.03em; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: none; }
.pay-row span { display: inline-flex; align-items: center; gap: 6px; }
.pay-row b { color: var(--ink); font-weight: 500; }

/* ================= Преподаватели ================= */
.team-grid { display: grid; gap: var(--gap-card); }
@media (min-width: 900px) {
  .team-grid { grid-template-columns: 1.15fr 1fr; }
  .team-grid:has(> :nth-child(3)) .person--lead { grid-row: span 2; }
}
.person { display: flex; flex-direction: column; gap: 16px; padding: var(--pad-card); border-radius: var(--r-lg); background: var(--paper); }
@media (min-width: 600px) { .person:not(.person--lead) { flex-direction: row; align-items: flex-start; gap: 24px; } }
.person-photo { flex: none; width: 112px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bgc, var(--yellow)); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-photo--initials { display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 36px; letter-spacing: -0.02em; color: var(--white); }
.person-photo--initials[style*="yellow"], .person-photo--initials[style*="apple"] { color: var(--ink); }
.person h3 { font-size: 20px; line-height: 1.25; }
.person-role { font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-top: 6px; }
.person-text { font-size: 15px; line-height: 1.55; margin-top: 12px; max-width: 52ch; }
.person--lead { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.person--lead .person-photo { width: clamp(160px, 20vw, 200px); border-radius: 50% 50% 50% var(--r-sm); --bgc: var(--apple); }
.person--lead h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; }
.person-quote { color: var(--ink-2); line-height: 1.6; max-width: 54ch; }
.facts-list { display: grid; }
.facts-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.facts-list li:last-child { padding-bottom: 0; }

/* ================= Полоса доверия: сертификат + реквизиты ================= */
.trust-strip { display: grid; gap: 20px 32px; margin-top: var(--gap-card); padding: var(--pad-card); border-radius: var(--r-lg); background: var(--apple-soft); }
@media (min-width: 960px) { .trust-strip { grid-template-columns: 1.4fr 1fr auto; align-items: center; } }
.trust-main { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 600px) { .trust-main { flex-direction: row; align-items: center; } }
.trust-thumb { flex: none; width: clamp(148px, 12vw, 160px); border-radius: 6px; background: var(--white); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent), 0 14px 24px -14px color-mix(in oklab, var(--apple-shade) 70%, transparent); transition: transform .3s var(--ease); }
.trust-strip:hover .trust-thumb { transform: translateY(-3px); }
.trust-strip h3 { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.25; }
.trust-strip p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.req { display: grid; gap: 4px; font-size: 14px; line-height: 1.45; }
.req div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; }
.req dt { color: var(--ink-2); }

/* ================= FAQ ================= */
.faq-grid { display: grid; gap: var(--sp-head); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-side { display: grid; gap: 16px; justify-items: start; }
.faq-side .btn { margin-top: 8px; }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 500; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.35; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq-ico { background: var(--purple-soft); }
.faq-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq-ico .i { width: 16px; height: 16px; }
.faq details[open] .faq-ico { transform: rotate(45deg); background: var(--apple); box-shadow: none; }
.faq-a { padding: 0 48px 24px 0; color: var(--ink-2); line-height: 1.6; }
.faq-a p + p { margin-top: 10px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ================= Форма заявки ================= */
.lead-grid { display: grid; gap: var(--sp-block); }
@media (min-width: 1024px) { .lead-grid { grid-template-columns: 1fr minmax(420px, 520px); align-items: center; } }
.lead-intro { display: grid; gap: 16px; }
.lead-steps { display: grid; gap: 12px; margin-top: 12px; counter-reset: s; }
.lead-steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.lead-steps li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); font-family: var(--font-display); font-size: 15px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.contacts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .2s var(--ease); }
.contacts a:hover { background: var(--purple-soft); }

.form-card { position: relative; padding: var(--pad-card); border-radius: var(--r-xl); background: var(--apple); }
.form-card h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; margin-bottom: 6px; }
.form-card > p { font-size: 15px; margin-bottom: 20px; }
.form-cat { position: absolute; right: -10px; top: -64px; width: 120px; transform: rotate(10deg); pointer-events: none; }
@media (max-width: 559px) { .form-cat { width: 84px; top: -44px; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { font-weight: 400; color: color-mix(in oklab, var(--ink) 80%, var(--apple)); }
.field input, .field select { width: 100%; height: 54px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--r-pill); background: var(--white); font: 400 16px var(--font-body); color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field select { padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%233E3B46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder { color: var(--ink-2); }
.field input:hover, .field select:hover { border-color: color-mix(in oklab, var(--ink) 25%, transparent); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 14%, transparent); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--coral); }
.field-err { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.field-err::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); color: var(--white); font-size: 11px; font-weight: 700; }
.field input:user-invalid ~ .field-err, .field select:user-invalid ~ .field-err { display: flex; }
.form-row { display: grid; column-gap: 12px; }
@media (min-width: 560px) { .form-row { grid-template-columns: minmax(130px, .7fr) 1.3fr; } }
.consent { margin-top: 12px; font-size: 12px; line-height: 1.45; }
.form-status { margin-top: 10px; font-size: 13px; min-height: 1em; }

/* ================= Подвал ================= */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 112px; background: var(--ink); color: color-mix(in oklab, var(--paper) 80%, var(--ink)); font-size: 15px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-logo { width: 110px; height: 47px; color: var(--paper); }
.foot-title { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); }
.foot-links { display: grid; gap: 8px; }
.foot-links a { text-decoration: none; transition: color .2s var(--ease); }
.foot-links a:hover { color: var(--apple); }
.foot-about p + p { margin-top: 10px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--paper) 25%, transparent); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.socials a:hover { background: var(--apple); color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in oklab, var(--paper) 16%, transparent); font-size: 13px; }

/* Липкая CTA на мобильных */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: var(--z-sticky); display: flex; gap: 8px; padding: 8px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--white) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line), 0 16px 32px -16px var(--shadow-purple); transform: translateY(calc(100% + 24px)); transition: transform .2s var(--ease); }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 48px; }
.sticky-call { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ================= Посадочная экзамена ================= */
.pill { position: relative; display: inline-flex; align-items: center; min-height: 1.86em; padding: .3em .62em .34em; border-radius: var(--r-pill); white-space: nowrap; }
.pill--yellow { background: var(--yellow); color: var(--ink); z-index: 1; }
.pill-arrow { display: grid; place-items: center; width: 1.9em; padding-right: .5em; margin-right: -.55em; background: var(--coral); color: var(--white); border-radius: .5em 0 0 .5em; }
.pill-arrow .i { width: .78em; height: .78em; stroke-width: 2.4; }
.crumbs { padding-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.exam-hero { padding-block: clamp(32px, 4vw, 56px) var(--sp-section); }
.exam-hero-grid { display: grid; gap: clamp(56px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .exam-hero-grid { grid-template-columns: 1.2fr .8fr; } }
.badge-pill { display: inline-flex; align-items: stretch; font-family: var(--font-display); font-size: clamp(14px, 1.5vw, 17px); animation: pillIn .8s var(--ease) both; }
.badge-pill .pill-arrow { width: 2.4em; }
.badge-pill .pill { min-height: 2.4em; padding-inline: 1em; }
.hero-note { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); animation: fadeUp .8s .44s var(--ease) both; }
.hero-note b { color: var(--ink); font-weight: 500; }

/* Быстрая заявка сразу под первым экраном: имя и телефон, без класса и направления */
.quick { padding-bottom: var(--sp-section); }
.exam-hero + .quick { margin-top: calc(var(--sp-section) / -2); }
.quick-card { display: grid; gap: 20px; padding: var(--pad-card); border-radius: var(--r-xl); background: var(--apple); }
@media (min-width: 1024px) { .quick-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; column-gap: 40px; } }
.quick-title { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.quick-text p { margin-top: 8px; font-size: 15px; line-height: 1.5; }
.quick-form { display: grid; gap: 10px; }
@media (min-width: 640px) { .quick-form { grid-template-columns: 1fr 1fr auto; } .quick-form .form-status, .quick-form .consent { grid-column: 1 / -1; } }
.quick-form input { width: 100%; height: 52px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--r-pill); background: var(--white); font: 400 16px var(--font-body); color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color .2s var(--ease); }
.quick-form input::placeholder { color: var(--ink-2); }
.quick-form input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 14%, transparent); }
.quick-form input:user-invalid { border-color: var(--coral); }
.quick-form .form-status:empty { display: none; }
.quick-form .consent { margin-top: 2px; }

.exam-title { margin-top: 24px; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.14; letter-spacing: -0.025em; animation: fadeUp .8s .1s var(--ease) both; }

.keyfacts { position: relative; padding: var(--pad-card); border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 40px 64px -40px var(--shadow-purple); animation: fadeUp .9s .3s var(--ease) both; }
.keyfacts-cat { position: absolute; right: clamp(-16px, calc(560px - 100vw), 0px); top: -72px; width: 132px; transform: rotate(8deg); animation: bob 7s ease-in-out infinite; }
.keyfacts-title { font-family: var(--font-display); font-size: 18px; line-height: 1.25; margin-bottom: 16px; padding-right: 96px; }
.keyfacts dl { display: grid; }
.keyfacts dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.keyfacts dt { color: var(--ink-2); }
.keyfacts dd { font-weight: 500; }
.keyfacts .stamp { margin-top: 16px; }

/* «Что известно» — разлинованный список фактов, без карточек */
.known-grid { display: grid; column-gap: 40px; counter-reset: kn; }
@media (min-width: 900px) { .known-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .known-grid { grid-template-columns: repeat(3, 1fr); } }
.known { display: grid; grid-template-columns: 36px 1fr; align-content: start; gap: 8px 12px; padding: 24px 0; border-top: 1.5px solid var(--ink); }
.known::before { counter-increment: kn; content: counter(kn, decimal-leading-zero); grid-row: span 3; font-family: var(--font-display); font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.known h3 { font-size: 18px; line-height: 1.25; }
.known p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.known--accent::before { color: var(--purple-ink); }
.checks-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-md); background: var(--yellow-soft); font-size: 15px; line-height: 1.5; }
.notice .i { width: 22px; height: 22px; margin-top: 1px; }

.who-cards { display: grid; gap: var(--gap-card); }
@media (min-width: 900px) { .who-cards { grid-template-columns: 1.3fr 1fr 1fr; } }
.who-card { display: flex; flex-direction: column; gap: 12px; padding: var(--pad-card); border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.who-card .grade-big { font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); line-height: .9; letter-spacing: -0.04em; }
.who-card .grade-big small { font-size: .3em; letter-spacing: 0; margin-left: 6px; }
.who-card h3 { font-size: 20px; line-height: 1.25; }
.who-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.who-card--main { background: var(--purple-deep); color: var(--white); box-shadow: none; }
.who-card--main p { color: color-mix(in oklab, var(--white) 86%, var(--purple-deep)); }
.who-card .link { margin-top: auto; }
.who-card--main .btn { margin-top: auto; align-self: flex-start; }

.modules { display: grid; gap: var(--gap-card); counter-reset: m; }
.module { display: grid; gap: 14px; padding: var(--pad-card); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.module:hover { transform: translateX(4px); box-shadow: 0 0 0 1px var(--line), -6px 0 0 0 var(--c, var(--purple)); }
@media (min-width: 900px) { .module { grid-template-columns: 88px 1fr 1fr; align-items: start; gap: 32px; } }
.module-n { display: grid; place-items: center; width: 64px; height: 44px; border-radius: var(--r-pill); background: var(--c, var(--purple)); font-family: var(--font-display); font-size: 17px; }
.module h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.25; }
.module h3 + p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.module ul { display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.module li { position: relative; padding-left: 18px; }
.module li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--purple)); }
.module[style*="purple-soft"] li::before { background: var(--purple); }
.module[style*="coral-soft"] li::before { background: var(--coral); }

.xlinks { display: grid; gap: var(--gap-card); }
@media (min-width: 900px) { .xlinks { grid-template-columns: repeat(3, 1fr); } }

/* ================= Проверка сертификата (/sertifikat/) ================= */
.cert-hero { padding-block: clamp(32px, 4vw, 56px) var(--sp-section); }
.cert-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 64px; } }
.cert-intro { min-width: 0; }
.cert-title { font-size: clamp(28px, calc(14px + 2.6vw), 42px); line-height: 1.14; letter-spacing: -0.025em; animation: fadeUp .8s var(--ease) both; }
.cert-intro .lead { margin-top: clamp(16px, 2vw, 20px); animation: fadeUp .8s .1s var(--ease) both; }

.check-form { margin-top: clamp(24px, 3vw, 32px); padding: var(--pad-card); border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 40px 64px -40px var(--shadow-purple); animation: fadeUp .8s .2s var(--ease) both; }
.check-form .field { margin: 0; gap: 8px; }
.check-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .check-row { grid-template-columns: minmax(0, 1fr) auto; } }
.check-form .field input { background: var(--paper); border-color: var(--line); font-size: 17px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.check-form .field input::placeholder { letter-spacing: .04em; color: color-mix(in oklab, var(--ink) 50%, var(--paper)); }
.check-form .btn { min-height: 54px; }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.field input[aria-invalid="true"] ~ .field-err, .field:has(input[aria-invalid="true"]) .field-err { display: flex; }
.field-hint { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

.cert-side { display: grid; gap: 16px; min-width: 0; }
.where { margin: 0; padding: var(--pad-card); border-radius: var(--r-xl); background: var(--purple-soft); animation: fadeUp .8s .3s var(--ease) both; }
.where-img { overflow: hidden; border-radius: var(--r-md); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.where-img img { width: 100%; }
.where figcaption { margin-top: 16px; font-size: 15px; line-height: 1.55; max-width: 52ch; }

.cert-result:empty { display: none; }
.res { padding: var(--pad-card); border-radius: var(--r-xl); animation: fadeUp .4s var(--ease) both; }
.res-head { display: flex; align-items: center; gap: 14px; }
.res-head h2 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.01em; }
.res-head h2:focus { outline: none; }
.res-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 20px/1 var(--font-body); }
.res-mark .i { width: 22px; height: 22px; stroke-width: 2.6; }
.res > p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.res > p b { color: var(--ink); font-weight: 500; }
.res-num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.res--ok { background: var(--apple-soft); }
.res--ok .res-mark { background: var(--apple); }
.res--no { background: var(--coral-soft); }
.res--no .res-mark { background: var(--coral); color: var(--white); }
.res--no .res-mark .i { transform: rotate(45deg); }
.res--err { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.res--err .res-mark { background: var(--yellow); }
.res-data { display: grid; margin-top: 20px; }
.res-data div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); font-size: 15px; line-height: 1.45; }
.res-data dt { color: var(--ink-2); }
.res-data dd { font-weight: 500; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.res .res-demo { margin-top: 16px; font-size: 13px; line-height: 1.45; }
.res--loading { display: grid; gap: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.res-loading-t { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.sk { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--paper) 0%, var(--line) 50%, var(--paper) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

.cert-about { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) { .cert-about { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; } }
.cert-shot { margin: 0; }
.cert-shot img { width: 100%; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line), 0 40px 64px -40px var(--shadow-purple); }
.cert-shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ================= Анимации ================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes pillIn { from { opacity: 0; transform: translateX(-28px); } }
@keyframes tailIn { from { transform: translateX(110%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes geoIn { from { opacity: 0; transform: scale(.9); } }
@keyframes geoSlide { from { opacity: 0; transform: translateX(24px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .grade--off b::after { transform: rotate(-14deg) scaleX(1); }
}

/* Документы: оферта, политика, спасибо */
.doc { padding-top: 32px; }
.doc-wrap { max-width: 820px; }
.doc .lead { margin-top: 16px; }
.doc-sec { margin-top: 40px; }
.doc-sec h2 { font-family: var(--font-display, "Unbounded"), sans-serif; font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 12px; }
.doc-sec p, .doc-sec li { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 68ch; }
.doc-sec p + p, .doc-sec p + ul, .doc-sec ul + p { margin-top: 12px; }
.doc-sec ul { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.doc-sec li { position: relative; padding-left: 22px; }
.doc-sec li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--purple, #9067f3); }
.doc-thanks { margin-top: 24px; display: grid; gap: 12px; font-size: 18px; line-height: 1.6; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.doc--short { min-height: calc(100svh - 300px); }

/* Значок языка в карточке «Коротко о курсе» на страницах курсов */
.keyfacts .hero-code-ico { position: absolute; right: 24px; top: -28px; width: 72px; height: 72px; border-radius: 18px; font-size: 24px; transform: rotate(6deg); box-shadow: 0 16px 32px -16px var(--shadow-purple); }

/* ================= Отзывы ================= */
.review-marquee { padding-block: clamp(28px, 4vw, 44px); background: var(--yellow-soft); overflow: hidden; }
.review-marquee-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.review-marquee-head h2 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; }
.review-marquee-head p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.marquee-pause { min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--white); box-shadow: 0 0 0 1px var(--line); font: 500 14px var(--font-body); cursor: pointer; }
.marquee-pause:hover { background: var(--purple-soft); }
.marquee { overflow: hidden; padding-block: 2px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 180s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee-track.is-paused { animation-play-state: paused; }
.marquee-list { display: flex; align-items: stretch; gap: 16px; padding-left: 16px; }
.marquee-list > .quote { width: min(340px, 82vw); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.quote-grid { display: grid; gap: var(--gap-card); align-items: stretch; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: var(--pad-card); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.quote-grid .quote { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.quote-grid .quote:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--purple), 0 14px 28px -18px var(--shadow-purple); }
.stars { margin: 0; font-size: 15px; letter-spacing: .12em; line-height: 1; color: #c48a00; }
.star-off { color: color-mix(in oklab, var(--ink) 22%, var(--paper)); }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.55; }
.quote-by { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.quote-ava { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); font-family: var(--font-display); font-size: 14px; }
.quote:nth-child(5n+2) .quote-ava { background: var(--apple); }
.quote:nth-child(5n+3) .quote-ava { background: var(--pink); }
.quote:nth-child(5n+4) .quote-ava { background: var(--purple-soft); }
.quote:nth-child(5n+5) .quote-ava { background: var(--coral-soft); }
.quote-who { display: grid; gap: 2px; min-width: 0; }
.quote-who b { font-weight: 500; font-size: 15px; }
.quote-meta { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.quote-meta a { color: var(--purple-ink); font-weight: 500; text-decoration: none; }
.quote-meta a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .review-marquee { overflow: visible; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list > .quote { scroll-snap-align: start; }
  .marquee-pause { display: none; }
}
