/* ═══════════════════════════════════════════════════════════════════════════
   FK KETERA — бренд-система. Цвета клуба: жёлтый + фиолетовый, голубой лого «k».
   Настроение: спортивный постер на почти-чёрном. Space Grotesk + Space Mono.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-grotesk: "Archivo", system-ui, sans-serif;   /* легаси-алиасы */
  --font-mono: "Archivo", system-ui, sans-serif;
  --bg: #fdfcf9;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-line: rgba(23, 21, 28, 0.1);
  --ink: #191722;
  --muted: rgba(25, 23, 34, 0.66);
  --faint: rgba(25, 23, 34, 0.45);

  --purple: #3e3fa5;
  --purple-2: #5658c9;
  --yellow: #fce500;
  --yellow-deep: #ecd400;
  --blue: #2593e0;
  --win: #0c9e5c;
  --loss: #e5484d;
  --draw: #c79a00;

  --grad: linear-gradient(105deg, var(--purple) 0%, var(--yellow) 130%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Фоновое свечение всего сайта — статичные пурпурно-жёлтые пятна (ноль GPU). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 38% at 88% 0%, rgba(255, 210, 30, 0.16), transparent 70%),
    radial-gradient(55% 42% at 0% 18%, rgba(62, 63, 165, 0.08), transparent 70%);
  pointer-events: none;
}
/* Зерно поверх — фактура постера. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ─── Типографика ─────────────────────────────────────────────────────────── */
.kicker {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14120a;
  background: var(--yellow);
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

h1, h2, h3 { line-height: 1.02; letter-spacing: 0; font-weight: 400; font-family: var(--font-display); }

.display {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  color: var(--purple);
}

/* ─── Кнопки ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: #191400; box-shadow: 0 6px 18px rgba(255,184,0,0.35); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--panel-line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

/* ─── Навбар ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(253, 252, 249, 0.85);
  border-bottom: 1px solid var(--panel-line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: #14120a;
  font-family: var(--font-display);
  font-size: 20px;
}
.brand-name { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 4px; font-weight: 700; font-size: 12px; }
.lang a { padding: 4px 7px; border-radius: 6px; color: var(--faint); }
.lang a.active { background: rgba(62,63,165,0.1); color: var(--purple); }
.nav-burger { display: none; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(60px, 11vw, 130px) 0 clamp(50px, 8vw, 90px);
  overflow: hidden;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero .display { margin: 20px 0 0; color: var(--purple); }
.hero .display::after {
  content: "";
  display: block;
  width: 120px;
  height: 10px;
  background: var(--yellow);
  margin-top: 26px;
}
.hero-tagline {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 620px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* гигантская призрачная «K» на фоне героя */
.hero-ghost { display: none; }

/* полоса статистики под героем */
.hero-stats {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(25, 23, 34, 0.06);
}
.stat-cell { padding: 22px 24px; border-right: 1px solid var(--panel-line); }
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--purple);
  line-height: 1;
}
.stat-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

/* ─── Секции ──────────────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 100px) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 42px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 460px; margin-top: 12px; }
.section-line { border-top: 1px solid var(--panel-line); }

/* ─── Команды ─────────────────────────────────────────────────────────────── */
.teams-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.team-card {
  position: relative;
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  padding: 28px;
  background: var(--bg-2);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.team-card { box-shadow: 0 10px 28px rgba(25,23,34,0.05); }
.team-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 16px 36px rgba(62,63,165,0.12); }
.team-age {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  color: #14120a;
  background: var(--yellow);
  padding: 4px 10px;
  display: inline-block;
  letter-spacing: 0.08em;
}
.team-name { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; margin: 10px 0 8px; }
.team-blurb { color: var(--muted); font-size: 15px; }
.team-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-size: 13px; }
.team-comp { color: var(--faint); font-weight: 500; }
.team-arrow { color: var(--purple); font-weight: 700; }
.team-bignum {
  position: absolute;
  right: 14px; bottom: 2px;
  font-family: var(--font-display);
  font-size: 7.5rem; line-height: 1;
  color: rgba(62,63,165,0.07);
  pointer-events: none;
}

/* ─── Результаты / матчи ──────────────────────────────────────────────────── */
.results-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.match-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--panel-line);
}
.match-date { font-size: 12px; font-weight: 600; color: var(--faint); line-height: 1.3; }
.match-teams { font-size: 15px; }
.match-teams b { font-weight: 600; }
.match-loc { font-size: 12px; color: var(--faint); }
.match-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(25, 23, 34, 0.05);
  min-width: 58px;
  text-align: center;
}
.match-score.win { color: var(--win); }
.match-score.loss { color: var(--loss); }
.match-score.draw { color: var(--draw); }
.match-score.tbd { color: var(--faint); font-size: 13px; letter-spacing: 0.08em; }
.badge-ha { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--panel-line); color: var(--faint); }

/* ─── Топ-бомбардиры ──────────────────────────────────────────────────────── */
.scorers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scorer {
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 20px;
  background: var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.scorer { box-shadow: 0 8px 24px rgba(25,23,34,0.05); }
.scorer:hover { transform: translateY(-3px); border-color: var(--yellow-deep); }
.scorer-name { font-weight: 600; font-size: 17px; margin-top: 12px; }
.scorer-nums { display: flex; gap: 18px; margin-top: 12px; }
.scorer-num b { font-family: var(--font-display); font-size: 1.9rem; color: var(--yellow); display: block; line-height: 1; }
.scorer-num span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Аватар-монограмма (fallback без фото) ──────────────────────────────────*/
.mono-av {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  background: var(--yellow);
  color: #14120a;
  font-family: var(--font-display);
}

/* ─── Карточка игрока (страница) — FIFA-стиль ────────────────────────────────*/
.pcard-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.pcard {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(165deg, #33348c 0%, #3e3fa5 65%, #5658c9 100%);
  border: none;
  border-top: 8px solid var(--yellow);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 48px rgba(62, 63, 165, 0.3);
}
.pcard::before { content: none; }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.pcard-num { font-family: var(--font-display); font-size: 4rem; color: var(--yellow); line-height: 0.9; }
.pcard-pos { text-align: right; }
.pcard-pos b { display: block; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.pcard-pos span { font-size: 11px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; }
.pcard-photo {
  margin: 18px auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 3.4rem; font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.18);
  border: 3px solid var(--yellow);
  position: relative; z-index: 1;
}
.pcard-name { text-align: center; position: relative; z-index: 1; }
.pcard-name .fn { color: rgba(255,255,255,0.78); font-size: 1.1rem; }
.pcard-name .ln { font-family: var(--font-display); font-size: 2.2rem; text-transform: uppercase; letter-spacing: 0.02em; }
.pcard-cap { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #191400; background: var(--yellow); padding: 4px 12px; border-radius: 100px; }

/* сетка статов игрока */
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pstat {
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 22px;
  background: var(--panel);
}
.pstat b { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; display: block; }
.pstat.hl b { color: var(--purple); }
.pstat span { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px; display: block; }

/* ─── Roster / squad list ────────────────────────────────────────────────────*/
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.roster-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.roster-item:hover { transform: translateY(-2px); border-color: var(--purple); }
.roster-num { font-weight: 700; font-size: 13px; color: var(--faint); width: 22px; }
.roster-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.roster-pos { font-size: 11px; color: var(--purple); font-weight: 700; letter-spacing: 0.06em; }

/* ─── Спонсоры ────────────────────────────────────────────────────────────── */
.sponsor-main {
  border: 2px solid var(--yellow);
  box-shadow: 0 12px 32px rgba(255, 184, 0, 0.12);
  border-radius: 22px;
  padding: 40px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sponsor-main .s-name { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; margin-top: 10px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.sponsor-cell {
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 26px 18px;
  text-align: center;
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  transition: border-color 0.25s, color 0.25s;
}
.sponsor-cell:hover { border-color: var(--purple); color: var(--purple); }

/* ─── Форма «Prisijunk» ───────────────────────────────────────────────────── */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.join-form { display: grid; gap: 14px; }
.field label { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(62,63,165,0.14); }
.field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 13px; margin-top: 4px; }
.form-note.ok { color: var(--win); }
.form-note.err { color: var(--loss); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── Футер ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--panel-line); padding: 56px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--panel-line); display: grid; place-items: center; color: var(--muted); transition: 0.2s; }
.footer-social a:hover { border-color: var(--purple); color: var(--purple); }
.footer-made { font-size: 13px; color: var(--faint); margin-top: 28px; }
.footer-made a { color: var(--purple); font-weight: 600; }
.footer-bottom { margin-top: 28px; font-size: 12px; color: var(--faint); }

/* ─── Breadcrumb / back ──────────────────────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--purple); }

/* ─── Адаптив ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .results-cols { grid-template-columns: 1fr; gap: 32px; }
  .join { grid-template-columns: 1fr; gap: 28px; }
  .pcard-wrap { grid-template-columns: 1fr; gap: 28px; max-width: 380px; }
  .scorers { grid-template-columns: repeat(2, 1fr); }
  .hero-ghost { display: none; }
}
@media (max-width: 620px) {
  .teams-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--panel-line); }
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ДИЗАЙН-ПАСС (ui-ux-pro-max): доступность, табличные цифры, микро-отклик,
   FIFA-глянец, empty-states. Переопределяет базу по каскаду.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Табличные цифры — числа не «прыгают» по ширине */
.stat-num, .match-score, .pstat b, .scorer-num b, .pcard-num,
.match-date, .team-comp, .mono-num { font-variant-numeric: tabular-nums; }

/* Видимый фокус для клавиатуры (accessibility CRITICAL) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible,
.team-card:focus-visible, .scorer:focus-visible, .roster-item:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Тактильный press-отклик */
.btn:active, .team-card:active, .scorer:active, .roster-item:active,
.sponsor-cell:active { transform: scale(0.97); }

/* Тач-таргеты ≥44px */
.footer-social a { width: 44px; height: 44px; }
.lang a { padding: 8px 10px; }

/* W / L / D — различие не только цветом (дальтоники) */
.res-letter {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  margin-right: 10px; flex-shrink: 0;
}
.res-letter.win { background: rgba(12,158,92,0.13); color: var(--win); }
.res-letter.loss { background: rgba(229,72,77,0.12); color: var(--loss); }
.res-letter.draw { background: rgba(255,210,30,0.25); color: #8a6d00; }
.res-letter.tbd { background: rgba(25,23,34,0.05); color: var(--faint); }
.match-teams-wrap { display: flex; align-items: center; }

/* FIFA-карточка: диагональный глянец + акцент рамки по позиции */
.pcard { --pos-accent: var(--yellow); }
.pcard.pos-GK  { --pos-accent: #7fd4ff; }
.pcard.pos-DEF { --pos-accent: #7dffc4; }
.pcard.pos-MID { --pos-accent: #ffd21e; }
.pcard.pos-FWD { --pos-accent: var(--yellow); }
.pcard-num, .pcard-pos b { color: var(--pos-accent); }
.pcard::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.07) 45%, transparent 60%);
  pointer-events: none;
}
.pcard-photo { border-color: var(--pos-accent); }

/* Empty-states — когда директор ещё не вбил данные */
.empty {
  border: 1px dashed var(--panel-line);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Уважение к prefers-reduced-motion (+ анти-лаг) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Новости (публичные) ─────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card {
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  padding: 24px;
  background: var(--panel);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s var(--ease), border-color .25s;
}
.news-card { box-shadow: 0 8px 24px rgba(25,23,34,0.05); }
.news-card:hover { transform: translateY(-3px); border-color: var(--purple); }
.news-card h3 { font-size: 1.25rem; text-transform: uppercase; }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; }
.article-body p { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 18px; }

/* ─── Админка ─────────────────────────────────────────────────────────────── */
.admin-nav {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--panel-line); border-radius: 14px;
  padding: 12px 18px; background: var(--panel);
  font-size: 14px;
}
.admin-nav a { color: var(--muted); }
.admin-nav a.on { color: var(--yellow); font-weight: 600; }
.admin-nav a:hover { color: var(--ink); }
.admin-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--panel-line); padding: 16px 4px;
}
.admin-card { border: 1px solid var(--panel-line); border-radius: 16px; padding: 20px; background: var(--panel); }
.admin-input {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px;
  padding: 9px 12px; color: var(--ink); font-family: inherit; font-size: 14px;
}
.admin-input:focus { outline: none; border-color: var(--purple-2); }
.mono-dim { font-size: 12px; color: var(--faint); }
.score-in { width: 58px; text-align: center; font-size: 18px; font-weight: 800; }
.num-in { width: 54px; text-align: center; }
.stat-table-wrap { overflow-x: auto; border: 1px solid var(--panel-line); border-radius: 16px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th { font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px; border-bottom: 1px solid var(--panel-line); }
.stat-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.05); text-align: center; white-space: nowrap; }
.stat-table tr:last-child td { border-bottom: none; }
.stat-table .row-off td { opacity: .35; }
.stat-table .row-off td:first-child, .stat-table .row-off td:nth-child(2) { opacity: 1; }
.stat-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--yellow); }

/* ─── Рекорд-бар команды + форма ─────────────────────────────────────────── */
.record-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(25, 23, 34, 0.06);
  margin-bottom: 48px;
}
.record-cell { padding: 20px 18px; border-right: 1px solid var(--panel-line); }
.record-cell:last-child { border-right: none; }
.record-cell b { font-family: var(--font-display); font-size: 2rem; line-height: 1; display: block; color: var(--ink); }
.record-cell.win b { color: var(--win); }
.record-cell.draw b { color: var(--draw); }
.record-cell.loss b { color: var(--loss); }
.record-cell span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 8px; display: block; }
.form-letters { display: flex; gap: 5px; }
.form-cell .res-letter { margin-right: 0; }
.team-sub { font-size: 1.1rem; text-transform: uppercase; color: var(--purple); margin: 8px 0 18px; }
@media (max-width: 620px) {
  .record-cell { padding: 14px 12px; }
  .record-cell b { font-size: 1.5rem; }
}

/* ─── Фото игроков (из Telegram, uploads/players) ─────────────────────────── */
.mono-av { overflow: hidden; }
.mono-av img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.pcard-photo { overflow: hidden; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ─── Логотип клуба ───────────────────────────────────────────────────────── */
.brand-logo { height: 44px; width: auto; display: block; }
.brand-logo-lg { height: 72px; }

/* ─── Питч-секция (воронка «prisijunk») ──────────────────────────────────── */
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pitch-card {
  position: relative;
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  padding: 30px 26px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(25,23,34,0.05);
  overflow: hidden;
}
.pitch-card h3 { font-size: 1.35rem; text-transform: uppercase; margin: 14px 0 10px; color: var(--ink); }
.pitch-card p { color: var(--muted); font-size: 15px; }
.pitch-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--yellow); color: #191400;
  font-family: var(--font-display); font-size: 1.5rem;
}
@media (max-width: 780px) { .pitch-grid { grid-template-columns: 1fr; } }

/* ─── Видео (lite-YouTube) ───────────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #191722;
  box-shadow: 0 10px 28px rgba(25,23,34,0.1);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform .35s var(--ease); }
.video-card:hover img { transform: scale(1.05); }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: #191400; font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform .25s var(--ease);
  pointer-events: none;
}
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.12); }
.video-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  pointer-events: none;
}

/* ─── Мячик ──────────────────────────────────────────────────────────────── */
#kball {
  position: fixed;
  top: 0; left: 0;
  z-index: 40;   /* ниже навбара (50): не перехватывает шапку */
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(25,23,34,0.25));
}
#kball:active { cursor: grabbing; }

/* ─── Scroll-reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ─── Слой под PNG-вырезки игроков в hero (заполнится позже) ─────────────── */
.hero-people { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; pointer-events: none; }
.hero-people img { position: absolute; bottom: 0; max-height: 92%; }

/* ─── Обложки новостей + галерея + лайтбокс + пейджер ────────────────────── */
.news-card.has-cover { padding: 0; overflow: hidden; }
.news-card.has-cover .mono-dim, .news-card.has-cover h3, .news-card.has-cover p, .news-card.has-cover .team-arrow {
  margin-left: 24px; margin-right: 24px;
}
.news-card.has-cover .mono-dim { margin-top: 18px; }
.news-card.has-cover .team-arrow { margin-bottom: 20px; }
.news-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.article-cover { width: 100%; border-radius: 18px; margin-bottom: 28px; box-shadow: 0 12px 32px rgba(25,23,34,0.12); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 36px; }
.gallery-item {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; cursor: zoom-in;
  transition: transform .25s var(--ease);
}
.gallery-item:hover { transform: scale(1.03); }
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 13, 25, 0.92);
  display: grid; place-items: center;
  cursor: zoom-out;
}
#lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--panel-line); border-radius: 10px;
  font-weight: 700; color: var(--muted);
}
.pager a.on { background: var(--yellow); color: #191400; border-color: transparent; }
.pager a:hover:not(.on) { border-color: var(--purple); color: var(--purple); }

/* ─── Бургер-меню (мобилка) ──────────────────────────────────────────────── */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-panel { display: none; }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-open .nav-panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--panel-line);
    box-shadow: 0 18px 32px rgba(25,23,34,0.12);
    padding: 8px 0;
  }
  .nav-panel a {
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    border-top: 1px solid var(--panel-line);
  }
  .nav-panel a:first-child { border-top: none; }
  .nav { position: sticky; }
  .nav-inner { position: relative; }
}

/* ─── Доступность: видимый фокус ─────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Газон под мяч (наклонная кромка, стрижка полосами) ─────────────────── */
body.has-pitch { padding-bottom: 40px; }
.pitch-grass {
  position: fixed; left: 0; right: 0; bottom: 0; height: 34px;
  z-index: 39; pointer-events: none;
  background-color: #2f9d46;
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.06) 0 46px, rgba(0,0,0,0.06) 46px 92px);
  /* наклон верхней кромки: слева выше (0%), справа ниже (≈39%) */
  clip-path: polygon(0 0, 100% 41%, 100% 100%, 0 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.16);
}
