:root {
  --bg: #08111f;
  --bg-soft: #101b31;
  --panel: rgba(15, 26, 45, 0.82);
  --panel-strong: rgba(13, 21, 38, 0.96);
  --text: #edf4ff;
  --muted: #b3c3dd;
  --primary: #d13a49;
  --primary-2: #ff8c5a;
  --gold: #f4c96b;
  --line: rgba(255,255,255,0.1);
  --shadow: 0 24px 64px rgba(0,0,0,0.35);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(62, 133, 255, 0.22), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(255, 140, 90, 0.2), transparent 25%),
    linear-gradient(180deg, #0a1222 0%, #08101d 55%, #050a12 100%);
  color: var(--text);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 11, 20, 0.7);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(209,58,73,0.28));
}
.brand-copy small {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.65rem;
  margin-bottom: 2px;
}
.brand-copy strong {
  display: block;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 12px 16px;
  color: var(--muted);
  border-radius: 999px;
  transition: 0.2s ease;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn,
button.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #19070a;
  background: linear-gradient(135deg, var(--gold), #fff0b4 45%, var(--primary-2));
  box-shadow: 0 12px 30px rgba(244, 201, 107, 0.3);
}
.btn-secondary {
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1.35rem;
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 340px);
  background: rgba(5, 10, 18, 0.98);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .24s ease;
  z-index: 80;
  padding: 24px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
  z-index: 70;
}
.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}
.drawer-nav { display: grid; gap: 10px; margin-top: 20px; }
.drawer-nav a {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-weight: 700;
}
.drawer-nav a.active,
.drawer-nav a:hover { color: white; background: rgba(209,58,73,0.16); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 34px;
}
.hero-shell,
.page-shell {
  position: relative;
  display: grid;
  gap: 28px;
}
.hero-card,
.page-banner,
.section-card,
.info-card,
.member-card,
.event-card,
.gallery-card,
.form-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}
.hero-copy {
  padding: clamp(28px, 5vw, 58px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 201, 107, 0.26);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.9rem;
  background: rgba(244, 201, 107, 0.08);
}
.hero h1,
.page-banner h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  line-height: 0.93;
  letter-spacing: -0.04em;
}
.hero h1 span,
.page-banner h1 span {
  display: block;
  background: linear-gradient(135deg, #ffffff 10%, var(--gold) 42%, #ff8b77 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p,
.page-banner p,
.card-muted,
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}
.hero-actions,
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-side {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(160deg, rgba(209,58,73,0.16), rgba(62,133,255,0.1)),
    url('../images/hero-scene.svg') center/cover no-repeat;
  min-height: 560px;
}
.hero-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,0.08), rgba(6,10,18,0.42));
}
.floating-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  width: min(320px, calc(100% - 48px));
  padding: 20px;
  border-radius: 24px;
  background: rgba(9, 17, 31, 0.82);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
}
.floating-panel strong { display: block; font-size: 1.1rem; margin-bottom: 8px; }
.floating-panel p { margin: 0; color: var(--muted); }

.stats-grid,
.cards-3,
.members-grid,
.events-grid,
.gallery-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.members-grid { grid-template-columns: repeat(3, 1fr); }
.events-grid { grid-template-columns: repeat(2, 1fr); }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.footer-grid { grid-template-columns: 1.3fr .8fr .8fr; }

.stat-card,
.info-card,
.member-card,
.event-card,
.gallery-card,
.form-card {
  padding: 24px;
}
.stat-card strong {
  display: block;
  font-size: 2rem;
  color: white;
}
.stat-card span,
.info-card p,
.member-meta,
.event-meta,
.gallery-card p { color: var(--muted); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}
.section-head p { margin: 0; color: var(--muted); max-width: 700px; }

.info-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(209,58,73,0.22), rgba(244,201,107,0.16));
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.5rem;
}
.info-card h3,
.member-card h3,
.event-card h3,
.gallery-card h3,
.form-card h3 { margin: 0 0 10px; }

.page-banner {
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  position: relative;
  min-height: 300px;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 10, 18, 0.92) 18%, rgba(6, 10, 18, 0.48) 56%, rgba(6,10,18,0.18) 100%),
    var(--banner-image) center/cover no-repeat;
}
.page-banner > * { position: relative; z-index: 1; }
.page-banner.compact h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.page-banner .mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.mini-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
}

.member-card {
  display: grid;
  gap: 16px;
}
.member-avatar {
  aspect-ratio: 1/1;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(209,58,73,0.24), rgba(57,114,223,0.22));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.tag { color: var(--gold); }

.event-card,
.gallery-card {
  overflow: hidden;
}
.card-media {
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.timeline {
  display: grid;
  gap: 16px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
}
.timeline-time {
  color: var(--gold);
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.field,
textarea,
input,
select {
  width: 100%;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field.full { grid-column: 1 / -1; }
.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.site-footer {
  margin-top: 44px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.16);
}
.footer-col p,
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: white; }
.footer-links { display: grid; gap: 10px; }
.copyright {
  margin-top: 26px;
  color: #93a6c4;
  font-size: 0.92rem;
}

.section-spacing { padding: 18px 0 10px; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 1040px) {
  .hero-card,
  .cards-3,
  .members-grid,
  .gallery-grid,
  .footer-grid,
  .stats-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-card { grid-template-columns: 1fr; }
  .hero-side { min-height: 420px; }
}

@media (max-width: 820px) {
  .nav-links,
  .actions .btn-secondary,
  .actions .btn-primary.desktop-only {
    display: none;
  }
  .menu-toggle { display: inline-grid; place-items: center; }
  .stats-grid,
  .cards-3,
  .members-grid,
  .events-grid,
  .gallery-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
  .timeline-item { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .container { width: min(calc(100% - 20px), var(--content)); }
  .header-inner { min-height: 74px; }
  .brand-mark { width: 48px; height: 48px; }
  .hero-copy,
  .page-banner,
  .stat-card,
  .info-card,
  .member-card,
  .event-card,
  .gallery-card,
  .form-card { padding: 20px; }
  .hero-side { min-height: 360px; }
  .floating-panel {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 16px;
  }
}
