/*
Theme Name: Taxi Theme
Description: Шаблон такси на основе Vovker
Version: 2.0
Author: Theme Author
*/

/* Переменные, компоненты, layout и футер подключаются
   через wp_enqueue_style в inc/enqueue-scripts.php */

/* ========== ОБЩИЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-gray-dark);
    min-height: 100vh;
}

/* Шапка статичная и занимает место в потоке,
   поэтому компенсирующий отступ сверху контенту не нужен. */

/* ========== HEADER ========== */
/* Шапка не залипает: уезжает вверх вместе со страницей.
   На внутренних страницах занимает место в потоке. */
.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

/* На главной шапка лежит поверх hero, иначе прозрачная часть
   показывала бы светлый фон страницы, а не картинку.
   Фон здесь не задаём — он приходит из настроек Customizer. */
body.home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* На страницах с hero-секцией хедер также абсолютный */
body.page-with-hero .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header.scrolled {
    background: rgba(13, 17, 23, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-height);
    /* Пустые текстовые узлы (переносы строк между тегами шапки)
       создают анонимный inline-элемент с наследованным line-height —
       он и давал серую полосу сверху. Обнуляем только внутри шапки,
       чтобы не сломать интерлиньяж текстов на остальных страницах. */
    line-height: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-container img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Текстовый логотип */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-white);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.site-logo .logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold-light));
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo .logo-icon svg {
    width: 26px;
    height: 26px;
}

/* Картинка логотипа, когда рядом стоит текст */
.site-logo .logo-mark {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo .logo-img {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-logo .logo-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Описание сайта — обычная фраза, поэтому без caps и широкой разрядки */
.site-logo .logo-tagline {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-dim);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Телефон и Telegram в шапке */
.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.15);
    color: var(--color-primary);
}

.header-phone-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.header-phone-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.header-phone-info a {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    white-space: nowrap;
}

.header-phone-info a:hover {
    color: var(--color-primary);
}

.header-phone-info small {
    font-size: 11px;
    color: var(--color-text-dim);
    font-weight: 400;
}

.header-phone-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-phone-social .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Обводка/фон задаётся через настройку «Цвет фона кружка»
       в Customizer (inline-стиль в enqueue-scripts.php). */
    background: rgb(13 17 23);
    border-radius: 50%;
    overflow: hidden;
    color: var(--social-color, var(--color-primary));
    transition: transform 0.3s ease;
}

.header-phone-social .social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--social-color, var(--color-primary));
    transition: fill 0.3s ease;
}

.header-phone-social .social-link .social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.header-phone-social .social-link:hover {
    transform: translateY(-2px);
}

.header-phone-social .social-link:hover svg {
    fill: var(--color-primary);
}

.btn-telegram {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-telegram), var(--color-telegram-dark));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

.btn-telegram svg {
    width: 20px;
    height: 20px;
}

/* Контакты в мобильном меню */
.mobile-menu-contact {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-phone {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 16px;
}

.site-title-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.site-title {
    color: var(--color-yellow);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.site-title-link:hover .site-title {
    color: var(--color-dark-yellow);
}

/* ========== HEADER PHONE ========== */
.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    background: var(--color-yellow);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: var(--color-dark-yellow);
    transform: translateY(-2px);
}

.phone-icon {
    font-size: 18px;
}

/* ========== ГАМБУРГЕР МЕНЮ ========== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    margin-left: 15px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-yellow);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ========== ПЛАВНАЯ ПРОКРУТКА И ЯКОРЯ ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Отступ для фиксированного хедера */
}

/* ========== ДЕСКТОПНОЕ МЕНЮ ========== */
.main-navigation {
    flex-shrink: 0;
}

/* ========== ПЛАВАЮЩИЙ ЛОГОТИП ========== */
.floating-logo {
    position: fixed;
    right: var(--floating-logo-right, 20px);
    bottom: var(--floating-logo-bottom, 20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.4);
}

.floating-logo img {
    display: block;
    object-fit: contain;
}

/* Адаптивность для плавающего логотипа */
@media (max-width: 768px) {
    .floating-logo {
        right: 10px;
        bottom: 10px;
    }
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    position: relative;
}

.main-menu li {
    margin: 0;
    position: relative;
}

.main-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: block;
    padding: 5px 10px;
    /* Наследуется line-height:0 от .header-inner — задаём свой,
       иначе текст пунктов меню схлопнется в одну строку. */
    line-height: 1.4;
}

.main-menu a:hover {
    opacity: 0.8;
}

/* Выпадающее меню */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-secondary);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li {
    margin: 0;
}

.main-menu .sub-menu a {
    padding: 10px 20px;
    color: var(--color-white);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.main-menu .sub-menu a:hover {
    background: rgba(212, 168, 67, 0.1);
    border-left-color: var(--color-yellow);
    opacity: 1;
}

/* Стрелочка для пунктов с подменю */
.main-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}

.main-menu li.menu-item-has-children > a::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.main-menu li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
/* Шапка статичная, поэтому меню привязываем к ней (absolute),
   а не к окну — иначе при прокрутке оно повисло бы отдельно. */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-secondary);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: var(--color-yellow);
}

.mobile-menu-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 15px 10px;
    cursor: pointer;
}

/* Пункт с подменю - не ссылка, а текст */
.mobile-menu-list .submenu-label {
    display: block;
    padding: 15px 40px 15px 10px;
    color: var(--color-white);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
}

.mobile-menu-list .submenu-label:hover {
    color: var(--color-yellow);
}

/* Стрелочка для пунктов с подменю */
.mobile-menu-list .submenu-label::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.mobile-menu-list .sub-menu.expanded + .submenu-label::after,
.mobile-menu-list li.menu-item-has-children.expanded > .submenu-label::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a,
.mobile-menu-list .current_page_item > a {
    color: var(--color-yellow);
}

/* Мобильное выпадающее меню */
.mobile-menu-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-list .sub-menu.expanded {
    max-height: 500px;
}

.mobile-menu-list .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-list .sub-menu a {
    padding: 12px 10px 12px 25px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-list .sub-menu a:hover {
    color: var(--color-yellow);
    background: rgba(212, 168, 67, 0.05);
}

/* Кнопка раскрытия подменю */
.mobile-menu-list .submenu-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    z-index: 100;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.mobile-menu-list .submenu-toggle:hover {
    color: var(--color-yellow);
}

.mobile-menu-list li.menu-item-has-children {
    position: relative;
}

.mobile-menu-list li.menu-item-has-children > a {
    padding-right: 40px;
}

.mobile-menu-footer {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px;
    background: var(--color-yellow);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-phone-link:hover {
    background: var(--color-dark-yellow);
}

/* Мобильные соцсети */
.mobile-menu-social {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Ссылки лежат прямо в контейнере (без вложенного .social-links),
       поэтому центрируем их здесь */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.mobile-menu-social .social-label {
    display: block;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-menu-social .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-menu-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(212, 168, 67, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-menu-social .social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-yellow);
}

.mobile-menu-social .social-link .social-icon-img {
    /* Кастомные иконки из Customizer приходят как <img> —
       без этого правила они рендерились бы в натуральном размере */
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}

.mobile-menu-social .social-link:hover {
    background: var(--color-yellow);
    transform: translateY(-3px);
}

.mobile-menu-social .social-link:hover svg {
    fill: var(--color-secondary);
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 1100px) {
    .hamburger {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .site-title {
        font-size: 1.2rem;
    }
}

/* Телефон и Telegram в шапке скрываются только на узких экранах —
   на планшете они помещаются рядом с бургером */
@media (max-width: 600px) {
    .header-contact {
        display: none;
    }
}

/* Блокировка прокрутки при открытом меню */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1rem;
    }

    .logo-container img,
    .site-logo .logo-img {
        max-height: 35px;
    }

    .site-logo {
        font-size: 15px;
        gap: 8px;
    }

    .site-logo .logo-icon {
        width: 36px;
        height: 36px;
    }

    .site-logo .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .site-logo .logo-tagline {
        font-size: 10px;
        letter-spacing: 0.2px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
}

/* Hero и секции — в assets/css/taxi-sections.css */
/* Стили футера — в assets/css/footer-styles.css */

/* ========== БЛОК ОТЗЫВОВ (Яндекс) ========== */
/* Размеры задаёт виджет Яндекса (560x800).
   Здесь только центрирование и адаптив по ширине экрана. */
.reviews-content {
    display: flex;
    justify-content: center;
}

/* На узких экранах виджет не должен вылезать за границы.
   Высота 800px остаётся — её задаёт сам iframe Яндекса. */
@media (max-width: 600px) {
    .reviews-content > div {
        width: 100% !important;
        max-width: 560px;
    }
}

/* ========== БЛИЖАЙШИЕ МЕРОПРИЯТИЯ ========== */
.upcoming-events-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
}

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

/* Адаптивность для мероприятий */
@media (max-width: 768px) {
    .upcoming-events-section {
        padding: 60px 0;
    }

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

    .event-date-badge {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .upcoming-events-section {
        padding: 40px 0;
    }

    .event-date-badge .day {
        font-size: 1.2rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-content {
        padding: 15px;
    }
}

/* ========== СТРАНИЦА АРХИВА МЕРОПРИЯТИЙ ========== */
.events-archive-section {
    padding: 80px 0;
    background: var(--color-white);
}

.events-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Пагинация */
.events-pagination {
    text-align: center;
    margin-top: 40px;
}

.events-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.events-pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
}

.events-pagination .page-numbers:hover:not(.current) {
    background: var(--color-gray-light);
    color: var(--color-primary);
}

/* Адаптивность для архива */
@media (max-width: 1024px) {
    .events-archive-section {
        padding: 60px 0;
    }

    .events-archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .event-archive-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .events-archive-section {
        padding: 50px 0;
    }

    .events-archive-grid {
        grid-template-columns: 1fr;
    }

    .event-archive-image {
        height: 200px;
    }

    .event-archive-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .events-archive-section {
        padding: 40px 0;
    }

    .event-archive-image {
        height: 180px;
    }

    .event-archive-content {
        padding: 15px;
    }
}

/* ========== СТРАНИЦА ОДНОГО МЕРОПРИЯТИЯ ========== */
.single-event-section {
    padding: 80px 0 120px;
    background: var(--color-white);
    min-height: calc(100vh - 150px);
}

.single-event {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden; /* Оставляем hidden для защиты layout */
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 40px;
}

.single-event-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-gray-light);
}

.single-event-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.single-event-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--color-gray);
    font-size: 1rem;
}

.single-event-meta i {
    color: var(--color-primary);
}

.single-event-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    position: relative;
}

.single-event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-event-content {
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    font-size: 1.05rem;
}

.single-event-content p {
    margin-bottom: 15px;
}

.single-event-content ul,
.single-event-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.single-event-content li {
    margin-bottom: 8px;
}

/* Блоки с контентом */
.single-event-program,
.single-event-gallery,
.single-event-video {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--color-gray-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.single-event-program h3,
.single-event-gallery h3,
.single-event-video h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

.program-content {
    line-height: 1.8;
    color: var(--color-gray-dark);
    white-space: pre-line;
}

/* Фотогалерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Видео */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--color-black);
    border-radius: var(--radius-lg);
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Кнопка "Вернуться" */
.single-event-back {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--color-gray-light);
}

/* Адаптивность для одного мероприятия */
@media (max-width: 1024px) {
    .single-event {
        padding: 35px;
    }

    .single-event-title {
        font-size: 2rem;
    }

    .single-event-featured-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .single-event {
        padding: 30px 20px;
        overflow-y: auto; /* Разрешаем вертикальную прокрутку на мобильных */
        max-height: none; /* Убираем ограничения высоты */
    }

    .single-event-title {
        font-size: 1.8rem;
    }

    .single-event-featured-image {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .single-event-section {
        padding: 60px 0 80px;
    }

    .single-event {
        padding: 25px 15px;
        overflow-y: auto; /* Разрешаем вертикальную прокрутку */
        max-height: none; /* Убираем ограничения высоты */
    }

    .single-event-title {
        font-size: 1.6rem;
    }

    .single-event-featured-image {
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 120px;
    }

    .single-event-program,
    .single-event-gallery,
    .single-event-video {
        padding: 20px;
    }

    .single-event-program h3,
    .single-event-gallery h3,
    .single-event-video h3 {
        font-size: 1.4rem;
    }
}

/* ========== СТРАНИЦА КОНТАКТОВ ========== */
.contact-page {
    background: var(--color-white);
    padding-bottom: 80px;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Контактная информация */
.contact-info {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-gray-light);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin: 0;
}

.contact-details a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Соцсети */
.contact-social {
    margin-top: 20px;
}

.contact-social h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-block;
    background: var(--color-gray-light);
    color: var(--color-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateX(5px);
}

/* Карта */
.contact-map {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Форма обратной связи */
.contact-form-section {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Стили для формы контактов */
.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--color-gray-dark);
    transition: all 0.3s ease;
    background: var(--color-white);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    width: auto;
}

.contact-form .btn-primary:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, transparent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== СТИЛИ БАЛУНА КАРТЫ ========== */
.balloon-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.balloon-photo-container {
    text-align: center;
    padding: 15px;
    background: var(--color-gray-light);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.balloon-photo {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
    margin-bottom: 10px;
}

.balloon-photo-caption {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin: 0;
    font-style: italic;
}

.balloon-route-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.balloon-route-btn:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, transparent);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Адаптивность для контактов */
@media (max-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
    }

    .contact-form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .contact-info,
    .contact-map,
    .contact-form-section {
        padding: 30px 25px;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-section-title {
        font-size: 1.6rem;
    }

    .contact-info,
    .contact-map,
    .contact-form-section {
        padding: 25px 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-icon {
        font-size: 2rem;
        min-width: auto;
    }

    .map-container {
        height: 300px;
    }

    .contact-form .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* ========== СТРАНИЦА "О НАС" ========== */
.about-page {
    padding-top: 70px;
    background: var(--color-white);
    padding-bottom: 80px;
}

.about-page-section {
    padding-top: 0;
}

.about-story-block {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.about-section-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-gray-dark);
}

.values-section {
    margin-bottom: 80px;
}

.value-item {
    background: #fff;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--color-primary);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.value-title {
    color: var(--color-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Галерея на странице "О нас" */
.about-gallery {
    margin-bottom: 80px;
}

.about-gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-secondary);
}

/* Призыв к действию */
.about-cta {
    background: var(--color-tertiary);
    color: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-subtitle {
    opacity: 0.9;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

/* Адаптивность для "О нас" */
@media (max-width: 768px) {
    .about-story-block {
        margin-bottom: 60px;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .about-gallery {
        margin-bottom: 60px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gallery-item {
        height: 200px;
    }

    .about-cta {
        padding: 50px 30px;
    }

    .cta-title {
        font-size: 2rem;
    }
}

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

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

    .gallery-item {
        height: 180px;
    }

    .about-cta {
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

/* Форма расчёта на главной — в assets/css/taxi-sections.css */

/* ========== БЛОГ ========== */
.blog-page {
    padding-top: var(--spacing-xxl);
}

.mobile-blog-filters {
    margin-bottom: 40px;
}

.mobile-filters-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.mobile-filters-toggle:hover {
    border-color: var(--color-primary);
}

.toggle-icon {
    font-size: 1.2rem;
}

.toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-filters-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.mobile-filters-content {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.mobile-filters-content.active {
    display: block;
}

/* Поиск */
.search-container form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-submit {
    padding: 12px 20px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, transparent);
}

.search-submit svg {
    fill: var(--color-white);
}

/* Категории */
.categories-container {
    margin-top: 20px;
}

.categories-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    background: var(--color-white);
}

.categories-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Последние записи */
.recent-posts-container {
    margin-top: 20px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.recent-post-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-title {
    display: block;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-post-title:hover {
    color: var(--color-primary);
}

.recent-post-date {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Сетка блога */
.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-main {
    width: 100%;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-categories {
    padding: 15px 20px 0;
}

.post-categories a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
}

.entry-header {
    padding: 15px 20px 10px;
}

.entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.4;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    display: flex;
    gap: 20px;
    padding: 0 20px 15px;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.entry-meta i {
    color: var(--color-primary);
    margin-right: 5px;
}

.entry-excerpt {
    padding: 0 20px 20px;
    color: var(--color-gray-dark);
    line-height: 1.7;
}

.read-more {
    padding: 0 20px 20px;
}

.btn-blog {
    display: inline-block;
    padding: 10px 25px;
    background: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-blog:hover {
    background: color-mix(in srgb, var(--color-secondary) 85%, transparent);
    transform: translateY(-2px);
}

/* Пагинация блога */
.pagination {
    margin-top: 40px;
    text-align: center;
}

/* Нет записей */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.no-posts p {
    color: var(--color-gray);
    margin-bottom: 20px;
}

/* Адаптивность для блога */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-thumbnail {
        height: 200px;
    }

    .entry-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .post-thumbnail {
        height: 180px;
    }

    .entry-title {
        font-size: 1.2rem;
    }

    .entry-header,
    .entry-excerpt,
    .read-more {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Header на очень маленьких экранах */
    .site-title {
        font-size: 1rem;
    }

    .logo-container img,
    .site-logo .logo-img {
        max-height: 40px;
    }

    /* На узких экранах описание сайта убираем, чтобы шапка не распухала */
    .site-header .site-logo .logo-tagline {
        display: none;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
}

/* ������ ?400px (��������� ���������) */
@media (max-width: 400px) {
    /* ����� ���������� */
    .site-title {
        font-size: 0.9rem;
    }

    .mobile-menu {
        padding: 16px 12px;
    }

    .mobile-menu-list a {
        font-size: 1rem;
        padding: 10px 0;
    }

    /* ������� � ��������� ���� ���������� */
    .mobile-menu-social {
        gap: 8px;
    }

    .mobile-menu-social .social-link {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-social .social-link svg,
    .mobile-menu-social .social-link .social-icon-img {
        width: 18px;
        height: 18px;
    }

    .mobile-menu-phone {
        font-size: 1rem;
    }

    .post-thumbnail {
        height: 150px;
    }

    .entry-title {
        font-size: 1.1rem;
    }
}
