:root {
  --bg: #0e1014;
  --bg-alt: #151923;
  --card: #1a1f2b;
  --line: #262d3d;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --accent: #ff4d2e;
  --accent-2: #ffb02e;
  --radius: 14px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header--scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__img { height: 44px; width: auto; }
.logo--footer .logo__img { height: 52px; }
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  border-radius: 10px;
}
.logo__text { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.logo__text em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); }
.nav__cta {
  padding: 9px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: #ff6043; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slide.active { opacity: 1; visibility: visible; }

.slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,16,20,.92) 20%, rgba(14,16,20,.35));
}

.slide--1 .slide__bg { background-image: linear-gradient(120deg, #1c2333, #3a1f2b 55%, #5d2417); }
.slide--2 .slide__bg { background-image: linear-gradient(120deg, #101c2b, #173047 55%, #0f4d5c); }
.slide--3 .slide__bg { background-image: linear-gradient(120deg, #231a2e, #3c2450 55%, #6b2d5c); }

.slide__content { position: relative; z-index: 2; max-width: 640px; }
.slide__tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.slide__title {
  font-family: var(--font-head);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}
.slide__title span { color: var(--accent); }
.slide__dist {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--accent-2);
  margin: 10px 0 18px;
  letter-spacing: 1px;
}
.slide__text { color: var(--muted); max-width: 460px; margin-bottom: 32px; }

.hero__dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero__dots button {
  width: 36px; height: 4px;
  border: 0;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .3s;
}
.hero__dots button.active { background: var(--accent); }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(14,16,20,.4);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: #ff6043; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,77,46,.35); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  margin-left: 12px;
}
.btn--ghost:hover { background: var(--card); box-shadow: none; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { text-align: center; margin-bottom: 56px; }
.section__label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 8px;
}

/* About */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 18px; }
.about__text strong { color: var(--text); }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
}
.stat__label { color: var(--muted); font-size: 14px; }

/* Cards (team, events, news) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }

.card__pic {
  height: 200px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.card__pic--img {
  background-size: cover;
  background-position: center;
}
.card__pic--fallback {
  background: linear-gradient(135deg, #241a20, #3a1f2b);
}
.card__body { padding: 24px; }
.card__title { font-family: var(--font-head); font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.card__meta { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 14.5px; }
.card__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.card__link:hover { text-decoration: underline; }

/* News */
.article { max-width: 760px; margin: 0 auto; }
.article__date { color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.article__title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); margin: 10px 0 24px; line-height: 1.15; }
.article p { color: var(--muted); margin-bottom: 16px; }
.article__cover {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}
.article__body a { color: var(--accent); }
.article__body a:hover { text-decoration: underline; }
.article h3 { font-family: var(--font-head); margin: 28px 0 12px; }
.article ul { color: var(--muted); padding-left: 22px; margin-bottom: 16px; }

/* Media gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 40px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform .25s;
}
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65));
}
.gallery__item:hover { transform: scale(1.03); }
.gallery__item span {
  position: absolute;
  bottom: 12px; left: 14px;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Forms */
.form { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form__row { margin-bottom: 18px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; }
.form__ok {
  text-align: center;
  padding: 40px 20px;
}
.form__ok .check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(60,200,120,.15);
  color: #3cc878;
  display: grid;
  place-items: center;
  font-size: 30px;
}

/* Contacts */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item__icon {
  width: 48px; height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 20px;
}
.contact-item h4 { font-family: var(--font-head); font-size: 17px; margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 15px; }
.contact-item a:hover { color: var(--accent); }
.map-placeholder {
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.04) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.04) 39px 40px),
    var(--bg-alt);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.map-placeholder .pin { font-size: 44px; display: block; margin-bottom: 8px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #3a1f2b, #5d2417);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px); text-transform: uppercase; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* Page hero (inner pages) */
.page-hero {
  padding: 150px 0 60px;
  background: linear-gradient(120deg, #151923, #241a20);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-family: var(--font-head); font-size: clamp(34px, 5vw, 54px); text-transform: uppercase; }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 560px; }

/* Footer */
.footer { background: #0a0c10; border-top: 1px solid var(--line); margin-top: 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 50px;
}
.footer h4 { font-family: var(--font-head); font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer__grid a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 9px; }
.footer__grid a:hover { color: var(--accent); }
.footer__about { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 13px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about__grid, .contacts__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav.open { transform: none; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 12px; }
  .burger { display: flex; }
  .cards, .cards--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__arrow { display: none; }
  .section { padding: 64px 0; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .form { padding: 26px 20px; }
}
