/* ========================================
   Универсальный заголовочный блок
   Используется на страницах услуг и врачей
   ======================================== */

.page-header-section {
    margin: 35px 0 130px;
}

.page-header-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-items: stretch;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #F5F0E8;
    padding: 35px 80px 55px;
    border-radius: 5px;
}

.page-header-title {
    color: #383E4B;
    font-size: 35px;
    font-weight: 400;
    line-height: normal;
}

.page-header-text {
    color: #383E4B;
    font-size: 17px;
    font-weight: 400;
    line-height: 149%;
    margin-top: 20px;
}

.page-header-content .btn-primary {
    padding: 18px 45px;
    margin-top: 50px;
}

.page-header-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.page-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Блоки статистики внизу */
.page-header-stats {
    display: flex;
    gap: 80px;
    margin-top: 80px;
}

.page-header-stat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-header-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-header-stat-icon svg {
    width: 100%;
    height: 100%;
}

.page-header-stat-text {
    color: #383E4B;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

@media (max-width: 1300px) {
    .page-header-content .btn-primary {
        margin-top: clamp(25px, calc(8.333vw - 58.333px), 50px);
    }
    .page-header-stats {
        margin-top: clamp(40px, calc(13.333vw - 93.333px), 80px);
    }
    .page-header-title {
        font-size: clamp(30px, calc(1.667vw + 13.333px), 35px);
    }
    .page-header-section {
        margin-bottom: clamp(60px, calc(23.333vw - 173.333px), 130px);
    }
    .service-faq {
        margin: clamp(40px, calc(6.667vw - 26.667px), 60px) 0;
    }
}

@media (max-width: 1000px) {
    .page-header-section {
        margin: 25px 0 60px;
    }

    .page-header-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-header-content {
        padding: 25px 30px 40px;
    }

    .page-header-title {
        font-size: 24px;
    }

    .page-header-text {
        font-size: 15px;
    }

    .page-header-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
        width: 100%;
    }
    .page-header-stat {
        text-align: center;
    }
    .page-header-stat-icon {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .page-header-content .btn-primary {
        width: 100%;
        text-align: center;
    }
}