.lokamed-about-page {
    color: #222;
    font: 14px/1.55 "Open Sans", Arial, sans-serif;
}

.lokamed-about-page *,
.lokamed-about-page *::before,
.lokamed-about-page *::after {
    box-sizing: border-box;
}

.lokamed-about-page a:focus-visible,
.lokamed-about-page button:focus-visible {
    outline: 3px solid #f2b705;
    outline-offset: 3px;
}

.lokamed-about-page ::selection {
    color: #000;
    background: #b9efbf;
}

body:has(.lokamed-about-page) .bcrumbs-container,
body:has(.lokamed-about-page) .breadcrumbs {
    margin-bottom: 0;
    background: #fff;
}

.lokamed-about-content {
    margin-top: 22px;
    overflow-x: clip;
}

.lokamed-page-title {
    margin: 0 0 18px;
    color: #222;
    font: 400 32px/1.25 "Open Sans", Arial, sans-serif;
}

.lokamed-about-section {
    margin-bottom: 38px;
}

.lokamed-section-title {
    margin: 0 0 18px;
    color: #222;
    font: 400 28px/1.25 "Open Sans", Arial, sans-serif;
}

/* Первый блок */

.lokamed-about-intro {
    display: block;
}

.lokamed-about-intro__text {
    width: 100%;
    font-size: 14px;
    line-height: 1.55;
}

.lokamed-about-intro__text p {
    margin: 0 0 11px;
}

.lokamed-about-intro__details > summary {
    display: none;
}

.lokamed-about-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.lokamed-about-actions .lokamed-green-btn {
    min-width: 156px;
    text-align: center;
}

.lokamed-green-btn {
    display: inline-block;
    padding: 8px 15px;
    border: 0;
    border-radius: 2px;
    background: #00a51c;
    color: #fff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .2s ease;
}

.lokamed-green-btn:hover {
    background: #009018;
    color: #fff !important;
    text-decoration: none !important;
}

/* Фото */

.lokamed-about-gallery-slider,
.lokamed-partners-slider,
.lokamed-achievements-slider {
    margin: 24px -7px 0;
}

/* Стрелки фотогалереи выровнены по вертикальному центру изображения. */
.lokamed-about-gallery-slider .utp_slider_prev,
.lokamed-about-gallery-slider .utp_slider_next {
    top: 50%;
    transform: translateY(-50%);
}

.lokamed-about-gallery-slide,
.lokamed-partner-slide,
.lokamed-achievement-slide {
    height: auto;
    padding: 0 7px;
}

.lokamed-partner-slide {
    position: relative;
}

.lokamed-about-gallery-slider .slick-track,
.lokamed-partners-slider .slick-track,
.lokamed-achievements-slider .slick-track {
    display: flex;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.lokamed-about-gallery__item {
    display: block;
    height: 150px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
}

.lokamed-about-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.lokamed-about-gallery__item:hover img {
    transform: scale(1.02);
}

/* Партнёры */

.lokamed-partners-slider,
.lokamed-achievements-slider {
    margin-top: 0;
}

.lokamed-partners-cta {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.lokamed-partners-cta__button {
    min-width: 156px;
}

.lokamed-partner-slide,
.lokamed-achievement-slide {
    height: auto;
    padding: 0 7px;
}

.lokamed-partners-slider .slick-track,
.lokamed-achievements-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.lokamed-partner-card {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222 !important;
    text-align: center;
    text-decoration: none !important;
    transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.lokamed-partner-card:focus-visible {
    outline: 3px solid #f2b705;
    outline-offset: 3px;
}

.lokamed-partner-card__logo {
    display: flex;
    height: 150px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5;
    background: #f5f5f5;
}

.lokamed-partner-card__logo-link {
    text-decoration: none !important;
}

.lokamed-partner-card__discount {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    background: #00a51c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.lokamed-partner-card__logo img {
    max-width: 170px;
    max-height: 100%;
}

.lokamed-partner-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 13px 8px;
    font-size: 15px;
    font-weight: 700;
}

.lokamed-partner-card__title::after {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: '';
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.lokamed-partner-card.is-expanded .lokamed-partner-card__title::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.lokamed-partner-card__text {
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

.lokamed-partner-card__details {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: -1px;
    left: -1px;
    padding: 12px 13px 14px;
    border: 1px solid #cfcfcf;
    border-top: 0;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity .2s ease, transform .32s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .32s;
}

.lokamed-partner-card.is-expanded {
    z-index: 5;
    border-color: #cfcfcf;
}

.lokamed-partner-card.is-expanded .lokamed-partner-card__details {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

/* Текст старой кэшированной разметки скрыт до переноса скриптом в popover. */
.lokamed-partner-card > .lokamed-partner-card__text,
.lokamed-partner-card > .lokamed-partner-card__more {
    display: none;
}

.lokamed-partners-slider {
    position: relative;
    z-index: 2;
}

/* На desktop партнёры отображаются сеткой по пять карточек в ряд. */
@media (min-width: 768px) {
    .lokamed-partners-slider:not(.slick-initialized) {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .lokamed-partners-slider:not(.slick-initialized) .lokamed-partner-slide {
        width: auto;
        margin-bottom: 0;
        padding: 0;
    }
}

/* Явное управление слайдером партнёров: стрелки не зависят от шрифтов иконок. */
.lokamed-partners-slider .lokamed-slider-arrow {
    top: 75px;
    right: 8px;
    left: auto;
    z-index: 10;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #00a51c;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
    color: #00a51c;
    font-family: Arial, sans-serif;
    font-size: 0;
    line-height: 1;
    opacity: 1;
    transform: translateY(-50%);
}

.lokamed-partners-slider .lokamed-slider-arrow span {
    display: block;
    font-size: 32px;
    font-weight: 400;
    line-height: 36px;
}

.lokamed-partners-slider .lokamed-slider-arrow::before {
    content: none;
}

.lokamed-partners-slider .lokamed-slider-arrow.slick-disabled {
    border-color: #c8c8c8;
    color: #aaa;
    opacity: .55;
}

.lokamed-partners-slider .lokamed-slider-arrow.utp_slider_prev {
    right: auto;
    left: 8px;
}

.lokamed-partners-slider.slick-dotted {
    margin-bottom: 32px;
}

.lokamed-partners-slider .slick-dots {
    position: static;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.lokamed-partners-slider .slick-dots li {
    display: block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    padding: 0;
    list-style: none;
}

.lokamed-partners-slider .slick-dots li button {
    display: block;
    overflow: hidden;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0;
    line-height: 0;
}

.lokamed-partners-slider .slick-dots li button {
    border-radius: 50%;
    background: #a9d8ad;
}

.lokamed-partners-slider .slick-dots li.slick-active button {
    background: #00a51c;
}

.lokamed-partners-slider .slick-dots li button::before {
    display: none;
}

.lokamed-partners-slider .slick-dots li.slick-active button::before {
    display: none;
}

/* Slick обрезает popover по высоте; неактивные слайды остаются скрытыми за пределами ленты. */
.lokamed-partners-slider .slick-list {
    overflow: visible;
}

.lokamed-partners-slider .slick-slide:not(.slick-active) {
    visibility: hidden;
}

.lokamed-partner-card__more {
    margin: 0 0 10px;
    color: #00a51c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.lokamed-partner-card__more a {
    display: inline-block;
    color: inherit !important;
    text-decoration: none !important;
}

.lokamed-partner-card__more a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Достижения */

.lokamed-achievement-card {
    display: block;
    height: 100%;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222 !important;
    text-decoration: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lokamed-achievement-card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    color: #222 !important;
    text-decoration: none !important;
}

.lokamed-achievement-card__image {
    display: flex;
    height: 150px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5;
    background: #f5f5f5;
}

.lokamed-achievement-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lokamed-achievement-card__image img.lokamed-achievement-card__placeholder-image {
    width: auto;
    height: auto;
    max-width: 170px;
    max-height: 80px;
    object-fit: contain;
}

.lokamed-achievement-card__title {
    display: block;
    padding: 12px 13px 14px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

/* Реквизиты */

.lokamed-requisites {
    border: 1px solid #e5e5e5;
    background: #fff;
}

.lokamed-requisites__row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border-bottom: 1px solid #eee;
}

.lokamed-requisites__row:last-child {
    border-bottom: 0;
}

.lokamed-requisites__label,
.lokamed-requisites__value {
    min-width: 0;
    padding: 9px 14px;
    font-size: 14px;
    line-height: 1.35;
}

.lokamed-requisites__label {
    color: #555;
    background: #fafafa;
}

.lokamed-requisites__value {
    color: #222;
    overflow-wrap: anywhere;
}

.lokamed-requisites a {
    text-underline-offset: 3px;
}

/* Адаптив */

@media (max-width: 991px) {
}

@media (max-width: 600px) {
    .lokamed-page-title {
        font-size: 28px;
    }

    .lokamed-section-title {
        font-size: 25px;
    }

    .lokamed-about-section {
        margin-bottom: 30px;
    }

    .lokamed-about-intro__details > summary {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-height: 44px;
        color: #008a18;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .lokamed-about-intro__details > summary::-webkit-details-marker {
        display: none;
    }

    .lokamed-about-intro__details > summary::after {
        width: 8px;
        height: 8px;
        margin-left: 16px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        content: '';
        transform: rotate(45deg) translateY(-2px);
        transition: transform .2s ease;
    }

    .lokamed-about-intro__details[open] > summary::after {
        transform: rotate(225deg) translate(-2px, -2px);
    }

    .lokamed-requisites__row {
        grid-template-columns: 1fr;
    }

    .lokamed-requisites__label {
        padding-bottom: 3px;
    }

    .lokamed-requisites__value {
        padding-top: 3px;
    }

    /* На узком экране стрелки остаются внутри слайдера и не создают scroll-x. */
    .lokamed-about-gallery-slider .utp_slider_prev,
    .lokamed-partners-slider .utp_slider_prev,
    .lokamed-achievements-slider .utp_slider_prev {
        left: 0;
        right: auto;
        width: 44px;
        height: 44px;
    }

    .lokamed-about-gallery-slider .utp_slider_next,
    .lokamed-partners-slider .utp_slider_next,
    .lokamed-achievements-slider .utp_slider_next {
        left: auto;
        right: 0;
        width: 44px;
        height: 44px;
    }

    .lokamed-partners-slider .utp_slider_next {
        right: 8px;
    }

    /* Скрытый desktop-пункт входа не должен торчать за viewport. */
    body:has(.lokamed-about-page) #bxdinamic_bitronic2_auth_not_authorized .content {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lokamed-green-btn,
    .lokamed-about-gallery__item img,
    .lokamed-partner-card,
    .lokamed-achievement-card,
    .lokamed-partner-card__text {
        transition-duration: 1ms;
    }
}
