/* Общий хидер сайта (лендинг, афиша без авторизации, квиз, наука) —
   единый источник стиля, чтобы не расходиться при правках. */

:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0d1b3d;
  --muted: #5e6f91;
  --line: rgba(14, 33, 74, 0.12);
  --blue: #1b68e0;
  --blue-deep: #0f46ba;
  --ice: #dcecff;
  --shadow: 0 18px 60px rgba(10, 34, 84, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1180px;
}

.shell { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(27, 104, 224, 0.24);
}
.btn--primary:hover { box-shadow: 0 18px 36px rgba(27, 104, 224, 0.32); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border-color: rgba(14, 33, 74, 0.08);
}
.btn--ghost:hover { background: #fff; border-color: rgba(14, 33, 74, 0.16); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 251, 0.5);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(244, 247, 251, 0.86);
  border-bottom-color: rgba(14, 33, 74, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(14, 33, 74, 0.06);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__left { display: flex; align-items: center; gap: 18px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
a.nav__actions-compact { display: none; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo { height: 46px; width: auto; }

/* ---------- Соцсети в хидере ---------- */
.social-links { display: flex; align-items: center; gap: 10px; }
.social-links__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  color: var(--blue-deep); background: rgba(15, 70, 186, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-links__link:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); }
.social-links__link svg { width: 18px; height: 18px; }
.nav__social { display: flex; }
@media (max-width: 900px) {
  .nav__social { display: none; }
}

/* ---------- Бургер-меню (мобильное боковое меню) ---------- */
.nav__burger {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(14, 33, 74, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  cursor: pointer;
}
.nav__burger svg { width: 22px; height: 22px; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 30, 0.5);
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: var(--surface-strong);
  box-shadow: -18px 0 50px rgba(10, 34, 84, 0.22);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 8px; }
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(14, 33, 74, 0.12);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.mobile-menu__close svg { width: 18px; height: 18px; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(232, 241, 255, 0.6);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.mobile-menu__link.btn--primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.mobile-menu__social { margin-top: 10px; justify-content: center; }

@media (max-width: 640px) {
  .nav { min-height: 70px; flex-wrap: nowrap; }
  .nav__science { display: none; }
  .nav__social { display: none; }
  .nav__actions { margin-left: auto; gap: 8px; }
  .nav__actions-full { display: none; }
  a.nav__actions-compact { display: inline-flex; }
  .nav__burger { display: inline-flex; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand__logo { height: 32px; max-width: 100%; }
}
