/* Базовые настройки для секции banner-main*/
.hero-section {
    padding: 40px 0;
}

/* Основная карточка */
.hero-card {
    background: var(--white);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 24px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.02);
}

/* Левая колонка */
.hero-content {
    padding: 40px 20px 40px 40px;
    display: flex;
    flex-direction: column;
}

.hero-content .address {
    position: relative;
    max-width: 215px;
    padding-left: 40px;
}

.hero-content .address::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 28px;
    height: 28px;
    background: url('/assets/images/design/icon/icon-location.svg');
}

.hero-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
    margin-top: 50px;
    max-width: 550px;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--main-text-color);
    margin-bottom: 32px;
    max-width: 60%;
}

/* Список преимуществ */
.features-list {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.feature-icon .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Кнопки */
.hero-actions {
    display: flex;
    gap: 16px;
}

/* Правая колонка с графикой */
.hero-visual {
    background: var(--accent);
    border-radius: var(--radius-md);
    position: relative;
    min-height: 580px;
    overflow: visible;
    background: url('/assets/images/design/stats-wrapper-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.visual-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
}

.patients-count {
    color: var(--white);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Блок рейтинга Яндекс */
.yandex-rating {
    background: var(--white);
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yandex-logo {
    width: 32px;
    height: 32px;
    background: #FC3F1D;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

.yandex-info {
    display: flex;
    flex-direction: column;
}

.yandex-score {
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    color: var(--text);
}

.yandex-score .star {
    color: #FFCC00;
}

.yandex-reviews {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Картинка врачей */
.doctors-img {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-50%);
    height: 90%;
    object-fit: contain;
    z-index: 2;
}

/* Стеклянные плашки (Glassmorphism) */
.glass-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    z-index: 4;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.badge-1 {
    bottom: 25%;
    left: -40%;
    /* Выступает за край */
}

.badge-2 {
    top: 55%;
    left: 10%;
}

.badge-3 {
    bottom: 12%;
    left: 30%;
}

/* =========================================
   Адаптив (Планшеты и Мобильные устройства) 
   ========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-content {
        padding: 24px;
    }

    .badge-1 {
        left: 10px;
    }

    .badge-3 {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .hero-content {
        padding: 16px 8px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 450px;
        border-radius: 20px;
    }

    .visual-header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
    }

    /* Корректировка позиций плашек для мобилки */
    .badge-1 {
        bottom: 15%;
        left: 5%;
        font-size: 12px;
        padding: 8px 16px;
    }

    .badge-2 {
        top: 65%;
        left: unset;
        right: 5%;
        font-size: 12px;
        padding: 8px 16px;
    }

    .badge-3 {
        left: unset;
        bottom: 5%;
        right: 10%;
        font-size: 12px;
        padding: 8px 16px;
    }

    .doctors-img {
        height: 85%;
        width: 100%;
        object-fit: contain;
        left: 50%;
    }
}

@media (max-width: 596px) {
    .doctors-img {
        height: 75%;
        object-fit: cover;
    }
}


.health-stats {
    background-color: var(--stats-bg);
    padding: 60px 20px;
    font-family: sans-serif;
    /* Замените на шрифт вашего проекта */
}

.health-stats__header {
    margin-bottom: 50px;
}

.health-stats__title {
    font-weight: 500;
    font-size: 48px;
    line-height: 110%;
    color: var(--main-text-color);
    margin: 0 0 15px 0;
}

.health-stats__description {
    font-weight: 400;
    font-size: 20px;
    line-height: 130%;
}

/* Сетка для элементов статистики */
.health-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 колонки на десктопе */
    gap: 30px;
}

.health-stats__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 30px;
    border-left: 1px solid var(--border);
}


.health-stats__value {
    font-size: 64px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1;
}

.health-stats__label {
    font-size: 14px;
    color: var(--stats-text-dark);
    line-height: 1.4;
}

/* Адаптив для планшетов и мобильных */
@media (max-width: 991px) {
    .health-stats__title {
        font-size: 28px;
        line-height: 110%;
    }

    .health-stats__description {
        font-weight: 400;
        font-size: 16px;
        line-height: 130%;
    }

    .health-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .health-stats__item {
        padding-left: 0;
        border-left: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border);
    }

    .health-stats__item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .health-stats {
        padding: 40px 15px;
    }

    .health-stats__title {
        font-size: 24px;
    }

    .health-stats__grid {
        grid-template-columns: 1fr;
        /* 1 колонка на мобилках */
        gap: 30px;
    }

    .health-stats__value {
        font-size: 40px;
    }
}


.advantages-section {
    padding: 60px 0;
    font-family: Arial, sans-serif;
    /* Замените на шрифт вашего проекта */
}

/* Сетка преимуществ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Серая подложка для иконки */
.advantage-icon-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #F0F2F5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage-icon-wrap img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.advantage-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    text-align: center;
    color: var(--main-text-color);
    margin: 0 0 10px 0;
}

.advantage-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    text-align: center;
    color: var(--main-text-color);
    max-width: 90%;
}

/* Адаптивность */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        text-align: center;
        font-size: 26px;
    }

    .advantage-icon-wrap {
        aspect-ratio: 8/4;
    }
}

.process-section {
    padding: 60px 0;
}


.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

/* .process-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    margin: 0;
} */

.process-btn {
    display: inline-block;
    background-color: var(--accent, #0d8295);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 40px;
    /* Округлые кнопки по макету */
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.process-btn:hover {
    background-color: var(--accent);
}


.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Горизонтальная пунктирная линия на десктопе */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 65px;
    width: calc(100% - 65px);
    border-bottom: 2px dashed #6C7879;
    z-index: 1;
}

.process-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.process-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.process-step_active .process-icon-wrap {
    background-color: var(--accent);
    border-color: var(--accent);
}

.process-step_active .process-icon {
    color: #ffffff;
}

.process-step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.process-step-text {
    font-size: 14px;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {

    .process-section .container {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .process-header {
        display: contents;
    }

    .process-header button {
        position: absolute;
        bottom: 0;
        width: calc(100% - 40px);
    }

    .process-title {
        order: 1;
        margin-bottom: 32px;
    }

    .process-steps {
        order: 2;
        grid-template-columns: 1fr;
        row-gap: 135px;
        margin-bottom: 100px;
    }

    .process-btn {
        order: 3;
        align-self: center;
        width: 100%;
        max-width: 340px;
        text-align: center;
        padding: 16px 28px;
    }

    .process-step {
        display: grid;
        grid-template-columns: 50px 1fr;
        column-gap: 16px;
    }

    .process-icon-wrap {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .process-step-title {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 8px;
    }

    .process-step-text {
        grid-column: 2;
        grid-row: 2;
    }

    /* Вертикальная пунктирная линия строго под иконкой */
    .process-step:not(:last-child)::after {
        top: 65px;
        left: 25px;
        width: 0;
        height: calc(100% + 120px - 65px);
        border-left: 2px dashed #6C7879;
        border-bottom: none;
    }
}

/* --- Стили секции преимущества --- */
.why_choose_us-section {
    background-color: var(--main-bg-color);
    padding: 80px 0;
}

.why_choose_us-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
    align-items: start;
}

/* --- Левая колонка (Шапка блока) --- */
.why_choose_us-header {
    position: sticky;
    top: 20px;
}

/* .why_choose_us-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
    line-height: 1.25;
} */

.why_choose_us-main-desc {
    font-size: 15px;
    line-height: 130%;
    margin: 0;
}

/* --- Правая колонка (Сетка карточек) --- */
.why_choose_us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px var(--padding-big);
}

.why_choose_us-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why_choose_us-icon-wrap {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.why_choose_us-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.why_choose_us-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.why_choose_us-item-text {
    font-size: 14px;
    line-height: 130%;
    color: var(--dark-gray);
    margin: 0;
}

@media (max-width: 992px) {
    .why_choose_us-section {
        padding: 50px 0;
    }

    .why_choose_us-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why_choose_us-header {
        position: static;
    }

    .why_choose_us-main-title {
        font-size: 28px;
        margin-bottom: 12px;
        font-weight: 500;
    }

    .why_choose_us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px var(--padding-standart); /* Сужаем горизонтальный зазор до 16px */
    }
}

@media (max-width: 596px) {
    .why_choose_us-main-title {
        font-size: 24px;
    }
    
    .why_choose_us-grid {
        gap: 32px 12px;
    }

    .why_choose_us-item-title {
        font-size: 16px;
    }

    .why_choose_us-item-text {
        font-size: 14px;
    }
}


.services-bento__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 50px 0;
}

.services-bento__card {
    position: relative;
    background-color: var(--white, #fff);
    border-radius: var(--radius-md, 20px);
    padding: 30px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

/* Скрытая по умолчанию preview-картинка */
.services-bento__card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.35s ease, transform 0.4s ease;
    transform: scale(1.05);
}

/* Затемнение подложки для читаемости текста при ховере */
.services-bento__card-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(13, 101, 101, 0.9) 0%, rgba(9, 74, 74, 0.85) 100%);
}

.services-bento__header,
.services-bento__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.services-bento__footer {
    align-items: flex-end;
    margin-top: auto;
}

.services-bento__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    transition: color 0.3s ease;
}

.services-bento__price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.services-bento__desc {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.4;
    margin: 0;
    max-width: 80%;
    transition: color 0.3s ease;
}

.services-bento__arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f4f6f6;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* --- Эффекты наведения --- */
.services-bento__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.services-bento__card:hover .services-bento__card-bg {
    opacity: 1;
    transform: scale(1);
}

.services-bento__card:hover .services-bento__title,
.services-bento__card:hover .services-bento__price,
.services-bento__card:hover .services-bento__desc {
    color: var(--white);
}

.services-bento__card:hover .services-bento__arrow {
    background-color: var(--white);
    color: var(--accent);
    transform: rotate(-45deg);
}

/* --- Динамический баннер --- */
.services-bento__banner {
    grid-column: span var(--banner-span, 1);
    border-radius: var(--radius-md, 20px);
    overflow: hidden;
    height: 100%;
    min-height: 220px;
}

.services-bento__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Мобильная адаптация --- */
@media (max-width: 992px) {
    .services-bento__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-bento__banner {
        grid-column: span 2 !important; /* На планшетах всегда бьем во всю строку */
    }
}

@media (max-width: 680px) {
    .services-bento__grid {
        grid-template-columns: 1fr;
    }
    .services-bento__banner {
        display: none; /* На мобилках скрываем баннер согласно макету */
    }
}