/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --red: #B71C1C;
  --red-dark: #7F0000;
  --red-light: #E53935;
  --gold: #C8A846;
  --gold-dark: #A68A2E;
  --blue-dark: #0D1B3E;
  --blue-darker: #060F26;
  --blue-mid: #132248;
  --blue-light: #1A2D5C;
  --gray-100: #F0F0F0;
  --gray-200: #D0D0D0;
  --gray-300: #999999;
  --gray-800: #1A1A1A;
  --text: #1A1A1A;
  --text-light: #555555;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.18);
  --radius: 2px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.2px;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === ШАПКА === */
.header {
  background: var(--blue-darker);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid var(--red);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}

.header__logo-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -1px;
}

.header__logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--white);
  padding: 3px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.header__logo-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header__search {
  display: flex;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.header__search-input {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border var(--transition), background var(--transition);
}

.header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.header__search-input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.14);
}

.header__search-btn {
  padding: 9px 16px;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}

.header__search-btn:hover {
  background: var(--red-dark);
}

/* === ВЫПАДАЮЩИЙ ПОИСК === */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 3px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
}

.search-dropdown--visible {
  display: block;
}

.search-dropdown__group {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.search-dropdown__item {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1.4;
}

.search-dropdown__item:last-child {
  border-bottom: none;
}

.search-dropdown__item:hover,
.search-dropdown__item--active {
  background: var(--gray-100);
}

.search-dropdown__item-name {
  font-weight: 600;
  color: var(--blue-dark);
}

.search-dropdown__item-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.search-dropdown__empty {
  padding: 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

.search-dropdown mark {
  background: #FFEB3B;
  color: var(--text);
  padding: 0 1px;
  border-radius: 1px;
}

/* === НАВИГАЦИЯ === */
.nav {
  background: var(--blue-darker);
}

.nav__list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  border-bottom: 3px solid transparent;
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: var(--red);
}

.nav__link--active {
  color: var(--white);
  background: var(--red);
  border-bottom-color: var(--red-dark);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

/* === ГЕРОЙ-СЕКЦИЯ === */
.hero {
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-darker) 100%);
  color: var(--white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(183, 28, 28, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  transform: translate(20%, -20%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.hero__title {
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero__title span {
  color: var(--red-light);
}

#hero-sport {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#header-sport {
  display: inline-block;
  transition: opacity 0.25s ease;
}

.hero__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero__president {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  width: 220px;
  text-decoration: none;
  color: var(--white);
  transition: transform var(--transition);
}

.hero__president:hover {
  transform: translateY(-4px);
}

.hero__president-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  margin-bottom: 16px;
  transition: border-color var(--transition);
}

.hero__president:hover .hero__president-photo {
  border-color: var(--red);
}

.hero__president-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__president-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.hero__president-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red-light);
  margin-bottom: 2px;
}

.hero__president-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero__president-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--dark {
  background: var(--blue-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--blue-darker);
  color: var(--white);
}

/* === ВЗНОСЫ === */
.contrib {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contrib__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 36px 0;
}

.contrib__text {
  font-size: 15px;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.contrib__btns {
  display: flex;
  gap: 14px;
}

.contrib__btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.contrib__btn--red {
  background: var(--red);
  color: var(--white);
}

.contrib__btn--red:hover {
  background: var(--red-dark);
  color: var(--white);
}

.contrib__btn--gold {
  background: var(--gold);
  color: var(--white);
}

.contrib__btn--gold:hover {
  background: var(--gold-dark);
  color: var(--white);
}

@media (max-width: 768px) {
  .contrib__inner {
    flex-direction: column;
    gap: 18px;
    padding: 28px 0;
    text-align: center;
  }

  .contrib__btns {
    flex-direction: column;
    width: 100%;
  }

  .contrib__btn {
    width: 100%;
  }
}

/* === СЕКЦИИ === */
.section {
  padding: 70px 0;
}

.section--gray {
  background: var(--gray-100);
}

.section__header {
  text-align: center;
  margin-bottom: 50px;
}

.section__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 14px;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto;
  letter-spacing: 0.3px;
}

.section__accent {
  width: 50px;
  height: 4px;
  background: var(--red);
  margin: 16px auto 0;
}

/* === КАРТОЧКИ РАЗДЕЛОВ (ГЛАВНАЯ) === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.25s ease;
}

.card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card:hover::before {
  height: 100%;
}

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card__text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* === СТРАНИЦА РАЗДЕЛА === */
.page-header {
  background: var(--blue-dark);
  color: var(--white);
  padding: 36px 0;
  border-bottom: 3px solid var(--red);
}

.page-header__title {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.breadcrumbs {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a:hover {
  color: var(--white);
}

.page-content {
  padding: 50px 0;
  background: var(--gray-100);
}

.page-content__inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-content__inner--wide {
  max-width: 1200px;
}

.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 32px 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-dark);
  margin: 24px 0 10px;
}

.page-content p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.7;
}

.page-content ul {
  margin: 0 0 18px 20px;
}

.page-content li {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
  padding-left: 4px;
}

/* === ТАБЛИЦЫ === */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.person-photo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  vertical-align: middle;
  margin-right: 8px;
}

.person-photo--clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.person-photo--clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.person-photo--empty {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--gray-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray-300);
  font-weight: 700;
  vertical-align: middle;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table th {
  background: var(--blue-dark);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  background: var(--white);
}

table tr:hover td {
  background: var(--gray-100);
}

table tr:nth-child(even) td {
  background: #F8F8F8;
}

table tr:nth-child(even):hover td {
  background: var(--gray-100);
}

/* === ЛАЙТБОКС === */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  z-index: 2;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: var(--white);
  font-size: 15px;
  margin-top: 16px;
  opacity: 0.8;
  text-align: center;
}

/* === КАРТОЧКИ ПЕРСОН (ТРЕНЕРЫ / СУДЬИ) === */
.person-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(540px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.person-card {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  min-height: 220px;
}

.person-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
}

.person-card__photo {
  width: 200px;
  min-height: 220px;
  flex-shrink: 0;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.person-card__photo img:hover {
  transform: scale(1.05);
}

.person-card__photo--empty {
  width: 200px;
  min-height: 220px;
  flex-shrink: 0;
  background: var(--blue-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
}

.person-card__photo--empty .person-card__photo-icon {
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.25);
}

.person-card__photo--empty .person-card__photo-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
}

.person-card__body {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.person-card__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.person-card__position {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.person-card__rank {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.person-card__rank::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}

.person-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.person-card__stat {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.person-card__stat strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

/* Карточка судьи — категория */
.person-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.person-card__category--allrussian {
  background: var(--red);
  color: var(--white);
}

.person-card__category--first {
  background: var(--blue-dark);
  color: var(--white);
}

.person-card__category--second {
  background: var(--blue-light);
  color: var(--white);
}

.person-card__category--junior {
  background: var(--gray-300);
  color: var(--white);
}

/* Карточка руководства (about) */
.leadership-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.leadership-card {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  min-height: 120px;
}

.leadership-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.leadership-card__photo {
  width: 110px;
  flex-shrink: 0;
  background: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leadership-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.leadership-card__photo img:hover {
  transform: scale(1.05);
}

.leadership-card__photo--empty {
  width: 110px;
  flex-shrink: 0;
  background: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
}

.leadership-card__body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadership-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.leadership-card__position {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.leadership-card__rank {
  font-size: 12px;
  color: var(--text-light);
}

/* === НОВОСТИ === */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
}

.news-item:hover::before {
  opacity: 1;
}

.news-item__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 160px;
}

.news-item__photo {
  width: 160px;
  height: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.news-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.news-item__date {
  background: var(--blue-dark);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  height: fit-content;
  min-width: 60px;
}

.news-item__date span {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.news-item__content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 8px;
}

.news-item__content h3 a {
  color: var(--blue-dark);
}

.news-item__content h3 a:hover {
  color: var(--red);
}

.news-item__content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* === ГАЛЕРЕЯ === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-200);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  padding: 20px 16px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* === ФОРМА ФИЛЬТРОВ ДЛЯ СЕКЦИЙ === */
.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.filters__select {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  min-width: 180px;
  cursor: pointer;
  outline: none;
  transition: border var(--transition);
}

.filters__select:focus {
  border-color: var(--blue-dark);
}

.filters__btn {
  padding: 10px 24px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: background var(--transition);
}

.filters__btn:hover {
  background: var(--blue-darker);
}

/* === КАРТОЧКИ СЕКЦИЙ === */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.section-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  transition: box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity var(--transition);
}

.section-card:hover {
  box-shadow: var(--shadow-lg);
}

.section-card:hover::before {
  opacity: 1;
}

.section-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-card__photo {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.section-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-card__info {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.section-card__info strong {
  color: var(--text);
}

.section-card__age {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 12px;
}

/* === ДОКУМЕНТЫ === */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

a.doc-item:hover {
  background: var(--gray-100);
  color: inherit;
}

.doc-item:hover {
  background: var(--gray-100);
}

.doc-item__icon {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.doc-item__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
}

.doc-item__size {
  font-size: 12px;
  color: var(--text-light);
}

/* === КОНТАКТЫ === */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.contact-block {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--transition);
}

.contact-block:hover {
  box-shadow: var(--shadow);
}

.contact-block__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.contact-block__item {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  color: var(--text);
}

.contact-block__item strong {
  min-width: 90px;
  color: var(--text);
}

/* === ПОДВАЛ === */
.footer {
  background: var(--blue-darker);
  color: rgba(255, 255, 255, 0.65);
  padding: 50px 0 30px;
  margin-top: auto;
  border-top: 3px solid var(--red);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer__col-title {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--red-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .header__top {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header__search {
    width: 100%;
    order: 3;
  }

  .header__search-input {
    flex: 1;
  }

  .search-dropdown {
    right: -60px;
    max-height: 320px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav__list--open {
    display: flex;
  }

  .nav__link {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero {
    padding: 50px 0;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__text {
    font-size: 15px;
  }

  .hero__row {
    flex-direction: column;
    gap: 30px;
  }

  .hero__president {
    width: 100%;
  }

  .section {
    padding: 40px 0;
  }

  .section__title {
    font-size: 24px;
  }

  .news-item {
    flex-direction: column;
  }

  .sections-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    flex-direction: column;
  }

  .filters__select {
    width: 100%;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .person-cards {
    grid-template-columns: 1fr;
  }

  .person-card {
    flex-direction: column;
    min-height: auto;
  }

  .person-card__photo,
  .person-card__photo--empty {
    width: 100%;
    min-height: 260px;
    max-height: 320px;
  }

  .leadership-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 22px;
  }

  .section__title {
    font-size: 20px;
  }

  .person-card__photo,
  .person-card__photo--empty {
    min-height: 220px;
    max-height: 280px;
  }

  .person-card__body {
    padding: 18px 20px;
  }

  .person-card__name {
    font-size: 17px;
  }

  .leadership-card {
    flex-direction: column;
  }

  .leadership-card__photo,
  .leadership-card__photo--empty {
    width: 100%;
    height: 180px;
  }
}

/* === КАЛЕНДАРЬ === */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.calendar-nav__btn {
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.15s;
}

.calendar-nav__btn:hover {
  background: var(--blue-darker);
}

.calendar-nav__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-grid__header {
  background: var(--blue-dark);
  color: var(--white);
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-grid__day {
  background: var(--white);
  min-height: 90px;
  padding: 6px;
  font-size: 13px;
  position: relative;
  cursor: default;
}

.calendar-grid__day--other {
  background: var(--gray-100);
  color: var(--gray-300);
}

.calendar-grid__day--today {
  background: #FFF3F0;
}

.calendar-grid__day-num {
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.calendar-grid__day--other .calendar-grid__day-num {
  color: var(--gray-300);
}

.calendar-grid__event {
  display: block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  line-height: 1.3;
}

.calendar-grid__event:hover {
  opacity: 0.85;
}

.calendar-grid__event--judo {
  background: var(--red);
}

.calendar-grid__event--sambo {
  background: var(--blue-light);
}

/* === МОДАЛЬНОЕ ОКНО КАЛЕНДАРЯ === */
.calendar-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.calendar-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.calendar-modal__close {
  float: right;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  line-height: 1;
}

.calendar-modal__close:hover {
  color: var(--red);
}

.calendar-modal__event {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.calendar-modal__event:last-child {
  border-bottom: none;
}

.calendar-modal__event h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 6px;
}

.calendar-modal__event p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 3px;
}

.calendar-modal__empty {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 768px) {
  .calendar-grid__day {
    min-height: 60px;
    padding: 4px;
    font-size: 11px;
  }
  .calendar-grid__event {
    font-size: 9px;
    padding: 1px 3px;
  }
   .calendar-nav__title {
    font-size: 15px;
  }
}

/* ====== МОДАЛЬНОЕ ОКНО НОВОСТИ ====== */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.news-modal {
  background: var(--white);
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.news-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.news-modal__close:hover {
  background: rgba(0,0,0,0.7);
}

.news-modal__photo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 24px 0;
}

.news-modal__photo img {
  width: 50%;
  height: auto;
  display: block;
}

.news-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  padding: 20px 24px 0;
  margin: 0;
}

.news-modal__content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  padding: 12px 24px 24px;
}
}
