@media (max-width: 1200px) {
    .contacts__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .main {
        gap: 40px;
        margin-bottom: 75px;
    }

    .main--standalone {
        padding-top: 40px;
    }

    .hero__title {
        font-size: 48px;
    }

    .hero__description {
        font-size: 16px;
    }

    .hero__image {
        max-width: 500px;
    }

    .about {
        padding: 40px 0;
    }

    .values__subtitle {
        font-size: 36px;
    }

    .values__content {
        flex-direction: column;
        align-items: flex-start;
    }

    #map {
        flex: auto;
        max-width: 100%;
    }

    p {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .hero__inner {
        min-height: auto;
    }
    
    .hero__title {
        font-size: 40px;
    }

    .hero__description {
        font-size: 14px;
    }

    .about__inner {
        flex-direction: column;
        gap: 40px;
    }

    .about__image {
        width: 100%;
    }

    .specialists__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .specialists__slider-wrapper {
        width: 100%;
        padding: 0;
    }
    .team__doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .specialist-page__header {
        grid-template-columns: 240px 1fr;
        gap: 24px;
        padding: 10px 0 22px;
    }

    .specialist-page__name {
        font-size: 34px;
    }

    .specialist-page__additional {
        --specialist-additional-collapsed-height: 120px;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .header__burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        padding: 80px 20px 40px;
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
    }

    .header__nav.active .header__close {
        display: block;
    }

    .header__burger.hidden {
        display: none;
    }

    .header__menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        width: 100%;
    }

    .header__menu .menu-item a {
        font-size: 20px;
        text-align: center;
    }

    .header__logo img {
        max-width: 70px;
    }

    .header__title {
        max-width: 100%;
    }

    .header__icon {
        width: 30px;
        height: 30px;
    }

    .hero__inner {
        padding: 60px 0;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__image {
        max-width: 300px;
    }

    .values__slider-wrapper {
        padding: 0;
    }
    
    .values__button-prev,
    .values__button-next {
        display: none;
    }

    .values__title {
        font-size: 18px;
    }

    .values__subtitle {
        font-size: 24px;
    }

    .values__description {
        font-size: 14px;
    }

    .values__item-title {
        font-size: 18px;
    }

    .values__item {
        padding: 20px;
    }

    .values__item-description {
        font-size: 14px;
    }

    .about {
        padding: 40px 0;
    }

    .about__title {
        font-size: 24px;
    }

    .about__button {
        font-size: 20px;
    }
    
    .specialists__content {
        max-width: 100%;
    }
    
    .specialists__category-slide {
        width: 100%;
    }
    
    .specialists__button-prev,
    .specialists__button-next {
        display: none;
    }

    .specialists__title {
        font-size: 18px;
    }

    .specialists__subtitle {
        font-size: 24px;
    }

    .specialists__button {
        font-size: 20px;
    }

    .contacts__title {
        font-size: 24px;
    }

    .contacts__content {
        margin-right: 0;
    }

    .contacts__additional-info {
        font-size: 14px;
    }

    .contacts__item_title {
        font-size: 16px;
    }

    .contacts__item_text {
        font-size: 12px;
    }

    /* Laboratory Page */
    .laboratory__title {
        font-size: 32px;
    }
    
    .laboratory__tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .laboratory__tab-button {
        width: 100%;
        text-align: center;
    }
    
    .laboratory__tests-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Services Page */
    .services__title {
        font-size: 32px;
    }
    
    .services__tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .services__tab-button {
        width: 100%;
        text-align: center;
    }
    
    .services__list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Team Page */
    .team__title {
        font-size: 32px;
    }
    
    .team__tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .team__tab-button {
        width: 100%;
        text-align: center;
    }
    
    .team__services-title,
    .team__doctors-title {
        font-size: 24px;
    }
    
    .team__services-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team__doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .team__doctor-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .team__doctor-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .specialist-page__header {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 10px 0 18px;
    }

    .specialist-page__name {
        font-size: 28px;
    }

    .specialist-page__specialty {
        font-size: 16px;
    }

    .specialist-page__content {
        font-size: 16px;
    }

    .specialist-page__additional {
        --specialist-additional-collapsed-height: 110px;
    }

    .specialist-page__services-title {
        font-size: 22px;
    }

    .specialist-page__services-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .veteran-services__title {
        font-size: 28px;
    }
}