/* =========================================================================
   ENORA SCHOOL — Official landing
   Бордо × кремовый × курсивный сериф · Светлая/тёмная темы
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
/* Custom smooth scrolling is JS-driven (see app.js); CSS smooth would fight it. */

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: hidden;
  transition: background var(--dur-base) var(--ease-in-out-elegant),
              color var(--dur-base) var(--ease-in-out-elegant);
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* =========================================================================
   Primitives
   ========================================================================= */
.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}
@media (min-width: 900px) { .container { width: min(1240px, 100% - 120px); } }

.section { padding-block: clamp(96px, 12vw, 160px); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--gold);
}

.section-title {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 24px 0 0; text-wrap: balance;
}
.section-title .script {
  font-family: var(--font-script); font-style: normal;
  color: var(--burgundy); font-weight: 400; font-size: 0.85em;
}
.section-title .hand {
  font-family: var(--font-hand);
  font-style: normal; font-weight: 700;
  color: var(--burgundy); font-size: 1.02em;
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
  padding: 0 0.06em;
  isolation: isolate;
}
.section-title .hand::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%; bottom: 6%;
  height: 0.16em;
  background: var(--gold);
  border-radius: 3px;
  opacity: 0.85;
  z-index: -1;
}
.section-sub {
  font-size: 17px; color: var(--fg-muted); line-height: 1.55;
  max-width: 540px; text-wrap: pretty;
}

/* Accent / typography helpers */
.gold {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--burgundy);
  position: relative;
}
.gold-plain { color: var(--burgundy); font-style: italic; }
.script-accent {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--burgundy);
  font-weight: 400;
}
/* =========================================================================
   NAVIGATION
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 24px; pointer-events: none;
  transition: padding var(--dur-base) var(--ease-in-out-elegant);
  animation: nav-drop 900ms cubic-bezier(0.34, 1.36, 0.64, 1) 0.35s backwards;
}
@keyframes nav-drop {
  from { transform: translateY(-160%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.nav.scrolled { padding-top: 12px; }
.nav > * { pointer-events: auto; }

.nav-shell {
  max-width: 1320px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}

.nav-capsule, .nav-glass-btn {
  position: relative;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--cream-bright) 72%, transparent) 0%,
      color-mix(in oklab, var(--cream) 60%, transparent) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  border: 1px solid color-mix(in oklab, var(--cream-bright) 80%, transparent);
  box-shadow:
    0 1px 0 color-mix(in oklab, #fff 70%, transparent) inset,
    0 -1px 0 color-mix(in oklab, var(--burgundy) 8%, transparent) inset,
    0 18px 40px -18px rgba(28, 0, 5, 0.28),
    0 6px 16px -8px rgba(28, 0, 5, 0.18);
  border-radius: 999px;
  transition: background var(--dur-base) var(--ease-in-out-elegant),
              box-shadow var(--dur-base) var(--ease-in-out-elegant),
              border-color var(--dur-base) var(--ease-in-out-elegant);
}
.nav-capsule::before, .nav-glass-btn::before {
  content: ''; position: absolute; inset: 1px 1px auto 1px; height: 55%;
  border-radius: 999px 999px 200px 200px / 999px 999px 60px 60px;
  background: linear-gradient(180deg,
    color-mix(in oklab, #fff 55%, transparent) 0%,
    color-mix(in oklab, #fff 0%, transparent) 100%);
  pointer-events: none; z-index: 0;
}
.nav-capsule::after {
  content: ''; position: absolute; inset: auto 14% 1px 14%; height: 30%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center,
    color-mix(in oklab, var(--burgundy) 18%, transparent) 0%, transparent 70%);
  filter: blur(14px); opacity: 0.5; pointer-events: none; z-index: 0;
}
.nav-capsule {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  gap: clamp(8px, 1.2vw, 16px); padding: 5px 5px 5px 18px;
}

.nav-brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  line-height: 0.85; text-decoration: none; color: inherit;
  position: relative; z-index: 1; padding-block: 4px; flex-shrink: 0;
}
.nav-brand .mark {
  font-family: var(--font-script); font-weight: 400;
  font-size: 32px; color: var(--burgundy-ink); letter-spacing: 0;
}
.nav-brand .sub {
  font-family: var(--font-script); font-weight: 400; font-size: 18px;
  color: var(--burgundy-tint); margin-top: -6px; margin-left: 20px;
}
.nav-links {
  display: flex; align-items: center; gap: clamp(6px, 1vw, 14px);
  list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
  flex: 1 1 auto; justify-content: center;
}
@media (max-width: 820px) { .nav-links { display: none; } }
.nav-links a {
  display: inline-block; text-decoration: none; color: var(--burgundy-ink);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0; text-transform: none; white-space: nowrap;
  position: relative; padding: 6px 4px;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1.5px; background: var(--burgundy);
  transition: right var(--dur-base) var(--ease-out-soft);
}
.nav-links a:hover { color: var(--burgundy); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 820px) { .nav-capsule .nav-cta { display: none; } }
.nav-glass-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  cursor: pointer; color: var(--burgundy-ink); padding: 0;
  position: relative; overflow: visible; border: 1px solid color-mix(in oklab, var(--cream-bright) 80%, transparent);
  transition: transform var(--dur-base) var(--ease-bounce-gentle),
              background var(--dur-base) var(--ease-in-out-elegant),
              box-shadow var(--dur-base) var(--ease-in-out-elegant),
              border-color var(--dur-base) var(--ease-in-out-elegant),
              color var(--dur-base) var(--ease-in-out-elegant);
}
.nav-glass-btn:hover { transform: translateY(-1px) rotate(18deg); }
.nav-glass-btn .sun, .nav-glass-btn .moon {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  transition: all var(--dur-base) var(--ease-bounce-gentle);
}
.nav-glass-btn .moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.nav-glass-btn svg { width: 18px; height: 18px; }

.nav-cta {
  position: relative; z-index: 1; flex-shrink: 0;
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: 0; text-transform: none; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px;
  background: var(--burgundy); color: var(--cream); text-decoration: none;
  overflow: hidden; isolation: isolate;
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--cream) 18%, transparent) inset,
    0 12px 28px -12px rgba(28, 0, 5, 0.45),
    0 4px 10px -4px rgba(28, 0, 5, 0.28);
  transition: transform var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft);
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-cta::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--burgundy-tint);
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out-soft);
}
.nav-cta:hover::before { transform: translateY(0); }

/* Mobile menu (hamburger) — only visible when nav-links don't fit */
.nav-burger {
  display: none;
  width: 48px; height: 48px;
  border-radius: 999px; cursor: pointer;
  background: transparent;
  color: var(--burgundy-ink);
}
@media (max-width: 820px) {
  .nav-burger { display: inline-grid; place-items: center; }
}
.nav-burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-in-out-elegant);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block; padding: 18px 0; font-family: var(--font-display);
  font-style: italic; font-size: 28px; color: var(--fg);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-drawer .nav-cta { margin-top: 32px; align-self: flex-start; display: inline-flex; }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--fg); cursor: pointer;
  display: grid; place-items: center;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--dur-base) var(--ease-out-soft),
              transform var(--dur-base) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft);
}
/* Liquid fill that rises from the bottom on hover (GPU-friendly transform) */
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--burgundy-tint);
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out-soft);
}
.btn:hover::before { transform: translateY(0); }
.btn.is-disabled::before, .btn:disabled::before { transform: translateY(102%); }

.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary::before { background: var(--burgundy-tint); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost::before { background: var(--burgundy); }
.btn-ghost:hover {
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--burgundy);
  transform: translateY(-2px);
}
.btn-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px;
  transition: transform var(--dur-base) var(--ease-out-soft); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding-top: 120px; padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 56px;
  align-items: center; position: relative; z-index: 2;
}
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 80px; } }
@media (min-width: 1000px) {
  .hero { padding-top: 104px; padding-bottom: 56px; }
  .hero-h1 { font-size: clamp(48px, min(7vw, 8.4vh), 108px); }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-lede { margin: 26px 0 32px; }
}

.hero-eyebrow { margin-bottom: 28px; animation: entrance 1.1s var(--ease-out-soft) 0.05s backwards; }

.hero-h1 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(48px, 7.2vw, 108px);
  line-height: 0.96; letter-spacing: -0.025em; margin: 0; color: var(--fg);
}
.hero-h1 .word {
  display: inline-block; opacity: 0; transform: translateY(20px);
  animation: word-in 0.9s var(--ease-out-soft) forwards;
}
@keyframes word-in { to { opacity: 1; transform: translateY(0); } }

/* Animated underline on "остаётся" — slides in from the left, sits behind text */
.hero-h1 .accent {
  position: relative; display: inline-block;
  color: var(--burgundy); font-style: italic;
  isolation: isolate;
}
.hero-h1 .accent::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%; bottom: 6%;
  height: 18%;
  background: var(--gold);
  border-radius: 4px;
  z-index: -1;
  transform: translateX(-110vw);
  animation: underline-slide 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
@keyframes underline-slide {
  from { transform: translateX(-110vw); }
  to   { transform: translateX(0); }
}

.hero-h1 .script {
  font-family: var(--font-script); font-style: normal; font-weight: 400;
  color: var(--burgundy); letter-spacing: 0; font-size: 0.78em;
}
.hero-lede {
  font-family: var(--font-body); font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55; color: var(--fg-muted);
  max-width: 540px; margin: 32px 0 40px; text-wrap: pretty;
  animation: entrance 1.1s var(--ease-out-soft) 0.5s backwards;
}
.hero-lede em {
  font-family: var(--font-display); font-style: italic;
  color: var(--burgundy); font-weight: 600;
}
.hero-lede-warm {
  font-family: var(--font-display); font-style: normal; font-weight: 500;
  font-size: clamp(20px, 1.85vw, 29px); line-height: 1.36;
  color: var(--fg); max-width: 540px; letter-spacing: -0.01em;
}
.hero-lede-warm em {
  font-style: italic; font-weight: 600; color: var(--burgundy);
  background-image: linear-gradient(to top,
    color-mix(in oklab, var(--gold-soft) 85%, transparent) 0,
    color-mix(in oklab, var(--gold-soft) 85%, transparent) 0.18em,
    transparent 0.18em);
  padding: 0 0.06em 0.02em;
}
.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  animation: entrance 1.1s var(--ease-out-soft) 0.62s backwards;
}

/* Hero portrait — founder cutout + message-card quote */
.hero-portrait{position:relative;margin:0;isolation:isolate;width:100%;max-width:420px;padding-top:min(96px,22.9%);padding-bottom:58px;animation:visual-in 1.4s var(--ease-out-soft) .4s backwards}
@keyframes visual-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
.hp-plate{position:relative;aspect-ratio:8/9;border-radius:28px;overflow:hidden;background:var(--burgundy);box-shadow:var(--shadow-lg);background-image:linear-gradient(to right,color-mix(in oklab,var(--cream) 10%,transparent) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in oklab,var(--cream) 10%,transparent) 1px,transparent 1px);background-size:64px 64px;background-position:center}
.hp-plate::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(circle at 50% 34%,color-mix(in oklab,var(--burgundy-soft) 55%,transparent) 0%,transparent 62%)}
.hp-photo{position:absolute;left:50%;bottom:58px;transform:translateX(-50%);width:102.4%;height:auto;clip-path:inset(-45% 1.17% 0 1.17%);max-width:none;z-index:2;pointer-events:none;filter:drop-shadow(0 22px 38px rgba(60,20,30,.34))}
.hp-note{position:absolute;left:-6%;right:4%;bottom:0;z-index:4;padding:17px 22px 19px;border-radius:26px 26px 26px 8px;background:#FFFAF2;transform:rotate(-1.5deg);box-shadow:0 28px 56px rgba(60,20,30,.26),0 2px 8px rgba(60,20,30,.1)}
.hp-note::after{content:'';position:absolute;top:-13px;right:36px;width:30px;height:15px;background:inherit;clip-path:polygon(0 100%,100% 100%,58% 0)}
.hp-note-head{display:flex;align-items:center;gap:12px;margin-bottom:11px}
.hp-ava{width:46px;height:46px;border-radius:50%;flex:none;box-shadow:0 0 0 2px color-mix(in oklab,var(--gold-soft) 75%,transparent)}
.hp-who{display:flex;flex-direction:column;gap:3px;min-width:0}
.hp-sign{font-family:var(--font-hand);font-weight:600;font-size:clamp(29px,2.6vw,36px);line-height:.86;color:var(--burgundy)}
.hp-role{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-muted);display:flex;align-items:baseline;gap:5px}
.hp-brand{font-family:var(--font-script);text-transform:none;letter-spacing:0;font-size:16px;line-height:1;color:var(--burgundy)}
.hp-note p{margin:0;font-size:clamp(13.6px,1.02vw,15.4px);line-height:1.62;color:var(--fg);text-wrap:pretty}
.hp-note p strong{font-weight:700;color:var(--burgundy)}
.hp-note p .lead{font-family:var(--font-display);font-style:italic;font-weight:600;color:var(--burgundy);font-size:1.14em}
@media (max-width:999px){.hero-text{position:relative;z-index:5}.hero-portrait{margin:24px auto 0}}
@media (max-width:600px){.hp-note{left:0;right:0;transform:rotate(-1deg)}}

/* Scattered floating letters behind the central name */
.hv-letters {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hv-letter {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  color: var(--cream);
  opacity: 0.1;
  line-height: 0.85;
  letter-spacing: -0.04em;
  user-select: none;
}
.hv-letter.script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--gold-soft);
  opacity: 0.18;
  letter-spacing: 0;
}

/* Slow chaotic drift — four independent paths so adjacent letters move differently */
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(18px, -22px) rotate(6deg); }
  66%      { transform: translate(-12px, 14px) rotate(-4deg); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-22px, 18px) rotate(-8deg); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(12px, 18px) rotate(4deg); }
  75%      { transform: translate(-16px, -12px) rotate(-6deg); }
}
@keyframes float-d {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40%      { transform: translate(22px, 6px) rotate(8deg); }
  80%      { transform: translate(-10px, -20px) rotate(-3deg); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3; opacity: 0.7;
}
.scroll-cue .l {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted);
}
.scroll-cue .line { width: 1px; height: 32px; background: var(--fg-muted); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; inset: 0; background: var(--burgundy);
  animation: scroll-line 2.2s var(--ease-in-out-elegant) infinite;
}
@keyframes scroll-line { 0%{transform:translateY(-100%);} 60%,100%{transform:translateY(100%);} }

/* Hero entrance keyframes */
@keyframes entrance { from{opacity:0; transform:translateY(24px);} to{opacity:1; transform:translateY(0);} }

/* =========================================================================
   ПОДХОД — тёплый воздушный блок с цитатой основателя
   ========================================================================= */
.around {
  background: color-mix(in oklab, var(--cream) 97%, var(--gold-soft));
  border-top: 1px solid color-mix(in oklab, var(--gold-soft) 40%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--gold-soft) 40%, transparent);
}
.around-head{max-width:720px}
.around-title{max-width:22ch}
.around-title .mark{position:relative;white-space:nowrap;color:var(--burgundy);z-index:0}
.around-title .mark::before{content:'';position:absolute;z-index:-1;left:-.14em;right:-.14em;top:.14em;bottom:.02em;border-radius:6px 14px 8px 12px;transform:rotate(-.8deg);background:linear-gradient(100deg,color-mix(in oklab,var(--gold-soft) 62%,transparent),color-mix(in oklab,var(--gold) 42%,transparent) 55%,color-mix(in oklab,var(--gold-soft) 58%,transparent))}
.around-card{position:relative;margin:clamp(40px,5vw,68px) auto 0;max-width:660px;padding:clamp(26px,3vw,34px) clamp(26px,3.4vw,40px) clamp(28px,3.2vw,36px);border-radius:28px 28px 28px 8px;background:#FFFAF2;transform:rotate(-1deg);box-shadow:0 28px 56px rgba(60,20,30,.16),0 2px 8px rgba(60,20,30,.07)}
.around-card::after{content:'';position:absolute;top:-13px;right:52px;width:30px;height:15px;background:inherit;clip-path:polygon(0 100%,100% 100%,58% 0)}
.ac-head{display:flex;align-items:center;gap:13px;margin-bottom:clamp(16px,2vw,20px)}
.ac-ava{width:54px;height:54px;border-radius:50%;flex:none;box-shadow:0 0 0 2px color-mix(in oklab,var(--gold-soft) 75%,transparent)}
.ac-who{display:flex;flex-direction:column;gap:4px;min-width:0}
.ac-sign{font-family:var(--font-hand);font-weight:600;font-size:clamp(32px,3vw,40px);line-height:.84;color:var(--burgundy)}
.ac-role{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-muted);display:flex;align-items:baseline;gap:5px}
.ac-brand{font-family:var(--font-script);text-transform:none;letter-spacing:0;font-size:17px;line-height:1;color:var(--burgundy)}
.ac-text{margin:0;font-family:var(--font-display);font-style:italic;font-weight:400;font-size:clamp(18px,1.7vw,24px);line-height:1.52;letter-spacing:-.01em;color:var(--fg);text-wrap:pretty}
.ac-text strong{font-weight:700;color:var(--burgundy)}
.ac-strong{position:relative;margin:clamp(22px,2.6vw,30px) 0 0;padding-top:clamp(20px,2.4vw,26px);font-family:var(--font-hand);font-weight:600;font-size:clamp(26px,2.8vw,38px);line-height:1.16;color:var(--burgundy);text-wrap:pretty}
.ac-strong::before{content:'';position:absolute;top:0;left:0;width:88px;height:1px;background:linear-gradient(to right,var(--gold),transparent)}
.ac-strong em{font-style:normal;color:color-mix(in oklab,var(--burgundy) 70%,var(--gold))}
@media (max-width:600px){.around-card{transform:none;border-radius:24px}.around-card::after{display:none}}

/* =========================================================================
   PROCESS — Как мы работаем
   ========================================================================= */
.process-head {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  margin-bottom: 80px; align-items: stretch;
}
@media (min-width: 1000px) { .process-head { grid-template-columns: 1.35fr 0.8fr; gap: 64px; } }

.process-title {
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.98;
  margin-top: 20px;
}
.process-title em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--burgundy);
  font-weight: 700;
}
.process-title .script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--burgundy);
  font-size: 0.9em;
  line-height: 0.9;
}
/* English Habit System card — burgundy plate */
.ehs-card {
  background: var(--burgundy);
  color: var(--cream);
  border-radius: 28px;
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--cream) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--cream) 10%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  box-shadow: var(--shadow-lg);
  min-height: 360px;
}
.ehs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, color-mix(in oklab, var(--gold) 20%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.ehs-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative; z-index: 1;
}
.ehs-label::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--gold);
}
.ehs-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(64px, 7vw, 96px);
  line-height: 0.88;
  color: var(--cream);
  margin: 0;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  position: relative; z-index: 1;
}
.ehs-name span:nth-child(2) { margin-left: 0.8em; }
.ehs-name span:nth-child(3) { margin-left: 1.6em; color: var(--gold-soft); }
.ehs-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--cream) 78%, var(--burgundy));
  margin: 8px 0 0;
  max-width: 360px;
  position: relative; z-index: 1;
}
.ehs-seal {
  margin-top: auto;
  font-family: var(--font-script);
  color: var(--gold-soft);
  font-size: 26px;
  transform: rotate(-3deg);
  align-self: flex-end;
  position: relative; z-index: 1;
}

.steps {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  /* no longer hairline grid — each card is its own elevated tile */
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.step {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  border-radius: 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  transition:
    background var(--dur-base) var(--ease-out-soft),
    color var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft),
    box-shadow var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-base) var(--ease-out-soft);
}
/* Decorative blob behind number */
.step::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--gold) 28%, transparent) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-soft);
  z-index: -1;
}

/* Hover: a small lift and a soft shadow only — no colour flip. */
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--gold) 45%, var(--line));
}

.step-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 4px;
}
.step-n {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 64px; line-height: 0.9;
  color: var(--burgundy);
  letter-spacing: -0.04em;
  position: relative; padding-bottom: 6px;
}
.step-n::after {
  content: '';
  position: absolute;
  left: 4px; bottom: 0;
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.step:hover .step-n::after { width: 36px; }

.step-icon {
  width: 28px; height: 28px;
  color: var(--burgundy-tint);
  opacity: 0.55;
  margin-top: 12px;
  transition: color var(--dur-base) var(--ease-out-soft), opacity var(--dur-base);
}
.step:hover .step-icon { opacity: 1; }

.step-h {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 24px; line-height: 1.15; margin: 0;
  color: inherit;
}
.step-p {
  font-size: 14.5px; line-height: 1.55; margin: 0;
  color: var(--fg-muted);
  transition: color var(--dur-base) var(--ease-out-soft);
}
.step-p em {
  font-family: var(--font-display); font-style: italic;
  color: var(--burgundy); font-weight: 600;
}

.step-tag {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--gold) 30%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent);
  transition: all var(--dur-base) var(--ease-out-soft);
}

.process-result {
  margin-top: 56px; padding: 36px 40px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 24px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: center;
}
@media (min-width: 800px) { .process-result { grid-template-columns: 1fr auto; gap: 48px; } }
.process-result .h {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 26px; line-height: 1.2; color: var(--fg); margin: 0 0 8px;
}
.process-result .h em {
  font-style: italic; color: var(--burgundy);
}
.process-result .p { font-size: 15px; line-height: 1.55; color: var(--fg-muted); margin: 0; max-width: 640px; }

/* =========================================================================
   TEAM — Наша команда
   ========================================================================= */
.team-head { margin-bottom: 64px; max-width: 800px; }
.team-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1.35;
  color: var(--fg); margin: 28px 0 0; text-wrap: balance;
}
.team-sub .role-word {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.24em;
  color: var(--burgundy);
  display: inline-block; min-width: 12ch;
  position: relative;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.team-sub .role-word::after {
  content: '|'; color: var(--gold); margin-left: 2px;
  animation: caret 0.8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.team-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

.team-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.team-photo {
  position: relative;
  aspect-ratio: 5/4;
  background: var(--burgundy);
  overflow: hidden;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out-soft);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
/* Soft burgundy gradient overlay — keeps photos on-brand without smothering them */
.team-photo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--burgundy-deep) 60%, transparent) 100%),
    linear-gradient(135deg, color-mix(in oklab, var(--burgundy) 12%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.team-photo .photo-badge {
  position: absolute; z-index: 2;
  top: 20px; left: 20px;
  background: var(--cream); color: var(--burgundy-deep);
  padding: 8px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgba(28, 0, 5, 0.5);
}
.team-photo .photo-tag {
  position: absolute; z-index: 2;
  bottom: 18px; right: 22px;
  font-family: var(--font-script);
  color: var(--cream); font-size: 38px;
  transform: rotate(-4deg);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.team-body { padding: 36px 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.team-body h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin: 0;
  text-wrap: balance;
}
.team-body h3 .name { color: var(--burgundy); }
.team-section-h {
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.team-section-h::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--gold);
}
.team-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.team-list li {
  font-size: 15px; line-height: 1.5; color: var(--fg);
  padding-left: 18px; position: relative;
}
.team-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.team-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.team-langs .lang {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-alt); color: var(--fg);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
}
.team-langs .lang .lvl {
  font-family: var(--font-display); font-style: italic;
  color: var(--burgundy); font-weight: 700; font-size: 12px;
}
.team-exp-callout {
  margin-top: auto; padding: 18px 22px;
  background: var(--burgundy); color: var(--cream);
  border-radius: 18px;
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap;
}
.team-exp-callout .yrs {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 44px; line-height: 1; color: var(--gold-soft);
}
.team-exp-callout .lbl {
  font-size: 14px; line-height: 1.4;
  color: color-mix(in oklab, var(--cream) 85%, var(--burgundy));
  flex: 1 1 200px;
}

/* =========================================================================
   TESTIMONIALS — auto-scroll cards w/ video on click
   ========================================================================= */
.testi-section { overflow: hidden; }
.testi-head {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: 56px; align-items: end;
}
@media (min-width: 900px) { .testi-head { grid-template-columns: 1.2fr 1fr; } }

.testi-track-wrap {
  position: relative; margin: 0 -24px;
}
.testi-track-wrap::before, .testi-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2; pointer-events: none;
}
.testi-track-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.testi-track-wrap::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.testi-track {
  display: flex; gap: 20px; padding: 12px 24px;
  animation: marquee 70s linear infinite;
  width: max-content;
  will-change: transform;
}
.testi-track:hover,
.testi-track.paused { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

.testi-card {
  width: 340px; flex-shrink: 0; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
  position: relative;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-card.dark { background: var(--burgundy); color: var(--cream); border-color: transparent; }
.testi-card.dark .testi-name { color: var(--cream); }
.testi-card.dark .testi-city { color: color-mix(in oklab, var(--cream) 70%, var(--burgundy)); }

.testi-photo {
  aspect-ratio: 4/3;
  background: var(--burgundy-soft);
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-soft) 100%);
  display: grid; place-items: center;
}
.testi-photo::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--cream) 8%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--cream) 8%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.testi-photo .ini {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 120px; color: var(--cream); opacity: 0.22; line-height: 1;
}
.testi-photo img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  transition: transform 0.6s var(--ease-out-soft);
}
.testi-card:hover .testi-photo img { transform: scale(1.045); }
.testi-photo .scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--burgundy-deep) 60%, transparent) 0%, color-mix(in oklab, var(--burgundy-deep) 12%, transparent) 38%, transparent 62%);
}
.testi-photo .vlabel {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px 6px 9px; border-radius: 999px;
  background: color-mix(in oklab, var(--burgundy-deep) 55%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--cream); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.testi-photo .vlabel svg { width: 12px; height: 12px; }
.testi-photo .play {
  position: absolute; z-index: 3; bottom: 16px; left: 16px;
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--cream); color: var(--burgundy-deep);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.testi-card:hover .play { transform: scale(1.1); }
.testi-photo .play svg { width: 20px; height: 20px; margin-left: 2px; }

.testi-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.testi-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.testi-name {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 22px; color: var(--fg); margin: 0;
}
.testi-city {
  font-family: var(--font-script);
  color: var(--burgundy-tint); font-size: 20px;
}
.testi-row { display: flex; align-items: flex-start; gap: 14px; }
.testi-row .marker {
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  flex-shrink: 0; min-width: 56px; text-align: center;
}
.testi-row.before .marker {
  background: color-mix(in oklab, var(--burgundy-ink) 10%, var(--cream));
  color: var(--burgundy-ink);
}
.testi-card.dark .testi-row.before .marker { background: color-mix(in oklab, var(--cream) 14%, transparent); color: var(--cream); }
.testi-row.after .marker {
  background: var(--gold); color: var(--burgundy-deep);
}
.testi-row .text {
  font-size: 14px; line-height: 1.5;
  color: var(--fg);
}
.testi-card.dark .testi-row .text { color: color-mix(in oklab, var(--cream) 90%, var(--burgundy)); }

.testi-hint {
  text-align: center; margin-top: 40px;
  font-family: var(--font-hand);
  color: var(--fg-muted); font-size: 22px;
}
.testi-hint .arr {
  display: inline-block; margin-right: 8px; color: var(--gold);
}

.testi-final {
  margin-top: 64px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(28px, 4vw, 56px); line-height: 1.1;
  color: var(--fg); text-wrap: balance;
}
.testi-final .accent {
  position: relative; display: inline-block;
  color: var(--burgundy);
}
.testi-final .accent::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 8%;
  height: 14%; background: var(--gold); opacity: 0.85; z-index: -1;
  border-radius: 4px;
}

/* Rotating word inside .testi-final .accent — per-letter stagger rise */
.rotor {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.rotor-sizer {
  visibility: hidden;
  display: inline-block;
  pointer-events: none;
}
.rotor-word {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.rotor-word .rl {
  display: inline-block;
  white-space: pre;
  transition:
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 360ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
/* Entering: each letter rises up into place, staggered */
.rotor-word.incoming .rl {
  opacity: 0;
  transform: translateY(0.62em);
}
/* Leaving: each letter lifts away, staggered */
.rotor-word.outgoing .rl {
  opacity: 0;
  transform: translateY(-0.5em);
}
@media (prefers-reduced-motion: reduce) {
  .rotor-word .rl {
    transition-duration: 200ms !important;
    transition-delay: 0ms !important;
    transform: none !important;
  }
}

/* Video overlay */
.video-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: color-mix(in oklab, var(--burgundy-deep) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out-soft);
}
.video-overlay.open { display: flex; opacity: 1; }
.video-overlay .frame {
  width: min(720px, 100%); max-height: 90vh;
  background: var(--burgundy); border-radius: 28px;
  overflow: hidden; position: relative;
  border: 1px solid color-mix(in oklab, var(--cream) 18%, transparent);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-rows: auto 1fr;
}
.video-overlay .frame .topbar {
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  color: var(--cream); border-bottom: 1px solid color-mix(in oklab, var(--cream) 14%, transparent);
}
.video-overlay .frame .topbar .name {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 22px;
}
.video-overlay .frame .close {
  width: 38px; height: 38px; border-radius: 999px;
  background: transparent; color: var(--cream);
  border: 1px solid color-mix(in oklab, var(--cream) 30%, transparent);
  cursor: pointer; display: grid; place-items: center;
}
.video-overlay .frame .stage {
  background: var(--burgundy-deep); min-height: 340px;
  display: grid; place-items: center; color: color-mix(in oklab, var(--cream) 70%, var(--burgundy));
  padding: 32px; text-align: center;
}
.video-overlay .frame .stage video {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 76vh; background: #000;
}
.video-overlay .frame .stage .ph-title {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(24px, 3vw, 40px); margin: 0 0 12px; color: var(--cream);
}
.video-overlay .frame .stage .ph-sub {
  font-size: 14px; max-width: 480px;
}

/* =========================================================================
   TRIAL — 4 points + form
   ========================================================================= */
.trial-section {
  background: var(--burgundy); color: var(--cream);
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--cream) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--cream) 7%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
}
.trial-section .eyebrow { color: color-mix(in oklab, var(--cream) 75%, var(--burgundy)); }
.trial-section .eyebrow::before { background: var(--gold); }
.trial-section .section-title { color: var(--cream); }
.trial-section .section-title .script { color: var(--gold-soft); }
.trial-section .section-sub { color: color-mix(in oklab, var(--cream) 75%, var(--burgundy)); }

.trial-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: 1fr; gap: 48px;
  align-items: stretch;
}
@media (min-width: 1000px) { .trial-grid { grid-template-columns: 1fr 0.95fr; gap: 56px; align-items: stretch; } }

.trial-points {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  height: 100%;
}
@media (min-width: 600px) { .trial-points { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; align-content: start; } }
/* Beside the form: one column so the spare space splits across three gaps
   and the block's total height matches the form without hollow cards. */
@media (min-width: 1000px) { .trial-points { grid-template-columns: 1fr; align-content: space-between; }
  /* Number + heading centred as a group rather than pinned to the left edge. */
  .trial-point { padding: 42px 34px; grid-template-columns: auto auto; justify-content: center; }
  .trial-point .h { padding-right: 0; max-width: 15ch; }
}

.trial-point {
  position: relative;
  /* Number beside the heading so the card hugs its content instead of
     leaving a tall empty strip under the title. */
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 20px;
  padding: 38px 30px;
  background: color-mix(in oklab, var(--burgundy-deep) 50%, transparent);
  border: 1px solid color-mix(in oklab, var(--cream) 14%, transparent);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  transition: all var(--dur-base) var(--ease-out-soft);
}
/* Decorative gold blob behind the number */
.trial-point::before {
  content: '';
  position: absolute;
  top: -70px; left: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--gold) 28%, transparent) 0%, transparent 70%);
  opacity: 0.5;
  z-index: -1;
  transition: opacity var(--dur-base) var(--ease-out-soft), transform var(--dur-slow) var(--ease-out-soft);
}
.trial-point:hover {
  background: color-mix(in oklab, var(--cream) 8%, var(--burgundy-deep));
  border-color: var(--gold);
  transform: translateY(-3px);
}
.trial-point:hover::before { opacity: 0.9; transform: scale(1.1); }

.trial-point .n {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 42px; line-height: 0.9;
  color: var(--gold-soft); letter-spacing: -0.04em;
  position: relative; padding-bottom: 8px;
}
.trial-point .n::after {
  content: '';
  position: absolute;
  left: 6px; bottom: 0;
  width: 32px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.trial-point .h {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 20px; line-height: 1.3; margin: 0; padding-right: 40px;
  color: var(--cream); max-width: 220px;
  text-wrap: pretty;
}
.trial-point .icon {
  position: absolute; top: 50%; right: 20px; margin-top: -15px;
  width: 30px; height: 30px;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
}
.trial-point:hover .icon { opacity: 1; transform: rotate(-6deg) scale(1.1); }
.trial-point .tag {
  margin-top: auto;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--gold-soft);
  align-self: flex-start;
  transform: rotate(-2deg);
}

.trial-form {
  background: color-mix(in oklab, var(--burgundy-deep) 70%, transparent);
  border-radius: 28px; padding: 36px;
  border: 1px solid color-mix(in oklab, var(--cream) 14%, transparent);
  display: flex; flex-direction: column; gap: 16px;
}
.trial-form .form-title {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 26px; line-height: 1.2; margin: 0 0 4px;
  color: var(--cream);
}
.trial-form .form-sub {
  font-size: 14px; color: color-mix(in oklab, var(--cream) 70%, var(--burgundy));
  margin: 0 0 12px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600;
}
.field input, .field select {
  font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid color-mix(in oklab, var(--cream) 20%, transparent);
  background: color-mix(in oklab, var(--burgundy-deep) 60%, transparent);
  color: var(--cream); outline: none;
  transition: all var(--dur-fast) var(--ease-out-soft);
}
.field input::placeholder { color: color-mix(in oklab, var(--cream) 45%, transparent); }
.field input:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 22%, transparent);
}
.trial-form .btn {
  background: var(--cream); color: var(--burgundy-deep);
  justify-content: center; margin-top: 8px;
  transition:
    background var(--dur-base) var(--ease-out-soft),
    color var(--dur-base) var(--ease-out-soft),
    opacity var(--dur-base) var(--ease-out-soft),
    filter var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft);
}
.trial-form .btn:hover { background: var(--gold-soft); }
.trial-form .btn::before { background: var(--gold-soft); }

/* Dim "locked" state — until consent checkbox is ticked */
.trial-form .btn.is-disabled {
  opacity: 0.5;
  filter: saturate(0.55);
  cursor: not-allowed;
}
.trial-form .btn.is-disabled:hover { background: var(--cream); }

/* Sending / success states */
.trial-form .btn.is-sending { opacity: 0.85; cursor: progress; }
.trial-form .btn.is-success {
  background: color-mix(in oklab, var(--gold-soft) 80%, var(--cream));
  color: var(--burgundy-deep);
}

.trial-form .small {
  font-size: 12px; color: color-mix(in oklab, var(--cream) 60%, var(--burgundy));
  line-height: 1.45;
}
.trial-form .small a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--gold-soft) 50%, transparent);
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-out-soft),
              text-decoration-color var(--dur-fast) var(--ease-out-soft);
}
.trial-form .small a:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

/* Consent row: checkbox + agreement text */
.trial-form .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 2px;
  padding: 2px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.trial-form .consent-check {
  /* visually hidden but still focusable */
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}
.trial-form .consent-box {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid color-mix(in oklab, var(--cream) 40%, transparent);
  background: color-mix(in oklab, var(--burgundy-deep) 60%, transparent);
  display: inline-grid; place-items: center;
  color: var(--burgundy-deep);
  margin-top: 1px;
  flex-shrink: 0;
  transition:
    background var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-base) var(--ease-out-soft),
    box-shadow var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft);
}
.trial-form .consent-box svg {
  width: 14px; height: 14px;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft);
}
.trial-form .consent:hover .consent-box {
  border-color: color-mix(in oklab, var(--gold) 70%, var(--cream));
}
.trial-form .consent-check:checked + .consent-box {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.trial-form .consent-check:checked + .consent-box svg {
  opacity: 1;
  transform: scale(1);
}
.trial-form .consent-check:focus-visible + .consent-box {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 40%, transparent);
}
.trial-form .consent-text { margin: 0; }

/* Pulse to attract attention when user tries to submit without ticking */
@keyframes consent-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0   color-mix(in oklab, var(--gold) 70%, transparent); }
  40%  { transform: scale(1.18); box-shadow: 0 0 0 12px color-mix(in oklab, var(--gold) 0%,  transparent); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0   color-mix(in oklab, var(--gold) 0%,  transparent); }
}
.trial-form .consent-box.is-prompting {
  background: color-mix(in oklab, var(--gold) 40%, var(--burgundy-deep));
  border-color: var(--gold);
  color: var(--burgundy-deep);
  animation: consent-pulse 0.7s var(--ease-out-soft) 2;
}

/* =========================================================================
   DIRECTIONS — pills + detail
   ========================================================================= */
.dir-head { margin-bottom: 56px; max-width: 720px; }
.courses-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.course-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1.5px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition:
    background var(--dur-base) var(--ease-out-soft),
    color var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-base) var(--ease-out-soft),
    box-shadow var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft),
    padding var(--dur-base) var(--ease-out-soft);
}
.course-pill .pill-icon {
  width: 18px; height: 18px;
  color: var(--burgundy);
  flex-shrink: 0;
  opacity: 0.7;
  transition: color var(--dur-base) var(--ease-out-soft),
              opacity var(--dur-base) var(--ease-out-soft),
              transform var(--dur-base) var(--ease-out-soft);
}
.course-pill:hover {
  background: var(--cream-bright);
  border-color: color-mix(in oklab, var(--gold) 70%, var(--cream));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.course-pill:hover .pill-icon {
  color: var(--gold);
  opacity: 1;
  transform: rotate(-6deg);
}
.course-pill.active {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--gold);
  padding-right: 26px;
  box-shadow:
    0 0 0 3px color-mix(in oklab, var(--gold) 26%, transparent),
    0 18px 36px -14px rgba(62, 0, 12, 0.45);
  transform: translateY(-1px);
}
.course-pill.active .pill-icon { color: var(--gold); opacity: 1; transform: none; }

.course-detail {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  align-items: start;
  background: var(--burgundy); color: var(--cream);
  border-radius: 28px; padding: 48px 40px;
  border: 1px solid var(--line);
  transition: opacity var(--dur-base) var(--ease-out-soft),
              transform var(--dur-base) var(--ease-out-soft);
}
@media (min-width: 900px) { .course-detail { grid-template-columns: 1.2fr 0.8fr; padding: 56px; } }
.course-detail .eyebrow { color: var(--gold-soft); }
.course-detail .eyebrow::before { background: var(--gold); }
.course-detail h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; margin: 18px 0 16px;
  color: var(--cream);
}
.course-detail .desc {
  color: color-mix(in oklab, var(--cream) 82%, var(--burgundy));
  font-size: 16px; line-height: 1.6; margin: 0 0 24px;
  font-family: var(--font-display); font-style: italic;
}
.course-detail .bullets { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px; }
.course-detail .bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  color: color-mix(in oklab, var(--cream) 88%, var(--burgundy));
  font-size: 15px; line-height: 1.55;
}
.course-detail .bullets li::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--gold);
  margin-top: 8px; flex-shrink: 0;
}
.course-detail .note {
  margin: 28px 0 0;
  font-size: 14px; line-height: 1.5;
  color: color-mix(in oklab, var(--cream) 72%, var(--burgundy));
  padding: 16px 18px;
  border: 1px dashed color-mix(in oklab, var(--gold) 60%, transparent);
  border-radius: 12px;
}
.course-detail .cta { margin-top: 28px; }
.course-detail .cta .btn {
  background: var(--cream); color: var(--burgundy-deep);
}
.course-detail .cta .btn:hover { background: var(--gold-soft); }
.course-detail .cta .btn::before { background: var(--gold-soft); }

/* Aside: either a framed illustration (most courses) or the paper-stack (legal) */
.course-aside { position: relative; }
.course-media { margin: 0; }
.course-media img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 0; border-radius: 0; box-shadow: none;
  background: var(--burgundy);
}
.course-aside.is-paper .course-media { display: none; }
.course-aside.is-image .paper-stack { display: none; }

/* Paper-stack visual aside */
.paper-stack { position: relative; aspect-ratio: 1/1.05; min-height: 340px; }
.paper {
  position: absolute;
  background: var(--cream-paper);
  color: var(--burgundy-deep);
  border-radius: 6px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.1);
  padding: 22px 20px; width: 72%; aspect-ratio: 0.76;
  font-family: var(--font-display); font-style: italic;
}
.paper .title {
  font-weight: 600; font-size: 13px; margin-bottom: 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--burgundy-ink) 30%, transparent);
  padding-bottom: 8px;
}
.paper .lines { display: flex; flex-direction: column; gap: 9px; }
.paper .line { height: 5px; border-radius: 99px; background: color-mix(in oklab, var(--burgundy-ink) 22%, transparent); }
.paper .line.short { width: 62%; } .paper .line.shorter { width: 40%; }
.paper-1 { top: 4%; left: 6%; transform: rotate(-8deg); z-index: 1; background: var(--cream-bright); }
.paper-2 { top: 14%; right: 8%; transform: rotate(6deg); z-index: 2; background: var(--cream); }
.paper-3 { bottom: 8%; left: 18%; transform: rotate(-3deg); z-index: 3; background: var(--cream-paper); }

/* =========================================================================
   TARIFFS
   ========================================================================= */
.tariffs-head { text-align: center; max-width: 760px; margin: 0 auto 72px; }
.tariffs-head .eyebrow { justify-content: center; display: inline-flex; }
.tariffs-head .section-sub { margin: 24px auto 0; }

.tariffs-divider{display:flex;align-items:center;gap:16px;margin:0 0 24px}
.tariffs-divider span{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:color-mix(in oklab,var(--gold) 55%,var(--burgundy-ink));white-space:nowrap}
.tariffs-divider::after{content:'';flex:1;height:1px;background:linear-gradient(to right,color-mix(in oklab,var(--gold) 45%,transparent),transparent)}

.tariffs-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 900px) { .tariffs-divider{display:flex;align-items:center;gap:16px;margin:0 0 24px}
.tariffs-divider span{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:color-mix(in oklab,var(--gold) 55%,var(--burgundy-ink));white-space:nowrap}
.tariffs-divider::after{content:'';flex:1;height:1px;background:linear-gradient(to right,color-mix(in oklab,var(--gold) 45%,transparent),transparent)}

.tariffs-grid { grid-template-columns: repeat(3, 1fr); } }

.tariff {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 28px; padding: 40px 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: all var(--dur-base) var(--ease-out-soft);
  position: relative;
}
.tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tariff.featured {
  background: var(--burgundy); color: var(--cream);
  border-color: var(--burgundy); box-shadow: var(--shadow-lg);
}
.tariff.featured .t-bullets li { color: color-mix(in oklab, var(--cream) 90%, var(--burgundy)); }
.tariff.featured .price .unit { color: color-mix(in oklab, var(--cream) 72%, var(--burgundy)); }
.tariff .label {
  display: inline-flex; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; color: var(--fg-muted);
}
.tariff.featured .label { color: var(--gold-soft); }
.tariff .t-fit {
  font-family: var(--font-hand); font-size: 19px; font-weight: 600;
  color: color-mix(in oklab, var(--gold) 55%, var(--burgundy-ink)); margin: 4px 0 0; line-height: 1.25;
}
.tariff.featured .t-fit { color: var(--gold-soft); }
.tariff h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 38px; line-height: 1; margin: 0;
  letter-spacing: -0.01em;
}
.tariff .price {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 44px; line-height: 1; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 6px; margin-top: 4px;
}
.tariff .price .from { font-size: 14px; font-style: normal; font-family: var(--font-body); font-weight: 500; color: var(--fg-muted); margin-right: 4px; }
.tariff.featured .price .from { color: color-mix(in oklab, var(--cream) 72%, var(--burgundy)); }
.tariff .price .unit { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: 14px; color: var(--fg-muted); }

.tariff .t-includes {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 600; margin: 8px 0 0;
}
.tariff.featured .t-includes { color: var(--gold-soft); }

.t-bullets { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; }
.t-bullets li {
  display: flex; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--fg);
}
.t-bullets li::before {
  content: ''; display: block; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%; background: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%233E000C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
  margin-top: 1px;
}
.tariff.featured .t-bullets li::before { background-color: var(--gold); }

.featured-flag {
  position: absolute; top: 20px; right: 20px;
  background: var(--gold); color: var(--burgundy-deep);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; font-weight: 700;
}
.tariff .btn { margin-top: auto; align-self: stretch; justify-content: center; }
.tariff.featured .btn { background: var(--cream); color: var(--burgundy-deep); }
.tariff.featured .btn:hover { background: var(--gold-soft); }
.tariff.featured .btn::before { background: var(--gold-soft); }

/* Legal English course plate */
.legal-plate{margin:0 0 32px;background:var(--burgundy-ink,var(--burgundy-deep));border:1px solid color-mix(in oklab,var(--gold) 32%,transparent);background-image:linear-gradient(to right,color-mix(in oklab,var(--gold) 8%,transparent) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in oklab,var(--gold) 8%,transparent) 1px,transparent 1px);background-size:60px 60px,60px 60px}
.legal-plate h3{margin-bottom:14px}
.legal-plate h3 .scr{font-family:var(--font-display);font-style:italic;font-weight:700;font-size:1em;color:var(--gold-soft)}
.legal-plate .lede{margin-bottom:22px;max-width:56ch}
.legal-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px 24px;padding:16px 0;margin-bottom:20px;border-top:1px solid color-mix(in oklab,var(--gold) 26%,transparent);border-bottom:1px solid color-mix(in oklab,var(--gold) 26%,transparent)}
.lm{display:flex;align-items:baseline;gap:9px}
.lm b{font-family:var(--font-display);font-style:italic;font-weight:800;font-size:30px;line-height:1;letter-spacing:-.02em;color:var(--gold-soft);white-space:nowrap}
.lm span{font-size:13px;line-height:1.3;color:color-mix(in oklab,var(--cream) 76%,var(--burgundy));max-width:14ch}
.legal-plate ul{margin-bottom:0}
.legal-media{position:relative;margin:0;min-width:280px;align-self:stretch;min-height:340px;border-radius:22px;overflow:hidden;background:color-mix(in oklab,var(--burgundy) 78%,var(--gold));box-shadow:0 18px 44px rgba(30,10,16,.34);border:1px solid color-mix(in oklab,var(--gold) 26%,transparent)}
.legal-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:luminosity;opacity:.92;filter:contrast(1.05) saturate(.4)}
.legal-media::before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(circle at 50% 34%,color-mix(in oklab,var(--gold) 22%,transparent) 0%,transparent 66%)}
.legal-media-cta{position:absolute;left:0;right:0;bottom:0;padding:64px 18px 18px;background:linear-gradient(to top,rgba(40,12,20,.9),rgba(40,12,20,.5) 45%,transparent);pointer-events:none;z-index:3}
.legal-media-cta .btn{pointer-events:auto;width:100%;justify-content:center;background:var(--cream);color:var(--burgundy-deep)}
.legal-media-cta .btn:hover{background:var(--gold-soft)}
.legal-media-cta .btn::before{background:var(--gold-soft)}
@media (max-width:899px){.legal-media{min-height:300px;min-width:0;width:100%}}

/* Speaking club extra plate */
.speaking-plate {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--burgundy-soft) 0%, var(--burgundy) 100%);
  color: var(--cream); border-radius: 28px;
  padding: clamp(26px, 3.2vw, 38px) clamp(30px, 4.4vw, 52px);
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: center; position: relative; overflow: hidden;
  background-image:
    linear-gradient(135deg, var(--burgundy-soft) 0%, var(--burgundy) 100%),
    linear-gradient(to right, color-mix(in oklab, var(--cream) 8%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--cream) 8%, transparent) 1px, transparent 1px);
  background-blend-mode: normal, normal, normal;
  background-size: auto, 60px 60px, 60px 60px;
}
@media (min-width: 900px) { .speaking-plate { grid-template-columns: 1.2fr auto; gap: 56px; } }
.speaking-plate .label {
  display: inline-flex; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; color: var(--gold-soft);
  gap: 12px; align-items: center;
}
.speaking-plate .label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.speaking-plate h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin: 18px 0 16px;
  color: var(--cream);
}
.speaking-plate h3 .scr { font-family: var(--font-script); font-style: normal; color: var(--gold-soft); font-size: 0.85em; }
.speaking-plate .lede {
  font-size: 16px; line-height: 1.55;
  color: color-mix(in oklab, var(--cream) 80%, var(--burgundy));
  max-width: 560px;
  margin: 0 0 18px;
}
.speaking-plate ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px;
  color: color-mix(in oklab, var(--cream) 88%, var(--burgundy));
  font-size: 14px;
}
.speaking-plate ul li {
  padding-left: 16px; position: relative;
}
.speaking-plate ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.speaking-side {
  background: color-mix(in oklab, var(--burgundy-deep) 60%, transparent);
  border-radius: 22px; padding: 32px 28px;
  border: 1px solid color-mix(in oklab, var(--gold) 30%, transparent);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  min-width: 280px;
}
.speaking-side .from { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.speaking-side .price {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 56px; line-height: 0.95; color: var(--cream);
}
.speaking-side .price .u { font-size: 16px; font-family: var(--font-body); font-style: normal; font-weight: 500; color: color-mix(in oklab, var(--cream) 70%, var(--burgundy)); margin-left: 4px; }
.speaking-side .btn { background: var(--cream); color: var(--burgundy-deep); align-self: stretch; justify-content: center; }
.speaking-side .btn:hover { background: var(--gold-soft); }
.speaking-side .btn::before { background: var(--gold-soft); }

/* Group lessons plate — light variant of the club plate */
.group-plate{margin:0 0 32px;background:color-mix(in oklab,var(--cream) 94%,var(--gold-soft));border:1px solid color-mix(in oklab,var(--gold) 34%,transparent);background-image:linear-gradient(to right,color-mix(in oklab,var(--gold) 12%,transparent) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in oklab,var(--gold) 12%,transparent) 1px,transparent 1px);background-size:60px 60px,60px 60px}
.group-plate h3{color:var(--burgundy-ink);text-wrap:balance}
.group-plate h3 .scr{font-family:var(--font-hand);font-weight:600;color:color-mix(in oklab,var(--gold) 62%,var(--burgundy));font-size:.92em}
.group-plate .label{color:color-mix(in oklab,var(--gold) 58%,var(--burgundy-ink))}
.group-plate .lede{color:var(--fg)}
.group-plate ul li{color:var(--fg)}
.group-plate .speaking-side{background:var(--burgundy);border-color:color-mix(in oklab,var(--gold) 40%,transparent)}
.group-plate .side-note{margin:-6px 0 0;font-family:var(--font-hand);font-weight:600;font-size:22px;line-height:1.1;color:var(--gold-soft)}

/* =========================================================================
   MEDIA — соцсети
   ========================================================================= */
.media-head { max-width: 720px; margin-bottom: 48px; }
.media-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 700px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
/* Phones: compact rows instead of near-square tiles, so all three fit one screen. */
@media (max-width: 699px) {
  .media-grid { gap: 10px; }
  .media-tile {
    aspect-ratio: auto;
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 14px; padding: 14px 52px 14px 16px; border-radius: 16px;
  }
  .media-tile .icon { width: 26px; height: 26px; flex: 0 0 26px; }
  .media-tile .platform { font-size: 19px; }
  .media-tile .handle { font-size: 12px; margin-top: 2px; }
  .media-tile .arrow { top: 50%; right: 14px; margin-top: -14px; width: 28px; height: 28px; }
}

.media-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px; border-radius: 24px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  aspect-ratio: 1/1.08; text-decoration: none; color: var(--fg);
  position: relative; overflow: hidden;
  isolation: isolate;
  transition:
    color var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft);
}
/* Platform-coloured gradient — sweeps in from bottom-right on hover */
.media-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--tile-grad, var(--burgundy));
  clip-path: circle(0% at 85% 90%);
  transition: clip-path 720ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.media-tile.tg { --tile-grad: linear-gradient(135deg, #1F8FCB 0%, #2EA7DF 45%, #5BC6F0 100%); }
.media-tile.ig { --tile-grad: linear-gradient(135deg, #FBB040 0%, #F77737 22%, #DC2743 48%, #C13584 72%, #833AB4 100%); }
.media-tile.mx { --tile-grad: linear-gradient(135deg, #2E9BFF 0%, #3F5EE8 48%, #7B3FD6 100%); }
.media-tile:hover::before { clip-path: circle(150% at 85% 90%); }

.media-tile:hover {
  color: var(--cream);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.media-tile .icon {
  width: 40px; height: 40px; color: var(--burgundy);
  transition: color var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
}
.media-tile:hover .icon { color: var(--cream); transform: rotate(-4deg) scale(1.05); }
.media-tile .platform {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 28px; line-height: 1.1;
}
.media-tile .handle {
  font-size: 13px; color: var(--fg-muted); margin-top: 6px;
  transition: color var(--dur-base) var(--ease-out-soft);
}
.media-tile:hover .handle { color: color-mix(in oklab, var(--cream) 82%, var(--burgundy)); }
.media-tile .arrow {
  position: absolute; top: 28px; right: 28px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: var(--burgundy); color: var(--cream);
  transition: all var(--dur-base) var(--ease-out-soft);
}
.media-tile:hover .arrow {
  background: var(--cream);
  color: var(--burgundy-deep);
  transform: rotate(45deg);
}

.media-note {
  margin-top: 24px; font-size: 12px;
  color: var(--fg-muted);
}

/* =========================================================================
   FOOTER — always dark (burgundy plate, regardless of page theme)
   ========================================================================= */
.footer {
  padding: 96px 0 36px;
  margin-top: 80px;
  background: var(--burgundy-deep);
  color: var(--cream);
  border-top: 0;
  position: relative;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--cream) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--cream) 5%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
}
.footer-top {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; margin-bottom: 56px;
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; } }

/* Mobile: stacked, full-width sections, centered content */
@media (max-width: 899px) {
  .footer-top { gap: 36px; }
  .footer-brand, .footer-col { width: 100%; }

  /* center every top block */
  .footer-brand { text-align: center; }
  .footer-brand > div:first-child { display: inline-block; }
  .footer-brand .sub { margin-left: 0; }
  .footer-brand .tag { max-width: none; margin-left: auto; margin-right: auto; }
  .footer-contacts { width: 100%; align-items: center; text-align: center; }
  .footer-socials { justify-content: center; }

  .footer-col { text-align: center; }
  .footer-col h4 { justify-content: center; }
  .footer-col ul { gap: 8px; align-items: center; }
  .footer-col a { font-size: 15px; }
}

.footer-brand .mark {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 56px; color: var(--cream); line-height: 0.9; letter-spacing: -0.03em;
}
.footer-brand .sub {
  font-family: var(--font-script); font-size: 36px;
  color: var(--gold-soft); margin-left: 24px; margin-top: -8px; display: block;
}
.footer-brand .tag {
  color: color-mix(in oklab, var(--cream) 72%, var(--burgundy));
  font-size: 14px; max-width: 320px; margin-top: 18px;
}

.footer-contacts {
  margin-top: 24px; display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; color: var(--cream);
}
.footer-contacts a {
  color: var(--cream); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
.footer-contacts a:hover { color: var(--gold-soft); }
.footer-contacts .lbl {
  color: var(--gold-soft); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 2px; font-weight: 600;
}

.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--cream) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--cream) 18%, transparent);
  color: var(--cream);
  transition: all var(--dur-base) var(--ease-out-soft);
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--burgundy-deep);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--gold) 60%, transparent);
}
.footer-socials a svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 20px; margin: 0 0 20px;
  color: var(--cream);
  display: inline-flex; align-items: center; gap: 12px;
}
.footer-col h4::after {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold);
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.footer-col li { position: relative; }
.footer-col a {
  display: inline-flex; align-items: center; gap: 8px;
  color: color-mix(in oklab, var(--cream) 72%, var(--burgundy));
  text-decoration: none; font-size: 14px;
  padding: 6px 0;
  position: relative;
  transition:
    color var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft),
    padding-left var(--dur-base) var(--ease-out-soft);
}
/* Sliding gold arrow before each link on hover */
.footer-col a::before {
  content: '→';
  display: inline-block;
  color: var(--gold);
  opacity: 0;
  margin-right: -14px;
  transform: translateX(-8px);
  transition:
    opacity var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft),
    margin var(--dur-base) var(--ease-out-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
}
/* Gold underline that grows from left on hover */
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--dur-base) var(--ease-out-soft);
}
.footer-col a:hover {
  color: var(--gold-soft);
  transform: translateX(2px);
}
.footer-col a:hover::before {
  opacity: 1;
  transform: translateX(0);
  margin-right: 4px;
}
.footer-col a:hover::after {
  width: calc(100% - 22px);
  background: var(--gold);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in oklab, var(--cream) 14%, transparent);
  font-size: 13px;
  color: color-mix(in oklab, var(--cream) 60%, var(--burgundy));
}
.footer-bottom .right { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a {
  color: inherit; text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
.footer-bottom a:hover { color: var(--gold-soft); }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
/* Gated on html.js: without JS the content must simply be visible. */
html.js .reveal { opacity: 0; transform: translateY(28px);
  transition: opacity 900ms var(--ease-out-soft), transform 900ms var(--ease-out-soft); }
html.js .reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* =========================================================================
   PHONE REFINEMENT — keep single-column card stacks from stretching
   edge-to-edge; cap and center them for a more composed feel. Section
   titles/intros stay full-width to preserve hierarchy.
   (≤600px is the zone where every grid below has collapsed to 1 column.)
   ========================================================================= */
@media (max-width: 600px) {
  .stats-grid,
  .steps,
  .team-grid,
  .tariffs-grid,
  .media-grid,
  .speaking-plate,
  .trial-form {
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .testi-track { animation: none; }
  .hero-h1 .word { opacity: 1; transform: none; }
}

/* =========================================================================
   MOBILE OVERFLOW FIXES — keep the page from scrolling sideways and stop
   long button labels / forced-nowrap headings from being clipped on phones.
   ========================================================================= */

/* Belt-and-suspenders: the document itself must never scroll horizontally. */
html { overflow-x: clip; }

/* "nowrap-lg" headings (e.g. Directions title) only stay on one line on
   roomy screens; on phones they wrap normally instead of overflowing. */
.nowrap-lg { white-space: nowrap; }
@media (max-width: 700px) {
  .nowrap-lg { white-space: normal; }
}

/* Buttons: never clip their label. On narrow screens let the text wrap and
   centre, rather than overflowing the rounded pill (which has overflow:hidden). */
@media (max-width: 600px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding: 13px 22px;
    font-size: 14px;
    gap: 9px;
  }
  .btn .btn-arrow svg { width: 18px; height: 18px; }
  /* Primary CTAs inside content panels read better full-width on a phone. */
  .hero-cta-row .btn,
  .process-result .btn,
  .course-detail .cta .btn,
  .trial-form .btn,
  .tariff .btn,
  .speaking-side .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Speaking-club price card: drop the desktop min-width so it fits a phone. */
@media (max-width: 899px) {
  .speaking-side { min-width: 0; width: 100%; }
}

/* Course-detail panel: trim the generous desktop padding on small screens so
   the burgundy plate and its contents sit comfortably inside the viewport. */
@media (max-width: 600px) {
  .course-detail { padding: 32px 22px; gap: 32px; }
  .trial-point { padding: 20px 18px; column-gap: 14px; }
  .trial-form { padding: 24px 20px; }

  /* Trial section: trim the type scale so the description and form sit
     comfortably within the phone viewport. */
  .trial-grid { margin-top: 40px; gap: 32px; }
  .trial-section .section-sub { font-size: 15px; }
  .trial-point .n { font-size: 34px; }
  .trial-point .h { font-size: 17px; padding-right: 34px; }
  .trial-point .icon { width: 26px; height: 26px; right: 16px; margin-top: -13px; }
  .trial-form .form-title { font-size: 22px; }
  .field input, .field select { font-size: 16px; padding: 12px 14px; }
  .field label { font-size: 10.5px; }
}

/* =========================================================================
   TRIAL FORM — multi-select goal chips + field validation
   ========================================================================= */
.field .field-label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-soft);font-weight:600}
.field-hint{margin:2px 0 0;font-size:11.5px;color:color-mix(in oklab,var(--cream) 55%,var(--burgundy))}
/* Even 2-col grid instead of a ragged wrap; the odd 7th row spans full width. */
.goal-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px;align-items:stretch}
.goal-chips > .goal-chip:last-child:nth-child(odd){grid-column:1 / -1}
.field .goal-chip{min-height:46px;line-height:1.25;text-align:left}
.field .goal-chip{display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-family:var(--font-body);font-size:13.5px;font-weight:500;letter-spacing:0;text-transform:none;color:color-mix(in oklab,var(--cream) 88%,var(--burgundy));padding:9px 14px;border-radius:999px;border:1.5px solid color-mix(in oklab,var(--cream) 26%,transparent);background:color-mix(in oklab,var(--burgundy) 45%,transparent);transition:background var(--dur-fast) var(--ease-out-soft),border-color var(--dur-fast) var(--ease-out-soft),color var(--dur-fast) var(--ease-out-soft);-webkit-tap-highlight-color:transparent}
.field .goal-chip:hover{border-color:color-mix(in oklab,var(--gold) 65%,transparent)}
.goal-chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.goal-chip .tick{width:15px;height:15px;flex:0 0 15px;border-radius:5px;border:1.5px solid color-mix(in oklab,var(--cream) 40%,transparent);display:grid;place-items:center;transition:all var(--dur-fast) var(--ease-out-soft)}
.goal-chip .tick svg{width:10px;height:10px;opacity:0;transform:scale(.5);transition:all var(--dur-fast) var(--ease-out-soft);color:var(--burgundy-deep)}
.field .goal-chip:has(input:checked){background:var(--gold-soft);border-color:var(--gold);color:var(--burgundy-deep)}
.goal-chip:has(input:checked) .tick{background:var(--burgundy-deep);border-color:var(--burgundy-deep)}
.goal-chip:has(input:checked) .tick svg{opacity:1;transform:scale(1);color:var(--gold-soft)}
.goal-chip:has(input:focus-visible){box-shadow:0 0 0 3px color-mix(in oklab,var(--gold) 35%,transparent)}
.field-err{margin:2px 0 0;font-size:12px;color:var(--ember);font-weight:500;display:none}
.field.has-error .field-err{display:block}
.field.has-error input{border-color:var(--ember);box-shadow:0 0 0 3px color-mix(in oklab,var(--ember) 22%,transparent)}
@media (max-width:600px){
  .field .field-label{font-size:10.5px}
  .field .goal-chip{font-size:12.5px;padding:10px 12px;gap:8px;min-height:44px}
  .goal-chips{grid-template-columns:1fr;gap:6px}
  .goal-chips > .goal-chip:last-child:nth-child(odd){grid-column:auto}
}

/* =========================================================================
   SMOOTH SCROLL — jank containment
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .testi-track { animation: none; }
}

/* ---- Direction pills on phones: even 2 × 3 grid ----------------------- */
@media (max-width: 640px) {
  .courses-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .course-pill {
    width: 100%; min-height: 62px;
    padding: 12px 14px; /* identical on every side so all six match */
    justify-content: center; text-align: center; gap: 8px;
    white-space: normal; text-wrap: balance;
    font-size: 13.5px; line-height: 1.25;
  }
  .course-pill.active { padding: 12px 14px; }
  .course-pill .pill-icon { width: 16px; height: 16px; }
}

/* ---- Mobile performance guards ---------------------------------------- */
@media (max-width: 900px) {
  .vlabel { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in oklab, var(--burgundy-deep) 78%, transparent); }
  /* A blurred sticky bar re-composites the strip under it on every scroll frame.
     Opaque fill instead — same look, no per-frame blur. */
  .nav-capsule, .nav-glass-btn {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: color-mix(in oklab, var(--cream-bright) 94%, var(--cream));
    box-shadow: 0 10px 26px -16px rgba(28,0,5,.3);
  }
  .video-overlay { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in oklab, var(--burgundy-deep) 97%, transparent); }
  .nav-capsule::after { display: none; }
  /* Legal English card: drop the scales photo on phones — the plate keeps only
     its call to action, so there is no large blended image to paint. */
  .legal-media { min-height: 0; background: none; border: none; box-shadow: none; border-radius: 0; align-self: auto; }
  .legal-media img, .legal-media::before { display: none; }
  .legal-media-cta { position: static; padding: 0; background: none; }
}
@media (max-width: 700px) {
  .hv-letter { animation: none !important; }
  .testi-track { animation-duration: 100s; }
}
/* Touch scrolling: never let a transform/filter layer be re-rasterised mid-fling. */
@media (hover: none) {
  .testi-track { will-change: auto; }
  .card, .tariff, .plate, .legal-plate, .speaking-plate { backface-visibility: hidden; }
}
