

/* FOUC-guard: до применения style.css (он грузится после fonts.css)
   убираем вспышку системного Times/чёрного фона — показываем тёмный фон. */
html {
  background: #080808;
}

/* =============================================================================
   Р¤Р‘Рљ В«РўР°СЂРіРµС‚В» вЂ” РµРґРёРЅСЃС‚РІРµРЅРЅС‹Р№ С„Р°Р№Р» СЃС‚РёР»РµР№ СЃС‚Р°С‚РёС‡РµСЃРєРѕРіРѕ СЃР°Р№С‚Р°.
   РЎР»РѕРё СЃРІРµСЂС…Сѓ РІРЅРёР·: С‚РѕРєРµРЅС‹ в†’ Р±Р°Р·Р° в†’ СѓС‚РёР»РёС‚С‹ в†’ С‚РёРїРѕРіСЂР°С„РёРєР° в†’ РєР°СЂРєР°СЃ в†’
   Р±Р»РѕРєРё РјР°РєРµС‚Р° в†’ РїСЂРѕС„РёР»Рё РёРіСЂРѕРєРѕРІ в†’ Р°РґР°РїС‚РёРІ в†’ reduced-motion.
   Р Р°Р·РјРµС‚РєР° РіРµРЅРµСЂРёСЂСѓРµС‚СЃСЏ build.mjs: РєР»Р°СЃСЃС‹ Р·РґРµСЃСЊ СЃРѕРІРїР°РґР°СЋС‚ СЃ РЅРёРј РѕРґРёРЅ РІ РѕРґРёРЅ.
   ============================================================================= */

/* ── 1. Дизайн-токены (перенесены из src/index.css 1:1) ───────────────────── */
:root {
  --gold: #c4952a;
  --gold-light: #d9a83c;
  --gold-dark: #9a7520;
  --gold-dim: rgba(196, 149, 42, 0.12);
  --gold-border: rgba(196, 149, 42, 0.3);
  --bg: #080808;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --shade-strong: rgba(8, 8, 8, 0.95);
  --shade-soft: rgba(8, 8, 8, 0.88);
  --header-h: 70px;
  --font-display: 'Oswald', 'Oswald Fallback', sans-serif;
  --font-body: 'Inter', 'Inter Fallback', sans-serif;
}

/* ── 2. База: сброс, фон, фокус, якоря ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* скроллбар виден и в цветах сайта: тёмный трек + золотой ползунок */
  scrollbar-color: rgba(196, 149, 42, 0.55) #101010;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #101010;
  border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 149, 42, 0.5);
  border: 2px solid #101010;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

::-webkit-scrollbar-corner {
  background: #101010;
}

body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

a[href^='mailto:'],
.staff-contact {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

section {
  /* якоря не прячутся под фиксированную шапку */
  scroll-margin-top: var(--header-h);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* skip-link: первый элемент body, виден только при фокусе с клавиатуры */
/* skip-link визуально скрыт, пока не получит фокус с клавиатуры:
   clip-path (а не смещение за экран) — иначе при screenshot-съёмке секций
   элемент попадает в кадр и ломает пиксельную сверку с оригиналом */
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  color: #000;
  background: var(--gold);
  font-weight: 600;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  clip-path: none;
  opacity: 1;
  pointer-events: auto;
}

/* ── 3. Утилиты .u-*: односложные повторы без семантики ──────────────────── */
.u-fw-700 {
  font-weight: 700;
}

.u-mb-0 {
  margin-bottom: 0;
}

.u-team-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 2px;
}

/* ── 4. Типографика проекта ───────────────────────────────────────────────── */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.gold-text {
  color: var(--gold);
}


.gold-border {
  /* запасной класс для золотой рамки: блок-модификаторы (.is-target, .tab-line)
     навешиваются на элементы, где эта граница задаётся в их собственных правилах */
  border-color: var(--gold-border);
}

.gold-line {
  width: 3rem;
  height: 3px;
  background: var(--gold);
}

/* вертикальный ритм шапки секции: 48px до плашки, 12px под ярлыком, 16px над линией */
.mb-12 {
  margin-bottom: 3rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.section-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-label.is-muted {
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ── 5. Каркас: страница, секции, шапка, меню ─────────────────────────────── */
.page {
  min-height: 100vh;
  background: var(--bg);
}

.section {
  padding: 6rem 1.5rem;
}



.sec-head {
  margin-bottom: 3rem;
}

.sec-head .section-label {
  margin-bottom: 0.75rem;
}

.sec-head .gold-line {
  margin-top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  height: var(--header-h);
  background: var(--shade-strong);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1386px;
  margin: 0 auto;
  padding-inline: 0;
  gap: 1rem;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  width: 105px;
  height: 40px;
  gap: 0.75rem;
  text-align: left;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  flex: none;
  /* квадрат как у React (w-10 h-10): файл логотипа прямоугольный,
     cover по центру даёт натуральные пропорции щита */
  aspect-ratio: 1 / 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  width: 54px;
  text-align: center;
}

.brand-fbk {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  padding-right: 0;
}

.nav-link {
  position: relative;
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.season-badge {
  display: none;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.season-label {
  font-size: 0.65rem;
}

.u-tracking {
  letter-spacing: 0.02em;
}

.season-year {
  min-width: 51px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4286;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.burger {
  position: relative;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  transition: background 0.2s;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease, background 0.2s;
}

/* третья полоска короче — как в React (w-4) */
.burger span:nth-child(3) {
  width: 16px;
}

.mobile-menu {
  /* шторка под шапкой: шапка (и бургер = крестик) всегда остаётся доступной */
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(8px);
  /* анимация раскрытия: шторка + каскад пунктов */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.closing {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu button {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s;
}

.mobile-menu.is-open button {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open button:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open button:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open button:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open button:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open button:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open button:nth-child(6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu button {
    transition: none;
  }
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.closing {
  opacity: 0;
  transform: translateY(-12px);
}

.mobile-menu button {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s;
}

.mobile-menu.is-open button {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open button:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.is-open button:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.is-open button:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open button:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.is-open button:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open button:nth-child(6) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu button {
    transition: none;
  }
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu button {
  padding: 1rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-menu button:hover,
.mobile-menu button.active {
  color: var(--gold);
}

/* ── 6. Кнопки ────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
  color: #000;
  background: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* ── 7. Hero (значения из App.tsx: minHeight 100vh, paddingTop 70px, 120% ширины) ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* текстура логотипа на фоне — без затемнения, как в оригинале */
.hero-texture {
  position: absolute;
  inset: 0;
  background: url("../img/target-hero-texture.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.2) 0%, rgba(8, 8, 8, 0.6) 60%, var(--bg) 100%);
}

.hero-diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(196, 149, 42, 0.04) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-inline: 1.5rem;
  text-align: center;
}

.hero-sub {
  display: block;
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  line-height: 1.5;
  text-transform: uppercase;
  text-indent: 0.25em;
}

.hero-logo {
  width: clamp(120px, 20vw, 200px);
  height: clamp(120px, 20vw, 200px);
  margin-bottom: 2rem;
  border-radius: 4px;
  object-fit: cover;
  filter: drop-shadow(0 0 60px rgba(196, 149, 42, 0.4));
}

.hero-title {
  position: relative;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 11.5vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title-gold {
  color: var(--gold);
}

.hero-desc {
  max-width: 28rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── 8. Команда: карточки игроков ─────────────────────────────────────────── */
.divider-top {
  border-top: 1px solid var(--border);
}

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

.player-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.player-card:hover,
.player-card:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
}

/* фото — фиксированные 12rem, как h-48 в оригинале */
.player-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 12rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  border-bottom: 1px solid var(--border);
}

.player-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-photo .photo-base {
  object-position: center;
}

.card-bg {
  object-fit: cover;
  object-position: center;
}

.player-photo .photo-main {
  z-index: 10;
  object-position: center top;
  transition: transform 0.35s;
}

.player-card:hover .photo-main {
  transform: scale(1.04);
}

.player-photo .photo-shade {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.8) 0%, transparent 60%);
}

.pos-row {
  position: relative;
  z-index: 30;
  width: 100%;
  padding: 0 1rem 0.75rem;
}

.pos-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3334;
}

.pos-badge.is-gk {
  color: var(--gold);
  background: rgba(196, 149, 42, 0.2);
  border-color: var(--gold-border);
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.player-about {
  min-width: 0;
}

.pname {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
}

.player-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.player-stats b,
.player-stats .u-fw-700 {
  color: var(--gold);
  font-weight: 700;
}

.player-stats i {
  font-style: normal;
}

.player-num {
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.card-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.player-card:hover .card-accent,
.player-card:focus-visible .card-accent,
.staff-card:hover .card-accent {
  transform: scaleX(1);
}

.card-accent.is-visible {
  transform: scaleX(1);
}

/* ── 9. Руководство: карточки тренерского штаба ───────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.staff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.staff-card:hover,
.staff-card:focus-within {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
}

/* генеральный директор — во всю ширину, остальные парами */
.staff-card-lead {
  grid-column: 1 / -1;
}

.staff-card-lead .staff-photo {
  height: 16rem;
}

.staff-card:hover .staff-photo-main,
.staff-card:focus-within .staff-photo-main {
  transform: scale(1.04);
}

.staff-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 12rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.staff-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-photo .staff-photo-main {
  z-index: 10;
  object-position: top;
  transition: transform 0.35s;
}

.staff-photo .staff-shade {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.88) 0%, transparent 65%);
}

.staff-body {
  flex: 1;
  padding: 0.75rem 1rem;
}

.staff-role {
  margin-bottom: 0.25rem;
  line-height: 1.5;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.staff-name {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.staff-name.is-large {
  font-size: 1rem;
}

.staff-contact-line {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.staff-contact {
  color: var(--gold);
  font-weight: 600;
}

.staff-contact:hover {
  text-decoration: underline;
}

.staff-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  font-size: 1.875rem;
  line-height: 1;
}

.staff-card.is-placeholder {
  justify-content: flex-start;
  padding: 1.5rem;
  gap: 0;
}

.is-placeholder > .staff-icon {
  align-self: flex-start;
  margin: 0 0 1.25rem;
}

.is-placeholder > .staff-role {
  margin-bottom: 0.5rem;
  line-height: 1;
}

.is-placeholder > .staff-name {
  margin-bottom: 0.75rem;
}

.is-placeholder .staff-role.is-muted {
  color: var(--text-muted);
}

.staff-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, transparent 60%, var(--gold-dim));
  pointer-events: none;
}

/* ── 10. Первенство: табы и таблицы ───────────────────────────────────────── */
.tabs {
  display: flex;
  margin-bottom: 2rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.tabs [role='tab'] {
  position: relative;
  flex-shrink: 0;
  padding: 1rem 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.tabs [role='tab']:hover {
  color: var(--text);
}

.tabs [role='tab'][aria-selected='true'] {
  color: var(--gold);
}

.tab-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.tabs [role='tab'][aria-selected='true'] .tab-line {
  transform: scaleX(1);
}

[role='tabpanel'][hidden] {
  display: none;
}

.table-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-color: rgba(196, 149, 42, 0.55) #101010;
  scrollbar-width: thin;
}

.table-header {
  padding: 0 0.75rem 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.table-header.c {
  text-align: center;
}

/* турнирная таблица */
table.comp {
  width: 100%;
  min-width: 36rem;
  table-layout: auto;
  font-size: 1rem;
  border-collapse: separate;
  border-spacing: 0 3px;
  line-height: 1.25;
}

table.comp tbody td {
  padding: 0.75rem;
  line-height: 1.5;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

table.comp tbody tr:hover {
  background: rgba(196, 149, 42, 0.12) !important;
}



/* ширина колонки «Команда» задаётся заголовком th-team — как в оригинале */
table.comp tbody tr.is-target {
  background: rgba(196, 149, 42, 0.1);
}

/* зебра + подсветка строки при наведении */
table.comp tbody tr:hover {
  background: rgba(196, 149, 42, 0.14) !important;
}

.th-num,
table.comp tbody .pos-cell {
  width: 2.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

table.comp thead .th-num {
  padding-left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

table.comp thead .th-team {
  width: auto;
  max-width: none;
  padding-left: 1rem;
}

.th-team,
table.comp tbody .team-cell {
  width: auto;
  min-width: 15rem;
  padding-left: 1rem;
  text-align: left;
  white-space: nowrap;
}

table.comp thead .th-team {
  width: 7rem;
  max-width: none;
  padding-left: 1rem;
  white-space: nowrap;
}



.pos-cell {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
}

.pos-cell.is-top {
  color: var(--gold);
}

.team-cell .u-team-logo {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.team-name {
  display: inline-block;
  white-space: nowrap;
  word-break: normal;
  font-weight: 600;
  vertical-align: middle;
  font-size: 0.875rem;
  line-height: 1.25;
}

.team-name.is-target {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

table.comp tbody .pts-cell {
  color: #fff;
  font-weight: 700;
}

/* матрица результатов: липкие # и Команда, сетка 1px, числа столбцов 1..10 */
/* Матрица результатов — 1:1 по React-разметке:
   # w-12 p-3 (48px) | Команда min-w-56 p-4 (224px) | 10 колонок min-w-20 p-3 (80px)
   | 8 стат-колонок min-w-16 p-3 (64px). Заголовки — table-header (12px,
   letter-spacing 0.15em), ячейки — 16px, высота строки 51px. */
/* Матрица результатов: та же структура, что в React (20 колонок), но
   отступы подобраны так, чтобы на десктопе таблица целиком влезала в
   контейнер (>=1280px) без горизонтального скролла; на 1024 и уже —
   работает .table-scroll со скроллбаром в цветах сайта. */
.matrix {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.matrix th,
.matrix td {
  padding: 0.625rem 0.5rem;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.matrix thead th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.matrix tbody td {
  font-size: 1rem;
}

/* липкие первые две колонки */
.matrix .mnum-h,
.matrix .mnum-cell {
  position: sticky;
  left: 0;
  z-index: 20;
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  padding: 0.625rem 0.375rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
}

.matrix .mnum-cell {
  z-index: 10;
  font-size: 1rem;
}

.matrix .mteam-h,
.matrix .mteam {
  position: sticky;
  left: 3rem;
  z-index: 20;
  min-width: 10.5rem;
  width: auto;
  padding: 0.75rem;
  text-align: left;
  border-right: 1px solid var(--gold-border);
}

.matrix .mteam {
  z-index: 10;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

/* 10 колонок соперников — без фиксированной ширины: ровно под контент */
.matrix .mcol {
  min-width: 3.25rem;
  padding: 0.625rem 0.25rem;
}

.matrix thead .mcol {
  font-size: 0.75rem;
}

.matrix tbody .mcol {
  font-size: 1rem;
}

/* 8 статистических колонок */
.matrix .mstat {
  min-width: 2.5rem;
  padding: 0.625rem 0.375rem;
}

.matrix thead .mstat {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.matrix tbody .mstat {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.matrix .mstat.has-left {
  border-left: 1px solid var(--gold-border);
}

.matrix tbody tr:hover td {
  background: rgba(196, 149, 42, 0.14);
}

.matrix td.is-same {
  background: rgba(255, 255, 255, 0.08);
}

.matrix .score {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.matrix .score.is-hot {
  color: var(--gold);
}

.matrix .dash {
  color: var(--text-muted);
  opacity: 0.45;
}

/* плейофф: три колонки min 980px, gap 40, колонка матчей min 620px */
.po-intro {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.po-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
}

.po-text {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

.po-scroll {
  padding-bottom: 1rem;
  overflow-x: auto;
}

.po-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  min-width: 980px;
}

.po-stage-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.po-rule {
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

.po-stage-matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1.5rem;
  min-height: 620px;
}

.po-match {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.po-match.is-final {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.po-match.is-bronze {
  border-color: var(--gold-border);
}

.po-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.po-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.po-medal {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.po-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
}

.po-team.is-first {
  border-bottom: 1px solid var(--border);
}

.po-team-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.po-team-name.is-target {
  color: var(--gold);
}

.po-logo {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
}

.po-score {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.po-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gold);
}

.po-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ── 11. История и принципы ────────────────────────────────────────── */
.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  min-width: 0;
}

.history-lead {
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.history-text {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.history-text:last-child {
  margin-bottom: 0;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.pillar:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
}

.pillar-num {
  flex-shrink: 0;
  padding-top: 0.125rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.5;
}

.pillar-title {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pillar-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── 12. Партнёры ─────────────────────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  aspect-ratio: 1 / 0.7;
}

.partner-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
}

.partner-name {
  text-align: center;
  color: #888;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.partner-name.is-main {
  color: var(--gold);
}



.partner-pair {
  width: 104px;
  text-align: center;
}

.partner-cat {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
}



/* ── 13. Контакты и футер ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
}

/* иконка — плашка 48×48 в цветах золота, как w-12 h-12 в оригинале */
.contact-card .contact-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 0;
  font-size: 1.25rem;
  line-height: 1;
}

/* подпись под иконкой: 12px, 0.62em, 0.5em снизу (как в оригинале) */
.contact-label {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-size: 0.65rem;
}

.contact-val {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-sub {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.social-block {
  margin-bottom: 0;
}

.social-head {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  margin-top: 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-outline.is-small,
.social-row .btn-outline {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
}

/* ── Футер: 48px 64px, сетка 1 / 3 колонки, gap 40px ─────────────────────── */
.site-footer {
  padding: 3rem 1.5rem;
  background: #050505;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-logo {
  width: 2.5rem;
  height: 2.5rem;
}

.footer-brand .brand-fbk {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-brand .brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
}

.footer-about {
  max-width: 260px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-head {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
}

.footer-head-docs {
  margin-top: 1.5rem;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  transition: color 0.2s;
}

.doc-link:hover {
  color: var(--gold);
}

.doc-link svg {
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
}

.footer-soc {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-soc a {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-soc a:hover {
  color: var(--gold);
}

/* ── 14. Страницы игроков ─────────────────────────────────────────────────── */
.player-profile {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.player-profile-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 1.5rem;
  background: rgba(8, 8, 8, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.profile-back {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-back-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  transition: background 0.2s;
}

.profile-back:hover .profile-back-icon {
  background: var(--gold-dim);
}

.profile-back-text {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.profile-back:hover .profile-back-text {
  color: var(--gold);
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;
}

.profile-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.profile-brand-text .font-display:first-child {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.profile-brand-text .font-display:last-child {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.player-profile-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 45%, rgba(196, 149, 42, 0.12), transparent 34%),
    linear-gradient(135deg, #111 0%, var(--bg) 58%);
}

.profile-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to right, black, transparent 75%);
}

.profile-hero-grid {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 3rem) 1.5rem 2rem;
  gap: 2rem;
}

.profile-portrait {
  position: relative;
  order: 1;
  width: 100%;
  max-width: 36rem;
  height: 52vh;
  min-height: 20rem;
  margin: 0 auto;
}

.profile-number-bg {
  position: absolute;
  bottom: 0;
  left: -0.18em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(14rem, 48vw, 48rem);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 2px rgba(196, 149, 42, 0.12);
}

.profile-photo-glow {
  position: absolute;
  inset: 18% 10% 0;
  background: radial-gradient(circle, rgba(196, 149, 42, 0.22), transparent 66%);
  filter: blur(24px);
}

.profile-photo {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.profile-photo-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  height: 18%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.profile-kicker {
  order: 2;
  margin-bottom: 1.25rem;
}

.profile-summary {
  position: relative;
  z-index: 20;
  order: 3;
}

.profile-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 20vw, 8rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.profile-title span {
  color: var(--gold);
}

.profile-lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 42rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile-fact {
  padding: 1rem 0.65rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile-fact:nth-child(2n) {
  border-right: 0;
}

.profile-fact p {
  min-height: 2rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-fact strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  text-transform: uppercase;
}

.profile-body {
  padding: 2.5rem 1.5rem 5rem;
}

.profile-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

.profile-body-label {
  margin-bottom: 0.75rem;
}

.profile-body .gold-line {
  margin-top: 1.25rem;
}

.profile-quote {
  position: relative;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
}

.profile-quote > span {
  position: absolute;
  top: -0.3em;
  right: 0.2em;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  opacity: 0.16;
}

.profile-quote p {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile-quote footer {
  margin-top: 1.25rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-story {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.profile-story > p + p {
  margin-top: 1.5rem;
}

.profile-story .profile-story-intro {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-highlight {
  margin: 2.5rem 0;
  padding: 1.75rem;
  color: var(--text);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  line-height: 1.75;
}

.profile-highlight-label {
  margin-bottom: 0.75rem;
}

.profile-cta {
  padding: 4rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.9)),
    radial-gradient(circle at center, var(--gold-dark), var(--bg));
  border-top: 1px solid var(--gold-border);
}

.profile-cta-label {
  margin-bottom: 1rem;
}

.profile-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
}

.profile-cta-btn {
  margin-top: 2rem;
}

/* ── 15. Адаптив (мобайл-фёрст, только наращивающие min-width) ────────────── */
@media (min-width: 768px) {
  .section {
    padding-inline: 2.5rem;
  }

  

  .site-footer {
    padding-inline: 2.5rem;
  }

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

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


  .season-badge {
    display: flex;
  }

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

  .staff-grid {
    gap: 1.5rem;
  }

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

  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .po-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .profile-grid-pattern {
    background-size: 64px 64px;
  }

  .profile-hero-grid {
    padding-inline: 2.5rem;
  }

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

  .profile-fact {
    border-bottom: 0;
  }

  .profile-fact:nth-child(2n) {
    border-right: 1px solid var(--border);
  }

  .profile-fact:first-child {
    padding-left: 0;
  }

  .profile-fact:last-child {
    border-right: 0;
  }

  .profile-body {
    padding-inline: 2.5rem;
  }

  .player-profile-nav {
    padding-inline: 2.5rem;
  }

  .profile-cta {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-inline: 4rem;
  }

  


  .desktop-nav {
    display: flex;
  }

  .nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .burger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

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

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

  .staff-card-lead {
    grid-column: auto;
  }

  .staff-card-lead .staff-photo {
    height: 12rem;
  }

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


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

  .site-footer {
    padding-inline: 4rem;
  }

  .profile-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto;
    align-content: center;
    max-width: 1386px;
    margin-inline: auto;
    padding: var(--header-h) 4rem 0;
    column-gap: 4rem;
  }

  .profile-portrait {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 32rem;
    margin: 0;
  }

  .profile-portrait .profile-photo {
    position: absolute;
    inset: 0;
  }

  .profile-kicker {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .profile-summary {
    grid-column: 2;
    grid-row: 2;
  }

  .profile-title {
    font-size: clamp(4rem, 9vw, 8rem);
  }

  .profile-body {
    padding-inline: 4rem;
  }

  .profile-body-grid {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 5rem;
  }

  .profile-cta {
    padding-inline: 4rem;
  }
}

/* Очень широкие экраны: контент держится в 1386px, как в исходнике */
@media (min-width: 1514px) {
  .section,
  .site-footer,
  .profile-cta {
    padding-right: calc((100vw - 1386px) / 2);
    padding-left: calc((100vw - 1386px) / 2);
  }
}

/* Узкие телефоны: сетка «2 в ряд» оправдана, но шрифты не мельчают (< 12px) */
@media (max-width: 359px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 16. Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* крестик: полоски сходятся в центре (53px: 44 - 2*9 + ... см. замеры) */
.burger.open span:nth-child(1) {
  background: #fff;
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  width: 22px;
  background: #fff;
  transform: translateY(-7px) rotate(-45deg);
}

.burger.open {
  background: rgba(255, 255, 255, 0.04);
}
