/* Базовые настройки */
:root {
    --header-height-desktop: 100px;
    --header-height-tablet: 80px;
    --header-height-mobile: 60px;
    --container-padding-desktop: 40px;
    --container-padding-tablet: 20px;
    --container-padding-mobile: 16px;
    --border-radius-large: 20px;
    --border-radius-medium: 16px;
    --border-radius-small: 12px;
    --border-radius-mobile: 12px;
    --font-size-h1-mobile: 3.2rem;
    --font-size-h2-mobile: 2.4rem;
    --font-size-body-mobile: 1.6rem;
    --line-height-mobile: 1.5;
}

/* Добавляем стили для светлой темы */
body.light {
    background: var(--light-bg);
    color: #ffffff;
}

body.light .brand-card__location,
body.light .brand-card:first-child .brand-card__location {
    color: #ffffff;
}

/* ============================
   Медиа-запросы для брейкпоинтов
   ============================ */

/* Large Desktop */
@media (min-width: 1400px) {
    :root {
        font-size: 68.75%; /* 11px */
    }

    .container {
        max-width: 1320px;
        padding: 0 var(--container-padding-desktop);
    }
}

/* Desktop */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
        padding: 0 var(--container-padding-desktop);
    }
}

/* Small Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 var(--container-padding-tablet);
    }
}

/* Tablet */
@media (max-width: 991px) {
    :root {
        --header-height: var(--header-height-tablet);
    }

    .container {
        max-width: 720px;
    }
}

/* ============================
   Мобильные стили (основные)
   ============================ */
@media (max-width: 767px) {
    /* Header стили */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: #000000;
        z-index: 1000;
        box-shadow: none;
    }

    body.light .header {
        background: #ffffff;
    }

    .header__nav {
        height: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 -8px;
    }

    .header__logo {
        height: 50px;
        margin-left: -8px;
        display: flex;
        align-items: center;
    }

    .header__logo img {
        height: 100%;
        width: auto;
        max-height: none;
        display: block;
    }

    .header__menu {
        display: none;
    }

    .header__location {
        display: none;
    }

    .header__actions {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 32px;
        margin-right: -8px;
    }

    .action-btn,
    .mobile-toggle {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 18px;
        padding: 0;
    }

    .mobile-toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px !important;
        height: 32px !important;
    }

    .mobile-toggle.active {
        width: 32px !important;
        height: 32px !important;
    }

    .mobile-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff;
        position: absolute;
        transition: 0.3s;
    }

    .mobile-toggle span:first-child {
        transform: translateY(-6px);
    }

    .mobile-toggle span:nth-child(2) {
        transform: translateY(0);
    }

    .mobile-toggle span:last-child {
        transform: translateY(6px);
    }

    .mobile-toggle.active span:first-child {
        transform: translateY(0) rotate(45deg);
    }

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

    .mobile-toggle.active span:last-child {
        transform: translateY(0) rotate(-45deg);
    }

    /* Мобильное меню */
    .mobile-menu {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        background: #000000;
        z-index: 999;
        padding: 20px 16px;
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-menu__nav a {
        padding: 12px;
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Стили для мобильного меню города */
    .mobile-menu__location {
        margin-bottom: 20px;
        padding: 0 16px;
        position: relative;
        z-index: 1001;
    }

    .mobile-menu__location-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: #000000;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu__location-btn i {
        color: var(--color-gold);
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .mobile-menu__location-btn.active {
        border-color: var(--color-gold);
        background: rgba(212, 175, 55, 0.1);
    }

    .mobile-menu__location-btn.active i {
        transform: rotate(180deg);
    }

    /* Стили для выпадающего списка городов */
    .mobile-menu__cities {
        position: absolute;
        top: calc(100% + 4px);
        left: 16px;
        right: 16px;
        background: #000000;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1002;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        max-height: 300px;
        overflow-y: auto;
        padding: 8px 12px;
    }

    .mobile-menu__cities.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu__city {
        padding: 12px 16px;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: #000000;
        border-radius: 6px;
        margin-bottom: 4px;
    }

    .mobile-menu__city:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-menu__city.active {
        color: var(--color-gold);
        background: rgba(212, 175, 55, 0.1);
        border-color: var(--color-gold);
    }

    /* Светлая тема */
    body.light .mobile-menu__location-btn {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.1);
        color: var(--light-text);
    }

    body.light .mobile-menu__cities {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    body.light .mobile-menu__city {
        color: var(--light-text);
        border-color: rgba(0, 0, 0, 0.1);
        background: #ffffff;
    }

    body.light .mobile-menu__city:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    body.light .mobile-menu__city.active {
        background: rgba(212, 175, 55, 0.1);
        color: var(--color-gold);
    }

    /* Hero секция */
    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
        background: #000;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .hero__content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 40px 16px;
        position: relative;
        z-index: 2;
    }

    .hero__title {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 16px;
        color: #fff;
    }

    .hero__subtitle {
        font-size: 16px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 32px;
        max-width: 100%;
    }

    .hero__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        padding: 0 32px;
        background: var(--color-gold);
        color: #000;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        text-decoration: none;
        width: 100%;
        max-width: 280px;
    }

    .hero__footer {
        position: relative;
        z-index: 2;
        padding: 16px;
        background: rgba(0, 0, 0, 0.8);
    }

    /* Недавние события */
    .recent-events {
        padding: 32px 0;
    }

    .section-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .events-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .event-card {
        position: relative;
        height: 240px !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .event-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .event-card__content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0)
        );
    }

    .event-card__location {
        font-size: 1.6rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--color-gold);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .event-card__title {
        font-size: 1.4rem;
        font-weight: 400;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .event-card__date {
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.7);
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    /* Стили для секции анонсов на мобильных устройствах */
    .announcements {
        padding: 40px 0;
        background: #000;
    }

    .announcements__title {
        font-size: 32px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 16px;
        letter-spacing: -0.02em;
    }

    .announcements__description {
        font-size: 16px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 0;
    }

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

    .announcement-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 24px;
        display: flex;
        align-items: center;
        gap: 20px;
        transition: all 0.3s ease;
    }

    .announcement-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.06);
    }

    .announcement-card__icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .announcement-card__icon i {
        font-size: 24px;
        color: var(--color-gold);
    }

    .announcement-card__content {
        flex: 1;
        min-width: 0;
    }

    .announcement-card__title {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 8px;
        line-height: 1.4;
        letter-spacing: -0.01em;
    }

    .announcement-card__description {
        font-size: 15px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Улучшенные стили для маленьких экранов */
    @media (max-width: 360px) {
        .announcements {
            padding: 32px 0;
        }

        .announcements__title {
            font-size: 28px;
        }

        .announcements__description {
            font-size: 15px;
        }

        .announcement-card {
            padding: 20px;
            gap: 16px;
        }

        .announcement-card__icon {
            width: 36px;
            height: 36px;
            min-width: 36px;
        }

        .announcement-card__icon i {
            font-size: 16px;
        }

        .announcement-card__title {
            font-size: 16px;
        }

        .announcement-card__description {
            font-size: 14px;
            -webkit-line-clamp: 2;
        }
    }

    /* Ландшафтная ориентация */
    @media (max-height: 500px) and (orientation: landscape) {
        .announcements {
            padding: 24px 0;
        }

        .announcements__header {
            padding-bottom: 16px;
        }

        .announcements__list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .announcement-card {
            height: 100%;
        }
    }

    /* Стили для секции брендов */
    .brands {
        padding: 102px 0;
        width: 100%;
        overflow: hidden;
        position: relative;
        background: #000;
        min-height: fit-content;
    }

    .brands__container {
        padding: 0 16px;
        max-width: var(--container-width, 1320px);
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .brands-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        position: relative;
        height: auto;
        min-height: 100%;
    }

    /* Переопределяем стили для всех карточек, включая первую */
    .brand-card,
    .brand-card:first-child {
        position: relative;
        height: 240px !important;
        border-radius: 12px;
        overflow: hidden;
        flex: none !important;
        width: 100% !important;
        box-sizing: border-box;
        cursor: pointer;
    }

    .brand-card__image,
    .brand-card:first-child .brand-card__image {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .brand-card__image img,
    .brand-card:first-child .brand-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .brand-card__content,
    .brand-card:first-child .brand-card__content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0)
        );
        z-index: 2;
    }

    .brand-card__info,
    .brand-card:first-child .brand-card__info {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .brand-card__title,
    .brand-card:first-child .brand-card__title {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .brand-card__location,
    .brand-card:first-child .brand-card__location {
        font-size: 1.2rem;
        font-weight: 500;
        color: var(--color-gold);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* Скрываем стрелку и оверлей */
    .brand-card__arrow,
    .brand-card:first-child .brand-card__arrow,
    .brand-card__overlay,
    .brand-card:first-child .brand-card__overlay {
        display: none !important;
    }

    /* Отключаем все hover эффекты и анимации */
    .brand-card,
    .brand-card__image,
    .brand-card__content,
    .brand-card__info,
    .brand-card__title,
    .brand-card__location {
        transition: none !important;
        transform: none !important;
    }

    .brand-card:hover .brand-card__image img {
        transform: none !important;
    }

    .brand-card:active {
        opacity: 0.9;
    }

    /* Стили для секции брендов */
    .brands__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 16px;
    }

    .brands__grid .brand-card {
        width: 100% !important;
        height: 240px !important;
        margin: 0 !important;
    }

    .brands__grid .brand-card:not(:last-child) {
        margin-bottom: 16px !important;
    }

    /* Скрываем ненужные элементы */
    .brand-card__arrow,
    .brand-card__overlay {
        display: none !important;
    }

    /* Секция О нас */
    .about {
        padding: 40px 0;
        background: #000;
    }

    .about__container {
        padding: 0 16px;
    }

    .about__content {
        flex-direction: column;
        gap: 32px;
    }

    .about__image {
        flex: none;
        width: 100%;
        margin: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .about__image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .about__text {
        flex: none;
        text-align: left;
    }

    .about__title {
        font-size: 28px;
        margin-bottom: 16px;
        padding: 0;
        text-align: left;
    }

    .about__description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 32px;
        color: rgba(255, 255, 255, 0.9);
    }

    .about__contacts {
        padding-top: 24px;
        border-top: 1px solid rgba(212, 175, 55, 0.15);
    }

    .about__contacts h4 {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: left;
    }

    .about__contact-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .about__contact-item i {
        font-size: 20px;
    }

    .about__contact-item a {
        font-size: 14px;
        letter-spacing: 0.02em;
    }
}

/* ============================
   Специальные медиа-запросы
   ============================ */

/* Маленькие мобильные устройства */
@media (max-width: 575px) {
    .hero__title {
        font-size: 3.2rem;
    }

    .hero__subtitle {
        font-size: 1.6rem;
    }

    .event-card {
        height: 240px !important;
    }

    .announcement-card {
        padding: 15px;
    }

    .section-title {
        font-size: 2.4rem;
        margin-bottom: 25px;
    }

    /* Mobile Menu Improvements */
    .mobile-menu {
        padding: 20px 0;
        background: #000000;
    }

    .mobile-menu__nav {
        padding: 0 var(--container-padding-mobile);
    }

    .mobile-menu__nav a {
        display: block;
        padding: 15px;
        font-size: 1.8rem;
        border-radius: var(--border-radius-small);
        background: rgba(255, 255, 255, 0.03);
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }

    .mobile-menu__location {
        margin: 0 var(--container-padding-mobile) 20px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
    :root {
        --container-padding-mobile: 12px;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__subtitle {
        font-size: 1.4rem;
    }

    .event-card {
        height: 240px !important;
    }

    .event-card__title {
        font-size: 1.8rem;
    }

    .announcement-card__image {
        height: 180px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .brand-card,
    .brand-card:first-child {
        height: 240px !important;
    }
}

/* Сверхмаленькие экраны */
@media (max-width: 360px) {
    :root {
        --container-padding-mobile: 12px;
    }

    .event-card {
        height: 160px;
    }

    .event-card__title {
        font-size: 16px;
    }

    .announcement-card__image {
        height: 160px;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__button {
        height: 44px;
        font-size: 15px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .about {
        padding: 32px 0;
    }

    .about__title {
        font-size: 24px;
    }

    .about__description {
        font-size: 14px;
    }

    .about__contacts h4 {
        font-size: 18px;
    }

    .about__contact-item i {
        font-size: 18px;
    }

    .about__contact-item a {
        font-size: 13px;
    }

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

    .brand-card,
    .brand-card:first-child {
        height: 160px !important;
    }

    .brand-card__title {
        font-size: 14px;
    }
}

/* ============================
   Специальные состояния
   ============================ */

/* Ландшафтная ориентация */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .event-card {
        height: 180px !important;
    }

    .about {
        padding: 24px 0;
    }

    .about__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }

    .about__image {
        margin: 0;
    }

    .about__text {
        padding-top: 0;
    }

    .brands {
        padding: 24px 16px;
    }

    .brands__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card {
        height: 160px;
    }
}

/* iOS Safari Fix */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    .event-card__content {
        background: rgba(0, 0, 0, 0.9);
    }

    .announcement-card {
        border: 2px solid var(--color-white);
    }
}

/* Уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Стили для печати */
@media print {
    .header,
    .mobile-menu,
    .hero__footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .event-card,
    .announcement-card {
        break-inside: avoid;
    }
}

/* Стили для сенсорных устройств */
@media (hover: none) {
    .event-card,
    .announcement-card,
    .brand-card,
    .mobile-menu__nav a {
        transition: opacity 0.3s ease;
    }

    .event-card:active,
    .announcement-card:active,
    .brand-card:active,
    .mobile-menu__nav a:active {
        opacity: 0.7;
    }
}

/* Стили для футера */
.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #ffffff;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* Стили для светлой темы */
body.light .footer__links a {
    color: rgba(0, 0, 0, 0.7);
}

body.light .footer__links a:hover {
    color: #000000;
}

body.light .footer__copyright {
    color: rgba(0, 0, 0, 0.7);
}

/* Стили для фильтров в фотогалерее */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
        min-width: 0;
    }

    .filter-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 60vh;
        background: var(--background-color);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .filter-dropdown.active {
        max-height: 60vh;
    }

    .filter-option {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .filter-option:last-child {
        border-bottom: none;
    }

    .filter-actions {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }

    .apply-filters,
    .reset-filters {
        width: 100%;
        justify-content: center;
    }

    /* Стили для светлой темы */
    body.light .filter-dropdown {
        background: white;
    }

    body.light .filter-option {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
} 
    