
header.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(4,14,26,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(119,255,237,.12);
  box-shadow: 0 4px 32px rgba(0,0,0,.35);
  position: sticky; top: 0; z-index: 1000;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  flex-shrink: 0; text-decoration: none;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  object-fit: contain;
}
.brand-text {
  font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: #E2E2E5;
}
nav.links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
nav.links a, nav.links a:visited { color: var(--muted); text-decoration: none !important; border-bottom: none !important; box-shadow: none !important; outline: none !important; transition: color .2s; }
nav.links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 14px; flex-shrink: 0; }

.lang { display: flex; align-items: center; gap: 5px; color: var(--muted); position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px; background: transparent; border: none; padding: 6px 2px;
  color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; transition: color .2s;
}
.lang-toggle:hover { color: var(--text); }
.lang-toggle svg { flex-shrink: 0; }
.lang-chevron { transition: transform .2s; }
.lang.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  background: linear-gradient(160deg,#0b2137,#071726); border: 1px solid rgba(119,255,237,.16);
  border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: block; width: 100%; text-align: left; background: transparent; border: none; border-radius: 8px;
  padding: 9px 12px; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s;
}
.lang-option:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-option.active { color: var(--accent); background: rgba(117,255,240,.08); }

.btn {
  padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 700; letter-spacing: .3px;
  border: 1px solid var(--line); cursor: pointer; display: inline-block;
  transition: transform .18s, box-shadow .18s, background .2s, border-color .2s;
  font-family: 'Rubik', sans-serif; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg,#156a86,#1c3b5e); color: #E2E2E5; border: none; }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(21,106,134,.4); background: linear-gradient(135deg,#1a7a9a,#204468); }
.btn-outline { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid rgba(255,255,255,.14); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--accent); transform: translateY(-2px); }

:root {
  --text-dim: rgba(167,196,216,.7);
  --text-dimmer: rgba(167,196,216,.5);
}

.bg-stars { display: none; }
.page-wrap { position: relative; z-index: 1; padding-bottom: 60px; }
.page-wrap .container { max-width: none; }
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 1440/620;
  max-height: 60vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/events-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,10,18,0.15) 0%, rgba(4,10,18,0.35) 50%, rgba(4,10,18,0.6) 100%);
}
.hero h1, .hero-sub, .hero-stats { position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 72px;
  font-weight: 700; line-height: 1; letter-spacing: 0;
  color: #E2E2E5;
  margin: 0;
}
.hero-sub {
  font-family: 'Rubik', sans-serif;
  font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: 0;
  color: #E2E2E5; margin: 0 auto;
}
.hero-stats {
  display: flex; justify-content: center; gap: 32px; margin-top: 28px; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hero-stat-num { font-size: 28px; font-weight: 900; color: #E2E2E5; }
.hero-stat-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(167,196,216,.5); }

/* ── Tabs (official / staff) — стиль переключателя со страницы events ── */
.tabs {
  display: inline-flex; align-items: center; gap: 4px;
  width: fit-content; height: 37px; margin-bottom: 26px;
  background: #12151D; border: 1px solid rgba(226,226,229,0.08);
  border-radius: 8px; padding: 2px; position: relative;
}
.tab {
  display: flex; align-items: center; justify-content: center;
  width: fit-content; height: 35px; box-sizing: border-box;
  padding: 8px 12px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: #9BA1AE; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap; position: relative; z-index: 2;
}
.tab.active {
  position: relative;
  background: #1C202B;
  border: 1px solid transparent; color: #E2E2E5;
}
.tab.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #0381B4, #1E3A5F);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.tab:hover:not(.active) { color: rgba(255,255,255,.75); }
.tab-indicator { display: none; }

/* ── Photo grid ── */
.gallery-panel { display: none; }
.gallery-panel.active { display: grid; animation: galleryFadeIn .3s ease both; }
@keyframes galleryFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  box-sizing: border-box;
  height: 228px; border-radius: var(--radius);
  border: 1px solid var(--border-default);
  transition: transform .3s, border-color .3s;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-origin: border-box;
  cursor: pointer;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery-empty {
  grid-column: 1/-1; text-align: center; padding: 60px 0;
  color: var(--text-dim); font-size: 14px;
}

/* ── Lightbox ── */
.hm-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(2,8,14,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 30px 16px; opacity: 0; transition: opacity .25s ease;
}
.hm-modal-overlay.show { opacity: 1; }
.hm-gallery-overlay { padding: 0; }
.hm-gallery-close {
  position: fixed; top: 20px; right: 20px; z-index: 2010;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1C202B; border: 1px solid var(--border-default);
  color: #9BA1AE; font-size: 22px; font-weight: 200; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.hm-gallery-close:hover { background: #1C202B; }
.hm-gallery-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2010;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1C202B; border: 1px solid var(--border-default);
  color: #9BA1AE; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.hm-gallery-nav:hover { transform: translateY(calc(-50% - 4px)); }
.hm-gallery-prev { left: 24px; }
.hm-gallery-next { right: 24px; }
.hm-gallery-stage {
  position: relative; width: 100%; height: 100%;
  overflow: hidden;
  padding: 80px 130px;
}
.hm-gallery-slide {
  position: absolute;
  top: 80px; left: 130px; right: 130px; bottom: 80px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  opacity: 1; transition: opacity .155s ease;
}
.hm-gallery-slide.is-switching { opacity: .12; }
.hm-gallery-bottom {
  position: fixed; left: 0; right: 0; bottom: 22px; z-index: 2010;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.hm-gallery-info {
  display: flex; align-items: center; gap: 12px;
  background: #1C202B; border: 1px solid var(--border-default);
  border-radius: 8px; padding: 9px 14px;
  font-size: 13px; color: #9BA1AE;
  pointer-events: auto;
}
.hm-gallery-caption { color: var(--text); font-weight: 600; max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-gallery-counter { font-variant-numeric: tabular-nums; color: #9BA1AE; }
.hm-gallery-thumbs { display: none; }
@media (max-width: 720px) {
  .hm-gallery-stage { padding: 70px 24px; }
  .hm-gallery-slide { top: 70px; left: 24px; right: 24px; bottom: 70px; }
  .hm-gallery-prev { left: 8px; }
  .hm-gallery-next { right: 8px; }
}
