/* Responsive Styles */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .header-content {
        gap: 1rem;
    }
    
    .contact-info {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .header-buttons {
        display: none;
    }
    
    .hero {
        padding: 4rem 0 3rem;
        margin-top: 70px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
        backdrop-filter: blur(3px);
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        padding: 5px;
    }

    .hero-subtitle {
        backdrop-filter: blur(3px);
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        padding: 5px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .chat-widget {
        width: 300px;
        height: 400px;
        bottom: 80px;
    }
}

/* Mobile screens (up to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .language-switcher {
        order: -1;
    }
    
    .hero {
        padding: 3rem 0 2rem;
        margin-top: 60px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        text-align: center;
    }
    
    .badge {
        justify-content: center;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services-grid,
    .pricing-grid,
    .advantages-grid,
    .reviews-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .quick-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-action-bar {
        display: flex;
    }
    
    body {
        padding-bottom: 80px;
    }
    
    .chat-widget {
        width: calc(100vw - 40px);
        height: 400px;
        bottom: 100px;
        right: 20px;
        left: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .service-card,
    .advantage-card,
    .review-card,
    .pricing-card {
        padding: 1.5rem;
    }
}

/* Small mobile screens (up to 480px) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .advantage-card,
    .review-card,
    .pricing-card {
        padding: 1.25rem;
    }
    
    .service-icon,
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .pricing-price .price {
        font-size: 2rem;
    }
    
    .cta-form {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.25rem;
    }
    
    .chat-widget {
        height: 350px;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Extra small screens (up to 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .service-card h3,
    .advantage-card h3 {
        font-size: 1.25rem;
    }
    
    .pricing-price .price {
        font-size: 1.75rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .cta-form {
        padding: 1.25rem;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-nav,
    .mobile-action-bar,
    .chat-widget,
    .chat-toggle,
    .cookie-banner,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero {
        margin-top: 0;
        padding: 2rem 0;
    }
    
    section {
        padding: 1.5rem 0;
        break-inside: avoid;
    }
    
    .service-card,
    .advantage-card,
    .review-card,
    .pricing-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        display: none;
    }
    
    a {
        text-decoration: underline;
    }
    
    .footer {
        background: #fff;
        color: #000;
        border-top: 2px solid #000;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000000;
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-800: #000000;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .service-card,
    .advantage-card,
    .review-card,
    .pricing-card {
        border: 2px solid #000;
    }
}

/* 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;
    }
    
    .service-card:hover,
    .advantage-card:hover,
    .review-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-color: #2a2a2a;
        --gray-50: #2a2a2a;
        --gray-100: #3a3a3a;
        --gray-200: #4a4a4a;
        --gray-300: #5a5a5a;
        --gray-800: #e0e0e0;
        --gray-700: #d0d0d0;
        --gray-600: #c0c0c0;
        --dark-color: #ffffff;
    }
    
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background-color: #fff;
        border-bottom-color: #4a4a4a;
    }
    
/*    .service-card,
    .advantage-card,
    .review-card,
    .pricing-card,
    .faq-item {
        background-color: #2a2a2a;
        border-color: #4a4a4a;
    }*/
    
    .modal-content,
    .cta-form {
/*        background-color: #2a2a2a;*/
        color: #e0e0e0;
    }
    
    .chat-widget {
        background-color: #2a2a2a;
    }
    
    .bot-message {
        background-color: #3a3a3a;
        color: #e0e0e0;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
