/* Адаптивный дизайн для лендинга OG Lounge */

/* Общие медиа-запросы */

/* Мониторы и ноутбуки (большие экраны) */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Ноутбуки и планшеты (средние экраны) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Планшеты (768px - 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Навигация */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-darker);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
    }
    
    .nav-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.3);
        border-radius: var(--border-radius);
        color: var(--color-gold);
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(255, 215, 0, 0.2);
        transform: scale(1.05);
    }
    
    /* Герой секция */
    .hero {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    /* Галерея */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Форма бронирования */
    .booking-content {
        grid-template-columns: 1fr;
    }
    
    .booking-info {
        padding-right: 0;
        text-align: center;
    }
    
    .booking-features {
        align-items: center;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    /* Контакты */
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .contacts-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Мобильные устройства (576px - 768px) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Герой секция */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        gap: 20px;
        padding: 20px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Услуги */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Галерея */
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    /* Меню */
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .menu-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Форма */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-form-container {
        padding: 25px;
    }
    
    /* Контакты */
    .contacts-info {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-item {
        padding: 25px;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Маленькие мобильные устройства (до 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Навигация */
    .nav-menu {
        padding: 20px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    /* Герой секция */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 15px;
        padding: 15px;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    /* Услуги */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Галерея */
    .gallery-item {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 20px;
    }
    
    /* Меню */
    .menu-item {
        padding: 20px 15px;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .menu-item-price {
        align-self: flex-start;
    }
    
    /* Форма */
    .booking-form-container {
        padding: 20px;
    }
    
    .booking-contacts {
        padding: 20px;
    }
    
    /* Контакты */
    .contact-item {
        padding: 20px 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.3rem;
    }
    
    /* Футер */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo .logo-text {
        font-size: 1.8rem;
    }
    
    .footer-logo .logo-sub {
        font-size: 1.3rem;
    }
}

/* Очень маленькие устройства (до 375px) */
@media (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .service-card,
    .menu-item,
    .contact-item {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Планшеты в портретной ориентации */
@media (max-width: 992px) and (orientation: portrait) {
    .hero {
        min-height: 90vh;
    }
    
    .gallery-item {
        height: 300px;
    }
}

/* Планшеты в альбомной ориентации */
@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

/* Ориентация и высота экрана */
@media (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        margin-bottom: 30px;
    }
    
    .hero-stats {
        margin-top: 30px;
    }
}

/* Поддержка landscape на мобильных */
@media (max-height: 400px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Высококонтрастный режим */
@media (prefers-contrast: high) {
    :root {
        --color-dark: #000000;
        --color-white: #ffffff;
        --color-gold: #ffd700;
        --color-neon-green: #00ff00;
    }
    
    .nav-link,
    .hero-subtitle,
    .section-subtitle {
        text-shadow: none;
    }
    
    .btn-primary,
    .btn-secondary {
        border-width: 3px;
    }
}

/* Режим пониженной анимации */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-indicator,
    .service-card,
    .gallery-item,
    .menu-item,
    .contact-item {
        animation: none !important;
        transition: none !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-desc,
    .hero-buttons,
    .hero-stats {
        animation: none !important;
    }
    
    .parallax-item {
        transform: none !important;
    }
}

/* Тёмный режим по умолчанию */
@media (prefers-color-scheme: dark) {
    :root {
        --color-dark: #050505;
        --color-darker: #000000;
        --color-dark-light: #0a0a0a;
    }
    
    .services,
    .menu,
    .booking,
    .footer {
        background: var(--color-darker);
    }
    
    .service-card,
    .menu-item,
    .contact-item,
    .booking-form-container,
    .booking-contacts {
        background: rgba(15, 15, 15, 0.9);
    }
}

/* Светлый режим (если потребуется в будущем) */
@media (prefers-color-scheme: light) {
    :root {
        --color-dark: #f5f5f5;
        --color-darker: #e0e0e0;
        --color-dark-light: #ffffff;
        --color-white: #000000;
        --color-gray: #666666;
        --color-gray-light: #333333;
        --color-gray-dark: #dddddd;
    }
    
    body {
        color: var(--color-white);
    }
    
    .nav-link,
    .service-title,
    .contact-details h3,
    .footer-section h3 {
        color: var(--color-white);
    }
    
    .service-desc,
    .contact-details p,
    .footer-desc,
    .footer-links li a,
    .footer-hours li,
    .footer-bottom p {
        color: var(--color-gray);
    }
}

/* Печать */
@media print {
    .navbar,
    .hero-buttons,
    .nav-toggle,
    .scroll-indicator,
    .booking-form,
    .social-links,
    .newsletter-form,
    .map-overlay .btn-outline {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto !important;
        background: white !important;
    }
    
    .hero-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}