/* ========================================================================
   PauSiDoRe v2 — «Журнал» (warm cream editorial)
   Тёплая бумага, тёмный сепия-чернил, оксблад-акцент.
   Личный лонгрид, фото в натуральных пропорциях.
   ======================================================================== */

/* TOKENS ----------------------------------------------------------------- */
:root {
  /* default: cream */
  --bg:        #efe6d2;
  --bg-soft:   #e7dcc2;
  --bg-deep:   #ddd0b1;
  --bg-paper:  #f6eedc;
  --ink:       #1c150b;
  --ink-mute:  #4d3e26;
  --ink-faint: #8a7a5d;
  --line:      rgba(28, 21, 11, 0.18);
  --line-soft: rgba(28, 21, 11, 0.08);
  --accent:    #8a2a1f;
  --accent-2:  #b14334;
  --grain-opacity: 0.12;
  --serif-num-feat: "lnum", "tnum";

  --font-display: "Spectral", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --maxw-narrow: 780px;
  --pad-x: clamp(24px, 6vw, 80px);
}

[data-theme="sepia"] {
  --bg:        #2a1f15;
  --bg-soft:   #34281b;
  --bg-deep:   #3b2d1f;
  --bg-paper:  #3a2d1f;
  --ink:       #f1dfb9;
  --ink-mute:  #cdba8e;
  --ink-faint: #9b8866;
  --line:      rgba(241, 223, 185, 0.15);
  --line-soft: rgba(241, 223, 185, 0.07);
  --accent:    #e09e6c;
  --accent-2:  #c47b48;
}

[data-theme="midnight"] {
  --bg:        #0e0b07;
  --bg-soft:   #16110b;
  --bg-deep:   #1c160e;
  --bg-paper:  #181208;
  --ink:       #f3e9d3;
  --ink-mute:  #c7b893;
  --ink-faint: #8a7c5b;
  --line:      rgba(243, 233, 211, 0.13);
  --line-soft: rgba(243, 233, 211, 0.06);
  --accent:    #e09e6c;
  --accent-2:  #c47b48;
}

/* RESET ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt", "onum";
  overflow-x: hidden;
  transition: background-color 400ms ease, color 400ms ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }

/* Paper grain on the whole page */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.15  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
}

/* TYPOGRAPHY HELPERS ---------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.display em, .display .it {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow.both::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.both::after { content: ""; }

.section {
  padding: clamp(72px, 11vw, 140px) var(--pad-x);
  position: relative;
}
.section.tight { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.section.rule-top { border-top: 1px solid var(--line); }
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.section-inner.narrow { max-width: var(--maxw-narrow); }

/* roman numeral chapter mark */
.chapter-mark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.chapter-mark .roman {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.chapter-mark .title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Decorative ornament divider */
.ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: clamp(40px, 6vw, 72px) auto;
  color: var(--accent);
  opacity: 0.85;
}
.ornament i {
  width: 56px;
  height: 1px;
  background: currentColor;
  display: block;
}
.ornament .dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: currentColor;
}
.ornament .star {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
}

/* BUTTONS ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 26px 18px 30px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 0;
  transition: transform 200ms ease, background 200ms ease;
  text-decoration: none;
  position: relative;
}
.btn:hover { transform: translate(-1px, -1px); background: var(--accent); }
.btn .arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
}
.btn-accent {
  background: var(--accent);
  color: var(--bg-paper);
}
.btn-accent:hover { background: var(--ink); }

.btn-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  transition: color 200ms ease, border-color 200ms ease;
}
.btn-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.btn-link .arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
}

/* YouTube CTA — секондарная пара к .btn:
   тот же размер/типографика, светлый фон + тонкая ink-рамка,
   крупная родная YT-иконка слева */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 26px 17px 22px;             /* 17 + 1px border = 18 (как у .btn) */
  background: var(--bg-paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  line-height: 1;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.btn-youtube:hover {
  transform: translate(-1px, -1px);
  background: var(--ink);
  color: var(--bg);
}
.btn-youtube .yt-icon {
  width: 32px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
/* при hover делаем иконку чуть светлее, чтобы на тёмном фоне читалась */
.btn-youtube:hover .yt-icon path:first-child { fill: var(--accent); }

/* MASTHEAD --------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px var(--pad-x);
  gap: 24px;
}
.masthead-left {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.masthead-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  text-align: center;
  color: var(--ink);
}
.masthead-brand .sub {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}
.masthead-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  display: inline-flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.lang-toggle button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-faint);
  text-transform: uppercase;
  font: inherit;
  position: relative;
}
.lang-toggle button.active { color: var(--ink); }
.lang-toggle button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
}
.lang-toggle .sep { color: var(--ink-faint); opacity: 0.5; }

@media (max-width: 700px) {
  .masthead-inner { grid-template-columns: 1fr 1fr; }
  .masthead-brand { display: none; }
}

/* HERO ------------------------------------------------------------------- */
.hero {
  padding: clamp(40px, 7vw, 88px) var(--pad-x) clamp(60px, 9vw, 110px);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: clamp(40px, 6vw, 72px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta-row .right { color: var(--accent); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-headline {
  font-size: clamp(54px, 8.6vw, 140px);
  margin: 0 0 36px;
}
.hero-headline .drop {
  /* tiny dot before title */
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.3em;
  vertical-align: super;
  letter-spacing: 0;
  margin-right: 0.2em;
}
.hero-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--ink-mute);
  max-width: 26ch;
  margin: 0 0 40px;
}
.hero-body {
  font-size: 18px;
  line-height: 1.65;
  max-width: 50ch;
  color: var(--ink);
  margin: 0 0 40px;
}
.hero-cta-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-byline {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-byline strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

/* Hero photo (natural aspect, no crop) */
.hero-plate {
  position: relative;
  margin-top: 8px;
}
.hero-plate img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-plate .caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.hero-plate .caption em {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}

/* ESSAY (manifest, bio, intro etc) ------------------------------------- */
.essay {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--ink);
  max-width: 64ch;
}
.essay p {
  margin: 0 0 1em;
}
.essay p + p {
  text-indent: 0;
}
.essay p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 5.2em;
  float: left;
  line-height: 0.82;
  padding: 0.04em 0.12em 0 0;
  color: var(--accent);
  font-style: normal;
}
.essay .lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 32px;
}
.essay .lede::first-letter {
  font-size: 1em;
  float: none;
  color: inherit;
  font-family: inherit;
  padding: 0;
}

/* Manifest section */
.manifest {
  background: var(--bg-soft);
}
.manifest-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (max-width: 800px) {
  .manifest-head { grid-template-columns: 1fr; }
}
.manifest-title {
  font-size: clamp(46px, 6vw, 88px);
}
.manifest-quote {
  margin-top: clamp(48px, 7vw, 80px);
  padding-left: clamp(20px, 4vw, 56px);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
}
.manifest-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 24px;
}

/* PAVEL bio -------------------------------------------------------------- */
.bio {
  background: var(--bg);
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; }
}
.bio-photos {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.bio-plate {
  position: relative;
}
.bio-plate img {
  width: 100%;
  height: auto;
}
.bio-plate .caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.bio-plate .caption em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
}
.bio-title {
  font-size: clamp(42px, 5vw, 72px);
  margin: 0 0 8px;
}
.bio-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-mute);
  margin: 0 0 32px;
}
.bio-stats {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bio-stat .v {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  color: var(--accent);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.bio-stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
  display: block;
}

/* COURSE — flagship listing -------------------------------------------- */
.course-section {
  background: var(--bg-soft);
}
.course-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (max-width: 800px) {
  .course-head { grid-template-columns: 1fr; }
}
.course-name {
  font-size: clamp(46px, 6.5vw, 96px);
  margin: 0 0 24px;
}
.course-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 32px;
  font-weight: 400;
}
.course-facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.course-fact {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.course-fact strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
}

/* Course poster */
.course-poster {
  position: relative;
}
.course-poster img {
  width: 100%;
  height: auto;
}
.course-poster .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--bg-paper);
  cursor: pointer;
}
.course-poster .play-disc {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--bg-paper);
  font-family: var(--font-display);
  font-style: italic;
  box-shadow: 0 12px 40px -8px rgba(28, 21, 11, 0.4);
  transition: transform 200ms ease;
}
.course-poster .play:hover .play-disc { transform: scale(1.06); }
.course-poster .label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg-paper);
  background: rgba(28, 21, 11, 0.8);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
}

/* Chapter index — 10 lessons */
.chapters {
  margin-top: clamp(48px, 7vw, 88px);
}
.chapters-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chapters-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 36px;
}
.chapter {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  cursor: pointer;
}
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter:hover .chapter-name { color: var(--accent); }
.chapter:hover .chapter-arrow { color: var(--accent); transform: translateX(4px); }
.chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.chapter-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.chapter-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  transition: color 200ms ease;
}
.chapter-desc {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-top: 8px;
  max-width: 70ch;
  display: none;
}
.chapter.open .chapter-desc { display: block; }
.chapter.open .chapter-arrow { transform: rotate(45deg); }
.chapter-arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-faint);
  transition: transform 200ms ease, color 200ms ease;
  user-select: none;
}
@media (max-width: 600px) {
  .chapter { grid-template-columns: 56px 1fr auto; gap: 16px; padding: 22px 0; }
  .chapter-num { font-size: 28px; }
  .chapter-name { font-size: 20px; }
}

/* OUTCOMES — what you'll have */
.outcomes-section { background: var(--bg); }
.outcomes-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 800px) { .outcomes-head { grid-template-columns: 1fr; } }
.outcomes-title {
  font-size: clamp(40px, 5vw, 72px);
  margin: 0;
}
.outcomes-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink-mute);
  line-height: 1.4;
  max-width: 32ch;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 760px) { .outcomes-grid { grid-template-columns: 1fr; } }
.outcome {
  background: var(--bg);
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.outcome-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  color: var(--accent);
  line-height: 0.8;
  margin-bottom: 8px;
}
.outcome h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.outcome p {
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0;
}

/* INSIDE THE CLUB — additional content */
.inside-section {
  background: var(--bg-soft);
}
.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 56px;
}
@media (max-width: 800px) { .inside-grid { grid-template-columns: 1fr; } }
.inside-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
}
.inside-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
  grid-column: 1 / 2;
}
.inside-item .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  grid-column: 2 / 3;
  text-align: right;
}
.inside-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mute);
  grid-column: 1 / -1;
  max-width: 60ch;
}

/* FOR WHOM --------------------------------------------------------------- */
.forwhom-section {
  background: var(--bg);
}
.forwhom-title {
  font-size: clamp(42px, 5.5vw, 80px);
  margin: 0 0 clamp(40px, 6vw, 72px);
  max-width: 16ch;
}
.forwhom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 800px) { .forwhom-grid { grid-template-columns: 1fr; } }
.forwhom-col h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 26px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.forwhom-col.yes h3 { color: var(--accent); }
.forwhom-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.forwhom-col li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.forwhom-col li:last-child { border-bottom: 1px solid var(--line); }
.forwhom-col .mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  padding-top: 4px;
}
.forwhom-col.yes .mark { color: var(--accent); }

/* PULL-QUOTE section ---------------------------------------------------- */
.pull-section {
  background: var(--accent);
  color: var(--bg-paper);
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}
.pull-section .eyebrow {
  color: var(--bg-paper);
  opacity: 0.8;
}
.pull-section .eyebrow::before { background: var(--bg-paper); }
.pull-section blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 32px 0 32px;
  text-wrap: balance;
  max-width: 30ch;
}
.pull-section cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.pull-section .pull-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 800px) { .pull-section .pull-grid { grid-template-columns: 1fr; } }
.pull-section .pull-photo img {
  width: 100%;
  height: auto;
}

/* GALLERY ---------------------------------------------------------------- */
.gallery-section { background: var(--bg); }
.gallery-grid {
  columns: 3;
  column-gap: 24px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-item .caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* PRICING ---------------------------------------------------------------- */
.price-section { background: var(--bg-soft); }
.price-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px);
  background: var(--bg-paper);
  border: 1px solid var(--ink);
  position: relative;
  text-align: center;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.price-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.price-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}
.price-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(96px, 16vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 24px 0 8px;
}
.price-num .cur {
  font-style: italic;
  color: var(--accent);
  font-size: 0.55em;
  vertical-align: 0.18em;
  margin-left: 6px;
}
.price-period {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.price-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  list-style: none;
  padding: 0;
}
@media (max-width: 580px) { .price-includes { grid-template-columns: 1fr; } }
.price-includes li {
  padding-left: 18px;
  position: relative;
  color: var(--ink);
}
.price-includes li::before {
  content: "✦";
  position: absolute;
  left: 0; top: 2px;
  color: var(--accent);
  font-size: 12px;
}
.price-fine {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* FAQ -------------------------------------------------------------------- */
.faq-section { background: var(--bg); }
.faq-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
@media (max-width: 800px) { .faq-head { grid-template-columns: 1fr; } }
.faq-title {
  font-size: clamp(40px, 5vw, 72px);
  margin: 0;
}
.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
}
.faq-q h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(20px, 2.2vw, 24px);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 200ms ease;
}
.faq-item:hover .faq-q h4 { color: var(--accent); }
.faq-q .toggle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-faint);
  user-select: none;
  transition: transform 200ms ease, color 200ms ease;
  line-height: 1;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  display: none;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 70ch;
}
.faq-item.open .faq-a { display: block; }

/* FINAL CTA -------------------------------------------------------------- */
.final {
  background: var(--bg-soft);
  text-align: center;
  padding: clamp(120px, 16vw, 200px) var(--pad-x);
  position: relative;
}
.final-orn {
  margin-bottom: 32px;
  color: var(--accent);
}
.final h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 auto 36px;
  max-width: 14ch;
}
.final h2 em { color: var(--accent); font-style: italic; }
.final p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-mute);
  max-width: 36ch;
  margin: 0 auto 48px;
}
.final .small {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* FOOTER ----------------------------------------------------------------- */
.colophon {
  background: var(--ink);
  color: var(--bg);
  padding: 56px var(--pad-x);
}
.colophon-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 700px) {
  .colophon-inner { grid-template-columns: 1fr; gap: 32px; }
}
.colophon h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 14px;
  font-weight: 500;
}
.colophon .brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--bg);
}
.colophon p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.7;
}
.colophon ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.colophon ul a { opacity: 0.8; }
.colophon ul a:hover { opacity: 1; color: var(--accent-2); }
.colophon-bottom {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  gap: 16px;
  flex-wrap: wrap;
}

/* MODAL ----------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.86);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-box {
  width: 100%;
  max-width: 1020px;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  border: 1px solid rgba(255,255,255,0.2);
}
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute;
  top: -48px; right: 0;
  background: transparent;
  border: 0;
  color: #f4ecd6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ====================================================================
   Language-switching (both RU + EN in single DOM)
   ==================================================================== */
html[lang="ru"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="ru"] { display: none !important; }

/* Inline variants (for fragments inside flow text — switch via inline-block reset where needed) */
[data-lang].inline { display: inline; }
html[lang="ru"] [data-lang="en"].inline { display: none !important; }
html[lang="en"] [data-lang="ru"].inline { display: none !important; }

/* Modal close button — bilingual */
.modal-close .lbl { display: inline; }

/* ====================================================================
   Tweaks panel (theme switcher)
   ==================================================================== */
.tweaks {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tweaks-toggle {
  background: var(--ink);
  color: var(--bg-paper);
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.tweaks-toggle:hover { background: var(--accent); }
.tweaks-panel {
  display: none;
  background: var(--bg-paper);
  border: 1px solid var(--ink);
  padding: 16px;
  margin-bottom: 8px;
  color: var(--ink);
  min-width: 180px;
}
.tweaks.open .tweaks-panel { display: block; }
.tweaks-panel h6 {
  margin: 0 0 10px;
  font: inherit;
  font-weight: 500;
  color: var(--ink-faint);
}
.tweaks-panel .theme-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tweaks-panel button {
  background: none;
  border: 0;
  text-align: left;
  padding: 6px 8px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.tweaks-panel button:hover { color: var(--accent); }
.tweaks-panel button.active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
}

/* =========================================================
   ВИДЕО-МОДАЛКА (course-trailer.mp4)
   ========================================================= */
.video-modal[hidden] { display: none !important; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 6, 4, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  animation: vm-fade 200ms ease;
}
@keyframes vm-fade { from { opacity: 0; } to { opacity: 1; } }
.video-modal-inner {
  width: 100%;
  max-width: 1100px;
  position: relative;
}
.video-modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: transparent;
  color: var(--bg);
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  transition: opacity 150ms ease;
}
.video-modal-close:hover { opacity: 0.7; }
#video-player {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  background: #000;
  outline: 0;
}

/* промежуточный CTA после программы курса */
.course-cta {
  margin-top: clamp(56px, 8vw, 88px);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}
.course-cta-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink);
  line-height: 1.45;
  max-width: 56ch;
}
@media (max-width: 720px) {
  .course-cta { flex-direction: column; align-items: flex-start; }
}
