/*
Theme Name: Атмосфера
Theme URI: https://atmosfera.sib-web.ru
Author: Ваше имя
Author URI: https://ваш-сайт.ru
Description: Тема для школы современной хореографии «Атмосфера»
Version: 1.0
License: GPL v2 or later
Text Domain: atmosfera
*/

.tab-btn:hover:not(.pointer-events-none) {
    background-color: #f26122 !important;
    color: #ffffff !important;
}
/* Стили для табов категорий (безопасные, с !important для гарантии) */
#blogTabs .tab-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #e5e7eb !important;  /* серый фон по умолчанию */
    color: #2b2a29 !important;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    pointer-events: auto;
}

#blogTabs .tab-btn:not(.active):hover {
    background-color: #f26122 !important;
    color: #ffffff !important;
}

#blogTabs .tab-btn.active {
    background-color: #f26122 !important;
    color: #ffffff !important;
    pointer-events: none;
    cursor: default;
}


/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    color: #2b2a29;
    line-height: 1.6;
}



.container {
    max-width: 10px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --orange: #f26122;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --text-dark: #2b2a29;
    --brand-orange: #f26122;
    --brand-orange-hover: #d9541a;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: #2a2a2a;
}

.btn-orange {
    background: var(--orange);
    color: #fff;
}

.btn-orange:hover {
    background: #e04e00;
}

/* ===== НАВИГАЦИЯ ===== */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2b2a29;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== ГЕРОЙ СЛАЙДЕР ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ПАНЕЛЬ ПОВЕРХ СЛАЙДЕРА ===== */
.hero-content-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 100%;
    max-width: 1152px;
    padding: 40px 32px 40px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 1024px) {
    .hero-content-overlay {
        max-width: 100%;
        padding: 30px 20px;
        background: rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 640px) {
    .hero-content-overlay {
        padding: 20px 16px;
    }
}



/* ===== ПАГИНАЦИЯ СЛАЙДЕРА ===== */
.hero-pagination {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.hero-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-pagination .dot.active {
    background: #f26122;
}

.hero-pagination .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== ВКЛАДКИ ===== */
.tab-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn.active {
    background-color: #f26122;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== КАРТОЧКИ НАПРАВЛЕНИЙ ===== */
.direction-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    aspect-ratio: 3/4;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.direction-card:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.direction-card .card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: filter 0.4s ease;
}

.direction-card:hover .card-img {
    filter: brightness(0.7) saturate(1.1);
}

.direction-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.direction-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.direction-card .card-title {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    transition: transform 0.4s ease, opacity 0.4s ease;
    line-height: 1.3;
    pointer-events: none;
}

.direction-card:hover .card-title {
    transform: translateY(-6px);
    opacity: 1;
}

/* ===== КАРТОЧКИ ПОЕЗДОК И НАГРАД ===== */
.event-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    aspect-ratio: 3/4;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.event-card .card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: filter 0.4s ease;
}

.event-card:hover .card-img {
    filter: brightness(0.7) saturate(1.1);
}

.event-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.event-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.event-card .card-title {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    transition: transform 0.4s ease, opacity 0.4s ease;
    line-height: 1.3;
    pointer-events: none;
}

.event-card:hover .card-title {
    transform: translateY(-6px);
    opacity: 1;
}

.tab-btn {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pointer-events-none {
    pointer-events: none;
}

/* ===== ВИДЕО-КАРТОЧКИ ===== */
.video-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-btn {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(242, 97, 34, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(242, 97, 34, 0.4);
    transition: transform 0.3s, background 0.3s;
    pointer-events: none;
    z-index: 2;
}

.video-card:hover .play-btn {
    transform: scale(1.1);
    background: #f26122;
}

.video-card .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    pointer-events: none;
    z-index: 1;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.modal-box .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    background: none;
    border: none;
}

.modal-box .close-btn:hover {
    color: #333;
}

.modal-box h3 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-box p {
    color: #444;
    line-height: 1.6;
}

/* ===== МЕДИА-МОДАЛКА ===== */
.media-modal .modal-box {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
    position: relative;
}

.media-modal .modal-box .media-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 50vh;
}

.media-modal .modal-box .media-container img,
.media-modal .modal-box .media-container video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.media-modal .modal-box .media-container video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    background: #000;
}

.media-modal .modal-box .close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.media-modal .modal-box .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 28px;
    border-radius: 50%;
    z-index: 1001;
    transition: background 0.3s;
}

.media-modal .modal-box .nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.media-modal .modal-box .nav-btn.prev {
    left: 20px;
}

.media-modal .modal-box .nav-btn.next {
    right: 20px;
}

.media-modal .modal-box .counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 1001;
}

/* ===== КАРУСЕЛЬ ОТЗЫВОВ ===== */
.reviews-carousel {
    position: relative;
    overflow: hidden;
}

.reviews-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.reviews-carousel .carousel-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 12px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .reviews-carousel .carousel-slide {
        flex: 0 0 100%;
        padding: 0 8px;
    }
}

.reviews-carousel .carousel-slide .review-card {
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.reviews-carousel .carousel-slide .review-card:hover {
    transform: scale(1.02);
}

.reviews-carousel .carousel-slide .review-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.reviews-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 20;
    transition: background 0.3s;
}

.reviews-carousel .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.reviews-carousel .carousel-btn.prev {
    left: 8px;
}

.reviews-carousel .carousel-btn.next {
    right: 8px;
}

.reviews-carousel .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.reviews-carousel .dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.reviews-carousel .dots .dot.active {
    background: #f26122;
}

/* ===== БЛОГ-КАРТОЧКИ ===== */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.blog-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-link .blog-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
}

.blog-card-link .blog-body {
    padding: 16px;
}

.blog-card-link .blog-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #2b2a29;
}

.blog-card-link .blog-date {
    font-size: 0.875rem;
    color: #888;
}

/* ===== ССЫЛКА "СМОТРЕТЬ ВСЕ" ===== */
.blog-link-all {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid #f26122;
    color: #f26122;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-link-all:hover {
    background: #f26122;
    color: white;
    text-decoration: none;
}

/* ===== ССЫЛКА НА 2ГИС ===== */
.reviews-header-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f26122;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.reviews-header-link:hover {
    color: #d9541a;
    text-decoration: underline;
}

/* ===== ИКОНКИ СОЦСЕТЕЙ ===== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #2b2a29;
    color: #2b2a29;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #2b2a29;
    color: white;
}

/* ===== ВИДЖЕТ КАРТЫ 2ГИС ===== */
.dg-widget-wrapper {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.dg-widget-wrapper .dg-widget-link {
    display: none;
}

.dg-widget-wrapper #dg-widget-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    border-radius: 12px;
}

.dg-widget-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    border-radius: 12px;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ СЛАЙДЕРА (дополнительно) ===== */
@media (max-width: 1024px) {
    .hero-content-overlay {
        max-width: 100%;
        padding: 30px 20px;
        background: rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 640px) {
    .hero-content-overlay {
        padding: 20px 16px;
    }
}

/* Сетка галереи на странице события */
.single-event .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.single-event .gallery-item {
    margin: 0;
    padding: 0;
    width: 100% !important;
    float: none !important;
}

.single-event .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.single-event .gallery-item img:hover {
    transform: scale(1.03);
}

.single-event .gallery-caption {
    display: none;
}

/* Полная перестройка галереи событий в сетку */
.single-event .gallery,
body.single-event .gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    margin: 30px 0 !important;
    /* сбрасываем всё, что мешает */
    clear: both !important;
}

.single-event .gallery .gallery-item,
body.single-event .gallery .gallery-item {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
}

.single-event .gallery .gallery-item img,
body.single-event .gallery .gallery-item img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
    cursor: pointer !important;
}

.single-event .gallery .gallery-item img:hover,
body.single-event .gallery .gallery-item img:hover {
    transform: scale(1.03) !important;
}

.single-event .gallery .gallery-caption,
body.single-event .gallery .gallery-caption {
    display: none !important;
}

/* Убираем лишние <br> */
.single-event .gallery br,
body.single-event .gallery br {
    display: none !important;
}

.breadcrumbs a {
    color: #f26122;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs {
    font-size: 0.9rem;
    color: #6b7280;
}
/* ===== АДАПТИВ ШАПКИ И ГЕРОЯ ===== */

/* Шапка */
.site-header {
    padding: clamp(0.75rem, 4vw, 1.5rem) clamp(1rem, 5vw, 2rem);
}
.site-branding img {
    height: clamp(2rem, 6vw, 3.5rem);
    width: auto;
}
.nav-menu {
    gap: clamp(0.5rem, 2vw, 1.5rem);
}
.nav-menu a {
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
}
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    .site-branding {
        margin-bottom: 0.5rem;
    }
    .nav-menu {
        gap: 0.5rem 1rem;
        justify-content: center;
    }
}

/* Герой */
.hero-content-overlay h1 {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    line-height: 1.1;
}
.hero-content-overlay h2 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}
.hero-content-overlay p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4;
}
.hero-content-overlay {
    padding: clamp(1.5rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    max-width: 1152px;
}
@media (max-width: 1024px) {
    .hero-content-overlay {
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}
@media (max-width: 768px) {
    .hero-content-overlay {
        padding: 1rem;
        background: rgba(0,0,0,0.4);
        max-width: 100%;
    }
}

/* Кнопка */
.hero-content-overlay .btn,
.hero-content-overlay a[class*="bg-brand-orange"] {
    padding: clamp(0.6rem, 2vw, 1rem) clamp(1.2rem, 4vw, 2rem);
    font-size: clamp(0.8rem, 1.8vw, 1.125rem);
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    display: inline-block;
    text-align: center;
}

/* Пагинация */
.hero-pagination .dot {
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    margin: 0 clamp(4px, 0.5vw, 6px);
}

/* Общие отступы для контейнеров */
.container {
    padding: 0 clamp(1rem, 5vw, 2rem);
}
section {
    padding: clamp(2rem, 8vw, 4rem) 0;
}
/* ===== ШАПКА (десктоп) ===== */
.site-header {
    padding: 1.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: transparent;
}
@media (min-width: 1024px) {
    .site-header {
        padding: 1.5rem 4rem;
    }
}
.header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.site-branding {
    display: flex;
    align-items: center;
}
.site-branding img {
    height: 3.5rem;
    width: auto;
}
/* Навигация десктоп */
.primary-nav {
    display: flex;
}
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    color: #2b2a29;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #f26122;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2b2a29;
    transition: width 0.3s;
}
.nav-menu a:hover::after {
    width: 100%;
}

/* ===== БУРГЕР (скрыт на десктопе) ===== */
.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 40;
}
.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #2b2a29;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}
.burger-toggle.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== МОБИЛЬНЫЕ УСТРОЙСТВА (до 768px) ===== */
@media (max-width: 768px) {
    .site-header {
        position: relative;
        background: rgba(255,255,255,0.95) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        padding: 0.5rem 1rem !important;
    }
    .header-inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    .site-branding img {
        height: 2.5rem;
        width: auto;
    }
    .burger-toggle {
        display: flex !important;
    }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
        z-index: 50;
    }
    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        list-style: none;
        margin: 0;
        width: 100%;
    }
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        color: #2b2a29;
        text-decoration: none;
        font-weight: 500;
    }
    .nav-menu a:last-child {
        border-bottom: none;
    }
    .nav-menu a:hover {
        color: #f26122;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px) ===== */
@media (max-width: 480px) {
    .site-header {
        padding: 0.25rem 0.5rem !important;
    }
    .site-branding img {
        height: 2rem !important;
    }
    .burger-toggle {
        width: 24px !important;
        height: 18px !important;
    }
    .burger-line {
        height: 2px !important;
    }
    .burger-toggle.active .burger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .burger-toggle.active .burger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    .nav-menu a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    .primary-nav {
        padding: 0.5rem;
    }
}

/* ===== ПЕРЕОПРЕДЕЛЕНИЕ КОНТЕЙНЕРА ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 640px) {
    .container {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .header-inner {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
/* ===== ДЕСКТОПНАЯ ШАПКА (≥769px) ===== */
@media (min-width: 769px) {
    .site-header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;           /* растягиваем на всю ширину */
        max-width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 1.5rem 4rem !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 30 !important;
    }

    .header-inner {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .site-branding {
        margin-bottom: 0 !important;
    }

    .site-branding img {
        height: 3.5rem !important;
        width: auto !important;
    }

    .burger-toggle {
        display: none !important;
    }

    .primary-nav {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0 !important;
        width: auto !important;
        overflow: visible !important;
    }

    .nav-menu {
        flex-direction: row !important;
        gap: 1.5rem !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
        background: transparent !important;
        flex-wrap: wrap !important;
    }

    .nav-menu a {
        font-size: 0.875rem !important;
        padding: 0 !important;
        border-bottom: none !important;
        color: #2b2a29 !important;
        background: transparent !important;
        width: auto !important;
        text-align: left !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        position: relative !important;
    }

    .nav-menu a:hover {
        color: #f26122 !important;
        background: transparent !important;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #2b2a29;
        transition: width 0.3s;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    /* Убираем белый фон, если вдруг появился */
    .site-header,
    .site-header * {
        background: transparent !important;
    }

    /* Убираем отступы у контейнера, чтобы шапка была вровень с краями */
    .site-header .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
}
/* ===== ФУТЕР ===== */
footer.bg-text-dark {
    background-color: #2b2a29 !important;
    color: #ffffff !important;
}

footer.bg-text-dark a {
    color: #ccc;
    text-decoration: none;
}

footer.bg-text-dark a:hover {
    color: #fff;
}

/* Если нужны дополнительные Tailwind-классы для футера */
.text-white {
    color: #ffffff !important;
}
.py-6 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}
@media (min-width: 1024px) {
    .lg\:px-16 {
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
}
.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: #000000; /* чёрный по умолчанию */
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: #ffffff; /* белый при наведении */
}

/* Вертикальные видео-карточки */
.video-card.vertical-video {
    aspect-ratio: 9 / 16; /* вертикальный формат */
    max-height: 500px; /* чтобы не растягивались слишком высоко */
    margin: 0 auto;
    width: 100%;
}

.video-card.vertical-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* На мобилках чуть меньше высота */
@media (max-width: 768px) {
    .video-card.vertical-video {
        aspect-ratio: 4 / 6;
        max-height: 400px;
    }
}
/* Модальное окно для медиа */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
}

.modal-overlay.active {
    display: flex !important;
}

.media-modal .modal-box {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
    position: relative;
}

.media-modal .media-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 50vh;
}

.media-modal .media-container img,
.media-modal .media-container video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.media-modal .media-container video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    background: #000;
}

.media-modal .close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    cursor: pointer;
    background: none;
    border: none;
}

.media-modal .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 28px;
    border-radius: 50%;
    z-index: 1001;
    transition: background 0.3s;
}

.media-modal .nav-btn:hover {
    background: rgba(0,0,0,0.7);
}

.media-modal .nav-btn.prev {
    left: 20px;
}

.media-modal .nav-btn.next {
    right: 20px;
}

.media-modal .counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 1001;
}


.site-header .header-inner{
    max-width: 1400px !important;
}

.hero-content-overlay {
    max-width: 1400px;
    margin-left: auto;
    position: relative;
    margin-right: auto;
    padding: 0;
    height: 100vh;
}
@media (max-width: 1399px) {
   .hero-content-overlay {
        max-width: 100%;
        padding: 0 15px;
    }
}
@media (max-width: 767px) {
   .hero-content-overlay {
      background: transparent;
        height: auto;
        padding-top: 15px;
    }

    .hero-slider{
        position: relative !important;
    }
    .hero-slider .slide img{
        object-fit: cover;
        object-position: 99% 0%;
        height: 60%;
        width: 100%;
    }
    .hero-content-overlay .leading-relaxed > p{
        font-size: 14px;
        margin-bottom: 0px !important;
        line-height: 1.2;
    }
    .hero-content-overlay .text-base{
        margin-bottom: 10px;
    }
    .hero-content-overlay .btn, .hero-content-overlay a[class*="bg-brand-orange"] {
        width: 100%;
        line-height: 1;
    }
    .hero-slider{

    }
    .h-screen {
        height: 80vh !important;
    }
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
@media (max-width: 768px) {
    .text-lg {
        font-size: 0.9rem !important;
        line-height: 1.2rem !important;
    }
    .text-4xl {
        font-size: 1.5rem !important;
        line-height: 2.5rem;
    }
    .text-2xl {
        font-size: 1.1rem !important;
        line-height: 2rem;
    }
    .hero-content-overlay h1 {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
        line-height: 1.1;
    }
    #blogTabs .tab-btn {
        font-size: 0.6rem;
    }
    .blog-card-link .blog-title {
        font-size: 0.9rem;
    }
    .blog-link-all {
        font-size: 0.6rem;
    }
    .direction-card .card-title {
        font-size: 1rem;
    }
    .list-disc li{
        font-size: 0.9rem !important;
        line-height: 1.2rem !important;
    }
}
@media (max-width: 768px) {
    .main{

    }

    .hero-slider {
        position: absolute !important;
    }
    .name{
        top: 0;
        position: absolute;
        width: 92%;
        display: block;
        text-align: center;
    }
    .name h1{
        text-align: center;
        display: block;
    }
    .descr{
        position: absolute;
        bottom: 130px;
        width: 92%;
        display: block;
        text-align: center;
    }
    .descr > p{
        font-size: 12px !important;
    }

    .button_box{
        bottom: 75px;
        position: absolute;
        width: 92%;
    }
    .button_box > a {
        color: #fff;
    }
    .hero-content-overlay{
        height: 85vh !important;
        backdrop-filter:none;
        display: block;
        position: relative;
        background: linear-gradient(0deg, #ffffff 30%, #ffffff00 35%);
        
    }
    .hero-slider .slide img {
        object-fit: cover;
        object-position: 100% 0%;
        height: 75%;
        width: 100%;
    }


}

/* ===== КАРУСЕЛЬ "ПОЕЗДКИ И НАГРАДЫ" ===== */

/* Контейнер карусели */
.events-carousel {
    position: relative;
    overflow: hidden;
}

/* Дорожка слайдов */
.events-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Один слайд */
.events-carousel .carousel-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 12px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .events-carousel .carousel-slide {
        flex: 0 0 100%;
        padding: 0 8px;
    }
}

/* Ссылка-обёртка вокруг карточки */
.events-carousel .carousel-slide .event-card-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Карточка с фото */
.events-carousel .carousel-slide .event-card {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Кнопки-стрелки */
.events-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 20;
    transition: background 0.3s;
}

.events-carousel .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.events-carousel .carousel-btn.prev {
    left: 8px;
}

.events-carousel .carousel-btn.next {
    right: 8px;
}

/* Точки пагинации */
.events-carousel .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.events-carousel .dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.events-carousel .dots .dot.active {
    background: #f26122;
}

/* Если точки лежат ВНЕ .events-carousel — отдельные стили по id */
#eventDots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

#eventDots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

#eventDots .dot.active {
    background: #f26122;
}