/* ============================================================
   AVANGARD HOCKEY SCHOOL — Main Stylesheet
   Bebas Neue — локально; Manrope — Google Fonts (head.html)
   ============================================================ */

/* ============================================================
   Fonts — Bebas Neue (кириллица)
   ============================================================ */
@font-face {
  font-family: 'Bebas Neue';
  src: url('/avangard2/fonts/BebasThin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('/avangard2/fonts/BebasLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('/avangard2/fonts/BebasBook.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('/avangard2/fonts/BebasRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('/avangard2/fonts/BebasBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --color-primary: #e20613;
  --color-dark: #1d1d1d;
  --color-white: #ffffff;
  --color-bg: #f8f8f8;
  --color-text-muted: #555;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --fs-hero: clamp(42px, 5.5vw, 70px);
  --fs-hero-sub: clamp(24px, 3vw, 40px);
  --fs-banner: clamp(24px, 3.2vw, 46px);
  --fs-section-title: clamp(36px, 4.5vw, 70px);
  --fs-card-title: clamp(20px, 2vw, 30px);
  --fs-news-title: 24px;
  --fs-body: 18px;
  --fs-small: 15px;

  --shadow-card: 0px 4px 10px rgba(13, 13, 13, 0.10);
  --transition: 0.25s ease;

  --container-width: 1360px;
  --container-padding: clamp(20px, 4vw, 80px);
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
  overflow-x: clip;
  line-height: 1.5;
}

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

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

ul {
  list-style: none;
}

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

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  min-width: 0;
}

/*
 * Сетка главной: баннер и hero на всю ширину,
 * остальные секции — в центральной колонке до 1360px
 */
main {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    min(var(--container-width), 100%)
    minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

main > .banner,
main > .hero {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
}

main > :not(.banner):not(.hero) {
  grid-column: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

/* ============================================================
   Typography Classes
   ============================================================ */
.text-red { color: var(--color-primary); }
.text-white { color: var(--color-white); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.section-title .highlight {
  color: var(--color-primary);
}

.section-divider {
  width: 91px;
  height: 4px;
  background-color: var(--color-primary);
  margin-top: 16px;
  margin-bottom: 24px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #c4040f;
  transform: translateY(-1px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow-x: hidden;
  overflow-x: clip;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-logo {
  height: 42px;
  width: auto;
}

.nav-subtitle {
  font-family: var(--font-body);
  font-size: 9px;
  font-style: italic;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 40px;
  flex-shrink: 0;
}

.nav-search {
  width: 25px;
  height: 25px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.nav-search:hover {
  opacity: 1;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-dark);
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-dark);
  flex-shrink: 0;
}

.nav-burger-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-burger-icon--close {
  display: none;
}

.nav-burger[aria-expanded="true"] .nav-burger-icon--open {
  display: none;
}

.nav-burger[aria-expanded="true"] .nav-burger-icon--close {
  display: block;
}

.btn-primary--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Mobile search panel */
.mobile-search {
  display: none;
  padding: 12px 0 16px;
  background: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-search.is-open {
  display: block;
}

.mobile-search-form {
  width: 100%;
}

.mobile-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  outline: none;
}

.mobile-search-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.mobile-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-dark);
}

.mobile-search-clear img {
  width: 18px;
  height: 18px;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: var(--header-offset, var(--header-height));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
  overflow: hidden;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding-top: 24px;
  padding-bottom: 24px;
}

.mobile-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vw, 40px);
  width: 100%;
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-align: center;
  transition: color var(--transition);
}

.mobile-menu__links a:hover,
.mobile-menu__links a.active {
  color: var(--color-primary);
}

.mobile-menu__footer {
  flex-shrink: 0;
  padding-top: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-search-open .header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-height);
  background-color: #e8e8e8;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0.3) 70%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  text-transform: uppercase;
  max-width: 500px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--fs-hero-sub);
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 10px;
  text-transform: uppercase;
  max-width: 500px;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  max-width: 460px;
  margin-top: 30px;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 36px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 48px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--color-dark);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================================
   RECRUITMENT SECTION
   ============================================================ */
.recruitment {
  padding: 0 0 0 0;
  overflow: hidden;
}

.recruitment-inner {
  display: flex;
  align-items: stretch;
  min-height: 1000px;
  width: 100%;
}

.recruitment-image {
  flex: 0 0 49%;
  max-width: 49%;
  position: relative;
  overflow: hidden;
}

.recruitment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.recruitment-content {
  flex: 1;
  padding: clamp(40px, 6vw, 100px) clamp(40px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recruitment-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 70px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  text-transform: uppercase;
}

.recruitment-heading-red {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 70px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 4px;
}

.recruitment-divider {
  width: 91px;
  height: 4px;
  background: var(--color-primary);
  margin: 20px 0;
}

.recruitment-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 21px;
}

.feature-icon {
  width: 30px;
  height: 23px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: brightness(0) saturate(100%) invert(8%) sepia(96%) saturate(6716%) hue-rotate(354deg) brightness(95%) contrast(119%);
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
}

.feature-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
}

/* ============================================================
   BANNER SECTIONS (на всю ширину экрана)
   Нижний слой: декор + красная заливка; верхний: текст (z-index)
   ============================================================ */
.banner {
  --banner-height: 160px;
  position: relative;
  width: 100%;
  height: var(--banner-height);
  box-sizing: border-box;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.banner-decor {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.banner-decor--left {
  object-position: left center;
}

.banner-decor--right {
  object-position: right center;
}

.banner-bg-center {
  flex: 1;
  min-width: 0;
  background: var(--color-primary) url('/avangard2/assets/banner-bg.png') repeat-x center / auto 100%;
}

.banner-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 3vw, 30px);
  pointer-events: none;
}

.banner-text {
  font-family: var(--font-display);
  font-size: var(--fs-banner);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 100%;
  margin: 0;
  pointer-events: auto;
  overflow-wrap: anywhere;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  padding: 80px var(--container-padding);
  box-sizing: border-box;
}

.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.video-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.55;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--color-dark);
  cursor: pointer;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-wrapper:hover .video-poster {
  transform: scale(1.03);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn {
  transition: transform var(--transition);
}

.video-play-btn:hover {
  transform: scale(1.1);
}

.video-play-btn img {
  width: 60px;
  height: 60px;
  display: block;
}

.video-bottom {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.video-caption {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-white);
  max-width: 500px;
  line-height: 1.4;
}

.video-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,29,29,0.85);
  border-radius: 4px;
  padding: 4px 10px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  flex-shrink: 0;
}

.video-duration img {
  width: 12px;
  height: 12px;
  filter: invert(1);
}

/* ============================================================
   COACHES SECTION
   ============================================================ */
.coaches-section {
  padding: 80px 0;
  background: var(--color-white);
}

.coaches-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.coaches-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
}

.coaches-top .btn-primary {
  margin-top: 8px;
  flex-shrink: 0;
}

.coaches-sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  margin-top: 24px;
  margin-bottom: 36px;
}

.coaches-carousel {
  position: relative;
}

.coaches-viewport {
  overflow: hidden;
  touch-action: pan-y;
  min-width: 0;
  max-width: 100%;
}

.coaches-track {
  display: flex;
  gap: 24px;
  transition: transform var(--transition);
  will-change: transform;
}

.coaches-track .coach-card {
  flex-shrink: 0;
}

.coach-card {
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 28px rgba(13, 13, 13, 0.16);
}

.coach-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.coach-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.coach-name {
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  text-transform: uppercase;
}

.coach-role {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
}

.coach-line {
  width: 91px;
  height: 4px;
  background: var(--color-primary);
  margin-top: 24px;
}

.section-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-dark);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
}

.dot.active {
  background: var(--color-primary);
  opacity: 1;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-section {
  padding: 80px 0;
  background: var(--color-white);
}

.reviews-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.reviews-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.reviews-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  max-width: 600px;
  margin-top: 24px;
  line-height: 1.55;
}

.reviews-arrows {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

.reviews-arrows .arrow-btn {
  color: var(--color-primary);
}

.arrow-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--transition);
}

.arrow-btn:hover:not(:disabled) {
  opacity: 0.7;
}

.arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.arrow-btn img,
.arrow-btn-icon {
  width: 27px;
  height: 23px;
  display: block;
}

.reviews-carousel {
  margin-top: 36px;
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
  touch-action: pan-y;
  min-width: 0;
  max-width: 100%;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform var(--transition);
  will-change: transform;
}

.reviews-track .review-card {
  flex-shrink: 0;
}

.review-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
}

.review-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.review-card:hover .review-card-bg {
  transform: scale(1.05);
}

.review-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 0%, rgba(12,12,12,0) 55%, rgba(13,13,13,0.95) 100%);
}

.review-duration-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,29,29,0.85);
  border-radius: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.3);
}

.review-duration-badge img {
  width: 12px;
  height: 12px;
  /* filter: invert(1); */
}

.review-duration-badge span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
}

.review-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.review-card:hover .review-play {
  transform: translate(-50%, -50%) scale(1.12);
}

.review-play img {
  width: 60px;
  height: 60px;
  display: block;
}

.review-text {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.review-role {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.3;
}

.review-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.review-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.review-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.review-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #000;
}

.review-video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.review-video-modal-player {
  display: block;
  width: 100%;
  max-height: 80vh;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  padding: 80px 0;
  background: var(--color-white);
}

.news-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.news-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
}

.news-top .btn-primary {
  margin-top: 8px;
  flex-shrink: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 0.71fr;
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}

.news-featured {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-featured:hover .news-featured-img {
  transform: scale(1.01);
}

.news-featured-img-wrap {
  overflow: hidden;
}

.news-date {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-dark);
}

.news-title-featured {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

.news-excerpt {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity var(--transition);
}

.news-link:hover {
  opacity: 0.75;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.news-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-primary);
  min-width: 0;
}

.news-item:last-child {
  border-bottom: 1px solid var(--color-primary);
}

.news-item-img-link {
  flex-shrink: 0;
  align-self: flex-start;
  display: block;
  line-height: 0;
}

.news-item-img {
  width: 207px;
  height: 207px;
  aspect-ratio: 1 / 1;
  max-width: none;
  object-fit: cover;
  display: block;
}

.news-item-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.news-item-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-item-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section {
  padding: 80px 0;
  background: var(--color-white);
}

.partners-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.partners-logos {
  width: 100%;
  height: auto;
  margin-top: 48px;
  object-fit: contain;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  padding: 60px 0 24px;
  background-color: var(--color-primary);
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--color-primary) url('/avangard2/assets/footer-desktop.png') no-repeat center top / cover;
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-layout {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  column-gap: 40px;
  row-gap: 24px;
  align-items: start;
}

.footer-col--locations {
  grid-column: 2;
  grid-row: 1;
}

.footer-col--contacts {
  grid-column: 3;
  grid-row: 1;
}

.footer-col--social {
  grid-column: 4;
  grid-row: 1;
}

.footer-brand {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-col {
  min-width: 0;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-logo-eagle {
  height: 62px;
  width: auto;
}

.footer-logo-text-top {
  height: 14px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo-text-bottom {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo-subtitle {
  font-family: var(--font-body);
  font-size: 8.75px;
  font-style: italic;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.55;
  max-width: 300px;
  width: 100%;
  text-align: center;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-location {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-location:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.footer-location-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-location-icon {
  width: 20px;
  height: 25px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  margin-top: 2px;
}

.footer-location-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-location-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-location-addr {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
}

.footer-map-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity var(--transition);
  margin-top: 6px;
  margin-left: 28px;
}

.footer-map-link:hover {
  opacity: 0.75;
}

.footer-map-link img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer-contact-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
  transition: opacity var(--transition);
}

.footer-contact-item a:hover .footer-contact-text {
  opacity: 0.75;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.footer-social-item {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition);
}

.footer-social-item:hover {
  opacity: 0.75;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-white);
}

.footer-social-icon img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) saturate(100%) invert(12%) sepia(99%) saturate(7458%) hue-rotate(353deg) brightness(95%) contrast(101%);
}

.footer-social-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
}

.footer-bottom-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(217,217,217,0.4);
}

.footer-bottom-col--legal {
  grid-column: 2;
  grid-row: 2;
}

.footer-bottom-col--policy {
  grid-column: 3;
  grid-row: 2;
}

.footer-bottom-col--loyalty {
  grid-column: 4;
  grid-row: 2;
}

.footer-bottom-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity var(--transition);
  text-decoration: none;
}

a.footer-bottom-text:hover {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {

  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .footer-col--locations {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-col--contacts {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-col--social {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .footer-bottom-col--legal {
    grid-column: 1;
    grid-row: 4;
  }

  .footer-bottom-col--policy {
    grid-column: 2;
    grid-row: 4;
  }

  .footer-bottom-col--loyalty {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .footer-bg {
    background-image: url('/avangard2/assets/footer-tablet.png');
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .nav {
    gap: 16px;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    gap: 12px;
  }

  .nav-actions .btn-primary {
    padding: 10px 16px;
    font-size: 14px;
  }

  .nav-burger {
    display: flex;
  }

  .nav-logo {
    height: 36px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-bg {
    width: 100%;
    opacity: 0.3;
  }

  .hero-gradient {
    background: rgba(255,255,255,0.6);
  }

  .recruitment-inner {
    flex-direction: column;
    min-height: auto;
  }

  .recruitment-image {
    flex: none;
    max-width: 100%;
    height: 400px;
  }

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

  .news-item-img {
    width: 140px;
    height: 140px;
  }

  .banner {
    --banner-height: 130px;
  }

  .banner-text {
    font-size: clamp(20px, 4vw, 40px);
  }
}

@media (max-width: 640px) {
  .banner-decor {
    max-width: 42%;
    flex-shrink: 1;
    object-fit: cover;
  }

  .nav-cta-header {
    display: none;
  }

  .mobile-menu__footer {
    display: block;
  }

  .footer-bg {
    background-image: url('/avangard2/assets/footer-mobile.png');
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-col--locations,
  .footer-col--contacts,
  .footer-col--social,
  .footer-bottom-col--legal,
  .footer-bottom-col--policy,
  .footer-bottom-col--loyalty {
    grid-column: 1;
    grid-row: auto;
  }

  .banner {
    --banner-height: 100px;
  }

  .banner-text {
    font-size: clamp(18px, 5vw, 32px);
    max-width: 100%;
  }

  .banner-content {
    padding: 0 12px;
  }

  .section-header-row {
    flex-direction: column;
  }

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

  .news-item-img {
    width: 100%;
    height: 200px;
  }
  .partners-section {
    padding: 40px 0;
  }
  .coaches-section {
    padding: 40px 0;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .mobile-menu__footer {
    display: none;
  }
}

@media (min-width: 901px) {
  .mobile-search,
  .mobile-menu {
    display: none !important;
  }

  .nav-burger {
    display: none !important;
  }
}

/* Lead form modal (без Bootstrap) */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-modal-dialog {
  background: #f1f1f1;
  max-width: 480px;
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
}

.lead-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ddd;
}

.lead-modal-header h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
}

.lead-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}

.lead-modal-body {
  padding: 20px;
}

.lead-modal-body input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
}

.lead-modal-body button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}

.lead-modal-body button[type="submit"]:hover {
  filter: brightness(0.92);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  margin-top: 24px;
}

.partners-grid img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.hero-bg.is-hidden {
  opacity: 0;
}

.hero .hero-bg {
  transition: opacity 0.4s ease;
}

#video-section-player {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 4px;
  overflow: hidden;
}

#video-section-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border: none;
  display: block;
}
