/* BRIDGE Consult Academy — лендинг онлайн-практикума по контрактам FIDIC.
   Регистр «дорого» у этого бренда уже задан на главной: матовый чёрный,
   тёплое золото, дымчатое стекло, тонкая чертёжная сетка (см. poster-ultra.jpg
   и секцию fidic-ecosystem в public/index.html). Страница держится того же языка.

   Секции намеренно НЕ разделены полосами разного цвета: фон один сквозной,
   глубина набирается радиальными свечениями и стеклом, а границы секций
   растворяются градиентами — чтобы страница читалась как одно полотно.

   Страница самостоятельная (свой CSS, без tw.css) — как
   /summer-school-georgia-2026/, чтобы правки лендинга не задевали основной сайт. */

:root {
  --void: #0a0908;
  --ground: #100e0c;
  --ground-2: #17140f;
  --raise: rgba(255, 255, 255, .035);
  --raise-2: rgba(255, 255, 255, .055);

  --gold: #c9a961;
  --gold-lt: #e8d5a8;
  --gold-dp: #96793f;
  --gold-glow: rgba(201, 169, 97, .22);

  --ink: #f3eee4;
  --muted: rgba(243, 238, 228, .64);
  --muted-2: rgba(243, 238, 228, .42);

  --line: rgba(201, 169, 97, .20);
  --line-soft: rgba(243, 238, 228, .09);
  --line-hair: rgba(243, 238, 228, .055);

  --ui: Inter, "Segoe UI", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --header-h: 76px;
  --gutter: clamp(20px, 5vw, 72px);
  --pad-y: clamp(66px, 7.4vw, 114px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Сквозная атмосфера: чертёжная сетка и два тёплых свечения. Фиксирована,
   поэтому при скролле контент «плывёт» по неподвижному фону. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 12% 0%, rgba(201, 169, 97, .10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 92% 62%, rgba(201, 169, 97, .055), transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(243, 238, 228, .022) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(243, 238, 228, .022) 79px 80px);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl { margin-top: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.container { width: min(1280px, calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.section { position: relative; padding: var(--pad-y) 0; }
/* Растворяющиеся границы секций вместо жёстких полос разного цвета. */
.section-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .022) 30%, rgba(255, 255, 255, .022) 70%, transparent);
}
.section > .container { position: relative; z-index: 1; }

/* ── Типографика ──────────────────────────────────────────────────────── */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.label::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

h2 {
  margin: 0 0 26px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 20ch;
  text-wrap: balance;
}
h2.wide { max-width: 30ch; }
h2 em {
  font-style: italic;
  background: linear-gradient(96deg, var(--gold-lt), var(--gold) 55%, var(--gold-dp));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { max-width: 64ch; font-size: clamp(16px, 1.35vw, 18.5px); color: var(--muted); }
.lead b, .lead strong { font-weight: 500; color: var(--ink); }

.clause {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(201, 169, 97, .07);
  font-family: var(--mono);
  font-size: .8em;
  color: var(--gold-lt);
  white-space: nowrap;
}

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.button.primary {
  color: #17130c;
  background: linear-gradient(100deg, var(--gold-lt), var(--gold) 52%, var(--gold-dp));
  box-shadow: 0 8px 30px -10px var(--gold-glow);
}
.button.primary:hover { box-shadow: 0 14px 44px -10px rgba(201, 169, 97, .48); }
.button.ghost { border-color: var(--line); color: var(--ink); }
.button.ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(201, 169, 97, .16), rgba(201, 169, 97, .04));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.button.ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.button.ghost:hover::after { opacity: 1; }
.button > * { position: relative; z-index: 1; }

/* ── Шапка ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
}
.site-header.is-stuck {
  background: rgba(12, 11, 9, .82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line-hair);
}
.brand img { height: 32px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .94; }
.nav-links { display: flex; gap: 30px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.nav-links a { position: relative; padding: 5px 0; transition: color .35s var(--ease); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.header-right { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted-2); }
.lang-switch a { transition: color .3s var(--ease); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-current { color: var(--gold); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-lt);
  white-space: nowrap;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.nav-cta:hover { background: rgba(201, 169, 97, .12); border-color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100vh, 940px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 96px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(.88) contrast(1.03) brightness(.92);
  transform: scale(1.06);
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.6%, -1.4%, 0); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Снимок уже приходит с тёмной левой третью под текст, поэтому затемняем
     заметно слабее, чем требовалось прежней светлой фотографии. */
  background:
    linear-gradient(102deg, rgba(10, 9, 8, .74) 0%, rgba(10, 9, 8, .54) 36%, rgba(10, 9, 8, .22) 68%, rgba(10, 9, 8, .12) 100%),
    linear-gradient(0deg, var(--ground) 1%, rgba(10, 9, 8, .58) 26%, transparent 58%),
    linear-gradient(180deg, rgba(10, 9, 8, .58) 0%, transparent 20%),
    radial-gradient(ellipse 46% 38% at 20% 54%, rgba(201, 169, 97, .10), transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(36px, 5vw, 84px); align-items: end; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero h1 {
  margin: 0 0 28px;
  max-width: 17ch;
  font-family: var(--display);
  font-size: clamp(40px, 5.8vw, 78px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -.028em;
}
.hero h1 em {
  display: block;
  font-style: italic;
  background: linear-gradient(96deg, var(--gold-lt) 8%, var(--gold) 48%, var(--gold-dp));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { margin: 0 0 40px; max-width: 52ch; font-size: clamp(16.5px, 1.5vw, 19.5px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-creds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-hair);
}
.hero-creds img { height: 56px; width: auto; object-fit: contain; }
.hero-creds span { max-width: 30ch; font-size: 12.5px; line-height: 1.55; color: var(--muted-2); }

.hero-card {
  width: 286px;
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero-card dl { display: grid; margin: 0; }
.hero-card div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-hair); }
.hero-card div:first-child { padding-top: 0; }
.hero-card div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.hero-card dd { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 500; color: var(--gold-lt); white-space: nowrap; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--gold));
  opacity: .55;
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue { 0%, 100% { transform: translateX(-50%) scaleY(.4); opacity: .25; } 50% { transform: translateX(-50%) scaleY(1); opacity: .7; } }

/* ── Атмосферная подложка секции ──────────────────────────────────────── */
.section-atmo { overflow: hidden; }
.section-atmo .atmo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.section-atmo .atmo img { width: 100%; height: 100%; object-fit: cover; opacity: .30; }
.section-atmo .atmo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ground), rgba(16, 14, 12, .55) 26%, rgba(16, 14, 12, .55) 74%, var(--ground));
}

/* ── Полоса чисел ─────────────────────────────────────────────────────── */
.stats { position: relative; padding: clamp(56px, 6vw, 86px) 0; }
.stats::before, .stats::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(28px, 3vw, 44px); }
.stat { position: relative; padding-left: 26px; }
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.stat-value {
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, var(--gold-lt), var(--gold) 60%, var(--gold-dp));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-value small { font-size: .46em; letter-spacing: 0; }
.stat p { margin: 14px 0 0; max-width: 24ch; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ── Редакционная двухколонка ─────────────────────────────────────────── */
.editorial { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(30px, 5vw, 96px); align-items: start; }
.editorial-aside h2 { font-size: clamp(26px, 2.5vw, 36px); max-width: 14ch; }
.editorial-aside { position: sticky; top: calc(var(--header-h) + 48px); }
.editorial-body > p + p { margin-top: 22px; }
.pullquote {
  position: relative;
  margin: 44px 0 0;
  padding: 34px 0 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(20px, 2.1vw, 28px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.42;
  color: var(--gold-lt);
  text-wrap: balance;
}

/* ── Стеклянный лист: анатомия кейса ──────────────────────────────────── */
.anatomy-wrap { position: relative; margin-top: 60px; }
.anatomy-spine {
  position: absolute;
  left: -38px; top: 0;
  transform-origin: left top;
  transform: rotate(90deg) translateY(-100%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.sheet {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(201, 169, 97, .12), rgba(201, 169, 97, .02));
}
.sheet-head strong { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); }
.sheet-head span { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.sheet-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 260px) minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 21px 30px;
  border-top: 1px solid var(--line-hair);
  transition: background-color .45s var(--ease);
}
.sheet-row:first-of-type { border-top: 0; }
.sheet-row:hover { background: rgba(201, 169, 97, .07); }
.sheet-n { font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.sheet-k { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.sheet-v { font-size: 14.5px; color: var(--muted); }

/* ── Модули ───────────────────────────────────────────────────────────── */
.mod-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 76px);
  padding: clamp(34px, 3.8vw, 54px) 0;
  border-top: 1px solid var(--line-hair);
}
.mod-group:first-of-type { border-top: 0; }
.mod-group-head { display: flex; align-items: flex-start; gap: 20px; }
/* Текстовая колонка тянется на всю ширину, иначе картинки групп получают
   разную ширину — по длине самой длинной строки описания. */
.mod-group-head > div { flex: 1; min-width: 0; }
.mod-roman {
  /* Фиксированная колонка: I, II, III и IV разной ширины, иначе текст и
     картинки четырёх групп встают по разным левым границам. */
  flex: 0 0 46px;
  font-family: var(--display);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 400;
  line-height: .9;
  background: linear-gradient(150deg, var(--gold-lt), var(--gold-dp));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mod-group-head h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .005em; color: var(--ink); }
.mod-group-head p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.mod-figure { margin: 22px 0 0; border-radius: 4px; overflow: hidden; border: 1px solid var(--line-hair); }
.mod-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; opacity: .82; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.mod-group:hover .mod-figure img { opacity: 1; transform: scale(1.03); }

.mod-list { display: grid; align-content: start; }
.mod-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--line-hair);
  font-size: 16.5px;
  color: var(--muted);
  transition: color .4s var(--ease), padding-left .5s var(--ease);
}
.mod-item:last-child { border-bottom: 0; }
.mod-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: scaleY(0);
  transition: transform .5s var(--ease);
}
.mod-item:hover { color: var(--ink); padding-left: 16px; }
.mod-item:hover::before { transform: scaleY(1); }
.mod-item i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--gold); }

/* ── Разбор кейса ─────────────────────────────────────────────────────── */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.case-doc {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
}
.case-doc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(201, 169, 97, .12), rgba(201, 169, 97, .02));
}
.case-doc-head strong { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); }
.case-block { padding: 24px 28px; border-top: 1px solid var(--line-hair); }
.case-block:first-of-type { border-top: 0; }
.case-block h4 { margin: 0 0 9px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.case-block p { margin: 0; font-size: 15px; color: var(--muted); }
.case-block.is-key { background: linear-gradient(100deg, rgba(201, 169, 97, .10), transparent); }
.case-block.is-key p { color: var(--ink); }

/* ── Аудитория ────────────────────────────────────────────────────────── */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; margin-top: 56px; }
.aud {
  position: relative;
  padding: clamp(28px, 3vw, 38px) clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line-hair);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.aud::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201, 169, 97, .14), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.aud:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .9); }
.aud:hover::after { opacity: 1; }
.aud > * { position: relative; z-index: 1; }
.aud-n { font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.aud h3 { margin: 16px 0 12px; font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); }
.aud p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ── Формат ───────────────────────────────────────────────────────────── */
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: clamp(26px, 3vw, 46px); margin-top: 58px; }
.fmt { padding-top: 24px; border-top: 1px solid var(--line); }
.fmt h3 { margin: 0 0 11px; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.fmt p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ── Преподаватель ────────────────────────────────────────────────────── */
.trainer { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 80px); align-items: start; margin-top: 52px; }
.trainer-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95);
}
.trainer-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 9, 8, .5));
  pointer-events: none;
}
.trainer-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: saturate(.92) contrast(1.03); }
.trainer-badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 26px; }
.trainer-badges img { height: 60px; width: auto; object-fit: contain; }
.trainer-name { margin: 0 0 10px; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.018em; }
.trainer-role { margin: 0 0 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; color: var(--gold); }
.trainer-bio p { font-size: 15.5px; color: var(--muted); }
.trainer-bio p + p { margin-top: 17px; }
.trainer-bio p:first-child { font-size: 18px; color: var(--ink); }
.creds-title { margin: 38px 0 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 0 38px; margin: 0; padding: 0; list-style: none; }
.creds li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line-hair); font-size: 14px; color: var(--muted); }
.creds li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 1px; background: var(--gold); }
.creds li a { color: var(--gold-lt); }
.creds li a:hover { text-decoration: underline; }

/* ── Форма ────────────────────────────────────────────────────────────── */
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(34px, 5vw, 88px); align-items: start; }
.apply-list { margin: 34px 0 0; padding: 0; list-style: none; }
.apply-list li { position: relative; padding: 15px 0 15px 28px; border-top: 1px solid var(--line-hair); font-size: 15px; color: var(--muted); }
.apply-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 1px; background: var(--gold); }
.apply-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  backdrop-filter: blur(16px);
  box-shadow: 0 44px 100px -44px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.apply-form label { display: grid; gap: 9px; min-width: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.apply-form input, .apply-form select, .apply-form textarea {
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-hair);
  border-radius: 3px;
  background: rgba(0, 0, 0, .34);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.apply-form textarea { resize: vertical; }
.apply-form input::placeholder, .apply-form textarea::placeholder { color: rgba(243, 238, 228, .3); }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, .5);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, .1);
}
.apply-form select option { color: #17130c; background: #f3eee4; }
.apply-form button { margin-top: 10px; width: 100%; }
.apply-form button:disabled { opacity: .5; cursor: default; }
.form-note { margin: 0; min-height: 1.5em; font-size: 13px; line-height: 1.55; color: var(--muted); }
/* Ловушка для ботов: невидима для человека, но не display:none — часть ботов
   такие поля пропускает. Заполненную ловушку /api/apply не выбрасывает, а
   помечает (см. комментарий в api/apply.js). */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Подвал ───────────────────────────────────────────────────────────── */
.site-footer { padding: 60px 0 54px; border-top: 1px solid var(--line-hair); background: var(--void); font-size: 13.5px; color: var(--muted-2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 44px; }
.site-footer a { color: var(--muted); transition: color .35s var(--ease); }
.site-footer a:hover { color: var(--gold-lt); }
.footer-fine { font-size: 12px; line-height: 1.65; color: rgba(243, 238, 228, .3); }

/* ── Появление при скролле ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Загрузка героя: элементы въезжают по очереди. */
.hero-in > * { opacity: 0; transform: translateY(22px); animation: heroIn .95s var(--ease) forwards; }
.hero-in > *:nth-child(1) { animation-delay: .12s; }
.hero-in > *:nth-child(2) { animation-delay: .22s; }
.hero-in > *:nth-child(3) { animation-delay: .32s; }
.hero-in > *:nth-child(4) { animation-delay: .42s; }
.hero-in > *:nth-child(5) { animation-delay: .52s; }
.hero-card { opacity: 0; transform: translateY(26px); animation: heroIn 1.05s var(--ease) .6s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-in > *, .hero-card { opacity: 1; transform: none; animation: none; }
  .hero-media img { animation: none; transform: scale(1.02); }
  .scroll-cue { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { width: 100%; max-width: 440px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .anatomy-spine { display: none; }
}
@media (max-width: 980px) {
  .editorial, .trainer, .apply-grid, .mod-group { grid-template-columns: minmax(0, 1fr); }
  .editorial-aside { position: static; }
  .trainer-photo { max-width: 340px; }
  .sheet-row { grid-template-columns: 44px minmax(0, 1fr); }
  .sheet-v { grid-column: 2; }
  .mod-figure { max-width: 320px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  h2, h2.wide { max-width: none; }
  /* Без этого шапка (лого + языки + кнопка) не влезает в 375px
     и тянет горизонтальный скролл на всю страницу. */
  .site-header { padding: 0 14px; gap: 10px; }
  .brand img { height: 25px; }
  .header-right { gap: 12px; }
  .lang-switch { gap: 7px; font-size: 11px; }
  .nav-cta { padding: 10px 13px; font-size: 10px; letter-spacing: .08em; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 72px); }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(10, 9, 8, .9) 0%, rgba(10, 9, 8, .74) 34%, rgba(10, 9, 8, .96) 100%),
      radial-gradient(ellipse 70% 40% at 30% 46%, rgba(201, 169, 97, .12), transparent 70%);
  }
  .scroll-cue { display: none; }
  .button { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .stat { padding-left: 20px; }
  .sheet-head, .sheet-row, .case-block, .case-doc-head { padding-left: 20px; padding-right: 20px; }
  body::before { background-size: auto, auto, 48px 48px, 48px 48px; }
}
