/* =====================================================================
   Melodia Vitae — School of Young Scientists
   Twilight forest theme: dark green, descent metaphor, parallax layers
   ===================================================================== */

:root {
  /* PALETTE — twilight pine forest */
  --bg: #0a1410;             /* near-black with green undertone */
  --bg-alt: #0f1c17;
  --bg-panel: rgba(10, 22, 17, 0.78);
  --bg-panel-solid: #11231c;
  --bg-card: #142e25;
  --bg-card-hover: #173629;

  --accent: #7da37d;         /* muted sage — primary green */
  --accent-bright: #a8c8a0;
  --accent-soft: rgba(125, 163, 125, 0.12);
  --gold: #c9b67d;           /* understated parchment/brass accent */
  --gold-soft: rgba(201, 182, 125, 0.15);

  --text: #e8efe8;
  --text-muted: #97a89a;
  --text-quiet: #6c7a6e;
  --border: rgba(168, 200, 160, 0.14);
  --border-strong: rgba(168, 200, 160, 0.28);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);

  --t: 320ms cubic-bezier(.4, 0, .2, 1);

  --section-pad: clamp(72px, 9vw, 132px);
  --container: 1180px;
  --container-narrow: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t), opacity var(--t);
}
a:hover { color: var(--accent-bright); }

img, svg { display: block; max-width: 100%; height: auto; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

/* =====================================================================
   LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.section--alt {
  background: var(--bg-alt);
}
.section--intro {
  /* first solid panel after hero — slightly more breathing room */
  padding-top: clamp(120px, 14vw, 180px);
}

/* =====================================================================
   HEADER (transparent over hero, solidifies on scroll)
   ===================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background var(--t), backdrop-filter var(--t), border var(--t);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 20, 16, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo__mark {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  /* The PNG is white on transparent — sits naturally on the dark header */
  display: block;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}
.logo__sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-top: 1px;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  gap: 32px;
}
.nav__list > li > a,
.nav__list > li > .nav__parent {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav__list > li > a:hover,
.nav__list > li > .nav__parent:hover { color: var(--text); }

/* Над фото (heroes без скролла) — лого с тенью, меню и CTA в стеклянных
   пилюлях с backdrop-blur, чтобы читалось на любой подложке (включая яркий
   underwater на society). */
.header:not(.is-scrolled) .logo__title,
.header:not(.is-scrolled) .logo__sub {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.4);
}

.header:not(.is-scrolled) 
.header:not(.is-scrolled) .nav__list > li > a,
.header:not(.is-scrolled) .nav__list > li > .nav__parent {
  color: rgba(255, 255, 255, 0.94);
}
.header:not(.is-scrolled) .nav__list > li > a:hover,
.header:not(.is-scrolled) .nav__list > li > .nav__parent:hover {
  color: #fff;
}

.header:not(.is-scrolled) .header__cta {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 6px 2px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.header:not(.is-scrolled) .header__cta:hover { color: #fff; }

/* Dropdown sub-menu — раскрывается по hover/focus
   Структура заказчика: «Site» / «School of Young Scientists» (с подразделами) */
.nav__has-sub { position: relative; }
.nav__chev {
  width: 12px; height: 12px;
  transition: transform 0.2s ease;
}
.nav__has-sub:hover .nav__chev,
.nav__has-sub:focus-within .nav__chev { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  margin-top: 12px;
  min-width: 220px;
  padding: 8px 0;
  background: rgba(11, 23, 18, 0.96);
  border: 1px solid rgba(125, 163, 125, 0.18);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav__sub a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__sub a:hover { color: var(--accent); background: rgba(125, 163, 125, 0.08); }

.header__cta {
  flex-shrink: 0;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 6px 18px rgba(201, 182, 125, 0.25);
}
.btn--primary:hover {
  background: #d8c692;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 182, 125, 0.35);
  color: #14110a;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

.btn--quiet {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--quiet:hover {
  color: var(--text);
}

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--xl { padding: 20px 36px; font-size: 16px; }

/* =====================================================================
   STICKY APPLY (floating bottom-right)
   ===================================================================== */
.sticky-apply {
  position: fixed;
  right: clamp(20px, 3vw, 32px);
  bottom: clamp(20px, 3vw, 32px);
  z-index: 40;

  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);

  background: var(--gold);
  color: #14110a;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;

  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(201, 182, 125, 0.08);

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(.4, 0, .2, 1),
              transform 380ms cubic-bezier(.4, 0, .2, 1),
              background var(--t), color var(--t);
}
.sticky-apply.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-apply:hover {
  background: #d8c692;
  color: #14110a;
  transform: translateY(-2px);
}
.sticky-apply__arrow { width: 18px; height: 18px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 180px) 0 clamp(80px, 12vh, 120px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Light vignette only — keep the photograph itself bright and crisp.
     Just a hint of darkening at the very bottom for seamless transition. */
  background:
    linear-gradient(180deg,
      rgba(10, 20, 16, 0.10) 0%,
      rgba(10, 20, 16, 0.00) 30%,
      rgba(10, 20, 16, 0.00) 80%,
      rgba(10, 20, 16, 0.45) 100%
    );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 18ch;
  margin-bottom: 32px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text);
  max-width: 56ch;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hero__badges li {
  position: relative;
  padding: 0 18px;
}
.hero__badges li:first-child { padding-left: 0; }
.hero__badges li:not(:first-child)::before {
  content: '·';
  position: absolute;
  left: -2px;
  color: var(--accent);
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  width: 2px;
  height: 48px;
  background: rgba(168, 200, 160, 0.18);
  overflow: hidden;
}
.hero__scroll span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-bright);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* =====================================================================
   SECTIONS WITH PARALLAX BACKGROUND PHOTOS
   Тексты ложатся ПОВЕРХ фото; фото движется медленнее текста за счёт
   JS-параллакса (см. script.js, селектор [data-parallax-bg]).
   ===================================================================== */
.section--with-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Под фото-полосой секция уходит на сплошной фон. Цвет переопределяется
     в html[data-page="society"] для океанической версии. */
  background: var(--bg);
}
.section--with-bg > .container,
.section--with-bg > .section__panel,
.section--with-bg > .section__panel--center,
.section--with-bg > * {
  position: relative;
  z-index: 2;
}
/* Фон-картинка прижат к верху секции и ограничен по высоте, чтобы не
   растягиваться вертикально на длинных секциях (Research directions, Apply)
   и не превращаться в мыло. Запас сверху/снизу = ±200px под усиленный параллакс. */
/* Кадр-обрезка фото-зоны: фон ходит параллаксом внутри (запас ±220px >
   клампа ±175px) и физически не может оголить края — никаких «полосок». */
.section__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(640px, 80vh, 960px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.section__bg {
  position: absolute;
  inset: -220px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* Оверлей строго той же высоты, что bg — никаких щелей внизу. Градиент
   уезжает в solid var(--bg) к 88%, чтобы ВСЕ что ниже фотозоны было
   на чистом фоне секции. */
.section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(640px, 80vh, 960px);
  background: linear-gradient(
    180deg,
    rgba(10, 20, 16, 0.42) 0%,
    rgba(10, 20, 16, 0.55) 22%,
    rgba(10, 20, 16, 0.72) 48%,
    rgba(10, 20, 16, 0.92) 74%,
    var(--bg) 94%,
    var(--bg) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* =====================================================================
   FOREST IMAGES — six layers descending from canopy to ground
   ===================================================================== */
.hero__bg {
  background-image: url('../img/forest/01-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.section__bg--canopy     { background-image: url('../img/forest/02-canopy.jpg');     }
.section__bg--midcanopy  { background-image: url('../img/forest/03-midcanopy.jpg');  }
.section__bg--midtrunks  { background-image: url('../img/forest/04-midtrunks.jpg');  }
.section__bg--understory { background-image: url('../img/forest/05-understory.jpg'); }
.section__bg--floor      { background-image: url('../img/forest/06-floor.jpg');      }

/* === OCEAN BIOTOPE — used on Society page ===
   Положи изображения в assets/ocean/ (или поправь пути).
   Концепция заказчика: верхняя секция — над водой (бесконечная гладь, день),
   средние и нижние — в толще воды, всё темнее к низу. */
.section__bg--ocean-surface  { background-image: url('../img/ocean/01-surface.jpg');  background-color: #1b3852; }
.section__bg--ocean-shallows { background-image: url('../img/ocean/02-shallows.jpg'); background-color: #0e2538; }
.section__bg--ocean-depths   { background-image: url('../img/ocean/03-depths.jpg');   background-color: #061726; }

/* Society — тёмно-синяя палитра (тёплый зелёный остаётся как акцент-зерно). */
html[data-page="society"] {
  --bg: #061726;
  --bg-alt: #0a2238;
  --bg-panel: rgba(8, 26, 42, 0.78);
  --bg-panel-solid: #0b2236;
  --bg-card: #102d44;
  --bg-card-hover: #143653;
}
html[data-page="society"] .section--with-bg .section__overlay {
  background: linear-gradient(
    180deg,
    rgba(6, 23, 38, 0.30) 0%,
    rgba(6, 23, 38, 0.45) 22%,
    rgba(6, 23, 38, 0.65) 45%,
    rgba(6, 23, 38, 0.92) 68%,
    var(--bg) 88%,
    var(--bg) 100%
  );
}

/* Society hero — тот же layout что на главной, но фон океана. */
html[data-page="society"] .hero__bg {
  background-image: url('../img/ocean/01-surface.jpg');
  background-position: center 50%;
}
/* Небольшое наложение на фон hero, чтобы белый заголовок читался лучше:
   плотнее слева (где текст) и снизу (переход к секции), справа фото остаётся
   светлым. Тон — из тёмно-синей палитры Общества. */
html[data-page="society"] .hero__vignette {
  background:
    linear-gradient(100deg,
      rgba(4, 16, 28, 0.60) 0%,
      rgba(4, 16, 28, 0.34) 42%,
      rgba(4, 16, 28, 0.08) 100%),
    linear-gradient(180deg,
      rgba(4, 16, 28, 0.28) 0%,
      rgba(4, 16, 28, 0.00) 32%,
      rgba(4, 16, 28, 0.00) 68%,
      rgba(4, 16, 28, 0.60) 100%);
}
.hero--society .hero__inner {
  /* На society в hero нет фото-сайдбара справа — текст растягиваем на всю ширину */
  padding-right: 0;
}
.hero__title--muted {
  display: block;
  color: #fff;
  font-weight: 400;
  opacity: .5;
}

/* === Контакт-карты с аватаром (Society → Founder / Office) ===
   двойной класс — чтобы перебить базовый .contact-card { flex-direction: column },
   объявленный ниже по файлу */
.contact-card.contact-card--with-photo {
  flex-direction: row;
  align-items: center;
  gap: 22px;
  text-align: left;
}
.contact-card__logo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__logo img { width: 52%; height: auto; }
@media (max-width: 520px) {
  .contact-card.contact-card--with-photo { flex-direction: column; text-align: center; }
  .contact-card__body { align-items: center; }
}
.contact-card__photo-btn {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.contact-card__photo-btn:hover { transform: scale(1.05); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.contact-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* === Photo zoom modal === */
.photo-zoom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.photo-zoom[aria-hidden="false"] { opacity: 1; }
.photo-zoom[hidden] { display: none; }
.photo-zoom__img {
  max-width: min(560px, 100%);
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  cursor: zoom-out;
}
.photo-zoom__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================================
   TYPOGRAPHY HELPERS
   ===================================================================== */
.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 22ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-title--light {
  color: var(--text);
}
.section-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-title {
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Section icon — Lucide-style, centered above the eyebrow */
.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  transition: transform 600ms cubic-bezier(.22, .61, .36, 1),
              border-color 600ms cubic-bezier(.22, .61, .36, 1);
}
.section-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}
.section-head:hover .section-icon,
.section__panel:hover .section-icon {
  border-color: var(--accent);
}

/* When a section-icon is present, automatically center the whole head */
.section-head:has(.section-icon),
.section__panel > .section-icon ~ * {
  /* When icon is the first child, center subsequent siblings text-align via parent rule */
}

/* Centered panel variant — used in parallax sections to center icon/eyebrow/title.
   Body content (lists, prose, form) stays left-aligned for readability. */
.section__panel--center {
  text-align: center;
}
.section__panel--center > .section-icon,
.section__panel--center > .section-eyebrow,
.section__panel--center > .section-title,
.section__panel--center > .section-lead,
.section__panel--center > .section-head {
  text-align: center;
}
.section__panel--center > .section-title,
.section__panel--center > .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.section__panel--center > .prose,
.section__panel--center > .bullet-list,
.section__panel--center > .virtues,
.section__panel--center > .timeline,
.section__panel--center > .steps,
.section__panel--center > .positions,
.section__panel--center > .apply-form {
  text-align: left; /* lists/forms remain left-aligned for legibility */
  margin-left: auto;
  margin-right: auto;
}
.section__panel--center > .prose,
.section__panel--center > .bullet-list,
.section__panel--center > .virtues {
  max-width: 64ch;
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.6;
}
.section-head--center .section-lead { margin: 0 auto; }

.prose {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--text);
  max-width: 64ch;
}
.prose + .prose { margin-top: 24px; }
.prose p + p { margin-top: 18px; }
.prose--quiet {
  color: var(--text-muted);
  font-size: clamp(15px, 1.1vw, 16.5px);
}
.prose em { color: var(--accent-bright); font-style: italic; }

.inline-link {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(168, 200, 160, 0.4);
}
.inline-link:hover {
  border-bottom-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* =====================================================================
   LISTS — bullets, virtues
   ===================================================================== */
.bullet-list {
  font-size: clamp(16px, 1.2vw, 18px);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullet-list li {
  position: relative;
  padding-left: 28px;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.virtues {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  text-align: left;
}
.virtue {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px;
  background: rgba(20, 46, 37, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  transition: background var(--t), border-color var(--t);
}
.virtue:hover {
  background: rgba(23, 54, 41, 0.75);
  border-color: var(--accent);
}
.virtue__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.virtue__icon svg { width: 20px; height: 20px; }
.virtue h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.virtue p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* =====================================================================
   MANIFESTO (Programme intro — 3 principles with icons)
   ===================================================================== */
.manifesto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(48px, 6vw, 80px);
}
.manifesto__item {
  padding: 36px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.manifesto__item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.manifesto__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.manifesto__icon svg { width: 24px; height: 24px; }
.manifesto__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.manifesto__item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   SKILL GRID — "The craft of research"
   ===================================================================== */

/* =====================================================================
   NUMBERED GRID — "Why different" (with icons + huge background numerals)
   ===================================================================== */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.numbered-grid__item {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background var(--t), border-color var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.numbered-grid__item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
/* (ватермарк-цифра и ватермарк-иконка убраны по фидбеку) */
.numbered-grid__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 18px;
  z-index: 1;
}
.numbered-grid__icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.numbered-grid__item h3 {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.numbered-grid__item p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   FACTS — programme structure (4 large cards with icons)
   ===================================================================== */



.fact__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.fact__value {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 4px;
}


/* =====================================================================
   REQUIREMENTS GRID
   ===================================================================== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.req-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background var(--t), border-color var(--t), transform var(--t);
  text-align: left;
}
.req-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.req-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.req-card__icon svg { width: 24px; height: 24px; }
.req-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.req-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   TIMELINE — trajectory (single shared track with an animated dot)
   ===================================================================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  margin-top: 40px;
  padding-top: 24px;
  text-align: left;
}
.timeline__track {
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 12px;
  pointer-events: none;
  z-index: 1;
}
.timeline__track-line {
  position: absolute;
  top: 5px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 6%,
    var(--accent) 94%,
    transparent 100%
  );
  opacity: 0.45;
}
.timeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 182, 125, 0.18),
              0 0 16px rgba(201, 182, 125, 0.4);
  transform: translateX(0);
  transition: transform 2.4s cubic-bezier(.22, .61, .36, 1),
              box-shadow 1s ease-out;
}
.timeline.is-revealed .timeline__dot {
  /* animates from left (year 1) to right (year 3) when section enters viewport.
     Distance set via --travel from JS, in pixels. */
  transform: translateX(var(--travel, calc(100% * 2)));
}
.timeline__item {
  position: relative;
  padding: 28px 28px;
  background: rgba(10, 20, 16, 0.6);
  border-radius: var(--radius-md);
  transition: background var(--t);
}
.timeline__item:hover {
  background: rgba(15, 28, 22, 0.85);
}
.timeline__year {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.timeline__body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.timeline__body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   OUTCOMES
   ===================================================================== */
.outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 32px;
  margin-bottom: 32px;
}
.outcomes li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.outcomes__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
}
.outcomes__icon svg { width: 20px; height: 20px; }
.outcomes li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* =====================================================================
   POSITIONS — research directions
   ===================================================================== */
.positions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 720px) {
  .positions { grid-template-columns: 1fr; }
}
.positions__group {
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background var(--t), border-color var(--t);
}
.positions__group:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.positions__group-title {
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent-bright);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.positions__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.positions__list li {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}
.positions__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =====================================================================
   STEPS — application process
   ===================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.steps__item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
}
.steps__item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.steps__item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =====================================================================
   APPLICATION FORM
   ===================================================================== */
.apply-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(10, 22, 16, 0.5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}
.apply-form__grid {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 16px;
}
.apply-form__grid:nth-of-type(2) { grid-template-columns: 1fr 1fr 1fr; }
.apply-form__grid:nth-of-type(3) { grid-template-columns: 1fr 1fr; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* чтобы grid-ячейка могла сжиматься, а не растягиваться под длинный <option> */
}
.form-field--narrow { grid-column: span 1; }
.form-field__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field__input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(10, 20, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), background var(--t);
}
.form-field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10, 20, 16, 0.85);
}
.form-field__input::placeholder { color: var(--text-quiet); }

select.form-field__input {
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%237da37d' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

.form-field__file {
  position: relative;
  display: block;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  background: rgba(10, 20, 16, 0.4);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.form-field__file:hover {
  border-color: var(--accent);
  background: rgba(10, 20, 16, 0.6);
}
.form-field__file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.form-field__file-label {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin-top: 2px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 12px;
}
.form-status {
  font-size: 14px;
  color: var(--accent-bright);
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
}

/* =====================================================================
   FAQ accordion — smooth grid-rows transition + chevron rotation
   ===================================================================== */
.faq {
  display: flex;
  flex-direction: column;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child {
  border-top: 1px solid var(--border);
}
.faq__summary {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-family: 'Inter', sans-serif;
  font-size: clamp(15.5px, 1.3vw, 17px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.45;
  transition: color var(--t);
}
.faq__summary:hover { color: var(--accent-bright); }
.faq__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq__question {
  flex: 1;
  min-width: 0;
}
.faq__chevron {
  width: 22px;
  height: 22px;
  color: var(--accent-bright);
  flex-shrink: 0;
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1),
              color 380ms cubic-bezier(.22, .61, .36, 1);
}
.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Smooth height animation using CSS grid trick: 0fr → 1fr.
   Works on all modern browsers without JS measurement. */
.faq__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(.22, .61, .36, 1);
}
.faq__item.is-open .faq__content {
  grid-template-rows: 1fr;
}
.faq__content-inner {
  overflow: hidden;
  min-height: 0;
}
.faq__content-inner p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 4px 4px 28px 4px;
  max-width: 64ch;
}

/* =====================================================================
   PAGE HERO — compact hero for Society / Privacy / Terms pages
   ===================================================================== */
.page-hero {
  padding: clamp(140px, 18vh, 200px) 0 clamp(56px, 8vh, 96px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(125, 163, 125, 0.06) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-quiet);
  margin-bottom: 22px;
  text-transform: uppercase;
  font-weight: 500;
}
.breadcrumbs a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}
.breadcrumbs span[aria-hidden] { color: var(--text-quiet); }
.page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 20ch;
  margin-bottom: 20px;
}
.page-hero__lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* =====================================================================
   CONTACT CARDS — Society contact section
   ===================================================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), transform var(--t);
  text-align: left;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-card__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 4px;
  line-height: 1.2;
}
.contact-card__email {
  margin-top: 8px;
  font-size: 15px;
  color: var(--accent-bright);
  word-break: break-word;
  border-bottom: 1px solid rgba(168, 200, 160, 0.25);
  align-self: center;
  text-align: center;
}
.contact-card__email:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* =====================================================================
   LEGAL STUB — placeholder for Privacy/Terms pending content
   ===================================================================== */
.legal-stub {
  padding: clamp(40px, 5vw, 64px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(20, 46, 37, 0.35);
  text-align: center;
  color: var(--text);
}
.legal-stub p {
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
}
.legal-stub__hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
}

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.final-cta {
  padding: clamp(96px, 12vw, 160px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(125, 163, 125, 0.06) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.final-cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.final-cta__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Final CTA over the deep-ocean image (03-depths) with faint light rays.
   Картинка глубин почти чёрная — едва заметные лучи дают отличие от фона. */
.final-cta--ocean {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.final-cta--ocean > .container {
  position: relative;
  z-index: 3;
}
.final-cta__bg {
  position: absolute;
  /* запас больше клампа параллакса (±70px), иначе вверху светится щель-полоска */
  inset: -220px 0;
  z-index: 0;
  background: #061726 url('../img/ocean/03-depths.jpg') center / cover no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.final-cta__rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(
    102deg,
    transparent 6%,
    rgba(150, 200, 230, 0.08) 15%,
    transparent 27%,
    transparent 46%,
    rgba(150, 200, 230, 0.07) 55%,
    transparent 67%,
    transparent 82%,
    rgba(150, 200, 230, 0.06) 90%,
    transparent 98%
  );
}
.final-cta__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 23, 38, 0.55) 0%,
    rgba(6, 23, 38, 0.32) 42%,
    rgba(6, 23, 38, 0.62) 100%
  );
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: #07100c;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__logo {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.005em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.footer__tagline {
  font-size: 13px;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
}
.footer__h {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer__contact-label {
  font-size: 12px;
  color: var(--text-quiet);
}
.footer__contact-row a {
  color: var(--text);
}
.footer__contact-row a:hover { color: var(--accent-bright); }

.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 14px; color: var(--text-muted); }
.footer__nav a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
}
.footer__link {
  color: var(--text-quiet);
  border-bottom: 1px solid transparent;
}
.footer__link:hover {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}

/* =====================================================================
   SCROLL REVEAL ANIMATION
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.22, .61, .36, 1),
              transform 800ms cubic-bezier(.22, .61, .36, 1);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 400ms; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 500ms; }
[data-reveal][data-reveal-delay="6"] { transition-delay: 600ms; }
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* ---- Mobile nav: burger + slide-down panel (≤960) ---- */
.nav-burger { display: none; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
    position: relative; z-index: 60; /* выше моб-меню (z-index:40), чтобы крестик был кликабелен */
  }
  .nav-burger span {
    display: block; width: 100%; height: 2px; border-radius: 2px;
    background: var(--text); transition: transform .3s ease, opacity .2s ease;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: 0; left: 0; right: 0;
    padding: 88px 24px 28px;
    background: rgba(10, 20, 16, 0.97);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%); visibility: hidden; pointer-events: none;
    transition: transform .32s ease, visibility .32s ease;
    z-index: 40;
  }
  .mobile-nav.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .mobile-nav a {
    color: var(--text); text-decoration: none; font-size: 16px;
    padding: 11px 6px 11px 18px; opacity: .82;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mobile-nav a:hover { opacity: 1; color: var(--accent-bright); }
  .mobile-nav__group {
    font-size: 18px; font-weight: 600; letter-spacing: .01em;
    color: var(--accent-bright); opacity: 1;
    padding: 0 6px 6px; margin-top: 16px; border-bottom: 0;
  }
  .mobile-nav__group:first-child { margin-top: 0; }
  .mobile-nav__cta {
    margin-top: 18px; text-align: center; font-weight: 600;
    padding: 13px !important; border-bottom: 0 !important;
    background: var(--accent); color: var(--bg) !important; border-radius: 999px;
  }
  body.nav-open { overflow: hidden; }

  .nav { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .apply-form__grid,
  .apply-form__grid:nth-of-type(2),
  .apply-form__grid:nth-of-type(3) { grid-template-columns: 1fr; }

  /* Параллакс фонов работает и на мобильных (как на десктопе). Фото-зону
     делаем ниже, но буфер под сдвиг сохраняем (±220px > клампа ±175px в
     script.js), иначе при сдвиге оголятся края. */
  .section--with-bg .section__media,
  .section--with-bg .section__overlay {
    height: clamp(420px, 70vh, 700px);
  }
  .section--with-bg .section__bg {
    inset: -220px 0;
  }
}

@media (max-width: 600px) {
  .header__cta { display: none; }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }
  .sticky-apply { padding: 14px 22px; font-size: 14px; }
  .container.hero__inner { padding-bottom: 200px; }
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .photo-strip { background-attachment: scroll; }
}

/* ===== Legal document body (Privacy / Terms) ===== */
.legal-doc { max-width: none; }
.legal-doc h2 { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 500; color: var(--text); margin: 32px 0 12px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 16.5px; font-weight: 600; color: var(--text); margin: 22px 0 8px; }
.legal-doc p { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 16px; padding-left: 22px; }
.legal-doc li { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 6px; }

/* list inside prose (Support the Society etc.) */
.prose__list { margin: 14px 0 4px; padding-left: 22px; list-style: disc; }
.prose__list li { color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }


/* ===== Support the Society — icon pills + CTA ===== */
.support-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 6px;
  max-width: 720px;
}
.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(125, 163, 125, 0.06);
  color: var(--text-muted);
  font-size: 14.5px;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.support-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(125, 163, 125, 0.10);
}
.support-pill svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.support-note {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 20px auto 0;
}
.support-cta { display: flex; justify-content: center; margin-top: 24px; }


/* маленькая иконка в заголовке группы направлений */
.positions__group-title { display: flex; align-items: center; gap: 10px; }
.positions__title-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* =====================================================================
   DISTINCT LIST — «What makes this programme different»
   (композиция строками, как «Кем я не являюсь» на визитке)
   ===================================================================== */
.distinct-list {
  list-style: none;
  padding: 0;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  text-align: left;
}
.distinct-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.distinct-row::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--accent-bright);
  border-radius: 3px;
  transition: height var(--t), top var(--t);
}
.distinct-row:hover::before { top: 16%; height: 68%; }
.distinct-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-top: 2px;
}
.distinct-row__icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.distinct-row__body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 6px;
}
.distinct-row__body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0;
}
@media (max-width: 720px) {
  .distinct-row { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .distinct-row__icon { width: 40px; height: 40px; border-radius: 10px; }
  .distinct-row__icon svg { width: 19px; height: 19px; }
}

/* craft: иконка слева, текст выровнен по центру вертикали — ровные карточки */

/* центрирующая утилита для строк под центрированными заголовками */
.prose--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* outcomes: единая центрированная колонка */
.outcomes {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================================
   INITIATIVE — «Not a course»: редакционный сплит
   крупная антиква-врезка слева, текст справа у тонкой линии
   ===================================================================== */
.initiative {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
  text-align: left;
}
.initiative__statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(25px, 2.6vw, 33px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.initiative__body {
  border-left: 1px solid var(--border);
  padding-left: clamp(28px, 3.5vw, 52px);
}
.initiative__body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.initiative__body p:last-child { margin-bottom: 0; }
@media (max-width: 880px) {
  .initiative { grid-template-columns: 1fr; gap: 24px; }
  .initiative__statement {
    border-left: 3px solid var(--accent);
    padding-left: 18px;
    font-size: 24px;
  }
  .initiative__body { border-left: 0; padding-left: 0; }
}

/* =====================================================================
   CRAFT — чипы навыков + карточка-сноска
   ===================================================================== */
.skill-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1020px;
  margin: 0 auto clamp(36px, 4.5vw, 60px);
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 24px 12px 13px;
  background: rgba(20, 46, 37, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
  transition: border-color var(--t), background var(--t);
}
.skill-chip:hover { border-color: var(--accent); background: rgba(20, 46, 37, 0.75); }
.skill-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  flex-shrink: 0;
}
.skill-chip__icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.skill-chip__text {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
}
@media (max-width: 640px) {
  .skill-chips { gap: 10px; }
  .skill-chip { width: 100%; justify-content: flex-start; border-radius: 18px; }
}

.craft-note {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
  background: rgba(20, 46, 37, 0.55);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}
.craft-note p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* нативный датапикер на тёмной теме: светлая иконка календаря + тёмный попап */
input[type="date"].form-field__input { color-scheme: dark; }
input[type="date"].form-field__input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--t);
}
input[type="date"].form-field__input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.facts {
  /* крест из тонких линий: 2×2, без карточек */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  list-style: none;
  padding: 0;
}
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(36px, 4.5vw, 60px) clamp(24px, 3.5vw, 56px);
  position: relative;
  transition: background var(--t);
}
.fact:hover { background: rgba(232, 240, 235, 0.025); }
/* вертикальная линия между колонками */
.fact:nth-child(odd) { border-right: 1px solid var(--border); }
/* горизонтальная линия между рядами */
.fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.fact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 16px;
}
.fact__icon svg { width: 21px; height: 21px; }
.fact__note {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 7px;
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; max-width: 420px; }
  .fact { padding: 30px 16px; }
  .fact:nth-child(odd) { border-right: 0; }
  .fact:not(:last-child) { border-bottom: 1px solid var(--border); }
}

/* nav без пилюль: светлый текст с тенью для читаемости на фото; чёрная панель при скролле остаётся */
.nav__parent, .header__cta { color: rgba(255, 255, 255, 0.92); }
.nav__parent { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.nav__parent:hover { color: #fff; }

/* craft: вводная строка работает как заголовок */
.craft-lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--text);
  max-width: 60ch;
  margin: 0 auto 30px;
  text-align: center;
}
/* важная фраза под «What we look for» — заметная, золотистая */
.req-note {
  max-width: 760px;
  margin: clamp(28px, 3.5vw, 44px) auto 0;
  padding: 18px 28px;
  text-align: center;
  font-size: clamp(15px, 1.3vw, 16.5px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(201, 182, 125, 0.32);
  border-radius: var(--radius-md);
}

/* Apply — просто текст в любом состоянии (без ghost-обводки) */
.header .header__cta { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 6px 2px; }

/* ===== Контакты — переделанные карточки (центрированные, e-mail без слом) ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 660px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.contact-card.contact-card--with-photo, .contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 40px 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), transform var(--t);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-card__photo-btn, .contact-card__logo {
  width: 88px; height: 88px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.contact-card__photo-btn { border: 0; padding: 0; cursor: zoom-in; background: transparent; box-shadow: 0 8px 22px rgba(0,0,0,.4); transition: transform .25s ease; }
.contact-card__photo-btn:hover { transform: scale(1.04); }
.contact-card__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.contact-card__logo { background: var(--bg-panel-solid); border: 1px solid var(--border); }
.contact-card__logo img { width: auto; height: 50px; }
.contact-card__body { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; min-width: 0; }
.contact-card__label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.contact-card__name { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--text); line-height: 1.2; }
.contact-card__email { font-size: 14px; color: var(--accent-bright); text-decoration: none; max-width: 100%; overflow-wrap: anywhere; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color var(--t); }
.contact-card__email:hover { border-bottom-color: var(--accent); }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; max-width: 340px; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 22px;
  background: #0e1b15;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  max-width: min(720px, calc(100vw - 32px));
  width: max-content;
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1);
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-banner__text { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cookie-banner__link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 182, 125, 0.5);
  text-underline-offset: 2px;
  font-weight: 500;
}
.cookie-banner__link:hover { text-decoration-color: var(--gold); }
.cookie-banner__btn { padding: 10px 22px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; border-radius: var(--radius-xl); padding: 16px 18px; }
  .cookie-banner__text { text-align: left; }
  .cookie-banner__btn { width: 100%; }
}
