/* Дополнительные адаптивные стили для сайта СпецСервис */

/* ==================== УЛУЧШЕНИЯ ДЛЯ ПЛАНШЕТОВ ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-slider .slide-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-slider .slide-description {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
    
    .header-contacts {
        font-size: 0.8rem;
    }
}

/* ==================== УЛУЧШЕНИЯ ДЛЯ МОБИЛЬНЫХ ==================== */
@media (max-width: 768px) {
    /* Header оптимизация */
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 140px;
        height: auto;
        max-height: 40px;
        object-fit: contain;
    }
    
    /* Показываем кнопку гамбургер на мобильных */
    .hamburger {
        display: flex;
    }
    
    /* Скрываем десктопную навигацию */
    .desktop-only {
        display: none;
    }
    
    /* Hero section оптимизация */
    .hero {
        min-height: 70vh;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-actions .btn {
        width: 100%;
        max-width: 250px;
        margin: 0.5rem 0;
    }
    
    
    .hero-slogan {
        padding: 1rem 0;
    }
    
    /* Навигация слайдера на мобильных */
    .slider-navigation {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .slider-indicators {
        bottom: 100px;
    }
    
    /* About section оптимизация */
    .about-item {
        padding: 1.5rem;
        text-align: left;
    }
    
    .about-icon {
        margin: 0 0 1rem 0;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-title {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    /* Services оптимизация */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-features {
        margin-bottom: 1rem;
    }
    
    /* Contacts оптимизация */
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    /* Footer оптимизация */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-navigation {
        margin-bottom: 1.5rem;
    }

    .footer-nav {
        gap: 1.5rem;
        justify-content: center;
    }

    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-description {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-description p {
        white-space: normal;
    }

    .footer-keywords {
        justify-content: center;
    }

    .footer-contacts {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    /* Калькулятор на мобильных */
    .calculator-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-calculator {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    /* Отзывы на мобильных */
    .testimonials-track {
        height: 450px;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-content::before {
        font-size: 2.5rem;
        top: -5px;
        left: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .testimonials-navigation {
        padding: 0 -40px;
    }
    
    .testimonial-prev {
        margin-left: -40px;
    }
    
    .testimonial-next {
        margin-right: -40px;
    }
}

/* ==================== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ==================== */
@media (max-width: 480px) {
    /* Header */
    .logo a {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 120px;
        height: auto;
        max-height: 35px;
        object-fit: contain;
    }
    
    /* Уменьшаем размер кнопки гамбургер на маленьких экранах */
    .hamburger {
        width: 25px;
        height: 20px;
    }
    
    .hamburger span {
        height: 2px;
    }
    
    /* Hero */
    .hero {
        min-height: 60vh;
    }
    
    .slide-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .slide-description {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        margin-bottom: 1.5rem;
    }
    
    .slide-actions {
        gap: 1rem;
    }
    
    .slide-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Навигация слайдера на маленьких экранах */
    .slider-navigation {
        padding: 0 0.5rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .slider-indicators {
        bottom: 80px;
    }
    
    .slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Sections */
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About */
    .about-item {
        padding: 1.25rem;
    }
    
    .about-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .about-title {
        font-size: 1rem;
    }
    
    .about-description {
        font-size: 0.9rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .service-features {
        font-size: 0.85rem;
    }
    
    /* Prices */
    .price-card {
        padding: 1.5rem;
    }
    
    .price-title {
        font-size: 1.25rem;
    }
    
    .price-list li {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
    
    /* Contact form */
    .contact-form-wrapper h3 {
        font-size: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-logo-img {
        width: 80px;
    }

    .footer-description p {
        font-size: 1rem;
    }

    .footer-keywords {
        justify-content: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Калькулятор на маленьких экранах */
    .calculator-header h3 {
        font-size: 1.4rem;
    }
    
    .calculator-field select {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    /* Отзывы на маленьких экранах */
    .testimonials-track {
        height: 500px;
    }
    
    .testimonial-content {
        padding: 1.25rem;
    }
    
    .testimonial-content::before {
        font-size: 2rem;
        top: 0;
        left: 15px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .testimonial-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-prev {
        margin-left: -20px;
    }
    
    .testimonial-next {
        margin-right: -20px;
    }
}

/* ==================== ОЧЕНЬ ШИРОКИЕ ЭКРАНЫ ==================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slide-title {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }
    
    .slide-description {
        font-size: clamp(1.2rem, 2vw, 1.5rem);
    }
}

/* ==================== УЛУЧШЕНИЯ ДОСТУПНОСТИ ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-slider {
        transition: none;
    }
    
    .slide {
        animation: none;
    }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    .service-card,
    .about-item,
    .price-card,
    .contact-item {
        border: 2px solid var(--primary-orange);
    }
    
    .btn-primary {
        border: 2px solid var(--text-white);
    }
}

/* ==================== TOUCH ОПТИМИЗАЦИЯ ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем размеры кликабельных элементов */
    .mobile-menu-btn {
        padding: 1rem;
    }
    
    .slider-btn {
        width: 60px;
        height: 60px;
    }
    
    .slider-indicator {
        width: 16px;
        height: 16px;
    }
    
    .btn {
        padding: 1rem 2rem;
        min-height: 48px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .mobile-nav-link {
        padding: 1.25rem 0;
    }
    
    /* Убираем hover эффекты */
    .service-card:hover,
    .about-item:hover,
    .price-card:hover,
    .contact-item:hover {
        transform: none;
        border-color: inherit;
    }
    
    .btn-primary:hover {
        transform: none;
        background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    }
}

/* ==================== ПЕЧАТЬ ==================== */
@media print {
    .header,
    .mobile-menu,
    .slider-navigation,
    .slider-indicators,
    .contact-form-wrapper,
    .map-container {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        height: auto;
        min-height: auto;
    }
    
    .slide-background {
        display: none;
    }
    
    .slide-content {
        position: static;
        color: #000;
        background: #fff;
        padding: 2rem 0;
    }
    
    .slide-title,
    .section-title,
    .about-title,
    .service-title {
        color: #000 !important;
    }
    
    .slide-description,
    .section-subtitle,
    .about-description,
    .service-description {
        color: #333 !important;
    }
    
    .services-grid,
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .service-card {
        min-height: 280px;
    }
    
    .service-card,
    .about-item {
        border: 1px solid #ccc !important;
        background: #fff !important;
        break-inside: avoid;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
    }
}


