

/* Start:/local/templates/spartamed/components/bitrix/news.list/contacts/style.css?177809671316472*/
.contacts-header {
    margin-bottom: 64px;
}

/* ════════════════════════════════════════
       DESKTOP  > 991px
    ════════════════════════════════════════ */

/* tabs — скрыты на десктопе */
.clinics__tabs {
    display: none;
}

/* show-more — скрыта на десктопе */
.clinics__show-more {
    display: none;
}

/* arrow на карточках — скрыта на десктопе по умолчанию, появляется при наведении */
.clinic-card__arrow {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    background: #2BACEF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}

.clinic-card:not(.clinic-card--active):hover .clinic-card__arrow {
    opacity: 1;
}

/* hidden-карточки на десктопе показываем все */
.clinic-card--hidden {
    display: flex;
}

.clinics {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
}

/* ── list ──────────────────────────────── */
.clinics__list-wrap {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e4edf7;
    position: relative;
}

.clinics__list {
    overflow-y: auto;
    max-height: 763px;
    padding: 0 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Скрываем нативный скроллбар */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.clinics__list::-webkit-scrollbar {
    display: none;
}

/* Кастомный скроллбар */
.custom-scrollbar {
    position: absolute;
    top: 20px;
    right: 4px;
    bottom: 20px;
    width: 3px;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

.custom-scrollbar__thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 130px;
    background: #D0D4DA;
    border-radius: 2px;
    cursor: pointer;
    pointer-events: auto;
}

/* ── map ───────────────────────────────── */
.clinics__map-wrap {
    height: 763px;
    position: relative;
}

#map-clinic {
    width: 100%;
    height: 100%;
}

/* ── clinic-card (desktop: flex column, no arrow) */
.clinic-card {
    background: #F5F6FB;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: background .22s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: "Geologica", Helvetica, Arial, sans-serif;
    position: relative;
}

.clinic-card:not(.clinic-card--active):hover {
    background: #EDF4FF;
}

.clinic-card.clinic-card--active {
    background: #013A73;
    border-color: #013A73;
    transform: none;
}

.clinic-card.clinic-card--active .clinic-card__title {
    color: #fff;
}

.clinic-card.clinic-card--active .clinic-card__tag {
    background: #2BACEF;
    color: #fff;
}

.clinic-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E5EEFC;
    color: #2BACEF;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
    white-space: nowrap;
    transition: background .22s cubic-bezier(.4, 0, .2, 1), color .22s cubic-bezier(.4, 0, .2, 1);
}

.clinic-card__tag-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}


.clinic-card--active .clinic-card__tag-icon path {
    fill: #fff;
}

.clinic-card__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #1a2a3a;
    transition: color .22s cubic-bezier(.4, 0, .2, 1);
    font-family: "Geologica", Helvetica, Arial, sans-serif;
    padding-right: 48px;
}

.clinic-card:not(.clinic-card--active):hover .clinic-card__tag {
    color: #2BACEF;
}


/* ── full-card overlay ─────────────────── */
.full-card {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 380px;
    max-height: calc(100% - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(21, 101, 192, .18);
    display: flex;
    flex-direction: column;
    font-family: "Geologica", Helvetica, Arial, sans-serif;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-16px);
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}

.full-card--visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.full-card__topbar {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
}

.full-card__back {
    display: none;
}

.full-card__topbar .full-card__close {
    pointer-events: auto;
}

.full-card__scroll {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.full-card__header {
    padding: 20px 44px 16px 20px;
    border-bottom: 1px solid #e4edf7;
    flex-shrink: 0;
}

.full-card__type {
    font-size: 12px;
    font-weight: 600;
    color: #2196F3;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 4px;
}

.full-card__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #111827;
    margin-bottom: 6px;
}

.full-card__address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 22px;
    color: #111827;
}

.full-card__contacts {
    padding: 14px 20px;
    border-bottom: 1px solid #e4edf7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.full-card__schedule {
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    color: #9299A5;
    margin-bottom: 6px;
}

.full-card__phone {
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
    color: #1a2a3a;
}

.full-card__call-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: #2BACEF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-family: "Geologica", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .22s cubic-bezier(.4, 0, .2, 1);
    box-sizing: border-box;
}

.full-card__call-btn:hover {
    background: #013A73;
}

.full-card__call-btn:visited {
    color: #fff;
}

.full-card__body-wrap {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.full-card__body {
    overflow-y: auto;
    flex: 1;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.full-card__body::-webkit-scrollbar {
    display: none;
}

.info-section {
    background: #F5F6FB;
    border-radius: 16px;
    padding: 24px;
}

.info-section__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #111827;
    margin-bottom: 6px;
}

.info-section__heading svg {
    flex-shrink: 0;
    color: #2196F3;
}

.info-section__text {
    font-size: 15px;
    line-height: 22px;
    color: #5A616C;
}

.info-section__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-section__item {
    font-size: 13px;
    color: #6b7f96;
    line-height: 1.45;
    padding-left: 14px;
    position: relative;
}

.info-section__item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2196F3;
    position: absolute;
    left: 0;
    top: 6px;
}

.full-card__actions {
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.full-card__map-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: "Geologica", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .22s cubic-bezier(.4, 0, .2, 1);
    text-align: center;
}


.full-card__map-btn--yandex {
    background: #2BACEF;
    color: #fff;
}

.full-card__map-btn--yandex:hover {
    background: #013A73;
}


.full-card__map-btn--2gis {
    background: #FF7A45;
    color: #fff;
}

.full-card__map-btn--2gis:hover {
    background: #FF6628;
}

.full-card__close {
    position: static;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #e4edf7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .22s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
}

.full-card__close:hover {
    background: #c9daf0;
}

/* ════════════════════════════════════════
   MOBILE  ≤ 991px
════════════════════════════════════════ */
@media (max-width: 991px) {

    .contacts-header {
        margin-bottom: 48px;
    }
    
    /* wrapper */
    .clinics {
        display: block;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding-top: 0;
    }

    /* tabs */

    .clinics__tabs {
        display: flex;
        background: #ECEEF3;
        border-radius: 6px;
        padding: 3px;
        margin: 0 0 24px;
    }

    .tab-btn {
        flex: 1;
        padding: 10px;
        border: none;
        border-radius: 6px;
        background: transparent;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        color: #111827;
        cursor: pointer;
        transition: background .22s cubic-bezier(.4, 0, .2, 1), color .22s cubic-bezier(.4, 0, .2, 1);
        font-family: "Geologica", Helvetica, Arial, sans-serif;
    }

    .tab-btn--active {
        background: #fff;
    }

    /* list wrap */
    .clinics__list-wrap {
        border-right: none;
    }

    .clinics__list {
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }

    /* cards with arrow on mobile */
    .clinic-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        align-items: center;
        gap: 0;
        padding: 18px;
    }

    .custom-scrollbar {
        display: none;
    }

    .clinic-card__tag {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 20px;
        color: #2BACEF;
    }

    .clinic-card__title {
        grid-column: 1;
        grid-row: 2;
        padding-right: 0;
        font-size: 16px;
        line-height: 24px;        
        margin-right: 8px;
    }

    .clinic-card__arrow {
        display: flex;
        position: static;
        transform: none;
        opacity: 1;
        grid-column: 2;
        grid-row: 1 / 3;
        width: 40px;
        height: 40px;
        margin-top: auto;
        border-radius: 8px;
        background: #2BACEF;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background .22s cubic-bezier(.4, 0, .2, 1);
    }

    .clinic-card__arrow svg {
        color: #fff;
    }

    .clinic-card--active .clinic-card__arrow {
        background: rgba(255, 255, 255, .22);
    }

    /* hidden cards */
    .clinic-card--hidden {
        display: none;
    }

    /* show-more */
    .clinics__show-more {
        display: block;
        width: 100%;
        margin: 0;
        margin-top: 24px;
        padding: 6px 14px;
        background: #2BACEF;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
        cursor: pointer;
        transition: background .22s cubic-bezier(.4, 0, .2, 1);
        font-family: "Geologica", Helvetica, Arial, sans-serif;
    }

    .clinics__show-more:hover {
        background: #1565C0;
    }

    .clinics__show-more--gone {
        display: none !important;
    }

    /* map wrap */
    .clinics__map-wrap {
        height: 460px;
        border-radius: 16px;
        overflow: hidden;
        margin: 0;
    }

    /* tab visibility */
    .clinics--tab-list .clinics__map-wrap {
        display: none;
    }

    .clinics--tab-map .clinics__list-wrap {
        display: none;
    }

    .clinics--tab-map .clinics__show-more {
        display: none !important;
    }

    /* full-card: полноэкранная карточка клиники (как макет) */
    .full-card {
        position: fixed;
        inset: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100%;
        height: 100dvh;
        min-height: 0;
        border-radius: 0;
        transform: none;
        box-shadow: none;
        z-index: 10050;
        display: flex;
        flex-direction: column;
    }

    .full-card:not(.full-card--visible) {
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }

    .full-card--visible {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .full-card__topbar {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        left: auto;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        pointer-events: auto;
        padding: 10px 12px 10px 8px;
        background: #fff;
        border-bottom: 1px solid #e4edf7;
    }

    .full-card__back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 8px 8px 8px 4px;
        border: none;
        background: transparent;
        font-family: "Geologica", Helvetica, Arial, sans-serif;
        font-size: 13px;
        line-height: 20px;
        font-weight: 400;
        color: #5A616C;
        cursor: pointer;
        text-align: left;
        -webkit-tap-highlight-color: transparent;
    }

    .full-card__back svg {
        flex-shrink: 0;
        color: #013A73;
    }

    .full-card__scroll {
        flex: 1;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    .full-card__header {
        padding: 20px 24px 16px;
        border-bottom: 0;
    }

    .full-card__title {
        font-size: 18px;
        line-height: 24px;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .full-card__contacts {
        padding: 0 24px;
        border-bottom: 0;
    }

    .full-card__body-wrap {
        position: relative;
        flex: none;
        overflow: visible;
        display: block;
    }

    .full-card__body-wrap .custom-scrollbar {
        display: none;
    }

    .full-card__body {
        overflow: visible;
        flex: none;
        padding: 16px 24px 24px;
        gap: 12px;
    }

    .full-card__actions {
        flex-shrink: 0;
        margin-top: auto;
        padding:16px;    
        background: #fff;
        border-top: 1px solid #e4edf7;
        box-shadow: 0 -6px 24px rgba(17, 24, 39, 0.06);
    }

    .full-card__map-btn {
        border-radius: 6px;
        padding: 6px 16px;
        font-size: 14px;
        font-weight: 400;
    }

    .info-section__heading{
        font-size: 16px;
        line-height: 24px;
    }

    .info-section__text {
        font-size: 14px;
        line-height: 22px;
    }
}
/* End */
/* /local/templates/spartamed/components/bitrix/news.list/contacts/style.css?177809671316472 */
