/* ==========================================================================
   AI Уроки — школа практического ИИ
   Единая дизайн-система статического сайта
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
  --ink: #0c0f1d;
  --ink-soft: #2a3042;
  --muted: #656d80;
  --muted-2: #8d93a3;
  --paper: #ffffff;
  --cream: #f6f4ee;
  --cream-2: #efebe1;
  --violet: #5b47f5;
  --violet-dark: #4532dd;
  --violet-soft: #ece9ff;
  --mint: #18c98b;
  --mint-soft: #e2fbf1;
  --amber: #ffb648;
  --rose: #ff6b9a;
  --line: #e5e1d7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-xl: 0 50px 100px -45px rgba(12, 15, 29, 0.5);
  --shadow-lg: 0 32px 64px -36px rgba(12, 15, 29, 0.38);
  --shadow: 0 18px 40px -26px rgba(12, 15, 29, 0.3);
  --ease: cubic-bezier(0.22, 0.75, 0.22, 1);
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

strong {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--violet);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Утилиты ---------- */
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

[id] {
  scroll-margin-top: 96px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--mint);
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--cream {
  background: var(--cream);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 620px;
}

.section-head--center p {
  margin-inline: auto;
}

.section--dark .section-head p {
  color: rgba(255, 255, 255, 0.66);
}

.section-foot {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn svg {
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(91, 71, 245, 0.7);
}

.btn--primary:hover {
  background: var(--violet-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(91, 71, 245, 0.75);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #1c2137;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--violet);
}

.link-arrow svg {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.link-underline {
  text-decoration: underline;
  text-decoration-color: rgba(91, 71, 245, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.link-underline:hover {
  text-decoration-color: var(--violet);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px -28px rgba(12, 15, 29, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.04);
  background: var(--violet);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.logo-text small {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 0;
  background: var(--ink);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -120px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 71, 245, 0.34) 0%, rgba(91, 71, 245, 0) 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-badge strong {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: #052b1f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.8rem, 5.1vw, 4.6rem);
  line-height: 1.01;
  letter-spacing: -0.05em;
}

.hero h1 em {
  font-style: normal;
  color: var(--mint);
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.68);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(24, 201, 139, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line-dark);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 18px 0 34px;
}

.app-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fdfcf9;
  color: var(--ink);
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.8);
  transform: rotate(-1.4deg);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid var(--line);
}

.app-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd8cc;
}

.app-bar i:nth-child(1) {
  background: #ff8b8b;
}

.app-bar i:nth-child(2) {
  background: #ffd06b;
}

.app-bar i:nth-child(3) {
  background: #61d8a9;
}

.app-bar span {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.chat {
  display: grid;
  gap: 12px;
  padding: 18px 2px;
}

.msg {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.msg--user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.msg--ai {
  display: flex;
  gap: 10px;
  max-width: 94%;
  border-bottom-left-radius: 4px;
  background: var(--cream);
}

.msg-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--violet);
  color: #fff;
  font-size: 0.75rem;
}

.msg--ai strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.83rem;
}

.msg--ai p {
  color: var(--ink-soft);
}

.msg--ai ul {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  color: var(--ink-soft);
}

.msg--ai li {
  position: relative;
  padding-left: 14px;
}

.msg--ai li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--cream);
  width: fit-content;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: typing 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.app-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.app-input span {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-size: 1rem;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(20, 24, 42, 0.9);
  color: #fff;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  font-size: 0.74rem;
  line-height: 1.3;
}

.float-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.float-card span {
  color: rgba(255, 255, 255, 0.55);
}

.float-card--stat {
  left: -34px;
  bottom: 2px;
}

.float-card--rating {
  top: -8px;
  right: -22px;
}

.float-card--rating b {
  color: var(--amber);
  letter-spacing: 2px;
  font-size: 0.72rem;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ---------- Бегущая строка инструментов ---------- */
.tools {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tools-label {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 52px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #9a9fae;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✦";
  font-size: 0.7rem;
  color: #d6d2c6;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Аудитория ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.audience-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s;
}

.audience-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--violet-soft);
  color: var(--violet);
}

.icon-tile--mint {
  background: var(--mint-soft);
  color: #0b9b6c;
}

.icon-tile--amber {
  background: #fff3dc;
  color: #b47400;
}

.icon-tile--rose {
  background: #ffe8ef;
  color: #d63d6e;
}

.audience-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.audience-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Курсы ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.course-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.course-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.3), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
}

.course-cover::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -70px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.06),
    0 0 0 68px rgba(255, 255, 255, 0.04);
}

.course-cover--violet {
  background: linear-gradient(135deg, #4e3ae0, #8a6cff);
}

.course-cover--mint {
  background: linear-gradient(135deg, #087f5b, #2dd4a0);
}

.course-cover--amber {
  background: linear-gradient(135deg, #c46a13, #ffb648);
}

.course-cover--rose {
  background: linear-gradient(135deg, #c02e63, #ff7fa4);
}

.course-cover--slate {
  background: linear-gradient(135deg, #242a44, #4b5578);
}

.course-cover__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.course-cover__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.course-glyph {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.95);
}

.course-cover__note {
  max-width: 120px;
  padding-bottom: 4px;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: right;
  color: rgba(255, 255, 255, 0.62);
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.course-body h3 {
  font-size: 1.32rem;
  line-height: 1.15;
}

.course-body h3 a:hover {
  color: var(--violet);
}

.course-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price {
  display: flex;
  flex-direction: column;
}

.price strong {
  font-family: var(--font-display);
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 0.7rem;
  color: var(--muted-2);
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(91, 71, 245, 0.12);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.step h3 {
  margin: 16px 0 8px;
  font-size: 1.06rem;
}

.step p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Фича + дашборд ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 72px;
  align-items: center;
}

.feature h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
}

.feature-lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.5;
}

.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: #08845b;
}

.dash-wrap {
  position: relative;
}

.dash {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dash-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.dash-title span {
  display: block;
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--muted-2);
}

.dash-badge {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #087a55;
  font-size: 0.62rem;
  font-weight: 700;
}

.dash-progress {
  padding: 18px 0;
}

.dash-progress__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.7rem;
  color: var(--muted);
}

.dash-progress__row b {
  color: var(--ink);
}

.bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream-2);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), #9d8dff);
}

.dash-modules {
  display: grid;
  gap: 4px;
}

.dash-module {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 0.74rem;
}

.dash-module:nth-child(odd) {
  background: #fbfaf7;
}

.dash-module i {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
}

.dash-module.is-done i {
  background: var(--mint-soft);
  color: #08845b;
}

.dash-module.is-active {
  border: 1px solid rgba(91, 71, 245, 0.2);
  background: var(--violet-soft);
}

.dash-module.is-active i {
  background: var(--violet);
  color: #fff;
}

.dash-module span {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--muted-2);
}

.dash-float {
  position: absolute;
  right: -26px;
  bottom: -24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.7rem;
}

.dash-float b {
  font-size: 1.15rem;
}

.dash-float svg {
  color: var(--mint);
}

/* ---------- Отзывы ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stars {
  color: var(--amber);
  font-size: 0.82rem;
  letter-spacing: 2px;
}

.quote-card blockquote {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.quote-card blockquote p + p {
  margin-top: 10px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), #9d8dff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar--mint {
  background: linear-gradient(135deg, #0a8f63, #34d9a5);
}

.avatar--amber {
  background: linear-gradient(135deg, #b56a0b, #ffc266);
}

.avatar--rose {
  background: linear-gradient(135deg, #b62c5e, #ff8aae);
}

.person b {
  display: block;
  font-size: 0.84rem;
}

.person span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* ---------- Команда ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.teacher {
  display: flex;
  flex-direction: column;
}

.teacher-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  isolation: isolate;
}

.teacher-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.34), transparent 45%);
}

.teacher-photo::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.06);
}

.teacher-photo--violet {
  background: linear-gradient(145deg, #4a37d8, #8b74ff);
}

.teacher-photo--mint {
  background: linear-gradient(145deg, #077a58, #34d9a5);
}

.teacher-photo--amber {
  background: linear-gradient(145deg, #a95d0c, #ffc266);
}

.teacher-photo--rose {
  background: linear-gradient(145deg, #ac2a58, #ff8aae);
}

.teacher-photo--slate {
  background: linear-gradient(145deg, #1e2439, #566087);
}

.teacher h3 {
  margin: 16px 0 4px;
  font-size: 1rem;
}

.teacher p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.teacher-role {
  font-size: 0.72rem !important;
  font-weight: 650;
  color: var(--violet) !important;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 840px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--violet);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.faq details p {
  max-width: 700px;
  padding: 0 44px 22px 4px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- CTA и формы ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  overflow: hidden;
  padding: 56px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -80px;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 71, 245, 0.4), transparent 68%);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 30%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000, transparent 70%);
}

.cta-band h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.cta-band > div > p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.cta-note svg {
  color: var(--mint);
}

.lead-form {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xl);
}

.lead-form h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.lead-form__lead {
  margin-bottom: 18px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.73rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf7;
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 71, 245, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a7abb7;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.71rem;
  line-height: 1.45;
  color: var(--muted);
}

.checkbox input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--violet);
}

.checkbox a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted-2);
  text-align: center;
}

.form-success {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 24px 8px;
  text-align: center;
}

.form-success .success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: #08845b;
}

.form-success b {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.form-success p {
  max-width: 280px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Внутренний hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: 6%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 71, 245, 0.13), transparent 65%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.04;
}

.page-hero p {
  max-width: 620px;
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.74rem;
  color: var(--muted-2);
}

.breadcrumbs a:hover {
  color: var(--violet);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #c6c2b7;
}

.page-hero--dark {
  background: var(--ink);
  color: #fff;
  border-bottom-color: var(--line-dark);
}

.page-hero--dark::after {
  background: radial-gradient(circle, rgba(91, 71, 245, 0.36), transparent 66%);
}

.page-hero--dark p {
  color: rgba(255, 255, 255, 0.62);
}

.page-hero--dark .breadcrumbs {
  color: rgba(255, 255, 255, 0.45);
}

.page-hero--dark .breadcrumbs a:hover {
  color: #fff;
}

.page-hero--dark .breadcrumbs li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.25);
}

.page-hero--dark .eyebrow {
  color: var(--mint);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-chips span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Страница курсов ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.course-card[hidden] {
  display: none;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.compare th,
.compare td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare th {
  background: #fbfaf7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  font-weight: 650;
}

.compare a {
  color: var(--violet);
  font-weight: 600;
}

.corporate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.corporate h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.corporate p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Детальная страница курса ---------- */
.course-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 60px;
  background: var(--ink);
  color: #fff;
}

.course-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 100% at 80% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}

.course-hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 71, 245, 0.35), transparent 68%);
  pointer-events: none;
}

.course-hero .container {
  position: relative;
  z-index: 1;
}

.course-hero h1 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
  line-height: 1.03;
}

.course-hero .lead {
  max-width: 640px;
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}

.course-hero .hero-chips {
  margin-top: 22px;
}

.course-hero .eyebrow {
  color: var(--mint);
}

.course-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.45);
}

.course-hero .breadcrumbs a:hover {
  color: #fff;
}

.course-hero .breadcrumbs li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.25);
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 64px;
  align-items: start;
  padding: 72px 0 96px;
}

.course-main {
  min-width: 0;
}

.course-main > section + section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.course-main h2 {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
}

.course-main h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}

.course-main p,
.course-main li {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.course-main p + p {
  margin-top: 12px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.benefit {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.86rem;
  line-height: 1.5;
}

.benefit .check {
  width: 21px;
  height: 21px;
}

.audience-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audience-pills span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.module {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.module + .module {
  margin-top: 10px;
}

.module summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 0.9rem;
}

.module summary::-webkit-details-marker {
  display: none;
}

.module-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--violet-soft);
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.module-time {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted-2);
  white-space: nowrap;
}

.module summary::after {
  content: "+";
  flex: none;
  color: var(--violet);
  font-size: 1.05rem;
  font-weight: 400;
}

.module[open] summary::after {
  transform: rotate(45deg);
}

.module ol {
  display: grid;
  gap: 7px;
  padding: 0 18px 18px 62px;
  list-style: decimal;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.module ol::marker {
  color: var(--violet);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.format-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.format-item h3 {
  margin: 0 0 5px;
  font-size: 0.9rem;
}

.format-item p {
  font-size: 0.8rem;
  color: var(--muted);
}

.teacher-inline {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.teacher-inline .avatar {
  width: 62px;
  height: 62px;
  font-size: 1rem;
}

.teacher-inline b {
  display: block;
  font-size: 0.95rem;
}

.teacher-inline span {
  display: block;
  font-size: 0.75rem;
  color: var(--violet);
}

.teacher-inline p {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.price-card {
  position: sticky;
  top: 102px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.price-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.price-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 2px;
}

.price-big strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: -0.05em;
}

.price-big span {
  font-size: 0.8rem;
  color: var(--muted);
}

.installment {
  font-size: 0.76rem;
  color: var(--muted);
}

.price-card .btn {
  margin-top: 18px;
}

.price-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.price-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.price-list .check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.price-card__note {
  margin-top: 16px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted-2);
  text-align: center;
}

.price-card__note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Блог ---------- */
.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
}

.featured-post__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.post-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-post h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  line-height: 1.1;
}

.featured-post h2 a:hover {
  color: var(--violet);
}

.featured-post p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 22px;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: #c9c4b8;
}

.post-media {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: linear-gradient(135deg, #4a37d8, #8b74ff);
  isolation: isolate;
}

.post-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.36), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%);
}

.post-media::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.06),
    0 0 0 92px rgba(255, 255, 255, 0.04);
}

.post-media__glyph {
  position: absolute;
  left: 34px;
  bottom: 26px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.94);
}

.post-media--mint {
  background: linear-gradient(135deg, #077a58, #2dd4a0);
}

.post-media--amber {
  background: linear-gradient(135deg, #a95d0c, #ffc266);
}

.post-media--rose {
  background: linear-gradient(135deg, #ac2a58, #ff8aae);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-card__media {
  position: relative;
  min-height: 200px;
  background: linear-gradient(135deg, #242a44, #4b5578);
  isolation: isolate;
}

.post-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.3), transparent 40%);
}

.post-card__media::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.05);
}

.post-card__media.gradient-violet {
  background: linear-gradient(135deg, #4a37d8, #8b74ff);
}

.post-card__media.gradient-mint {
  background: linear-gradient(135deg, #077a58, #2dd4a0);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-card h3 {
  margin: 13px 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.post-card h3 a:hover {
  color: var(--violet);
}

.post-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.post-card .post-meta {
  margin-top: 14px;
}

.post-card .link-arrow {
  margin-top: auto;
  padding-top: 18px;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: var(--cream);
}

.newsletter h2 {
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.newsletter p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.newsletter .lead-form {
  box-shadow: var(--shadow);
}

/* ---------- Статья ---------- */
.article {
  max-width: 780px;
  margin-inline: auto;
  padding: 64px 0 96px;
}

.article-header h1 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.06;
}

.article-header .lead {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
  font-size: 0.76rem;
  color: var(--muted-2);
}

.article-meta .author {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-weight: 600;
}

.article-meta .author .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.62rem;
}

.article-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 300px;
  margin: 36px 0 40px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4a37d8, #8b74ff);
  color: #fff;
  isolation: isolate;
}

.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.35), transparent 42%);
}

.article-cover::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.06);
}

.article-cover span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: 20px;
}

.prose h2 {
  margin-top: 44px;
  font-size: 1.6rem;
  color: var(--ink);
}

.prose h3 {
  margin-top: 30px;
  font-size: 1.15rem;
  color: var(--ink);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 4px;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.prose ol {
  list-style: decimal;
  padding-left: 22px;
}

.prose ol li::marker {
  color: var(--violet);
  font-weight: 700;
}

.prose blockquote {
  padding: 20px 24px;
  border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0;
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 550;
  line-height: 1.5;
  color: var(--ink);
}

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--violet-soft);
  color: #3c2bc0;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prompt-box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf7;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.prompt-box b {
  color: var(--violet);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  background: var(--violet-soft);
}

.callout svg {
  flex: none;
  margin-top: 2px;
  color: var(--violet);
}

.callout p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #322a72;
}

.callout b {
  color: #241d5e;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.68rem;
  color: var(--muted);
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.author-box .avatar {
  width: 52px;
  height: 52px;
  font-size: 0.85rem;
}

.author-box b {
  display: block;
  font-size: 0.92rem;
}

.author-box span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  color: var(--violet);
}

.author-box p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

/* ---------- О школе ---------- */
.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.manifesto h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.manifesto p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.manifesto-quote {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.manifesto-quote span {
  display: block;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.number b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.number span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.value {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value b {
  display: block;
  margin: 14px 0 7px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.value p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.value-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--violet);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.timeline-item {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.timeline-item b {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.timeline-item p {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 64px;
  align-items: start;
  padding: 72px 0 96px;
}

.contact-form-wrap {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form-wrap h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.contact-form-wrap > p {
  margin-bottom: 22px;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-form-wrap .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form-wrap .field--full {
  grid-column: 1 / -1;
}

.contact-side {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-card h3 {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.contact-card a,
.contact-card p {
  display: block;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.contact-card a:hover {
  color: var(--violet);
}

.contact-card .icon-tile {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
}

.contact-card__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.requisites {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--cream);
}

.requisites h3 {
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.requisites dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.requisites div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
}

.requisites dt {
  color: var(--muted);
}

.requisites dd {
  margin: 0;
  text-align: right;
  color: var(--ink-soft);
}

.contact-note {
  display: flex;
  gap: 10px;
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--mint-soft);
  font-size: 0.76rem;
  line-height: 1.5;
  color: #0a6b4e;
}

.contact-note svg {
  flex: none;
  margin-top: 1px;
}

/* ---------- Юридические страницы ---------- */
.legal-wrap {
  padding: 56px 0 96px;
}

.legal {
  max-width: 820px;
  margin-inline: auto;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--muted-2);
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 1.22rem;
}

.legal h2:first-of-type {
  margin-top: 32px;
}

.legal h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.legal p,
.legal li {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.legal p + p {
  margin-top: 10px;
}

.legal ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  list-style: disc;
}

.legal ul li::marker {
  color: var(--violet);
}

.legal a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--cream);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 80px 0;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, var(--violet) 10%, #a394ff 55%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.error-page p {
  max-width: 440px;
  margin: 12px auto 28px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--muted);
}

.error-links a:hover {
  color: var(--violet);
}

/* ---------- Подвал ---------- */
.site-footer {
  padding: 64px 0 26px;
  background: #080a13;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.1fr;
  gap: 34px;
  padding-bottom: 44px;
}

.logo--footer {
  color: #fff;
}

.logo--footer .logo-mark {
  background: #fff;
  color: var(--ink);
}

.logo--footer .logo-text small {
  color: rgba(255, 255, 255, 0.42);
}

.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a,
.footer-col p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.46);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contacts .footer-contact {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
}

.footer-contacts p {
  margin-top: 8px;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.pay-badges span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(760px, calc(100% - 32px));
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px -24px rgba(12, 15, 29, 0.4);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.cookie p {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie .btn {
  flex: none;
}

/* ---------- Анимации появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 42px;
  }

  .hero-stats {
    gap: 18px;
  }

  .audience-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contacts {
    grid-column: span 2;
  }

  .course-layout {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .contact-grid {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 72px 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 650;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 24px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-lead {
    max-width: 640px;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
  }

  .hero-stats {
    margin-top: 48px;
  }

  .feature,
  .manifesto,
  .newsletter {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature {
    direction: ltr;
  }

  .dash-wrap {
    max-width: 520px;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-card blockquote {
    font-size: 0.98rem;
  }

  .course-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 56px 0 72px;
  }

  .price-card {
    position: static;
    order: -1;
  }

  .contact-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post__media {
    min-height: 260px;
    order: -1;
  }

  .featured-post__body {
    padding: 32px;
  }

  .cta-band {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px;
  }

  .cta-band > div > p {
    max-width: none;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contacts {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.4rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding-bottom: 30px;
  }

  .float-card--stat {
    left: -6px;
  }

  .float-card--rating {
    right: -6px;
  }

  .audience-grid,
  .course-grid,
  .post-grid,
  .values,
  .benefit-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    padding: 42px 0;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.7rem);
  }

  .course-hero {
    padding: 42px 0 48px;
  }

  .course-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .course-layout {
    gap: 32px;
  }

  .course-main > section + section {
    margin-top: 40px;
    padding-top: 36px;
  }

  .module-time {
    display: none;
  }

  .article {
    padding: 44px 0 72px;
  }

  .article-cover {
    height: 220px;
    margin: 28px 0 32px;
  }

  .cta-band {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .lead-form {
    padding: 22px;
  }

  .newsletter {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .corporate {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .contact-form-wrap {
    padding: 22px;
  }

  .contact-form-wrap .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-side {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contacts {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
  }

  .cookie .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .logo-text small {
    display: none;
  }

  .dash-float {
    right: 8px;
    bottom: -18px;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .app-card {
    transform: none;
  }

  .float-card {
    display: none;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .steps,
  .timeline {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .teacher-photo {
    aspect-ratio: 16 / 11;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contacts {
    grid-column: auto;
  }

  .article-meta {
    gap: 8px 12px;
  }

  .author-box {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .cookie,
  .menu-toggle {
    display: none !important;
  }
}
