:root {
    --gutter-sm-responsive: clamp(16px, 4vw, 48px);
}
.home {
    background-color: #FFF5FC;
    position: relative;
    /*Hero Section*/
    .hero {
        position: relative;
        width: 100%;
        height: 800px;
        background: linear-gradient(#2d0020 15.2017%, #42002f 30.0174%, #7a0058 53.4755%, #b31085 74.0528%, #c21491 100%);
        border-bottom-right-radius: 36px;
        border-bottom-left-radius: 36px;
    }
   /* Базовое состояние хедера (на самом верху) */
.hero .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    /* padding: 25px 0;  */
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавная "дорогая" анимация */
}

/* Состояние при скролле (активируется через JS) */
.hero .header--scrolled {
    /* padding: 10px 0;  */
    position: fixed;
    
    /* Градиент в стиле вашего MedSpa */
    /* background: linear-gradient(90deg, #310121 0%, #4a0232 50%, #310121 100%); */
    background: linear-gradient(270deg, #2d0020 25.2017%, #42002f 45.0174%, #7a0058 65.4755%, #b31085 85.0528%, #c21491 100%);
    
    /* Тень для объема */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    
    /* Анимация "выплывания" сверху (опционально) */
    animation: slideDown 0.5s ease;
}

/* Эффект для ссылок, чтобы они не сливались */
.hero .header__menu a {
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Анимация появления */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}



.header__wrapper {

    
}
    @media (max-width: 1024px) {
        .hero {
            height: 750px;
        }
        .hero__wrapper {
            justify-content: flex-end;
            flex-direction: column;
            gap: 40px;
        }
    }
    .banner_fon {
        background-image: none;
    }
    .hero__wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        z-index: 1;
    }
    @media (max-width: 1024px) {
        .hero__wrapper {
            flex-direction: column;
            gap: 40px;
        }
    }
    .hero__content {
        flex: 0 1 50%;
        display: flex;
        flex-direction: column;
        justify-content: end;
        padding: var(--gutter-sm-responsive, 16px);
        box-sizing: border-box;
        max-width: var(--container, calc(100% - 40px));
        width: 100%;
        margin-inline: auto;
    }
    @media (max-width: 1024px) {
        .hero__content {
            padding: 120px 0 0;
            justify-content: flex-start;
        }
    }

    .hero__image {
        flex: 0 1 50%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 400px;
    }
    @media (max-width: 1024px) {
        .hero__image {
            flex: 0 0 300px;
            max-height: 300px;
            height: 40vh;
            min-height: 250px;
            border-bottom-right-radius: 36px;
            border-bottom-left-radius: 36px;
            background-position: 0 10%;
        }
    }
    .hero__title {
        width: 100%;
        font-size: clamp(48px, 15vw, 206px);
        line-height: 1.2;
        color: #fff;
        font-weight: 500;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    @media (max-width: 1024px) {
        .hero__title {
            position: initial;
            font-size: clamp(32px, 12vw, 120px);
            transform: initial;
            margin-bottom: 20px;
        }
    }
    @media (max-width: 600px) {
        .hero__title {
            font-size: clamp(24px, 10vw, 64px);
        }
    }
    .hero__text-wrapper {
        display: flex;
        gap: 60px;
    }
    @media (max-width: 1200px) {
        .hero__text-wrapper {
            gap: 40px;
        }
    }
    @media (max-width: 768px) {
        .hero__text-wrapper {
            flex-direction: column;
            gap: 30px;
        }
    }
    .hero__text-column-left p,
    .hero__text-column-right p {
        font-size: 15px;
        line-height: 1.4;
        font-weight: 500;
        color: #fff;
        letter-spacing: -0.01em;
    }
    .hero__text-column-left p:not(:last-child),
    .hero__text-column-right p:not(:last-child) {
        margin-bottom: 15px;
    }
    .hero__text-column-left {
        flex: 0 1 65%;
    }
    .hero__text-column-right {
        flex: 0 1 35%;
    }
    /*end hero section*/

    /* Clinic services */
    .clinic-services {
        padding: 150px 0;
    }
    @media (max-width: 768px) {
        .clinic-services {
            padding: 100px 0;
        }
    }
    .clinic-services__title {
        text-align: left;
    }
    .clinic-services__items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    @media (max-width: 1024px) {
        .clinic-services__items {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
    }
    @media (max-width: 600px) {
        .clinic-services__items {
            grid-template-columns: 1fr;
        }
    }
    .clinic-services__item {
        position: relative;
        width: 100%;
        height: 560px;
    }
    @media (max-width: 768px) {
        .clinic-services__item {
            height: 480px;
        }
    }
    .clinic-services__item-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 40px;
    }
    .clinic-services__content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(100px);
        background-color: rgba(255, 245, 252, 0.71);
        border-radius: 40px;
        padding: 32px;
    }
    @media (max-width: 600px) {
        .clinic-services__content {
            padding: 24px;
        }
    }
    .clinic-services__item-title {
        font-family: 'Manrope', sans-serif;
        font-size: 24px;
        line-height: 1.3;
        letter-spacing: -0.04em;
        color: rgb(21, 8, 54);
        font-weight: 500;
        margin-bottom: 8px;
    }
    .clinic-services__item-description {
        font-size: 14px;
        line-height: 1.3;
        color: rgb(21, 8, 54);
        letter-spacing: -0.04em;
    }
    .clinic-services__item-icon {
        position: absolute;
        top: 32px;
        left: 32px;
        width: 42px;
        height: 42px;
        background-color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;

    }
    .clinic-services__link:hover .clinic-services__item-icon {
        transform: scale(1.4);
    }
    .clinic-services__cta {
        padding: 40px;
        box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
        background-color: #FFFFFF;
        margin-top: 80px;
        border-radius: 40px;
        text-align: center;
    }
    @media (max-width: 768px) {
        .clinic-services__cta {
            margin-top: 60px;
            padding: 30px 20px;
        }
    }
    .clinic-services__cta p {
        font-size: 28px;
        line-height: 1.4;
        font-weight: 500;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        background-image: linear-gradient(0deg, rgb(197, 161, 207) 0%, rgb(147, 112, 145) 100%);
    }
    @media (max-width: 768px) {
        .clinic-services__cta p {
            font-size: 20px;
        }
    }
    /* End Clinic services */
    /* Why choose */
    .why-choose {
        padding-bottom: 150px;
    }
    @media (max-width: 768px) {
        .why-choose {
            padding-bottom: 100px;
        }
    }
    .why-choose__items {
        background: linear-gradient(#c4479d00 0%, #c4479d80 100%);
        border-radius: 36px;
        padding: 0 100px 100px;

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    @media (max-width: 1024px) {
        .why-choose__items {
            grid-template-columns: repeat(2, 1fr);
            padding: 0 50px 50px;
        }
        .why-choose__item:nth-child(5) {
            grid-column: 1 / -1;
        }
    }
    @media (max-width: 768px) {
        .why-choose__items {
            grid-template-columns: 1fr;
            padding: 0 20px 20px;
        }
    }
    .why-choose__item {
        border: 1px solid rgba(197, 71, 158, 0.1);
        backdrop-filter: blur(20px);
        width: 100%;
        border-radius: 19px;
        opacity: 1;
        padding: 40px 32px;
    }
    .why-choose__item-title {
        font-family: "Playfair Display", serif;
        font-size: 32px;
        line-height: 1.2;
        font-weight: 400;
        color: rgb(170, 81, 184);
        margin-bottom: 10px;
    }
    @media (max-width: 768px) {
        .why-choose__item-title {
            font-size: 24px;
        }
    }
    .why-choose__item-description {
        font-size: 20px;
        line-height: 1.3;
        color: rgb(170, 81, 184);
        font-weight: 500;
        letter-spacing: -0.01em;
    }
    @media (max-width: 768px) {
        .why-choose__item-description {
            font-size: 16px;
        }
    }

    /* End Why choose */
    /* Slogan */
    .slogan {
        max-width: 966px;
        margin: auto;
        font-size: 52px;
        line-height: 1;
        color: rgb(170, 81, 184);
        font-weight: 400;
        text-align: center;
        padding-bottom: 150px;
    }
    @media (max-width: 768px) {
        .slogan {
            font-size: 32px;
            padding-bottom: 100px;
        }
    }
    .slogan__title {
        margin: 0;
    }
    /* End Slogan */
    /* Our Team */
    .our-team {
        padding-bottom: 80px;
    }
    .our-team__wrapper {
        display: flex;
        gap: 80px;
    }
    @media (max-width: 1024px) {
        .our-team__wrapper {
            gap: 40px;
        }
    }
    @media (max-width: 768px) {
        .our-team__wrapper {
            flex-direction: column;
        }
    }
    .our-team__image {
        flex: 0 1 50%;
    }
    .our-team__content {
        flex: 0 1 50%;
        position: sticky;
        top: 40px;
        align-self: flex-start;
    }
    .our-team__image img {
        width: 100%;
        height: 690px;
        object-fit: cover;
        border-radius: 36px;
    }
    .our-team__title {
        text-align: left;
        margin-bottom: 40px;
    }
    .our-team__text {
        font-size: 14px;
        line-height: 1.4;
        color: rgb(170, 81, 184);
        font-weight: 500;
        letter-spacing: -0.01em;
    }
    .our-team__text p:not(:last-child) {
        margin-bottom: 12px;
    }
    /* End Our Team */

    /* FAQ */
    .faq-services__title,
    .faq-services__question {
        color: rgb(170, 81, 184);
    }
    .faq-services__answer {
        color: #aa51b8;
    }
    .faq-services__item {
        border-bottom: 1px solid rgb(170, 81, 184);
    }
    .faq-services__icon svg {
        stroke: rgb(170, 81, 184);
    }
    /* End FAQ */

    /* Photo Gallery */
    .photo-gallery {
        padding-bottom: 150px;
    }
    @media (max-width: 768px) {
        .photo-gallery {
            padding-bottom: 100px;
        }
    }
    @media (max-width: 576px) {
        .photo-gallery {
            padding-left: 16px;
            padding-right: 16px;
        }
    }

    .photo-gallery__item {
        position: relative;
    }

    .photo-gallery__image-wrapper {
        position: relative;
        height: 350px;
        overflow: hidden;
        border-radius: 16px;
    }
    @media (max-width: 768px) {
        .photo-gallery__image-wrapper {
            min-height: 300px;
            height: auto; 
        }
    }

    .photo-gallery__image-wrapper img {
aspect-ratio: 3 / 4;
height: auto;

    }
    .swiper {
        /* height: auto;  */
    } 

    .photo-gallery__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .photo-gallery__image:hover {
        transform: scale(1.05);
    }

    .photo-gallery__title {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 12px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 600;
        color: rgb(21, 8, 54);
        text-align: center;
        padding: 8px;
        background-color: #fff;
        border-radius: 64px;
    }

    .photo-gallery__pagination {
        display: none;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 24px;
    }
    @media (max-width: 576px) {
        .photo-gallery__pagination {
            display: flex;
        }
    }

    /* End Photo Gallery */

}

.home::after {
    content: '';
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    width: 100%;
    height: 44px;
    background-color: #FFF5FC;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}