/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .attractions-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }
    
    .attraction-item.large {
        grid-column: 1 / 3;
        grid-row: 1;
        height: 300px;
    }
    
    .attraction-item {
        height: 250px;
    }
    
    .nature-content {
        gap: 2rem;
    }
    
    .nature-image {
        width: 350px;
        height: 400px;
    }
    
    .investment-content {
        gap: 2rem;
    }
    
    .timeline-item {
        margin-bottom: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Landscape */
/* Mobile Landscape */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero {
        padding: 0 15px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nature-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nature-text .section-title {
        text-align: center;
    }
    
    .investment-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .investment-text .section-title {
        text-align: center;
    }
    
    .investment-cta {
        justify-content: center;
    }
    
    /* 🚀 ИСПРАВЛЕНИЕ: СБРОС СТИЛЕЙ ПРОГРАММЫ ТУРА */
    .culture-timeline::before {
        /* Убираем вертикальную линию */
        display: none; 
    }
    
    .timeline-item {
        /* 💥 КЛЮЧ: Принудительно ставим вертикальный столбец! */
        flex-direction: column !important;
        align-items: center;
        padding-left: 0; /* Убираем лишний левый отступ */
        margin-bottom: 3rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: center; /* Центрируем текст, который раньше выравнивался по левому краю */
    }
    
    .timeline-icon {
        /* Убираем иконку (если она использовалась для таймлайна) */
        display: none; 
    }
    
    .timeline-content {
        flex: none; /* Сброс flex: 1 */
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
    
    .timeline-image {
        order: -1; /* Изображение над текстом */
        width: 100%; /* Гарантия полной ширины */
    }

    .timeline-image img {
        width: 100%; /* Изображение заполняет весь контейнер */
        height: auto;
    }
}

/* Mobile Portrait */
/* Mobile Portrait */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .attractions {
        padding: 4rem 0;
    }
    
    .nature {
        padding: 4rem 0;
    }
    
    .culture {
        padding: 4rem 0;
    }
    
    .investment {
        padding: 4rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .attractions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .attraction-item.large {
        grid-column: 1;
        height: 250px;
    }
    
    .attraction-item {
        height: 200px;
    }
    
    .attraction-overlay {
        padding: 1.5rem;
    }
    
    .nature-image {
        width: 100%;
        max-width: 300px;
        height: 350px;
    }
    
    .investment-stats {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }

    /* 🚀 ДОПОЛНИТЕЛЬНАЯ КОРРЕКЦИЯ ДЛЯ ПРОГРАММЫ (ПОРТРЕТ) */
    .timeline-item {
        /* Гарантируем отступы */
        margin-bottom: 2rem; 
    }
    .timeline-content h3 {
        /* Уменьшаем размер, чтобы помещалось */
        font-size: 1.4rem; 
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .attraction-overlay {
        padding: 1rem;
    }
    
    .attraction-title {
        font-size: 1.25rem;
    }
    
    .nature-image {
        height: 300px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.25rem;
    }
    
    .investment-cta {
        flex-direction: column;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero {
        min-height: 90vh;
    }
    
    .title-main {
        font-size: 1.5rem;
    }
    
    .title-highlight {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-card,
    .timeline-content,
    .stat-card {
        padding: 1rem;
    }
    
    .card-title,
    .timeline-content h3 {
        font-size: 1.125rem;
    }
    
    .attraction-item,
    .attraction-item.large {
        height: 180px;
    }
    
    .nature-image {
        height: 250px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        margin-top: 60px;
    }
    
    .title-main {
        font-size: 1.5rem;
    }
    
    .title-highlight {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-attachment: scroll;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .hero-background {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-scroll,
    .nav-toggle,
    .cta-button,
    .attraction-btn,
    .social-links {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-content {
        color: #000;
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
        color: #000;
    }
    
    .section-subtitle {
        font-size: 14pt;
        color: #333;
    }
}
