/* ============================================================
   FBTO — Федерация бокса Тверской области
   styles.css — общий стиль сайта
   Версия: 1.0.0
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Montserrat:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  --fbto-red:        #E31E24;
  --fbto-red-hover:  #C01A1F;
  --fbto-red-active: #A0161A;
  --fbto-black:      #111111;
  --fbto-dark-gray:  #333333;
  --fbto-white:      #FFFFFF;
  --fbto-light-gray: #F2F2F2;
  --fbto-gold:       #C9A24B;
  --fbto-bronze:     #D04A37;
  --fbto-deep-blue:  #1A2A4F;
  --fbto-mid-gray:   #7A7A7A;
  --fbto-placeholder-gray: #AAAAAA;

  --container-max: 1280px;
  --container-px: 24px;

  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --font-mono: 'Montserrat', 'Courier New', monospace;

  --radius-sm: 2px;
  --radius: 4px;

  --shadow-card: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.20);

  --transition-fast: 150ms ease;
  --transition-std: 200ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fbto-black);
  background: var(--fbto-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

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

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ---------- Typography ---------- */
.t-h1 {
  font-family: var(--font-heading);
  font-size: 64px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
}
.t-h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.1;
}
.t-h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1.15;
}
.t-h4 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.t-body {
  font-size: 16px;
  line-height: 1.6;
}
.t-small {
  font-size: 14px;
  line-height: 1.5;
}
.t-caption {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.t-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  min-height: 44px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--fbto-red);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--fbto-red);
  color: var(--fbto-white);
  border: 1.5px solid var(--fbto-red);
}
.btn--primary:hover {
  background: var(--fbto-red-hover);
  border-color: var(--fbto-red-hover);
}
.btn--primary:active {
  background: var(--fbto-red-active);
  border-color: var(--fbto-red-active);
}

.btn--primary-lg {
  padding: 16px 32px;
  font-size: 16px;
  min-height: 52px;
}

.btn--secondary {
  background: var(--fbto-dark-gray);
  color: var(--fbto-white);
  border: 1.5px solid var(--fbto-dark-gray);
}
.btn--secondary:hover {
  background: #3D3D3D;
  border-color: #3D3D3D;
}

.btn--ghost-light {
  background: transparent;
  color: var(--fbto-white);
  border: 1.5px solid var(--fbto-white);
}
.btn--ghost-light:hover {
  background: var(--fbto-white);
  color: var(--fbto-black);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--fbto-black);
  border: 1.5px solid var(--fbto-black);
}
.btn--ghost-dark:hover {
  background: var(--fbto-black);
  color: var(--fbto-white);
}

.btn--download {
  background: transparent;
  color: var(--fbto-gold);
  border: 1.5px solid var(--fbto-gold);
}
.btn--download:hover {
  background: rgba(201, 162, 75, 0.12);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Бейджи ---------- */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Статусы турниров */
.badge--announcement  { background: var(--fbto-deep-blue); color: var(--fbto-white); }
.badge--open          { background: var(--fbto-red);        color: var(--fbto-white); }
.badge--closed        { background: var(--fbto-dark-gray);  color: #AAAAAA; }
.badge--live          { background: var(--fbto-red);        color: var(--fbto-white); display: inline-flex; align-items: center; gap: 5px; }
.badge--finished      { background: var(--fbto-light-gray); color: #555555; }

/* Пульсирующая точка LIVE */
.badge--live .live-dot {
  width: 7px;
  height: 7px;
  background: var(--fbto-white);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite ease-in-out;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* Спортивные разряды */
.badge--msмk, .badge--ms      { background: var(--fbto-gold);       color: var(--fbto-black); }
.badge--kms                    { background: var(--fbto-dark-gray);  color: var(--fbto-white); }
.badge--rank1                  { background: var(--fbto-light-gray); color: var(--fbto-black); }
.badge--rank2                  { background: var(--fbto-light-gray); color: #555555; }

/* Принадлежность */
.badge--team   { background: transparent; color: var(--fbto-red);       border: 1px solid var(--fbto-red); }
.badge--teamrf { background: transparent; color: var(--fbto-deep-blue); border: 1px solid var(--fbto-deep-blue); }

/* Категории новостей */
.badge--news-tournament  { background: var(--fbto-black);     color: var(--fbto-white); }
.badge--news-results     { background: var(--fbto-red);       color: var(--fbto-white); }
.badge--news-announce    { background: var(--fbto-deep-blue); color: var(--fbto-white); }
.badge--news-press       { background: var(--fbto-deep-blue); color: var(--fbto-white); }
.badge--news-video       { background: var(--fbto-dark-gray); color: var(--fbto-white); }

/* ---------- Карточки ---------- */
.card {
  background: var(--fbto-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-std), transform var(--transition-std);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* карточка с красной полосой слева */
.card--hot {
  border-left: 3px solid var(--fbto-red);
}

/* карточка-документ с синей полосой */
.card--doc {
  border-left: 3px solid var(--fbto-deep-blue);
  padding: 16px 16px 16px 20px;
}
.card--doc:hover {
  transform: none;
}

/* ---------- Card News ---------- */
.card-news {
  display: flex;
  flex-direction: column;
}
.card-news__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  background: var(--fbto-dark-gray);
}
.card-news__img-placeholder {
  aspect-ratio: 16/9;
  background: var(--fbto-dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 2px;
}
.card-news__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-news__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card-news__date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fbto-red);
}
.card-news__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--fbto-black);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-news__excerpt {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 14px;
}
.card-news__link {
  color: var(--fbto-red);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.card-news__link:hover {
  text-decoration: underline;
}

/* ---------- Card Athlete ---------- */
.card-athlete {
  overflow: hidden;
}
.card-athlete__photo {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  background: var(--fbto-black);
  position: relative;
}
.card-athlete__photo-placeholder {
  aspect-ratio: 3/4;
  background: var(--fbto-dark-gray);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}
.card-athlete__photo-placeholder svg {
  width: 60%;
  height: auto;
  opacity: 0.15;
}
.card-athlete__info {
  padding: 12px 14px 16px;
}
.card-athlete__last-name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--fbto-black);
  line-height: 1.1;
}
.card-athlete__first-name {
  font-size: 14px;
  color: #555555;
  margin-bottom: 6px;
}
.card-athlete__stats {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #767676;
  margin-bottom: 8px;
}
.card-athlete__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card-athlete:hover .card-athlete__photo-placeholder {
  filter: brightness(1.1);
}

/* ---------- Card Tournament (row) ---------- */
.card-tournament-row {
  background: var(--fbto-dark-gray);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 4px solid transparent;
  transition: box-shadow var(--transition-std);
}
.card-tournament-row--hot {
  border-left-color: var(--fbto-red);
}
.card-tournament-row--soon {
  border-left-color: #555555;
}
.card-tournament-row__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.card-tournament-row__name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--fbto-white);
  flex: 1;
}
.card-tournament-row__meta {
  font-size: 14px;
  color: #AAAAAA;
  margin-bottom: 12px;
}
.card-tournament-row__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Card Gym ---------- */
.card-gym {
  padding: 20px;
}
.card-gym__name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--fbto-black);
  margin-bottom: 4px;
}
.card-gym__city {
  font-size: 14px;
  color: var(--fbto-mid-gray);
  margin-bottom: 12px;
}
.card-gym__divider {
  height: 1px;
  background: #D9D9D9;
  margin-bottom: 12px;
}
.card-gym__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 16px;
}
.card-gym__contacts a {
  color: var(--fbto-black);
  transition: color var(--transition-fast);
}
.card-gym__contacts a:hover {
  color: var(--fbto-red);
}
.card-gym__map-btn {
  min-height: 52px;
  width: 100%;
}

/* ---------- Card Document ---------- */
.card-doc__icon {
  color: var(--fbto-gold);
  margin-bottom: 12px;
}
.card-doc__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--fbto-white);
}
.card-doc__date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888888;
  margin-bottom: 14px;
}

/* ---------- Таблицы ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-results {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
}
.table-results caption {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--fbto-black);
  text-align: left;
  margin-bottom: 8px;
  caption-side: top;
}
.table-results thead tr {
  background: var(--fbto-black);
  color: var(--fbto-white);
}
.table-results thead th {
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: left;
}
.table-results thead th:first-child {
  width: 48px;
  text-align: center;
}
.table-results tbody tr {
  border-bottom: 1px solid #D9D9D9;
  transition: background var(--transition-fast);
}
.table-results tbody tr:nth-child(even) {
  background: var(--fbto-light-gray);
}
.table-results tbody tr:hover {
  background: rgba(200, 16, 46, 0.06);
}
.table-results tbody tr.rank-1 { background: rgba(201, 162, 75, 0.12); }
.table-results tbody tr.rank-2 { background: rgba(192, 192, 192, 0.10); }
.table-results tbody tr.rank-3 { background: rgba(205, 127, 50, 0.08); }
.table-results td {
  padding: 10px 14px;
  vertical-align: middle;
}
.table-results td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: center;
  font-size: 16px;
}
.table-results td.t-athlete-name a {
  color: var(--fbto-black);
  transition: color var(--transition-fast);
}
.table-results td.t-athlete-name a:hover {
  color: var(--fbto-red);
}
.table-results td.t-mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Schedule Table */
.table-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-schedule thead tr {
  background: var(--fbto-black);
  color: var(--fbto-white);
}
.table-schedule thead th {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}
.table-schedule tbody tr {
  border-bottom: 1px solid #D9D9D9;
  transition: background var(--transition-fast);
}
.table-schedule tbody tr:nth-child(even) {
  background: var(--fbto-light-gray);
}
.table-schedule tbody tr:hover {
  background: rgba(200, 16, 46, 0.05);
}
.table-schedule tbody tr.next-up {
  border-left: 3px solid var(--fbto-red);
}
.table-schedule td {
  padding: 10px 16px;
  vertical-align: middle;
}
.table-schedule td.date-cell {
  font-family: var(--font-mono);
  white-space: nowrap;
  font-size: 13px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #AAAAAA;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: #AAAAAA;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--fbto-red);
}
.breadcrumb__sep {
  color: #CCCCCC;
}
.breadcrumb__current {
  color: #FFFFFF;
}

/* ---------- Section Titles ---------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header__title {
  font-family: var(--font-heading);
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.05;
}
.section-header__title--light {
  color: var(--fbto-white);
}
.section-header__link {
  color: var(--fbto-red);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-header__link:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 80px;
}
.section--light {
  background: var(--fbto-white);
}
.section--gray {
  background: var(--fbto-light-gray);
}
.section--dark {
  background: var(--fbto-black);
}
.section--deep-blue {
  background: var(--fbto-deep-blue);
}

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- ШАПКА (Header) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Top bar */
.header-topbar {
  background: var(--fbto-black);
  height: 52px;
  display: flex;
  align-items: center;
}
.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Логотип */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__emblem {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.site-logo__line1,
.site-logo__line2 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--fbto-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.site-logo__divider {
  height: 1px;
  background: var(--fbto-red);
  margin-block: 2px;
}

/* Topbar right */
.header-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #AAAAAA;
  transition: color var(--transition-fast);
  border-radius: 2px;
}
.social-link:hover {
  color: var(--fbto-white);
}
.social-link:focus-visible {
  outline: 2px solid var(--fbto-red);
  outline-offset: 2px;
}
.social-link svg {
  width: 18px;
  height: 18px;
}

/* Main nav bar */
.header-nav {
  background: var(--fbto-dark-gray);
  height: 48px;
  display: flex;
  align-items: center;
  border-top: 1px solid #333333;
}
.header-nav .container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Main navigation */
.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  flex: 1;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  height: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fbto-white);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.nav-link:hover,
.nav-link.active,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link {
  color: var(--fbto-red);
  border-bottom-color: var(--fbto-red);
}
.nav-link:focus-visible {
  outline: 2px solid var(--fbto-red);
  outline-offset: -2px;
}
.nav-link .nav-arrow {
  font-size: 10px;
  transition: transform var(--transition-fast);
}
.nav-item:hover > .nav-link .nav-arrow,
.nav-item:focus-within > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--fbto-dark-gray);
  border-top: 2px solid var(--fbto-red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.40);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 100;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown__link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #CCCCCC;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-dropdown__link:hover {
  color: var(--fbto-white);
  background: rgba(255,255,255,0.06);
}

/* ---------- Мобильный гамбургер ---------- */
.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--fbto-white);
  flex-shrink: 0;
  border-radius: 2px;
}
.burger-btn:focus-visible {
  outline: 2px solid var(--fbto-red);
  outline-offset: 2px;
}
.burger-btn svg {
  width: 24px;
  height: 24px;
}

/* Мобильный Drawer */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
}
.mobile-overlay.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(80vw, 320px);
  height: 100%;
  background: var(--fbto-black);
  z-index: 1200;
  overflow-y: auto;
  transition: right 250ms ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  right: 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #222222;
  flex-shrink: 0;
}
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--fbto-white);
}
.drawer-close:focus-visible {
  outline: 2px solid var(--fbto-red);
  outline-offset: 2px;
}
.drawer-close svg {
  width: 24px;
  height: 24px;
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
}

.drawer-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  height: 52px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fbto-white);
  border-bottom: 1px solid #1A1A1A;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.drawer-group__toggle:hover {
  background: rgba(255,255,255,0.04);
  color: var(--fbto-red);
}
.drawer-group__toggle[aria-expanded="true"] {
  color: var(--fbto-red);
  border-bottom-color: transparent;
}
.drawer-arrow {
  transition: transform var(--transition-fast);
  font-size: 12px;
}
.drawer-group__toggle[aria-expanded="true"] .drawer-arrow {
  transform: rotate(180deg);
}

.drawer-group__content {
  display: none;
  border-bottom: 1px solid #1A1A1A;
}
.drawer-group__content.open {
  display: block;
}

.drawer-sub-link {
  display: block;
  padding: 0 16px 0 28px;
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  color: #CCCCCC;
  transition: color var(--transition-fast), background var(--transition-fast);
  border-bottom: 1px solid #1A1A1A;
}
.drawer-sub-link:hover {
  color: var(--fbto-white);
  background: rgba(255,255,255,0.04);
}
.drawer-sub-link:last-child {
  border-bottom: none;
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 52px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fbto-white);
  border-bottom: 1px solid #1A1A1A;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.drawer-link:hover {
  color: var(--fbto-red);
  background: rgba(255,255,255,0.04);
}

.drawer-contact {
  padding: 20px 16px;
  border-top: 1px solid #222222;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-contact a {
  color: #AAAAAA;
  font-size: 14px;
  transition: color var(--transition-fast);
}
.drawer-contact a:hover {
  color: var(--fbto-white);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--fbto-black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.80) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--fbto-dark-gray);
}

/* Угловые уголки (декор ринга) */
.hero__corner {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0.75;
  pointer-events: none;
}
.hero__corner--tl { top: 24px; left: 24px; border-top: 3px solid var(--fbto-red); border-left: 3px solid var(--fbto-red); }
.hero__corner--tr { top: 24px; right: 24px; border-top: 3px solid var(--fbto-red); border-right: 3px solid var(--fbto-red); }
.hero__corner--bl { bottom: 24px; left: 24px; border-bottom: 3px solid var(--fbto-red); border-left: 3px solid var(--fbto-red); }
.hero__corner--br { bottom: 24px; right: 24px; border-bottom: 3px solid var(--fbto-red); border-right: 3px solid var(--fbto-red); }

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 80px;
  animation: hero-fadein 600ms ease-out both;
  width: 100%;
}
@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fbto-red);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 64px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--fbto-white);
  line-height: 1.0;
  margin-bottom: 12px;
  max-width: 700px;
}
.hero__title span {
  display: block;
}

.hero__subtitle {
  font-size: 18px;
  color: #CCCCCC;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--fbto-white);
  line-height: 1;
}
.hero__stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #AAAAAA;
  font-weight: 600;
}

/* ---------- ПОДВАЛ (Footer) ---------- */
.site-footer {
  background: var(--fbto-black);
  border-top: 1px solid var(--fbto-dark-gray);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand__logo {
  margin-bottom: 12px;
}
.footer-brand__desc {
  font-size: 13px;
  color: #888888;
  margin-bottom: 20px;
  line-height: 1.6;
}
.footer-brand__social {
  display: flex;
  gap: 8px;
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fbto-red);
  margin-bottom: 14px;
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col__links a {
  font-size: 14px;
  color: #AAAAAA;
  transition: color var(--transition-fast);
}
.footer-col__links a:hover {
  color: var(--fbto-white);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contacts a,
.footer-contacts p {
  font-size: 14px;
  color: #AAAAAA;
  transition: color var(--transition-fast);
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.5;
}
.footer-contacts a:hover {
  color: var(--fbto-white);
}

.footer-bottom {
  border-top: 1px solid #1A1A1A;
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom__copy {
  font-size: 13px;
  color: #555555;
}
.footer-bottom__links {
  display: flex;
  gap: 20px;
}
.footer-bottom__links a {
  font-size: 13px;
  color: #555555;
  transition: color var(--transition-fast);
}
.footer-bottom__links a:hover {
  color: #AAAAAA;
}

/* ---------- Общие блоки внутренних страниц ---------- */
.page-hero {
  background: var(--fbto-black);
  padding-block: 48px;
  border-bottom: 1px solid var(--fbto-dark-gray);
}
.page-hero__breadcrumb {
  margin-bottom: 16px;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fbto-white);
  line-height: 1.05;
}
.page-hero__subtitle {
  font-size: 16px;
  color: #888888;
  margin-top: 8px;
}

/* Форма фильтров */
.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-select {
  padding: 8px 14px;
  border: 1.5px solid #D9D9D9;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fbto-black);
  background: var(--fbto-white);
  cursor: pointer;
  min-height: 40px;
}
.filter-select:focus {
  border-color: var(--fbto-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}
.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Мобильные фильтры: лейбл над select в столбик на узких экранах */
@media (max-width: 480px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-row .athletes-search-wrap {
    width: 100%;
  }
  .filter-row .filter-label {
    margin-bottom: 2px;
  }
  .filter-row .filter-select {
    width: 100%;
  }
}

/* ---------- Календарь (мини-секция) ---------- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #2A3D6A;
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-month {
  padding: 20px 16px;
  border-right: 1px solid #2A3D6A;
}
.calendar-month:last-child {
  border-right: none;
}
.calendar-month__name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--fbto-white);
  margin-bottom: 12px;
}
.calendar-month__name--current {
  color: var(--fbto-gold);
}
.calendar-month__events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calendar-event {
  font-size: 13px;
  color: #CCCCCC;
  line-height: 1.4;
}
.calendar-event__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fbto-red);
  display: block;
  margin-bottom: 2px;
}
.calendar-empty {
  font-size: 13px;
  color: #4A5A7A;
}

/* ---------- Секция трансляций ---------- */
.broadcast-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.broadcast-main__embed {
  aspect-ratio: 16/9;
  background: #111;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.broadcast-main__title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--fbto-white);
  margin-bottom: 6px;
}
.broadcast-main__meta {
  font-size: 14px;
  color: #AAAAAA;
  margin-bottom: 16px;
}
.broadcast-list__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fbto-red);
  margin-bottom: 12px;
}
.broadcast-item {
  display: flex;
  gap: 10px;
  padding-block: 10px;
  border-bottom: 1px solid #1A1A1A;
}
.broadcast-item__thumb {
  width: 120px;
  height: 68px;
  background: #1A1A1A;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
}
.broadcast-item__info {
  flex: 1;
}
.broadcast-item__name {
  font-size: 13px;
  color: #CCCCCC;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.broadcast-item__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555555;
}

/* ---------- Секция результатов (главная) ---------- */
.results-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
.results-card {
  background: var(--fbto-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.results-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--fbto-black);
  margin-bottom: 4px;
}
.results-card__meta {
  font-size: 13px;
  color: #767676;
  margin-bottom: 16px;
}
.results-card__link {
  color: var(--fbto-red);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.results-card__link:hover { text-decoration: underline; }

/* ---------- Тренеры ---------- */
.card-coach {
  display: grid;
  grid-template-columns: 40% 60%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--fbto-white);
  transition: box-shadow var(--transition-std);
}
.card-coach:hover {
  box-shadow: var(--shadow-card-hover);
}
.card-coach__photo {
  aspect-ratio: 3/2;
  object-fit: cover;
  background: var(--fbto-dark-gray);
  width: 100%;
  height: 100%;
}
.card-coach__photo-placeholder {
  background: var(--fbto-dark-gray);
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1px;
}
.card-coach__info {
  padding: 20px;
}
.card-coach__name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--fbto-black);
  margin-bottom: 4px;
}
.card-coach__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fbto-mid-gray);
  margin-bottom: 10px;
}
.card-coach__details {
  font-size: 14px;
  color: #555555;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- Партнёры — бегущая лента ---------- */

/* Секция на светлом фоне (логотипы хорошо читаются) */
.section--partners {
  background: #F8F8F8;
  padding-block: 56px;
}

/* Обёртка ленты: полная ширина вьюпорта, края скрыты градиентом */
.partners-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  /* Градиентная маска: прозрачные края */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

/* Внутренний скроллируемый контейнер */
.partners-marquee {
  overflow: hidden;
}

/* Трек — горизонтальная строка логотипов */
.partners-marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  /* duration задаётся JS через --marquee-duration */
  --marquee-duration: 35s;
}

/* --- анимированный режим --- */
.partners-marquee__track--animate {
  animation: fbto-marquee var(--marquee-duration) linear infinite;
}

/* Пауза на hover по всей обёртке */
.partners-marquee-wrap:hover .partners-marquee__track--animate {
  animation-play-state: paused;
}

/* --- статичный режим (prefers-reduced-motion) --- */
.partners-marquee__track--static {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding-inline: 24px;
}

/* Keyframes marquee: трек = 2× набор → translateX(-50%) = ровно один набор */
@keyframes fbto-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Заглушка "Загрузка..." */
.partners-marquee__loading {
  padding: 24px 48px;
  color: var(--fbto-mid-gray);
  font-size: 14px;
  font-family: var(--font-body);
}

/* ---------- Отдельный элемент ленты ---------- */
.partner-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 80px;
  padding-inline: 40px;
  /* grayscale по умолчанию */
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 250ms ease, opacity 250ms ease;
  text-decoration: none;
}

.partner-item:hover,
.partner-item:focus-visible {
  filter: grayscale(0);
  opacity: 1;
}

.partner-item:focus-visible {
  outline: 2px solid var(--fbto-red);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Картинка-логотип внутри элемента */
.partner-item img {
  max-width: 140px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Плашка-заглушка когда нет логотипа */
.partner-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 120px;
  padding: 0 16px;
  border: 1.5px solid var(--fbto-mid-gray);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fbto-dark-gray);
  white-space: nowrap;
  transition: border-color 250ms ease, color 250ms ease, background 250ms ease;
}

/* При hover на элементе плашка подсвечивается в брендовом красном */
.partner-item:hover .partner-tile,
.partner-item:focus-visible .partner-tile {
  border-color: var(--fbto-red);
  color: var(--fbto-red);
  background: rgba(227,30,36,0.04);
}

/* Mobile: немного меньше отступы */
@media (max-width: 640px) {
  .partner-item {
    padding-inline: 24px;
    height: 64px;
  }
  .partner-item img {
    max-width: 100px;
    max-height: 50px;
  }
  .partner-tile {
    font-size: 11px;
    min-width: 90px;
    height: 48px;
  }
}

/* ---------- Контакты (мини) ---------- */
.contacts-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  align-items: start;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact-item__icon {
  color: var(--fbto-red);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
}
.contact-item__text {
  font-size: 15px;
  color: #CCCCCC;
  line-height: 1.5;
}
.contact-item__text a {
  color: #CCCCCC;
  transition: color var(--transition-fast);
}
.contact-item__text a:hover {
  color: var(--fbto-white);
}

/* ---------- Пресс-центр ---------- */
.press-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.press-list__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fbto-red);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E0E0E0;
}
.press-item {
  display: flex;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid #EEEEEE;
  align-items: flex-start;
}
.press-item__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fbto-red);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.press-item__title {
  font-size: 14px;
  color: var(--fbto-black);
  line-height: 1.4;
}
.press-item__title a {
  color: var(--fbto-black);
  transition: color var(--transition-fast);
}
.press-item__title a:hover {
  color: var(--fbto-red);
}
.press-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.press-media__item {
  font-size: 14px;
  color: #555555;
  padding: 8px 0;
  border-bottom: 1px solid #EEEEEE;
  display: flex;
  align-items: center;
  gap: 8px;
}
.press-media__item a {
  color: var(--fbto-black);
  transition: color var(--transition-fast);
}
.press-media__item a:hover {
  color: var(--fbto-red);
}

/* ---------- Внутренние страницы — секции ---------- */
.page-section {
  padding-block: 60px;
}

.about-lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--fbto-black);
  max-width: 760px;
  margin-bottom: 32px;
  font-weight: 400;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-cols__text p {
  font-size: 16px;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat {
  background: var(--fbto-light-gray);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--fbto-red);
}
.about-stat__num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--fbto-black);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #767676;
  font-weight: 600;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.card-leader {
  background: var(--fbto-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-leader__photo {
  aspect-ratio: 3/2;
  background: var(--fbto-dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1px;
}
.card-leader__info {
  padding: 16px;
}
.card-leader__name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--fbto-black);
  margin-bottom: 4px;
}
.card-leader__role {
  font-size: 14px;
  color: #767676;
  line-height: 1.4;
}

/* ---------- Страница турниров ---------- */
.tournaments-filters {
  background: var(--fbto-light-gray);
  padding-block: 24px;
  border-bottom: 1px solid #D9D9D9;
}
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-tournament-full {
  background: var(--fbto-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-std), transform var(--transition-std);
}
.card-tournament-full:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card-tournament-full__poster {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--fbto-dark-gray) 0%, #1A1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-tournament-full__poster-text {
  font-family: var(--font-heading);
  font-size: 16px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding: 16px;
}
.card-tournament-full__corner {
  position: absolute;
  width: 24px;
  height: 24px;
}
.card-tournament-full__corner--tl { top: 8px; left: 8px; border-top: 2px solid var(--fbto-red); border-left: 2px solid var(--fbto-red); }
.card-tournament-full__corner--br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--fbto-red); border-right: 2px solid var(--fbto-red); }
.card-tournament-full__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tournament-full__status {
  margin-bottom: 10px;
}
.card-tournament-full__name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--fbto-black);
  margin-bottom: 8px;
  line-height: 1.15;
}
.card-tournament-full__meta {
  font-size: 14px;
  color: #767676;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-tournament-full__footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

/* Tablet 768–1023px */
@media (max-width: 1023px) {
  :root { --container-px: 20px; }

  .t-h1 { font-size: 48px; }
  .t-h2 { font-size: 32px; }
  .section { padding-block: 56px; }
  .hero__title { font-size: 48px; }

  .section-header__title { font-size: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .header-topbar .social-links { display: none; }
  .main-nav { display: none; }
  .burger-btn { display: flex; }
  .header-nav .container { justify-content: space-between; }
  .header-nav .site-logo { display: flex; }

  .broadcast-layout { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .press-layout { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .tournaments-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Mobile <768px */
@media (max-width: 767px) {
  :root { --container-px: 16px; }

  .t-h1 { font-size: 36px; letter-spacing: 1.5px; }
  .t-h2 { font-size: 28px; }
  .section { padding-block: 48px; }
  .section-header__title { font-size: 28px; }

  .hero { min-height: 100svh; }
  .hero__title { font-size: 36px; letter-spacing: 1.5px; }
  .hero__subtitle { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 24px; }
  .hero__stat-num { font-size: 36px; }
  .hero__content { padding-block: 56px; }

  .header-topbar { height: 56px; }
  .header-nav { display: none; }
  .site-logo__text { display: none; }
  .header-topbar .container { padding-inline: 16px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-coach { grid-template-columns: 1fr; }
  .card-coach__photo { aspect-ratio: 4/3; }

  .calendar-grid { grid-template-columns: 1fr; }
  .broadcast-layout { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; }
  .contacts-mini { grid-template-columns: 1fr; }
  .press-layout { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .tournaments-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .page-hero__title { font-size: 32px; }

  .btn--primary-lg { padding: 14px 24px; font-size: 15px; min-height: 48px; }

  .card-tournament-row__header { flex-direction: column; }
  .card-tournament-row__footer .btn { flex: 1; justify-content: center; }
  .card-tournament-row__footer { gap: 8px; }
}

/* ---------- Триколор РФ (верхняя лента) ---------- */
.rf-tricolor {
  display: flex;
  width: 100%;
  height: 4px;
  flex-shrink: 0;
}
.rf-tricolor__white { flex: 1; background: #FFFFFF; }
.rf-tricolor__blue  { flex: 1; background: #003DA5; }
.rf-tricolor__red   { flex: 1; background: #E31E24; }

/* Подвальный триколор — чуть тоньше */
.rf-tricolor--footer {
  height: 3px;
  margin-bottom: 8px;
}

/* ---------- Шапка: официальный микрокопирайт ---------- */
.header-official-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-official-badge__line {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #888888;
  white-space: nowrap;
  line-height: 1.2;
}

/* ---------- Государственный Hero (центрированный) ---------- */
.hero--state {
  min-height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #181818 0%, #111111 60%, #0D0D0D 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Тонкая геральдическая текстура фона */
.hero--state::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(227,30,36,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero--state .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 100px 80px;
  width: 100%;
}

.hero__state-emblem {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 36px;
  filter: drop-shadow(0 0 32px rgba(227,30,36,0.20));
  flex-shrink: 0;
}

.hero__state-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--fbto-white);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 820px;
  text-align: center;
}

.hero__state-rule {
  width: 80px;
  height: 2px;
  background: var(--fbto-red);
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.hero__state-slogan {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #999999;
  margin-bottom: 48px;
  text-align: center;
}

.hero__state-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.hero__state-stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 48px;
  border-top: 1px solid #222222;
  width: 100%;
  max-width: 680px;
}

/* ---------- Сепаратор секций — геральдическая черта ---------- */
.section-sep {
  display: flex;
  align-items: center;
  gap: 0;
  height: 4px;
  width: 100%;
  overflow: hidden;
}
.section-sep__line {
  flex: 1;
  height: 4px;
  background: var(--fbto-red);
}
.section-sep__line--dark {
  background: var(--fbto-red);
}
.section-sep__accent {
  width: 48px;
  height: 4px;
  background: var(--fbto-red);
  flex-shrink: 0;
}

/* ---------- Адаптив для государственного hero ---------- */
@media (max-width: 767px) {
  .hero__state-emblem {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
  }
  .hero__state-title {
    font-size: 26px;
    letter-spacing: 2px;
  }
  .hero__state-stats {
    gap: 24px;
  }
  .hero--state .hero__content {
    padding-block: 64px 48px;
  }
  .hero__state-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__state-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .header-official-badge {
    display: none;
  }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.text-red   { color: var(--fbto-red); }
.text-gold  { color: var(--fbto-gold); }
.text-muted { color: #767676; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* =============================================================
   ANIMATIONS — Плавные анимации сайта ФБТО
   Файл: styles.css (раздел добавлен к версии 1.0.0)
   ============================================================= */

/* ---- Scroll-reveal (IntersectionObserver) ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---- Hero: последовательный вход ---- */
.hero-entrance {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.hero-entrance--visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---- Шапка при скролле ---- */
.site-header {
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.site-header.scrolled .header-topbar {
  padding-block: 6px;
}

/* ---- Hover карточек (усиление) ---- */
/* Новостные карточки */
.card-news {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-news:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Карточки спортсменов */
.card-athlete {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-athlete:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Карточки залов */
.card-gym {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-gym:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Строки турниров */
.card-tournament-row {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-tournament-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* Карточки документов */
.card--doc {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card--doc:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
}

/* ---- Hover кнопок (лёгкий scale) ---- */
.btn--primary,
.btn--secondary,
.btn--ghost-light,
.btn--ghost-dark,
.btn--download {
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn--primary:hover,
.btn--secondary:hover,
.btn--ghost-light:hover,
.btn--ghost-dark:hover,
.btn--download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--primary:active,
.btn--secondary:active,
.btn--ghost-light:active,
.btn--ghost-dark:active,
.btn--download:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---- prefers-reduced-motion — отключаем всё ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .hero-entrance,
  .hero-entrance--visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .site-header,
  .site-header.scrolled,
  .site-header.scrolled .header-topbar {
    transition: none !important;
  }

  .card-news,
  .card-athlete,
  .card-gym,
  .card-tournament-row,
  .card--doc,
  .btn--primary,
  .btn--secondary,
  .btn--ghost-light,
  .btn--ghost-dark,
  .btn--download {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ================================================================
 * Cookie-баннер
 * ================================================================ */
#fbto-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 3px solid #E31E24;
  padding: 12px 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#fbto-cookie-banner.fbto-cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.fbto-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fbto-cookie-banner__text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.fbto-cookie-banner__link {
  color: #E31E24;
  text-decoration: underline;
}

.fbto-cookie-banner__link:hover,
.fbto-cookie-banner__link:focus {
  color: #ff4040;
  outline: none;
}

.fbto-cookie-banner__btn {
  flex-shrink: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #E31E24;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 40px;
  white-space: nowrap;
}

.fbto-cookie-banner__btn:hover {
  background: #c0191e;
}

.fbto-cookie-banner__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .fbto-cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .fbto-cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* Скрыть украинский флаг, который Leaflet добавляет в копирайт по умолчанию */
.leaflet-attribution-flag{display:none !important;}
