/* ==========================================================================
   NG体育 Shared Site CSS
   视觉逻辑：赛前数据杂志 · 内容地图 · 深空蓝 + 荧光绿 + 橙红
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --c-bg-dark: #0B1B3A;
  --c-bg-light: #F4F6FA;
  --c-accent: #00E676;
  --c-accent-warm: #FF6B35;
  --c-white: #FFFFFF;
  --c-muted: #B0C4DE;
  --c-text-dark: #1A1A2E;
  --c-border: #2A3A5A;
  --c-glow: rgba(0, 230, 118, 0.4);
  --c-satin: rgba(255, 255, 255, 0.05);

  --font-heading: "Noto Sans SC", "Helvetica Neue", "PingFang SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;

  --fs-hero: 3.5rem;
  --fs-section-title: 2.5rem;
  --fs-subtitle: 1.375rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --container: 1200px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --skew: -5deg;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text-dark);
  background: var(--c-bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: block;
}

img,
svg,
canvas {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(0, 230, 118, 0.25);
  color: var(--c-text-dark);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent);
}

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, var(--fs-hero));
  transform: skewX(-5deg);
}
h2 {
  font-size: clamp(1.5rem, 3.6vw, var(--fs-section-title));
  transform: skewX(-4deg);
}
h3 {
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  transform: skewX(-3deg);
}

h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transform: skewX(-2deg);
}

p {
  margin-bottom: 1rem;
}

small {
  font-size: var(--fs-small);
}

/* ---------- Layout Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-white);
}

.section--light {
  background: var(--c-bg-light);
}

.prose {
  max-width: 68ch;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text-dark);
}

.prose h2,
.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  transform: skewX(-3deg);
}

.prose p {
  margin-bottom: 1.25em;
}

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  transform: skewX(-4deg);
  margin-bottom: var(--space-4);
  color: var(--c-text-dark);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--c-accent), transparent);
  transform: skewX(-20deg);
}

.section-title--center {
  text-align: center;
}

.section-title--center::after {
  margin-inline: auto;
}

.section-title--light {
  color: var(--c-white);
}

.chapter-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--c-accent);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: var(--space-2);
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-bg-dark);
}

.btn--primary:hover {
  background: var(--c-bg-dark);
  color: var(--c-accent);
  box-shadow: 0 8px 30px var(--c-glow);
}

.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--c-white);
}

.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(0, 230, 118, 0.08);
  box-shadow: 0 0 0 4px var(--c-glow);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--c-text-dark);
  transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 0.25s ease;
}

.link-arrow:hover {
  color: var(--c-accent);
  gap: 12px;
}

.link-arrow--dark {
  color: var(--c-white);
}

.link-arrow--dark:hover {
  color: var(--c-accent);
}

/* ---------- Pill & Tag ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 230, 118, 0.12);
  color: var(--c-accent);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny);
  font-weight: 600;
  background: rgba(255, 107, 53, 0.12);
  color: var(--c-accent-warm);
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.tag--green {
  background: rgba(0, 230, 118, 0.12);
  color: var(--c-accent);
  border-color: rgba(0, 230, 118, 0.25);
}

.tag--dark {
  background: rgba(176, 196, 222, 0.08);
  color: var(--c-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Card & Grid ---------- */
.card {
  border-radius: var(--radius-lg);
  background: var(--c-white);
  border: 1px solid rgba(42, 58, 90, 0.15);
  padding: var(--space-4);
  box-shadow: 0 4px 20px rgba(11, 27, 58, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.08);
  transform: translateY(-2px);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: var(--space-2);
  color: var(--c-text-dark);
  transform: none;
}

.card__text {
  color: #4a5568;
  font-size: var(--fs-small);
  line-height: 1.65;
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

/* ---------- Toc Card / Content Map ---------- */
.toc-card {
  position: relative;
  display: block;
  padding: 28px 24px 24px 64px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  border: 1px solid rgba(42, 58, 90, 0.15);
  box-shadow: 0 4px 18px rgba(11, 27, 58, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.toc-card__index {
  position: absolute;
  top: 20px;
  left: 18px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-accent);
  transform: skewX(-10deg);
  line-height: 1;
}

.toc-card__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--c-text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
  transform: none;
}

.toc-card__desc {
  font-size: var(--fs-small);
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 0;
}

.toc-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 8px 30px var(--c-glow);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

/* ---------- Data Components ---------- */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-block__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1.1;
  transform: skewX(-3deg);
}

.stat-block__label {
  font-size: var(--fs-tiny);
  color: var(--c-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-highlight {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--c-accent-warm);
  transform: skewX(-3deg);
  display: inline-block;
  line-height: 1.2;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Charts & Media ---------- */
.visual-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #0B1B3A, #1A2A5A);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: var(--c-muted);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
}

.visual-placeholder::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 120px;
  background: repeating-linear-gradient(45deg, transparent 0px, transparent 12px, rgba(0, 230, 118, 0.08) 12px, rgba(0, 230, 118, 0.08) 16px);
  transform: rotate(-8deg) translateY(-40px);
  opacity: 0.7;
  pointer-events: none;
}

.visual-placeholder > * {
  position: relative;
  z-index: 1;
}

.figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  font-size: var(--fs-tiny);
  color: var(--c-muted);
  background: rgba(11, 27, 58, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ---------- Texture & Decorative ---------- */
.texture-satin {
  position: relative;
}

.texture-satin::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg,
      transparent 0px,
      transparent 30px,
      rgba(0, 230, 118, 0.05) 30px,
      rgba(0, 230, 118, 0.05) 34px,
      transparent 34px,
      transparent 62px,
      rgba(255, 107, 53, 0.04) 62px,
      rgba(255, 107, 53, 0.04) 64px,
      transparent 64px,
      transparent 90px);
  opacity: 0.6;
}

.note-vertical {
  display: inline-block;
  writing-mode: vertical-rl;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  text-transform: uppercase;
  transform: rotate(180deg);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a {
  color: inherit;
  transition: color 0.25s ease;
}

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

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb--light {
  color: var(--c-text-dark);
}

.breadcrumb--light a {
  color: var(--c-text-dark);
}

.breadcrumb--light a:hover {
  color: var(--c-accent);
}

.breadcrumb--light .breadcrumb__sep {
  color: rgba(26, 26, 46, 0.4);
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-warm));
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--c-accent);
  color: var(--c-bg-dark);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-md) 0;
  transition: left 0.3s ease;
}

.skip-link:focus {
  left: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-bg-dark);
  color: var(--c-white);
  border-bottom: 1px solid rgba(42, 58, 90, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 24px,
      rgba(0, 230, 118, 0.03) 24px,
      rgba(0, 230, 118, 0.03) 27px,
      transparent 27px,
      transparent 56px,
      rgba(255, 107, 53, 0.02) 56px,
      rgba(255, 107, 53, 0.02) 58px,
      transparent 58px,
      transparent 120px);
  opacity: 0.7;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-warm) 45%, transparent 100%);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 0;
}

.site-header__top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  gap: 2px;
  letter-spacing: -0.02em;
  color: var(--c-white);
  transition: opacity 0.25s ease;
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-logo__mark {
  color: var(--c-accent);
  transform: skewX(-8deg);
  display: inline-block;
}

.brand-logo__text {
  color: var(--c-white);
  transform: skewX(-4deg);
  display: inline-block;
}

.brand-logo:hover .brand-logo__text {
  color: var(--c-accent);
}

/* ---------- Navigation ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--c-accent);
  background: rgba(0, 230, 118, 0.08);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--c-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-nav__link {
  display: block;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-pill);
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav__link:hover {
  color: var(--c-accent);
  background: rgba(0, 230, 118, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 230, 118, 0.3);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-accent);
  background: rgba(0, 230, 118, 0.1);
  box-shadow: inset 0 -2px 0 var(--c-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--c-bg-dark);
  color: var(--c-white);
  border-top: 1px solid rgba(42, 58, 90, 0.8);
  margin-top: auto;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg,
      transparent 0px,
      transparent 40px,
      rgba(0, 230, 118, 0.02) 40px,
      rgba(0, 230, 118, 0.02) 44px,
      transparent 44px,
      transparent 80px),
    linear-gradient(135deg, rgba(0, 230, 118, 0.04) 0%, transparent 40%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.1fr;
  gap: 48px;
  padding-block: 64px 40px;
}

.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-logo--footer {
  font-size: 2rem;
  margin-bottom: 4px;
}

.site-footer__slogan {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  border-left: 3px solid var(--c-accent);
  padding-left: 12px;
  margin-bottom: 8px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__contact-label {
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
}

.site-footer__contact-label:first-of-type {
  margin-top: 0;
}

.site-footer__contact-item {
  font-size: var(--fs-small);
  color: var(--c-muted);
  transition: color 0.25s ease;
  width: fit-content;
}

.site-footer__contact-item:hover {
  color: var(--c-accent);
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  margin-bottom: 0;
  transform: skewX(-3deg);
}

.site-footer__heading::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--c-accent-warm);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer__links a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer__links a:hover {
  color: var(--c-accent);
  transform: translateX(6px);
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__meta-label {
  display: block;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.site-footer__address,
.site-footer__trust {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
  border-left: 2px solid rgba(0, 230, 118, 0.35);
  padding-left: 14px;
  margin: 0;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-tiny);
  color: var(--c-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 18px;
}

.site-footer__copyright,
.site-footer__icp {
  display: inline-block;
}

/* ---------- Responsive: Tablet & Mobile ---------- */
@media (max-width: 1023px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .site-footer__brand-block {
    grid-column: 1 / -1;
  }

  .site-header__top {
    padding-bottom: 10px;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .site-header__top {
    width: auto;
    flex: 1;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .brand-logo {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 12px;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s 0.4s;
  }

  .site-nav[data-open="true"] {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s;
  }

  .site-nav__link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }

  .site-nav__link + .site-nav__link {
    margin-top: 2px;
  }

  .site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 40px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
