/* =========================================
   1. ИСПРАВЛЕННЫЙ СОВРЕМЕННЫЙ БАННЕР (ЧИСТЫЙ КОД)
   ========================================= */
.home-banner {
    width: 100%;
    height: 80vh;
    background-color: #191d32;
    position: relative;
    overflow: hidden;
}

/* --- 1.1 СЛАЙДЕР И КАРТИНКА --- */
.banner__slider,
.banner__slider .swiper-wrapper,
.banner__slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.banner__slider-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; overflow: hidden;
}

.banner__slider-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 8s ease-out;
}

.swiper-slide-active .banner__slider-image img {
    transform: scale(1.08); /* Плавный зум при переключении */
}

/* Градиент поверх фото */
.banner__slider-image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(25, 29, 50, 0.9) 0%, rgba(25, 29, 50, 0.4) 50%, rgba(25, 29, 50, 0) 100%);
    z-index: 2;
}

/* --- 1.2 КОНТЕЙНЕР ТЕКСТА --- */
.banner__container {
    position: relative;
    z-index: 3;
    max-width: 1340px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: flex-end !important; /* Прижимаем контент к низу */
    padding-bottom: 180px !important; /* Оставляем место для мышки и пагинации */
    /* Защита от наезда текста на боковые стрелки на ПК */
    padding-left: 120px !important;
    padding-right: 120px !important;
}

.banner__content {
    max-width: 800px;
    padding-top: 20px; 
}

/* --- 1.3 ТИПОГРАФИКА И КНОПКА --- */
.banner__label {
    display: inline-block;
    color: #009b4d;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.banner__slider-title {
    display: block;
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 40px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Кнопка "Узнать больше" */
.banner__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important; /* Строго запрещаем перенос на новую строку */
}

.banner__btn::after {
    content: "→" !important;
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important; /* Жесткий запрет на сжатие стрелки */
}

.banner__btn:hover { color: #00d26a !important; }
.banner__btn:hover::after { transform: translateX(6px) !important; }

/* --- 1.4 НАВИГАЦИЯ (ПК) --- */
.banner__navigation {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    pointer-events: none !important; 
    z-index: 50 !important;
}

/* Боковые стрелки */
.banner .swiper-button-prev,
.banner .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important; 
    width: 56px !important;
    height: 56px !important;
    background: rgba(25, 29, 50, 0.4) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: #fff !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.banner .swiper-button-prev::after,
.banner .swiper-button-next::after {
    display: none !important;
}

.banner .swiper-button-prev { left: 40px !important; right: auto !important; }
.banner .swiper-button-next { right: 40px !important; left: auto !important; }

.banner .swiper-button-prev:hover,
.banner .swiper-button-next:hover {
    background: #00d26a !important;
    border-color: #00d26a !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.banner .swiper-button-prev svg,
.banner .swiper-button-next svg { width: 20px; height: 20px; }

/* Пагинация (Полоски в правом нижнем углу) */
.banner__navigation .banner__pagination {
    position: absolute !important;
    bottom: 50px !important;
    right: 40px !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto !important; 
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    width: auto !important;
}

.custom-swiper-dot {
    display: block;
    background: #fff;
    opacity: 0.5;
    width: 30px;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-swiper-dot.active {
    background: #00eb75;
    opacity: 1;
    width: 50px;
    box-shadow: 0 0 10px rgba(0, 235, 117, 0.4);
}

/* --- 1.5 ИНДИКАТОР СКРОЛЛА (Мышка по центру) --- */
.banner__scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.banner__scroll-down:hover { opacity: 1; }

.banner__scroll-down .mouse {
    width: 30px; height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px; position: relative; margin-bottom: 8px;
}

.banner__scroll-down .mouse::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%); width: 4px; height: 8px;
    background: #00eb75; border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

.banner__scroll-down .arrows {
    width: 12px; height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s infinite;
}

@keyframes scrollWheel { 0% { top: 8px; opacity: 1; } 100% { top: 22px; opacity: 0; } }
@keyframes scrollArrow { 0% { transform: rotate(45deg) translate(-5px, -5px); opacity: 0; } 50% { opacity: 1; } 100% { transform: rotate(45deg) translate(5px, 5px); opacity: 0; } }



/* =========================================
   1.6 АДАПТИВНОСТЬ БАННЕРА
   ========================================= */

/* Планшеты (1024px и ниже) */
@media (max-width: 1024px) {
    /* 1. Прячем мышку и боковые стрелки */
    .banner__scroll-down,
    .banner .swiper-button-prev,
    .banner .swiper-button-next {
        display: none !important;
    }

    /* 2. Убираем защитные отступы текста от боков (т.к. стрелок больше нет) */
    .banner__container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 3. Центрируем пагинацию строго внизу */
    .banner__navigation .banner__pagination {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 30px !important;
        justify-content: center !important;
    }
}

/* Телефоны (768px и ниже) */
@media (max-width: 768px) {
    .banner__container {
        padding-bottom: 120px !important;
    }

    .home-banner {
        height: 60vh;
        min-height: 450px;
    }
    
    .banner__slider-title { 
        font-size: 26px; 
        line-height: 1.4; 
        margin-bottom: 25px;
    }

    /* Делаем полосочки пагинации чуть компактнее */
    .custom-swiper-dot {
        width: 20px !important; 
        height: 4px !important;
    }
    .custom-swiper-dot.active {
        width: 35px !important; 
    }
}
/* =========================================
   СЕКЦИЯ: ШЛЮЗ НА ПОРТАЛ ТУРНИРОВ (Gateway)
   ========================================= */
.tour-gateway {
    width: 100%;
    background-color: #f8f9fa; /* Очень легкий серый оттенок, отделяет от чисто белых новостей */
    border-bottom: 1px solid #eaeaea;
    padding: 30px 0;
}

.tour-gateway__container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Левая часть (Бренд) */
.tour-gateway__brand {
    display: flex;
    flex-direction: column;
}

.tour-gateway__label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Стили главной ссылки UTF-TOUR.COM */
.tour-gateway__logo {
    font-size: 26px;
    font-weight: 800;
    color: #191d32;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Отступ до стрелочки */
    transition: color 0.3s ease;
}

/* Наша красивая анимированная стрелочка */
.tour-gateway__logo::after {
    content: "↗"; 
    font-size: 20px;
    color: #00d26a; /* Зеленый акцент */
    transition: transform 0.3s ease;
}

/* Эффекты при наведении */
.tour-gateway__logo:hover {
    color: #00d26a; 
}

.tour-gateway__logo:hover::after {
    transform: translate(3px, -3px); /* Стрелочка улетает */
}

/* Правая часть (Кнопки) */
.tour-gateway__links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.gateway-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #191d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.gateway-link svg {
    color: #00d26a; /* Зеленые иконки для свежести */
    transition: transform 0.3s ease;
}

.gateway-link:hover {
    background-color: #191d32;
    color: #fff;
    box-shadow: 0 5px 15px rgba(25, 29, 50, 0.2);
    transform: translateY(-2px);
}

.gateway-link:hover svg {
    transform: scale(1.1);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 992px) {
    .tour-gateway__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .tour-gateway__links {
        width: 100%;
        justify-content: space-between;
        gap: 15px;
    }
    
    .gateway-link {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tour-gateway__links {
        flex-direction: column;
    }
    
    .gateway-link {
        width: 100%;
        justify-content: flex-start;
        padding: 15px;
    }
}
/* =========================================
   СЕКЦИЯ: НОВОСТИ (Чистый журнальный стиль a-la ФТР)
   ========================================= */
.news {
    padding: 80px 0;
    background: #ffffff; /* Строгий белый фон */
}

/* Шапка секции новостей */
.news__header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e7eb; /* Тонкая линия как в газетах */
    padding-bottom: 15px;
}

.news .section-title {
    font-size: 36px;
    font-weight: 800;
    color: #191d32;
    margin: 0;
}

.news__view-all {
    font-size: 14px;
    font-weight: 700;
    color: #314cba;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.news__view-all:hover {
    color: #009b4d;
}

/* Сетка: 3 колонки */
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px; /* Большой отступ между рядами (40px) и колонками (30px) */
}

/* Главная (первая) новость занимает 2 колонки */
.news__card--featured {
    grid-column: span 2;
}

/* Сама карточка (никаких рамок и фонов!) */
.news__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: transparent;
    border: none;
}

/* УМНАЯ ОБРЕЗКА КАРТИНОК */
.news__card-image {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    aspect-ratio: 3 / 2; /* Фиксируем пропорцию вместо высоты */
}

.news__card--featured .news__card-image {
    aspect-ratio: 16 / 9; /* Главная новость чуть шире */
}

.news__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Оставляем верхнюю часть фото (лица людей) */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news__card-content {
    display: flex;
    flex-direction: column;
}

/* Дата */
.news__card-date {
    font-size: 12px;
    color: #009b4d; /* Акцентный зеленый или можно сделать серым #888 */
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Заголовок */
.news__card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
    
    /* Обрезаем заголовок, если он слишком длинный (на 3 строки) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news__card--featured .news__card-title {
    font-size: 28px; /* Заголовок главной новости крупнее */
    margin-bottom: 15px;
    -webkit-line-clamp: 2; /* Главный заголовок максимум в 2 строки */
}

.news__card:hover .news__card-title {
    color: #314cba;
}

/* Краткий текст (Excerpt) */
.news__card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    
    /* Оставляем 3 строчки текста */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news__card--featured .news__card-excerpt {
    font-size: 15px;
    color: #444;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .news__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .news__card--featured { grid-column: span 2; }
    .news__card--featured .news__card-image img { height: 350px; }
}

@media (max-width: 768px) {
    .news { padding: 50px 0; }
    .news__header-row { flex-direction: column; align-items: flex-start; gap: 15px; border-bottom: none; }
}

@media (max-width: 600px) {
    .news__grid { grid-template-columns: 1fr; }
    .news__card--featured { grid-column: span 1; }
    
    /* На телефонах картинки адаптируются пропорционально */
    .news__card-image img, 
    .news__card--featured .news__card-image img { 
        height: auto; 
        aspect-ratio: 16 / 9; 
    }
    
    .news__card--featured .news__card-title { font-size: 22px; }
}

/* =========================================
   СТРАНИЦА ОДНОЙ НОВОСТИ (Современная, на всю ширину)
   ========================================= */
.single-news { 
    /* Добавляем большой отступ сверху, так как шапка теперь fixed и "висит" поверх сайта */
    padding: 60px 0; 
    background-color: #f8f9fa; /* Легкий серый фон для контраста с белой карточкой */
    min-height: 100vh;
}

/* Белая карточка с контентом */
.single-news__content { 
    display: flex; 
    gap: 40px; 
    margin-bottom: 50px; 
    padding: 40px; 
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Очень мягкая, современная тень */
}

/* Блок с картинкой слева */
.single-news__content-img { 
    flex: 0 0 450px; /* Фиксируем ширину картинки, чтобы текст не зажимал ее */
}

.single-news__content-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Блок с текстом справа */
.single-news__content-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Галерея в самом низу новости */
.single-news__content-gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
}

.single-news__content-gallery .item a { 
    position: relative; 
    display: block; 
    width: 100%; 
    padding-top: 75%; /* Пропорция 4:3 */
    overflow: hidden; 
    border-radius: 8px;
}

.single-news__content-gallery .item img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
}

.single-news__content-gallery .item:hover img { 
    transform: scale(1.05); 
}

/* --- Адаптивность для планшетов и телефонов --- */
@media (max-width: 1024px) { 
    .single-news__content { 
        gap: 30px; 
        padding: 30px; 
    }
    .single-news__content-img { 
        flex: 0 0 350px; 
    }
}

@media (max-width: 768px) { 
    /* На мобильных ставим картинку НАД текстом */
    .single-news { padding-top: 100px; }
    .single-news__content { 
        flex-direction: column; 
        padding: 20px; 
        gap: 20px;
    } 
    .single-news__content-img { 
        flex: 0 0 auto; 
        width: 100%; 
        max-width: 100%; 
    }
}


/* =========================================
   СЕКЦИЯ: PERSONALITIES (Блок на странице)
   ========================================= */
.single-personalities { padding: 50px 0; }
.single-personalities__content { display: flex; gap: 30px; }
@media (max-width: 767px) { .single-personalities__content { flex-direction: column; gap: 15px; } }

.single-personalities__content-img { flex: 0 0 300px; }
@media (max-width: 767px) { .single-personalities__content-img { flex: 1; } }

.single-personalities__content-text { flex: 1 1 auto; }
.block-title { font-size: 26px; margin-bottom: 20px; font-weight: 800; line-height: 1.2; color: #000; }


.videos .swiper-button-disabled { opacity: 0; pointer-events: none; }

/* =========================================
   СЕКЦИЯ: PLACES
   ========================================= */
.places__wrapper { display: flex; align-items: center; }
@media (max-width: 1024px) { .places__wrapper { flex-direction: column; } }

.places__map { max-width: 600px; width: 100%; margin-left: auto; }
@media (max-width: 1024px) { .places__map { margin-left: 0; } }

.places__map svg { width: 100%; height: auto; }
.places__map .highlight-group { opacity: 0; visibility: hidden; }
.places__map .highlight-group.active { opacity: 1; visibility: visible; }
.places__map .map-district.active { fill: #191d32; }

.places__map .highlight-ring-big { fill: none; stroke: #ffcc0f; stroke-width: 2; }
.places__map .highlight-group.active .highlight-ring-big { animation: pulseRingBig 1s infinite alternate 0.2s; }

.places__map .highlight-ring-small { fill: none; stroke: #fff; stroke-width: 2; }
.places__map .highlight-group.active .highlight-ring-small { animation: pulseRingSmall 1s infinite alternate 0.2s; }

@keyframes pulseRingBig {
  0% { r: 35; opacity: 0.5; }
  100% { r: 50; opacity: 1; }
}
@keyframes pulseRingSmall {
  0% { r: 28; opacity: 0.5; }
  100% { r: 40; opacity: 1; }
}

/* =========================================
   СЕКЦИЯ: КОРТЫ (Только стили слайдера)
   ========================================= */

/* Контейнер слайдера */
.places__slider {
    max-width: 480px; /* Делаем карточку чуть шире для удобного чтения */
    width: 100%;
    padding-bottom: 75px; /* Оставляем место внизу для красивых кнопок */
    margin: 0;
    position: relative;
}

/* Сама карточка корта */
.places__slider .swiper-slide {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-sizing: border-box;
    height: auto;
}

/* Заголовок (Название клуба) */
.places__slider-name {
    font-size: 24px;
    font-weight: 800;
    color: #191d32;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Подзаголовки (Telefon, Manzil) */
.places__slider h4 {
    font-size: 12px;
    color: #888888; /* Убираем зеленый, делаем стильный серый */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 6px 0;
}

/* Данные (Сами номера и адреса) */
.places__slider a, 
.places__slider address {
    color: #191d32; /* Делаем текст строгим темным */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    font-style: normal;
    display: block;
    line-height: 1.5;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

/* Эффект при наведении на телефон */
.places__slider a:hover {
    color: #00eb75; 
}

.places__slider address:last-child {
    margin-bottom: 0; /* Убираем лишний отступ у последнего элемента */
}

/* --- КРУГЛЫЕ КНОПКИ НАВИГАЦИИ (Стрелки) --- */
.places__slider .swiper-button-prev,
.places__slider .swiper-button-next {
    position: absolute;
    bottom: 0;
    top: auto;
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important; /* Делаем их круглыми */
    color: #191d32 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

/* Выравниваем стрелки по центру, но даем им больше "воздуха" (gap) */
.places__slider .swiper-button-prev {
    left: calc(50% - 65px) !important; /* Сдвигаем левую кнопку еще левее */
    right: auto !important;
}

.places__slider .swiper-button-next {
    left: calc(50% + 15px) !important; /* Сдвигаем правую кнопку правее */
    right: auto !important;
}

/* Делаем иконки стрелок чуть меньше и жирнее */
.places__slider .swiper-button-prev::after,
.places__slider .swiper-button-next::after {
    font-size: 16px !important;
    font-weight: 900 !important;
}

/* При наведении стрелки становятся синими и чуть приподнимаются */
.places__slider .swiper-button-prev:hover,
.places__slider .swiper-button-next:hover {
    background: #314cba !important;
    border-color: #314cba !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Убиваем белый квадрат-паразит внутри стрелок */
.places__slider .swiper-button-prev *,
.places__slider .swiper-button-next *,
.places__slider .swiper-button-prev::after,
.places__slider .swiper-button-next::after {
    background: transparent !important;
}

/* Гарантируем, что сама иконка (текст или SVG) тоже покрасится в белый при наведении */
.places__slider .swiper-button-prev:hover *,
.places__slider .swiper-button-next:hover * {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Раздвигаем карту и слайдер */
.places__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Расталкивает элементы по краям */
    gap: 100px !important; /* Жесткий минимальный зазор в 100 пикселей */
}

/* Принудительно толкаем слайдер вправо */
.places__slider {
    margin-left: auto; /* Эта строчка прижмет карточку к правому краю экрана */
}



/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .places__slider {
        max-width: 100%;
    }
    .places__slider .swiper-slide {
        padding: 30px 25px;
    }
}

/* =========================================
   СЕКЦИЯ: PARTNERS (Слайдер)
   ========================================= */
.partners {
  padding: 80px 0;
  display: block;
  background: #ffffff;
}

.partners__container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners__category {
  margin-bottom: 60px;
}

.partners__category-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #191d32;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partners__category-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #009b4d;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Элемент внутри слайда */
.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  text-decoration: none;
  box-sizing: border-box;
  padding: 15px;
}

.partners__item img {
  width: 100%;
  height: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease !important;
}

.partners-slider .swiper-slide:hover img {
    transform: scale(1.1) !important;
}

/* Крупные спонсоры */
.partners-slider--large .partners__item {
  height: 180px;
}
.partners-slider--large .partners__item img {
  max-height: 110px;
}

/* ==============================
   РУЧНАЯ ПАГИНАЦИЯ ДЛЯ ПАРТНЕРОВ
   ============================== */
.partners-slider {
    padding-bottom: 40px;
    position: relative;
}

.custom-partners-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.custom-partner-dot {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    border-radius: 50%; /* Делаем круглыми */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Активная точка превращается в зеленую полоску */
.custom-partner-dot.active {
    background: #009b4d;
    width: 24px; 
    border-radius: 4px;
}

/* Опционально: скрываем точки на ПК (если они нужны только на мобилках) */
@media (min-width: 1025px) {
    .custom-partners-pagination {
        display: none;
    }
    .partners-slider {
        padding-bottom: 0; /* Убираем лишний отступ на ПК */
    }
}

/* --- АДАПТИВ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 768px) {
  .partners { padding: 40px 0; }
  
  .partners__item { 
    height: 100px; 
    padding: 10px; 
  }
  
  .partners-slider--large .partners__item { 
    height: 120px;
  }
  
  .partners__item img { 
    max-height: 60px; 
    /* Возвращаем цвета и отключаем анимацию для мобилок */
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  
  .partners-slider--large .partners__item img { 
    max-height: 80px; 
  }
}

/* =========================================
   СЕКЦИЯ: FTU & NEWS PAGE
   ========================================= */
.ftu__container { padding-top: 50px; padding-bottom: 50px; }
.ftu__container p { margin-bottom: 1rem; }

.news-page__container { padding-top: 50px; padding-bottom: 50px; }
.news-page__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 30px; }

.news-page__item { position: relative; padding: 15px; box-shadow: 0 17px 17px rgba(0, 0, 0, 0); transition: all 0.3s ease; display: flex; flex-direction: column; color: var(--black); }
.news-page__item:hover { box-shadow: 0 17px 17px rgba(0, 0, 0, 0.3); }

.news-page__item-img { position: relative; margin: -15px -15px 15px; cursor: pointer; }
.news-page__item-img a { position: relative; display: block; width: 100%; padding-top: 100%; }
.news-page__item-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.news-page__item-date { font-size: 12px; opacity: 0.5; margin-bottom: 10px; }
.news-page__item-title { font-size: 15px; margin-bottom: 10px; font-weight: 400; color: #314cba; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-page__item-title:hover { text-decoration: underline; }

.news-page__item-text { font-size: 14px; opacity: 0.8; font-weight: 400; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-page__item-button { background-color: #173488; padding: 10px 15px; display: inline-flex; color: #fff; text-decoration: none; text-transform: capitalize; width: max-content; cursor: pointer; margin-top: auto; }

/* =========================================
   СЕКЦИЯ: DOCUMENTS
   ========================================= */
.documents { padding: 50px 0; }
.documents__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.documents__item { display: flex; gap: 15px; background-color: #405ebe; padding: 15px; color: #fff; box-shadow: 0 17px 17px rgba(0, 0, 0, 0); transition: box-shadow 0.6s ease; }
.documents__item-info { display: flex; flex-direction: column; gap: 10px; }
.documents__item-date { font-size: 12px; color: hsla(0, 0%, 100%, 0.6); font-weight: 400; }
.documents__item-title { font-size: 14px; font-weight: 400; color: var(--white); }
.documents__item-title:hover { text-decoration: underline; }
.documents__item-image { min-width: 30px; width: 30px; height: 30px; }
.documents__item-image img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================
   СЕКЦИЯ: GALLERY
   ========================================= */
.gallery { padding-bottom: 50px; }
.gallery__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }
.gallery__items .grid-row-2 { grid-row-end: 2 span; }
.gallery__items .grid-row-3 { grid-row-end: 3 span; }
.gallery__items .grid-col-2 { grid-column-end: 2 span; }
.gallery__items .grid-col-3 { grid-column-end: 3 span; }

@media (max-width: 768px) {
  .gallery__items { grid-template-columns: 100%; }
  .gallery__items .grid-row-2, .gallery__items .grid-row-3 { grid-row-end: initial; }
  .gallery__items .grid-col-2, .gallery__items .grid-col-3 { grid-column-end: initial; }
}

.gallery__item-video { display: block; position: relative; padding-top: 56.25%; width: 100%; overflow: hidden; }
.gallery__item-video img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__item-video:hover .gallery__item-play { background-color: rgba(0, 0, 0, 0.3); }
.gallery__item-video:hover .gallery__item-play::after { transform: scale(1); opacity: 1; animation: playPulse 2s 0.3s 1; }

.gallery__item-play { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0); transition: background-color 0.6s ease; display: flex; align-items: center; justify-content: center; }
.gallery__item-play::after {
  content: "";
  background-image: url("../img/0264cfb6721c3a9a4b15.svg");
  background-repeat: no-repeat; background-position: 50% 50%; background-size: 90% 90%;
  width: 80px; height: 80px; border-radius: 50rem;
  background-color: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
  transform: scale(0.9); opacity: 0; transition: transform 0.6s ease, opacity 0.6s ease;
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.gallery__item-name { padding-top: 10px; }
.gallery__item-link { text-decoration: underline; color: #405ebe; display: block; }

/* =========================================
   СЕКЦИЯ: ABOUT PROGRAM
   ========================================= */
.about-programm { padding-top: 50px; padding-bottom: 50px; }
.about-programm p { margin-bottom: 15px; font-size: 15px; font-weight: 400; }

/* =========================================
   СЕКЦИЯ: PHOTO GALLERY
   ========================================= */
.photo-gallery { padding: 50px 0; }
.photo-gallery__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }
.photo-gallery__item { position: relative; }
.photo-gallery__item:hover img { transform: scale(1.05); }
.photo-gallery__item:hover .photo-gallery__item-image::after { opacity: 1; }

.photo-gallery__item-image { display: block; position: relative; width: 100%; padding-top: 66.67%; overflow: hidden; }
.photo-gallery__item-image::after {
  content: "";
  position: absolute; inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: opacity 0.6s ease;
  opacity: 0;
}
.photo-gallery__item img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform; transition: transform 0.6s ease;
}
.photo-gallery__item-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 15px; color: #fff;
  padding: 15px;
  text-decoration: none;
  backdrop-filter: blur(2px);
}

/* =========================================
   СЕКЦИЯ: CONTACTS
   ========================================= */
.contacts { padding: 50px 0; }
.contacts__items { display: flex; flex-wrap: wrap; }
@media (max-width: 768px) { .contacts__items { flex-direction: column; } }

.contacts__item { flex: 0 0 50%; max-width: 50%; padding-right: 15px; padding-left: 15px; }
@media (max-width: 768px) { .contacts__item { flex: 0 0 100%; max-width: 100%; } }

.contacts__item-info { display: flex; gap: 15px; margin-bottom: 30px; overflow: hidden; }
@media (max-width: 768px) { .contacts__item-info { gap: 10px; } }

.contacts__item-wrap { display: flex; flex-direction: column; gap: 5px; }

.contacts__item-icon { min-width: 32px; height: 32px; }
@media (max-width: 768px) { .contacts__item-icon { min-width: 24px; height: 24px; } }
.contacts__item-icon img { width: 100%; height: 100%; object-fit: contain; filter: invert(1); }
.contacts__item-icon svg { width: 100%; height: 100%; }

.contacts__item-title { color: #008e41; font-size: 16px; font-weight: 700; line-height: 100%; }
.contacts__item address, .contacts__item span { font-size: 16px; font-weight: 400; line-height: 100%; color: var(--black); }
.contacts__item a { word-wrap: break-word; line-height: 100%; }

/* =========================================
   СЕКЦИЯ: COURTS (Corts)
   ========================================= */
.corts { padding: 50px 0; }
.corts__wrap { display: flex; }
@media (max-width: 768px) { .corts__wrap { flex-direction: column; } }

.corts__map { width: 50%; min-height: 300px; position: relative; }
@media (max-width: 768px) { .corts__map { width: 100%; } }
.corts__map iframe { position: absolute; inset: 0; z-index: 1; opacity: 0; visibility: hidden; transition: all 0.2s ease; }
.corts__map iframe.active { z-index: 2; opacity: 1; visibility: visible; }

.corts__list { display: flex; flex-direction: column; gap: 15px; width: 50%; padding-left: 30px; }
@media (max-width: 768px) { .corts__list { width: 100%; padding-left: 0; padding-top: 30px; } }

.corts__list-item { padding: 15px 15px 10px; background-color: #191d32; box-shadow: 0 17px 17px rgba(0, 0, 0, 0); cursor: pointer; transition: box-shadow 0.6s ease, background-color 0.6s ease; }
.corts__list-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #fff; }
.corts__list-item a, .corts__list-item address { font-size: 15px; color: #fff; margin-bottom: 5px; }
.corts__list-item span { font-weight: 700; color: #008e41; }

/* =========================================
   СЕКЦИЯ: SINGLE DOCUMENT & SINGLE GALLERY
   ========================================= */
.single-document { padding: 50px 0; }
.single-document .table-wrapper { width: 100%; padding-bottom: 10px; overflow: hidden; overflow-x: auto; }

.single-gallery { padding: 50px 0; }
.single-gallery__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; will-change: transform; }

.single-gallery__item a { display: block; position: relative; width: 100%; padding-top: 66.67%; overflow: hidden; will-change: transform; }
.single-gallery__item a::after {
  content: ""; position: absolute; inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: opacity 0.6s ease, transform 1.2s ease; opacity: 0;
  background-image: url("../img/dad672a78678342d1f44.svg");
  background-repeat: no-repeat; background-position: center center; background-size: 40px 40px;
  will-change: transform;
}
.single-gallery__item:hover a::after { opacity: 1; transform: scale(1.1); }
.single-gallery__item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; transition: transform 0.6s ease; }

.single-gallery__text { margin-top: 30px; }
.single-gallery__text p { margin-bottom: 15px; }

/* =========================================
   СЕКЦИЯ: LIVE PAGE (Трансляции турниров)
   ========================================= */
.page-live__container { max-width: 1200px; margin: 0 auto; }
.page-live__title { font-size: 32px; font-weight: 700; text-align: center; margin: 50px 0; }
@media (max-width: 900px) { .page-live__title { font-size: 16px; margin: 30px 0; } }

.page-live__courts .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 80px; }
@media (max-width: 900px) { .page-live__courts .grid { grid-template-columns: 1fr; margin: 0 10px; } }

.court__name { font-weight: 600; margin-bottom: 15px; }
.court__frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; }
.court__frame iframe { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }

.page-live__sponsors { margin-bottom: 80px; }
.sponsors-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 60px; }
.sponsors-grid a:nth-child(1) .sponsor-logo { max-height: 90px; }
@media (max-width: 900px) { .sponsors-grid a:nth-child(1) .sponsor-logo { max-height: 85px; } }

.sponsors-grid a:nth-child(2) .sponsor-logo { max-height: 50px; margin-right: 60px; }
@media (max-width: 900px) { .sponsors-grid a:nth-child(2) .sponsor-logo { margin-right: 0px; } }

.sponsor-logo:hover { transform: scale(1.05); opacity: 0.85; }
.page-live__extra iframe { width: 100%; min-height: 100vh; border-radius: 12px; }

/* Лайв-табы (вкладки для iframe трансляций) */
.live-tabs-nav { display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.live-tab-btn {
  padding: 12px 25px; background: #f4f4f4; border: 1px solid #ddd;
  border-radius: 8px; cursor: pointer; font-weight: 600; color: #191d32; transition: 0.3s ease;
}
.live-tab-btn.active { background: #405ebe; color: #fff; border-color: #405ebe; box-shadow: 0 4px 12px rgba(64, 94, 190, 0.3); }

.live-tab-item { display: none; }
.live-tab-item.active { display: block; -webkit-overflow-scrolling: touch; }
.live-tab-item iframe { width: 100%; height: 1300px; min-height: 900px; border: 0; display: block; }
@media (max-width: 768px) { .live-tab-item iframe { height: 160vh; min-height: 700px; } }

/* =========================================
   ВСПЛЫВАЮЩИЙ БАННЕР INSTAGRAM (LIVE PAGE)
   ========================================= */
.live-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 23, 38, 0.85); /* Темный фон UTF */
    backdrop-filter: blur(8px); /* Размытие заднего фона */
    z-index: 9999; /* Поверх всех элементов и видео */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Класс, который добавляет ваш JS-скрипт */
.live-banner.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.live-banner__content {
    position: relative;
    max-width: 650px; /* Размер вашей зеленой картинки */
    width: 90%;
    background: transparent;
    
    /* Анимация плавного выезда снизу вверх */
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.live-banner.active .live-banner__content {
    transform: scale(1) translateY(0);
}

.live-banner__content img {
    width: 100%;
    height: auto;
    border-radius: 16px; /* Скругляем углы самой картинке */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); /* Добавляем мощную тень */
    display: block;
}

/* Кнопка закрытия (Крестик) */
.live-banner__close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.live-banner__close:hover {
    color: #00eb75; /* Светится зеленым при наведении */
    transform: scale(1.1);
}

/* Таймер */
.live-banner__timer {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6); /* Полупрозрачный черный кружок */
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    pointer-events: none; /* Чтобы не мешал кликать на картинку */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   СЕКЦИЯ: PERSONALITIES (Карточки игроков)
   ========================================= */
.personalities { padding: 50px 0; }
.personalities__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 250px)); gap: 30px; justify-content: start; }
@media (max-width: 1024px) { .personalities__items { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .personalities__items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .personalities__items { grid-template-columns: 1fr; } }

.personalities__item { max-width: 250px; display: flex; flex-direction: column; position: relative; box-shadow: 0 17px 17px rgba(0, 0, 0, 0); transition: box-shadow 0.6s ease; }
.personalities__item:hover { box-shadow: 0 17px 17px rgba(0, 0, 0, 0.3); z-index: 1; }

.personalities__item-image { min-height: 220px; overflow: hidden; }
.personalities__item-image img { width: 100%; height: 220px; object-fit: cover; }

.personalities__item-wrap { display: flex; flex-direction: column; align-items: flex-start; padding: 15px; flex: 1 1 auto; width: 100%; }
.personalities__item-title { font-size: 18px; margin-bottom: 10px; color: #191d32; }

.personalities__item-text {
  font-size: 14px; font-weight: 400; color: #666; margin-bottom: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}

.personalities__item-button {
  margin-top: auto; background-color: #173488; padding: 10px 15px;
  display: inline-flex; color: #fff; text-decoration: none; text-transform: capitalize;
}
.personalities__item-button:hover { background-color: #112767; color: #fff; }

