@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ tokens ============ */
:root {
  --canvas: #f3f0e7;          /* фон прототипа */
  --paper-2: #e9e4d6;
  --surface: #fbfaf6;
  --ink: #14211b;
  --ink-2: #2a352f;
  --muted: #5c675f;
  --rule: #ddd7c9;
  --rule-strong: #c9c1b0;
  --mark: #fada5e;            /* Royal Yellow, RGB 250 218 94 */
  --mark-deep: #e8c53c;
  --mark-soft: #fdf3c9;
  --forest: #13281f;
  --forest-2: #1d3a2d;
  --forest-3: #0d1d16;
  --on-forest: #eef3ef;
  --on-forest-muted: #a5b8ac;
  --on-forest-rule: rgb(238 243 239 / .12);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: 24px;
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow-1: 0 1px 2px rgb(20 33 27 / .05), 0 2px 6px rgb(20 33 27 / .04);
  --shadow-2: 0 2px 4px rgb(20 33 27 / .04), 0 18px 40px -18px rgb(20 33 27 / .28);
  --shadow-3: 0 30px 80px -30px rgb(13 29 22 / .55);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mark-deep); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.is-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--mark); }
[id] { scroll-margin-top: 96px; }
::selection { background: var(--mark); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--mark); padding: 10px 14px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ============ type ============ */
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 15px; font-weight: 500; color: var(--muted);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark-deep); box-shadow: 0 0 0 4px rgb(250 218 94 / .3); }

/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(243 240 231 / .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 10px 30px -22px rgb(20 33 27 / .4); }
.bar {
  width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto;
  min-height: 72px; display: flex; align-items: center; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word { font-weight: 700; font-size: 21px; letter-spacing: -0.045em; }
.nav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: rgb(251 250 246 / .7); box-shadow: inset 0 0 0 1px var(--rule); }
.nav a, .menu__panel a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 7px 14px; border-radius: 999px; color: var(--ink-2);
}
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--forest); color: var(--on-forest); }
.menu__panel a[aria-current="page"] { background: var(--canvas); }

.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 600; font-size: 15px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu__icon, .menu__icon::before, .menu__icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .25s var(--ease-out), background-color .2s ease;
}
.menu__icon::before, .menu__icon::after { content: ""; position: absolute; left: 0; }
.menu__icon::before { top: -5px; }
.menu__icon::after { top: 5px; }
.menu[open] .menu__icon { background: transparent; }
.menu[open] .menu__icon::before { transform: translateY(5px) rotate(45deg); }
.menu[open] .menu__icon::after { transform: translateY(-5px) rotate(-45deg); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  display: grid; gap: 2px; padding: 12px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-3);
}
.menu__panel a:not(.btn) { font-size: 17px; padding: 13px 14px; border-radius: 12px; }
.menu__panel .btn { margin-top: 8px; }

/* ============ buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1.2 var(--font); text-decoration: none; text-align: center; letter-spacing: -0.01em;
  border: 0; cursor: pointer;
  transition: background-color .2s ease, box-shadow .25s ease, transform .2s var(--ease-out), color .2s ease;
}
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--mark {
  background: linear-gradient(180deg, #fde27a, var(--mark) 55%, #f6d14c);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -1px 0 rgb(176 140 20 / .35), 0 1px 2px rgb(120 90 0 / .2), 0 8px 24px -10px rgb(232 197 60 / .9);
}
.btn--mark:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -1px 0 rgb(176 140 20 / .35), 0 2px 4px rgb(120 90 0 / .2), 0 14px 32px -10px rgb(232 197 60 / 1); }
.btn--dark { background: var(--forest); color: var(--on-forest); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 10px 24px -14px rgb(13 29 22 / .9); }
.btn--dark:hover { background: var(--forest-2); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.is-dark .btn--ghost { background: rgb(255 255 255 / .06); color: var(--on-forest); box-shadow: inset 0 0 0 1px rgb(238 243 239 / .22); }
.is-dark .btn--ghost:hover { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(238 243 239 / .5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ext::after {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor; transition: transform .25s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6 5h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6 5h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ext:hover::after { transform: translate(2px, -2px); }

/* ============ dark panels (hero, CTA, author) ============ */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); background: var(--forest); color: var(--on-forest);
}
.panel::before {   /* свечение Royal Yellow */
  content: ""; position: absolute; z-index: -1; inset: -10%;
  background:
    radial-gradient(45% 55% at 85% 10%, rgb(250 218 94 / .22), transparent 70%),
    radial-gradient(45% 55% at 5% 95%, rgb(64 120 92 / .38), transparent 70%),
    linear-gradient(180deg, var(--forest-2), var(--forest) 40%, var(--forest-3));
}
.panel::after {    /* зерно */
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--grain); opacity: .035; pointer-events: none;
}
.is-dark .lead, .is-dark p { color: var(--on-forest-muted); }
.is-dark .demo__text { color: var(--ink); }
.is-dark .demo__prompt { color: var(--on-forest); }
.is-dark .demo__caption { color: var(--muted); }
.is-dark h1, .is-dark h2, .is-dark h3 { color: #fff; }
.is-dark .kicker, .is-dark .crumbs, .is-dark .crumbs a { color: var(--on-forest-muted); }

/* ============ home hero ============ */
.hero { padding-top: 12px; }
.hero .panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 72px 64px; min-height: 620px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); }
.hero .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 16px; height: 16px; flex: none; background: var(--mark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-dark .ticks li { color: var(--on-forest); }

/* Живое демо: ответ нейросети с брендом под маркером — главный образ сайта */
.demo {
  position: relative; margin: 0;
  background: var(--surface); color: var(--ink); border-radius: 26px; padding: 10px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 80px -30px rgb(0 0 0 / .6), 0 0 120px -20px rgb(250 218 94 / .25);
}
.demo__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--canvas); }
.demo__tab {
  flex: 1; min-height: 40px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  font: 600 14px var(--font); color: var(--muted); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.demo__tab:hover { color: var(--ink); }
.demo__tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--rule); }
.demo__body { padding: 22px 16px 14px; min-height: 318px; display: flex; flex-direction: column; }
.demo__prompt {
  align-self: flex-end; max-width: 88%; margin: 0 0 18px;
  background: var(--forest); color: var(--on-forest); border-radius: 18px 18px 6px 18px; padding: 12px 16px;
  font-size: 15px; line-height: 1.45;
}
.demo__answer { display: flex; gap: 12px; }
.demo__avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--forest); display: grid; place-items: center; }
.demo__avatar::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--mark); transform: rotate(45deg); }
.demo__out { position: relative; flex: 1; min-height: 120px; }
.demo__text { margin: 3px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.demo__text mark {
  color: inherit; padding: 1px 4px; border-radius: 5px; font-weight: 600;
  background: linear-gradient(var(--mark), var(--mark)) left / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.demo__typing { position: absolute; left: 0; top: 10px; display: none; gap: 5px; }
.demo__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.demo__src {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted);
}
.demo__src span { background: var(--canvas); border-radius: 999px; padding: 3px 10px; }
.demo__src span:first-child { background: none; padding-left: 0; }
.demo__caption { margin: 8px 8px 2px; font-size: 12px; color: var(--muted); }

/* ============ marquee ============ */
.marquee { padding: 40px 0 0; }
.marquee__label { text-align: center; font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.marquee__track { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__list { will-change: transform; display: flex; gap: 14px; width: max-content; margin: 0; padding: 4px 0; list-style: none; }
.marquee__list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.marquee__list li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--forest); transform: rotate(45deg); }
.marquee__list li:nth-child(3n+2)::before { background: var(--mark-deep); }

/* ============ proof numbers ============ */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.proof li { padding: 8px 28px; }
.proof li:first-child { padding-left: 0; }
.proof li + li { border-left: 1px solid var(--rule); }
.proof b { display: block; font-size: clamp(34px, 3.6vw, 50px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 24ch; }

/* ============ sections ============ */
.section { padding: 112px 0 0; }
main > :last-child:not(.cta) { margin-bottom: 120px; }
.section__head { max-width: 46rem; margin-bottom: 44px; }
.section__head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 46rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a { color: inherit; }
.page-head { position: relative; padding: 64px 0 8px; }
.page-head .lead { margin-top: 20px; }
.page-head > .btn-row { margin-top: 32px; }

/* ============ course cards ============ */
.courses { display: grid; gap: 18px; }
.course {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px;
  background: var(--surface); border-radius: var(--r-lg); padding: 36px;
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1);
}
.course__by { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.course h3 { font-size: clamp(23px, 2.3vw, 30px); letter-spacing: -0.03em; }
.course h3 a { text-decoration: none; }
.course__text { margin: 12px 0 0; max-width: 60ch; color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 12px; border-radius: 999px; vertical-align: 5px;
  background: var(--mark); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
}
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 22px 0 0; font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.course__side { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; padding-left: 36px; border-left: 1px solid var(--rule); }
.price { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
.price s { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; text-decoration-thickness: 1.5px; }
.price small { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); line-height: 1.4; }
.save { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--mark-soft); color: #6b5300; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.course__side .btn { width: 100%; }

.course--flag { background: var(--forest); color: var(--on-forest); box-shadow: var(--shadow-3); overflow: hidden; isolation: isolate; }
.course--flag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgb(250 218 94 / .16), transparent 65%), linear-gradient(160deg, var(--forest-2), var(--forest) 50%, var(--forest-3)); }
.course--flag h3 { color: #fff; }
.course--flag .course__text, .course--flag .spec dd { color: var(--on-forest); }
.course--flag .course__by, .course--flag .spec dt, .course--flag .price s, .course--flag .price small { color: var(--on-forest-muted); }
.course--flag .course__side { border-left-color: var(--on-forest-rule); }
.course--flag .save { background: rgb(250 218 94 / .16); color: var(--mark); }
.course--flag .btn--ghost { background: rgb(255 255 255 / .06); color: var(--on-forest); box-shadow: inset 0 0 0 1px rgb(238 243 239 / .22); }
.course--flag :focus-visible { outline-color: var(--mark); }

/* Карточки со ссылкой кликабельны целиком: ссылка заголовка растянута на карточку */
.course h3 a::before, .tile--link h3 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.course .btn { position: relative; z-index: 2; }
.course h3 a:focus-visible, .tile--link h3 a:focus-visible { outline: none; }
.course:has(h3 a:focus-visible), .tile--link:has(h3 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Подсветка под курсором (координаты --mx/--my ставит site.js) */
.glow { isolation: isolate; }
.glow > .glow__spot { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(250 218 94 / .18), transparent 60%); }
.glow:hover > .glow__spot { opacity: 1; }

/* ============ bento ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento > .is-wide { grid-column: span 4; }
.cell {
  position: relative; display: flex; flex-direction: column; gap: 24px; overflow: hidden;
  background: var(--surface); border-radius: var(--r-lg); padding: 32px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1);
}
.cell h3 { font-size: 23px; letter-spacing: -0.03em; }
.cell p { margin: 10px 0 0; color: var(--muted); }
.cell__viz { margin-top: auto; }
.cell.is-dark { background: var(--forest); color: var(--on-forest); box-shadow: var(--shadow-3); }
.cell.is-dark::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 70% at 100% 0%, rgb(250 218 94 / .14), transparent 70%); }
.cell > * { position: relative; }
.bars { display: grid; grid-template-columns: max-content 1fr 3.2em; gap: 12px 14px; align-items: center; margin: 0; font-size: 14px; }
.bars dt { color: var(--on-forest-muted); }
.bars dd { margin: 0; height: 12px; border-radius: 999px; background: rgb(238 243 239 / .1); overflow: hidden; }
.bars dd span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--on-forest-muted); transform-origin: left; }
.bars dd.is-you span { background: var(--mark); }
.bars .val { margin: 0; height: auto; background: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--on-forest); text-align: right; }
.bars .is-you-label { color: var(--mark); font-weight: 600; }
.viz-note { margin: 14px 0 0; font-size: 12px; color: var(--on-forest-muted); }
.checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--canvas); }
.checks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 7px; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fada5e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ring { --p: 100; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mark-deep) calc(var(--p) * 1%), var(--paper-2) 0); }
.ring b { display: grid; place-content: center; width: 102px; height: 102px; border-radius: 50%; background: var(--surface); font-size: 34px; letter-spacing: -0.04em; line-height: 1; text-align: center; }
.ring b small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pyramid { display: grid; gap: 6px; justify-items: center; font-size: 13px; font-weight: 600; }
.pyramid span { display: block; padding: 10px 0; border-radius: 10px; text-align: center; }
.pyramid span:nth-child(1) { width: 46%; background: var(--mark); }
.pyramid span:nth-child(2) { width: 72%; background: var(--mark-soft); }
.pyramid span:nth-child(3) { width: 100%; background: var(--canvas); }

/* ============ tiles ============ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; background: var(--surface); border-radius: var(--r-md); padding: 28px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); display: flex; flex-direction: column; }
.tile p { margin: 10px 0 0; color: var(--muted); }
.tile h2 { font-size: 24px; letter-spacing: -0.03em; }
.tile h3 a { text-decoration: none; }
.tile .btn-row { margin-top: auto; padding-top: 22px; position: relative; z-index: 2; }
.tile__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--forest); color: var(--mark); display: grid; place-items: center; margin-bottom: 20px; }
.tile__icon svg { width: 22px; height: 22px; }
.tile__more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.tile__more::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease-out); }
.tile--link:hover .tile__more::after { transform: translateX(4px) rotate(45deg); }

/* Нумерация — только у настоящих последовательностей */
.steps { counter-reset: step; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; position: relative; padding: 28px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px;
  border-radius: 50%; background: var(--forest); color: var(--mark); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 6px var(--mark-soft);
}
.steps p { margin: 10px 0 0; color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { display: flex; gap: 16px; background: var(--surface); border-radius: var(--r-md); padding: 24px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); }
.person__ava {
  width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--mark); font-weight: 700; font-size: 17px; box-shadow: 0 0 0 4px var(--mark-soft);
}
.person h3 { font-size: 18px; }
.person p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ============ author spotlight ============ */
.author { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-2); }
.author__main { padding: 52px; }
.author__ava { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--mark); font-size: 28px; font-weight: 700; margin-bottom: 26px; box-shadow: 0 0 0 6px var(--mark-soft); }
.author__main h3 { font-size: 32px; letter-spacing: -0.035em; }
.author__role { margin: 6px 0 20px; color: var(--muted); }
.author__main p:not(.author__role) { color: var(--ink-2); }
.author .panel { border-radius: 0; display: grid; align-content: center; }
.author__stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; }
.author__stats li { padding: 40px 36px; }
.author__stats li:nth-child(even) { border-left: 1px solid var(--on-forest-rule); }
.author__stats li:nth-child(n+3) { border-top: 1px solid var(--on-forest-rule); }
.author__stats b { display: block; font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.045em; line-height: 1.05; color: var(--mark); font-variant-numeric: tabular-nums; }
.author__stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--on-forest-muted); }

/* ============ accordions ============ */
.acc { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); overflow: hidden; }
.acc details { position: relative; }
.acc details + details { border-top: 1px solid var(--rule); }
.acc details::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--mark-deep); transform: scaleY(0); transition: transform .35s var(--ease-out);
}
.acc details[open]::before { transform: scaleY(1); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 22px 24px 22px 28px; font-weight: 600; font-size: 18px; line-height: 1.4; letter-spacing: -0.01em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .meta { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.acc summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314211b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease-out), background-color .2s ease;
}
.acc summary:not(:has(.meta))::after { margin-left: auto; }
.acc summary:hover::after { background-color: var(--paper-2); }
.acc details[open] > summary::after { transform: rotate(180deg); background-color: var(--mark); }
.acc details > :not(summary) { margin: 0; padding: 0 76px 24px 28px; color: var(--ink-2); max-width: calc(72ch + 104px); }
.acc details > ol { padding-left: 50px; }
.acc ol li + li { margin-top: 8px; }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.faq__aside { position: sticky; top: 104px; }
.faq__aside p { margin: 16px 0 24px; color: var(--muted); font-size: 18px; }

/* ============ course page ============ */
.course-hero { padding-top: 12px; }
.course-hero .panel { padding: 56px 56px 52px; }
.course-hero .panel > * { max-width: 680px; }
.course-hero .lead { margin-top: 20px; }
.facts-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts-row li { padding: 12px 18px; border-radius: 16px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--on-forest-rule); font-size: 14px; color: var(--on-forest-muted); line-height: 1.35; }
.facts-row b { display: block; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.engines { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.engines li { padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 14px; font-weight: 500; }
.is-dark .engines li { background: rgb(255 255 255 / .06); color: var(--on-forest); box-shadow: inset 0 0 0 1px var(--on-forest-rule); }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.course-main { min-width: 0; }
.course-main > .section:first-child { padding-top: 80px; }
.course-aside { position: sticky; top: 92px; margin-top: -260px; display: grid; gap: 14px; z-index: 2; }
.tariff { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 28px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-2); }
.tariff--main { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-3); }
.tariff__name { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; font-size: 17px; }
.tariff__name .badge { margin: 0; vertical-align: 0; }
.tariff ul { margin: 18px 0 22px; padding: 0; list-style: none; font-size: 15px; display: grid; gap: 9px; }
.tariff li { display: flex; gap: 10px; color: var(--ink-2); line-height: 1.45; }
.tariff li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; flex: none; border-radius: 50%; background: var(--mark-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314211b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5 7 11.5 12 5.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tariff .btn { width: 100%; }
.tariff__fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.note {
  display: flex; gap: 12px; margin: 0; padding: 16px 18px;
  background: var(--mark-soft); border-radius: var(--r-md); font-size: 14px; line-height: 1.5; color: #4d4111;
}
.note::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--mark); display: grid; place-items: center; font: 700 12px/1 var(--font); margin-top: 1px; }

/* ============ table ============ */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; table-layout: fixed; }
th, td { text-align: left; vertical-align: top; padding: 18px 20px; }
thead th { font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--rule); }
tbody tr + tr > * { border-top: 1px solid var(--rule); }
tbody th { font-weight: 600; width: 22%; color: var(--muted); }
.col-flag { background: var(--mark-soft); }
thead .col-flag { background: var(--mark); }
.table-wrap--plain table { min-width: 0; table-layout: auto; }
.table-note { margin: 16px 0 0; font-size: 15px; }

/* ============ filters ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.chip {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: 500 15px var(--font);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); box-shadow: none; }
.empty { padding: 28px; border-radius: var(--r-md); border: 1px dashed var(--rule-strong); color: var(--muted); }

/* ============ roles (komu) ============ */
.roles { display: grid; gap: 18px; }
.role { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; padding: 36px; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); }
.role h2 { font-size: clamp(23px, 2.3vw, 28px); letter-spacing: -0.03em; }
.role p { margin: 0 0 22px; max-width: 66ch; color: var(--ink-2); }

.doc { padding-top: 40px; max-width: 70ch; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; }
.doc h2:first-child { margin-top: 0; }

/* ============ final CTA ============ */
.cta { margin-top: 120px; }
.cta .panel { padding: 96px 64px; text-align: center; }
.cta h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 20px auto 0; max-width: 52ch; font-size: 19px; }
.cta .btn-row { justify-content: center; margin-top: 36px; }

/* ============ footer ============ */
.site-footer { margin-top: 24px; padding: 72px 0 36px; background: var(--forest-3); color: var(--on-forest); }
.site-footer .logo__mark path { fill: var(--mark); }
.site-footer .logo__mark rect { fill: var(--forest-3); opacity: 1; }
.site-footer .logo__word { color: #fff; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot .muted { margin: 16px 0 0; font-size: 15px; max-width: 42ch; color: var(--on-forest-muted); }
.foot__title { margin: 0 0 14px; font-weight: 600; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.foot li + li { margin-top: 10px; }
.foot ul a { text-decoration: none; color: var(--on-forest-muted); transition: color .2s ease; }
.foot ul a:hover { color: var(--mark); }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--on-forest-rule); font-size: 14px; color: var(--on-forest-muted); }

.sticky-cta { display: none; }

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .course-layout { grid-template-columns: 1fr; gap: 0; }
  .course-aside { position: static; margin-top: 0; padding-top: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
  .course-aside > .note { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; }
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .bar { position: relative; }
  .hero .panel { grid-template-columns: 1fr; padding: 48px 32px 32px; gap: 40px; min-height: 0; }
  .course, .role, .faq, .author { grid-template-columns: 1fr; }
  .course__side { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--rule); flex-direction: row; flex-wrap: wrap; align-items: end; }
  .course--flag .course__side { border-top-color: var(--on-forest-rule); }
  .course__side .price { flex: 1 1 220px; }
  .course__side .btn { width: auto; flex: 1 1 220px; }
  .faq__aside { position: static; }
  .faq { gap: 24px; }
  .proof { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .proof li { padding: 4px 20px; }
  .proof li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .bento > *, .bento > .is-wide { grid-column: span 3; }
  .tiles, .tiles--4, .steps, .steps--4, .people { grid-template-columns: repeat(2, 1fr); }
  .role { gap: 12px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .course-hero .panel { padding: 40px 32px; }
  .cta .panel { padding: 64px 28px; }
  .author__main { padding: 36px; }
  .author__stats li { padding: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --r-xl: 24px; }
  body { font-size: 16px; }
  .section { padding-top: 80px; }
  .hero { padding-top: 8px; }
  .hero .panel { padding: 36px 20px 20px; }
  .hero .btn-row .btn, .cta .btn, .course__side .btn, .page-head .btn { flex: 1 1 100%; }
  .demo { padding: 6px; border-radius: 22px; }
  .demo__body { padding: 18px 10px 10px; min-height: 330px; }
  .demo__text { font-size: 16px; }
  .proof b { font-size: 32px; }
  .bento > *, .bento > .is-wide { grid-column: 1 / -1; }
  .tiles, .tiles--2, .tiles--4, .steps, .steps--4, .people { grid-template-columns: 1fr; }
  .course, .role, .tariff, .cell { padding: 24px; }
  .course-aside { grid-template-columns: 1fr; }
  .course-hero .panel { padding: 32px 20px; }
  .acc summary { padding: 18px 16px 18px 20px; font-size: 16px; }
  .acc details > :not(summary) { padding: 0 20px 20px; }
  .acc details > ol { padding-left: 40px; }
  .author__main { padding: 28px; }
  .author__stats li { padding: 22px 18px; }
  .cta { margin-top: 88px; }
  .foot { grid-template-columns: 1fr; }
  .sticky-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(243 240 231 / .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 var(--rule);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .sticky-cta.is-on { transform: none; }
  .sticky-cta .btn { flex: 1; min-height: 48px; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 104px; }
}

/* ================= motion ================= */
.reveal-ready { opacity: 0; transform: translateY(28px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
  .course, .tile--link, .cell, .tile, .steps li, .person { transition: transform .45s var(--ease-out), box-shadow .45s ease; }
  .course:hover, .tile--link:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--rule-strong), var(--shadow-2); }
  .course--flag:hover { box-shadow: 0 40px 90px -30px rgb(13 29 22 / .7); }
  .logo__mark rect:last-child { transform-origin: 7px 50%; transition: transform .45s var(--spring); }
  .logo:hover .logo__mark rect:last-child { transform: scaleX(.55); }
  .nav a { transition: background-color .2s ease, color .2s ease; }

  /* первый экран */
  .hero .panel, .course-hero .panel { animation: panel-in 1.1s var(--ease-out) both; }
  .hero .panel > div > * { animation: rise .9s var(--ease-out) both; }
  .hero .panel > div > :nth-child(2) { animation-delay: .1s; }
  .hero .panel > div > :nth-child(3) { animation-delay: .2s; }
  .hero .panel > div > :nth-child(4) { animation-delay: .3s; }
  .hero .panel > div > :nth-child(5) { animation-delay: .4s; }
  .demo { animation: float-in 1.2s var(--ease-out) .25s both; }

  .course-hero .panel > * { animation: rise .8s var(--ease-out) both; }
  .course-hero .panel > :nth-child(2) { animation-delay: .06s; }
  .course-hero .panel > :nth-child(3) { animation-delay: .12s; }
  .course-hero .panel > :nth-child(4) { animation-delay: .18s; }
  .course-hero .panel > :nth-child(n+5) { animation-delay: .24s; }
  .course-aside > * { animation: rise .9s var(--ease-out) .3s both; }
  .course-aside > :nth-child(2) { animation-delay: .42s; }
  .course-aside > :nth-child(3) { animation-delay: .52s; }
  .page-head > * { animation: rise .8s var(--ease-out) both; }
  .page-head > :nth-child(2) { animation-delay: .06s; }
  .page-head > :nth-child(3) { animation-delay: .12s; }
  .page-head > :nth-child(n+4) { animation-delay: .18s; }

  .marquee__list { animation: marquee 40s linear infinite; }
  .marquee__track:hover .marquee__list { animation-play-state: paused; }

  .demo__typing i { animation: dot .9s ease-in-out infinite; }
  .demo__typing i:nth-child(2) { animation-delay: .15s; }
  .demo__typing i:nth-child(3) { animation-delay: .3s; }
  .demo.is-typing .demo__typing { display: flex; }
  .demo.is-typing .demo__text { visibility: hidden; }
  .demo .w { display: inline-block; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s var(--ease-out); transition-delay: calc(var(--i) * 32ms); }
  .demo.is-shown .w { opacity: 1; transform: none; }
  .demo.is-shown mark { animation: highlight .8s cubic-bezier(.65, 0, .35, 1) both; animation-delay: var(--md, .6s); }
  .demo__prompt.is-new { animation: pop .5s var(--spring) both; transform-origin: 100% 100%; }
  .demo__src span { transition: opacity .4s ease, transform .4s var(--spring); }
  .demo.is-typing .demo__src span:not(:first-child) { opacity: 0; transform: scale(.9); }

  .bars dd:not(.val) span { animation: grow 1.3s var(--ease-out) both paused; }
  .bars dd:nth-of-type(3) span { animation-delay: .12s; }
  .bars dd:nth-of-type(5) span { animation-delay: .24s; }
  .bars dd:nth-of-type(7) span { animation-delay: .36s; }
  .is-visible .bars dd span { animation-play-state: running; }
  .ring { transition: --p 1.6s var(--ease-out); }
  .cell:not(.is-visible) .ring { --p: 0; }

  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .acc details::details-content {
      block-size: 0; overflow: clip; opacity: 0;
      transition: block-size .45s var(--ease-out), opacity .35s ease, content-visibility .45s allow-discrete;
    }
    .acc details[open]::details-content { block-size: auto; opacity: 1; }
  }
  .menu[open] .menu__panel { animation: drop .3s var(--ease-out) both; }
  ::view-transition-group(*) { animation-duration: .4s; animation-timing-function: var(--ease-out); }
}
@property --p { syntax: "<number>"; inherits: true; initial-value: 100; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes panel-in { from { opacity: 0; transform: scale(.975); } }
@keyframes float-in { from { opacity: 0; transform: translateY(40px) rotate(1.5deg) scale(.96); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.92); } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes highlight { from { background-size: 0 100%; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes grow { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
.author__cta { margin-top: 28px; }
.steps--2 { grid-template-columns: repeat(2, 1fr); }
.author--stack { grid-template-columns: 1fr; }
.author--stack .author__main { padding: 40px; }
.author--stack .author__stats { grid-template-columns: repeat(4, 1fr); }
.author--stack .author__stats li { padding: 28px 24px; border-top: 0; }
.author--stack .author__stats li + li { border-left: 1px solid var(--on-forest-rule); }
.author--stack .author__stats b { font-size: 30px; }
@media (min-width: 1081px) {
  .course-hero .panel { min-height: 460px; padding-right: 480px; }
  .course-hero .panel > * { max-width: none; }
  .course-aside { margin-top: -400px; }
}
@media (max-width: 640px) {
  .steps--2 { grid-template-columns: 1fr; }
  .author--stack .author__stats { grid-template-columns: 1fr 1fr; }
  .author--stack .author__stats li:nth-child(3) { border-left: 0; }
  .author--stack .author__stats li:nth-child(n+3) { border-top: 1px solid var(--on-forest-rule); }
}
.people--stack { grid-template-columns: 1fr; }
.person--wide { padding: 32px; }
.person--wide .person__ava { width: 64px; height: 64px; font-size: 22px; }
.person--wide h3 { font-size: 22px; }
.person--wide p { font-size: 17px; max-width: 70ch; }
/* шапка внутренних страниц: мягкое свечение Royal Yellow */
.page-head::before {
  content: ""; position: absolute; z-index: -1; top: -120px; right: -10%; width: 620px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(250 218 94 / .3), rgb(250 218 94 / .12) 55%, transparent);
}
main { position: relative; isolation: isolate; overflow-x: clip; }
.page-head h1 { max-width: 18ch; }
