/* =========================================================
   DISPENSARY PAGE
   ========================================================= */

.preventive-check-up-section {
    padding: 56px 0;
}

.preventive-check-up-section__title {
    margin: 0 0 32px;

    color: var(--text);

    font-family: 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

.preventive-check-up-section__title--center {
    text-align: center;
}


/* Кнопки */

.preventive-check-up-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 52px;

    padding: 0 24px;

    border-radius: 12px;

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    box-sizing: border-box;

    transition:
            background-color .2s ease,
            color .2s ease,
            border-color .2s ease;
}

.preventive-check-up-btn--outline {
    border: 1px solid #fff;

    color: #fff;
    background: transparent;
}

.preventive-check-up-btn--outline:hover {
    background: #fff;
    color: var(--dark-green);
}

.preventive-check-up-btn--brand {
    border: 1px solid var(--dark-green);

    color: #fff;
    background: linear-gradient(139.14deg, #23716d 6.7%, #1b5349 91.1%);
}

.preventive-check-up-btn--brand:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* Кнопка "Позвонить" — только в мобильной версии */

.preventive-check-up-hero__call {
    display: none;
}


/* =========================================================
   ТАБЛИЦА СХЕМЫ ДИСПАНСЕРИЗАЦИИ (desktop)
   ========================================================= */

.preventive-check-up-table {
    border-radius: 24px;

    overflow: hidden;

    margin-bottom: 24px;
}

.preventive-check-up-table__head {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 20px;

    padding: 24px 28px;

    background: linear-gradient(139.14deg, #23716d 6.7%, #1b5349 91.1%);

    color: #fff;

    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.preventive-check-up-row {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 20px;
    align-items: center;

    padding: 22px 28px;

    background: #fff;

    box-sizing: border-box;
}

.preventive-check-up-row:nth-child(odd) {
    background: rgba(35, 113, 109, .05);
}

.preventive-check-up-row__name {
    color: var(--text);

    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.preventive-check-up-row__value {
    color: var(--text);

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.preventive-check-up-row__label {
    display: none;
}


/* CTA */

.preventive-check-up-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 28px 32px;

    background: #fff;

    border-radius: 24px;
}

.preventive-check-up-cta__text {
    max-width: 720px;
    margin: 0;

    color: var(--text);

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.preventive-check-up-cta__btn {
    flex-shrink: 0;
}


/* =========================================================
   ЧТО ТАКОЕ ДИСПАНСЕРИЗАЦИЯ
   ========================================================= */

.preventive-check-up-about {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 56px;

    align-items: start;
}

.preventive-check-up-about__media {
    order: 2;

    border-radius: 24px;

    overflow: hidden;

    aspect-ratio: 4 / 3;
}

.preventive-check-up-about__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.preventive-check-up-about__body {
    order: 1;
}

.preventive-check-up-about__text {
    margin: 0;

    color: rgba(17, 17, 34, .75);

    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

.preventive-check-up-hero__content {
    width: 50%;
}

.preventive-check-up-hero__image {
    position: absolute;

    right: 0;
    top: 0;

    width: 773px;
    height: 1032px;
}


.preventive-check-up-hero__image img {
    width: 100%;

    display: block;

    object-fit: cover;
}

.preventive-check-up-page {
    background: #f8f8fa;
}


.preventive-check-up-hero__image__mobile {
    display: none;
}

.preventive-check-up-content-button {
    width: auto !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .preventive-check-up-page
    .main-page__container {
        width: calc(100% - 40px);
    }


    .preventive-check-up-hero__content {
        width: 58%;

        padding: 50px 40px;
    }

    .preventive-check-up-hero__box {
        padding: 40px;
        column-gap: 32px;
    }

    .preventive-check-up-hero__title {
        font-size: 38px;
    }

    .preventive-check-up-section__title {
        font-size: 28px;
    }

    .preventive-check-up-table__head,
    .preventive-check-up-row {
        grid-template-columns: 1fr 160px 160px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .preventive-check-up-page
    .main-page__container {
        width: 100%;
    }


    .preventive-check-up-hero__image {
        position: relative;

        right: auto;
        top: auto;

        width: 100%;
        height: 270px;

        margin-top: 20px;
    }


    .preventive-check-up-hero__image img {
        object-position: center;
    }

    .preventive-check-up-hero__image__mobile {
        display: block;
        width: calc(100% + 40px);
        position: relative;
        left: -20px;
    }

    .preventive-check-up-hero__image__destop {
        display: none;
    }


    .preventive-check-up-hero__content {
        width: 100%;

        padding: 28px 16px 0;

        box-sizing: border-box;
    }

    .preventive-check-up-content-button {
        font-size: 15px !important;
    }
    .preventive-check-up-section {
        padding: 40px 0 0 0;
    }

    .preventive-check-up-section__title {
        font-size: 24px;
        margin-bottom: 20px;
    }


    /* HERO — светлый фон, фото и текст в потоке */

    .preventive-check-up-hero {
        padding: 16px 0 0;
    }

    .preventive-check-up-hero__box {
        display: flex;
        flex-direction: column;

        background: transparent;
        border-radius: 0;

        padding: 0 20px;
    }

    .preventive-check-up-hero__title {
        order: 1;

        margin-bottom: 16px;

        color: var(--green-logo);

        font-size: 28px;

        align-self: auto;
    }

    .preventive-check-up-hero__media {
        order: 2;

        min-height: 0;
        height: 220px;

        border-radius: 16px;

        margin-bottom: 20px;
    }

    .preventive-check-up-hero__body {
        order: 3;
    }

    .preventive-check-up-hero__desc,
    .preventive-check-up-hero__line {
        color: var(--text);
    }

    .preventive-check-up-hero__desc {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .preventive-check-up-hero__actions {
        flex-direction: column;
    }

    .preventive-check-up-hero__actions .preventive-check-up-btn {
        width: 100%;
    }

    .preventive-check-up-btn--outline {
        border-color: var(--dark-green);
        color: var(--dark-green);
    }

    .preventive-check-up-btn--outline:hover {
        background: var(--dark-green);
        color: #fff;
    }

    /* Первая кнопка — сплошная (как "Схема проведения" на скрине) */

    .preventive-check-up-hero__actions .preventive-check-up-btn:first-child {
        border: none;
        background: linear-gradient(139.14deg, #23716d 6.7%, #1b5349 91.1%);
        color: #fff;
    }

    .preventive-check-up-hero__call {
        display: inline-flex;
    }

    .preventive-check-up-chat {
        display: none;
    }


    /* ТАБЛИЦА → КАРТОЧКИ */

    .preventive-check-up-table {
        display: flex;
        flex-direction: column;
        gap: 12px;

        border-radius: 0;
    }

    .preventive-check-up-table__head {
        display: none;
    }

    .preventive-check-up-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 12px;

        border-radius: 24px;

        padding: 20px;
    }

    .preventive-check-up-row__name {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.4;
    }

    .preventive-check-up-row__value {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;

        font-size: 15px;
        font-weight: 700;
    }

    .preventive-check-up-row__label {
        display: inline;

        color: rgba(17, 17, 34, .6);
        font-weight: 400;
    }


    /* CTA */

    .preventive-check-up-cta {
        flex-direction: column;
        align-items: stretch;

        padding: 20px;

        border-radius: 24px;
    }

    .preventive-check-up-cta__btn {
        width: 100%;
    }


    /* ABOUT — фото сверху */

    .preventive-check-up-about {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .preventive-check-up-about__media {
        order: 1;
    }

    .preventive-check-up-about__body {
        order: 2;
    }

    .preventive-check-up-about__text {
        font-size: 15px;
    }
}