/* =============================================================================
   landing/styles.css — лендинг footlivestats.ru
   Дизайн-система та же, что в приложении: тёмная тема, золото #d8b77b,
   эмеральд для действий, радиусы 20/14, системные шрифты.
   Никаких фиолетовых/небесно-синих акцентов (правило проекта 17.11.2026).
   ============================================================================= */

:root {
  --bg: #030712;
  --bg2: #070b16;
  --panel: rgba(15, 23, 42, .62);
  --panel2: rgba(10, 16, 30, .86);
  --stroke: rgba(255, 255, 255, .07);
  --stroke2: rgba(255, 255, 255, .13);
  --text: #f3f4f6;
  --body: #c4cfe0;
  --dim: #9ca3af;
  --dim2: #8791a3;
  --gold: #d8b77b;
  --gold2: #e9d3a4;
  --gold-deep: #c9a465;
  --emerald: #10b981;
  --emerald2: #34d399;
  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1160px;
  /* Шрифты — системные. Google Fonts (Barlow Condensed / Plus Jakarta Sans)
     не имеют базового кириллического сабсета: кириллица всё равно падала в
     fallback, а латиница бралась из веб-шрифта — в одном заголовке («Live-эфир»)
     смешивались два шрифта. Внешний CSS ещё и блокировал первый рендер. */
  --font-head: "Arial Narrow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(16, 185, 129, .12), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(216, 183, 123, .10), transparent 60%),
    linear-gradient(180deg, #030712 0%, #050914 45%, #030712 100%);
  background-color: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.04;
  letter-spacing: .4px;
  font-weight: 700;
}

h2 { font-size: clamp(28px, 4.4vw, 42px); }
h3 { font-size: 21px; }

p { margin: 0 0 14px; }

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #1a1206;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============================== КНОПКИ ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
  text-align: center;
}

.btn-gold {
  color: #241a09;
  background: linear-gradient(135deg, #f0d9ae 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 14px 30px -14px rgba(216, 183, 123, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { color: #1c1406; transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(216, 183, 123, .8); }

.btn-ghost {
  color: var(--gold2);
  background: rgba(216, 183, 123, .06);
  border-color: rgba(216, 183, 123, .42);
}
.btn-ghost:hover { background: rgba(216, 183, 123, .13); border-color: rgba(216, 183, 123, .7); color: #fff; }

.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; margin-top: auto; }

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

/* ============================== ШАПКА ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 18, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(216, 183, 123, .28); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-size: 20px; letter-spacing: .6px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 10px;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }

.header-row > .btn { margin-left: 6px; }

/* ============================== МАТЧ ============================== */

.hero {
  padding: clamp(36px, 7vw, 92px) 0 clamp(34px, 6vw, 72px);
  background: radial-gradient(ellipse at 76% 8%, rgba(16, 185, 129, .08), transparent 58%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  max-width: 13.5ch;
  font-size: clamp(40px, 5.5vw, 78px);
  letter-spacing: -.025em;
  line-height: .98;
  margin-bottom: 20px;
}

.lead { font-size: clamp(16px, 1.55vw, 20px); max-width: 36ch; }
.hero-actions { margin: 24px 0 12px; }
.fineprint { font-size: 13px; color: var(--dim); margin: 0; }

.match-preview { margin: 0; }

/* Границы карточки на исходном снимке 720 × 1495. */
.match-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 650 / 533;
  border-radius: var(--radius-sm);
  background: var(--bg2);
}

.match-crop img {
  position: absolute;
  inset: -45.22% auto auto -4.92%;
  width: 110.77%;
  max-width: none;
}

.match-preview figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-size: 13px;
  text-align: right;
}

.match-preview a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.match-preview a:hover { color: var(--text); }

/* ============================== ВОЗМОЖНОСТИ ============================== */

.features, .plans, .faq, .team { padding: clamp(40px, 6vw, 72px) 0; }
.features, .plans, .team { border-top: 1px solid var(--stroke); }
.features h2 { margin-bottom: clamp(18px, 3vw, 30px); }
.section-lead { max-width: 66ch; color: var(--dim); margin-bottom: 26px; }

.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.feature { min-width: 0; }
.feature h3 { margin-top: 16px; }
.feature p { margin: 0; font-size: 15px; color: var(--dim); }

.feature-preview {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--stroke2);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.feature-preview:hover { border-color: var(--gold); }
.feature-preview img {
  position: absolute;
  top: var(--preview-top);
  left: -4%;
  width: 108%;
  max-width: none;
}
.feature-live { --preview-top: -137%; }
.feature-history { --preview-top: -249%; }
.feature-filters { --preview-top: -65%; }

.team h2 { font-size: clamp(24px, 4vw, 34px); }
.team p { color: var(--dim); max-width: 72ch; margin: 0; }

/* ============================== ТАРИФЫ ============================== */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(170deg, rgba(18, 26, 44, .8), rgba(7, 11, 22, .92));
}

.plan-premium {
  position: relative;
  border-color: rgba(216, 183, 123, .48);
  box-shadow: 0 30px 60px -34px rgba(216, 183, 123, .5), inset 0 0 0 1px rgba(216, 183, 123, .1);
}

.plan-badge {
  position: absolute;
  top: -11px; left: 24px;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d9ae, var(--gold));
  color: #241a09;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan-price {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold2);
  margin-bottom: 18px;
}

.plan-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--body);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--emerald2);
  border-bottom: 2px solid var(--emerald2);
  transform: rotate(-45deg);
}
.plan-list b { color: #fff; }

.plan-note { font-size: 11.5px; color: var(--dim2); margin: 12px 0 16px; }

/* ============================== FAQ ============================== */

.faq-list { display: grid; gap: 10px; max-width: 880px; }

.faq details {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 32, .6);
  overflow: hidden;
}
.faq details[open] { border-color: rgba(216, 183, 123, .34); }

.faq summary {
  position: relative;
  padding: 16px 46px 16px 18px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 0; padding: 0 18px 17px; color: var(--dim); font-size: 14.5px; }
/* Длинный URL RuStore — одно «слово»: без переноса он физически обрезался
   на 320–360px внутри .faq details { overflow: hidden }. */
.faq details p a { overflow-wrap: anywhere; }

/* ============================== ДИСКЛЕЙМЕР ============================== */

.legal { padding: 0 0 clamp(40px, 6vw, 70px); }

.legal-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 183, 123, .3);
  background: linear-gradient(170deg, rgba(216, 183, 123, .07), rgba(7, 11, 22, .8));
}

.legal-mark {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--gold2);
  border: 1px solid rgba(216, 183, 123, .5);
  border-radius: 12px;
  padding: 6px 13px;
  margin: 0;
  line-height: 1;
}

.legal h2 { font-size: 24px; margin-bottom: 8px; }
.legal p { font-size: 14px; color: var(--dim); margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }

/* ============================== ПОДВАЛ ============================== */

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 32px 0 40px;
  background: rgba(2, 5, 12, .7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(216, 183, 123, .25); }
.footer-brand b { display: block; font-family: var(--font-head); font-size: 19px; color: #fff; letter-spacing: .5px; }
.footer-brand span { font-size: 12px; color: var(--dim2); }

.footer-nav { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; justify-self: end; }

.footer-legal {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--dim2);
}

/* ============================== АДАПТИВ ============================== */

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 15ch; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .features-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .header-row { justify-content: space-between; }
  .header-row > .btn { display: none; }
  .nav { margin-left: 0; }
  .nav a { min-height: 44px; padding: 10px 7px; font-size: 13px; }
}

@media (max-width: 460px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .header-row { min-height: 58px; gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-text b { font-size: 17px; letter-spacing: 0; }
  .nav a:first-child { display: none; }
  .hero { padding-top: 25px; }
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: clamp(34px, 9.8vw, 44px); margin-bottom: 12px; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { width: 100%; }

  .legal-box { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .legal-mark { justify-self: start; font-size: 22px; padding: 4px 10px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
