/* Значения взяты с оригинала (viewport 1280×720), см. план, «Метрики оригинала». */

@font-face {
  font-family: 'League Spartan';
  src: url('/fonts/LeagueSpartan-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'League Spartan';
  src: url('/fonts/LeagueSpartan-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --blue: #0544a4;
  --blue-accent: #1d60c4;
  --text: #5e5e5e;
  --text-dark: #161616;
  --grey-light: #e6e6ea;
  --grey-bg: #f7f7f7;
  --header-h: 84px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Колонка на всю высоту окна: пока содержимого мало, футер всё равно стоит
   у нижнего края, а не висит посреди экрана. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Helvetica, arial, sans-serif;
  font-size: 16px; line-height: 24px; color: var(--text);
  background: #fff;
}
/* Забирает всю свободную высоту — за счёт этого футер и оказывается внизу. */
main { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-footer { flex-shrink: 0; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Шапка ---------------------------------------------------------------- */
.site-header { 
  /* 2026-09-03 */
  /* background: var(--blue);  */
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { display: block; height: 52px; width: auto; }

.nav { margin-left: auto; }
.nav-list, .sub-list, .drawer-list, .drawer-sub { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-block; padding: 8px 0;
  font-size: 16px; text-decoration: none; cursor: pointer;

  /* 2026-09-03 color: #fff;  */
  color: var(--blue); 
}
.nav-link:hover, .nav-link.is-active { color: var(--grey-light); }

.sub-list {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.24); border-radius: 4px;
  padding: 8px 0; display: none; z-index: 20;
}
.nav-item.has-sub:hover .sub-list { display: block; }
.sub-link {
  display: block; padding: 8px 20px;
  font-size: 16px; color: var(--text-dark); text-decoration: none; white-space: nowrap;
}
.sub-link:hover { background: var(--grey-bg); color: var(--blue-accent); }

/* --- Мобильное меню ------------------------------------------------------- */
.burger { display: none; flex-direction: column; gap: 5px; margin-left: auto;
  
  background: none; border: 0; padding: 8px; cursor: pointer; }

/* 2026-09-03 .burger span { display: block; width: 24px; height: 2px; background: #fff; } */
.burger span { display: block; width: 24px; height: 2px; background: var(--blue); }

.drawer {
  position: fixed; inset: 0; background: var(--blue); z-index: 50;
  padding: 24px; overflow-y: auto; display: none;
}
.drawer.is-open { display: block; }
.drawer-close { position: absolute; top: 16px; right: 20px;
  background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.drawer-list { margin-top: 48px; }
.drawer-list > li { margin-bottom: 16px; }
.drawer-list a, .drawer-group { color: #fff; text-decoration: none; font-size: 18px; }
.drawer-group { display: block; margin-bottom: 8px; color: var(--grey-light); }
.drawer-sub { padding-left: 16px; }
.drawer-sub li { margin: 8px 0; }
.drawer-sub a { font-size: 16px; color: var(--grey-light); }

/* --- Hero ----------------------------------------------------------------- */
/* Растягивается на всю свободную высоту, поэтому фотография заливает экран
   от шапки до футера. Само изображение при этом кадрируется (cover), а не
   искажается. padding остаётся: на узких и низких экранах, где содержимое
   выше свободного места, hero перестаёт растягиваться и ведёт себя обычно. */

.hero-main {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
}
/* .hero-offset { height: 16.46%; } 
.hero-title {height: 10%;}
.hero-gap  { height: 8%; }
.hero-button {height: 10%;}
.hero-air {height: 1%;} */
.hero-title {
  font-weight: 400;
  color: #fff; 
  font-size: 22px;
  /* Чтобы расстояние от низа title до низа перв кнопки было как расстояние 
  от низа первой кнопки до низа второй кнопки (line-height: 1) */
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}
.hero-button {
  display: inline-flex; 
  justify-content: center;
  align-items: center; /* Вертикальное центрирование элементов */
  gap: 8px; /* Расстояние между всеми элементами (мяч-текст-мяч) */  
  
  background: #fff;
  color: #000; 
  
  font-weight: 700; 
  letter-spacing: .994px;

  font-size: 14px; 
  width: 205px;
  
  text-decoration: none;
  text-transform: uppercase; 
  
  border-radius: 4px;
}
.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero {
  flex: 1 0 auto;
  display: flex;
  background-color: var(--blue);
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
  padding: 56px 0;
}

.hero-tagline {
  margin: 0; font-size: 28px; line-height: 1; font-weight: 400;
  color: #fff; text-align: center;
}
.btn {
  display: inline-block; background: #fff; color: #000; text-decoration: none;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .994px;
  padding: 8px 32px; border-radius: 4px; line-height: 40px;
}
.btn:hover { background: var(--grey-light); }

/* --- Контент -------------------------------------------------------------- */
.section { padding: 56px 0; }
.page-title {
  margin: 0 0 40px; font-family: 'League Spartan', arial, helvetica, sans-serif;
  font-size: 44px; line-height: 61.6px; font-weight: 400; color: var(--blue);
}
.content h2 { font-family: 'League Spartan', arial, helvetica, sans-serif;
  font-size: 30px; line-height: 1.3; font-weight: 400; color: var(--blue); margin: 40px 0 16px; }
.content h3 { font-family: 'League Spartan', arial, helvetica, sans-serif;
  font-size: 22px; line-height: 1.3; font-weight: 400; color: var(--blue); margin: 32px 0 12px; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content img { display: block; margin: 24px 0; }
.content strong { color: var(--text-dark); }

/* Блок по центру — картинка и подпись под ней посередине колонки. Отдельным
   классом, а не правкой .content img: на перенесённых с конструктора страницах
   картинки прижаты влево, и смена их выравнивания заодно была бы незаметной
   регрессией. */
.content .centered { text-align: center; }
.content .centered img { margin-left: auto; margin-right: auto; }

/* --- Футер ---------------------------------------------------------------- */
.site-footer { background: var(--grey-bg); padding: 24px 0; }
.copyright { margin: 0; font-size: 14px; color: var(--text); text-align: center; }

/* --- Адаптив (брейкпоинты оригинала) -------------------------------------- */
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 767px) {
  .page-title { font-size: 32px; line-height: 1.25; margin-bottom: 24px; }
  .section { padding: 40px 0; }
}
@media (max-width: 450px) {
  .container { padding: 0 16px; }
  .page-title { font-size: 28px; }
}

/* --- Табло итогов игры ---------------------------------------------------- */
/* Оформление повторяет табло Blitz Football: синяя рамка и текст, выделенная
   строка результата и подпись-сноска под таблицей. Ширина по содержимому —
   таблица короткая, растягивать её на всю колонку незачем. */
.content .scoreboard {
  display: inline-block;
  border-collapse: collapse;
  margin: 24px auto;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
}
.content .scoreboard td,
.content .scoreboard th {
  border: 2px solid var(--blue);
  padding: 6px 14px;
  font-size: 15px;
  white-space: nowrap;
}
/* Средняя колонка — названия показателей, они длиннее и держат ширину. */
.content .scoreboard td:nth-child(2),
.content .scoreboard th:nth-child(2) { padding-left: 22px; padding-right: 22px; }

.content .scoreboard .row-key td { background: #ffc000; }
.content .scoreboard .row-note td {
  background: #d5f5e3;
  padding: 8px 14px;
  white-space: normal;
}

/* from Mik */
.t-red { color: #ff0000 !important; }
/* Контейнер кнопки */
.custom-btn {
  display: inline-flex; 
  justify-content: center;
  align-items: center; /* Вертикальное центрирование элементов */
  gap: 8px; /* Расстояние между всеми элементами (мяч-текст-мяч) */
  
  background: #fff;
  color: #000; 
  
  font-weight: 700; 
  letter-spacing: .994px;

  font-size: 14px; 
  line-height: 40px;
  width: 230px;
  padding: 8px 32px; 
  
  text-decoration: none;
  text-transform: uppercase; 
  
  border-radius: 4px;
}

/* Эффект при наведении */
.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Иконки (мячи) */
.demo-btn-icon {
    width: 26px;
    height: 26px;
    object-fit: contain; /* Сохраняет пропорции PNG */
    flex-shrink: 0;
}
