﻿:root {
  --bg: #252525;
  --panel: #1a1a1a;
  --panel-2: #141414;
  --text: #ffffff;
  --muted: #d9d9d9;
  --accent: #f30bf3;
  --accent-2: #fb2056;
  --border: #313131;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(25, 25, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.primary-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  gap: 1rem;
}

.primary-nav a {
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.38));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.hero-kicker {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hero h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.15;
  color: var(--accent);
}

.hero h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero-text {
  max-width: 50ch;
  color: #f5f5f5;
}

.hero-actions,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-actions {
  margin-top: 1.2rem;
  gap: 0.75rem;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: center;
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.45)),
    url("/assets/images/ets2_20251004_201014_00.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-content {
  padding: 4.2rem 0 3.4rem;
}

.page-hero .hero-kicker {
  margin-bottom: 0.35rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.page-hero .hero-text {
  margin-top: 0.8rem;
  max-width: 64ch;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn:hover {
  color: #ffffff;
  background: var(--accent-2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.section-intro {
  color: var(--muted);
  margin-top: -0.4rem;
  margin-bottom: 1.5rem;
}

.card-grid,
.news-grid,
.event-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.event-card,
.news-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.card h3,
.news-card h3,
.event-card h3 {
  margin-top: 0;
}

.card {
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: rgba(243, 11, 243, 0.08);
  margin: 0 auto 0.75rem;
  font-size: 1.3rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0;
}

.card .btn,
.card .news-btn,
.card .event-btn {
  align-self: center;
}

.section-alt {
  background: linear-gradient(180deg, rgba(243, 11, 243, 0.1), transparent 65%);
}

.alert {
  border: 1px solid #5a1d5a;
  background: #281828;
  color: #ffe8ff;
  border-radius: 12px;
  padding: 0.9rem;
}

.event-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card--modern {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #090b12;
  border: 1px solid #1b2432;
  height: 100%;
}

.event-hero {
  position: relative;
  min-height: 120px;
  background: #05070d;
  border-bottom: 1px solid #171d2a;
}

.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
}

.event-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.event-banner-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem;
  background: linear-gradient(130deg, rgba(19, 23, 33, 0.95), rgba(40, 16, 40, 0.95));
}

.event-banner-fallback span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.event-banner-fallback strong {
  font-size: 1rem;
  line-height: 1.2;
}

.event-chip-row {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.event-chip {
  background: #06080f;
  border: 1px solid #212a3b;
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
}

.event-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 0.75rem;
  flex: 1;
  padding: 1rem;
}

.event-title {
  margin: 0 0 0.95rem;
  color: var(--accent);
  font-size: clamp(1rem, 1.1vw, 1.45rem);
  line-height: 1.15;
  min-height: 64px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 0.35rem;
  min-height: 0;
}

.event-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.event-key {
  color: #e8e8e8;
  font-weight: 700;
  line-height: 1.35;
}

.event-value {
  color: #ffffff;
  line-height: 1.35;
  word-break: break-word;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.event-subvalue {
  color: #aeb4c0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.event-footer {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid #1d2535;
}

.event-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-weight: 700;
  justify-content: center;
}

.event-stats span {
  white-space: nowrap;
}

.st-ok {
  color: #8effb2;
}

.st-q {
  color: #ff85d3;
}

.st-v {
  color: #9fd5ff;
}

.event-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: center;
}

.event-btn {
  white-space: nowrap;
  border: 1px solid #3b404d;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #ffffff;
  border-radius: 8px;
  font-weight: 800;
  min-height: 46px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.event-btn:hover {
  color: #ffffff;
  border-color: #4c5261;
  background: linear-gradient(90deg, rgba(243, 11, 243, 0.13), rgba(255, 255, 255, 0.03));
}

.event-btn-ghost {
  border: 1px solid #3b404d;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.event-btn-ghost:hover {
  border-color: #4c5261;
  background: linear-gradient(90deg, rgba(243, 11, 243, 0.13), rgba(255, 255, 255, 0.03));
}

.event-card-status {
  justify-content: center;
  padding: 1rem;
}

.news-header {
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
}

.news-header h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
}

.news-header h2 i {
  font-size: 0.95em;
  color: #d0c7d8;
}

.news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: linear-gradient(180deg, #111318, #101217);
  border: 1px solid #2a2e39;
  border-radius: 12px;
  padding: 1.05rem;
}

.news-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.25;
  color: #f1f1f1;
  min-height: 86px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.32rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #886311;
  background: rgba(135, 99, 17, 0.16);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.news-date-badge::before {
  content: "\f133";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.84em;
}

.news-summary {
  margin: 0;
  color: #ceced2;
  line-height: 1.45;
  min-height: 88px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-pin {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(243, 11, 243, 0.14);
  border: 1px solid rgba(243, 11, 243, 0.5);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-btn {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #3b404d;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-btn:hover {
  color: #ffffff;
  border-color: #4c5261;
  background: linear-gradient(90deg, rgba(243, 11, 243, 0.13), rgba(255, 255, 255, 0.03));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #4a1b4a;
  background: #231223;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.team-section {
  min-height: 60vh;
}

.team-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-family: "Montserrat", sans-serif;
  color: var(--accent);
}

.members-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.rank-group {
  border: 1px solid #2a2d36;
  border-radius: 12px;
  background: #101218;
  padding: 1rem;
}

.rank-title {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.member-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.member-card {
  border: 1px solid #2f3443;
  border-radius: 10px;
  background: #0b0e15;
  padding: 1rem;
  display: flex;
  align-items: center;
}

.member-row {
  display: block;
  width: 100%;
  gap: 0;
  align-items: center;
}

.member-avatar-wrap {
  display: none;
}

.member-avatar {
  display: none;
}

.member-avatar-fallback {
  display: none;
}

.member-info {
  min-width: 0;
  width: 100%;
}

.member-name {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: #ffffff;
}

.member-role {
  margin: 0 0 0.35rem;
  color: #d7a9ef;
  font-weight: 700;
}

.member-join {
  margin: 0;
  color: #c7cedc;
  font-size: 0.9rem;
}

.member-status {
  border: 1px solid #2a2d36;
  border-radius: 12px;
  background: #101218;
  padding: 1rem;
}

.partner-section {
  min-height: 70vh;
}

.partner-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}

.partner-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.4rem;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 1.6rem;
}

.partner-info h1,
.partner-info h2,
.partner-cta h2 {
  margin: 0 0 0.8rem;
  color: var(--accent);
}

.partner-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.partner-info h2 {
  margin-top: 1.2rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.partner-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.partner-info li {
  color: #fff;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 1.1rem;
}

.partner-info li i {
  color: var(--accent);
  margin-top: 0.15rem;
}

.partner-info ol {
  margin: 0 0 0.8rem 1.2rem;
  padding: 0;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.45;
}

.partner-info p {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.45;
}

.partner-cta {
  align-self: center;
  text-align: center;
}

.partner-cta p {
  margin: 0 auto 1.2rem;
  max-width: 28ch;
  color: #fff;
}

.partners-api-block h2 {
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.partners-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.partner-card {
  border: 1px solid #2d3340;
  border-radius: 12px;
  background: #101319;
  padding: 0.95rem;
}

.partner-logo {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #303647;
  background: #0b0d12;
  margin: 0 auto 0.9rem;
}

.partner-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
}

.partner-sub {
  margin: 0.25rem 0 0;
  color: #c5cbda;
  font-size: 0.92rem;
  text-align: center;
}

.partner-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.partner-links a {
  border: 1px solid #3a404e;
  border-radius: 8px;
  padding: 0.38rem 0.7rem;
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.partner-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.apply-section {
  min-height: 70vh;
}

.events-page-section {
  min-height: 70vh;
}

.events-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.events-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 1.8rem;
}

.events-intro-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.events-intro-card h2 {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.events-intro-card p {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 40ch;
}

.events-intro-card-wide p {
  max-width: 52ch;
}

.events-intro-card .btn {
  margin-top: auto;
  min-width: 320px;
  justify-content: center;
}

.events-calendar-block h2 {
  margin: 0 0 1rem;
  color: var(--accent);
  text-align: center;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
}

.events-calendar-frame-wrap {
  border: 1px solid #2f3443;
  border-radius: 12px;
  background: #d7dade;
  overflow: hidden;
}

.events-calendar-frame {
  width: 100%;
  height: 680px;
  border: 0;
  display: block;
}

.apply-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.apply-intro {
  text-align: center;
}

.apply-intro h1 {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

.apply-intro p {
  margin: 0 auto;
  max-width: 80ch;
  color: #f2f2f2;
}

.apply-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.8rem;
}

.apply-requirements h2,
.apply-cta h2 {
  margin: 0 0 0.6rem;
  color: var(--accent);
}

.apply-lead {
  margin: 0 0 0.9rem;
  color: #fff;
}

.apply-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.9rem 0 1rem;
}

.apply-divider span {
  color: var(--accent);
  font-weight: 700;
}

.apply-divider::after {
  content: "";
  height: 2px;
  background: #d8d8d8;
  flex: 1;
}

.apply-requirements ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.apply-requirements li {
  color: #fff;
  font-size: 1.12rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.apply-requirements li i {
  color: var(--accent);
  margin-top: 0.15rem;
  width: 1.25rem;
  min-width: 1.25rem;
  text-align: center;
  flex: 0 0 1.25rem;
}

.apply-cta {
  text-align: center;
  align-self: center;
}

.apply-cta p {
  margin: 0 auto 1.25rem;
  max-width: 28ch;
  color: #fff;
}

.apply-discord-btn {
  border-radius: 999px;
  padding: 0.72rem 1.55rem;
}

.apply-benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.apply-benefits article {
  text-align: center;
}

.benefit-icon {
  width: 106px;
  height: 106px;
  border-radius: 999px;
  border: 3px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2.1rem;
  margin-bottom: 0.7rem;
}

.apply-benefits h3 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.25;
}

.site-footer {
  background: #000000;
  border-top: 1px solid #2a2a2a;
}

.footer-grid {
  padding: 2.4rem 0 2.6rem;
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: start;
}

.footer-grid h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: clamp(1.25rem, 1.4vw, 2rem);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.35rem;
}

.footer-grid a,
.footer-grid p,
.footer-grid li {
  color: #ffffff;
  font-size: clamp(0.98rem, 0.9vw, 1.3rem);
  line-height: 1.4;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-brand-head img {
  width: 360px;
  max-width: 100%;
  height: auto;
}

.footer-brand-head p {
  margin: 0;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.25rem, 1.65vw, 2.3rem);
}

.footer-brand-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.1rem;
}

.footer-brand-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  white-space: nowrap;
}

.footer-note p {
  margin: 0;
  max-width: 28ch;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    right: 4%;
    top: calc(100% + 0.3rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #1b1b1b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 220px;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .brand-subtitle {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand-head img {
    width: 96px;
  }

  .apply-main {
    grid-template-columns: 1fr;
  }

  .partner-main {
    grid-template-columns: 1fr;
  }

  .events-intro-grid {
    grid-template-columns: 1fr;
  }

  .events-intro-card .btn {
    min-width: 0;
    width: 100%;
    max-width: 360px;
  }

  .apply-cta {
    text-align: left;
    align-self: stretch;
  }

  .apply-cta p {
    margin: 0 0 1rem;
    max-width: none;
  }

  .apply-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-cta {
    text-align: left;
    align-self: stretch;
  }

  .partner-cta p {
    margin: 0 0 1rem;
    max-width: none;
  }
}

@media (max-width: 1200px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .event-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .events-calendar-frame {
    height: 540px;
  }

  .apply-benefits {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 10px;
  }

  .event-footer {
    align-items: center;
    flex-direction: column;
  }

  .event-actions {
    justify-content: center;
    flex-wrap: nowrap;
  }
}
