@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }

    .organization-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a3c6e;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .callback-btn {
        margin-top: 1rem;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contacts-container {
        grid-template-columns: 1fr;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-body {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .map-wrapper {
        padding-bottom: 75%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .org-card,
    .contact-card,
    .contact-form {
        padding: 1.5rem;
    }

    .service-name {
        min-height: auto;
        font-size: 1.2rem;
    }

    .service-description-short {
        min-height: auto;
    }

    .map-wrapper {
        padding-bottom: 100%;
    }
}

.map-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

@supports not (aspect-ratio: 16 / 9) {
    .map-container iframe {
        height: 400px;
    }

    @media (max-width: 768px) {
        .map-container iframe {
            height: 350px;
        }
    }

    @media (max-width: 480px) {
        .map-container iframe {
            height: 300px;
        }
    }
}
