:root {
    --med-blue: #0d5ae6;
    --med-dark: #262626;
    --med-heading-mobile: #093550;
    --med-gray: #f8f8f8;
    --med-border: #d9d9d9;
}


/* =========================================
   BASE
   ========================================= */

.medtour-page,
.medtour-page *,
.medtour-page *::before,
.medtour-page *::after {
    box-sizing: border-box;
}

.medtour-page {
    overflow: hidden;

    color: var(--med-dark);
    background: #fff;

    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.medtour-container {
    width: min(1110px, calc(100% - 40px));
    margin: 0 auto;
}

.medtour-section {
    padding: 72px 0;
}

.medtour-section--gray {
    background: var(--med-gray);
}


/* =========================================
   HEADINGS
   ========================================= */

.medtour-heading {
    position: relative;

    margin: 0 0 56px;

    color: var(--med-dark);

    font-size: 28px;
    font-weight: 700;
    line-height: 1.135;

    text-transform: uppercase;
}

.medtour-heading::before {
    content: "";

    position: absolute;
    top: 50%;
    right: calc(100% + 37px);

    width: 128px;

    border-top: 1px solid var(--med-dark);
}

.medtour-lead {
    margin: 0;

}


/* =========================================
   HERO
   ========================================= */

.medtour-hero {
    padding-top: 60px;
}

.medtour-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 526px;

    gap: 28px;

    align-items: start;
}

.medtour-hero__content {
    padding-top: 8px;
}

.medtour-hero__content .medtour-lead {
    max-width: 537px;

    margin-bottom: 24px;
}

.medtour-hero__media {
    display: block;

    min-height: 428px;

    overflow: hidden;

    background: #eee;

    text-decoration: none;
}

.medtour-hero__media img {
    display: block;
    width: 100%;
    height: 428px;
    object-fit: cover;
}


/* =========================================
   FANCYBOX LINKS / ZOOM
   ========================================= */

.medtour-hero__media,
.medtour-comfort__main-link,
.medtour-gallery__item {
    text-decoration: none;
}

.medtour-zoom {
    position: relative;

    cursor: zoom-in;
}





/* =========================================
   BULLETS
   ========================================= */

.medtour-bullets {
    display: grid;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.medtour-bullets li {
    position: relative;

    padding-left: 35px;
}

.medtour-bullets li::before {
    content: "";

    position: absolute;
    top: 0.45em;
    left: 0;

    width: 10px;
    height: 10px;

    background: var(--med-blue);
}


/* =========================================
   DIRECTIONS
   ========================================= */

.medtour-directions {
    padding-top: 70px;
    padding-bottom: 86px;
}

.medtour-directions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px 58px;
}

.medtour-direction {
    display: flex;
    align-items: center;

    min-height: 66px;

    gap: 28px;
}

.medtour-check {
    display: grid;

    flex: 0 0 51px;

    width: 51px;
    height: 51px;

    place-items: center;

    color: #fff;
    background: var(--med-blue);

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


/* =========================================
   DOCTORS
   ========================================= */

/* =========================================
   ВЕДУЩИЕ СПЕЦИАЛИСТЫ
   4 врача в ряд / 2 ряда
   ========================================= */

.medtour-doctors__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 42px;
    width: 100%;
}

.medtour-doctor {
    width: 100%;
    max-width: 267px;
    justify-self: center;
    text-align: center;
}

@media (max-width: 1199px) {
    .medtour-doctors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .medtour-doctors__grid {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .medtour-doctor {
        max-width: 100%;
    }
}

/* Фото */

.medtour-doctor__photo {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    width: 267px;
    height: 267px;

    padding: 6px;
    margin: 0 0 17px;

    overflow: hidden;
    box-sizing: border-box;

    background: #f8f8f8;
}

.medtour-doctor__photo img {
    display: block;

    width: 255px;
    height: 255px;

    max-width: none;
    max-height: none;

    object-fit: contain;
    object-position: center bottom;

    background: #fff;
}


/* ФИО */

.medtour-doctor h3 {
    width: 100%;
    min-height: 48px;

    margin: 0 0 5px;

    color: #262626;

    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;

    text-align: center;
}


/* Специализация */

.medtour-doctor p {
    margin: 0;

    color: #262626;

    font-size: 16px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================
   ДО 1100 px
   обычная сетка по 3 карточки
   ========================================= */

@media (max-width: 1100px) {

    .medtour-doctors__grid {
        grid-template-columns: repeat(3, 267px);
        justify-content: center;
        gap: 42px 20px;
    }

    .medtour-doctor:nth-child(n) {
        grid-column: auto;
    }

}


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

@media (max-width: 900px) {

    .medtour-doctors__grid {
        grid-template-columns: repeat(2, 267px);
        justify-content: center;
        gap: 38px 20px;
    }

}


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

@media (max-width: 600px) {

    .medtour-doctors__grid {
        grid-template-columns: 267px;
        justify-content: center;
        row-gap: 34px;
    }

    .medtour-doctor {
        width: 267px;
    }

    .medtour-doctor__photo {
        width: 267px;
        height: 267px;
    }

    .medtour-doctor__photo img {
        width: 255px;
        height: 255px;
    }

    .medtour-doctor h3 {
        min-height: 0;
        font-size: 16px;
    }

    .medtour-doctor p {
        font-size: 14px;
    }

}

/* =========================================
   COMFORT
   ========================================= */



.medtour-comfort__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 529px;
padding-bottom: 80px;
    gap: 43px;

    align-items: start;

   
}

.medtour-comfort__text {
    padding-top: 46px;
}

.medtour-comfort__text .medtour-lead {
    margin-bottom: 18px;
}

.medtour-comfort__main-link {
    display: block;

    min-width: 0;

    overflow: hidden;
}

.medtour-comfort__main {
    display: block;

    width: 100%;
    height: 428px;

    object-fit: cover;

    transition: transform 0.25s ease;
}

.medtour-comfort__main-link:hover .medtour-comfort__main {
    transform: scale(1.015);
}


/* =========================================
   GALLERY
   ========================================= */

.medtour-gallery-group + .medtour-gallery-group {
    margin-top: 72px;
}

.medtour-gallery-group h3 {
    margin: 0 0 28px;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.medtour-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;
}

.medtour-gallery--vip {
    align-items: stretch;
}

.medtour-gallery__item {
    display: block;

    min-width: 0;

    overflow: hidden;

    background: #eee;
}

.medtour-gallery__item img {
    display: block;

    width: 100%;
    height: 232px;

    object-fit: cover;

    transition: transform 0.25s ease;
}

.medtour-gallery__item--tall img,
.medtour-gallery--lux .medtour-gallery__item img {
    height: 464px;
}

.medtour-gallery__item:hover img {
    transform: scale(1.025);
}


/* =========================================
   FOOD
   ========================================= */


.medtour-food__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 44px;
}

.medtour-note {
    position: relative;

    padding-left: 35px;
}

.medtour-note::before {
    content: "";

    position: absolute;
    top: 0.45em;
    left: 0;

    width: 10px;
    height: 10px;

    background: var(--med-blue);
}


/* =========================================
   SUPPORT
   ========================================= */

/* =========================================
   SUPPORT
   ========================================= */

.medtour-support {
    padding-bottom: 0;
}

.medtour-support__intro {
    margin: -10px 0 52px;

    font-size: 16px;
    line-height: 1.5;
}

.medtour-support__box {
    padding: 40px 0 50px;

    background: #f8f8f8;
}

.medtour-support__box-head {
    display: flex;
    align-items: center;

    gap: 24px;

    margin: 0 0 34px;
}

.medtour-support__icon {
    display: block;

    flex: 0 0 16px;

    width: 16px;
    height: 16px;
}

.medtour-support__box-head strong {
    display: block;

    margin: 0;

    color: #262626;

    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.medtour-support .medtour-bullets--compact {
    display: grid;

    max-width: 930px;

    gap: 18px;

    margin: 0 0 0 40px;
    padding: 0;

    list-style: none;
}

.medtour-support .medtour-bullets--compact li {
    position: relative;

    min-height: 24px;

    padding-left: 37px;

    color: #262626;

    font-size: 16px;
    line-height: 1.5;
}

.medtour-support .medtour-bullets--compact li::before {
    content: "";

    position: absolute;

    top: 8px;
    left: 0;

    width: 10px;
    height: 10px;

    background: #0d5ae6;
}


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

@media (max-width: 767px) {

    .medtour-support__intro {
        margin: 0 0 28px;

        font-size: 14px;
    }

    .medtour-support__box {
        padding: 34px 0 38px;
    }

    .medtour-support__box-head {
        align-items: flex-start;

        gap: 16px;

        margin-bottom: 26px;
    }

    .medtour-support__icon {
        margin-top: 3px;
    }

    .medtour-support__box-head strong {
        font-size: 14px;
    }

    .medtour-support .medtour-bullets--compact {
        gap: 14px;

        margin-left: 0;
    }

    .medtour-support .medtour-bullets--compact li {
        padding-left: 26px;

        font-size: 14px;
        line-height: 1.5;
    }

    .medtour-support .medtour-bullets--compact li::before {
        top: 6px;

        width: 10px;
        height: 10px;
    }

}


/* =========================================
   STEPS
   ========================================= */

.medtour-steps__list {
    display: grid;
    gap: 28px;
    margin: 0;
    list-style: none;
}

.medtour-steps__list li {
    display: flex;
    align-items: center;
    min-height: 107px;
    padding: 28px;
    background: var(--med-gray);
}

.medtour-steps__list span {
    display: grid;
    flex: 0 0 51px;
    width: 51px;
    height: 51px;
    margin-right: 28px;
    place-items: center;
    color: #fff;
    background: var(--med-blue);

    font-weight: 700;
}


/* =========================================
   CONTACT STRIP
   ========================================= */

.medtour-contact-strip {
    padding: 48px 0;

    color: #fff;
    background: var(--med-blue);
}

.medtour-contact-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;
}

.medtour-contact-strip__item {
    display: grid;

    justify-items: center;

    gap: 18px;

    color: inherit;

    text-align: center;
    text-decoration: none;
}
.medtour-contact-strip__item span {font-weight:300;}

.medtour-contact-strip__item:hover {
    color: #fff;
    text-decoration: none;
}

.medtour-contact-icon {
    position: relative;

    width: 58px;
    height: 58px;

    border: 2px solid #fff;
    border-radius: 50%;
}

.medtour-contact-icon--pin::before {
    content: "";

    position: absolute;

    inset: 15px 19px 20px;

    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);
}

.medtour-contact-icon--phone::before {
    content: "☎";

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    font-size: 28px;
}

.medtour-contact-icon--mail::before {
    content: "✉";

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    font-size: 27px;
}


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

@media (max-width: 1100px) {

    .medtour-hero__grid,
    .medtour-comfort__intro {
        grid-template-columns: 1fr 46%;
    }

    .medtour-doctors__grid {
        grid-template-columns: repeat(3, 267px);

        justify-content: center;
    }

}


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

@media (max-width: 900px) {

    .medtour-doctors__grid {
        grid-template-columns: repeat(2, 267px);

        gap: 38px 20px;

        justify-content: center;
    }

}


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

@media (max-width: 767px) {
.medtour-steps.medtour-section {padding-top:0;}
    .medtour-page {
        font-size: 14px;
        line-height: 1.5; 
        padding-top:50px;
    }

    .medtour-container {
        width: calc(100% - 38px);
    }

    .medtour-section {
        padding: 48px 0;
    }


    /* headings */

    .medtour-heading {
        margin-bottom: 28px;

        color: var(--med-heading-mobile);

        font-size: 16px;
        line-height: 1.3;
    }

    .medtour-heading::before {
        display: none;
    }


    /* hero */

    .medtour-hero {
        padding-top: 34px;
    }

    .medtour-hero__grid,
    .medtour-comfort__intro {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .medtour-hero__content {
        padding-top: 0;
    }

    .medtour-hero__content .medtour-lead {
        margin-bottom: 20px;
    }

    .medtour-hero__media {
        min-height: 0;

        order: 2;
    }

    .medtour-hero__media img {
        width: 100%;
        height: auto;

        aspect-ratio: 338 / 275;

        object-fit: cover;
    }


    /* bullets */

    .medtour-bullets {
        gap: 0;
    }

    .medtour-bullets li {
        min-height: 42px;

        padding-left: 21px;

        line-height: 2;
    }

    .medtour-bullets li::before {
        top: 0.65em;

        width: 10px;
        height: 10px;
    }


    /* directions */

    .medtour-directions {
        padding: 46px 0 50px;
    }

    .medtour-directions__grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .medtour-direction {
        min-height: 51px;

        gap: 24px;
    }

    .medtour-check {
        flex-basis: 51px;
    }


    /* doctors */

    .medtour-doctors__grid {
        grid-template-columns: 267px;

        justify-content: center;

        row-gap: 34px;
    }

    .medtour-doctor {
        width: 267px;

        margin: 0 auto;
    }

    .medtour-doctor__photo {
        width: 267px;
        height: 267px;

        padding: 6px;

        margin-bottom: 14px;
    }

    .medtour-doctor__photo img {
        width: 255px;
        height: 255px;
    }

    .medtour-doctor h3 {
        min-height: 0;

        margin-bottom: 2px;

        font-size: 16px;
    }

    .medtour-doctor p {
        font-size: 14px;
    }


    /* comfort */

    .medtour-comfort {
        padding-top: 60px;
    }

    .medtour-comfort__text {
        padding-top: 0;
    }

    .medtour-comfort__main {
        width: 100%;
        height: auto;

        aspect-ratio: 338 / 273;

        object-fit: cover;
    }


    /* gallery */

    .medtour-gallery-group + .medtour-gallery-group {
        margin-top: 42px;
    }

    .medtour-gallery-group h3 {
        margin-bottom: 24px;

        font-size: 18px;
    }

    .medtour-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .medtour-gallery__item img {
        height: auto;

        aspect-ratio: 161 / 108;

        object-fit: cover;
    }

    .medtour-gallery__item--tall img,
    .medtour-gallery--lux .medtour-gallery__item img {
        height: auto;

        aspect-ratio: 161 / 241;

        object-fit: cover;
    }


    /* food */

    .medtour-food__grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .medtour-note {
        padding-left: 21px;
    }


    /* support */

    .medtour-support__intro {
        margin: 0 0 28px;
    }

    .medtour-support__box {
        padding: 34px 0 36px;
    }

    .medtour-support__box strong,
    .medtour-bullets--compact {
        margin-left: 0;
    }

    .medtour-bullets--compact li {
        padding-left: 21px;

        line-height: 2;
    }


    /* steps */

    .medtour-steps__list {
        gap: 16px;

        padding: 0;
    }

    .medtour-steps__list li {
        min-height: 88px;

        padding: 18px;
    }

    .medtour-steps__list span {
        margin-right: 18px;
    }


    /* contacts */

    .medtour-contact-strip {
        padding: 50px 0;
    }

    .medtour-contact-strip__grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }


    /* zoom icon */

    .medtour-zoom::before,
    .medtour-zoom::after {
        display: none;
    }

    .medtour-desktop-only {
        display: none;
    }

}


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

@media (max-width: 374px) {

    .medtour-container {
        width: calc(100% - 28px);
    }

    .medtour-doctors__grid {
        grid-template-columns: minmax(0, 267px);
    }

    .medtour-doctor {
        width: 100%;
        max-width: 267px;
    }

    .medtour-doctor__photo {
        width: 100%;
        height: auto;

        aspect-ratio: 1 / 1;
    }

    .medtour-doctor__photo img {
        width: 100%;
        height: 100%;
    }

}