/* ============================================================
   МИСПИНТ РУДН — дизайн-система
   Bold institutional grid (B) + dark-tech accents (C)
   Display: Archivo (700–900) · Body: Public Sans
   ============================================================ */

:root {
  --blue: #146fb5;
  --blue-dark: #0b4f86;
  --blue-deep: #0a3a63;
  --green: #1f9a72;
  --red: #c83f3b;

  /* пастельно-голубые оттенки (воздух) */
  --blue-50: #f1f6fb;
  --blue-100: #e6eff7;
  --blue-200: #d4e4f2;
  --blue-tint: rgba(20, 111, 181, 0.08);
  --blue-tint-strong: rgba(20, 111, 181, 0.14);
  --blue-border: rgba(20, 111, 181, 0.22);
  --blue-soft: #5b93c4;

  --ink: #0d1116;
  --ink-2: #11151c;
  --muted: #5b636f;
  --muted-light: rgba(255, 255, 255, 0.74);

  /* нейтральный тёплый серый (stone) */
  --stone-50: #f4f3f0;
  --stone-100: #ecebe5;
  --stone-border: #e0ddd4;
  --stone-ink: #4a463f;
  --stone-muted: #6f6a60;

  --paper: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --line: #e3e7ec;
  --line-strong: #0d1116;

  /* dark-tech (from direction C) */
  --dark: #0a1420;
  --dark-2: #0d1d2e;
  --dark-card: #111f30;
  --dark-line: rgba(255, 255, 255, 0.10);

  --tricolor: var(--blue);
  --tricolor-3: linear-gradient(90deg, var(--blue), var(--blue));

  --shadow: 0 18px 45px rgba(13, 17, 22, 0.08);
  --shadow-strong: 0 26px 70px rgba(13, 17, 22, 0.16);
  --max: 1280px;
  --gutter: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Public Sans', system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; }

h1, h2, h3, h4, .display { font-family: 'Archivo', system-ui, sans-serif; }

/* ───────────────────────── Header ───────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  flex: 0 0 auto;
  background: #fff;
  padding: 5px;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
/* Photo avatars: neutral backdrop for transparent cutouts + face-safe framing */
img.avatar { background: #ecebe5; object-fit: cover; object-position: center top; }
.brand-title {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
  transition: 0.18s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, 0.11); font-weight: 700; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: 0.18s ease;
}
.btn-primary { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn-secondary { color: var(--ink); background: transparent; border-color: rgba(13, 17, 22, 0.2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-disabled { opacity: 0.55; pointer-events: none; }
.btn-icon { width: 20px; height: 20px; object-fit: contain; }
.btn-icon.icon-vk { width: 16px; height: 16px; }

.actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* on dark backgrounds */
.on-dark .btn-primary, .hero .btn-primary, .page-hero .btn-primary {
  color: var(--ink); background: #fff; border-color: #fff;
}
.on-dark .btn-primary:hover, .hero .btn-primary:hover, .page-hero .btn-primary:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.on-dark .btn-secondary, .hero .btn-secondary, .page-hero .btn-secondary {
  color: #fff; border-color: rgba(255, 255, 255, 0.42);
}
.on-dark .btn-secondary:hover, .hero .btn-secondary:hover, .page-hero .btn-secondary:hover {
  border-color: #fff; background: rgba(255, 255, 255, 0.08);
}

/* ───────────────────────── Section scaffolding ───────────────────────── */
section { padding: 92px 0; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 46px; }
.sec-bar {
  width: 3px; height: 26px; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--blue), var(--blue-soft));
}
.sec-bar.tri { width: 3px; background: linear-gradient(180deg, var(--blue), var(--blue-soft)); }
.sec-head h2, .sec-label {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.on-dark .sec-head h2, .on-dark .sec-label { color: #fff; }

/* ───────────────────────── Social chips ───────────────────────── */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
  transition: 0.18s ease;
}
.social-links a:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.social-links.ink a { color: var(--blue-dark); border-color: var(--line); background: var(--surface); }
.social-links.ink a:hover { border-color: var(--blue-dark); background: rgba(20, 111, 181, 0.06); }

/* ───────────────────────── Home hero ───────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(680px 520px at 86% -10%, rgba(31, 154, 114, 0.30), transparent 60%),
    radial-gradient(720px 600px at 102% 40%, rgba(20, 111, 181, 0.42), transparent 62%),
    linear-gradient(160deg, #0c2944, var(--blue-deep) 60%, #08263f);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--tricolor-3);
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #8fd0ff; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 30px;
  max-width: 1180px;
}
.hero h1 span { color: #8fd0ff; }
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-end;
  border-top: 2px solid rgba(255, 255, 255, 0.20);
  padding-top: 30px; margin-top: 8px;
}
.hero-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
}

/* ───────────────────────── Page hero (inner pages) ───────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(600px 440px at 92% 0%, rgba(20, 111, 181, 0.42), transparent 62%),
    linear-gradient(155deg, var(--dark-2), var(--dark));
  color: #fff;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--tricolor-3);
}
.page-hero .sec-label { color: #8fd0ff; margin-bottom: 22px; display: block; }
.page-hero h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 900; line-height: 0.98;
  letter-spacing: -0.02em; text-transform: uppercase;
  max-width: 980px; margin-bottom: 24px;
}
.page-hero h1 .reg { text-transform: none; color: #8fd0ff; font-weight: 800; display: block; margin-top: 10px; letter-spacing: -0.01em; }
.page-hero .lead {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5;
  color: rgba(255, 255, 255, 0.82); max-width: 820px;
}

/* ───────────────────────── Leadership ───────────────────────── */
.lead-section { background: var(--surface); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.leader-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 26px;
  padding: 34px; background: var(--stone-50);
  border: 1px solid var(--stone-border); border-radius: 10px;
}
.avatar {
  width: 112px; height: 134px; border-radius: 4px;
  background: var(--blue-dark); color: #fff;
  display: grid; place-items: center;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 40px;
  object-fit: cover; flex: 0 0 auto;
}
.leader-card h3 {
  font-size: clamp(22px, 1.9vw, 28px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 12px;
}
.role-tag {
  display: inline-block;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone-ink); background: rgba(74, 70, 63, 0.10);
  padding: 6px 11px; border-radius: 999px; margin-bottom: 16px;
  white-space: nowrap;
}
.leader-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.lead-cta { display: flex; justify-content: flex-start; margin-top: 30px; }

/* ───────────────────────── Program cards (dark-tech, from C) ───────────────────────── */
.programs-section { background: var(--paper); }
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.program-card {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 46px;
  display: flex; flex-direction: column;
  color: #fff;
}
.program-card.blue { background: linear-gradient(152deg, #16456e, #0c2c49); border: 1px solid rgba(47, 143, 214, 0.34); }
.program-card.green { background: linear-gradient(152deg, #16456e, #0c2c49); border: 1px solid rgba(47, 143, 214, 0.34); }
.program-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--tricolor-3);
}
.program-kind {
  font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
}
.program-card.blue .program-kind { color: #6cc0f5; }
.program-card.green .program-kind { color: #6cc0f5; }
.program-card h3 {
  font-size: clamp(26px, 2.6vw, 38px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 18px;
}
.program-card > p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); margin-bottom: 28px; }

/* seminar preview inside program card */
.seminar-preview {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.seminar-preview .sp-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.seminar-preview .sp-top strong,
.seminar-preview .sp-top span {
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}
.seminar-preview .sp-rows { display: grid; gap: 8px; }
.seminar-preview .sp-rows > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.seminar-preview .sp-rows strong {
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}
.seminar-preview .sp-rows span { font-size: 14px; color: #fff; }

.digest-preview-link { display: block; align-self: flex-start; width: 140px; margin-bottom: 28px; transition: transform 0.2s ease; }
.digest-preview-link:hover { transform: translateY(-3px); }
.digest-preview-cover {
  position: relative; aspect-ratio: 3 / 4.15; overflow: hidden; border-radius: 6px;
  background: linear-gradient(152deg, #16456e, #0c2c49);
  border: 1px solid rgba(47, 143, 214, 0.3);
  box-shadow: var(--shadow);
  padding: 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background-image: var(--cover-img); background-size: cover; background-position: top center;
}
.digest-preview-cover::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tricolor-3); }
.digest-preview-cover .cover-label, .digest-preview-cover .cover-title, .digest-preview-cover .cover-bottom { display: none; }

.program-card .actions { margin-top: 0; }
.program-card .btn-primary { color: var(--ink); background: #fff; border-color: #fff; }
.program-card .btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.program-card .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.program-card .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ───────────────────────── Team members ───────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.member-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 30px; transition: 0.18s ease;
}
.member-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); border-color: rgba(13,17,22,0.18); }
.member-top { display: flex; flex-direction: row; align-items: center; gap: 24px; margin-bottom: 20px; }
.member-card .avatar { width: 112px; height: 134px; font-size: 40px; border-radius: 4px; flex: 0 0 auto; }
/* photos framed via background for precise head/shoulders crop */
.member-card h3 { font-size: 21px; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 9px; }
.member-role { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dark); }
.member-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.member-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.member-links a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px;
  font-family: 'Archivo', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--blue-dark);
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft);
  transition: 0.16s ease;
}
.member-links a:hover { border-color: var(--blue-dark); background: rgba(20, 111, 181, 0.06); }

/* ───────────────────────── Generic content layout ───────────────────────── */
.section-intro { max-width: 860px; }
.section-intro p { font-size: 17px; color: var(--muted); margin-top: 14px; }

/* ───────────────────────── Feature grid (seminar format) ───────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.feature-card {
  grid-column: span 2;
  background: var(--surface);
  padding: 30px 30px 34px; min-height: 190px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s ease;
}
.feature-card:nth-child(4), .feature-card:nth-child(5) { grid-column: span 3; }
.feature-card:hover { background: var(--blue-50); }
.feature-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--blue); font-variant-numeric: tabular-nums;
  padding-bottom: 14px; margin-bottom: 2px;
  border-bottom: 2px solid var(--blue-border);
  width: fit-content; min-width: 40px;
}
.feature-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.feature-card p { font-size: 15px; line-height: 1.58; color: var(--muted); }

/* ───────────────────────── Event cards ───────────────────────── */
.event-list { display: grid; gap: 22px; }
.event-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 34px;
}
.next-event-card { border: 1px solid var(--blue-border); border-top: 5px solid var(--blue-soft); border-radius: 10px; }
.archive-event-card { border-left: 4px solid var(--blue-soft); border-radius: 10px; }
.event-date { font-family: 'Archivo', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: 0.02em; color: var(--blue-dark); }
.event-status {
  display: inline-flex; width: fit-content; margin-top: 12px; padding: 6px 11px;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft);
}
.event-card h3 { font-size: 24px; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 8px; }
.event-card h3 a { border-bottom: 2px solid rgba(20, 111, 181, 0.3); transition: 0.18s ease; }
.event-card h3 a:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }
.event-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.event-details {
  display: grid; gap: 1px; margin-top: 22px;
  border: 1px solid var(--line); background: var(--line); border-radius: 4px; overflow: hidden;
}
.event-details > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; background: var(--surface); padding: 13px 16px; }
.event-details strong { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-dark); }
.event-details span { font-size: 15px; color: var(--muted); }

/* video */
.media-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.video-list { display: grid; gap: 22px; }
.video-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 30px;
}
.video-preview {
  min-height: 150px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(152deg, var(--dark-2), var(--dark));
  color: #fff; font-family: 'Archivo', sans-serif; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px;
  position: relative; overflow: hidden;
}
.video-preview::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tricolor-3); }
.video-meta { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-dark); display: block; margin-bottom: 12px; }
.video-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.video-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ───────────────────────── Digest ───────────────────────── */
.current-issue {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start;
  background: var(--blue-50); border: 1px solid var(--blue-border); border-radius: 12px; padding: 40px;
}
.cover-link { display: block; transition: 0.2s ease; }
.cover-link:hover { transform: translateY(-4px); }
.issue-cover {
  position: relative; aspect-ratio: 3 / 4.15; overflow: hidden; border-radius: 6px;
  background: linear-gradient(152deg, #16456e, #0c2c49);
  border: 1px solid rgba(47, 143, 214, 0.3);
  box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.issue-cover::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--tricolor-3); }
.issue-cover::after { content: "PDF"; position: absolute; right: 20px; bottom: 18px; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 46px; color: rgba(255, 255, 255, 0.12); }
.issue-cover.has-cover { background-image: var(--cover-img); background-size: cover; background-position: top center; }
.issue-cover.has-cover::after { content: none; }
.issue-cover.has-cover .cover-label, .issue-cover.has-cover .cover-title, .issue-cover.has-cover .cover-bottom { display: none; }
.cover-label { position: relative; z-index: 2; font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #6cc0f5; }
.cover-title { position: relative; z-index: 2; font-family: 'Archivo', sans-serif; font-size: 24px; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }
.cover-bottom { position: relative; z-index: 2; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.current-issue h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 16px; }
.current-issue p { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cover-note { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 760px; }

/* ───────────────────────── Partners ───────────────────────── */
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.logo-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px;
  transition: 0.18s ease;
}
.logo-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); }
.logo-placeholder {
  min-height: 84px; display: grid; place-items: center;
  border: 1px dashed rgba(13, 17, 22, 0.2); border-radius: 6px;
  background: var(--surface-soft); color: rgba(13, 17, 22, 0.4);
  font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.logo-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.logo-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }

.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.partner-card {
  display: flex; flex-direction: column;
  background: var(--blue-50); border: 1px solid var(--blue-border);
  border-left: 5px solid var(--blue-soft); border-radius: 10px; padding: 32px;
  transition: 0.18s ease;
}
.partner-card:nth-child(1) { border-left-color: var(--blue); }
.partner-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); }
.partner-type { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 14px; }
.partner-card h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 12px; }
.partner-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 22px; }
.partner-link { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-dark); margin-top: auto; }

.format-list {
  display: grid; gap: 1px;
  border: 1px solid var(--line); background: var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow);
}
.format-row { display: grid; grid-template-columns: 0.3fr 0.7fr; gap: 28px; background: var(--surface); padding: 28px 32px; }
.format-row strong { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.format-row p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* Vivid numbered format cards */
.format-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.format-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 32px 32px;
  transition: 0.2s ease;
}
.format-tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--accent, var(--blue));
}
.format-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: transparent;
}
.format-tile .ft-num {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: 58px; line-height: 0.8; letter-spacing: -0.02em;
  color: var(--accent, var(--blue));
  opacity: 0.18;
  margin-bottom: 18px;
}
.format-tile h3 {
  font-family: 'Archivo', sans-serif; font-size: 21px; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 12px;
}
.format-tile p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.format-tile .ft-tag {
  display: inline-flex; align-self: flex-start; margin-top: 18px;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--accent, var(--blue));
  padding: 6px 12px; border-radius: 999px;
}
.format-tile.featured {
  grid-column: span 1;
  background: linear-gradient(152deg, var(--dark-2), var(--dark));
  color: #fff; border-color: transparent;
}
.format-tile.featured h3 { color: #fff; }
.format-tile.featured p { color: rgba(255, 255, 255, 0.78); }
.format-tile.featured .ft-num { opacity: 0.32; }
@media (max-width: 1080px) { .format-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .format-cards { grid-template-columns: 1fr; } }

/* ───────────────────────── Contact / subscribe cards ───────────────────────── */
.contact-card, .subscribe-card {
  position: relative; overflow: hidden;
  background: linear-gradient(152deg, var(--dark-2), var(--dark));
  color: #fff; border-radius: 16px; padding: 46px;
}
.contact-card::before, .subscribe-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tricolor-3); }
.subscribe-card { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.contact-card h2, .subscribe-card h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 14px; }
.contact-card p, .subscribe-card p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); max-width: 640px; }
.subscribe-card .btn-primary { color: var(--ink); background: #fff; border-color: #fff; }
.subscribe-card .btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.email-link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  font-family: 'Archivo', sans-serif; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800;
  letter-spacing: -0.01em; color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4); padding-bottom: 4px;
  transition: 0.18s ease;
}
.email-link:hover { border-bottom-color: #8fd0ff; color: #8fd0ff; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.62); padding: 56px 0; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 40px; height: 40px; padding: 4px; }
.footer-brand strong { font-family: 'Archivo', sans-serif; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-top > div:first-child p { max-width: 460px; font-size: 14px; line-height: 1.55; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; transition: 0.16s ease;
}
.footer-social a:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.footer-bottom a { color: #fff; font-weight: 700; }

/* Официальные ссылки РУДН (п.14 приказа № 41) */
.footer-official { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-official a { color: #fff; font-weight: 700; }
.footer-official a.muted-link { color: rgba(255, 255, 255, 0.62); font-weight: 600; }
.footer-official a.muted-link:hover { color: #fff; }

/* ───────────────────────── Cookie-уведомление (приказ № 41, п.3.1.3) ───────────────────────── */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--ink);
  border-top: 4px solid transparent;
  border-image: var(--tricolor-3) 1;
  transform: translateY(110%);
  transition: transform 0.35s ease;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.28);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar-inner {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 20px 0;
}
.cookie-bar-text {
  font-size: 14px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.78); margin: 0;
}
.cookie-bar-text a { color: #6cc0f5; font-weight: 600; border-bottom: 1px solid rgba(108, 192, 245, 0.4); }
.cookie-bar-text a:hover { color: #8fd0ff; }
.cookie-bar-btn {
  flex: 0 0 auto;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); background: #fff;
  border: 2px solid #fff; border-radius: 9px;
  min-height: 48px; padding: 0 28px; cursor: pointer;
  transition: 0.18s ease;
}
.cookie-bar-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 680px) {
  .cookie-bar-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 0; }
  .cookie-bar-btn { width: 100%; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0; min-height: 0; }
  .nav { width: 100%; overflow-x: auto; gap: 2px; padding-bottom: 2px; }
  .lead-grid, .programs, .partner-grid, .subscribe-card { grid-template-columns: 1fr; }
  .team-grid, .logo-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card, .feature-card:nth-child(4), .feature-card:nth-child(5) { grid-column: auto; }
  .feature-card:nth-child(5) { grid-column: 1 / -1; }
  .current-issue { grid-template-columns: 240px 1fr; gap: 28px; }
  .video-card { grid-template-columns: 200px 1fr; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .leader-card, .event-card, .video-card, .current-issue { grid-template-columns: 1fr; gap: 20px; }
  .media-cols { grid-template-columns: 1fr; }
  .team-grid, .logo-grid, .archive-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:nth-child(4), .feature-card:nth-child(5) { grid-column: auto; }
  .program-card { padding: 32px; }
  .contact-card, .subscribe-card { padding: 32px; }
  .event-details > div { grid-template-columns: 1fr; gap: 4px; }
  .sec-head { margin-bottom: 32px; }
}
