/* ===========================================
   Блок: Герой "Клиники-партнеры"
   BEM: clinics-hero
   =========================================== */

.clinics-hero {
    padding-top: 180px;
    position: relative;
    margin-bottom: 70px;
}

.clinics-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 786px;
    background: linear-gradient(180deg, #c4e2ff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.clinics-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --- Шапка секции --- */

.clinics-hero__header {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    z-index: 10;
}

/* --- Заголовки --- */

.clinics-hero__heading {
    text-align: center;
}

.clinics-hero__title {
    margin: 0;
    font-family:
        "Montserrat",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.7;
    text-transform: uppercase;
    color: #28314d;
    text-align: center;
}

.clinics-hero__subtitle {
    margin: 0;
    font-family:
        "Montserrat",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.7;
    text-transform: uppercase;
    color: #28314d;
    text-align: center;
}

/* --- Поиск по городу --- */

.clinics-hero__search-wrapper {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 3;
}

.clinics-hero__search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 414px;
    height: 50px;
    padding: 6px 6px 6px 25px;
    border: 1.5px solid #5d72b7;
    border-radius: 30px;
    position: relative;
    background: #fff;
    z-index: 3;
}

.clinics-hero__search-pin {
    flex-shrink: 0;
    width: 21px;
    height: 26px;
    display: block;
}

/* --- Поле выбора города --- */

.clinics-hero__city-input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    font-family:
        "Montserrat",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #5d72b7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.clinics-hero__city-input::placeholder {
    color: #8ea0d6;
}

.clinics-hero__city-input::-webkit-search-cancel-button,
.clinics-hero__city-input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.clinics-hero__city-input[aria-expanded="true"] {
    cursor: text;
}

/* --- Выпадающий список городов --- */

.clinics-hero__city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1.5px solid #5d72b7;
    border-radius: 16px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(93, 114, 183, 0.15);
    max-height: 260px;
    overflow-y: auto;
}

.clinics-hero__city-dropdown--open {
    display: block;
}

.clinics-hero__city-option[hidden] {
    display: none;
}

.clinics-hero__city-option {
    padding: 10px 20px;
    font-family:
        "Montserrat",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: #28314d;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.clinics-hero__city-option:hover {
    background: #eef2ff;
    color: #5d72b7;
}

.clinics-hero__city-option--active {
    color: #5d72b7;
    font-weight: 600;
}

.clinics-hero__search-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: 38px;
    padding: 0 20px;
    background: #5d72b7;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clinics-hero__search-btn:hover {
    background: #4a5fa6;
}

.clinics-hero__search-btn:focus {
    outline: none;
}

.clinics-hero__search-icon {
    flex-shrink: 0;
    display: block;
}

.clinics-hero__search-btn-text {
    font-family:
        "Montserrat",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #fdffff;
    white-space: nowrap;
}

/* --- Карта --- */

.clinics-hero__map {
    position: relative;
    z-index: 1;
    border-radius: 40px;
    overflow: hidden;
}

.clinics-hero__map-container {
    width: 100%;
    height: 360px;
    background: #dbe9f5;
    position: relative;
    z-index: 1;
}

/* ===========================================
   Адаптивность
   =========================================== */

@media (max-width: 768px) {
    .clinics-hero {
        padding-top: 120px;
        margin-bottom: 40px;
    }

    .clinics-hero__inner {
        gap: 22px;
    }

    .clinics-hero__header {
        gap: 40px;
    }

    .clinics-hero__heading {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }

    .clinics-hero__title {
        font-size: 26px;
        line-height: 1.3;
        text-align: left;
    }

    .clinics-hero__subtitle {
        font-size: 18px;
        font-weight: 500;
        line-height: 1.4;
        text-transform: none;
        text-align: left;
    }

    .clinics-hero__search-wrapper {
        justify-content: flex-start;
    }

    .clinics-hero__search {
        width: 100%;
        max-width: 100%;
    }

    .clinics-hero__search-btn {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .clinics-hero__search-btn-text {
        display: none;
    }

    .clinics-hero__map {
        border-radius: 20px;
    }

    .clinics-hero__map-container {
        height: 200px;
    }
}
