/* ============================================================
   СНО Сеченовского университета — бренд-CSS v3
   Светлая иридесцентная тема: лавандовый mesh-фон, перламутровые
   капли, glassmorphism, градиентные акценты. Цвета из лого/фона сайта.
   ============================================================ */

:root {
  /* Бренд */
  --indigo:      #201088;
  --indigo-2:    #3341AB;
  --violet:      #6A4FD0;
  --indigo-deep: #150A54;
  --ink:         #14113A;
  --text:        #45456B;
  --muted:       #63637E;

  /* Поверхности — бумага, не стекло */
  --lav-1: #FAF9FE;
  --lav-2: #F1F0FA;
  --lav-3: #DDE0FA;
  --white: #FFFFFF;
  --paper:      #FFFFFF;
  --paper-soft: #F7F6FC;
  --glass: rgba(255,255,255,.62);
  --glass-strong: rgba(255,255,255,.8);
  --line:        rgba(20,17,58,.11);
  --line-strong: rgba(20,17,58,.20);

  /* Градиенты */
  --iris:      linear-gradient(120deg,#B9C4F5 0%,#D9C4EE 45%,#C2E6EF 100%);
  --iris-text: linear-gradient(110deg,#201088 0%,#5B43C4 50%,#3341AB 100%);
  --grad-btn:  linear-gradient(120deg,#2A1A9E,#4632C0);

  /* Форма / тень — тени мягче, радиусы собраннее */
  /* Фирменная гарнитура СНО — та же, что в Canva-макетах.
     Mono идёт на служебные подписи (рубрики, номера, направления):
     разрядка по моноширинному даёт научно-редакционный тон,
     который гротеск сам по себе не даёт. */
  --font:  "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --radius:    18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow:       0 1px 2px rgba(20,17,58,.04), 0 8px 24px rgba(20,17,58,.06);
  --shadow-hover: 0 2px 4px rgba(20,17,58,.05), 0 18px 44px rgba(20,17,58,.10);
  --ring: 0 0 0 1px rgba(255,255,255,.7) inset;

  /* Движение — одна система на весь сайт */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --container: 1180px;
  --gap: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(106,79,208,.25); color: var(--indigo-deep); }

/* Прелоадер и прогресс-бар скролла убраны намеренно:
   быстрый сайт не показывает заставку, а полоса прокрутки — приём из дешёвых шаблонов.
   Классы оставлены пустыми на случай старой разметки в кэше. */
.preloader, .scroll-progress { display: none !important; }

/* Зерно поверх всего — очень слабое, только чтобы убрать «пластиковую» гладкость */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Спокойная бумага вместо четырёх цветных пятен: тёплый лавандовый уход в белый.
     background-attachment:fixed убран — он заставлял перерисовывать фон на каждый кадр скролла. */
  background: linear-gradient(180deg, #FBFAFE 0%, var(--lav-1) 42%, var(--lav-2) 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Типографика ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.06; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 2.1vw, 23px); color: var(--muted); max-width: 720px; line-height: 1.55; }
.motto { font-family: var(--serif); font-style: italic; color: var(--indigo); }

/* Акцентный цвет заголовка. Бесконечно переливающийся градиент убран —
   постоянное движение без причины читается дёшево; остался ровный насыщенный индиго. */
.grad, .hl { color: var(--indigo-2); }
@media (prefers-reduced-motion: reduce) { .grad, .hl { animation: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700;
  color: var(--indigo-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--iris); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; cursor: pointer;
  border: 0; background: var(--grad-btn); color: #fff;
  box-shadow: 0 10px 26px rgba(42,26,158,.30);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-decoration: none;
}
/* Пробегающий блик по кнопке убран — приём из дешёвых шаблонов.
   Вместо него честная физика нажатия: подъём на hover, вдавливание на :active. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(42,26,158,.34); }
}
.btn:active { transform: scale(.975); transition-duration: .1s; }
.btn--ghost {
  background: var(--paper); color: var(--indigo);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.btn--ghost:hover { background: #fff; color: var(--indigo-deep); border-color: var(--line-strong); }

/* ---------- Секции ---------- */
.section { padding: clamp(38px, 4.4vw, 62px) 0; position: relative; }
/* Светлые секции без подложки — единое бесшовное поле фона (никаких обрезанных blur) */
.section--soft { position: relative; background: transparent; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: .25em; }

/* ---------- Hero: капли видны, текст в центре ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -14% -6%; z-index: -2;
  background: url("bg-blobs.webp") center / cover no-repeat;
  transform: translate(var(--sx,0), var(--sy, 0)) scale(1.12);
  will-change: transform;
  /* мягко растворяем нижнюю кромку — чтобы не было шва со следующей секцией */
  -webkit-mask-image: linear-gradient(180deg, #000 56%, rgba(0,0,0,.45) 72%, transparent 84%);
  mask-image: linear-gradient(180deg, #000 56%, rgba(0,0,0,.45) 72%, transparent 84%);
}
@media (prefers-reduced-motion: reduce) { .hero::before { transform: scale(1.06); } }
/* лёгкая вуаль только по центру, чтобы текст читался, но капли по краям яркие */
.hero { --veil: radial-gradient(46% 60% at 50% 50%, rgba(246,245,254,.78), rgba(246,245,254,.15) 72%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero .eyebrow { color: var(--indigo-2); }
.hero h1, .hero h2, .hero h3 { color: var(--indigo-deep); }
.hero .lead { color: var(--text); }
.hero .container { transition: transform .3s ease; will-change: transform; }

/* ---------- Сетки / карточки ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
}
.card h3 { margin-bottom: 8px; color: var(--indigo-deep); }
.card p { margin: 0; color: var(--muted); }
a.card:hover { text-decoration: none; }

/* номерной/иконочный бейдж */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  font-weight: 800; font-size: 15px; color: var(--indigo-deep);
  background: var(--iris); box-shadow: 0 6px 16px rgba(120,110,210,.25);
}

/* Градиентные иконки (CSS-маска) */
.ico {
  display: block; width: 46px; height: 46px; margin-bottom: 16px;
  background: var(--iris-text);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,254,.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand__sno { height: 40px; width: auto; }
.brand__sech { height: 34px; width: auto; }
.brand__sep { width: 1px; height: 34px; background: linear-gradient(var(--indigo), transparent); opacity: .35; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--indigo); text-decoration: none; }
.nav a.active { color: var(--indigo); font-weight: 700; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--iris); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--indigo); }

/* ---------- Footer ---------- */
.site-footer {
  color: #d7d8f2; padding: clamp(56px, 6vw, 78px) 0 32px; position: relative; overflow: hidden;
  margin-top: -58px;
  border-radius: clamp(28px, 3vw, 48px) clamp(28px, 3vw, 48px) 0 0;
  background: radial-gradient(120% 105% at 22% -15%, #2C1C9C 0%, #1E1180 45%, #170C5C 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background: radial-gradient(40% 60% at 90% 10%, rgba(120,90,220,.5), transparent 60%),
              radial-gradient(40% 50% at 5% 90%, rgba(80,120,220,.4), transparent 60%);
}
.site-footer .container { position: relative; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.site-footer h3 { color: #fff; }
.site-footer .motto { color: #cfd3ff; font-size: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: 13px; color: #a9abd8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Формы ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px;
  background: rgba(255,255,255,.72);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--violet); border-color: var(--violet); background: #fff; }
.form-glass { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 32px; }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat__num { font-size: clamp(38px, 5vw, 60px); font-weight: 800; line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Чипы / поиск / пиллы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: color .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.chip:hover { color: var(--indigo); border-color: var(--line-strong); }
.chip:active { transform: scale(.97); }
.chip.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.search { position: relative; max-width: 520px; margin-bottom: 24px; }
.search input {
  width: 100%; padding: 15px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font); font-size: 15px; background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--indigo-2); box-shadow: 0 0 0 3px rgba(51,65,171,.14); }

.pill { display: inline-block; padding: 7px 15px; border-radius: 30px; background: rgba(32,16,136,.08); color: var(--indigo); font-weight: 700; font-size: 13px; }
.pill--soon, .pill--iris { background: var(--iris); color: var(--indigo-deep); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Тилт карточек ---------- */
.tilt { transform-style: preserve-3d; transition: transform .12s ease; }

/* ---------- Иконка малая (в пилле/строке) ---------- */
.ico--sm { width: 34px; height: 34px; margin-bottom: 12px; }

/* ---------- Таймлайн мероприятий ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--iris); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 26px; width: 20px; height: 20px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 5px rgba(120,110,210,.18); }
.tl-item .card { margin: 0; }

/* ---------- Marquee партнёров ---------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  /* Ширина плашки подстраивается под знак, высота общая. Раньше плашка была
     жёстко 190×96, и логотипы с непохожими пропорциями выглядели несопоставимо:
     широкий вордмарк ужимался до 20px по высоте против 96px у квадратных. */
  flex: 0 0 auto; width: auto; min-width: 140px; max-width: 288px; height: 108px;
  padding: 0 26px; border-radius: var(--radius-md);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================
   Движение — ОДНА система на весь сайт.
   Никаких библиотек, магнитных кнопок, пружин, 3D-наклона и параллакса:
   всё это по отдельности выглядит как трюк. Здесь один приём —
   короткий подъём с проявлением, сильная ease-out кривая, лёгкий каскад.
   Всё на CSS-транзишенах: они прерываемы и живут вне основного потока.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Каскад: задержка назначается через --d (JS) либо по порядку (CSS-фолбэк) */
.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 45ms; }
.stagger.in > *:nth-child(3) { transition-delay: 90ms; }
.stagger.in > *:nth-child(4) { transition-delay: 135ms; }
.stagger.in > *:nth-child(5) { transition-delay: 180ms; }
.stagger.in > *:nth-child(6) { transition-delay: 225ms; }
.stagger.in > *:nth-child(n+7) { transition-delay: 260ms; }

/* Строчный reveal для заголовков: строка выезжает из-под маски */
.ln { display: block; overflow: hidden; }
.ln__i {
  display: block; transform: translateY(105%);
  transition: transform .7s var(--ease-out); transition-delay: var(--d, 0ms);
}
.in .ln__i, .ln__i.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Уменьшенное движение — это меньше движения, а не ноль анимации:
     проявление оставляем, перемещение убираем. */
  .reveal, .stagger > * { transform: none; transition: opacity .3s ease; }
  .ln__i { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Журнальная вёрстка: свободные секции, а не сетки «блоков»
   ============================================================ */

/* Индиго-панель: чёткая скруглённая плита на светлом поле — вместо вертикальной растяжки */
.section--indigo {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  padding: clamp(50px, 5.4vw, 78px) 0;
  margin: clamp(18px, 2.2vw, 34px) clamp(16px, 2.5vw, 36px);
  border-radius: clamp(28px, 3vw, 48px);
  background: radial-gradient(125% 105% at 18% -10%, #33249A 0%, #22138C 42%, #180D66 78%, #140A50 100%);
  box-shadow: 0 40px 90px rgba(21,10,84,.26), inset 0 1px 0 rgba(255,255,255,.14);
}
/* иридесцентная фактура внутри плиты — чтобы цвет не был плоским */
.section--indigo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("bg-blobs.webp") center / cover no-repeat;
  opacity: .1; mix-blend-mode: screen; filter: blur(6px) saturate(1.2);
  transform: scale(1.06);
}
.section--indigo h1, .section--indigo h2, .section--indigo h3 { color: #fff; }
.section--indigo .eyebrow { color: #C3B6FF; }
.section--indigo .eyebrow::before { background: linear-gradient(90deg,#C3B6FF,transparent); }
.section--indigo .lead, .section--indigo p { color: #d3d5ff; }
.section--indigo .container { position: relative; z-index: 1; }

/* Крупное editorial-высказывание */
.statement { font-size: clamp(34px, 6vw, 82px); font-weight: 800; line-height: 1.03; letter-spacing: -.03em; color: var(--ink); margin: 0; }
.statement--light { color: #fff; }

/* Крупный номер-водяной знак */
.wm { font-weight: 800; line-height: .82; letter-spacing: -.04em;
  background: var(--iris-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* Огромная цитата-девиз */
.big-quote { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 6.6vw, 92px); line-height: 1; letter-spacing: -.02em; }

/* Плавающая полоса статистики */
.stats-bar {
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px;
  padding: 34px 40px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stats-bar > div { text-align: center; flex: 1 1 160px; }

/* Горизонтальная галерея (листать вбок) */
.hscroll { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 26px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-thumb { background: rgba(50,40,150,.2); border-radius: 8px; }
.hcard {
  scroll-snap-align: start; flex: 0 0 330px; min-height: 290px; position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 30px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
}
.hcard__wm { position: absolute; top: -6px; right: 16px; font-size: 130px; font-weight: 800; line-height: 1; color: rgba(20,17,58,.05); pointer-events: none; }
.hcard h3 { margin: 0 0 8px; }
.hcard p { margin: 0; color: var(--muted); }
.hcard .ico { margin-bottom: auto; }

/* Bento-сетка (разноразмерные плитки) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 22px; }
.bento .tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento a.tile:hover, .bento .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); text-decoration: none; }
}
.bento .tile h3 { margin: 0 0 6px; }
.bento .tile p { margin: 0; color: var(--muted); }
.bento .tile--lg { grid-column: span 2; grid-row: span 2; }
.bento .tile--wide { grid-column: span 2; }
.bento .tile--fill { color: #fff; background: linear-gradient(150deg,#2A1AA0,#4A36C8); border: 0; }
.bento .tile--fill h3, .bento .tile--fill p { color: #fff; }
.bento .tile--fill p { color: #d3d5ff; }
.bento .tile .ico { margin-bottom: auto; }
.bento .tile .wm { position: absolute; top: 10px; right: 20px; font-size: 84px; opacity: .8; }

/* Индикатор прокрутки в hero */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 44px; border: 2px solid rgba(50,40,150,.4); border-radius: 14px; z-index: 1; }
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--indigo); transform: translateX(-50%); animation: cue 1.7s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,15px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::before { animation: none; } }

.hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Перетаскивание галереи */
.hscroll { cursor: grab; }
.hscroll.grabbing { cursor: grabbing; scroll-snap-type: none; }
.hscroll.grabbing * { pointer-events: none; }

/* Индикатор прогресса галереи */
.hscroll-prog { position: relative; height: 4px; border-radius: 4px; background: rgba(50,40,150,.12); max-width: 220px; margin: 4px 4px 0; }
.section--indigo .hscroll-prog { background: rgba(255,255,255,.18); }
.hscroll-prog span { position: absolute; top: 0; left: 0; height: 100%; border-radius: 4px; background: var(--indigo); transition: left .18s var(--ease-out); }
.section--indigo .hscroll-prog span { background: linear-gradient(90deg,#C3B6FF,#7FA8FF); }

/* Стаггер-появление детей */
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .00s; }
.stagger.in > *:nth-child(2) { transition-delay: .07s; }
.stagger.in > *:nth-child(3) { transition-delay: .14s; }
.stagger.in > *:nth-child(4) { transition-delay: .21s; }
.stagger.in > *:nth-child(5) { transition-delay: .28s; }
.stagger.in > *:nth-child(6) { transition-delay: .35s; }
.reveal--l { transform: translateX(-40px); }
.reveal--r { transform: translateX(40px); }
.reveal--l.in, .reveal--r.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .stagger > *, .reveal--l, .reveal--r { opacity: 1 !important; transform: none !important; } }


/* ============================================================
   Арт-дирекшн: постер-hero, тикер, «главы» с крупной нумерацией
   ============================================================ */

/* Постерный hero */
.poster { position: relative; min-height: calc(100vh - 78px); display: flex; overflow: hidden; padding: clamp(24px, 3vh, 40px) 0 clamp(28px, 4vh, 54px); }
/* Раньше здесь стоял justify-content:space-between — он прижимал заголовок
   к верху, лид к низу, и посередине зияла пустота во весь экран.
   Теперь текст живёт одним блоком по центру. */
.poster > .container { display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 3.4vh, 44px); }
.poster::before { content: ""; position: absolute; inset: -14% -6%; z-index: 0; background: url("bg-blobs.webp") center / cover no-repeat; transform: translate(var(--sx,0), var(--sy,0)) scale(1.12); will-change: transform; -webkit-mask-image: linear-gradient(180deg,#000 62%, transparent 85%); mask-image: linear-gradient(180deg,#000 62%, transparent 85%); }
.poster { --veil: radial-gradient(58% 62% at 48% 48%, rgba(246,245,254,.72), rgba(246,245,254,.1) 78%, transparent 100%); }
.poster::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.poster .container { position: relative; z-index: 2; width: 100%; }

.vlabel { position: absolute; left: 30px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); letter-spacing: .3em; font-size: 12px; font-weight: 700; color: var(--indigo-2); z-index: 3; }
.poster__no { position: absolute; right: 30px; top: 30px; font-size: 13px; font-weight: 700; letter-spacing: .22em; color: var(--muted); z-index: 3; }

/* Заголовок выключен по обоим краям: каждая строка растягивается ровно
   на ширину колонки за счёт собственного кегля (считает fitDisplay в app.js).
   Прежняя «лесенка» с .l2{margin-left:11%} и .l3{text-align:right} давала
   рваный край и слева, и справа — ни одна вертикаль не совпадала. */
/* Один кегль на все строки, ровный левый край.
   Выключка по обоим краям (v40) отменена: чтобы короткое «научное» доросло
   до ширины колонки, ему нужен кегль вдвое крупнее — заголовок переставал
   помещаться в экран. Потолок задаёт vh: высота окна, а не только ширина,
   решает, каким может быть кегль. */
.display { font-weight: 700; line-height: .92; letter-spacing: -.035em; margin: 0; color: var(--indigo-deep); }
.display span {
  display: block;
  /* 11.6vw — кегль, при котором самая длинная строка занимает всю колонку.
     19vh — потолок, чтобы на невысоком окне три строки плюс лид влезали. */
  font-size: clamp(38px, min(11.6vw, 17vh), 190px);
}

.poster__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: clamp(28px, 4vw, 46px); flex-wrap: wrap; }
.poster__foot .lead { margin: 0; max-width: 44ch; }
.explore { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--grad-btn); color: #fff; font-weight: 700; font-size: 13px; text-align: center; line-height: 1.1; box-shadow: 0 14px 34px rgba(42,26,158,.34); transition: transform .2s ease; flex: 0 0 auto; }
.explore:hover { transform: translateY(-4px) rotate(14deg) scale(1.04); text-decoration: none; }
.inline-link { font-weight: 700; color: var(--indigo); display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.inline-link::after { content: "→"; transition: transform .18s ease; }
.inline-link:hover { text-decoration: none; }
.inline-link:hover::after { transform: translateX(5px); }

/* Кинетический тикер */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.ticker__track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { padding: 20px 30px; font-weight: 800; font-size: clamp(16px,2vw,24px); letter-spacing: -.01em; color: var(--indigo); display: inline-flex; align-items: center; gap: 30px; text-transform: none; }
.ticker__item::after { content: "✦"; color: var(--indigo-2); font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* «Глава» — асимметричный заголовок с крупным номером */
.chapter { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 30px; align-items: start; margin-bottom: 30px; }
.chapter__no { font-size: clamp(48px, 7vw, 112px); font-weight: 800; line-height: .78; letter-spacing: -.04em; color: var(--indigo); opacity: .18; font-variant-numeric: tabular-nums; }
.section--indigo .chapter__no { background: linear-gradient(120deg,#C3B6FF,#7FA8FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.chapter__label { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; color: var(--indigo-2); margin: 6px 0 10px; }
.section--indigo .chapter__label { color: #C3B6FF; }
.chapter__t h2 { margin: 0; }
.chapter__aside { margin-left: auto; align-self: end; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .vlabel { display: none; }
  .chapter { grid-template-columns: 1fr; gap: 8px; }
  .chapter__aside { margin-left: 0; align-self: start; }
  .chapter__no { font-size: clamp(44px,12vw,72px); }
  .poster__foot { gap: 22px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .bento .tile--lg { grid-column: span 2; grid-row: span 2; }
  .statement { font-size: clamp(30px, 8vw, 48px); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: rgba(246,245,254,.98); backdrop-filter: blur(16px); padding: 22px 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-135%); transition: transform .25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a.active::after { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  /* Постерный заголовок: на узком экране строка не должна вылезать за вьюпорт */
  .display span { font-size: clamp(34px, 11.2vw, 54px); }
  /* Bento в одну колонку: инлайновые span-ы из разметки нужно перебить */
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px; }
  .bento .tile, .bento .tile--lg, .bento .tile--wide {
    grid-column: auto !important; grid-row: auto !important; min-height: 168px;
  }
  .poster__no { display: none; }
  .hcard { flex-basis: 78vw; }
}
/* Страховка от горизонтального скролла.
   ВАЖНО: именно clip, а не hidden — hidden делает элемент скролл-контейнером
   и ломает position: sticky у шапки. */
html, body { overflow-x: clip; max-width: 100%; }

/* Финальный hero в середине потока: капли проявляются и гаснут с обеих сторон,
   чтобы блок не начинался прямой линией */
/* Любой hero не первым на странице — капли проявляются сверху, а не режутся линией */
section.hero:not(:first-of-type)::before {
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 42%, #000 62%, transparent 85%);
  mask-image: linear-gradient(180deg, transparent 20%, #000 42%, #000 62%, transparent 85%);
}
/* ...а если снизу подвал — капли идут до его кромки, она их и срезает */
section.hero.hero--mid::before,
section.hero:last-child::before,
section.hero:has(+ .site-footer)::before {
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 42%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 20%, #000 42%, #000 100%);
}

/* Карточки внутри индиго-плиты — тёмное стекло, а не бледная плашка */
.section--indigo .hcard {
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(10,4,50,.28);
  backdrop-filter: blur(12px);
}
.section--indigo .hcard h3 { color: #fff; }
.section--indigo .hcard p { color: #c3c7ef; }
.section--indigo .hcard:hover { background: rgba(255,255,255,.14); }
.section--indigo .pill { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.2); }

/* Вуаль финального hero тоже гасим по краям — иначе прямая линия сверху */
section.hero:not(:first-of-type)::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 16%, #000 40%, #000 68%, transparent 92%);
  mask-image: linear-gradient(180deg, transparent 16%, #000 40%, #000 68%, transparent 92%);
}
section.hero.hero--mid::after,
section.hero:last-child::after,
section.hero:has(+ .site-footer)::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 16%, #000 40%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 16%, #000 40%, #000 100%);
}

/* ---------- Клавиатурная навигация ---------- */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}
.section--indigo :focus-visible,
.site-footer :focus-visible,
.tile--fill:focus-visible { outline-color: #C3B6FF; }
.hscroll:focus-visible { outline-offset: 6px; }
/* Ссылка «к содержимому» — видна только при табуляции */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--indigo); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-weight: 700; transition: top .2s ease;
}
.skip:focus { top: 0; text-decoration: none; }

/* Ответ формы вместо alert */
.form-note { margin: 14px 0 0; font-size: 15px; min-height: 1em; }
.form-note--ok  { color: #1B7A49; }
.form-note--err { color: #B02525; }

/* ---------- Постерная шапка внутренних страниц ---------- */
.poster--page { min-height: min(58vh, 470px); padding: 34px 0 44px; }
.poster--page .display span { font-size: clamp(42px, 7.6vw, 112px); }
.poster--page .poster__foot { align-items: end; }

/* Светлые карточки внутри индиго-плиты */
.section--indigo .card {
  background: rgba(255,255,255,.085);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 16px 36px rgba(10,4,50,.24);
  backdrop-filter: blur(12px);
}
.section--indigo .card h3 { color: #fff; }
.section--indigo .card p { color: #c3c7ef; }
.section--indigo .card .ico { background: linear-gradient(120deg,#C3B6FF,#7FA8FF); }
.section--indigo .btn--ghost { background: rgba(255,255,255,.9); }

/* Карточка человека */
.person { display: flex; flex-direction: column; gap: 4px; }
.person__ava {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; color: var(--indigo-deep);
  background: var(--iris); box-shadow: var(--ring);
  object-fit: cover; flex: 0 0 auto;
}
img.person__ava { box-shadow: 0 6px 18px rgba(32,16,136,.16); }
.section--indigo img.person__ava { box-shadow: 0 6px 18px rgba(6,2,40,.45); }
.person h3 { font-size: 18px; margin: 0 0 2px; }
.person p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- FAQ (аккордеон) ---------- */
.faq__item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq__item summary {
  cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; color: var(--indigo-2); transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 10px 0 0; color: var(--muted); max-width: 92ch; }
.section--indigo .faq__item { border-color: rgba(255,255,255,.16); }
.section--indigo .faq__item summary { color: #fff; }
.section--indigo .faq__item summary::after { color: #C3B6FF; }
.section--indigo .faq__item p { color: #c3c7ef; }

/* Формы на индиго-плите */
.section--indigo .field label { color: #dcdcf7; }
.section--indigo .field input,
.section--indigo .field textarea,
.section--indigo .field select {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff;
}
.section--indigo .field input::placeholder,
.section--indigo .field textarea::placeholder { color: #a9abd8; }
.section--indigo .field input:focus,
.section--indigo .field textarea:focus,
.section--indigo .field select:focus { background: rgba(255,255,255,.16); border-color: #C3B6FF; outline-color: #C3B6FF; }
.section--indigo .field select option { color: var(--ink); }
.section--indigo form .btn { background: #fff; color: var(--indigo-deep); box-shadow: 0 10px 26px rgba(10,4,50,.35); }
.section--indigo .form-note--ok { color: #B7F0CE; }
.section--indigo .form-note--err { color: #FFC2C2; }
.form-legal { font-size: 13px; color: var(--muted); margin-top: 12px; }
.section--indigo .form-legal { color: #a9abd8; }

/* Лента логотипов внутри индиго-плиты */
.section--indigo .marquee__item {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #dcdcf7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* На индиго-плите блоки занимают всю ширину строки */
.section--indigo .lead { max-width: 980px; }
.section--indigo form { width: 100%; }
.section--indigo .field textarea { min-height: 120px; }

/* ---------- Карточка научного кружка ---------- */
.club {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.club:hover { transform: translateY(-4px); box-shadow: var(--ring), var(--shadow-hover); }
.club__cover { aspect-ratio: 16/9; width: 100%; object-fit: cover; display: block; }
.club__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.club__body h3 { font-size: 18px; margin: 0; line-height: 1.25; }
.club__body p { margin: 0; font-size: 14px; color: var(--muted); }
.club__link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; color: var(--indigo); }
.club__link::after { content: " →"; }
/* Длинные названия направлений — мельче, чтобы строка не вылезала */
.poster--page .display--long span { font-size: clamp(34px, 7.2vw, 104px); }

/* Карточка мероприятия с обложкой (афиша на главной) */
.hcard--photo { background-size: cover; background-position: center; border: 0; }
.hcard--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(12,6,58,.15) 0%, rgba(12,6,58,.55) 55%, rgba(12,6,58,.88) 100%);
}
.hcard--photo > * { position: relative; z-index: 1; }
.hcard--photo h3, .section--indigo .hcard--photo h3 { color: #fff; }
.hcard--photo p, .section--indigo .hcard--photo p { color: #dcdcf7; }

/* Карточка мероприятия в таймлайне */
.ev-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ev-card__cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ev-card__body { padding: 22px 26px 26px; }

/* Логотипы в ленте партнёров */
.marquee__item {
  padding: 0; overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
/* --h задаётся в разметке: оптическая высота знака, посчитанная
   нормализацией по площади. Ширина — своя у каждого логотипа. */
.marquee__item img {
  width: auto; height: var(--h, 60px); max-width: 236px;
  object-fit: contain; border-radius: 0;
}
.section--indigo .marquee__item { background: rgba(255,255,255,.07); }

/* Длинные тексты внутри карточек форматов и правил */
.fmt-text p, .faq__body p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fmt-text p:last-child, .faq__body p:last-child { margin-bottom: 0; }
.faq__body { margin-top: 10px; max-width: 92ch; }
.section--indigo .faq__body p { color: #c3c7ef; }

.club__links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; }
.club__links .club__link { margin: 0; padding: 0; }

/* ---------- Результаты поиска по кружкам ---------- */
.clubhits { margin: 22px 0 0; display: grid; gap: 8px; }
.clubhits__head { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo-2); }
.clubhits__item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 18px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3;
}
.clubhits__item:hover { text-decoration: none; background: #fff; transform: translateX(3px); }
.clubhits__item b { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--indigo-2); }
.clubhits__more { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) {
  .clubhits__item { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   Каталог кружков: поиск + фильтр, липкая панель
   ============================================================ */
.finder {
  position: sticky; top: 78px; z-index: 20;
  padding: 18px 0 14px;
  background: linear-gradient(180deg, var(--lav-1) 72%, rgba(250,249,254,0));
  margin-bottom: 4px;
}
.finder__bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.finder .search { margin-bottom: 0; flex: 1 1 340px; }
.finder__count {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.finder .chips { margin: 14px 0 0; }
.finder__empty { padding: 48px 0; color: var(--muted); font-size: 17px; }
.finder__empty b { color: var(--ink); }

/* Заголовок группы направления внутри списка */
.clubgroup {
  display: flex; align-items: baseline; gap: 14px;
  padding: 34px 12px 12px; border-bottom: 1px solid var(--line);
}
.clubgroup__t {
  margin: 0; font-size: 15px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--indigo-2);
}
.clubgroup__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clubgroup:first-child { padding-top: 8px; }
@media (max-width: 700px) {
  .finder { top: 68px; }
  .clubgroup { padding-left: 4px; padding-right: 4px; }
}

/* ============================================================
   Список кружков — журнальное оглавление вместо карточек
   ============================================================ */
.clublist { border-top: 1px solid var(--line); }
.clubrow {
  position: relative; border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.clubrow__head {
  position: relative;
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 62px minmax(0,1fr) auto 34px;
  align-items: center; gap: 20px;
  padding: 22px 12px; font-family: var(--font); color: inherit;
  list-style: none;
}
.clubrow__head::-webkit-details-marker { display: none; }
.clubrow__no, .clubrow__title, .clubrow__sign, .clubrow__dir { position: relative; z-index: 1; }
.clubrow__no {
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color .25s var(--ease-out);
}
.clubrow__title {
  font-size: clamp(17px, 1.55vw, 22px); font-weight: 700; line-height: 1.25;
  letter-spacing: -.015em; color: var(--ink); margin: 0;
  transition: transform .3s var(--ease-out), color .25s var(--ease-out);
}
/* Направление — тихая подпись справа, чтобы в общем списке было видно контекст */
.clubrow__dir {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: color .25s var(--ease-out);
}
.clubrow__sign {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--indigo); font-size: 19px; line-height: 1;
  transition: transform .3s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .clubrow:hover .clubrow__title { transform: translateX(8px); }
  .clubrow:hover .clubrow__sign { background: var(--indigo); color: #fff; border-color: transparent; }
}
.clubrow[open] .clubrow__sign { transform: rotate(45deg); }
@media (max-width: 860px) {
  .clubrow__dir { display: none; }
  .clubrow__head { grid-template-columns: 44px minmax(0,1fr) 34px; gap: 14px; }
}

.clubrow__body {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 300px; gap: 30px;
  padding: 0 12px 30px; animation: rowIn .28s var(--ease-out); align-items: start;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.clubrow__body p { margin: 0 0 16px; color: var(--text); max-width: 72ch; font-size: 16px; line-height: 1.65; }
.clubrow__links { display: flex; flex-wrap: wrap; gap: 10px; }
.clubrow__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--indigo);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.clubrow__links a:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-1px); }
.clubrow__links a:active { transform: scale(.97); }

/* фотография заливает строку при наведении.
   Важно: слой — внутри <summary> (.clubrow__head), а не ::before/::after самого <details>
   и не отдельный дочерний элемент <details>. Причины две: 1) закрытый <details> рендерит
   только <summary> — остальные светлые дети браузер не показывает, пока не открыт [open];
   2) background-image:var(--custom-property) на ::before у некоторых элементов не перекрашивается
   при смене custom property на реальном фото (виден только следующий слой-градиент) —
   обычный элемент с обычным inline background-image рендерится надёжно. */
.clubrow__bg, .clubrow__fade {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.clubrow__bg {
  background-size: cover; background-position: center;
  clip-path: inset(0 100% 0 0); transform: scale(1.04);
  transition: clip-path .55s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.clubrow__fade {
  opacity: 0;
  background: linear-gradient(90deg, rgba(18,9,72,.92) 0%, rgba(18,9,72,.74) 55%, rgba(18,9,72,.38) 100%);
  transition: opacity .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .clubrow:hover:not([open]) .clubrow__bg { clip-path: inset(0 0 0 0); transform: scale(1); }
  .clubrow:hover:not([open]) .clubrow__fade { opacity: 1; }
  .clubrow:hover:not([open]) .clubrow__title { color: #fff; }
  .clubrow:hover:not([open]) .clubrow__no { color: #C3B6FF; }
  .clubrow:hover:not([open]) .clubrow__dir { color: rgba(255,255,255,.72); }
  .clubrow:hover:not([open]) .clubrow__sign { background: #fff; color: var(--indigo-deep); border-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .clubrow__bg, .clubrow__fade { transition: none; }
}
/* на тач-устройствах заливка не нужна */
@media (hover: none) {
  .clubrow__bg, .clubrow__fade { display: none; }
}

.clubrow__thumb {
  display: block; width: 100%; height: 200px; object-fit: cover; align-self: start;
  border-radius: 18px; box-shadow: 0 18px 44px rgba(32,16,136,.18);
}
@media (max-width: 700px) {
  .clubrow__head { grid-template-columns: 52px 1fr auto; gap: 14px; padding: 20px 4px; }
  .clubrow__body { grid-template-columns: 1fr; padding: 0 4px 24px; gap: 16px; }
  .clubrow:hover .clubrow__title { transform: none; }
  .clubrow__thumb { border-radius: 14px; order: -1; height: 180px; }
}

/* ============================================================
   Совет: интерактивный состав вместо карточек
   ============================================================ */
.roster { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: clamp(28px,4vw,64px); align-items: start; }
.roster__stage { position: sticky; top: 104px; }
.roster__photo {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 26px; overflow: hidden;
  background: var(--iris); box-shadow: 0 26px 60px rgba(32,16,136,.22), var(--ring);
}
.roster__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s cubic-bezier(.23,1,.32,1);
}
.roster__img.is-front { opacity: 1; z-index: 1; }
.roster__photo.is-empty::after {
  content: attr(data-letter); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 96px; font-weight: 800; color: var(--indigo-deep); opacity: .5;
}
.roster__meta { margin-top: 18px; }
.roster__role { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.45; min-height: 3em; }
.roster__hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.roster__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.roster__item {
  display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 16px;
  padding: 15px 14px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .2s ease, padding-left .3s cubic-bezier(.22,1,.36,1);
}
.roster__item:first-child { border-top: 1px solid var(--line); }
.roster__no { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted); transition: color .2s; }
.roster__name {
  font-size: clamp(18px,1.9vw,25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  color: var(--ink); transition: color .2s;
}
.roster__item { border-left: 2px solid transparent; }
.roster__item:hover, .roster__item.is-active { border-left-color: var(--indigo-2); padding-left: 26px; background: none; }
.roster__item.is-active .roster__name {
  background: var(--iris-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.roster__item.is-active .roster__no { color: var(--indigo-2); }

/* ============================================================
   Кураторы секций — редакционный список вместо 18 плиток.
   Раньше это была сетка одинаковых стеклянных карточек с мелким
   текстом: 18 штук читались как «стена», секцию было не найти.
   Теперь слева секция, справа люди — как разворот справочника.
   ============================================================ */
.curators { border-top: 1px solid rgba(255,255,255,.16); }
.curgroup {
  display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 30px;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16);
  align-items: baseline;
}
.curgroup__sec {
  margin: 0; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #C3B6FF;
}
.curgroup__people {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.cur { display: inline-flex; align-items: center; gap: 11px; }
.cur__ava {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}
.cur__ava--empty {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.13); color: #fff; font-weight: 700; font-size: 16px;
}
.cur__name { font-size: 17px; font-weight: 600; color: #fff; line-height: 1.3; }
@media (max-width: 760px) {
  .curgroup { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }
  .curgroup__people { gap: 12px 20px; }
  .cur__name { font-size: 16px; }
}

@media (max-width: 900px) {
  .roster { grid-template-columns: 1fr; }
  .roster__stage { position: static; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
  .roster__photo { width: 150px; }
  .roster__meta { margin: 0; }
  .roster__role { min-height: 0; }
  .roster__hint { display: none; }
}

/* ---------- Опоры для анимаций ---------- */
.display span { will-change: transform; }
.ln { display: block; overflow: hidden; }
.ln__i { display: block; will-change: transform; }
.tile, .card, .hcard, .curator { transform-style: preserve-3d; will-change: transform; }
.bento, .grid, .hscroll, .curators { perspective: 1000px; }
.btn, .explore, .inline-link { will-change: transform; }

.hero::after, .poster::after {
  background: var(--veil, radial-gradient(46% 60% at 50% 50%, rgba(246,245,254,.78), rgba(246,245,254,.15) 72%, transparent 100%));
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero::after, .poster::after { background: var(--veil, radial-gradient(46% 60% at 50% 50%, rgba(246,245,254,.78), rgba(246,245,254,.15) 72%, transparent 100%)); }
}

/* ============================================================
   Каталог кружков — дополнения (v34)
   ============================================================ */

/* Счётчик внутри чипа-фильтра */
.chip__n {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; background: rgba(20,17,58,.07);
  font-size: 12px; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip.active .chip__n { background: rgba(255,255,255,.2); color: #fff; }

/* Подсветка совпадения в поиске */
.clubrow__title mark {
  background: rgba(51,65,171,.14); color: inherit;
  border-radius: 3px; padding: 0 2px;
}
.clubrow:hover:not([open]) .clubrow__title mark { background: rgba(255,255,255,.26); color: #fff; }

.clubrow__body .muted { color: var(--muted); font-style: italic; }
.clubrow__body .clubrow__thumb { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Раскрытая строка — спокойный фон, чтобы отделить её от списка */
.clubrow[open] { background: var(--paper-soft); }

/* ---------- Шаги участия: нумерованный список вместо плиток ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 30px 30px 34px 0; border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step__n {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--indigo-2); margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0 0 8px; font-size: clamp(21px, 2.1vw, 27px); }
.step p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 34ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0 28px; }
  .step:last-child { border-bottom: 0; }
  .step p { max-width: none; }
}

/* Раскрытый ответ FAQ — плавное появление */
.faq__a { animation: rowIn .28s var(--ease-out); }
.faq__a p { margin: 10px 0 0; max-width: 92ch; }

.step__who {
  margin-top: 10px !important; font-size: 14px !important;
  color: var(--indigo-2) !important; font-weight: 600;
}

/* ============================================================
   Типографика на IBM Plex (v38)
   ============================================================ */

/* Служебные подписи — моноширинным вразрядку. Это самый заметный
   признак «сделано дизайнером», а не собрано из шаблона. */
.eyebrow, .chapter__label, .poster__no, .vlabel,
.clubrow__dir, .clubgroup__t, .curgroup__sec,
.step__n, .roster__no, .finder__count, .clubgroup__n {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .08em;
}
.eyebrow, .chapter__label { letter-spacing: .12em; }
.vlabel, .poster__no { letter-spacing: .22em; }

/* Цифры — моноширинные везде, где их сравнивают глазами */
.chapter__no, .clubrow__no, .stat__num, .statcard__n, .hero__facts b {
  font-family: var(--mono); font-weight: 600;
}
.chapter__no { letter-spacing: -.02em; }

/* Заголовок: Plex плотнее, поэтому трекинг чуть отпускаем */
.display { font-weight: 600; letter-spacing: -.03em; }
.statement, .big-quote { font-weight: 600; }

/* Девиз антиквой Plex — курсив с настоящим характером */
.hero__motto, .motto, .big-quote { font-family: var(--serif); font-style: italic; }
.hero__motto { font-weight: 400; }


/* ============================================================
   Слой глубины: фирменные 3D-элементы по краям (v41)

   Лежит НАД контентом (z-index выше секций), но не перехватывает
   события и не заходит на текстовую колонку — только поля.
   Ширина полей = (100vw - container) / 2, поэтому объекты
   появляются лишь тогда, когда для них есть место.
   ============================================================ */
.depth {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none; overflow: hidden;
}
.depth__item {
  position: absolute;
  width: 140px; height: auto;
  will-change: transform;
  filter: drop-shadow(0 18px 34px rgba(32, 16, 136, .16));
  opacity: .92;
}
/* Прижимаем к краям окна, чуть заводя за обрез — так объект
   читается как проходящий мимо, а не наклеенный в углу. */
/* --w приходит из depth.js. Вычитая полную ширину объекта, кладём его
   ровно в поле: правый край объекта = внешняя граница колонки, а текст
   начинается ещё на 24px правее (padding контейнера). Прежняя формула
   с фиксированными 92px позволяла объекту заезжать на текст. */
.depth__item--left  { left:  calc((100vw - var(--container)) / 2 - var(--w, 140px)); }
.depth__item--right { right: calc((100vw - var(--container)) / 2 - var(--w, 140px)); }

/* Родитель слоя должен быть системой координат */
body { position: relative; }

/* Ниже 1300px поле между колонкой и краем окна слишком узкое:
   объекты уезжали бы за обрез почти целиком. Проще не показывать. */
@media (max-width: 1300px) { .depth { display: none; } }
@media (prefers-reduced-motion: reduce) { .depth__item { will-change: auto; } }

/* ============================================================
   Правки после первого боевого запуска (v45)
   ============================================================ */

/* --- iPhone: шапка должна заходить под чёлку ---
   Без viewport-fit=cover и env(safe-area-*) iOS оставляет по бокам от
   чёлки пустые поля, и полоса шапки обрывается, не доходя до краёв. */
.site-header {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
@supports (padding: max(0px)) {
  .container { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
}

/* --- Пять отделов: сетка 3+2 ---
   В пять колонок при контейнере 1180px на каждую приходится 196px,
   а «Информационный» набирается в 194px — слово занимает 99% ширины
   и упирается в разделитель. Три колонки дают ~348px: длинным словам
   есть где дышать, и вертикальные линии перестают душить текст. */
.steps--5 { grid-template-columns: repeat(3, 1fr); column-gap: 44px; }
.steps--5 .step {
  position: relative;
  border-right: 0;
  padding: 26px 0 30px;
}
.steps--5 .step::after {
  content: ""; position: absolute; top: 4px; bottom: 10px; right: -22px;
  width: 1px; background: var(--line);
}
/* последняя колонка ряда — без линии справа */
.steps--5 .step:nth-child(3n)::after,
.steps--5 .step:last-child::after { display: none; }
/* второй ряд отделяем сверху */
.steps--5 .step:nth-child(n+4) { border-top: 1px solid var(--line); }
.steps--5 .step h3 { font-size: clamp(19px, 1.75vw, 25px); }
.steps--5 .step p { font-size: 15px; max-width: 30ch; }

@media (max-width: 900px) {
  .steps--5 { grid-template-columns: 1fr; column-gap: 0; }
  .steps--5 .step::after { display: none; }
  .steps--5 .step { border-top: 1px solid var(--line); padding: 22px 0 24px; }
  .steps--5 .step:first-child { border-top: 0; }
  .steps--5 .step p { max-width: none; }
}

/* --- Мобильный каталог: панель поиска не должна съедать пол-экрана ---
   Чипы переносились на три строки и вместе с полем занимали половину
   高ты экрана, прокручиваясь вместе со списком. Теперь на телефоне это
   одна горизонтально прокручиваемая строка, а при листании вниз панель
   уезжает наверх и возвращается при листании вверх. */
@media (max-width: 700px) {
  .finder {
    top: 0;
    padding: 10px 0 8px;
    transition: transform .28s var(--ease-out);
    will-change: transform;
  }
  .finder.is-hidden { transform: translateY(-118%); }

  .finder__bar { gap: 10px; }
  .finder .search input { padding: 11px 18px; font-size: 15px; }
  .finder__count { font-size: 13px; }

  .finder .chips {
    margin-top: 9px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* поля «под обрез», чтобы было видно: строка продолжается */
    padding: 0 24px;
    margin-left: -24px;
    margin-right: -24px;
    scroll-snap-type: x proximity;
  }
  .finder .chips::-webkit-scrollbar { display: none; }
  .finder .chip { flex: 0 0 auto; scroll-snap-align: start; font-size: 13px; padding: 8px 14px; }
}

/* --- Кликабельные логотипы партнёров (v47) ---
   Увеличение при наведении сюда не годится: лента едет внутри
   overflow:hidden с маской по краям, и у самого обреза карточка
   резалась бы прямым срезом. Поэтому отклик — цветом рамки и лёгким
   проявлением логотипа, без изменения габаритов. */
.marquee__item--link {
  cursor: pointer;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.marquee__item--link img { transition: opacity .2s var(--ease-out); opacity: .82; }
.marquee__item--link:hover { border-color: var(--indigo-2); box-shadow: var(--shadow-hover); }
.marquee__item--link:hover img { opacity: 1; }
.marquee__item--link:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
