/* ============================================================
   САЙТ: стили лендинга «Школа Юлии Корниловой»
   Перенесены 1:1 из инлайнового <style> эталонного index.html
   скриптом scripts/extract_fonts.py. Блоки @font-face вынесены в fonts.css.
   Порядок подключения: fonts.css → site.css.
   ============================================================ */
/* ============================================================
   ТОКЕНЫ
   ============================================================ */
:root{
  --font-serif: "Lora", "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2.125rem, 1.64rem + 2.1vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.49rem + 1.13vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1.02rem + 0.19vw, 1.1875rem);
  --fs-thesis: clamp(1.125rem, 1.04rem + 0.38vw, 1.375rem);
  --fs-price: clamp(1.625rem, 1.49rem + 0.56vw, 2rem);
  --fs-phone: clamp(1.5rem, 1.37rem + 0.56vw, 1.875rem);
  --fs-name: clamp(1.625rem, 1.54rem + 0.38vw, 1.875rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.8125rem;
  --lh-display: 1.12;  --lh-heading: 1.25;  --lh-body: 1.6;
  --ls-caps: 0.06em;
  --measure: 62ch;

  --c-brand: #F7B500;
  --c-brand-light: #FFC933;
  --c-brand-hover: #E9A900;
  --c-brand-active: #D89C00;
  --c-brand-tint: #FEF6E0;

  --c-ink: #1C1C1C;
  --c-ink-2: #3A3A3A;
  --c-muted: #6B6B6B;
  --c-muted-strong: #5F5F5F;
  --c-note: #A05C00;

  --s-page: #FFFFFF;
  --s-cream: #FAF6EE;
  --s-cream-deep: #F3EDE1;
  --s-info: #FAEED1;
  --s-footer: #262626;

  --c-on-dark: #FFFFFF;
  --c-on-dark-muted: #C9C9C9;
  --c-on-dark-faint: #9E9E9E;

  --line: #EDE5D4;
  --line-strong: #E2D8C2;

  --c-tg: #2AABEE;   --c-tg-tint: #E5F5FD;   --c-tg-tint-hover: #D4EEFC;   --c-tg-border: #AADDF8;
  --c-wa: #25D366;   --c-wa-tint: #E5FAED;   --c-wa-tint-hover: #D3F6E0;   --c-wa-border: #A8EDC2;
  --c-max: #7B5CFF;  --c-max-tint: #EFEBFF;  --c-max-tint-hover: #E5DEFF;  --c-max-border: #CABEFF;

  --c-book-mustard: #D99E2B;
  --c-book-brown: #7A5A3A;
  --c-book-cream: #F3EDE1;
  --c-book-graphite: #333333;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-7: 32px; --sp-8: 40px; --sp-9: 48px;  --sp-10: 64px; --sp-11: 80px; --sp-12: 96px;
  --section-y: clamp(4rem, 3.3rem + 3vw, 6rem);
  --panel-pad: clamp(1.25rem, 0.46rem + 3.4vw, 3.5rem);

  --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28,28,28,.04), 0 2px 8px rgba(28,28,28,.05);
  --shadow-md: 0 2px 6px rgba(28,28,28,.05), 0 12px 28px rgba(28,28,28,.08);
  --shadow-lg: 0 4px 12px rgba(28,28,28,.06), 0 24px 48px rgba(28,28,28,.10);
  --shadow-up: 0 -4px 16px rgba(28,28,28,.08);
  --shadow-cta: 0 8px 20px rgba(247,181,0,.28);

  --container: 1200px;
  --gutter: clamp(20px, 2.5vw, 32px);
  --header-h: 64px;

  --z-raised: 10; --z-sticky-cta: 20; --z-menu: 30; --z-header: 50;

  --t-fast: 160ms; --t-base: 220ms; --t-slow: 300ms; --t-reveal: 560ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.2, .6, .2, 1);

  --focus-color: #1C1C1C;

  /* Моушн-токены */
  --dur-micro: 160ms; --dur-base: 240ms; --dur-panel: 300ms;
  --dur-reveal: 560ms; --dur-hero: 640ms; --dur-float: 6s;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --shift-reveal: 16px; --shift-hero: 20px; --shift-small: 12px;
  --lift-hover: -4px; --lift-btn: -2px; --float-amp: -6px;
  --stagger: 70ms; --stagger-hero: 90ms; --stagger-menu: 50ms; --stagger-star: 40ms;
}
@media (min-width: 1024px){
  :root{ --header-h: 72px; }
}

/* ============================================================
   БАЗА
   ============================================================ */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}
body{
  font: 400 var(--fs-body)/var(--lh-body) var(--font-sans);
  color: var(--c-ink);
  background: var(--s-page);
  overflow-x: clip;
}
h1, h2, h3{ font-family: var(--font-serif); font-weight: 600; line-height: var(--lh-heading); text-wrap: balance; }
p{ max-width: var(--measure); }
ul{ list-style: none; }
a{ color: inherit; }
button{ font: inherit; color: inherit; background: none; border: 0; }
svg{ display: block; }
.icon{ width: 24px; height: 24px; fill: none; stroke: var(--c-brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a, button{ cursor: pointer; }
a:focus-visible, button:focus-visible{ outline: 3px solid var(--focus-color); outline-offset: 2px; }
section[id]{ scroll-margin-top: calc(var(--header-h) + 12px); }
.container{ max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section{ padding-block: calc(var(--section-y) / 2); }
.panel{ background: var(--s-cream); border-radius: var(--r-xl); padding: var(--panel-pad); }
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; top: -80px; left: 16px; z-index: 60;
  background: #FFFFFF; color: var(--c-ink); font-weight: 600;
  padding: 12px 18px; border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus-visible{ top: 12px; box-shadow: var(--shadow-md); }

/* Заголовок секции + жёлтый штрих */
.section-head{ margin-bottom: 28px; }
.section-head h2{ font-size: var(--fs-h2); line-height: 1.2; }
.h2-dash{
  display: block; width: 44px; height: 4px; margin-top: 14px;
  background: var(--c-brand); border-radius: 2px;
}
.section-head--center{ text-align: center; }
.section-head--center .h2-dash{ margin-inline: auto; }
@media (min-width: 1024px){
  .section-head{ margin-bottom: 40px; }
}

/* Тайл иконки */
.tile{
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--s-cream); display: grid; place-items: center; flex-shrink: 0;
}
.tile .icon{ width: 26px; height: 26px; }

/* ============================================================
   КНОПКИ (жёлтые CTA)
   ============================================================ */
.btn{
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; height: 52px; padding: 0 24px;
  background: var(--c-brand); color: var(--c-ink);
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1;
  white-space: nowrap; text-decoration: none; border-radius: var(--r-sm);
  box-shadow: 0 1px 4px rgba(28,28,28,.12);
  transition: transform var(--dur-base) var(--ease-standard);
}
.btn > *{ position: relative; z-index: 1; }
.btn::before{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--c-brand-light); opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-standard);
}
.btn::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow-cta); opacity: 0; z-index: -1;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.btn .icon{ width: 19px; height: 19px; stroke: var(--c-ink); transition: transform 200ms var(--ease-standard); }
@media (hover: hover) and (pointer: fine){
  .btn:hover{ transform: translateY(var(--lift-btn)); }
  .btn:hover::before, .btn:hover::after{ opacity: 1; }
  .btn:hover .icon{ transform: translateX(3px); }
}
.btn:active{ transform: translateY(0) scale(.98); transition-duration: 80ms; }
.btn--sm{ height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--bar{ height: 48px; width: 100%; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header{
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h); background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-standard);
}
.site-header::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: 0 6px 20px rgba(28,28,28,.07); opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled{ border-color: var(--line); }
.site-header.is-scrolled::after{ opacity: 1; }
.header-row{
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 1;
}
.logo{
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; text-decoration: none;
}
.logo-lamp{ width: 28px; height: 28px; }
.logo-lamp .icon{ width: 28px; height: 28px; stroke-width: 1.7; }
.logo-bar{ width: 2px; height: 30px; background: var(--c-brand); border-radius: 1px; }
.logo-text{ display: flex; flex-direction: column; font-family: var(--font-serif); }
.logo-t1{ font-size: 15px; font-weight: 700; color: var(--c-ink); line-height: 1.2; }
.logo-t2{ font-size: 12px; font-weight: 600; color: var(--c-ink-2); line-height: 1.2; }
.header-right{ display: flex; align-items: center; gap: 24px; }
.site-nav{ display: none; }
.header-cta-wrap{ display: none; }
@media (min-width: 900px){
  .site-nav{ display: flex; gap: 24px; }
  /* Кнопка в потоке одна — центрируется на одной оси с пунктами меню;
     подпись позиционируется абсолютно и на ось не влияет */
  .header-cta-wrap{ display: flex; position: relative; }
}
@media (min-width: 1024px){
  .site-nav{ gap: 32px; }
}
.nav-link{
  position: relative; display: inline-block; padding-block: 12px;
  font-weight: 500; font-size: 15px; color: var(--c-ink); text-decoration: none;
}
.nav-link::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--c-brand); border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease-standard);
}
@media (hover: hover) and (pointer: fine){
  .nav-link:hover::after{ transform: scaleX(1); }
}
.nav-link:focus-visible::after{ transform: scaleX(1); }
/* Текущий раздел (`aria-current="page"`) виден не только скринридеру:
   подчёркивание держится постоянно, а не только под курсором. Цветом одним
   обойтись нельзя — это был бы единственный признак состояния (WCAG 1.4.1). */
.nav-link[aria-current="page"]{ font-weight: 600; }
.nav-link[aria-current="page"]::after{ transform: scaleX(1); }
.header-cta-note{
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 5px; white-space: nowrap;
  font-size: 12px; color: var(--c-muted);
  transition: opacity var(--dur-micro) var(--ease-standard);
}
@media (min-width: 1024px){
  .header-cta-note{ display: block; }
}
/* На прокрутке подпись прячется, чтобы не висеть над контентом под шапкой */
.site-header.is-scrolled .header-cta-note{ opacity: 0; }

/* Бургер */
.menu-toggle{
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  transition: background-color var(--dur-micro) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine){
  .menu-toggle:hover{ background: var(--s-cream); }
}
.burger-box{ display: flex; flex-direction: column; gap: 5px; }
.burger-box span{
  display: block; width: 20px; height: 2px; background: var(--c-ink); border-radius: 1px;
  transition: transform var(--dur-base) var(--ease-standard), opacity 120ms linear;
}
.menu-toggle[aria-expanded="true"] .burger-box span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger-box span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger-box span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
html:not(.js) .menu-toggle{ display: none; }
@media (min-width: 900px){
  .menu-toggle{ display: none; }
}

/* Мобильное меню */
.menu-scrim{
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  z-index: var(--z-menu); background: rgba(28,28,28,.35);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease-in), visibility 0s linear 200ms;
}
.menu-scrim.is-open{
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-panel) var(--ease-out), visibility 0s;
}
.menu-panel{
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: var(--z-menu);
  background: #FFFFFF; border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 8px 20px 24px;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px);
  visibility: hidden; pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in), visibility 0s linear 200ms;
}
.menu-panel.is-open{
  opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out), visibility 0s;
}
.menu-link{
  display: block; padding: 14px 4px;
  font-weight: 600; font-size: 22px; color: var(--c-ink); text-decoration: none;
}
.menu-link + .menu-link{ border-top: 1px solid var(--line); }
/* Текущий раздел в мобильном меню: полоса слева + насыщенное начертание.
   Пункты здесь и так крупные, подчёркивание среди них теряется. */
.menu-link[aria-current="page"]{
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--c-brand);
  padding-left: 12px;
}
.menu-cta{ margin-top: 12px; width: 100%; }
.menu-note{ margin-top: 8px; text-align: center; font-size: 13px; color: var(--c-muted); max-width: none; }
@media (min-width: 900px){
  .menu-panel, .menu-scrim{ display: none; }
}
@media (max-width: 899.98px){
  html.menu-open{ overflow: hidden; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EE 100%);
  padding-block: 48px 64px;
}
@media (min-width: 1024px){
  .hero{ padding-block: 80px 96px; }
}
.hero-grid{ display: grid; gap: 40px; }
@media (min-width: 1024px){
  .hero-grid{ grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
}
@media (min-width: 1280px){
  .hero-grid{ gap: 64px; }
}
.hero-copy{ max-width: 560px; }
.hero h1{ font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-display); }
.hero-thesis{
  position: relative; margin-top: 20px; padding-left: 17px;
  font-weight: 700; font-size: var(--fs-thesis); line-height: 1.45; max-width: var(--measure);
}
.accent-bar{
  position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px;
  background: var(--c-brand); border-radius: 2px;
}
.hero-sub{ margin-top: 12px; font-size: var(--fs-lead); color: var(--c-muted); }
.hero-chips{ margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip{
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 10px 16px; font-weight: 500; font-size: 14px; color: var(--c-ink);
  cursor: default;
}
.chip .icon{ width: 18px; height: 18px; }
.hero-cta-row{ margin-top: 28px; }
@media (max-width: 480px){
  .hero-cta-row .btn{ width: 100%; }
}
.hero-note{
  margin-top: 12px; display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--c-muted); max-width: 34ch;
}
.hero-note .icon{ width: 16px; height: 16px; stroke: var(--c-muted); flex-shrink: 0; margin-top: 2px; }

/* Hero-сцена (слои) */
.hero-art{
  position: relative; width: 100%; max-width: 400px; height: 320px;
  margin-inline: auto;
}
.hero-art > *{ position: absolute; }
.art-bg{
  top: 16px; right: 0; width: calc(100% - 20px); height: 292px; z-index: 1;
  background: linear-gradient(160deg, #FAF6EE, #F3EDE1);
  border-radius: 20px;
}
.art-note{
  top: 28px; left: 0; width: 188px; z-index: 3;
  background: #FFFFFF; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 14px; rotate: -3deg;
}
.art-note-title{ font-weight: 700; font-size: 14px; color: var(--c-ink); }
.plan-item{
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-weight: 500; font-size: 13px; color: var(--c-ink);
}
.plan-item .icon-check{ width: 16px; height: 16px; flex-shrink: 0; }
.icon-check circle{ fill: none; stroke: var(--c-brand); stroke-width: 1.6; }
.icon-check path{ fill: none; stroke: var(--c-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art-frame{
  bottom: 12px; right: 8px; width: 168px; z-index: 4;
  background: #FFFDF8; border: 1px solid #EADFC9; border-radius: var(--r-md);
  padding: 14px; rotate: 3deg; box-shadow: var(--shadow-sm);
}
.art-frame::before{
  content: ""; position: absolute; inset: 6px;
  border: 1px solid #EADFC9; border-radius: 8px; pointer-events: none;
}
.art-frame p{
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--c-ink);
}
.art-books{ left: 8px; bottom: 24px; z-index: 3; }
.spine{
  display: flex; align-items: center; justify-content: center;
  height: 28px; border-radius: 8px; margin-top: -2px;
  font-weight: 700; font-size: 9.5px; letter-spacing: var(--ls-caps);
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.spine--mustard{ width: 150px; background: var(--c-book-mustard); color: var(--c-ink); rotate: -1.5deg; }
.spine--brown{ width: 166px; background: var(--c-book-brown); color: #FFFFFF; rotate: 1deg; }
.spine--cream{ width: 156px; background: var(--c-book-cream); color: var(--c-ink); border: 1px solid var(--line-strong); rotate: -.5deg; }
.spine--graphite{ width: 172px; background: var(--c-book-graphite); color: #FFFFFF; }
.art-bulb{ top: 24px; right: 16px; z-index: 4; }
.bulb-float{ position: relative; width: 56px; height: 56px; }
.bulb-glow{
  position: absolute; left: 50%; top: 50%; width: 90px; height: 90px;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,201,51,.4), transparent 70%);
}
.bulb-float .icon{ width: 100%; height: 100%; stroke-width: 1.1; }
@media (min-width: 1024px){
  .hero-art{ max-width: 520px; height: 470px; margin: 0; }
  .art-bg{ top: 28px; width: min(448px, 100%); height: 404px; border-radius: var(--r-xl); }
  .art-note{ top: 44px; left: 8px; width: 236px; padding: 18px; }
  .art-note-title{ font-size: 15px; }
  .plan-item{ font-size: 14px; }
  .plan-item .icon-check{ width: 18px; height: 18px; }
  .art-frame{ top: 6px; right: 12px; bottom: auto; width: 212px; padding: 22px; rotate: 2.5deg; z-index: 2; }
  .art-frame p{ font-size: 16px; }
  .art-books{ left: 20px; bottom: 16px; }
  .spine{ height: 36px; font-size: 11px; letter-spacing: .08em; }
  .spine--mustard{ width: 210px; }
  .spine--brown{ width: 232px; }
  .spine--cream{ width: 218px; }
  .spine--graphite{ width: 240px; }
  .art-bulb{ top: auto; right: 44px; bottom: 56px; }
  .bulb-float{ width: 88px; height: 88px; }
  .bulb-glow{ width: 150px; height: 150px; }
}
/* ============================================================
   О ШКОЛЕ
   ============================================================ */
.about-lead{ margin-top: 16px; font-size: var(--fs-lead); color: var(--c-muted); max-width: var(--measure); }
.about-grid{ margin-top: 32px; }
.about-item{ padding-block: 24px; }
.about-item:first-child{ padding-top: 0; }
.about-item:last-child{ padding-bottom: 0; }
.about-item + .about-item{ border-top: 1px solid var(--line-strong); }
.about-item .icon{ width: 28px; height: 28px; }
.about-title{ font-family: var(--font-sans); font-weight: 700; font-size: 17px; color: var(--c-ink); margin-top: 14px; line-height: 1.35; }
.about-item p{ margin-top: 8px; color: var(--c-muted); font-size: 1rem; }
@media (min-width: 768px){
  .about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-item{ padding-block: 0; }
  .about-item + .about-item{ border-top: 0; }
  .about-item:nth-child(even){ border-left: 1px solid var(--line-strong); padding-left: 32px; }
}
@media (min-width: 1024px){
  .about-grid{ grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
  .about-item:not(:last-child){ padding-right: 32px; }
  .about-item:not(:first-child){ border-left: 1px solid var(--line-strong); padding-left: 32px; }
  .about-item p{ font-size: 15px; }
}

/* ============================================================
   ПРЕДМЕТЫ
   ============================================================ */
.subjects-grid{ display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 768px){
  .subjects-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px){
  .subjects-grid{ grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.subject-card{
  position: relative; display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.subject-card h3{ font-size: var(--fs-h3); margin-top: 16px; }
.subject-card p{ margin-top: 8px; color: var(--c-muted); font-size: 1rem; }
.subject-note{ margin-top: auto; padding-top: 12px; font-weight: 600; font-size: var(--fs-small); color: var(--c-note); }
.subject-card--main{ border: 2px solid var(--c-brand); padding: 23px; }
.badge{
  position: absolute; top: 0; right: 0;
  background: var(--c-brand); color: var(--c-ink);
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: var(--ls-caps);
  padding: 6px 14px; border-radius: 0 18px 0 14px;
}
@media (min-width: 1024px){
  .subject-card p{ font-size: 15px; }
}

/* ============================================================
   КАК НАЧАТЬ ОБУЧЕНИЕ
   ============================================================ */
.steps{ max-width: 560px; margin-inline: auto; }
.step{ position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.step + .step{ margin-top: 28px; }
.step-num{
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-brand); color: var(--c-ink);
  font-weight: 700; font-size: 18px; display: grid; place-items: center;
  position: relative; z-index: 1;
}
.step:not(:last-of-type)::before{
  content: ""; position: absolute; left: 23px; top: 48px; bottom: -28px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--c-brand) 0 5px, transparent 5px 12px);
  opacity: .5;
}
.step-head{ display: flex; align-items: center; gap: 8px; }
.step-head .icon{ width: 20px; height: 20px; flex-shrink: 0; }
.step-head h3{ font-size: 20px; }
.step-body p{ margin-top: 6px; color: var(--c-muted); font-size: 1rem; }
.step-arrow{ display: none; }
@media (min-width: 1024px){
  .steps{ max-width: none; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; column-gap: 16px; }
  .step{ display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 300px; margin-inline: auto; }
  .step + .step{ margin-top: 0; }
  .step:not(:last-of-type)::before{ display: none; }
  .step-num{ width: 56px; height: 56px; font-size: 20px; }
  .step-body{ display: flex; flex-direction: column; align-items: center; }
  .step-head{ margin-top: 18px; justify-content: center; }
  .step-body p{ margin-top: 8px; font-size: 15px; }
  .step-arrow{ display: block; align-self: start; margin-top: 16px; width: 96px; height: 24px; }
  .step-arrow path{ stroke: var(--c-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: .55; }
  .step-arrow .dash{ stroke-dasharray: 6 8; }
}

/* ============================================================
   ФОРМАТЫ И СТОИМОСТЬ
   ============================================================ */
.pricing-grid{ display: grid; gap: 16px; max-width: 560px; margin-inline: auto; }
@media (min-width: 900px){
  .pricing-grid{ grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: none; }
}
.price-card{
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.price-card h3{ font-size: 20px; margin-top: 16px; }
.price-cast{ margin-top: 4px; font-size: 14px; color: var(--c-muted); }
.price{ margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; }
.price-pre, .price-post{ font-weight: 500; font-size: 14px; color: var(--c-muted); }
.price-num{ font-weight: 700; font-size: var(--fs-price); line-height: 1.1; color: var(--c-ink); }
.price-note{
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.5; color: var(--c-muted);
}
.pricing-info{
  margin-top: 24px; background: var(--s-info); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.pricing-info .icon{ width: 20px; height: 20px; stroke: var(--c-note); flex-shrink: 0; margin-top: 1px; }
.pricing-info p{ font-size: 15px; line-height: 1.55; color: var(--c-ink-2); }
.pricing-extras{ margin-top: 20px; display: grid; gap: 16px; }
@media (min-width: 768px){
  .pricing-extras{ grid-template-columns: 1fr 1fr; gap: 20px; }
}
/* 768–899: карточки тарифов ужаты до 560px — выравниваем инфо-плашку и экстры по ним */
@media (min-width: 768px) and (max-width: 899.98px){
  .pricing-info{ max-width: 560px; margin-inline: auto; }
  .pricing-extras{ max-width: 560px; margin-inline: auto; grid-template-columns: 1fr; }
}
.extra-card{
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.extra-card h3{ font-size: 18px; line-height: 1.35; }
.extra-card p{ margin-top: 6px; color: var(--c-muted); font-size: 1rem; }
@media (min-width: 1024px){
  .extra-card p{ font-size: 15px; }
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews-grid{ display: grid; gap: 16px; }
@media (min-width: 768px){
  .reviews-grid{ grid-template-columns: 1fr 1fr; gap: 20px; }
  .review-map-wrap{ grid-column: 1 / -1; }
}
@media (min-width: 1024px){
  .reviews-grid{ grid-template-columns: repeat(3, 1fr); }
  .review-map-wrap{ grid-column: auto; }
}
.review-map-wrap{ display: flex; }
.review-map-wrap > .review-map{ flex: 1; }
.review{
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.stars{ display: flex; gap: 4px; }
.star{ width: 18px; height: 18px; fill: var(--c-brand); }
.review blockquote p{ margin-top: 14px; font-size: 1rem; line-height: 1.65; color: var(--c-ink-2); }
.review figcaption{
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--s-cream-deep);
  font-size: 14px; color: var(--c-muted);
}
.rev-name{ font-weight: 700; color: var(--c-ink); }
.review-map{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px;
  background: var(--s-cream); border-radius: var(--r-lg); padding: 28px;
  text-decoration: none;
}
.review-map .tile{ width: 52px; height: 52px; background: #FFFFFF; }
.review-map .tile .icon{ width: 28px; height: 28px; }
.review-map h3{ font-size: 18px; }
.link-more{
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--c-ink);
  padding-block: 10px;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1.5px; text-decoration-color: rgba(28,28,28,.35);
}
.link-more .icon{ width: 18px; height: 18px; stroke: currentColor; transition: transform 200ms var(--ease-standard); }
@media (hover: hover) and (pointer: fine){
  .review-map:hover .link-more{ text-decoration-color: var(--c-ink); }
  .review-map:hover .link-more .icon{ transform: translateX(4px); }
}

/* Кликабельные карточки: подъём + тень через ::after */
.lift{ position: relative; transition: transform var(--dur-base) var(--ease-standard); }
.lift::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 14px 30px rgba(28,28,28,.09); opacity: 0; z-index: -1;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine){
  .lift:hover{ transform: translateY(var(--lift-hover)); }
  .lift:hover::after{ opacity: 1; }
}
.lift:active{ transform: translateY(-1px); transition-duration: 80ms; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-inner{
  max-width: 560px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.avatar{
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand-light), var(--c-brand));
  border: 4px solid #FFFFFF; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.avatar span{ font-family: var(--font-serif); font-weight: 700; font-size: 34px; color: var(--c-ink); }
@media (min-width: 768px){
  .avatar{ width: 112px; height: 112px; }
  .avatar span{ font-size: 40px; }
}
.c-id{ margin-top: 20px; display: flex; flex-direction: column; align-items: center; }
.c-phone-wrap{ margin-top: 20px; }
.pills-wrap{ margin-top: 16px; width: 100%; }
.map-wrap{ margin-top: 32px; width: min(100%, 520px); display: flex; }
.contact-name{ font-size: var(--fs-name); font-weight: 700; }
.contact-role{ margin-top: 6px; font-size: 15px; color: var(--c-muted); }
.contact-exp{
  margin-top: 12px; display: inline-flex;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; font-weight: 500; font-size: 14px; color: var(--c-muted-strong);
}
.contact-phone{
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-size: var(--fs-phone); line-height: 1.2; color: var(--c-ink);
  white-space: nowrap; text-decoration: none;
}
@media (hover: hover) and (pointer: fine){
  .contact-phone:hover{
    text-decoration: underline; text-decoration-color: var(--c-brand);
    text-decoration-thickness: 3px; text-underline-offset: 6px;
  }
}
.pills{ display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill{
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; color: var(--c-ink); text-decoration: none;
  transition: background-color 180ms var(--ease-standard), transform 200ms var(--ease-standard);
}
.pill::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; z-index: -1; pointer-events: none;
  transition: opacity 200ms var(--ease-standard);
}
/* Приглушённая пилюля (`.pill--muted` в forms.css) — это `<span>` без ссылки:
   канал ещё не заведён в админке. Подъём и нажатие ей не положены, иначе она
   выглядит кликабельной. Исключение стоит здесь, а не в hero.css, потому что
   такие пилюли есть и на «Спасибо», где hero.css не подключён. */
.pill:not(.pill--muted):active{ transform: scale(.97); transition-duration: 80ms; }
.pill svg{ width: 22px; height: 22px; }
.pill--tg{ background: var(--c-tg-tint); border: 1.5px solid var(--c-tg-border); }
.pill--tg svg{ fill: var(--c-tg); }
.pill--tg::after{ box-shadow: 0 8px 18px rgba(42,171,238,.30); }
.pill--wa{ background: var(--c-wa-tint); border: 1.5px solid var(--c-wa-border); }
.pill--wa svg{ fill: var(--c-wa); }
.pill--wa::after{ box-shadow: 0 8px 18px rgba(37,211,102,.30); }
.pill--max{ background: var(--c-max-tint); border: 1.5px solid var(--c-max-border); }
.pill--max svg{ fill: var(--c-max); }
.pill--max::after{ box-shadow: 0 8px 18px rgba(123,92,255,.30); }
@media (hover: hover) and (pointer: fine){
  .pill:not(.pill--muted):hover{ transform: translateY(var(--lift-btn)); }
  .pill:not(.pill--muted):hover::after{ opacity: 1; }
  .pill--tg:not(.pill--muted):hover{ background: var(--c-tg-tint-hover); }
  .pill--wa:not(.pill--muted):hover{ background: var(--c-wa-tint-hover); }
  .pill--max:not(.pill--muted):hover{ background: var(--c-max-tint-hover); }
}
.contact-map{
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 22px; text-decoration: none;
}
.contact-map-text{ font-weight: 600; font-size: 15.5px; color: var(--c-ink); max-width: none; }
.contact-map .rating{ display: flex; align-items: center; gap: 8px; }
.contact-map .stars{ gap: 3px; }
.contact-map .star{ width: 16px; height: 16px; }
.rating-num{ font-weight: 700; font-size: 16px; color: var(--c-ink); }
@media (min-width: 600px){
  .contact-map{ flex-direction: row; text-align: left; }
  .contact-map-text{ flex: 1; }
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer{
  --focus-color: #FFFFFF;
  background: var(--s-footer); color: var(--c-on-dark);
  padding: 40px 0 28px;
}
.footer-row1{
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.f-brand{ display: inline-flex; align-items: center; gap: 10px; }
.f-brand .icon{ width: 22px; height: 22px; }
.f-brand span{ font-family: var(--font-serif); font-weight: 600; font-size: 16px; color: #FFFFFF; }
.f-nav{ display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.f-nav a{
  font-size: 14px; color: var(--c-on-dark-muted); text-decoration: none;
  padding-block: 12px; transition: color 200ms var(--ease-standard);
}
@media (hover: hover) and (pointer: fine){
  .f-nav a:hover{ color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
}
.f-sep{ height: 1px; background: rgba(255,255,255,.12); margin: 28px 0 20px; }
.footer-row2{
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; color: var(--c-on-dark-faint); text-align: center;
}
.footer-row2 p{ max-width: none; }
@media (min-width: 768px){
  .footer-row1{ flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-row2{ flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   ЛИПКАЯ CTA-ПОЛОСКА (мобайл)
   ============================================================ */
.sticky-cta{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-cta);
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); box-shadow: var(--shadow-up);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(102%); visibility: hidden;
  transition: transform var(--dur-panel) var(--ease-in), visibility 0s linear var(--dur-panel);
}
.sticky-cta.is-visible{
  transform: none; visibility: visible;
  transition: transform var(--dur-panel) var(--ease-out), visibility 0s;
}
html:not(.js) .sticky-cta{ display: none; }
@media (min-width: 768px){
  .sticky-cta{ display: none; }
}
@media (max-width: 767.98px){
  body.has-sticky-cta .site-footer{
    padding-bottom: calc(28px + 68px + env(safe-area-inset-bottom));
  }
}

/* ============================================================
   МОУШН: reveal-система (гейт html.js, только под no-preference)
   ============================================================ */
@media (prefers-reduced-motion: no-preference){
  html.js [data-reveal]{
    opacity: 0;
    transform: translateY(var(--shift-reveal));
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  }
  html.js [data-reveal="fade"]{ transform: none; }
  html.js [data-reveal="scale"]{ transform: scale(.96); }
  html.js .art-bulb[data-reveal="scale"]{ transform: scale(.9); transition-duration: 480ms; }
  html.js [data-reveal="hero"]{ transform: translateY(var(--shift-hero)); transition-duration: var(--dur-hero); }
  html.js [data-reveal="chip"]{ transform: translateY(var(--shift-small)); transition-duration: var(--dur-hero); }
  html.js [data-reveal="arrow"]{ transform: translateX(-6px); transition-duration: 400ms; }
  html.js [data-reveal].is-revealed{ opacity: 1; transform: none; }

  /* Жёлтая черта тезиса */
  html.js .hero-thesis .accent-bar{ transform: scaleY(0); transform-origin: top; }
  html.js .hero-thesis.is-revealed .accent-bar{ animation: bar-grow 320ms var(--ease-out) 160ms both; }

  /* Штрих под H2 */
  html.js .section-head .h2-dash{ transform: scaleX(0); transform-origin: left; }
  html.js .section-head.is-revealed .h2-dash{ animation: dash-grow 360ms var(--ease-out) 250ms both; }

  /* Чек-пункты заметки hero */
  html.js .art-note .plan-item{ opacity: 0; }
  html.js .art-note.is-revealed .plan-item{
    animation: plan-in 240ms var(--ease-out) both;
    animation-delay: calc(320ms + var(--i, 0) * 60ms);
  }

  /* Свечение лампочки */
  html.js .art-bulb .bulb-glow{ opacity: 0; }
  html.js .art-bulb.is-revealed .bulb-glow{ animation: glow-in 600ms var(--ease-out) 240ms both; }

  /* Левитация лампочки — единственная бесконечная анимация */
  html.js .hero-art .bulb-float{ animation: bulb-float var(--dur-float) ease-in-out 1.8s infinite; }

  /* Бейдж «Основное направление» */
  html.js .subject-card--main .badge{ opacity: 0; }
  html.js .subject-card--main.is-revealed .badge{ animation: badge-in 240ms var(--ease-out) 200ms both; }

  /* Звёзды отзывов */
  html.js .review .star{ opacity: 0; }
  html.js .review.is-revealed .star{
    animation: star-in 240ms var(--ease-out) both;
    animation-delay: calc(200ms + var(--i, 0) * var(--stagger-star));
  }

  /* Пункты мобильного меню */
  html.js .menu-panel .menu-item{ opacity: 0; }
  html.js .menu-panel.is-open .menu-item{
    animation: menu-item-in 320ms var(--ease-out) both;
    animation-delay: calc(60ms + var(--i, 0) * var(--stagger-menu));
  }
  html.js .menu-panel.is-open .menu-item--cta{ animation-delay: 280ms; }

  /* Мгновенный показ (восстановленный скролл / фолбэк): глушим и дочерние keyframes,
     кроме бесконечной левитации лампочки */
  html.js .is-instant, html.js .is-instant *:not(.bulb-float){
    animation-duration: 0.01ms !important; animation-delay: 0ms !important;
  }

  @keyframes bar-grow{ from{ transform: scaleY(0); } to{ transform: scaleY(1); } }
  @keyframes dash-grow{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
  @keyframes plan-in{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
  @keyframes glow-in{ from{ opacity: 0; } to{ opacity: 1; } }
  @keyframes badge-in{ from{ opacity: 0; transform: scale(.9); } to{ opacity: 1; transform: none; } }
  @keyframes star-in{ from{ opacity: 0; transform: scale(.6); } to{ opacity: 1; transform: scale(1); } }
  @keyframes menu-item-in{ from{ opacity: 0; transform: translateY(12px); } to{ opacity: 1; transform: none; } }
  @keyframes bulb-float{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(var(--float-amp)); } }
}

/* ============================================================
   REDUCED MOTION: глобальный выключатель
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto !important; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal, html.js [data-reveal]{ opacity: 1; transform: none; }
}
