/* 
 * Адаптивные стили для domain.com
 * Обеспечивают корректное отображение на всех устройствах
 */

/* Большие десктопы */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Стандартные десктопы */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Планшеты */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .benefits-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        width: 30px;
        height: 20px;
        position: relative;
    }
    
    .menu-toggle span {
        display: block;
        height: 2px;
        background-color: var(--color-primary);
        position: absolute;
        left: 0;
        right: 0;
        transition: var(--transition);
    }
    
    .menu-toggle span:nth-child(1) {
        top: 0;
    }
    
    .menu-toggle span:nth-child(2) {
        top: 9px;
    }
    
    .menu-toggle span:nth-child(3) {
        top: 18px;
    }
    
    #menu-toggle-checkbox {
        display: none;
    }
    
    #menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    #menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--color-light);
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        margin: 15px 0;
    }
    
    .benefits-grid,
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content button {
        margin-top: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .header-container {
        padding: 12px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--color-light);
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        margin: 15px 0;
    }
    
    .benefits-grid,
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content button {
        margin-top: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

/* Маленькие мобильные устройства (до 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-contact,
    .footer-links {
        margin-top: 30px;
    }
    
    .testimonial blockquote {
        font-size: 1rem;
        padding: 15px;
    }
    
    .testimonial blockquote:before {
        font-size: 3rem;
    }
}

/* Средние планшеты и малые ноутбуки (от 992px до 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .about-content {
        gap: 30px;
    }
}

/* Большие экраны (более 1200px) */
@media (min-width: 1201px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Очень большие экраны (более 1400px) */
@media (min-width: 1401px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        height: 85vh;
    }
} 