/* ==========================================================================
   UP2 PADEL — Site styles

   TOC
   - Design tokens (:root)
   - Base / Reset
   - Layout helpers (container, blocks)
   - Anchors (scroll-margin)
   - Components
     - Services (showcase grid)
     - Nav
     - Hero
     - Courts
     - Views (pinned slider)
     - Trainers
     - Ready-set small
     - Map
     - Footer
   - Responsive
   ========================================================================== */

:root{
  --font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --green-color: #d0f666;
  --orange-color: #b74222;
  --beige-color: #ffeeb2;
  --hero-height: 700px;
}

/* =========================
   Base / Reset
   ========================= */
*{ box-sizing: border-box; }
html {
  background-color: #000;
}

body { 
  margin:0; 
  padding:0; 
  /* min-width: 1000px; */
  background-color: #000; /* Делаем body черным для overscroll */
  font-family: var(--font); 
}

/* Обертка для всего контента, чтобы вернуть белый фон там, где нужно */
.page-wrapper {
  background-color: #fff;
  width: 100%;
  overflow: hidden; /* Чтобы не выпадали маржины */
}

h1,h2,h3,h4,h5,h6{
  font-weight: 600;
  font-size: 2rem;
}

img {
  width: 100%;
  height: auto;
}

/* =========================
   Layout helpers
   ========================= */
.section-title {
  text-align: center;
  font-size: 2.3rem;
}

.top_logo img {
  width: 145px;
  height: auto;
}

/* =========================
   Anchors
   ========================= */
#trainers {
  scroll-margin-top: -120px;
}

#courts {
  scroll-margin-top: -80px;
}

#views {
  scroll-margin-top: -130px;
}

#services {
  scroll-margin-top: -130px;
}

/* =========================
   Services (showcase grid)
   ========================= */
.block-services-showcase {
  position: relative;
  background: var(--green-color);
  min-height: 800px;
  display: flex;
  align-items: center;
  /* padding: 140px 0 110px; */
  overflow: hidden;
}

.block-services-showcase .section-title {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 10;
}

.block-services-showcase .section-title {
  margin-top: -50px;
}

.servicesShowcaseGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(28px, 3.8vw, 90px);
  align-items: start;
  justify-items: center;
}

/* Верхний ряд: 3 элемента по 2 колонки */
.servicesShowcaseItem:nth-child(1) { grid-column: 1 / 3; }
.servicesShowcaseItem:nth-child(2) { grid-column: 3 / 5; }
.servicesShowcaseItem:nth-child(3) { grid-column: 5 / 7; }
/* Нижний ряд: 2 элемента смещены на 1 колонку — шахматный порядок */
.servicesShowcaseItem:nth-child(4) { grid-column: 2 / 4; }
.servicesShowcaseItem:nth-child(5) { grid-column: 4 / 6; }

.servicesShowcaseItem {
  text-align: center;
  color: #000000;
  will-change: transform, opacity;
}

.servicesShowcaseIcon {
  width: clamp(74px, 7.6vw, 120px);
  height: clamp(74px, 7.6vw, 120px);
  margin: 0 auto 26px;
  color: #000000;
}

.servicesShowcaseIcon--p8 { padding: 8px; }
.servicesShowcaseIcon--p4 { padding: 4px; }

.servicesShowcaseIcon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.servicesShowcaseTitle {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.servicesShowcaseSubtitle {
  margin: 0;
  font-size: clamp(12px, 1.2vw, 20px);
  font-weight: 500;
  line-height: 1.25;
}

.block-nav {
  position: fixed;
  height: 60px;
  left: 0;
  right: 0;
  z-index: 15;
  color: #ffffff;
  opacity: 0;
  display: flex;
  align-items: center;
  /* glass */
  background: rgba(0, 0, 0, 0.35);      /* прозрачный чёрный */
  backdrop-filter: blur(10px);          /* blur фона */
  -webkit-backdrop-filter: blur(10px);  /* Safari */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15)
}

.block-nav .container{
  text-align: center;
  width: 100%;
}

.nav {
  display: inline-flex;   /* ширина = контент */
  align-items: center;
  gap: 32px;
  width: auto;
  padding: 0 30px;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}



/* Весь сайт full width, контейнер — для удобного выравнивания контента (можешь убрать) */
.container{
  /* width: min(1320px, calc(100% - 32px)); */
  margin: 0 auto;
}

/* Блоки — чистые секции */
.block { 
  width:100%; 
}

/* HERO layers: слои растягиваются на весь экран */
.block-hero{ 
  position: relative;
  width: 100%;
  margin-bottom: 100px;
}

.block-courts {
  background-color: #ffffff;
  /* padding: 80px 0; */
  /* height: 1100px; */
  overflow-x: clip;
}

.block-courts .container {
  position: relative;
}

.courts-racket {
  position: absolute;
  left: clamp(-80px, -6vw, -20px);
  top: clamp(40px, 10vw, 140px);
  width: clamp(1220px, 28vw, 1520px);
  height: auto;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transform-origin: center;
}

.courts-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding: 0 125px;
  /* overflow: hidden; */
  position: relative;
  margin: auto;
  max-width: 1250px;
  margin-bottom: 100px;
}

.courts-header h2 {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.courts-dots {
  position: absolute;
  width: 100%;
  opacity: 0.1;
}

.courts-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* min-height: 1400px; */
  /* padding-left: 150px; */
}

.courts-number {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 25rem;
  font-weight: normal;
  line-height: 0.8;
  color: #b74222;
  flex-shrink: 0;
  padding-right: 60px;
  padding-bottom: 30px;
  /* text-shadow: 40px 40px 50px rgba(0,0,0, 0.05); */
}

.courts-text {
  font-family: var(--font);
  font-size: 3rem;
  color: #b74222;
  line-height: 1.3;
  font-weight: 500;
  opacity: 0;
}

.courts-text-desc {
  color: #b74222;
  font-size: 24px;
}

.courts-graphic-wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 1200px;
  z-index: 1;
  overflow: hidden;
  /* Начальное состояние - обрезано слева */
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
  padding-left: 30px;
  z-index: 4;
}

.courts-graphic {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin-bottom: 0;
  z-index: 1;
  display: block;
  position: relative;
  /* Применяем маску к изображению */
  mask-image: url('../img/white_mask.png');
  -webkit-mask-image: url('../img/white_mask.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.courts-graphic-mask {
  display: none; /* Не используется, оставлено для совместимости */
}

.statsList {
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  font-size: 2em;
  /* margin-top: 12%; */
  display: flex;
  justify-content: space-between;
  /* min-height: 950px; */
}

.statsList .gr {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.statsList .statsItem {
  font-size: 1.1em;
  color: #999999;
  margin-bottom: 200px;
  line-height: 1.6;
  opacity: 0;
  float: left;
  
  /* Glass */
  /* background: rgba(255, 255, 255, 0.3); */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0px 50px rgba(0, 0, 0, 0.05);
  padding: 25px 50px;
  min-height: 500px;
  height: fit-content;
}

.statsItem--z5 { z-index: 5; position: relative; }
.statsItem--z6 { z-index: 6; position: relative; }

.statsList .statsItem:first-child  {
  border-radius: 0 20px 20px 0;
}

.statsList .statsItem:last-child {
  border-radius: 20px 0 0 20px;
}

.statsList .statsItem strong {
  font-weight: 600;
  font-size: 130px;
  color: #000000;
}



.statsList .statsItem > div {
  min-width: 25px;
  display: inline-block;
  text-align: left;
}

._basic strong {
  color: #b74222!important;
}

._pro strong {
  color: #b74222!important;
}

.l_title {
  font-size: 60px;
  font-weight: 500;
  background-color: #b74222;
  color: white;
  padding: 0 30px;
  text-align: center;
  margin-bottom: 18px;
  border-radius: 10px;
}

.l_desc {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  line-height: 1;
  max-width: 400px;
}

.l_dect_in {
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 20px;
}

.l_dect_in ._1,
.l_dect_in ._2 {
  line-height: 1;
}

.l_dect_in ._2 {
  font-size: 18px;
}

.zone-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-map-zone,
.btn-gallery-zone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-color);
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.btn-map-zone:hover,
.btn-gallery-zone:hover {
  background-color: #96351a;
  transform: scale(1.05);
}

.btn-map-zone svg {
  stroke: #fff;
}

/* Модальное окно для карты зон */
.modal-map-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

 .block-views {
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-top: -80px;
 }

 .block-views .masked {
  overflow: hidden;
  position: relative;
  /* Пропорциональное масштабирование относительно ширины экрана */
  width: 100%;
  aspect-ratio: 16 / 9; /* можно изменить пропорции при необходимости */
  /* min-height: 600px; минимальная высота для маленьких экранов */
  /* max-height: 100vh; максимальная высота не больше экрана */
}

.block-views .masked .pinnedTrack {
  width: 100%;
  height: 100%;
  position: relative;

  /* маска */
  -webkit-mask-image: url("../img/service_mask.png");
  mask-image: url("../img/service_mask.png");

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  /* ВЕРХ */
  -webkit-mask-position: top center;
  mask-position: top center;

  /* масштаб — выбери нужное */
  -webkit-mask-size: contain; /* или cover / 100% auto */
  mask-size: contain;
}

/* .block-views .masked .pinnedTrack {
  margin-top: 50px;
} */

.block-views .pinnedInner .section-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 80px;
  color: #ffffff;
}

.frame{
  position: absolute;
  inset: 0;                 /* вместо top/left/transform */
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: top center;  /* ✅ ключевое */

  pointer-events: none;
  z-index: 10;
  /* margin-top: 50px; */
}



.panel{ 
  position:absolute; 
  inset:0; 
  width: 100%;
  height: 100%;
}

.panel img.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#panelTextsContainer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.panelText{
  position: absolute;
  left: 60px;
  bottom: 120px;
  color: #ffffff;
  font-size: 16px;

  /* важно для анимации */
  will-change: transform, opacity;
}

.block-views-background {
  margin-bottom: 200px;
}

.green_line_back {
  position: absolute;
  width: 100%;
  height: auto;
  margin-top: -40px;
  z-index: 1;
  /* Это изображение теперь служит только как визуальный элемент поверх маски */
}

.heroLayers { 
  position: relative;
  width: 100%;
  overflow-x:clip;
}

/* .hero_grayscale определяет высоту блока - он относительно позиционирован и задает высоту контейнера */
.hero_grayscale {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  filter: brightness(0);
}

.heroLayers img:not(.green_arrow_down) {
  aspect-ratio: 16 / 9.5;
}

.heroLayer {
  pointer-events: none;
}

/* Все остальные слои абсолютно позиционированы и накладываются поверх .hero_grayscale */
.heroLayer:not(.hero_grayscale) { 
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  /* object-fit: cover;
  object-position: center;
  z-index: 2; */
}

/* Parallax эффект для hero_padel_pattern */
.hero_padel_pattern {
  will-change: transform;
  top: -50%!important;
  left: -50%!important;
  width: 200%!important;
  height: auto;
  z-index: 3;
}

.hero-color-crop{
  position:absolute;
  inset:0;
  overflow:hidden;
  --m: 0%; /* сколько показываем (0..100%) */
  z-index: 1;
}

/* контроллер маски — НИЧЕГО НЕ РИСУЕТ */
.hero-color-overflow{
  position:absolute;
  left:0; top:0;
  width:100%;
  height: var(--m);
  background: transparent;   /* <-- важно */
  pointer-events:none;
}

/* цветная картинка видна ТОЛЬКО в зоне --m */
.hero-color-crop .hero_color{
  position:absolute;
  left:50%;
  top:50%;
  height:100%;
  width:auto;
  transform: translate(-50%, -50%);
  clip-path: inset(0 0 calc(100% - var(--m)) 0);
}

/* Стрелка внизу - позиционируется абсолютно внизу блока */
.heroLayer.green_arrow_down {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 620px !important;
  height: auto !important;
  object-fit: contain;
  object-position: bottom center;
  z-index: 0;
  top: auto;
  opacity: 0;
}

.hero_color_for_txt {
  z-index: 2;
  display: block;
  -webkit-mask-image: url('../img/wake_up_your_game_txt.png');
  mask-image: url('../img/wake_up_your_game_txt.png');
  -webkit-mask-size: 70% auto;
  mask-size: 70% auto;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 51% calc(50% - 12.8%);
  mask-position: 51% calc(50% - 12.8%);
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  opacity: 0;
} 


.hero_color_mask {
  z-index: 3;
  display: block;
  opacity: 0;
  pointer-events: none;
  /* Изображение используется как источник маски для hero_color_mask_under */
}

.hero_color_mask_under {
  position: relative;
  background-color: #b74222;
  aspect-ratio: 16 / 9.5;
  /* Применяем маску hero_mask.png - белые области будут видимыми */
  -webkit-mask-image: url('../img/hero_mask.png');
  mask-image: url('../img/hero_mask.png');
  -webkit-mask-size: 100% var(--mask-size-y, 1%);
  mask-size: 100% var(--mask-size-y, 1%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 0;
  mask-position: 50% 0;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  transition: -webkit-mask-size 0.7s,
              mask-size 0.7s;
  z-index: 2;
}

/* Анимация маски при hover на кнопку */
.block-hero:has(.cta:hover) .hero_color_mask_under {
  -webkit-mask-size: 100% 97%;
  mask-size: 100% 97%;
}

/* Текст hero поверх изображений */
.block-hero .container {
  position: absolute;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10%;
  padding-left: 10%;
  padding-right: 10%;
  padding-bottom: 10%;
  width: 100%;
}

.hero_welcome_txt {
  font-size: clamp(24px, 1.05vw, 50px);
  font-weight: 500;
  color: #ffffff;
  margin-top: 130px;
}

.hero_logo {
  margin-top: 20px;
}

.heroText {
  position: relative;
  z-index: 10;
  color: #ffffff;
  /* margin-bottom: auto;
  padding-top: 120px; */
}


/* Кнопки hero - размещены внизу секции */
.heroButtons {
  display: flex;
  /* расстояние между кнопками пропорционально ширине экрана */
  gap: clamp(10px, 1.2vw, 20px);
  justify-content: start;
  /* padding: 0 clamp(12px, 1.6vw, 20px); */
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

/* Стилизация кнопок CTA */
.heroButtons .cta {
  display: inline-block;
  /* размер кнопок пропорционально ширине экрана */
  padding: clamp(10px, 1.1vw, 28px) clamp(18px, 2.2vw, 60px);
  /* Эффект стекла */
  background: var(--green-color); /* Полупрозрачный зеленый */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(211, 249, 102, 0.3);
  color: var(--orange-color);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(11px, 1.05vw, 30px);
  text-transform: uppercase;
  letter-spacing: clamp(0.3px, 0.08vw, 0.6px);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-width: clamp(140px, 14vw, 200px);
  flex: 0 1 auto;
  transform: scale(0);
  transition: transform 0.5s ease;
}

.heroButtons .cta:hover {
  background: var(--green-color);
  border-color: rgba(211, 249, 102, 0.5);
  box-shadow: 0 6px 20px rgba(211, 249, 102, 0.3);
  transform: scale(1.05)!important;
}



.heroButtons .cta:active {
  transform: translateY(0);
}

/* Pinned slider: обязателен pin-контейнер */
.pinned{ 
  width: 100%; 
  position: relative;
}
.pinnedInner{ position: relative; width: 100%; height: auto; }
/* .pinnedInner.masked{ height: auto; } высота определяется маской/содержимым */
.pinnedTrack{ position: relative; width: 100%; height: 100%; }

/* Панели абсолютные, будут двигаться по X через GSAP */
.panel{ 
  position:absolute; 
  inset:0; 
  width: 100%;
  height: 100%;
}

/* Dots */
.dots{ position:absolute; left:50%; bottom: 30px; transform: translateX(-50%); display:flex; gap:10px; z-index: 11; }
.dotBtn{ width:15px; height:15px; border-radius: 999px; border: 0; background: rgba(0,0,0,.25); cursor:pointer; border: 1px solid rgba(255,255,255,0.2); transition: background-color 0.3s; }
.dotBtn.is-active{ background: var(--green-color); }

/* Slider arrows (desktop) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
}
.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow--left  { left: 20px; }
.slider-arrow--right { right: 20px; }

/* Mobile-menu скрыт на десктопе, показывается только через JS + media query */
.mobile-menu-overlay { display: none; }

/* Media placeholders */
.media{ max-width: 100%; height: auto; display:block; }

/* Переопределение для изображений в панелях слайдера */
.panel .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Trainers background */
.block-trainers {
  position: relative;
  /* overflow: hidden; */
  /* margin-top: 150px; */
  z-index: 1;
  padding-top: 150px;
}

.block-trainers .container {
  position: relative;
  z-index: 2;
}

.block-trainers .trainersRow {
  display: flex;
  gap: 20px;
  padding: 0 40px;
  justify-content: flex-start; /* flex-start — первый элемент слева, полный скролл влево на Android */
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; /* не передавать скролл родителю на краях */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 30px;
}

.block-trainers .trainersRow::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.block-trainers .trainersRow {
  /* Применяем маску по аналогии с картой */
  mask-image: url('../img/mask_map.png');
  -webkit-mask-image: url('../img/mask_map.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.trainers-button {
  background: none;
  appearance: none;
  border: none;
  color: #FFFFFF;
  padding: 15px;
  width: 100%;
  cursor: pointer;
}

.dots_one {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  opacity: 0.02;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 60%;
  margin: auto;
  margin-top: -30px;
  pointer-events: none;
  will-change: transform;
  transform-origin: center;
}

.trainer {
  flex: 1 1 0%; /* Равное распределение ширины — без субпиксельных расхождений */
  min-width: 180px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  background-color: var(--green-color); /* Лайм-зеленый фон */
  border-radius: 0 0 20px 20px; /* Закругленные нижние углы */
  overflow: hidden;
  /* Карточки пропорционально увеличиваются при изменении ширины браузера */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  /* Начальное состояние - карточки скрыты сверху */
  transform: translateY(-100%);
  position: relative;
}

/* Эффект блеска при hover */
.trainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  z-index: 10;
  pointer-events: none;
  opacity: 0;
}

.trainer:hover::before {
  animation: shine 0.8s ease forwards;
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}



.trainer .media {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  /* Фикс субпиксельных расхождений в Windows-браузерах: 
     принудительно рендерим в целых пикселях */
  image-rendering: auto;
  contain: layout;
}

.trainer-info {
  padding: 20px 20px 0;
  background-color: var(--green-color);
  color: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trainer h3 {
  font-size: 0.4em;
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.trainer-title {
  font-size: 0.4em;
  color: #000000;
  margin: 0 0 12px 0;
  font-weight: 400;
}

.trainer-motto {
  font-size: 0.3em;
  color: #ffffff;
  font-weight: 300;
  background-color: #000000;
  padding: 0 7px;
  border-radius: 10px 10px 0 0;
}

.trainers-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ready_set {
  width: 100px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Начальная ширина 100px, будет растягиваться через JS */
}

/* Ready Set Small Block */
.block-ready-set-small {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
}

.ready-set-small-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ready_set_small {
  width: 100px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Начальная ширина 100px, будет растягиваться через JS */
}

/* =========================
   Prices
   ========================= */
.block-prices {
  background-color: var(--green-color);
  padding: 100px 15px 150px;
  overflow: hidden;
  /* border-top: 7px solid var(--green-color); */
}

/* Court rental cards */
.court-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.court-card {
  background: rgba(80, 80, 50, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.court-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  color: #fff;
}
.court-card-title span {
  font-weight: 500;
  font-size: 0.9em;
  opacity: 0.8;
}

.court-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.court-card-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.court-card-list li strong {
  font-weight: 600;
  margin-right: 12px;
}

.court-card-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  margin: auto 0 20px;
}

.court-card-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  background: transparent;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s, border-color 0.3s;
  min-width: auto;
  transform: none;
}
.court-card-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  transform: none !important;
  box-shadow: none;
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.price-category h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  /* color: var(--orange-color); */
  text-transform: uppercase;
  border-left: 4px solid black;
  padding-left: 15px;
}

.price-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;

}

.price-badge {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  min-height: 70px;
}

.price-badge:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
}

.price-info {
  display: flex;
  flex-direction: column;
}

.price-name {
  font-weight: 600;
  font-size: 1rem;
  color: #000;
}

.price-desc {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.price-value {
  font-weight: 700;
  font-size: 1.1rem;
  /* color: var(--orange-color); */
  white-space: nowrap;
  margin-left: 15px;
}

.price-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-right .price-value {
  margin-left: 0;
}

.price-buy-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #000000;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
  transition: background-color 0.3s, transform 0.2s;
}
.price-buy-btn:hover {
  background: #a3201e;
  transform: scale(1.05);
}

/* =========================
   Certificates
   ========================= */
.block-certificates {
  background: #e8e8e8;
  padding: 100px 50px 120px;
  overflow: hidden;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: auto;
  margin-top: 60px;
  max-width: 1000px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-card-img img {
  transform: scale(1.04);
}

.cert-card-btn {
  display: inline-block;
  margin: auto;
  margin-top: 16px;
  margin-bottom: 50px;
  padding: 12px 24px;
  background: #c52826;
  color: #fff !important;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  max-width: 150px;
  text-align: center;
}
.cert-card-btn:hover {
  background: #a3201e;
  transform: scale(1.02);
}

.cert-card-img {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

/* =========================
   Events
   ========================= */
.block-events {
  background: #e8e8e8;
  padding: 100px 50px 120px;
  overflow: hidden;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: auto;
  margin-top: 60px;
  max-width: 1200px;
}

.event-card {
  display: flex;
  flex-direction: column;
}

.event-card-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.event-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.event-card:hover .event-card-img img {
  transform: scale(1.05);
}

.event-card-btn {
  display: inline-block;
  margin: 16px auto 0;
  padding: 12px 24px;
  background: #c52826;
  color: #fff !important;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  min-width: 140px;
  text-align: center;
}

.event-card-btn:hover {
  background: #a3201e;
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .block-events {
    padding: 0 15px 80px;
  }
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .event-card-btn {
    min-width: auto;
    width: 100%;
    padding: 10px 10px;
    font-size: 0.85rem;
  }
}

.price-category {
  display: flex;
  flex-direction: column;
}

.price-footer-notes {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-footer-notes .note {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  height: auto;
  line-height: 1.4;
}

.price-footer-notes .note_graph {
  font-size: 0.85rem;
  color: #333;
  margin-top: 5px;
  height: auto;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.4);
  padding: 12px;
  border-radius: 10px;
  border-left: 3px solid #000;
}

/* Map */
.map {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Фрейм определяет размер карты и масштабируется пропорционально ширине */
.map-frame {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 10;
  pointer-events: none;
}

.map-mask-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  /* pointer-events убран, чтобы карта могла получать события мыши для drag */
  
  /* Применяем маску к обертке - маска остается статичной */
  mask-image: url('../img/mask_map.png');
  -webkit-mask-image: url('../img/mask_map.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* контейнер карты */
#yandex-map { 
  width: 100%; 
  height: 100%; 
}

/* обесцвечиваем только "землю/тайлы" */
#yandex-map .ymaps-2-1-79-ground-pane,
#yandex-map .ymaps-2-1-79-copyrights-pane {
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}

/* на всякий: меткам фильтр не применяем */
#yandex-map .ymaps-2-1-79-placemark-overlay,
#yandex-map .ymaps-2-1-79-placemark,
#yandex-map .ymaps-2-1-79-overlay-pane {
  filter: none !important;
}

#yandex-map {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Метка остается цветной - убираем фильтр с элементов метки */
#yandex-map [class*="placemark"] img,
#yandex-map [class*="placemark"] canvas {
  filter: none !important;
  -webkit-filter: none !important;
}

.block-contacts {
  z-index: 1;
  position: relative;
  margin-top: -50px;
}

/* Footer */
.block-footer {
  background-color: #000000;
  background-image: url('../img/dots_footer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70% auto;
  padding: 50px 80px;
  color: #ffffff;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Левый раздел - Логотип */
.footer-logo {
  flex: 0 0 auto;
}
.footer-logo img {
  width: 200px;
  height: auto;
}

.logo-text {
  font-size: 2em;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-sup {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
}

.logo-dot {
  color: var(--green-color);
  font-size: 0.4em;
  vertical-align: middle;
  margin-left: 4px;
}

/* Средний раздел - Контакты и ссылки */
.footer-middle {
  /* flex: 1 1 auto; */
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95em;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #ffffff;
  fill: none;
}

.footer-contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--green-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--green-color);
}

/* Правый раздел - Слоган */
.footer-slogan {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slogan-graphic {
  flex-shrink: 0;
  padding-bottom: 20px;
}

.slogan-graphic img {
  width: 350px;
  height: auto;
}

.eqlow {
  padding: 15px 10px;
  font-size: 12px;
  text-align: center;
  color: #555;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
}

.eqlow a {
  transition: color .5s;
  color: #555!important;
  text-decoration: none;
}

.eqlow a:hover {
  color: #ffffff!important;
}

@media (max-width: 1300px) { 
  .footer-slogan  {
    margin: auto;
  }
}

@media (max-width: 1024px) { 
  .statsList {
    margin-top: 0;
    /* margin-bottom: 50px; */
    flex-direction: column;
  }

  .statsList .gr {
    display: initial;
  }

  .statsList .statsItem {
    box-shadow: none;
    margin-bottom: 50px;
    float: none;
    justify-content: center;
    display: flex;
    box-shadow: none;
  }
}

/* =========================
   Modal
   ========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  /* Центрирование контента */
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 0;
  padding: 50px 10px 0;
  width: 95%;
  max-width: 600px; /* Оптимальная ширина для виджета YClients */
  height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #000;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--orange-color);
}

#bookingIframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   Lightbox Gallery
   ========================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.3s;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--green-color); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
}
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-arrow--left  { left: 20px; }
.lightbox-arrow--right { right: 20px; }

.lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 16px;
  user-select: none;
}

/* =========================
   Training Modal
   ========================= */
.training-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}
.training-modal.is-open {
  display: flex;
}

.training-modal-content {
  position: relative;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 50px 40px 40px;
  max-width: 440px;
  width: 92%;
  text-align: center;
  color: #fff;
}

.training-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}
.training-modal-close:hover { color: var(--green-color); }

.training-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.training-modal-trainer {
  font-size: 1rem;
  color: var(--green-color);
  margin: 0 0 16px;
  font-weight: 600;
}
.training-modal-trainer:empty { display: none; }

.training-modal-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0 0 28px;
}

.training-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.training-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
}
.training-input::placeholder { color: rgba(255,255,255,0.4); }
.training-input:focus { border-color: var(--green-color); }

.training-submit {
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--green-color);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
.training-submit:hover {
  background: #e4ff85;
  transform: scale(1.02);
}
.training-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.training-modal-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.training-modal-status.success { color: var(--green-color); }
.training-modal-status.error { color: #ff6b6b; }

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

  /* Nav */
  .block-nav { 
    height: 60px;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }

  .nav a:not(.top_logo) {
    display: none;
  }

  .burger-menu {
    display: block!important;
    cursor: pointer;
  }

  .burger-menu img {
    width: 32px;
    height: auto;
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
  }

  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .mobile-menu-content a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
  }

  .mobile-menu-content a:hover {
    color: var(--green-color);
  }

  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
  }

  /* Hero */
  .heroLayers {
    height: var(--hero-height);
  }

  .heroLayers > img:not(.green_arrow_down)  { 
    height: 200%!important;
    object-fit: cover!important;
    object-position: center!important;
  }

  .block-hero {
    margin-bottom: 100px;
  }

  .hero_welcome_txt {
    margin-top: 70px;
  }

  .hero_color_mask_under {
    left: -100%!important;
    width: 300%!important;
    height: 100%;
  }

  .block-hero .container {
    padding-bottom: 100px;
    padding-top: 150px;
    align-items: center;
  }

  .hero_color_for_txt {
    mask-size: 80% auto;
  }

  .heroButtons {
    flex-direction: column;
    gap: clamp(10px, 2.2vw, 14px);
    /* padding: 0 clamp(12px, 3vw, 16px);
    max-width: 200px; */
  }
  
  .heroButtons .cta {
    width: 100%;
    padding: 20px 20px;
    font-size: 14px;
    min-width: auto;
  }
  
  .heroText {
    padding-top: 80px;
  }

  /* Courts */
  .block-courts {
    padding: 0;
    height: inherit;
  }
  .courts-content {
    position: relative;
    align-items: center;
    padding: 0;
    min-height: initial;
  }

  .courts-header {
    padding: inherit;
    margin-bottom: 100px;
    justify-content: center;
    padding: 0 25px;
  }

  .courts-header h2 {
    align-items: flex-start;
    flex-direction: row;
    margin: 0;
  }

  .courts-dots {
    position: absolute;
    width: 200%;
    opacity: 0.1;
  }

  .courts-number {
    padding: inherit;
    margin-bottom: 100px;
    font-size: 15rem;
  }

  .courts-text {
    font-size: 2.5rem;
    font-weight: 100;
    text-align: center;
    padding: 0 50px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  } 

  .courts-text-desc {
    font-size: 1.2rem;
  }

  .courts-text-title {
    font-weight: 500;
  }

  .courts-graphic-wrapper {
    position: relative;
  }

  .courts-racket {
    left: -90px;
    top: 700px;
    width: 1320px;
    opacity: 0.14;
  }

  .l_desc {
    align-items: center;
    flex-direction: column;
  }

  /* Services showcase */
  .block-services-showcase {
    min-height: auto;
    padding: 90px 0 80px;
    align-items: initial;
    padding-top: 150px;
  }

  .block-services-showcase .container {
    width: calc(100% - 48px);
  }

  .servicesShowcaseGrid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .servicesShowcaseItem:nth-child(n) {
    grid-column: auto;
  }

  .block-ready-set-small {
    min-height: 400px;
  }

  /* VIEWS */
  .block-views {
    margin-top: -45px;
  }

  .block-views .pinnedInner .section-title {
    margin-top: 30px;
  }

  .block-views .masked .pinnedTrack {
    height: 700px;
    -webkit-mask-size: 100% 700px;
    mask-size: 100% 700px;
  }

  .pinnedInner,
  .block-views .frame {
    height: 700px;
  }

  .block-views .frame {
    object-fit: initial;
    object-position: initial;
  }

  .dots_one {
    max-width: 100%;
  }

  /* .block-views-background { margin-bottom: 0; } */

  .panelText {
    left: 30px;
    bottom: 80px;
  }

  .dots {
    bottom: 40px;
  }

  .slider-arrow {
    display: none;
  }

  /* Court cards */
  .court-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Certificates */
  .block-certificates {
    padding: 80px 24px 150px;
  }
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Trainers */
  .block-trainers {
    padding-top: 0;
  }

  .trainers-background {
    margin-top: -250px;
  }

  .back_gradient {
    position: absolute;
    width: 100%;
    height: 40%;
    background-color: rgba(0, 0, 0, 0.62);
    bottom: 0;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  }

  /* Map */
  .map {
    height: 450px;
  }

  /* Фрейм определяет размер карты и масштабируется пропорционально ширине */
  .map-frame {
    height: 450px;
  }

  .block-footer {
    padding: 60px 50px;
  }

  .footer-middle {
    flex-direction: column;
  }

  .footer-slogan {
    padding: 25px 0;
  }
}

@media (max-width: 500px) {
  .statsList .statsItem {
    padding: 25px 0;
  }

  .statsList .l_title {
    border-radius: 0;
    margin-bottom: 35px;
  }

  .courts-header {
    margin-bottom: 100px;
  }

  .courts-header h2 {
    align-items: center;
  }

  .courts-number {
    margin-bottom: 50px;
  }
  
  .courts-text {
    padding: 0;
  }

  .statsList .l_dect_in {
    margin-top: 25px;
    margin-left: 0;
    text-align: center;
    padding: 0 15px;
  }

  .statsList .zone-buttons {
    justify-content: center;
  }

  .not_mobile {
    display: none;
  }

  .is_mobile {
    display: block!important;
  }

  .courts-text-desc.is_mobile {
    text-align: center;
  }

  .cert-name {
    font-size: 0.8rem;
  }

  .cert-price {
    font-size: 1rem;
  }

  .price-name {
    font-size: 0.8rem;
  }
}