/* ============================================================
   NEW GENERATION ENGLISH вЂ” SYSTEM.CSS
   Single source of truth. All pages load this last.
   Tokens В· Aliases В· Topbar В· Typography В· Cards В· Buttons
   ============================================================ */

/* в”Ђв”Ђв”Ђ CANONICAL TOKENS в”Ђв”Ђв”Ђ */
:root {
  /* backgrounds */
  --bg:        #000000;
  --bg-2:      #0b0b0b;
  --bg-3:      #141414;
  --bg-card:   #0e0e0e;

  /* borders */
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.18);

  /* text */
  --text:      #ffffff;
  --text-2:    #a9a9a9;
  --text-3:    #6a6a6a;

  /* accent */
  --accent:    #FF5A1F;
  --accent-2:  #FF5A1F;
  --accent-hi: #FF5A1F;

  /* radii */
  --radius:    14px;
  --radius-lg: 22px;

  /* layout */
  --layout-x: clamp(20px, 5vw, 76px);

  /* fonts */
  --display:   "Unbounded", "Manrope", system-ui, sans-serif;
  --text-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* в”Ђв”Ђ ALIAS BRIDGE (legacy tokens в†’ canonical) в”Ђв”Ђ */
  --border:        var(--line);
  --border-strong: var(--line-2);
  --border-light:  rgba(255, 255, 255, 0.05);
  --line-strong:   var(--line-2);
  --muted:         var(--text-2);
  --surface:       var(--bg-2);
  --surface-2:     var(--bg-3);
  --surface-3:     var(--bg-card);
  --accent-soft:   rgba(255, 90, 31, 0.12);
  --card-bg:       var(--bg-card);
  --radius-sm:     10px;
  --btn:           var(--radius);
  --body:          var(--text-font);
}body.light {
  --bg:        #f4f1ec;
  --bg-2:      #ffffff;
  --bg-3:      #ede9e3;
  --bg-card:   #f8f6f2;
  --line:      rgba(0, 0, 0, 0.08);
  --line-2:    rgba(0, 0, 0, 0.14);
  --text:      #1a1612;
  --text-2:    #6b6560;
  --text-3:    #9c948b;
  --accent:    #FF5A1F;
  --accent-2:  #FF5A1F;
  --accent-soft: rgba(255, 90, 31, 0.10);
  --border-light: rgba(0, 0, 0, 0.04);
  --surface:   #ffffff;
  --surface-2: #ede9e3;
  --surface-3: #f8f6f2;
  --card-bg:   #f8f6f2;
}

/* ANTI-FOUC: hide body while EN translation is pending */
body.en:not(.lang-ready) { visibility: hidden; }/* в”Ђв”Ђв”Ђ BASE в”Ђв”Ђв”Ђ */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }*,
*::before,
*::after { box-sizing: border-box; }html { overflow-x: clip; }body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--text-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* modern: prevents horizontal scroll WITHOUT breaking position:sticky on .topbar. */
  /* NOTE: removed overflow-x:hidden fallback — it broke position:sticky on iPadOS 16-17 Safari. */
  /* If iOS 15 / older support is needed, gate body{overflow-x:hidden} behind @supports not (overflow-x: clip). */
}img,
video,
canvas {
  max-width: 100%;
  height: auto;
}svg { max-width: 100%; }pre { overflow-x: auto; }/* --- TOPBAR -- canonical etalon A (paper + ink mark + corner accent) --- */
.topbar {
  position: -webkit-sticky; /* iOS Safari fallback */
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 14px clamp(18px, 3vw, 28px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  font-family: var(--text-font), system-ui, sans-serif;
  font-weight: 500;
}
body.light .topbar { background: var(--bg); border-bottom-color: var(--line); }

/* --- BRAND -- ink mark with corner accent triangle --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0b0b0c;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  border-radius: 9px;
  border-top-right-radius: 0;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 12px; height: 12px;
  background: #fff;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}
.brand-name span { display: block; white-space: nowrap; }
.brand-name .accent, .brand-name .boost { color: var(--accent); }
.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
  line-height: 1;
}
.brand-logo { display: none; }
.brand--logo .brand-logo {
  display: block; width: auto; height: 38px;
  max-width: min(218px, 34vw); object-fit: contain;
}
.brand--logo .brand-logo-light { display: none; }
body.light .brand--logo .brand-logo-dark { display: none; }
body.light .brand--logo .brand-logo-light { display: block; }
.brand--logo .brand-mark,
.brand--logo .brand-name,
.brand--logo .brand-sub { display: none; }

/* --- NAV -- thin Mono caps with active underline --- */
.topnav {
  display: flex;
  gap: 22px;
  flex: 1;
  min-width: 0;
  margin-left: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}
.topnav-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease;
  background: transparent;
  border-radius: 0;
  opacity: 1;
}
.topnav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.topnav-link:hover,
.topnav-link.active {
  color: var(--text);
  background: transparent;
  opacity: 1;
}
.topnav-link:hover::after,
.topnav-link.active::after { transform: scaleX(1); }

/* --- TOOLS -- paper pill capsules --- */
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.control-btn {
  height: 32px;
  min-height: 32px;
  min-width: 72px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: #15151B;
  color: #FFFFFF;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.control-btn:hover {
  background: #1F1F26;
  color: #FFFFFF;
  border-color: #FFA56C;
}
.topbar-tools > a.control-btn[href*="cabinet/login"] {
  width: auto;
  min-width: 72px;
  border-color: transparent;
}
body.light .topbar-tools > a.control-btn[href*="cabinet/login"] {
  background: #15151B;
  border-color: transparent;
  color: #FFFFFF;
}
.topbar-tools > a.control-btn[href*="cabinet/login"]:hover,
.topbar-tools > a.control-btn[href*="cabinet/login"]:focus-visible {
  background: #1F1F26;
  border-color: #FF5A1F;
  color: #FFFFFF;
}
body.light .topbar-tools > a.control-btn[href*="cabinet/login"]:hover,
body.light .topbar-tools > a.control-btn[href*="cabinet/login"]:focus-visible {
  background: #1F1F26;
  border-color: #FF5A1F;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.16);
}

/* --- BUTTONS --- */

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-family: var(--text-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}.btn-primary,
.btn[data-primary] {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}.btn-secondary:hover {
  border-color: var(--text-2);
  color: var(--text);
}.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line);
}.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-2);
}/* в”Ђв”Ђв”Ђ CARDS в”Ђв”Ђв”Ђ */
.program-card,
.entry-card,
.blog-entry,
.cabinet-card,
.article-card,
.resource-card,
.format-card,
.case-card,
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s;
}.program-card:hover,
.entry-card:hover,
.blog-entry:hover,
.cabinet-card:hover,
.article-card:hover,
.resource-card:hover,
.format-card:hover,
.case-card:hover,
.review-card:hover {
  border-color: var(--accent);
}/* в”Ђв”Ђв”Ђ TYPOGRAPHY вЂ” 3 LEVELS в”Ђв”Ђв”Ђ */

/* kicker: mono uppercase label above hero */
.kicker,
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}/* level 1: large hero title (index) */
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--text);
}/* level 2: page hero title (inner pages) */
.page-title {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}/* level 3: section headings */
.section-title,
.sect-title,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}/* accent span inside titles */
.accent {
  color: var(--accent);
}.line {
  display: block;
}/* lead paragraph */
.lead {
  font-family: var(--text-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 640px;
  margin-top: 24px;
}/* page hero layout */
.page-hero {
  padding: 64px 0 48px;
}/* meta / tags */
.meta,
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}/* в”Ђв”Ђв”Ђ LAYOUT HELPERS в”Ђв”Ђв”Ђ */
.shell { max-width: 1200px; margin: 0 auto; }.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--layout-x);
}.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--layout-x);
}section {
  padding: 64px 0;
}/* в”Ђв”Ђв”Ђ FOOTER в”Ђв”Ђв”Ђ */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}.legal-footer {
  display: block;
  text-align: center;
}.footer-legal {
  max-width: 1160px;
  margin: 0 auto;
}.footer-legal p {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: 0.08em;
  color: var(--text-3);
}.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}.footer-copy a,
.footer-legal a { color: var(--text-2); text-decoration: none; }.footer-copy a:hover,
.footer-legal a:hover { color: var(--accent); }.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }.footer-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  transition: all .15s;
}.footer-link:hover { color: var(--text); background: var(--bg-3); }/* в”Ђв”Ђв”Ђ MOBILE в”Ђв”Ђв”Ђ */
@media (max-width: 980px) {
  .topnav {
    display: flex !important; /* override legacy per-page rules that hide nav on iPad/iPhone */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {.topbar { padding: 12px 16px; gap: 12px; }.wrap,
.page-shell { padding: 0 16px; }.btn,
.btn-primary,
.btn-secondary,
.btn-ghost { min-height: 46px; padding: 0 20px; }
}

/* --- MOBILE BURGER MENU (injected by site.js initMobileMenu) --- */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform .22s ease, opacity .15s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity .2s ease;
  overflow-y: auto;
}
.mobile-menu.open { display: block; opacity: 1; }
.mobile-menu-inner {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 92px 28px 32px;
  box-sizing: border-box;
  min-height: 100%;
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 20px;
  font-family: var(--mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 12px;
}
.mobile-menu-link {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  transition: color .15s ease;
}
.mobile-menu-link:hover,
.mobile-menu-link.active { color: var(--accent); }
body.mobile-menu-lock { overflow: hidden; }

@media (max-width: 720px) {
  .topnav { display: none !important; }
  .menu-toggle { display: inline-flex; }
  .topbar { gap: 8px; padding: 10px 12px; }
  .topbar-tools { gap: 6px; }
  .control-btn,
  .control-btn--solid,
  .control-btn--active {
    min-width: 0;
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 9px;
    letter-spacing: 0.08em;
    border-radius: 8px;
  }
  .brand-sub { display: none; } /* hide "nge · since 2023" on narrow phones */
  .brand-name { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
}
@media (max-width: 420px) {
  .topbar { gap: 6px; padding: 10px 10px; }
  .menu-toggle { width: 36px; height: 36px; }
  .control-btn,
  .control-btn--solid,
  .control-btn--active { padding: 0 8px; font-size: 8.5px; }
}

/* Mobile Safari: keep the site topbar in normal document flow.
   It must scroll away with the page instead of sticking/jittering. */
@media (max-width: 1024px) {
  :root {
    --topbar-fixed-height: 64px;
  }

  body {
    padding-top: 0 !important;
  }

  .topbar {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 100;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
  }
}

/* CANONICAL HERO FROM INDEX */
.hero {
  position: relative;
  padding: clamp(20px, 5vw, 76px) 24px 32px;
  overflow: hidden;
}/* When hero is inside a layout container (.page-shell or .wrap),
the container already
   supplies 24px side-padding for everything else. The hero itself breaks out to 100vw
   via the rule below,
so its own horizontal padding would double-inset the content.
   Zero it out here; a mobile-size exception below restores the safe buffer.           */
.page-shell .hero,
.wrap .hero {
  padding-left: 0;
  padding-right: 0;
}.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 var(--layout-x); }.hero-stars-bg {
  position: absolute;
  z-index: 0;
  right: max(24px, calc((100vw - 1200px) / 2));
  top: calc(28% - 3cm);
  width: min(62vw, 820px);
  aspect-ratio: 1613 / 975;
  border-radius: 28px;
  overflow: hidden;
  pointer-events: none;
}.hero-stars-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}.hero-stars-bg .img-light,
body.light .hero-stars-bg .img-dark { display: none; }body.light .hero-stars-bg .img-light { display: block; }.hero-stars-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 68%, transparent) 32%, transparent 72%);
}.hero-tag {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}.hero-tag .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }.hero-tag .bar { flex: 1; height: 1px; background: var(--line); }.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 340px);
  gap: 40px;
  align-items: end;
}body[data-page="home"] .hero-grid,
body[data-page="cases"] .hero-grid,
body[data-page="travel"] .hero-grid {
  align-items: start;
}.hero-copy { min-width: 0; }.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}.hero-kicker::before { content: ""; width: 18px; height: 1px; background: var(--accent); }.hero-kicker-secondary { margin-bottom: 18px; font-size: 14px; color: var(--text-2); }.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--text);
}.hero h1 .line { display: block; }.hero h1 .accent { color: var(--accent); }.hero h1 .outline { -webkit-text-stroke: 2px var(--text); color: transparent; }body.light .hero h1 .outline { -webkit-text-stroke-color: var(--text); }.hero-lead {
  max-width: 640px;
  margin: 0 0 24px;
  font-size: 17px; line-height: 1.55;
  color: var(--text-2);
}.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }.hero-students-link {
  margin-top: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  letter-spacing: 0.04em;
}.hero-students-link a {
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}.hero-students-link a:hover { color: var(--accent); border-color: var(--accent); }.hero-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-media-x, 50%) var(--hero-media-y, 50%);
  transform: scale(var(--hero-media-zoom, 1));
  transform-origin: center;
  filter: none;
}body[data-page="about"] section.hero .hero-media {
  --hero-media-zoom: 1.12;
  --hero-media-x: 34%;
  --hero-media-y: 52%;
}body[data-page="about"] section.hero .hero-media img.img-light {
  --hero-media-zoom: 1.12;
  --hero-media-x: 34%;
  --hero-media-y: 52%;
}body[data-page="practice"] section.hero .hero-media,
body[data-page="programs"] section.hero .hero-media {
  --hero-media-zoom: 1.1;
  --hero-media-x: 50%;
  --hero-media-y: 25%;
}body[data-page="about"] section.hero .hero-media img.img-light { display: none; }body.light[data-page="about"] section.hero .hero-media img { display: none; }body.light[data-page="about"] section.hero .hero-media img.img-light { display: block; }body[data-page="practice"] .hero-media .img-dark,
body[data-page="practice"] .hero-media .img-light,
body[data-page="programs"] .hero-media .img-dark,
body[data-page="programs"] .hero-media .img-light {
  display: block;
}body[data-page="practice"] .hero-media .img-light,
body[data-page="programs"] .hero-media .img-light { display: none; }body.light[data-page="practice"] .hero-media .img-light,
body.light[data-page="programs"] .hero-media .img-light { display: block; }body.light[data-page="practice"] .hero-media .img-dark,
body.light[data-page="programs"] .hero-media .img-dark { display: none; }.hero-media .fallback-img {
  display: none;
  width: 100%; height: 100%;
  place-items: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px), var(--bg-2);
  color: var(--text-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center; padding: 20px;
}.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,0.28));
  pointer-events: none;
}.hero-media-frame {
  position: absolute; inset: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
  z-index: 2;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}.hero-media-caption {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
}.hero-media-caption .dot { display:inline-block; width:6px; height:6px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; }.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}.hero-stats .cell {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  position: relative;
}.hero-stats .cell:last-child { border-right: none; }.hero-stats .num {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1; letter-spacing: -0.035em;
  color: var(--text);
}.hero-stats .num em { font-style: normal; }.hero-stats .cell.accent .num, .hero-stats .cell.accent .num em { color: var(--accent); }.hero-stats .lbl {
  margin-top: 10px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}.hero-stats .idx {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
}
@media (max-width: 900px) {.hero-grid { grid-template-columns: 1fr; }.hero-media { max-width: 420px; }.hero-stars-bg {
    right: -18%;
    top: 36%;
    width: 92vw;
    opacity: 0.72;
  }.hero-stats { grid-template-columns: repeat(2, 1fr); }.hero-stats .cell:nth-child(2) { border-right: none; }.hero-stats .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {.hero { padding: 40px 16px 24px; display: flex !important; flex-direction: column; }
  /* Mobile: hero-stars-bg becomes a normal block AFTER the inner content (CTA + stats),
     not an overlay that lands behind h1. Restored from earlier display:none per Maria's call (27.05). */
  .hero-inner { order: 1; }
  .hero-stars-bg {
    order: 2;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    margin: 24px 0 0 !important;
    right: auto !important;
    top: auto !important;
    border-radius: 16px;
    overflow: hidden;
  }
  .hero-stars-bg img { width: 100%; height: auto; display: block; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.8rem); }.hero-stats { grid-template-columns: repeat(2, 1fr); }.hero-stats .cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 14px; }.hero-stats .cell:nth-child(2n) { border-right: none; }.hero-stats .cell:nth-last-child(-n+2) { border-bottom: none; }.hero-stats .num { font-size: clamp(22px, 7vw, 32px); }.btn-row { flex-direction: column; }.btn { width: 100%; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: clamp(1.6rem, 8.4vw, 2.4rem); line-height: 0.98; }
  .hero { padding: 32px 12px 20px; }
}/* Mobile safeguard: restore horizontal padding removed by the container-hero fix above.
   At в‰¤640px the hero is still full-bleed (100vw) so content needs its own edge buffer. */
@media (max-width: 640px) {
  .page-shell .hero,
  .wrap .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* ---------------------------------------------------------- */
/* Solid pills for main 8 pages (revised 2026-05-14 v2)         */
/* Squared corners + visible orange feedback on hover.          */
/* Applied via class on: index, about-project, programs, cases, */
/* conditions, blog, travel. (diagnostic-test has no toggles.)  */
/* lingua-boost-lab/* and cabinet/* keep base .control-btn.    */
/* The .brand-mark logo is NOT changed on these pages.         */
/* ---------------------------------------------------------- */

.control-btn--solid {
  background: #15151B;
  border: 1.5px solid transparent;
  color: #FFFFFF;
}

.control-btn--solid:hover {
  background: #1F1F26;
  border-color: #FF5A1F;
  color: #FFFFFF;
}

.control-btn--active {
  min-width: 64px;
  background: #15151B;
  border: 1.5px solid transparent;
  color: #FFFFFF;
}

.control-btn--active:hover {
  background: #1F1F26;
  border-color: #FF5A1F;
  color: #FFFFFF;
}

/* Light theme overrides for the solid pills.                  */
/* Same shape and orange-feedback logic, but cream surface +    */
/* dark text + darker-orange hover (since lighter-orange would  */
/* fade out on a cream background).                             */

body.light .control-btn--solid {
  background: #15151B;
  border-color: transparent;
  color: #FFFFFF;
}

body.light .control-btn--solid:hover,
body.light .control-btn--solid:focus-visible {
  background: #1F1F26;
  border-color: #FF5A1F;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.16);
}

body.light .control-btn--active {
  background: #15151B;
  border-color: transparent;
  color: #FFFFFF;
}

body.light .control-btn--active:hover,
body.light .control-btn--active:focus-visible {
  background: #1F1F26;
  border-color: #FF5A1F;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.16);
}

/* Cookie banner — theme variables                              */
/* Default (dark) values are inlined as fallbacks in index.html */
/* via var(--cookie-bg, rgba(5,5,5,0.98)) etc., so this block   */
/* only needs to override the light theme.                      */

body.light {
  --cookie-bg: rgba(248, 246, 242, 0.96);
  --cookie-border: rgba(0, 0, 0, 0.08);
  --cookie-text: #1a1612;
}


/* ============================================================
   Cookie banner (used on index.html). Behavior preserved: banner
   is visible by default; click on “Понятно” removes element
   from DOM and sets localStorage.nge-cookie-ok=1.
   ============================================================ */
.cookie-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--cookie-bg, rgba(5,5,5,0.98));
  border-bottom: 1px solid var(--cookie-border, rgba(255,247,232,0.14));
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cookie-text, rgba(240,235,255,0.82));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cookie-banner__link {
  color: var(--accent, #ff5a1f);
  white-space: nowrap;
  margin-left: 4px;
}
.cookie-banner__button {
  background: var(--accent, #ff5a1f);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}
.cookie-banner__button:hover {
  background: var(--accent-2, #ff5a1f);
}

body.light .topbar-tools .control-btn {
  background: var(--bg) !important;
  border-color: rgba(255, 90, 31, 0.22) !important;
  box-shadow: none !important;
  color: var(--text) !important;
}

body.light .topbar-tools .control-btn:hover,
body.light .topbar-tools .control-btn:focus-visible {
  background: color-mix(in srgb, var(--bg) 88%, #ffffff 12%) !important;
  border-color: #FF5A1F !important;
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.16) !important;
  color: var(--text) !important;
}

/* ============================================================
   QUICK SUMMARY (короткая выжимка для ленивых на index)
   ============================================================ */
.quick-summary {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px var(--layout-x, 24px) 40px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0 28px;
}
.quick-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.quick-card h3 {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.quick-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.quick-card p a.inline-link,
.quick-faq details p a.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.quick-card p a.inline-link:hover { opacity: 0.8; }

.quick-faq-title {
  font-family: var(--display, "Unbounded", sans-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text);
}
.quick-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease;
}
.quick-faq details[open] { background: rgba(255, 90, 31, 0.04); }
.quick-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
}
.quick-faq summary::-webkit-details-marker { display: none; }
.quick-faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--accent);
}
.quick-faq details[open] summary::after { content: "\2212"; }
.quick-faq details p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.quick-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* ============================================================
   Зазор 1 см перед последним CTA-блоком — общий стандарт страниц
   ============================================================ */
main section.cta,
main section.cases-cta,
main section[class*="-cta"] {
  margin-top: 1cm;
}

/* ============================================================
   Section-number — base typography for all *-index classes
   (overrides inline page-styles via !important — there are conflicts
   in conditions.html, blog.html, etc.)
   ============================================================ */
.about-index, .sect-index, .terms-index {
  font-family: var(--display, "Unbounded", system-ui, sans-serif) !important;
  font-size: 80px !important;
  font-weight: 900 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.05em !important;
  display: block !important;
}
.about-index small, .sect-index small, .terms-index small {
  display: block !important;
  margin-top: 6px !important;
  font-family: var(--mono, "JetBrains Mono", monospace) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--text-3, #6a6a6a) !important;
}

/* ============================================================
   Section-number unification — outline-orange for all numbered sections
   ============================================================ */
.sect-index, .terms-index {
  color: transparent !important;
  -webkit-text-stroke: 1px var(--accent) !important;
}
.sect-index small, .terms-index small {
  -webkit-text-stroke: 0 !important;
}

/* Filled-accent index — only on selected "lead" sections */
#quick-summary .about-index,
#zen-channel .about-index {
  color: var(--accent) !important;
  -webkit-text-stroke: 0 !important;
}
#zen-channel .about-index {
  margin-bottom: 18px;
}

/* Other about-index occurrences (if any) — fall back to outline */
.about-index:not(#quick-summary .about-index) {
  color: transparent !important;
  -webkit-text-stroke: 1px var(--accent) !important;
}

/* ============================================================
   Section 01 "Кратко" — усиленный контраст для брендированной строки
   ============================================================ */
#quick-summary .quick-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  max-width: 760px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 90, 31, 0.05);
  border-radius: 0 8px 8px 0;
  margin-top: 4px;
}
#quick-summary .quick-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
