/* Responsive Styles */

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .navbar {
        width: 100%;
        position: relative;
        padding-left: 1rem;
        padding-right: 1rem;
        position: relative;
        z-index: 9999;
    }
    
    /* Полные стили для мобильного меню */
    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        z-index: 9999;
        padding: 8px;
        margin-left: auto;
        background: transparent;
        border: none;
        cursor: pointer !important;
        height: 40px;
        width: 40px;
    }
    
    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 9998;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 80px 20px 20px;
        overflow-y: auto;
        transition: all 0.3s ease;
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-menu li {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 15px 0;
    }
    
    .navbar-menu li a {
        display: block;
        padding: 10px 15px;
        font-size: 18px;
    }
    
    /* Дополнительные стили для улучшения кликабельности */
    .mobile-menu-toggle * {
        pointer-events: auto !important;
    }
    
    /* Стили для закрытия меню */
    .navbar-menu::before {
        content: "×";
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        z-index: 10000;
    }
    
    .hero-slide {
        height: 70vh;
    }
    
    .about-content, 
    .additional-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text,
    .about-image,
    .additional-text,
    .additional-image {
        flex: none;
        width: 100%;
    }
    
    .priceplan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .coreinfo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero-slide {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-feature,
    .features-grid,
    .services-grid,
    .priceplan-grid,
    .additional-elements,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .services-selection {
        grid-template-columns: 1fr;
    }
    
    .donation-options {
        flex-direction: column;
        align-items: center;
    }
    
    .donation-amount {
        width: 80%;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }
    
    h1, .hero-title {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-slide {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
    }
    
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .coreinfo-grid {
        grid-template-columns: 1fr;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Глобальные правила для предотвращения горизонтального скролла */
@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
} 