
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); }


    /* Контейнер /news тянется на всю ширину с отступами 120px,
       чтобы контент шёл по одной линии с шапкой и главной страницей. */
    .container { max-width: none; padding: 0 120px; }

    .hero {
      position: relative;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      aspect-ratio: 1440/620;
      max-height: 60vh;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 20px;
      text-align: center;
      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 p { position: relative; z-index: 1; }
    .badge {
      display: inline-block; padding: 14px 28px;
      border: 1px solid rgba(117,255,240,.35);
      background: rgba(255,255,255,.04);
      backdrop-filter: blur(12px);
      border-radius: 10px; color: var(--accent);
      font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    }
    .hero h1 {
      font-family: 'Rubik', sans-serif;
      font-size: 72px;
      line-height: 100%; font-weight: 700; letter-spacing: 0;
      color: #E2E2E5;
}
    .hero p {
      max-width: 680px; margin: 0 auto;
      font-family: 'Rubik', sans-serif;
      font-size: 24px; font-weight: 400; line-height: 100%; letter-spacing: 0;
      color: #E2E2E5;
    }
    .section-label {
      display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
    }
    .section-label span { font-family: 'Rubik', sans-serif; font-size: 36px; font-weight: 500; line-height: 100%; letter-spacing: 0; text-transform: none; color: #E2E2E5; white-space: nowrap; }
    .section-label::after { content: none; }
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 50px;
    }
    /* Карточка новости (.news-card, .card-top, .card-title, .card-desc,
   .card-bottom, .read-btn и т.д.) вынесена в общий файл news-card.css,
   используемый также на главной странице. Здесь остаётся только
   специфичная для /news анимация появления при скролле. */
.news-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease,
              border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.news-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.no-news {
      grid-column: 1/-1; text-align: center; padding: 60px 20px;
      color: var(--muted); font-size: 14px;
      background: rgba(255,255,255,.03); border: 1px solid var(--border-default);
      border-radius: var(--radius);
    }

/* Кнопка "наверх" в подвале */
.back-to-top{
  position:absolute;right:24px;bottom:10px;width:62px;height:62px;border-radius:14px;
  background:none;border:none;
  display:flex;align-items:center;justify-content:center;color:var(--muted);
  cursor:pointer;transition:.2s;z-index:2;
}
.back-to-top:hover{color:var(--accent);transform:translateY(-3px);}
.back-to-top svg{display:block;}
@media (max-width:720px){ .back-to-top{right:16px;bottom:0;width:58px;height:58px;} .back-to-top svg{width:42px;height:42px;} .section-label span { font-size: 26px; } }
