/*
* Автошкола "Фортуна" - Адаптивні стилі
* Версія: 1.0
* Останнє оновлення: 20.10.2023
*/

/* ===== ВЕЛИКІ ЕКРАНИ (Large) ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* ===== СЕРЕДНІ ЕКРАНИ (Medium) ===== */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-content {
        width: 100%;
        padding: 60px 15px;
        order: 2;
    }
    
    .hero-image {
        width: 100%;
        height: 400px;
        order: 1;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .feature-card,
    .course-card,
    .testimonial,
    .team-member,
    .advantage-item,
    .achievement-item,
    .pricing-card {
        max-width: 100%;
    }
    
    .about-content,
    .mission-content,
    .certificates-content {
        flex-direction: column;
    }
    
    .about-image,
    .mission-image,
    .certificates-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .about-text,
    .mission-text,
    .certificates-text {
        order: 2;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .legal-wrapper {
        flex-direction: column;
    }
    
    .legal-sidebar {
        max-width: 100%;
    }
}

/* ===== МАЛІ ЕКРАНИ (Small) ===== */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        padding: 15px;
        flex-direction: column;
        z-index: 1000;
    }
    
    .main-menu.show {
        display: flex;
    }
    
    .main-menu li {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .main-menu li:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        padding: 50px 15px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .feature-cards,
    .course-cards,
    .testimonials-slider,
    .team-grid,
    .advantages-grid,
    .achievements-grid,
    .pricing-cards,
    .filter-list,
    .process-steps,
    .contact-grid,
    .direction-methods,
    .social-media-icons {
        gap: 20px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 40px;
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .contact-form {
        flex-direction: column;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .call-form .form-submit {
        margin-top: 15px;
    }
}

/* ===== ДУЖЕ МАЛІ ЕКРАНИ (Extra Small) ===== */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .page-banner {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .social-icon {
        width: 120px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .call-request-form {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* ===== СТИЛІ ДЛЯ ДРУКУ ===== */
@media print {
    body {
        font-size: 12pt;
        color: #000;
        background-color: #fff;
    }
    
    .hero,
    .features,
    .courses-preview,
    .testimonials,
    .cta,
    .social-media-section,
    .call-request-section,
    .cookie-consent,
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    header,
    footer {
        background-color: #fff;
        color: #000;
        border: none;
        box-shadow: none;
    }
    
    .main-menu,
    .footer-bottom,
    .social-links {
        display: none;
    }
    
    .logo a {
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p, ul, ol, blockquote {
        page-break-inside: avoid;
    }
    
    img {
        page-break-inside: avoid;
        max-width: 100% !important;
    }
    
    .legal-document {
        font-size: 10pt;
    }
}
