/* Responsive CSS */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-shape {
        width: 35%;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav {
        gap: 1.5rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-shape {
        display: none;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .navbar-toggler {
        display: block;
        border: none;
        background: transparent;
        font-size: 1.5rem;
        color: var(--color-primary-1);
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10;
        margin-left: auto;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -101%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 1100;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-collapse.show {
        left: 0;
    }
    
    .navbar-nav-mobile {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin-top: 3rem;
        padding: 0;
    }
    
    .navbar-nav-mobile .nav-item {
        margin: 0 0 1.5rem;
    }
    
    .navbar-nav-mobile .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .close-menu {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        background: transparent;
        border: none;
        color: var(--color-primary-1);
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10;
    }
    
    .team-grid,
    .features-grid,
    .coreinfo-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card,
    .priceplan-card {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        width: 85%;
    }
    
    .team-grid,
    .features-grid,
    .coreinfo-grid,
    .blog-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer [class^="col-"] {
        margin-bottom: 2rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .navbar-collapse {
        width: 100%;
    }
    
    .feature-card,
    .coreinfo-item,
    .features-item {
        padding: 1.5rem;
    }
    
    .service-card,
    .priceplan-card {
        padding: 1.5rem;
    }
    
    .review-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 0 1rem 1rem;
    }
}

/* Prefers reduced motion */
@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;
    }
    
    .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
        transition: none;
    }
    
    .swiper-container {
        --swiper-pagination-bullet-inactive-opacity: 0.5;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .features-item:hover,
    .priceplan-card:hover,
    .blog-card:hover,
    .coreinfo-item:hover {
        transform: none;
    }
    
    .gallery-item:hover .gallery-image {
        transform: none;
    }
    
    .nav-link::after {
        transition: none;
    }
}

/* Классы для разных типов устройств */
.is-desktop .navbar-nav {
    display: flex !important;
}

.is-desktop .navbar-toggler {
    display: none !important;
}

.is-mobile .navbar-nav {
    display: none !important;
}

.is-mobile .navbar-toggler {
    display: block !important;
} 