/* AI Sandbox - shared site styles (redesign 2026-09).
   Fonts: pages load IBM Plex Sans + IBM Plex Mono from Google Fonts in <head>.
   Layout primitives: .container, .section(--alt|--dark), .eyebrow, .h-*, .lead.
   Shared chrome: .site-header, .brand, .site-nav, .lang-link, .site-footer.
   Components: .btn, .card, .cells, .path, .stats, .fit, .sessions, .features,
   .logos, .corp, .tslider, .price-card, .faq, .cta-band, .tg-fab, .tg-pop.
   Inner pages: .page-hero, .breadcrumbs, .notice, .prose, .doc + .toc, .form/.field/.input,
   .tabs, .accordion, .pill. Live reference: .claude/redesign/components.html. */

:root {
  --bg: #faf9f6;
  --bg-alt: #f1efe8;
  --paper: #ffffff;
  --ink: #14131c;
  --text: #14131c;
  --text-2: #3a3a42;
  --muted: #55555f;
  --muted-2: #6b6b73;
  --faint: #9a978d;
  --accent: #ff5a36;
  --accent-ink: #d93d1b; /* accent for small text on light bg */
  --border: #e2ded3;
  --border-2: #d8d4c8;
  --on-dark: #faf9f6;
  --on-dark-2: #c9c6bd;
  --on-dark-muted: #a8a59c;
  --dark-border: #4a4952;
  --shadow: 0 8px 24px rgba(20,19,28,0.08);
  --paper-shadow: 0 8px 24px rgba(20,19,28,0.08); /* used by consent.js */
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 900px; }
.section { padding: 80px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark a { color: var(--accent); }
.section--dark a:hover { color: var(--on-dark); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.section--dark .eyebrow, .eyebrow--bright { color: var(--accent); }
.h-hero {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 1000px;
}
.h-hero .accent, .h-section .accent { color: var(--accent-ink); }
.h-section {
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  max-width: 720px;
}
.section--dark .h-section { color: var(--on-dark); }
.h-sub { font-size: 22px; line-height: 1.3; font-weight: 700; margin-bottom: 18px; }
.lead { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 720px; }
.section-head { margin-bottom: 40px; }
.section-head .lead { margin-top: 4px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  -webkit-appearance: none;
  appearance: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent:hover { opacity: .85; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: var(--dark-border); }
.btn--ghost-light:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,246,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 22px; height: 22px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__links { display: flex; align-items: center; gap: 24px; }
.site-nav__links a { font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--ink); }
.lang-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-2);
  padding: 4px 0;
}
.lang-link:hover { color: var(--accent-ink); }
@media (max-width: 1080px) { .site-nav__links .nav-opt { display: none; } }
@media (max-width: 820px) {
  .site-nav__links { display: none; }
  .site-nav { gap: 16px; }
}
@media (max-width: 400px) {
  .brand { font-size: 16px; gap: 8px; }
  .site-header .btn--sm { padding: 9px 12px; font-size: 13.5px; }
  .site-nav { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.hero__text { max-width: 1000px; }
.hero__sub { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 680px; margin-bottom: 14px; }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.quote {
  border-left: 3px solid var(--accent);
  margin: 28px 0 0;
  padding: 2px 0 2px 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 680px;
}
.quote__by { margin-top: 10px; font-size: 14px; color: var(--muted-2); }
.quote__by strong { color: var(--ink); }

/* Featured participant proof, between the offer and format selection. */
.graduate-proof {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--paper);
}
.graduate-proof__person { display: flex; align-items: flex-start; gap: 14px; }
.graduate-proof__person img { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.graduate-proof__name { display: inline-block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
.graduate-proof__name:hover { color: var(--accent-ink); text-decoration: underline; }
.graduate-proof__name span { color: var(--accent-ink); }
.graduate-proof__role { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.graduate-proof__label { margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.graduate-proof__story blockquote { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.graduate-proof__context { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.graduate-proof__footer { margin-top: 16px; }
.graduate-proof__timing { font-size: 13px; color: var(--muted); }
.graduate-proof__timing strong { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.graduate-proof__more { margin-top: 12px; }
.graduate-proof__more summary { width: fit-content; min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--accent-ink); font-size: 14px; font-weight: 500; }
.graduate-proof__more summary:hover { color: var(--ink); }
.graduate-proof__full { padding-top: 12px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-2); }
.graduate-proof__full p + p { margin-top: 14px; }
@media (max-width: 860px) {
  .graduate-proof { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .graduate-proof__person { align-items: center; }
  .graduate-proof__person img { width: 64px; height: 64px; }
  .graduate-proof__label { margin-top: 3px; }
}
@media (max-width: 480px) {
  .graduate-proof { padding: 20px; }
}

/* Path split */
.path { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.path__card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 28px 28px 24px;
  color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
}
.path__card:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--ink); }
.path__k { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.path__title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.path__body { font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.path__go { margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--accent-ink); }
.path__card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.path__card--dark:hover { border-color: var(--ink); box-shadow: 0 8px 24px rgba(20,19,28,0.35); color: var(--on-dark); }
.path__card--dark .path__k { color: var(--on-dark-muted); }
.path__card--dark .path__body { color: var(--on-dark-2); }
.path__card--dark .path__go { color: var(--accent); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.stats__item { background: var(--bg); padding: 22px 20px; }
.stats__n { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.stats__label { font-size: 13.5px; color: var(--muted-2); margin-top: 4px; line-height: 1.45; }

/* ---------- Generic cards / cells ---------- */
.cells {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cells--2 { --cols: 2; }
.cells--4 { --cols: 4; }
.cells > * { background: var(--paper); padding: 28px; transition: background .15s; }
.cells--hover > *:hover { background: var(--bg-alt); }
.cell__n { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--accent-ink); margin-bottom: 14px; }
.cell__title { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.cell__body { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 24px;
  transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow); }
.card__title { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.card__body { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* Fit (for / not for) */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.fit__list { list-style: none; }
.fit__list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15.5px; line-height: 1.55; color: #2c2c33; }
.fit__list li::before { content: '+'; color: var(--accent-ink); font-weight: 700; flex: none; width: 12px; }
.fit__list--no li::before { content: '\2212'; color: var(--faint); }

/* Sessions (curriculum) */
.sessions { margin-top: 8px; }
.session {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.session:last-child { border-bottom: 1px solid var(--border); }
.session__n { font-family: var(--mono); font-size: 14px; color: var(--muted-2); padding-top: 3px; }
.session__title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.3; }
.session__body { font-size: 15.5px; line-height: 1.6; color: var(--text-2); margin-bottom: 14px; max-width: 680px; }
.tag { display: inline-block; background: var(--bg-alt); color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 6px 12px; line-height: 1.4; }

/* Features on dark (support) */
.features { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 32px 28px; }
.feature__title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--on-dark); }
.feature__body { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-muted); }

/* Logos wall */
.logos-cap { font-size: 14px; font-weight: 500; color: var(--muted-2); text-align: center; margin-bottom: 32px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 48px; }
.logos a, .logos span { display: inline-flex; align-items: center; }
.logos img {
  height: 26px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .15s, opacity .15s;
}
.logos a:hover img { filter: none; opacity: 1; }

/* Corporate block */
.corp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.corp__lead { font-size: 17px; line-height: 1.65; color: var(--text-2); margin-bottom: 16px; }
.corp__note { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin-bottom: 32px; }
.steps { background: var(--paper); border: 1px solid var(--border); padding: 8px; }
.step { display: flex; gap: 18px; padding: 22px 20px; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.step__n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); padding-top: 2px; flex: none; }
.step__title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step__body { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.checks { margin-top: 48px; }
.checks > * { display: flex; gap: 10px; align-items: flex-start; padding: 24px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.check::before, .checklist li::before { content: '\2713'; color: var(--accent-ink); font-weight: 700; flex: none; }

/* ---------- Testimonials slider ---------- */
.tslider { margin-top: 8px; }
.ttrack {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0 12px;
}
.ttrack::-webkit-scrollbar { display: none; }
.tcard {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.tcard:hover { box-shadow: var(--shadow); }
.tcard::before { content: '\201C'; font-family: var(--mono); font-size: 28px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.tquote { font-size: 14.5px; line-height: 1.6; color: #2c2c33; flex: 1; margin-bottom: 20px; }
.tperson { border-top: 1px solid var(--border); padding-top: 14px; }
.tname { font-size: 14.5px; font-weight: 600; }
.trole { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.tlink { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.tcontrols { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.tcontrols button {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.tcontrols button:hover { border-color: var(--ink); }
.tdots { display: flex; gap: 8px; align-items: center; }
.tdots span { width: 8px; height: 8px; background: var(--border-2); cursor: pointer; transition: background .15s; }
.tdots span.active { background: var(--accent); }
@media (max-width: 960px) { .tcard { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .tcard { flex-basis: 100%; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.person { display: flex; gap: 22px; align-items: flex-start; }
.person__photo { width: 112px; height: 112px; object-fit: cover; object-position: center 22%; flex: none; background: var(--bg-alt); }
.person__name { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.person__bio { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin-bottom: 8px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 32px 28px;
}
.price-card.featured { border-color: var(--ink); box-shadow: 0 12px 32px rgba(20,19,28,0.08); }
.price-card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.price-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  margin-bottom: 14px;
}
.price-tier { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.price-status { font-size: 15px; font-weight: 600; color: var(--accent-ink); margin-bottom: 18px; }
.price-card--dark .price-tier { color: var(--on-dark-muted); }
.price-card--dark .price-status { color: var(--accent); }
.price-amount { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 6px; }
.price-amount sup { font-size: 22px; font-weight: 600; vertical-align: 16px; margin-right: 2px; }
.price-amount.request { font-size: 28px; letter-spacing: -0.01em; }
.price-deadline { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-top: 6px; }
.price-note { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 10px 0 22px; }
.price-card--dark .price-note { color: var(--on-dark-2); }
.checklist { list-style: none; margin-bottom: 24px; flex: 1; }
.checklist li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.5; color: #2c2c33; }
.price-card--dark .checklist li { color: #e5e3da; }
.price-card--dark .checklist li::before { color: var(--accent); }
.price-cta-row { display: flex; flex-direction: column; gap: 10px; }
.cur-switch { display: inline-flex; align-self: flex-start; gap: 2px; background: var(--bg-alt); padding: 3px; margin-bottom: 14px; }
.cur-switch button {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}
.cur-switch button.active { background: var(--ink); color: var(--on-dark); }
.pricing-foot { margin-top: 20px; font-size: 14px; color: var(--muted-2); }

/* ---------- Promo boxes (materials / self-check) ---------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo { display: flex; flex-direction: column; border: 1px solid var(--border); padding: 36px; background: var(--bg); }
.promo .h-sub { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 12px; }
.promo p { font-size: 15.5px; line-height: 1.6; color: var(--text-2); margin-bottom: 24px; flex: 1; }
.promo .btn { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { margin-top: 8px; }
.faq details { border-top: 1px solid var(--border-2); }
.faq details:last-child { border-bottom: 1px solid var(--border-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--accent-ink); line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); max-width: 760px; }
.faq__a a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Final CTA band ---------- */
.cta-band { background: var(--ink); color: var(--on-dark); text-align: center; padding: 72px 0; }
.cta-band .h-section { margin: 0 auto 24px; color: var(--on-dark); }
.cta-band .btn-row { justify-content: center; }
.cta-band__note { margin-top: 20px; font-size: 14px; color: var(--on-dark-muted); }
.cta-band__note a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.site-footer__about { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 12px; max-width: 340px; }
.site-footer__h { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.site-footer__links { list-style: none; }
.site-footer__links li { margin-bottom: 8px; }
.site-footer__links a { font-size: 14px; color: var(--text-2); }
.site-footer__links a:hover { color: var(--accent-ink); }
.site-footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.8; color: var(--muted-2); }
.site-footer__legal a { color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__legal a:hover { color: var(--ink); }

/* ---------- Floating Telegram button ---------- */
.tg-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(20,19,28,0.25);
  transition: background .15s, color .15s, transform .15s;
}
.tg-fab svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.tg-fab:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.tg-fab:hover svg { color: var(--ink); }
@media (max-width: 600px) {
  .tg-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 13px; gap: 0; }
  .tg-fab span { display: none; }
  .tg-fab svg { width: 22px; height: 22px; }
}

/* ---------- Modal (Telegram popup + booking form) ---------- */
.tg-pop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20,19,28,0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.tg-pop-overlay.open { opacity: 1; visibility: visible; }
.tg-pop {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 36px 32px 30px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(20,19,28,0.28);
  transform: translateY(12px);
  transition: transform .3s cubic-bezier(0.2,0.8,0.2,1);
}
.tg-pop-overlay.open .tg-pop { transform: none; }
.tg-pop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.tg-pop-close:hover { background: var(--bg-alt); color: var(--ink); }
.tg-pop-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--accent);
}
.tg-pop-icon svg { width: 26px; height: 26px; }
.tg-pop-handle { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.tg-pop h3 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.01em; }
.tg-pop p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 22px; }
.tg-pop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 22px;
  background: var(--ink);
  color: var(--on-dark);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tg-pop-cta svg { width: 18px; height: 18px; }
.tg-pop-cta:hover { background: var(--accent); color: var(--ink); }
.tg-pop-dismiss {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: 0;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tg-pop-dismiss:hover { color: var(--ink); }
.book-card, .book-card h3, .book-card > p { text-align: left; }
.book-form { display: flex; flex-direction: column; gap: 12px; }
.book-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.book-input::placeholder { color: var(--muted-2); }
.book-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,90,54,0.25); }
.book-textarea { resize: vertical; min-height: 78px; }
.book-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.book-error { color: #b3301a; font-size: 14px; line-height: 1.45; }
.book-error a { color: #b3301a; font-weight: 700; text-decoration: underline; }
.book-submit { margin-top: 4px; }
.book-submit[disabled] { opacity: .6; cursor: default; }
.book-success, .book-success h3 { text-align: center; }
.book-success p { margin-bottom: 0; }
@media (max-width: 600px) { .tg-pop { padding: 32px 20px 24px; } .tg-pop h3 { font-size: 20px; } }

/* ---------- Homepage events widget ---------- */
.evw-body { margin-top: 32px; }
.ev-tag {
  align-self: flex-start;
  padding: 3px 9px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ev-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}
.ev-date svg, .ev-link svg { width: 16px; height: 16px; flex: none; }
.ev-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
}
.ev-link:hover { color: var(--ink); text-decoration: underline; }
.evw-next {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.evw-next-poster { display: block; line-height: 0; overflow: hidden; }
.evw-next-poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-alt);
}
.evw-next-nodate {
  display: grid;
  place-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  background: var(--accent);
  color: var(--ink);
}
.evw-next-nodate b { display: block; font-size: 64px; line-height: .92; }
.evw-next-nodate span { display: block; margin-top: 6px; font-weight: 600; }
.evw-next-main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.evw-next-main h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.evw-next-main p { color: var(--text-2); font-size: 16px; }
.evw-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.evw-past { margin-top: 32px; }
.evw-past-title { margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.evw-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.evw-strip::-webkit-scrollbar { display: none; }
.evw-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.evw-shot { flex: 0 0 clamp(150px, 20vw, 210px); display: block; overflow: hidden; border: 1px solid var(--border); line-height: 0; scroll-snap-align: start; }
.evw-shot:hover { border-color: var(--ink); }
.evw-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-alt); }
.evw-more { display: grid; place-content: center; aspect-ratio: 3 / 2; padding: 0 12px; background: var(--paper); color: var(--accent-ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .evw-shot img { transition: transform .2s; }
  .evw-shot:hover img { transform: scale(1.04); }
  .evw-strip { scroll-behavior: smooth; }
}

/* ---------- Inner pages (stage 3) ---------- */
/* Page hero: title block at the top of inner pages. */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero .h-hero { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.page-hero .lead { font-size: 18px; }
.page-hero .btn-row { margin-top: 28px; }
.breadcrumbs { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--accent-ink); }

/* Notice: short callout, e.g. "materials are in Russian". */
.notice {
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.notice strong { color: var(--ink); }
.notice--dark { background: var(--ink); color: var(--on-dark-2); }
.notice--dark strong { color: var(--on-dark); }

/* Prose: long-form text (guides, notes, legal). Wrap content in .prose. */
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); margin-top: 1.6em; }
.prose h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent-ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 18px; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); padding: .1em .35em; }
.prose pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--on-dark);
  padding: 18px 20px;
  overflow-x: auto;
  max-width: 100%;
}
.prose pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.prose img { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.prose table, .table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td, .table th, .table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th, .table th { font-weight: 600; color: var(--ink); background: var(--bg-alt); }

/* Two-column layout for docs: sticky table of contents + content. */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; line-height: 1.5; }
.toc__h { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.toc ol, .toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-2); }
.toc a:hover, .toc a[aria-current="true"] { color: var(--accent-ink); }

/* Forms (generic, same look as the booking modal inputs). */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__hint { font-size: 13px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,90,54,0.25); }
.textarea { resize: vertical; min-height: 96px; }
.field--error .input, .field--error .select, .field--error .textarea, .input[aria-invalid="true"] { border-color: #b3301a; }
.form-error { color: #b3301a; font-size: 14px; line-height: 1.45; }
.form-success { border-left: 3px solid var(--accent); background: var(--bg-alt); padding: 14px 18px; font-size: 15px; }

/* Tabs (role="tablist" > button[aria-selected]) */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; background: var(--bg-alt); padding: 3px; width: max-content; max-width: 100%; }
.tabs button, .tabs a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}
.tabs [aria-selected="true"], .tabs .active { background: var(--ink); color: var(--on-dark); }

/* Accordion (details-based, generic version of .faq) */
.accordion details { border-top: 1px solid var(--border); }
.accordion details:last-child { border-bottom: 1px solid var(--border); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-family: var(--mono); color: var(--accent-ink); font-size: 20px; line-height: 1; flex: none; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 0 20px; }

/* Small helpers */
.pill { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; background: var(--bg-alt); color: var(--text-2); }
.pill--accent { background: var(--accent); color: var(--ink); }
.muted { color: var(--muted-2); }
.stack > * + * { margin-top: 16px; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border: 1px solid var(--border); padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { padding: 40px 0 28px; }
  .page-hero .lead { font-size: 16px; }
  .prose { font-size: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cells--4 { --cols: 2; }
  .features { --cols: 2; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .corp, .fit, .team, .promos { grid-template-columns: 1fr; }
  .fit { gap: 28px; }
  .corp { gap: 36px; }
  .cards { --cols: 1; }
  .cells { --cols: 2; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding: 48px 0 32px; }
  .hero__sub { font-size: 17px; }
  .path { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .path__card { padding: 22px 20px 20px; }
  .cells, .cells--4, .features, .pricing { --cols: 1; grid-template-columns: 1fr; }
  .cells > * { padding: 22px 20px; }
  .session { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .session__title { font-size: 19px; }
  .stats__n { font-size: 26px; }
  .stats__item { padding: 18px 16px; }
  .logos { gap: 24px 32px; }
  .logos img { height: 22px; max-width: 96px; }
  .person__photo { width: 84px; height: 84px; }
  .price-card { padding: 28px 20px; }
  .promo { padding: 28px 20px; }
  .btn { white-space: normal; }
  .cta-band { padding: 56px 0; }
  .cta-band .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .lead, .corp__lead { font-size: 16px; }
  .evw-next { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .evw-next-main h3 { font-size: 22px; }
  .evw-cta-row { width: 100%; }
  .evw-cta-row .btn { width: 100%; }
}
