/* =========================================================
   MAIN HERO SLIDER
   ========================================================= */

.main-hero-slider {
    width: 100%;
    margin: 0 auto;

    font-family: 'Inter', sans-serif;
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.main-hero-slider__viewport {
    position: relative;

    overflow: hidden;

    border-radius: 30px;
}


.main-hero-slider__track {
    display: flex;

    width: 100%;

    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}


.main-hero-slide {
    position: relative;

    flex: 0 0 100%;

    min-height: 604px;

    overflow: hidden;

    box-sizing: border-box;

    background: #e9f2f2;
}


/* =========================================================
   CONTENT
   ========================================================= */

.main-hero-slide__content {
    isolation: isolate;

    z-index: 3;

    width: 58%;

    box-sizing: border-box;

    padding: 66px 0 60px 64px;
}


.main-hero-slide__eyebrow {
    display: none;

    margin: 0 0 10px;

    color: #000;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
}


.main-hero-slide__title {
    max-width: 900px;

    margin: 0;

    color: #257a76;

    font-size: 62px;
    line-height: 1.23;
    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   ADVANTAGES
   ========================================================= */

.main-hero-slide__advantages {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 28px;

    position: relative;
    z-index: 2;
}


.main-hero-slide__advantage {
    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 50px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 11px;

    background: rgba(255, 255, 255, .5);

    box-shadow: 0 4px 12px rgba(25, 75, 72, .12);

    color: #237772;

    font-size: 18px;
    line-height: 1;
}


.main-hero-slide__advantage-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Чтобы SVG занимал все пространство */
.main-hero-slide__advantage-icon svg {
    width: 100%;
    height: 100%;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.main-hero-slide__description {
    margin-top: 28px;

    color: #151628;

    font-size: 24px;
    line-height: 1.48;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.main-hero-slide__actions {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-top: 78px;
    position: relative;
    z-index: 2;
}


.main-hero-slide__button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 280px;
    height: 64px;

    box-sizing: border-box;

    border-radius: 11px;

    font-size: 18px;
    line-height: 1;

    text-decoration: none;

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


.main-hero-slide__button--primary {
    border: 1px solid #216e68;

    color: #fff;
    background: #216e68;
}


.main-hero-slide__button--primary:hover {
    background: #185b57;
}


.main-hero-slide__button--secondary {
    border: 1px solid #237a76;

    color: #237a76;
    background: transparent;
}


.main-hero-slide__button--secondary:hover {
    color: #fff;
    background: #237a76;
}


/* =========================================================
   RATING
   ========================================================= */
.main-hero-slide__rating {
    width: 190px;
    min-height: 64px;
    padding: 8px 12px;
    box-sizing: border-box;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
}


.main-hero-slide__rating-top {
    display: flex;

    align-items: center;

    gap: 7px;
}


.main-hero-slide__rating-pin {
}


.main-hero-slide__rating-top strong {
    color: #222;

    font-size: 16px;
    font-weight: 500;
}


.main-hero-slide__stars {
    margin-left: auto;

    color: #ffbd00;

    font-size: 16px;
    letter-spacing: 1px;
}


.main-hero-slide__rating-text {
    margin-top: 5px;

    color: #666;

    font-size: 9px;
    line-height: 1.2;
}


/* =========================================================
   IMAGES
   ========================================================= */

.main-hero-slide__image {
    position: absolute;

    z-index: 1;

    pointer-events: none;
}


.main-hero-slide__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Врачи */

.main-hero-slide__image--doctors {
    right: -20px;
    bottom: 0;

    width: 57%;
    height: 100%;
}


.main-hero-slide__image--doctors img {
    object-position: right bottom;
}


/* Здание */

.main-hero-slide--second {
    background: #e9f2f2;
}


.main-hero-slide--second .main-hero-slide__content {
    width: 52%;

    padding-top: 145px;
}


.main-hero-slide--second .main-hero-slide__title {
    font-size: 52px;
    line-height: 1.27;
}


.main-hero-slide--second .main-hero-slide__description {
    margin-top: 30px;

    font-size: 23px;
    line-height: 1.55;
}


.main-hero-slide--second .main-hero-slide__button {
    margin-top: 76px;
}


.main-hero-slide__image--building {
    top: 0;
    right: 0;
    bottom: 0;

    width: 50%;
}


.main-hero-slide__image--building img {
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   ARROWS
   ========================================================= */

.main-hero-slider__arrows {
    position: absolute;

    right: 60px;
    bottom: 60px;

    z-index: 10;

    display: flex;

    align-items: stretch;

    width: 145px;
    height: 64px;

    overflow: hidden;

    border-radius: 12px;

    background: #237a76;
}


.main-hero-slider__arrow {
    position: relative;

    width: 50%;

    padding: 0;

    border: 0;

    color: #fff;
    background: transparent;

    cursor: pointer;

    font-family: inherit;

    transition: background-color .2s ease;
}


.main-hero-slider__arrow:hover {
    background: rgba(255, 255, 255, .12);
}


.main-hero-slider__arrow + .main-hero-slider__arrow::before {
    content: "";

    position: absolute;

    left: 0;
    top: 18px;
    bottom: 18px;

    width: 1px;

    background: rgba(255, 255, 255, .3);
}


/* =========================================================
   DOTS
   ========================================================= */

.main-hero-slider__pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 24px;
}


.main-hero-slider__dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 2px solid #237a76;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition:
            width .25s ease,
            border-radius .25s ease,
            background-color .25s ease;
}


.main-hero-slider__dot--active {
    width: 40px;

    border-radius: 10px;

    background: #237a76;
}

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

.home-comfort {
    margin: 72px 0 0;
    position: relative;
}

.home-comfort__inner {
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
}

.home-comfort h2 {
    margin-bottom: 18px;

    color: #171725;
}

.comfort__grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.comfort__item{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #e9f2f2;
    border: 1px solid rgba(255,255,255,.7);
}

.comfort__icon{
    flex-shrink:0;
    width: 55px;
    height: 55px;
    border-radius: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
}
.comfort__icon i{ color: var(--green); font-size: 1rem; }

.comfort__item-title{
    margin:0 0 6px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.comfort__item-desc{
    margin:0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}



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

@media (max-width: 1199px) {



    .main-page__container {
        width: min(calc(100% - 40px), 1000px);
    }

    .main-hero-slide {
        min-height: 520px;
    }


    .main-hero-slide__content {
        padding: 50px 0 40px 40px;
    }


    .main-hero-slide__title {
        font-size: 48px;
    }


    .main-hero-slide__description {
        font-size: 20px;
    }


    .main-hero-slide__advantages {
        flex-wrap: wrap;
    }


    .main-hero-slide__advantage {
        font-size: 15px;
    }


    .main-hero-slide__actions {
        margin-top: 45px;

        flex-wrap: wrap;
    }


    .main-hero-slide__button {
        width: 230px;
    }


    .main-hero-slide__rating {
        display: none;
    }


    .main-hero-slide--second .main-hero-slide__content {
        padding-top: 100px;
    }


    .main-hero-slide--second .main-hero-slide__title {
        font-size: 42px;
    }


    .main-hero-slider__arrows {
        right: 35px;
        bottom: 35px;
    }

    .comfort{ padding: 52px 0; }
    .comfort__title{ font-size: 28px; }


}


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

@media (max-width: 767px) {

    .main-hero-slider__arrows {
        display: none;
    }

    .main-page {
        padding: 24px 0 40px;
    }


    .main-page__container {
        width: calc(100% - 32px);
    }

    .main-hero-slider {
        width: 100%;
    }


    .main-hero-slider__viewport {
        border-radius: 0;
        top: -16px;
        left: -16px;
        width: 100vw;
    }


    .main-hero-slide {
        min-height: 620px;
    }


    /* CONTENT */

    .main-hero-slide__title,
    .main-hero-slide--second .main-hero-slide__title {
        max-width: 100%;

        font-size: 32px;
        line-height: 1.16;
    }


    .main-hero-slide__advantages {
        display: flex;

        flex-wrap: nowrap;

        gap: 8px;

        margin-top: 20px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .main-hero-slide__advantages::-webkit-scrollbar {
        display: none;
    }


    .main-hero-slide__advantage {
        flex: 0 0 auto;

        min-height: 40px;

        padding: 0 10px;

        gap: 7px;

        border-radius: 8px;

        font-size: 12px;
    }


    .main-hero-slide__description,
    .main-hero-slide--second .main-hero-slide__description {
        margin-top: 20px;

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


    /* ACTIONS */

    .main-hero-slide__actions {
        position: absolute;

        left: 20px;
        right: 20px;
        bottom: 25px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin: 0;
    }


    .main-hero-slide__button,
    .main-hero-slide--second .main-hero-slide__button {
        width: 100%;
        height: 48px;

        margin: 0;

        font-size: 15px;
    }


    .main-hero-slide__rating {
        display: none;
    }


    /* DOCTORS IMAGE */

    .main-hero-slide__image--doctors {
        right: -15%;

        bottom: 75px;

        width: 105%;
        height: 42%;

        opacity: 1;
    }


    /* SECOND SLIDE */

    .main-hero-slide--second {
        min-height: 620px;
    }


    .main-hero-slide--second .main-hero-slide__content {
        position: relative;

        z-index: 3;

        padding-top: 45px;
    }


    .main-hero-slide__image--building {
        top: auto;
        bottom: 0;

        width: 100%;
        height: 43%;
    }


    .main-hero-slide--second .main-hero-slide__button {
        width: 100%;
    }


    /* ARROWS */

    .main-hero-slider__arrows {
        right: 20px;
        bottom: 20px;

        width: 120px;
        height: 48px;
    }


    .main-hero-slider__arrow {
        font-size: 22px;
    }


    .main-hero-slider__arrow + .main-hero-slider__arrow::before {
        top: 12px;
        bottom: 12px;
    }


    /* DOTS */

    .main-hero-slider__pagination {
        gap: 9px;

        margin-top: 0;
    }


    .main-hero-slider__dot {
        width: 8px;
        height: 8px;
    }


    .main-hero-slider__dot--active {
        width: 32px;
    }

    .main-hero-slide__advantages {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 20px;
        scrollbar-width: none;
    }

    .main-hero-slide__advantage {
        flex: 1 1 0;
        min-width: 0;        /* разрешает сжиматься наравне с остальными, а не по ширине текста */
        justify-content: center;
        text-align: center;
        backdrop-filter: blur(4px);
    }
}

/* =========================================================
   MAIN HERO SLIDER
   ========================================================= */

.main-hero-slider {
    width: 100%;
    margin: 0 auto;

    font-family: 'Inter', sans-serif;
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.main-hero-slider__viewport {
    position: relative;

    overflow: hidden;

    border-radius: 30px;
}


.main-hero-slider__track {
    display: flex;

    width: 100%;

    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}


.main-hero-slide {
    position: relative;

    flex: 0 0 100%;

    min-height: 604px;

    overflow: hidden;

    box-sizing: border-box;

    background: #e9f2f2;
}


/* =========================================================
   CONTENT
   ========================================================= */

.main-hero-slide__content {
    isolation: isolate;

    z-index: 3;

    width: 50%;

    box-sizing: border-box;

    padding: 66px 0 60px 64px;
}


.main-hero-slide__eyebrow {
    display: none;

    margin: 0 0 10px;

    color: #000;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
}


.main-hero-slide__title {
    max-width: 900px;

    margin: 0;

    color: #257a76;

    font-size: 48px;
    line-height: 1.23;
    font-weight: 700;

    text-transform: uppercase;
    position: relative;
    z-index: 3;
}


/* =========================================================
   ADVANTAGES
   ========================================================= */

.main-hero-slide__advantages {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 28px;
}


.main-hero-slide__advantage {
    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 50px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 11px;

    background: rgba(255, 255, 255, .5);

    box-shadow: 0 4px 12px rgba(25, 75, 72, .12);

    color: #237772;

    font-size: 18px;
    line-height: 1;
}


.main-hero-slide__advantage-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Чтобы SVG занимал все пространство */
.main-hero-slide__advantage-icon svg {
    width: 100%;
    height: 100%;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.main-hero-slide__description {
    margin-top: 28px;

    color: #151628;

    font-size: 24px;
    line-height: 1.48;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.main-hero-slide__actions {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-top: 78px;
}


.main-hero-slide__button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 280px;
    height: 64px;

    box-sizing: border-box;

    border-radius: 11px;

    font-size: 18px;
    line-height: 1;

    text-decoration: none;

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


.main-hero-slide__button--primary {
    border: 1px solid #216e68;

    color: #fff;
    background: #216e68;
}


.main-hero-slide__button--primary:hover {
    background: #185b57;
    color: #fff;
}


.main-hero-slide__button--secondary {
    border: 1px solid #237a76;

    color: #237a76;
    background: transparent;
}


.main-hero-slide__button--secondary:hover {
    color: #fff;
    background: #237a76;
}


/* =========================================================
   RATING
   ========================================================= */

.main-hero-slide__rating {
    width: 190px;
    min-height: 64px;

    padding: 8px 12px;

    box-sizing: border-box;

    border-radius: 11px;

    background: #fff;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
}


.main-hero-slide__rating-top {
    display: flex;

    align-items: center;

    gap: 7px;
}


.main-hero-slide__rating-pin {
}


.main-hero-slide__rating-top strong {
    color: #222;

    font-size: 16px;
    font-weight: 500;
}


.main-hero-slide__stars {
    margin-left: auto;

    color: #ffbd00;

    font-size: 17px;
    letter-spacing: 1px;
}


.main-hero-slide__rating-text {
    margin-top: 5px;

    color: #666;

    font-size: 9px;
    line-height: 1.2;
}


/* =========================================================
   IMAGES
   ========================================================= */

.main-hero-slide__image {
    position: absolute;

    z-index: 1;

    pointer-events: none;
}


.main-hero-slide__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Врачи */

.main-hero-slide__image--doctors {
    right: -20px;
    bottom: 0;

    width: 57%;
    height: 100%;
}


.main-hero-slide__image--doctors img {
    object-position: right bottom;
}


/* Здание */

.main-hero-slide--second {
    background: #e9f2f2;
}


.main-hero-slide--second .main-hero-slide__content {
    width: 52%;

    padding-top: 145px;
}


.main-hero-slide--second .main-hero-slide__title {
    font-size: 52px;
    line-height: 1.27;
}


.main-hero-slide--second .main-hero-slide__description {
    margin-top: 30px;

    font-size: 23px;
    line-height: 1.55;
}


.main-hero-slide--second .main-hero-slide__button {
    margin-top: 76px;
}


.main-hero-slide__image--building {
    top: 0;
    right: 0;
    bottom: 0;

    width: 50%;
}


.main-hero-slide__image--building img {
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   ARROWS
   ========================================================= */

.main-hero-slider__arrows {
    position: absolute;

    right: 60px;
    bottom: 60px;

    z-index: 10;

    display: flex;

    align-items: stretch;

    width: 145px;
    height: 64px;

    overflow: hidden;

    border-radius: 12px;

    background: #237a76;
}


.main-hero-slider__arrow {
    position: relative;

    width: 50%;

    padding: 0;

    border: 0;

    color: #fff;
    background: transparent;

    cursor: pointer;

    font-family: inherit;

    transition: background-color .2s ease;
}


.main-hero-slider__arrow:hover {
    background: rgba(255, 255, 255, .12);
}


.main-hero-slider__arrow + .main-hero-slider__arrow::before {
    content: "";

    position: absolute;

    left: 0;
    top: 18px;
    bottom: 18px;

    width: 1px;

    background: rgba(255, 255, 255, .3);
}


/* =========================================================
   DOTS
   ========================================================= */

.main-hero-slider__pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 24px;
}


.main-hero-slider__dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 2px solid #237a76;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition:
            width .25s ease,
            border-radius .25s ease,
            background-color .25s ease;
}


.main-hero-slider__dot--active {
    width: 40px;

    border-radius: 10px;

    background: #237a76;
}

.plans__desc{
    margin: 0 0 32px;
    max-width: 700px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.plans__grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.plans__card{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    border-radius: 16px;
    padding: 22px 22px 20px;
    min-height: 220px;
}

.plans__card--green{ background: var(--green-light); border:1px solid rgba(35,113,109,.16); }
.plans__card--purple{ background: var(--purple-bg); border:1px solid var(--purple-line); }
.plans__card--red{ background: var(--red-bg); border:1px solid var(--red-line); }

.plans__watermark{
    position:absolute;
    pointer-events:none;
    z-index:0;
}

.plans__card--green .plans__watermark{
    bottom:0;
    width:150px; height:150px;
    color:#23716d;
    opacity:.5;
    right: 0;
}
.plans__card--purple .plans__watermark{
    right:0; bottom:0;
    width:150px; height:150px;
    color: var(--purple);
    opacity:.5;
}
.plans__card--red .plans__watermark{
    width:150px;
    height:150px;
    overflow:hidden;
    bottom: 0;
    right: 0;
}
.plans__card--red .plans__watermark span{
    position:absolute;
    right:-70px; top:-40px;
    width:220px; height:340px;
    background: repeating-linear-gradient(
            55deg,
            rgba(217,74,86,.22) 0 10px,
            transparent 10px 22px
    );
    transform: rotate(8deg);
}

.plans__body{ position:relative; z-index:1; display:flex; flex-direction:column; height:100%; }

.plans__card-title{
    margin:0 0 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height:1.3;
}

.plans__card-text{
    margin:0 0 10px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}
.plans__card-text:last-of-type{ margin-bottom:0; }
.plans__card-text b{ color: var(--text); font-weight:700; }

.plans__link{
    margin-top:auto;
    padding-top: 18px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    width:fit-content;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
    text-decoration:none;
    transition: gap .2s ease, opacity .2s ease;
}
.plans__card--purple .plans__link{ color: var(--purple); }
.plans__card--red .plans__link{ color: var(--red); }

.plans__link i{ font-size:.75rem; transition: transform .2s ease; }
.plans__link:hover{ gap:10px; }
.plans__link:hover i{ transform: translateX(2px); }

.about{
    padding: 64px 0 0;
    background:#f6f7f7;
}

.about__top{
    display:grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items:start;
    margin-bottom: 20px;
}

.about__title{
    margin:0 0 20px;
    color: var(--text);
    font-family:'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.about__text{
    margin:0 0 16px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}
.about__text:last-of-type{ margin-bottom: 28px; }

.about__btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(35,113,109,.25);
    background:#fff;
    color: var(--green);
    text-decoration:none;
    font-weight:600;
    font-size: 15px;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.about__btn:hover{
    background: var(--green-light);
    border-color: var(--green);
    transform: translateX(2px);
}
.about__btn i{ font-size:.8rem; }

.about__media{
    border-radius: 16px;
    overflow:hidden;
    aspect-ratio: 16 / 11.2;
}
.about__media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.about__stats{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.about__stat{
    background:#fff;
    border-radius: 14px;
    padding: 22px 22px 20px;
}

.about__stat-num{
    display:flex;
    align-items:baseline;
    gap:6px;
    margin:0 0 10px;
    color: var(--green);
    font-family:'Inter', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.about__stat-num span{
    color: var(--green);
    font-size: 20px;
    font-weight: 700;
}

.about__stat-label{
    margin:0;
    color: var(--muted);
    font-size: 13px;
    line-height:1.4;
}

.procedure{
    padding: 64px 0 0;
    background:#f6f7f7;
}

.procedure__title{
    margin:0 0 28px;
    color: var(--text);
    font-family:'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.procedure__grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.procedure__card{
    position:relative;
    overflow:hidden;
    border-radius: 16px;
    padding: 22px 22px 24px;
    background: var(--green-light);
    border: 1px solid rgba(35,113,109,.16);
    min-height: 240px;
}

.procedure__num{
    position:absolute;
    right:-18px;
    bottom:-26px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(35,113,109,.12);
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Inter', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: rgba(35,113,109,.38);
    z-index:0;
}

.procedure__body{ position:relative; z-index:1; max-width: 88%; }

.procedure__card-title{
    margin:0 0 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height:1.3;
}

.procedure__note{
    margin:0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height:1.5;
}

.procedure__contacts{
    display:flex;
    flex-wrap:wrap;
    gap: 6px 18px;
    margin-bottom: 14px;
}
.procedure__contacts:last-child{ margin-bottom:0; }

.procedure__contact{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration:none;
    white-space:nowrap;
}
.procedure__contact i{ color: var(--green); font-size: .8rem; }

.procedure__list{
    margin:0;
    padding:0;
    color: var(--muted);
    font-size: 13.5px;
    line-height:1.55;
}
.procedure__list p{ margin: 0 0 12px; }
.procedure__list p:last-child{ margin-bottom:0; }
.procedure__list b{ color: var(--text); font-weight:700; }

.procedure__bullets{
    margin:0;
    padding:0;
    list-style:none;
    color: var(--muted);
    font-size: 13.5px;
    line-height:1.55;
}
.procedure__bullets li{
    position:relative;
    padding-left: 16px;
    margin-bottom: 10px;
}
.procedure__bullets li:last-child{ margin-bottom:0; }
.procedure__bullets li::before{
    content:"";
    position:absolute;
    left:2px;
    top:8px;
    width:5px;
    height:5px;
    border-radius:50%;
    background: var(--green);
}
.procedure__bullets b{ color: var(--text); font-weight:700; }

.reviews{
    padding: 64px 0 0;
    background:#f6f7f7;
}

.reviews__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom: 24px;
}

.reviews__title{
    margin:0;
    color: var(--text);
    font-family:'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.reviews__all{
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(35,113,109,.25);
    background:#fff;
    color: var(--green);
    text-decoration:none;
    font-weight:600;
    font-size: 15px;
    white-space:nowrap;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.reviews__all:hover{
    background: var(--green-light);
    border-color: var(--green);
    transform: translateX(2px);
}
.reviews__all i{ font-size:.8rem; }

.reviews__viewport{ overflow:hidden; }

.reviews__track{
    display:flex;
    transition: transform .4s ease;
}

.reviews__group{
    flex: 0 0 100%;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.reviews__card{
    background:#fff;
    border: 1px solid rgba(17,17,34,.06);
    border-radius: 16px;
    padding: 20px 22px 22px;
}

.reviews__card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.reviews__author{
    margin:0 0 4px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.reviews__date{
    margin:0;
    color: var(--muted);
    font-size: 12.5px;
}

.reviews__stars{
    flex-shrink:0;
    display:flex;
    gap: 3px;
    padding-top:2px;
}
.reviews__stars i{ color: var(--green); font-size: .8rem; }

.reviews__text{
    margin:0;
    color: var(--muted);
    font-size: 13.5px;
    line-height:1.6;
}

.reviews__nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 18px;
    margin-top: 32px;
}

.reviews__arrow{
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border: none;
    color: var(--green);
    cursor:pointer;
    background: none;
}
.reviews__arrow:hover:not(:disabled){ }
.reviews__arrow:disabled{ opacity:.35; cursor:default; }
.reviews__arrow i{ font-size:.85rem; }

.reviews__dots{
    display:flex;
    align-items:center;
    gap: 8px;
}

.reviews__dot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(35,113,109,.22);
    border:none;
    padding:0;
    cursor:pointer;
    transition: width .25s ease, background-color .25s ease;
}
.reviews__dot.is-active{
    width: 24px;
    background: var(--green);
}
.main-faq-title {
    padding-top: 32px;
    position: relative;
    z-index: 2;
}
.main-faq__list {
    position: relative;
    z-index: 2;
    padding-bottom: 32px;
}

.sanatorium{
    padding: 64px 0 0;
}

.sanatorium__grid{
    display:grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items:start;
}

.sanatorium__title{
    margin:0 0 20px;
    color: var(--text);
    font-family:'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sanatorium__text{
    margin:0 0 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
.sanatorium__text:last-of-type{ margin-bottom: 28px; }

.sanatorium__btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(35,113,109,.25);
    background:#fff;
    color: var(--green);
    text-decoration:none;
    font-weight:600;
    font-size: 15px;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.sanatorium__btn:hover{
    background: var(--green-light);
    border-color: var(--green);
    transform: translateX(2px);
}

.sanatorium__media{
    border-radius: 16px;
    overflow:hidden;
    aspect-ratio: 16 / 12.2;
}
.sanatorium__media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.news{
    background:#f6f7f7;
}

.news__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom: 24px;
}

.news__title{
    margin:0;
    color: var(--text);
    font-family:'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.news__all{
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(35,113,109,.25);
    background:#fff;
    color: var(--green);
    text-decoration:none;
    font-weight:600;
    font-size: 15px;
    white-space:nowrap;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.news__all:hover{
    background: var(--green-light);
    border-color: var(--green);
    transform: translateX(2px);
}
.news__all i{ font-size:.8rem; }

.news__grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

/* ---------- featured card ---------- */
.news__featured{
    position:relative;
    grid-row: 1 / 3;
    overflow:hidden;
    border-radius: 16px;
    text-decoration:none;
    display:block;
    min-height: 340px;
}

.news__featured img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.news__featured::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(17,17,34,0) 45%, rgba(17,17,34,.72) 100%);
}

.news__date{
    position:relative;
    z-index:1;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight:600;
}

.news__featured .news__date{
    position:absolute;
    top:16px; left:16px;
    background: rgba(255,255,255,.85);
    color: var(--text);
    backdrop-filter: blur(4px);
}

.news__featured-title{
    position:absolute;
    left:16px; right:16px; bottom:18px;
    z-index:1;
    margin:0;
    color:#fff;
    font-size: 19px;
    font-weight: 700;
    line-height:1.3;
}

/* ---------- list items ---------- */
.news__item{
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    gap: 16px;
    padding: 18px;
    background:#fff;
    border-radius: 16px;
    text-decoration:none;
}

.news__item-text{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.news__item .news__date{
    background: var(--green-light);
    color: var(--green);
    align-self:flex-start;
}

.news__item-title{
    margin: 10px 0 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height:1.35;
}

.news__item-thumb{
    flex-shrink:0;
    width: 150px;
    border-radius: 10px;
    overflow:hidden;
}
.news__item-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.blog-grid.main-news-grid {
    grid-template-rows: 480px;
}

.main-appointment-banner {
    margin-top: 78px;
}

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

@media (max-width: 1199px) {



    .main-page__container {
        width: min(calc(100% - 40px), 1000px);
    }

    .main-hero-slide {
        min-height: 520px;
    }


    .main-hero-slide__content {
        padding: 50px 0 40px 40px;
    }


    .main-hero-slide__title {
        font-size: 48px;
    }


    .main-hero-slide__description {
        font-size: 20px;
    }


    .main-hero-slide__advantages {
        flex-wrap: wrap;
    }


    .main-hero-slide__advantage {
        font-size: 15px;
    }


    .main-hero-slide__actions {
        margin-top: 45px;

        flex-wrap: wrap;
    }


    .main-hero-slide__button {
        width: 230px;
    }


    .main-hero-slide__rating {
        display: none;
    }


    .main-hero-slide--second .main-hero-slide__content {
        padding-top: 100px;
    }


    .main-hero-slide--second .main-hero-slide__title {
        font-size: 42px;
    }


    .main-hero-slider__arrows {
        right: 35px;
        bottom: 35px;
    }
    .plans{ padding: 52px 0 60px; }
    .plans__title{ font-size: 28px; }
    .about{ padding: 52px 0 60px; }
    .about__title{ font-size: 27px; }

    .reviews{ padding: 52px 0 60px; }
    .reviews__title{ font-size: 27px; }

    .sanatorium{ padding: 52px 0 60px; }
    .sanatorium__title{ font-size: 27px; }

    .news{ padding: 52px 0 60px; }
    .news__title{ font-size: 27px; }
    .news__featured{ min-height: 300px; }
    .news__item-thumb{ width:120px; }
}


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

@media (max-width: 767px) {

    .main-hero-slider__arrows {
        display: none;
    }

    .main-page {
        padding: 24px 0 40px;
    }


    .main-page__container {
        width: calc(100% - 32px);
    }

    .main-hero-slider {
        width: 100%;
    }


    .main-hero-slider__viewport {
        border-radius: 0;
    }


    .main-hero-slide {
        min-height: 620px;
    }


    /* CONTENT */

    .main-hero-slide__content,
    .main-hero-slide--second .main-hero-slide__content {
        width: 100%;

        padding: 30px 20px 150px;
    }


    .main-hero-slide__title,
    .main-hero-slide--second .main-hero-slide__title {
        max-width: 100%;

        font-size: 32px;
        line-height: 1.16;
    }


    .main-hero-slide__advantages {
        display: flex;

        flex-wrap: nowrap;

        gap: 8px;

        margin-top: 20px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .main-hero-slide__advantages::-webkit-scrollbar {
        display: none;
    }


    .main-hero-slide__advantage {
        flex: 1 1 0;

        min-height: 40px;

        padding: 0 10px;

        gap: 7px;

        border-radius: 8px;

        font-size: 12px;
    }


    .main-hero-slide__advantage-icon {
        display: none;
    }


    .main-hero-slide__description,
    .main-hero-slide--second .main-hero-slide__description {
        margin-top: 20px;

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


    /* ACTIONS */

    .main-hero-slide__actions {
        position: absolute;

        left: 20px;
        right: 20px;
        bottom: 25px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin: 0;
    }


    .main-hero-slide__button,
    .main-hero-slide--second .main-hero-slide__button {
        width: 100%;
        height: 48px;

        margin: 0;

        font-size: 15px;
    }


    .main-hero-slide__rating {
        display: none;
    }


    /* DOCTORS IMAGE */

    .main-hero-slide__image--doctors {
        right: -15%;

        bottom: 75px;

        width: 105%;
        height: 42%;

        opacity: 1;
    }


    .main-hero-slide--first .main-hero-slide__content {
        padding-bottom: 220px;
    }


    /* SECOND SLIDE */

    .main-hero-slide--second {
        min-height: 620px;
    }


    .main-hero-slide--second .main-hero-slide__content {
        position: relative;

        z-index: 3;

        padding-top: 45px;
    }


    .main-hero-slide__image--building {
        top: auto;
        bottom: 0;

        width: 100%;
        height: 43%;
    }


    .main-hero-slide--second .main-hero-slide__button {
        width: 100%;
    }


    /* ARROWS */

    .main-hero-slider__arrows {
        right: 20px;
        bottom: 20px;

        width: 120px;
        height: 48px;
    }


    .main-hero-slider__arrow {
        font-size: 22px;
    }


    .main-hero-slider__arrow + .main-hero-slider__arrow::before {
        top: 12px;
        bottom: 12px;
    }


    /* DOTS */

    .main-hero-slider__pagination {
        gap: 9px;

        margin-top: 0;
    }


    .main-hero-slider__dot {
        width: 8px;
        height: 8px;
    }


    .main-hero-slider__dot--active {
        width: 32px;
    }

    .about{ padding: 40px 0 0; }
    .about__top{ grid-template-columns: 1fr; gap: 24px; }
    .about__media{ order:-1; aspect-ratio: 16/10; }
    .about__title{ font-size: 24px; }
    .about__text{ font-size: 14px; }
    .about__stats{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .about__stat{ padding: 18px; }
    .about__stat-num{ font-size: 26px; }

    .procedure{ padding: 52px 0 60px; }
    .procedure__title{ font-size: 27px; }
}


@media (max-width: 767px) {

    .main-hero-slide--overlay .main-hero-slide__content {
        display: flex;
        flex-direction: column;

        width: 100%;
        height: 100%;
        padding: 16px 16px 0 16px;
    }

    .main-hero-slide--overlay .main-hero-slide__eyebrow {
        display: block;

        order: 0;
    }

    .main-hero-slide--overlay .main-hero-slide__title {
        order: 1;
    }

    .main-hero-slide--overlay .main-hero-slide__description {
        order: 2;

        margin: 12px 0;

    }

    /* Фото — в потоке, на всю ширину экрана (выходит за padding контента).
       Затемнение снизу для читаемости плашек/кнопок поверх него. */

    .main-hero-slide--overlay .main-hero-slide__image {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: -16px;

        order: 3;

        width: 100vw;
        height: 360px;

        margin: 20px 0 0;

        overflow: hidden;
        margin-top: auto;
    }

    .main-hero-slide--overlay .main-hero-slide__image img {
        object-fit: cover;
        object-position: center right;
    }

    .main-hero-slide--overlay .main-hero-slide__image::after {
        content: "";

        position: absolute;
        inset: 0;

        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(10, 25, 22, .75) 100%);

        pointer-events: none;
    }

    /* Плашки-преимущества и блок действий наплывают на фото снизу.
       Если в слайде нет плашек/рейтинга (как во втором слайде) —
       соответствующие правила просто ни на что не влияют. */

    .main-hero-slide--overlay .main-hero-slide__advantages {
        position: absolute;
        z-index: 2;

        order: 4;

        width: calc(100% - 36px);

        bottom: 175px;
    }

    .main-hero-slide--overlay .main-hero-slide__actions {
        position: absolute;
        z-index: 2;

        left: 16px;
        right: 16px;

        order: 5;

        bottom: 16px;
    }

    /* Кнопка "Наши направления" / "Подробнее" — над фото нужен
       непрозрачный фон, иначе контур на фотографии плохо читается */

    .main-hero-slide--overlay .main-hero-slide__button--secondary {
        border-color: #fff;

        color: #fff;
        background: rgba(10, 25, 22, .25);

        backdrop-filter: blur(4px);
    }

    .main-hero-slide--overlay .main-hero-slide__button--secondary:hover {
        background: #fff;
        color: #185b57;
    }

    /* Рейтинг — горизонтальной полосой, первым в блоке действий
       (актуально только для слайдов, где он есть) */

    .main-hero-slide--overlay .main-hero-slide__rating {
        display: flex;
        align-items: center;

        gap: 10px;

        width: 100%;

        order: -1;

        padding: 5px 10px;

        min-height: 0;
    }

    .main-hero-slide--overlay .main-hero-slide__rating-top {
        display: flex;
        align-items: center;

        gap: 8px;
    }

    .main-hero-slide--overlay .main-hero-slide__rating-top strong {
        font-size: 14px;
    }

    .main-hero-slide--overlay .main-hero-slide__stars {
        font-size: 14px;
    }

    /* Показываем "4,7/5,0" вместо "5,0", как в макете для мобильной версии */

    .main-hero-slide--overlay .main-hero-slide__rating-top strong::before {
        content: "4,7/";

        color: #666;
        font-weight: 500;
    }

    .main-hero-slide--overlay .main-hero-slide__rating-text {
        margin-top: 0;
        margin-left: 4px;

        white-space: nowrap;
    }

    .comfort{ padding: 40px 0; }
    .comfort__title{ font-size: 24px; margin-bottom: 20px; }
    .comfort__grid{ grid-template-columns: 1fr; gap: 12px; }
    .comfort__item{ padding: 18px; }

    .plans{ padding: 40px 0 0; }
    .plans__title{ font-size: 24px; margin-bottom:16px; }
    .plans__desc{ font-size: 14px; margin-bottom:24px; }
    .plans__grid{ grid-template-columns: 1fr; gap: 14px; }
    .plans__card{ min-height:auto; }

    .about__btn{
        width:100%;
        justify-content:center;
        text-align:center;
    }

    .procedure{ padding: 40px 0 0; }
    .procedure__title{ font-size: 24px; margin-bottom: 20px; }
    .procedure__grid{ grid-template-columns: 1fr; gap: 14px; }
    .procedure__card{ min-height:auto; }
    .procedure__body{ max-width:80%; }
    .procedure__num{ width:100px; height:100px; font-size:48px; }

    .reviews{ padding: 40px 0 0; }
    .reviews__head{ flex-direction:column; align-items:flex-start; gap:16px; }
    .reviews__all{ width:100%; justify-content:center; }
    .reviews__title{ font-size: 24px; }
    .reviews__group{ grid-template-columns: 1fr; gap: 12px; }
    .reviews__nav{ margin-top: 24px; }

    .sanatorium{ padding: 40px 0 0; }
    .sanatorium__grid{ grid-template-columns: 1fr; gap: 24px; }
    .sanatorium__media{ order:-1; aspect-ratio: 16/10; }
    .sanatorium__title{ font-size: 24px; }
    .sanatorium__text{ font-size: 14px; }
    .sanatorium__btn{ width:100%; justify-content:center; }


    .news{ padding: 40px 0 0; }
    .news__head{ flex-direction:column; align-items:flex-start; gap:16px; }
    .news__all{ width:100%; justify-content:center; }
    .news__title{ font-size: 24px; }

    .news__grid{ grid-template-columns: 1fr; grid-template-rows: none; }
    .news__featured{ grid-row:auto; min-height: 260px; }

    .news__item{ flex-direction:row; padding:14px; }
    .news__item-thumb{ width:96px; }
    .news__item-title{ font-size: 14px; }

    .news__all {
        display: none;
    }

}

