:root {
  --bg: #0B0F14;
  --bg-2: #0E141B;
  --surface: #121821;
  --line: #1E2733;
  --line-2: #263241;
  --line-3: #3A4757;
  --text: #E6EAF0;
  --text-2: #B4BEC9;
  --muted: #9AA6B2;
  --accent: #0097B2;
  --accent-fill: #0097B2;
  --on-accent: #0B0F14;
  --text-strong: #FFFFFF;
  --input-border: #647182;
  --hover: #18202B;
  --grid: #1B2430;
  --overlay: rgba(11, 15, 20, 0.85);
  --radius: 12px;
  --max: 1200px;
  --pad: 32px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

:root { color-scheme: dark; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F9FB;
    --bg-2: #EEF2F5;
    --surface: #FFFFFF;
    --line: #E1E7ED;
    --line-2: #D2DAE2;
    --line-3: #9AA6B2;
    --text: #0B0F14;
    --text-2: #334050;
    --muted: #56626F;
    --accent: #00758B;
    --text-strong: #000000;
    --input-border: #7D8996;
    --hover: #E8EDF2;
    --grid: #E2E8EE;
    --overlay: rgba(255, 255, 255, 0.88);
    color-scheme: light;
  }
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: block; }
  :root:not([data-theme="dark"]) .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .icon-moon { display: block; }
}
:root[data-theme="light"] {
  --bg: #F7F9FB;
  --bg-2: #EEF2F5;
  --surface: #FFFFFF;
  --line: #E1E7ED;
  --line-2: #D2DAE2;
  --line-3: #9AA6B2;
  --text: #0B0F14;
  --text-2: #334050;
  --muted: #56626F;
  --accent: #00758B;
  --text-strong: #000000;
  --input-border: #7D8996;
  --hover: #E8EDF2;
  --grid: #E2E8EE;
  --overlay: rgba(255, 255, 255, 0.88);
  color-scheme: light;
}
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
.brand .logo-light, .theme-toggle .icon-moon { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: var(--text); }
a:hover { color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent-fill); color: var(--on-accent); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.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; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 80px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.main-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav .nav-comp { display: none; }

/* Competition switch */
.comp-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; flex: none; }
.comp-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--text-2); text-decoration: none; }
.comp-switch a + a { border-left: 1px solid var(--line-2); }
.comp-switch a:hover { color: var(--text); background: var(--hover); }
.comp-switch a[aria-current="page"] { background: var(--accent-fill); color: var(--on-accent); }
.comp-switch-m-wrap { display: none; }
@media (max-width: 999px) {
  .header-row > .comp-switch { display: none; }
  .comp-switch-m-wrap { display: block; padding-top: 16px; }
  .comp-switch-m { display: flex; width: 100%; }
  .comp-switch-m a { flex: 1 1 0; }
}

/* Competition cards (home) */
.comp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comp-card { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.comp-card:hover { border-color: var(--accent); color: var(--text); }
.comp-name { font-family: var(--font-head); font-weight: 700; font-size: 28px; }
.comp-meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.comp-text { color: var(--text-2); max-width: 520px; }
.comp-go { margin-top: 8px; font-weight: 600; color: var(--accent); }
.hero-sub { padding-top: 72px; padding-bottom: 56px; }
.status-line { margin: 0; color: var(--text-2); font-size: 16px; }
.h3.h3-gap { margin-top: 48px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-3); }
.menu-btn { display: none; }
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  min-width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-2);
  font: 600 14px var(--font-body); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent); }

.search-panel { padding-bottom: 16px; }
.search-panel[hidden] { display: none; }
.search-panel label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.search-panel input {
  width: 100%; height: 48px; padding: 0 16px; background: var(--surface); border: 1px solid var(--input-border);
  border-radius: 8px; color: var(--text); font: 16px var(--font-body);
}
.search-results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.search-results a {
  display: block; padding: 10px 14px; border-radius: 8px; background: var(--surface); text-decoration: none;
}
.search-results a:hover { background: var(--hover); }
.search-results .r-title { font-weight: 600; }
.search-results .r-text { display: block; font-size: 14px; color: var(--muted); }
.search-empty { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* Shared */
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.lede { margin: 0; color: var(--text-2); }
.section { padding-top: 112px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--text); }
.btn-link { padding: 0 16px; text-decoration: underline; text-underline-offset: 4px; }
.grid-bg {
  background-color: var(--bg-2);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mono { font-family: var(--font-mono); }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 96px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; max-width: 900px; font-family: var(--font-head); font-weight: 700; font-size: 56px; line-height: 1.08; letter-spacing: -0.02em; }
.hero .lede { font-size: 19px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { flex: 1 1 440px; min-width: 0; }
.visual-box {
  position: relative; height: 440px; border: 1px solid var(--line-2); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; overflow: hidden;
}
.visual-box p { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-align: center; padding: 0 24px; }
.visual-status {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.visual-status b { color: var(--text); font-weight: 500; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-row { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.fact { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.1; }
.fact-label { font-size: 14px; color: var(--muted); }
.fact-countdown { flex: 2 1 340px; }
.countdown { display: flex; align-items: flex-start; gap: 6px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 2.2ch; }
.cd-num { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-sep { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.1; color: var(--accent); }
.cd-label { margin-top: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Vehicle */
.vehicle { display: flex; flex-wrap: wrap; gap: 56px; }
.vehicle-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vehicle-specs { flex: 1 1 520px; min-width: 0; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: 20px 24px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.specs div:nth-child(2n) { border-right: 0; }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 15px; }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px 24px; }
.roadmap li { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line-2); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.25; }
.step-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.step-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }

.spec-list { margin: 0; border-top: 1px solid var(--line-2); }
.spec-list > div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.spec-list dt { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.spec-list dd { margin: 0; font-size: 15px; }
@media (max-width: 720px) { .spec-list > div { grid-template-columns: 1fr; } }

/* Tasks */
.h3 { margin: 0 0 16px; font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.task-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.task-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.task-w { font-family: var(--font-mono); font-size: 15px; color: var(--accent); padding-top: 2px; }
.task-name { font-weight: 600; font-size: 17px; }
.task-list p { margin: 4px 0 0; color: var(--text-2); max-width: 760px; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* Official deadlines */
.deadlines { margin-top: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px 28px; background: var(--bg-2); }
.deadline-list { list-style: none; margin: 0; padding: 0; }
.deadline-list li { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.deadline-list li:first-child { border-top: 0; }
.dl-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.dl-name { font-size: 15px; }
.dl-left { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.dl-left[data-state="soon"], .dl-left[data-state="open"] { color: var(--accent); font-weight: 500; }

/* YouTube, loaded on click */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.yt iframe, .yt-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-btn { padding: 0; cursor: pointer; background: transparent; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: var(--overlay); border: 2px solid var(--text); }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 13px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent var(--text); }
.yt-btn:hover .yt-play, .yt-btn:focus-visible .yt-play { background: var(--accent); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.unit-card {
  flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.unit-card h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 24px; }
.unit-card p { margin: 0; color: var(--text-2); }
.unit-card .unit-lead { margin-top: 8px; font-size: 14px; color: var(--muted); }

.log-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.log-head .section-head { margin-bottom: 0; }
.log-card { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.log-media { height: 180px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.log-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.log-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.log-body h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.3; }
.log-body p { margin: 0; font-size: 15px; color: var(--text-2); }

/* Sponsor */
.sponsor-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sponsor-box .lede { max-width: 640px; }
.sponsor-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sponsor-copy .h2 { font-size: 36px; }
.sponsor-copy .hero-actions { margin-top: 8px; }
.logo-slots { flex: 1 1 400px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.logo-slot { height: 96px; border: 1px dashed var(--line-3); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Join */
.join-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.join-card {
  flex: 1 1 220px; min-width: 0; min-height: 120px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius);
  text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--bg-2);
}
.join-card:hover { border-color: var(--accent); }
.join-card .jt { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.join-card .jc { font-size: 14px; font-weight: 600; }

/* Footer */
.site-footer { margin-top: 112px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-row { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 64px; padding-bottom: 40px; }
.footer-about { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.wordmark { font-family: "Source Sans 3", var(--font-body); font-weight: 700; font-size: 28px; line-height: 1; }
.wordmark span { color: var(--accent); }
.footer-about p { margin: 0; font-size: 14px; color: var(--muted); max-width: 360px; }
.contacts { flex: 2 1 480px; display: flex; flex-wrap: wrap; gap: 32px; }
.contact { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.contact a { font-size: 15px; text-underline-offset: 4px; padding: 6px 0; overflow-wrap: break-word; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.social { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.social a { color: var(--text-2); text-underline-offset: 4px; padding: 10px 0; }
.social a:hover { color: var(--text); }

/* Phone */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 88px; }
  .header-row { gap: 8px; }
  .brand img { height: 48px; }
  .brand { min-height: 40px; }
  .header-tools { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .lang-switch button { min-width: 38px; height: 40px; font-size: 13px; }
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 17px; border-top: 1px solid var(--line); }
  .main-nav .nav-comp { display: block; font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.06em; }
  .comp-cards { grid-template-columns: minmax(0, 1fr); }
  .comp-card { padding: 24px; }
  .comp-name { font-size: 24px; }
  .hero-sub { padding-top: 40px; padding-bottom: 32px; }
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .task-list li { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .hero .lede { font-size: 17px; }
  .btn-link { padding-left: 0; }
  .visual-box { height: 280px; padding-bottom: 40px; }
  .visual-box svg { width: 160px; height: 160px; }
  .visual-box p { font-size: 12px; }
  .facts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 32px; padding-bottom: 32px; }
  .fact-value { font-size: 28px; }
  .fact-countdown { grid-column: 1 / -1; }
  .cd-num, .cd-sep { font-size: 32px; }
  .h2 { font-size: 30px; }
  .section { padding-top: 80px; }
  .section-head { margin-bottom: 28px; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs div { border-right: 0; padding: 16px 20px; }
  .specs div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .specs div:last-child { border-bottom: 0; }
  .unit-card { padding: 24px; }
  .log-media { height: 140px; }
  .log-body { padding: 20px; }
  .sponsor-box { padding: 24px; gap: 16px; }
  .sponsor-copy .h2 { font-size: 28px; }
  .sponsor-box .hero-actions, .sponsor-box .btn { width: 100%; justify-content: center; }
  .logo-slot { height: 72px; }
  .join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .join-card { min-height: 0; padding: 18px; gap: 10px; }
  .join-card .jt { font-size: 18px; }
  .site-footer { margin-top: 80px; }
  .footer-row { padding-top: 48px; gap: 32px; }
  .contacts { gap: 20px; }
  .deadlines { padding: 20px; }
  .deadline-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-name { grid-column: 1 / -1; grid-row: 2; }
}

/* Windows high contrast mode */
@media (forced-colors: active) {
  .lang-switch button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .btn-primary { border: 1px solid ButtonText; }
  .yt-play { forced-color-adjust: none; }
}

.hero-line { max-width: 100%; stroke: var(--accent); }
.hero-line circle { fill: var(--accent); }
.visual-box svg { stroke: var(--line-3); }
.visual-box svg rect { stroke: var(--accent); }
.theme-toggle svg { display: block; flex: none; }
.link-strong { font-weight: 600; text-underline-offset: 4px; padding: 12px 0; }

/* 404 */
.nf { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-left: auto; margin-right: auto; }
.nf h1 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 48px; line-height: 1.1; }
@media (max-width: 720px) { .nf { padding-top: 56px; padding-bottom: 56px; } .nf h1 { font-size: 34px; } }

/* Team */
.team-groups { display: flex; flex-direction: column; gap: 40px; }
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.member .avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--line-3); margin-bottom: 8px; }
.member .avatar svg { width: 56px; height: 56px; }
.member img.avatar { object-fit: cover; }
.m-name { font-weight: 600; font-size: 16px; }
.m-role { font-size: 14px; color: var(--muted); }
.member-slot { border-style: dashed; background: transparent; }
.member-slot .m-name, .member-slot .m-role { color: var(--muted); font-weight: 500; }
@media (max-width: 720px) {
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .member { padding: 18px 10px; }
  .member .avatar { width: 72px; height: 72px; }
  .member .avatar svg { width: 42px; height: 42px; }
}

/* Narrow phones */
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .brand img { height: 44px; }
}
@media (max-width: 340px) {
  .brand img { height: 36px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-switch button { min-width: 34px; height: 36px; }
  .header-tools { gap: 4px; }
}
