/* InclusiveAI — Homepage (light editorial)
   Block-based, high-contrast, real-photography forward.
   Token map vs old dark theme: --border→--line, --border-hover→--line-2,
   --border-accent→--accent-soft-2, --accent-dim→--accent-soft, white text→--ink. */

/* ══════════════════════════════════════════════════════
   HERO — editorial split: oversized headline + real photo
══════════════════════════════════════════════════════ */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-bottom: 26px;
  text-wrap: balance;
}
/* Two statements, not one wrapped sentence: the setup sits in ink, the
   claim lands in the accent on its own line. */
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1562rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.65;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

/* ── THE COURSE PATH ──
   The project writes its instructions as paths — «Настройки → Универсальный
   доступ → VoiceOver» — so the course order is set the same way. Four real
   steps in the real order, each one a filtered link into the library.
   The arrows are drawn by the layout, not typed, so a screen reader reads
   an ordered list of four links and never announces stray punctuation. */
.hero-path { margin-bottom: 34px; }

.hero-path-label {
  font-family: var(--font);
  font-size: 0.7812rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.hero-path-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  list-style: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.hero-path-list li { display: flex; }
.hero-path-list li + li { border-left: 1.5px solid var(--line); }

.hero-path-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  /* 44px+ touch target in both axes */
  min-height: 62px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.hero-path-list a:hover { background: var(--accent-soft); color: var(--accent); }

.hero-path-name {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-path-n {
  font-size: 0.7812rem;
  font-weight: 500;
  color: var(--muted-2);
}
.hero-path-list a:hover .hero-path-n { color: var(--accent); }

.hero-grant {
  font-size: 0.8438rem;
  color: var(--muted-2);
}
.hero-grant strong { color: var(--muted); font-weight: 700; }

/* ── HERO PHOTO COLLAGE ── */
.hero-media {
  position: relative;
  padding: 30px 50px 40px 20px;
}
/* big squiggly accent dot behind the photo */
.hero-media::before {
  content: '';
  position: absolute;
  top: -10px; right: 0;
  width: 220px; height: 220px;
  background: var(--brand-soft);
  border-radius: 50%;
  z-index: 0;
  animation: blob-pulse 7s ease-in-out infinite;
}
.hero-media::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 110px; height: 110px;
  background: var(--accent-soft);
  border-radius: 50%;
  z-index: 0;
  animation: blob-pulse 9s ease-in-out -2s infinite;
}
@keyframes blob-pulse {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(8px,-10px) scale(1.06); }
}
.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 12px 14px 0 0 var(--ink);
  aspect-ratio: 4 / 5;
  background: var(--accent-soft);
  z-index: 1;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.hero:hover .hero-photo img { transform: scale(1.06); }

/* floating caption chip over the photo — bottom-right, away from the penguin */
.hero-photo-tag {
  position: absolute;
  right: 12px; bottom: 12px;
  max-width: calc(100% - 24px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.hero-photo-tag::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warm);
}

/* small offset second photo for the collage feel */
.hero-photo-mini {
  position: absolute;
  top: -10px; right: 14px;
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--accent);
  animation: float-soft 6s ease-in-out infinite;
  z-index: 2;
}
.hero-photo-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Penguin mascot from the old site ── */
.hero-penguin {
  position: absolute;
  left: -30px;
  bottom: -18px;
  width: 132px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(38, 33, 77, 0.28));
  animation: penguin-bob 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite both;
  transform-origin: 50% 100%;
}
@keyframes penguin-bob {
  0%   { transform: translateY(0)   rotate(-3deg); }
  50%  { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0)   rotate(-3deg); }
}
@media (max-width: 768px) {
  .hero-penguin { width: 110px; left: -14px; bottom: -10px; }
}

/* ══════════════════════════════════════════════════════
   SECTION HEADINGS (shared)
══════════════════════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.05;
  white-space: pre-line;
}

/* ══════════════════════════════════════════════════════
   STICKER CHIPS — floating "fact" pills around the hero
══════════════════════════════════════════════════════ */
.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  z-index: 3;
  white-space: nowrap;
}
.sticker-emoji { font-size: 1.125rem; line-height: 1; }
.sticker-1 { top: 38%; left: -28px; transform: rotate(-8deg); background: var(--mint); }
.sticker-2 { top: 8px; left: 38%; transform: rotate(6deg); background: var(--butter); }
.sticker-3 { bottom: 60px; right: -10px; transform: rotate(8deg); background: var(--rose); }
.sticker-4 { bottom: 8px; left: 20px;  transform: rotate(-4deg); background: var(--sky); }

@media (max-width: 1100px) {
  .sticker-1, .sticker-2, .sticker-3, .sticker-4 { display: none; }
}

/* ══════════════════════════════════════════════════════
   MISSION — mint band
══════════════════════════════════════════════════════ */
.mission {
  padding: 100px 0;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -28px;
  position: relative;
}
.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mission-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.mission-title em { font-style: normal; color: var(--accent); }
.mission-body { display: flex; flex-direction: column; gap: 18px; }
.mission-body p { font-size: 1rem; color: var(--muted); line-height: 1.8; }

/* ══════════════════════════════════════════════════════
   WHO IT'S FOR — peach band
══════════════════════════════════════════════════════ */
.for-whom {
  padding: 100px 0;
  background: var(--bg-2);
  position: relative;
}
.for-whom-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 52px;
}
.for-whom-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.for-whom-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; }

/* Audience — an editorial list, not a card grid. Three groups, each with
   room for a real paragraph, separated by rules rather than boxes. */
.audience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--line);
}
.audience-item {
  padding: 30px 30px 34px 0;
  border-right: 1.5px solid var(--line);
}
.audience-item:last-child { border-right: none; padding-right: 0; }
.audience-item:not(:first-child) { padding-left: 30px; }

.audience-item dt {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.audience-item dd {
  font-family: var(--reading);
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   TOOLS SHOWCASE
══════════════════════════════════════════════════════ */
.tools-showcase { padding: 100px 0; }

/* ── Telegram post cards — "exported from the channel" framing ── */
.tg-feed {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}
.tg-post {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tg-post-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tg-av {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
}
.tg-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tg-name { font-size: 0.9062rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tg-handle { font-size: 0.7812rem; color: var(--muted); }
.tg-plane { margin-left: auto; color: #23a0e6; flex-shrink: 0; }
.tg-post-title {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tg-post-text { font-size: 0.875rem; color: var(--text); line-height: 1.75; }
.tg-post-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tg-views {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tg-views svg { flex-shrink: 0; }
.tg-open {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8438rem; font-weight: 700;
  color: #0c74ad;
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--t) var(--ease);
}
.tg-open::after { content: '→'; transition: transform var(--t) var(--ease); }
.tg-open:hover { color: var(--ink); }
.tg-open:hover::after { transform: translateX(3px); }

.tg-cta {
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.tg-cta-penguin { width: 84px; height: auto; }
.tg-cta-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: pre-line;
}
.tg-cta-text { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.78); flex: 1; }

.sc-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sc-step { display: flex; align-items: flex-start; gap: 12px; font-size: 0.8125rem; color: var(--text); line-height: 1.55; }
.sc-step-num {
  width: 22px; height: 22px; min-width: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sc-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0e7490;
  background: #E0F7FB;
  border: 1px solid #BCEAF2;
  padding: 5px 14px;
  border-radius: 100px;
}
/* ══════════════════════════════════════════════════════
   CTA STRIP — ink block, editorial
══════════════════════════════════════════════════════ */
/* The dark card had no bottom padding, so its edge sat flush against the
   next section and read as a rendering fault. */
.cta-strip { padding: 100px 0; }
@media (max-width: 760px) { .cta-strip { padding: 64px 0; } }
.cta-inner {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 72px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  bottom: -140px; right: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,108,246,0.3) 0%, transparent 62%);
  pointer-events: none;
}
.cta-text { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.cta-sub { font-size: 1rem; color: rgba(244,241,234,0.75); }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
/* the primary button on dark needs to be paper, not ink */
.cta-inner .btn-primary { background: #fff; color: var(--ink); }
.cta-inner .btn-primary:hover { background: var(--accent-bright); color: #fff; }

/* ══════════════════════════════════════════════════════
   PARTNERS
══════════════════════════════════════════════════════ */
.partners { padding: 100px 0; }
.partners-head { margin-bottom: 44px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.partner-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t) var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 18px 48px rgba(22,21,28,0.1);
}
.partner-logo {
  width: 84px; height: 84px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
  position: relative;
}
.partner-card:hover .partner-logo { transform: scale(1.06) rotate(-4deg); }
.partner-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-logo svg { display: block; }
.partner-logo-grant { background: var(--accent); color: #fff; }
.partner-logo-fortuna { background: #0E1A2F; color: #fff; }
.partner-kicker {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.partner-card-body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.partner-card-body p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.partner-arrow { color: var(--muted-2); transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.partner-card-link:hover .partner-arrow { transform: translate(3px, -3px); color: #0062d6; }

/* ══════════════════════════════════════════════════════
   VK COURSE SECTION
══════════════════════════════════════════════════════ */
.vk-course { padding: 100px 0; position: relative; background: var(--surface); }
.vk-head {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}
.vk-title { white-space: pre-line; margin-bottom: 18px; }
.vk-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 520px; }
.vk-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.vk-meta-item { display: flex; flex-direction: column; gap: 4px; }
.vk-meta-num {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.vk-meta-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.vk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vk-all {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.vk-status {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--reading);
  color: var(--muted);
  padding: 48px 0;
}
.vk-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  position: relative;
  --mx: 50%; --my: 50%;
  transition: border-color var(--t) var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.vk-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 18px 50px rgba(22,21,28,0.12);
}
.vk-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--block-accent, var(--accent)), var(--accent-bright));
  position: relative;
  overflow: hidden;
}
/* real VK thumbnail */
.vk-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.5s var(--ease);
}
.vk-card:hover .vk-thumb img { transform: scale(1.05); }
/* duration badge — like VK/YouTube */
.vk-thumb-dur {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(10, 8, 24, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 7px;
  letter-spacing: 0.02em;
}
.vk-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.vk-card:hover .vk-thumb::after { transform: translateX(120%); }
.vk-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  z-index: 2;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.vk-card:hover .vk-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.vk-play svg { margin-left: 2px; }
.vk-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.vk-card-block {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--block-accent, var(--accent));
}
.vk-card-title {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
  flex: 1;
}
.vk-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.vk-card-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}
.vk-card-views svg { flex-shrink: 0; }
.vk-card-watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--t) var(--ease);
}
.vk-card:hover .vk-card-watch { gap: 9px; }

/* vk filter pill bar */
.vk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.vk-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: 100px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.vk-filter:hover { border-color: var(--ink); transform: translateY(-1px); }
.vk-filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.vk-filter-n {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
}
.vk-filter.active .vk-filter-n { background: rgba(255,255,255,0.2); color: #fff; }

/* ── lesson modal player ── */
.vk-modal {
  position: fixed; inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vk-modal.open { display: flex; }
.vk-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 10, 36, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  animation: vkModalFade 0.25s var(--ease);
}
.vk-modal-shell {
  position: relative;
  width: min(960px, 96vw);
  max-height: 92vh;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: vkModalRise 0.32s var(--ease);
  box-shadow: 0 40px 120px rgba(8, 5, 40, 0.55);
}
.vk-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(20, 18, 50, 0.7);
  color: #fff;
  cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.vk-modal-close:hover { transform: rotate(90deg); background: var(--accent); }
.vk-modal-stage {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
}
.vk-modal-frame, .vk-modal-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.vk-modal-body {
  padding: 22px 28px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.vk-modal-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.vk-modal-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}
.vk-modal-vklink { flex-shrink: 0; }
.vk-modal-block {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.vk-modal-title {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
body.vk-modal-lock { overflow: hidden; }

@keyframes vkModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vkModalRise {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (max-width: 600px) {
  .vk-modal { padding: 12px; }
  .vk-modal-body {
    padding: 16px 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .vk-modal-title { font-size: 1.0625rem; }
  .vk-modal-vklink { justify-content: center; }
}

/* ══════════════════════════════════════════════════════
   TEAM SECTION
══════════════════════════════════════════════════════ */
.team-section { padding: 100px 0; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: -28px; }
.team-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 52px;
}
.team-title { white-space: pre-line; }
.team-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; }
.team-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--g1, var(--accent)), var(--g2, var(--accent-bright)));
  border: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.team-photo::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}
.team-photo img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
/* Hard reset — kill any borders/outlines/shadows around team cards */
.team-card,
.team-card figcaption,
.team-card .team-photo {
  border: 0 !important;
  outline: 0;
}
.team-card { box-shadow: none !important; }
.team-card:hover .team-photo {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(22,21,28,0.16);
}
/* inner ring removed — clean frameless photos */
.team-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.team-role { font-size: 0.8125rem; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* ══════════════════════════════════════════════════════
   ANIMATIONS — scroll progress, button shine, card glow
══════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  z-index: 300;
  transition: width 0.05s linear;
}
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  z-index: -1;
}
.btn-primary:hover::after { animation: btn-shine 0.8s ease; }
@keyframes btn-shine { to { left: 140%; } }

/* pointer-reactive glow on cards */
.partner-card::after,
.vk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(90,71,214,0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.partner-card:hover::after,
.vk-card:hover::after { opacity: 1; }
.partner-card > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  /* Single column gives the headline the full width, but it still has to stay
     under the display ceiling — the long RU line reads as shouting above ~64px. */
  .hero-title { font-size: clamp(34px, 6.6vw, 62px); }
  .hero-media { max-width: 460px; }
}
@media (max-width: 1000px) {
  .tg-feed { grid-template-columns: 1fr 1fr; }
  .tg-feed .tg-cta { grid-column: span 2; }
  .vk-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mission-layout { grid-template-columns: 1fr; gap: 40px; }
  .for-whom-header { grid-template-columns: 1fr; gap: 20px; }
  .audience-list { grid-template-columns: 1fr 1fr; }
  /* two-up: reset the divider/padding pattern to the column, not the source order */
  .audience-item,
  .audience-item:not(:first-child) { padding-left: 0; padding-right: 30px; }
  .audience-item:nth-child(even) { border-right: none; padding-left: 30px; padding-right: 0; }
  .audience-item:nth-child(odd)  { border-right: 1.5px solid var(--line); }
  .audience-item:nth-child(-n+2) { border-bottom: 1.5px solid var(--line); }
  .vk-head { grid-template-columns: 1fr; gap: 24px; }
  .team-head { grid-template-columns: 1fr; gap: 20px; }
  .team-row { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 36px; flex-direction: column; align-items: flex-start; }
  /* timeline collapses to single column */
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 1fr; gap: 14px; padding-left: 36px; }
  .tl-date { text-align: left; padding-top: 0; }
  .tl-content::before { left: -36px; top: 4px; }
  .tl-card { grid-template-columns: 160px 1fr; }
}
@media (max-width: 640px) {
  .hero-stats { gap: 28px; }
  .audience-list { grid-template-columns: 1fr; }
  .audience-item,
  .audience-item:not(:first-child) {
    border-right: none;
    border-bottom: 1.5px solid var(--line);
    padding: 26px 0;
  }
  .audience-item:last-child { border-bottom: none; }
  .tg-feed { grid-template-columns: 1fr; }
  .tg-feed .tg-cta { grid-column: span 1; }
  .vk-grid { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.wide { grid-column: span 2; }
  .cta-inner { padding: 36px 24px; }
  .tl-card { grid-template-columns: 1fr; }
  .tl-photo { aspect-ratio: 16 / 10; min-height: 0; }
  .tl-photo img { position: relative; }
  .tl-text { padding: 22px 24px; }
  .hero-photo-mini { width: 100px; height: 100px; top: -18px; right: -10px; }
}

/* ══════════════════════════════════════════════════════
   COOL ANIMATIONS — playful edtech accents
══════════════════════════════════════════════════════ */

/* Sticker wobble — gentle, indefinite */
@keyframes sticker-wobble-a {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-4px); }
}
@keyframes sticker-wobble-b {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(9deg) translateY(-5px); }
}
@keyframes sticker-wobble-c {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(4deg) translateY(-3px); }
}
@keyframes sticker-wobble-d {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-4px); }
}
.sticker { will-change: transform; }
.sticker-1 { animation: sticker-wobble-a 5.5s ease-in-out infinite; }
.sticker-2 { animation: sticker-wobble-b 6.2s ease-in-out infinite 0.4s; }
.sticker-3 { animation: sticker-wobble-c 5.9s ease-in-out infinite 0.8s; }
.sticker-4 { animation: sticker-wobble-d 6.6s ease-in-out infinite 1.2s; }
.sticker:hover {
  animation-play-state: paused;
  transform: rotate(0deg) scale(1.1) !important;
  transition: transform 0.35s var(--ease);
}

/* Floating decorative dots on colored bands */
.mission, .for-whom,.mission::before, .for-whom::before,.mission::after, .for-whom::after,@keyframes dot-float {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33%      { transform: translate(14px,-12px) rotate(60deg); }
  66%      { transform: translate(-10px,14px) rotate(-40deg); }
}

/* Hero photo subtle floating bob */
@keyframes hero-photo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-photo { animation: hero-photo-float 8s ease-in-out infinite; }

/* Hero photo-mini orbit motion */
@keyframes mini-orbit {
  0%   { transform: translate(0,0) rotate(0deg); }
  25%  { transform: translate(-6px,6px) rotate(-3deg); }
  50%  { transform: translate(0,12px) rotate(3deg); }
  75%  { transform: translate(6px,6px) rotate(0deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}
.hero-photo-mini { animation: mini-orbit 7s ease-in-out infinite; }

/* Card neobrutalist hover — shadow snaps from offset to deeper offset */
.partner-card, .block-card, .tl-card, .tg-post, .vk-card, .team-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.partner-card:hover, .block-card:hover, .tg-post:hover, .vk-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 8px 10px 0 0 var(--ink);
}

/* CTA primary — animated gradient shimmer sweep */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.28) 50%,
    transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(120%); }

/* Animated underline on inline links */
.partner-card-link h3 { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.5s var(--ease); }
.partner-card-link:hover h3 { background-size: 60% 2px; }

/* Gallery items — slight zoom + tilt on hover */
.gallery-item { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.gallery-item:hover { transform: scale(1.025) rotate(-0.6deg); box-shadow: 0 18px 40px rgba(22,21,28,0.18); z-index: 2; }

/* VK play button — pulse */
@keyframes vk-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70%      { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}
.vk-play { animation: vk-pulse 2.4s ease-out infinite; }

/* Lang switcher — slide indicator effect */
.lang-btn.active { box-shadow: 0 4px 0 0 var(--accent); transition: box-shadow 0.3s var(--ease); }

/* ══════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* .js-motion is never set under reduced motion, so the load entrance simply
     does not exist. These belt-and-braces resets cover the ambient loops. */
  .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-photo-mini, .hero-penguin, .sticker, .partner-star,
  .hero-media::before, .hero-media::after,
  .mission::before, .mission::after,
  .for-whom::before, .for-whom::after,
  .gallery-section::before, .gallery-section::after,
  .team-section::before, .team-section::after,
  .vk-play { animation: none !important; }
  .hero-photo img, .gallery-item:hover { transform: none !important; }
}

/* Course path, wrapped: below 560px the four steps sit 2×2, so the dividers
   have to become a grid rather than a running left border. */
@media (max-width: 560px) {
  .hero-path-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .hero-path-list li + li { border-left: none; }
  .hero-path-list li:nth-child(even) { border-left: 1.5px solid var(--line); }
  .hero-path-list li:nth-child(-n+2) { border-bottom: 1.5px solid var(--line); }
  .hero-path-list li, .hero-path-list a { width: 100%; }
}

/* Course path at the two-column hero: the content column is ~583px and four
   auto-width steps come to ~608px, so the last one orphans onto its own row.
   Force an equal four-up grid and tighten the cells so the sequence stays a
   single readable line — it is a path, and a path that wraps stops reading
   as an order. */
@media (min-width: 1101px) {
  .hero-path-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  .hero-path-list a { padding: 10px 14px; }
  .hero-path-name { font-size: 0.875rem; letter-spacing: -0.025em; }
  .hero-path-n { font-size: 0.7812rem; }
}

/* ══════════════════════════════════════════════════════
   SPEAKERS — the people who actually stood on the stage.
   All four now have a real photo: two are cutouts from the project's own
   official announcement cards, two are documentary photos (one submitted
   directly, one cropped tighter and toned down from a very blue-lit source).
   Different origins, so the unifying device is discipline, not a filter:
   same 5:6 crop, same card, same hover language as the rest of the site.
══════════════════════════════════════════════════════ */
.speakers { padding: 96px 0; background: var(--bg-2); }
.speakers-sub {
  font-family: var(--reading);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.speakers-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.speaker-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.speaker-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 36px rgba(20,18,31,0.12);
  transform: translateY(-4px);
}

.sc-photo-wrap {
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.sc-photo-wrap picture,
.sc-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease);
}
/* A quiet portrait-card tell: the photo drifts in slightly on hover. Scale
   lives on the image, never the card, so text and borders stay put. */
.speaker-card:hover .sc-photo-wrap img { transform: scale(1.045); }

.sc-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sc-name {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.sc-role {
  font-size: 0.7812rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
  margin-bottom: 12px;
}
.sc-topic {
  font-family: var(--reading);
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--muted);
  flex: 1;
}

@media (max-width: 1000px) {
  .speakers-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .speakers { padding: 68px 0; }
  .speakers-list { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
  .sc-body { padding: 14px 14px 18px; }
  .sc-name { font-size: 0.9375rem; }
  .sc-role { font-size: 0.7188rem; }
  .sc-topic { font-size: 0.8125rem; }
}
@media (max-width: 480px) {
  .speakers-list { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   GALLERY — a scroll-snap carousel.
   Deliberately not Swiper/Splide: a library costs 30–140 KB and reimplements
   what the browser already does. Native overflow scrolling gives real
   momentum, real touch swipe, real keyboard scrolling and works when the JS
   fails — the arrows are an enhancement on top, not the mechanism.
══════════════════════════════════════════════════════ */
.gallery-section { padding: 96px 0; }

.gal { position: relative; }

.gal-viewport { overflow: hidden; border-radius: var(--r-md); }

.gal-track {
  list-style: none;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Animation is driven from JS (scrollTo with an explicit behavior). CSS
     scroll-behavior: smooth turns every scrollLeft assignment into a slow
     queued animation, which made the arrows look dead. */
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gal-track::-webkit-scrollbar { display: none; }

.gal-slide {
  flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  transition: border-color var(--t) var(--ease);
}
.gallery-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-btn:hover { border-color: var(--ink); }
.gallery-btn:hover img { transform: scale(1.035); }

.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 11px;
  text-align: left;
  font-family: var(--font);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(10,9,16,0.85), rgba(10,9,16,0));
  pointer-events: none;
}

/* ── controls ── */
.gal-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.gal-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.gal-arrow:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.gal-status {
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 62px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1000px) {
  .gal-slide { flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 640px) {
  .gallery-section { padding: 64px 0; }
  /* One slide with a sliver of the next, so it is obvious the strip scrolls. */
  .gal-slide { flex-basis: 88%; }
  .gal-controls { justify-content: space-between; margin-top: 14px; }
  .gallery-cap { font-size: 0.7812rem; }
}

/* Someone who has asked for less motion should not get smooth-scroll jumps. */


/* ── LIGHTBOX ── */
.lb {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(10, 9, 16, 0.94);
}
.lb.open { display: flex; }
body.lb-lock { overflow: hidden; }

.lb-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto; height: auto;
  border-radius: var(--r-md);
  background: #1a1826;
}
.lb-cap {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.lb-count { color: rgba(255,255,255,0.6); font-weight: 500; }

.lb-btn {
  position: absolute;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lb { padding: 12px; }
  .lb-figure img { max-height: calc(100vh - 190px); }
  .lb-prev { left: 12px;  top: auto; bottom: 18px; transform: none; }
  .lb-next { right: 12px; top: auto; bottom: 18px; transform: none; }
  .lb-close { top: 12px; right: 12px; }
}


/* Real partner marks, not placeholders: give each one clear space and let it
   sit at its own aspect rather than being forced into a square tile. */
.partner-logo-grant,
.partner-logo-fortuna {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: none;
  padding: 4px;
}
.partner-logo-grant  img { width: 100%; max-width: 168px; height: auto; }
.partner-logo-fortuna img { width: 100%; max-width: 104px; height: auto; }

/* Partner marks: these are now the partners' real logos, not placeholder tiles.
   A logo needs clear space and its own aspect ratio — the 84px square with
   object-fit:cover was cropping the Фортуна emblem and shrinking the
   Росмолодёжь wordmark to an unreadable smear. Also: no rotate on hover.
   Wobbling somebody else's trademark is not a nice thing to do to a partner. */
.partner-logo {
  width: auto;
  min-width: 104px;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  overflow: visible;
}
.partner-card:hover .partner-logo { transform: none; }
.partner-logo img { width: auto; height: auto; object-fit: contain; }
/* Both marks are square tiles now, so they share one size and one radius. */
.partner-logo-grant  img,
.partner-logo-fortuna img { width: 104px; max-width: none; border-radius: 14px; }
.partner-logo-fortuna img { border-radius: 0; }

@media (max-width: 900px) {
  .partner-card { gap: 18px; padding: 26px 24px; }
  .partner-logo { min-width: 92px; }
  .partner-logo-grant  img,
  .partner-logo-fortuna img { width: 84px; }
}
@media (max-width: 560px) {
  /* stack rather than squeeze the logo into a sliver */
  .partner-card { flex-direction: column; align-items: flex-start; }
  .partner-logo { min-width: 0; }
}

/* ══════════════════════════════════════════════════════
   ROUTE — the events as a journey, because that is what it was:
   Москва → Петербург → Казань → Москва → Переславль → Петербург → онлайн.
   Stops alternate either side of a curve that JS draws through the actual
   pin positions, so the line stays true whatever height the cards take.
══════════════════════════════════════════════════════ */
.timeline-section { padding: 100px 0; }

.route { position: relative; }

.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.route-path-bg,
.route-path {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-path-bg { stroke: var(--line); }
.route-path {
  stroke: var(--accent);
  /* dash values are set by JS from the measured path length */
  transition: stroke-dashoffset 0.9s var(--ease);
}

.route-stops {
  list-style: none;
  position: relative;
  display: grid;
  gap: 30px;
}

.stop {
  position: relative;
  display: grid;
  /* A wide centre gutter with the pin parked on the side nearest its card.
     That alternation is what makes the drawn curve actually snake — with the
     pin locked to the centre the "route" is just a straight line. */
  grid-template-columns: 1fr 210px 1fr;
  align-items: center;
}
.stop-card {
  grid-column: 1;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 28px;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.stop:nth-child(even) .stop-card { grid-column: 3; }
.stop:nth-child(even) .stop-pin { justify-self: end; }
.stop-card:hover { border-color: var(--ink); }

.stop-pin {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  z-index: 2;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.stop:hover .stop-pin,
.stop:focus-within .stop-pin {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.stop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.stop-date {
  font-family: var(--display);
  font-size: 0.8438rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stop-place {
  font-size: 0.7812rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.stop-title {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 10px;
  text-wrap: balance;
}
.stop-body {
  font-family: var(--reading);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}
.stop-photo { display: block; margin-top: 16px; }
.stop-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}

@media (max-width: 900px) {
  .timeline-section { padding: 68px 0; }
  /* One column: pin on a left rail, card beside it. A snaking layout at
     phone width just makes both halves too narrow to read. */
  .stop { grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
  .stop-card,
  .stop:nth-child(even) .stop-card { grid-column: 2; }
  .stop-pin { grid-column: 1; justify-self: start; }
  .stop-card { padding: 20px 20px 22px; }
  .stop-photo img { height: 160px; }
}

/* Someone who asked for less motion gets the finished line, not a drawing. */
@media (prefers-reduced-motion: reduce) {
  .route-path { transition: none; stroke-dashoffset: 0 !important; }
}

/* ══════════════════════════════════════════════════════
   PHONE PASS (≤600px)
   The desktop layout was being *squeezed* onto phones rather than rebuilt for
   them: the home page measured 19 082px on a 375px screen — twenty-three
   screens of scrolling — and body copy in the timeline ran at 30 characters
   per line. Both are the same root cause: structures that assume horizontal
   room (a timeline rail, a portrait photo above text, 100px section padding)
   kept their proportions when the room disappeared.

   Everything below trades vertical space for horizontal space, which is the
   only currency a phone has. Nothing here hides content — this audience often
   runs the page at 200%+, and content that vanishes at one width is content
   they cannot get back.
══════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── Vertical rhythm ──
     100px top + 100px bottom per section was ~1000px of pure padding across
     the page. 56px still reads as a section break at this width. */
  .mission,
  .for-whom,
  .vk-course,
  .tools-showcase,
  .speakers,
  .gallery-section,
  .partners,
  .team-section { padding-top: 56px; padding-bottom: 56px; }
  .timeline-section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }

  /* ── Hero ──
     Header is 84px; 160px of padding left 76px of dead air above the first
     word. The sub was 18.5px/1.65 — eight lines before any content. */
  .hero { padding: 104px 0 52px; }
  .hero .container { gap: 34px; }
  .hero-title { font-size: clamp(29px, 8.2vw, 40px); line-height: 1.06; }
  .hero-sub { font-size: 1.0312rem; line-height: 1.6; margin-bottom: 28px; }

  /* ── "Что мы делаем" strip ──
     A `1fr` grid track's automatic minimum is min-content, so the widest
     word in the four cells set a 338px floor. The hero's own single-column
     `1fr` then inherited that floor and grew past the container's right
     padding: every line in the hero ran to the screen edge with no margin,
     while the left kept its 22px. `minmax(0, …)` lets the track shrink, and
     the tighter cell padding keeps the labels on one line anyway. */
  .hero-path-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-path-list a { padding: 10px 14px; }
  .hero-path-name { overflow-wrap: break-word; }
  .hero .container > * { min-width: 0; }

  /* ── Route / events ──
     The 46px rail + 16px gutter took 62px off a 331px column, leaving body
     copy at 30 characters per line. Dropping the rail and moving the stop
     number into the card's top corner gives the text the full width (≈39
     characters) and cuts roughly 900px off the section. The drawn curve is
     hidden because with one column and no pin gutter it has nothing to
     snake between — it would just trace the cards' corners. */
  .route-line { display: none; }
  .stop { display: block; position: relative; }
  .stop-card,
  .stop:nth-child(even) .stop-card { grid-column: auto; }
  .stop-card { padding: 18px 18px 20px; }
  .stop-pin {
    position: absolute;
    top: 12px; right: 12px;
    width: 30px; height: 30px;
    font-size: 0.8125rem;
    border-width: 2px;
  }
  /* keep the date/place line clear of the number badge */
  .stop-meta { padding-right: 34px; }

  /* ── Speakers ──
     A 5:6 portrait at full width rendered a 394px photo, so one speaker cost
     610px — a whole screen each. Side by side, the photo keeps its portrait
     crop (faces stay intact) while the text gets a real column. */
  .speakers-list { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .speaker-card { flex-direction: row; align-items: stretch; }
  .sc-photo-wrap {
    width: 108px;
    flex: 0 0 108px;
    aspect-ratio: auto;
    align-self: stretch;
  }
  .sc-body { padding: 16px 16px 18px; }
  .sc-name { font-size: 1rem; margin-bottom: 4px; }
  .sc-role { font-size: 0.75rem; margin-bottom: 8px; }
  .sc-topic { font-size: 0.8125rem; line-height: 1.6; }

  /* ── Closing CTA ──
     `align-items: flex-start` in the stacked column sizes each child to its
     max-content width, so on a 360px screen the heading grew past the dark
     card and `overflow: hidden` silently cut the end off it. Stretch the
     children to the card instead and let long words wrap. */
  .cta-inner { align-items: stretch; padding: 32px 22px; }
  .cta-text,
  .cta-actions { max-width: 100%; min-width: 0; }
  /* "присоединиться?" is 15 characters of display type; at the desktop floor
     of 28px it does not fit a 272px card and broke mid-syllable into
     "присоединить / ся?". Smaller type lets it stay whole, and `hyphens`
     makes any remaining break render as a proper hyphenation rather than a
     word sliced in half. */
  .cta-title { font-size: clamp(23px, 6.4vw, 30px); hyphens: auto; overflow-wrap: break-word; }
  .cta-sub { font-size: 0.9375rem; }
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; }

}

/* Anchored sections must clear the fixed header, or the heading you jumped to
   sits underneath it. Applies at every width — the header is fixed on all. */
section[id] { scroll-margin-top: 88px; }
