a[href="/product/analizy/"].bottom-icons-panel__content-link--active svg path {
    fill: #fff;
}

#carousel-navigation-specialists {
    height: 0;
    top: 50%;
}

.staff-block-inner__item:hover .staff-block-inner__content-wrapper {
    bottom: 25px !important;
}

.side-menu li:hover {
    border-bottom: 4px solid var(--fill_dark_light_hover);
}

.detail.staff .clinics_list {

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail.staff .clinics_item {}

.b24-widget-button-wrapper.b24-widget-button-position-bottom-right {
    right: 63px;
    bottom: 75px;
}

@media (max-width: 767px) {
    .b24-widget-button-wrapper.b24-widget-button-position-bottom-right {
        right: 13px;
    }
}

.staff-block-inner__property--feedback .staff-block-inner__feedback {
    margin-top: 16px;
    display: inline-flex;
}

/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

.footer__fred {
    display: flex;
    align-items: center;
}

.footer__fred .footer__fred-link {
    flex-shrink: 0;
    width: 60px;
}

.footer__fred span {
    display: inline-flex;
}

/* Examples (uncomment to use):*/

/* Expand site width */
/* body .wrapper { max-width: 1400px !important;  } */

/* Set site background image */
/* body {  background: url(image_source) top no-repeat; }

/* Hide compare button */
/* a.compare_item { display: none !important;  }*/
@media screen and (max-width: 1600px) {
    .banners-big--low .banners-big__depend-height {
        height: 335px;
        /* height: 450px; */
    }
}

.tab-content>.tab-pane#buy:not(.active) {
    display: block;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    height: 0;
    /* width: 0; */
}

/* стиди для заголовка на главной */
.index-block__title-main-page.index-block__title {
    margin-bottom: 52px;
}

.main-academ-template .sections-list__item,
.main-mainpage-template .sections-list__item {
    flex-direction: column;
    align-items: center;
    border-radius: 0;
}

.main-academ-template .sections-list__item-title,
.main-mainpage-template .sections-list__item-title {
    padding-right: 0;
}

.main-academ-template .sections-list__item-image-wrapper--ICONS .sections-list__item-link,
.main-mainpage-template .sections-list__item-image-wrapper--ICONS .sections-list__item-link {
    margin: 0;
}

.main-academ-template .sections-list__item--big-padding,
.main-mainpage-template .sections-list__item--big-padding {
    padding: 40px;
}

.main-academ-template .grid-list.grid-list--items-5,
.main-mainpage-template .grid-list.grid-list--items-5 {
    grid-gap: 0;
}

.main-academ-template .sections-list__item--big-padding {
    padding: 30px;
    gap: 18px;
    text-align: center;
}

.main-mainpage-template .sections-list__item--big-padding {
    padding: 30px;
    align-items: center;
    gap: 18px;
}

.main-mainpage-template .sections-list__item-link {
    text-align: center;
}

.catalog_page .sections-list__item-title {
    text-align: center;
}

@media screen and (max-width: 500px) {
    .medcentr .main-mainpage-template .sections-list__item--big-padding {
        justify-content: space-between;
        padding: 15px 25px;
    }

    .main-mainpage-template .sections-list__item-link {
        text-align: right;
    }
}

@media (max-width: 1100px) {
    .fixed .header-menu__item--wide>.header-menu__dropdown-menu {
        transform: translate(50%, 0);
    }

    .header-menu__item--wide>.header-menu__dropdown-menu {
        left: 0px;
    }
}

@media (min-width: 690px) {

    .sections-list__item--compact .sections-list__item-image-wrapper .sections-list__item-link {
        margin: 0;
    }

    .header__main-inner {
        position: relative;
    }

    /* правка для меню, уменьшаем отступы для каталога*/
    .header-menu__item--wide>.header-menu__dropdown-menu {
        max-width: 1000px;
        /*transform: translate(-1%, 0);*/
        left: 35px;
    }

    .fixed .header-menu__item--wide>.header-menu__dropdown-menu {
        transform: translate(50%, 0);
        left: -40px;
    }

    .header-menu__dropdown-menu>.dropdown {
        max-width: 1000px;

    }
}

@media (max-width: 600px) {
    .index-block__title-main-page.index-block__title {
        margin-bottom: 18px;
    }
}

@media (max-width: 1600px) {
    .header-menu__item--wide .header-menu__dropdown-menu>.dropdown {
        left: -190px;
    }
}

/* стили для кнопки после добавления в корзину*/

body .header-cart.btn-default.in_cart {
    font-size: calc(0.8667em - var(--theme-button-font-size));
    line-height: calc(1em + 3px);
    padding: 9px 15px 11px;
}

#main .tizers-list {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page_subscribe img {
    max-width: 49%;
    width: 100%;
}

.title-v4 .contacts-detail {
    margin-top: 0;
}

@media screen and (max-width: 990px) {
    .company-item__picture--no-fon {
        min-height: 229px;
    }

    .header-bottom__mobile-buttons.mobile-buttons {
        display: flex;
        width: 100%;
        justify-content: space-between;
        box-shadow: 0 1px 3px rgba(61, 61, 61, 0.2), 0 2px 2px rgba(75, 75, 75, 0.12), 0 0 2px rgba(73, 73, 73, 0.14);
        text-align: center;
        background-color: white;
    }

    .header-bottom__mobile-buttons.mobile-buttons li {
        border-right: 1px solid #e5e5e5;
        padding: 10px 0;
        margin: 0;
        flex: 1;
    }

    .header-bottom__mobile-buttons.mobile-buttons li:last-child {
        border-right: none;
    }

    .mobile-buttons-item.mobile-buttons--red a {
        border-radius: 2px;
        display: block;
        height: 100%;
        box-sizing: border-box;
        text-align: center;
        background: #fff;
        text-decoration: none;
        padding: 14px 7px 10px;
    }

    .mobile-buttons-item__icon {
        width: 24px;
        height: 24px;
        display: inline-block;
        /* margin-bottom: 10px; */
    }

    .icon.mobile-buttons__icon {
        width: 22px;
        height: 22px;
        overflow: hidden;
    }

    p.font.font--mobile-button {
        font-size: 12px;
        color: #333;
        font-weight: 700;
        text-transform: uppercase;
    }

    .bottom-icons-panel__content {
        justify-content: space-between;
    }

    .bottom-icons-panel__content-link--center .icon-block-with-counter__inner {
        /* border: 4px solid #fff; */
        /* outline: 10px solid #fff !important; */
        display: flex;
        align-items: center;
        justify-content: center;
        /* position: absolute; */
        z-index: 20;
        margin-top: -40px;
    }

    .bottom-icons-panel__content-link--center .icon-block-with-counter__inner::after {
        content: "";
        position: absolute;
        /* top: 0; */
        /* left: 0; */
        width: 62px;
        height: 62px;
        margin-top: -39px;
        background: #E10102;
        border-radius: 50%;
        z-index: -1;
    }

    .bottom-icons-panel__content-link--center .svg.inline.svg-inline-cat_icons.light-ignore::before {
        content: "";
        position: absolute;
        inset: -32px;
        border-radius: 200px 200px 0 0;
        height: 40px;
        box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.1);
        z-index: -1;
        margin-top: -29px;
        background-color: white;
    }



    .bottom-icons-panel__content-link.bottom-icons-panel__content-link--center {
        overflow: visible;
    }

    .bottom-icons-panel__content {
        overflow: visible;
    }

    .bottom-icons-panel__content-link--center .icon-block-with-counter__inner svg {
        margin-top: -30px;
    }

    .jv-mobile .wrap__uC9Ba {
        bottom: 80px !important;
    }

    .burger {
        flex-direction: column;
        gap: 4px;
    }

    .staff-list.staff-list--view1 .staff-list__item-additional-text-wrapper {
        position: absolute;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .staff-list.staff-list--view1 .staff-list__item-company {
        font-size: 11px;
    }

    .staff-list.staff-list--view1 .staff-list__item-title {
        color: #fff;
        font-size: 17px;
        font-weight: 600;
    }

    .staff-list.staff-list--view1 .staff-list__item-text-wrapper {
        padding: 0 5px 5px;
    }

    .staff-list__item-button {
        margin-top: 10px;
    }

    .staff-list__item-text-top-part {
        padding: 0 10px;
    }

    .staff-list.staff-list--view1 .staff-list__item-company {
        opacity: 1;
    }
}

@media screen and (max-width: 970px) {
    .page_subscribe img {
        max-width: 100%;
        width: 100%;
    }
}


@media screen and (max-width: 765px) {

    /* fix  tabs changes */
    .catalog-detail .prices-map {
        position: relative;
        z-index: 0;
    }
}

@media screen and (min-width: 2480px) {
    .banners-big--low .banners-big__depend-height {
        height: 585px;
    }
}

.catalog-table__info-medium.is_mobile {
    display: none;
    overflow: hidden;
    visibility: hidden;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
}

.catalog-table__info-line.is_mobile {
    display: none;
    overflow: hidden;
    visibility: hidden;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
}

@media (max-width: 600px) {
    .catalog-table__info-medium.is_mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow: visible;
        visibility: visible;
        height: unset;
        width: unset;
        margin: unset;
        padding: unset;
        pointer-events: auto;
        opacity: 1;
        gap: 10px;
    }

    .catalog-table__info-line.is_mobile {
        display: inline-flex;
        overflow: visible;
        visibility: visible;
        background: rgba(24, 24, 24, 0.25);
        height: 1px;
        width: 100%;
        margin: 20px 0;
        padding: 0;
        pointer-events: auto;
        opacity: 1;
    }

    .catalog-table__info-period {
        color: rgba(215, 31, 39, 1);
        font-family: 'Open Sans', serif;
        font-style: italic;
        font-size: 10px;
        font-weight: 700;
        line-height: 14px;
        letter-spacing: 0;
        text-align: left;
    }

    .catalog-table__info-preview-text {
        color: rgba(24, 24, 24, 1);
        font-family: 'Open Sans', serif;
        font-size: 10px;
        font-weight: 400;
        line-height: 14px;
        letter-spacing: 0;
        text-align: left;
    }

    .maxwidth-theme {
        background: rgba(241, 241, 241, 1);
    }

    /* првка по листингу услуг*/
    #main .catalog_table_services_template .grid-list.grid-list--compact {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #main .catalog_table_services_template .catalog-table__info-top {
        margin-bottom: 10px;
    }

    #main .catalog_table_services_template .grid-list.grid-list--compact .grid-list-border-outer {
        width: 100%;
    }

    #main .catalog_table_services_template .grid-list.grid-list--compact .grid-list-border-outer .catalog-table__item {
        border-radius: 20px;
        background: rgba(255, 255, 255, 1);
    }

    #main .catalog_table_services_template .catalog-table__info-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }

    #main .catalog_table_services_template .catalog-table__info-bottom .price {
        font-family: Open Sans, serif;
        font-weight: 700;
        font-style: Bold;
        font-size: 24px;
        leading-trim: NONE;
        line-height: 100%;
        letter-spacing: 0;
        vertical-align: middle;
    }

    #main .catalog_table_services_template .catalog-table__info-bottom .price .currency {
        font-weight: 400;
    }

    #main .catalog_table_services_template .catalog-table__info-bottom .btn.btn-default {
        background: linear-gradient(93.58deg, #00B2FC 0%, #0064C6 100%);
        border-radius: 15px;
        color: rgba(255, 255, 255, 1);
        font-family: 'Open Sans', serif;
        font-size: 10px;
        font-weight: 600;
        line-height: 14px;
        letter-spacing: 0;
        text-align: center;
        border: unset;
    }

    #main .catalog_table_services_template .catalog-table__info-bottom>div {
        margin: 0;
    }

    #main .catalog_table_services_template .catalog-table__item .catalog-table__info-wrapper {
        /*gap: 10px;*/
    }

    #main .catalog_table_services_template .catalog-table__item .catalog-table__info {
        margin-top: 0;
    }

    #main .catalog_table_services_template .grid-list.grid-list--compact .js-popup-block {
        padding: 15px;
    }

    #main .catalog_table_services_template .catalog-table__info-bottom .btn.btn-md {
        padding: 6px 25px;
    }

    #main .catalog_table_services_template .catalog-table__info-bottom .to_cart.btn.btn-default.btn-md.btn-wide.to_cart--wicon {
        border-radius: 5px;
    }

    #main .catalog_table_services_template div[class*="info-title"] {
        font-size: 14px;
    }

    #main .catalog_table_services_template .catalog-table__info-title {
        font-family: 'Open Sans', serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0;
        text-align: left;
        text-transform: uppercase;
    }

    #main .catalog_table_services_template .catalog-table__info-title a {
        color: rgba(24, 24, 24, 1);
        font-family: 'Open Sans', sans-serif;
        font-weight: 700;
    }

    #main .catalog_table_services_template .catalog-table__info-title a span {
        font-weight: 700;
    }

    #main .catalog_table_services_template .catalog-table__info-period {
        font-style: normal;
    }
}

@media (max-width: 767px) {
    .banners-big {
        height: 167px;
    }

    .banners-big--low .banners-big__depend-height {
        height: 167px;
    }
}

.form-checkbox__label span {
    color: var(--light_basic_text_black) !important;
}
.form-checkbox__label a {
    color: var(--fill_dark_light_white_hover) !important;
}
.form-checkbox__label a:hover {
    color: var(--fill_dark_light_ccc) !important;
}

.catalog-table__complex-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.js-popup-title span{
    cursor: pointer;
}

@media (max-width: 990px) {
    /* Mobile catalog: merge section separators into the shared grey background */
    .catalog_page .page-top-wrapper--grey,
    .catalog_page .drag-block.container,
    .catalog_page .index-block--fon,
    .catalog_page .index-block--delimiter > div {
        background: #f8f8f8;
        background: var(--darkerblack_bg_black);
    }
}

/* Мобилка, раздел /product/ (маркер body.product-section задаётся в header.php):
   уменьшаем шапку с заголовком и хлебными крошками,
   контенту даём небольшой верхний отступ */
@media (max-width: 767px) {
    .product-section .page-top-wrapper--grey.page-top-wrapper--top-breadcrumb.v4 {
        margin-bottom: 0;
    }

    .product-section .page-top-wrapper--grey.page-top-wrapper--top-breadcrumb.v4 section.page-top {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .product-section .main.banner-auto .container > .row > .maxwidth-theme {
        padding-top: 12px;
    }

    body > .body:not(.index) > .main {
        padding-bottom: 0;
    }

    .ajax_load_btn + .module-pagination {
        margin-top: 0;
    }
}

/* ===== Мобильная карточка услуги (catalog_table_services) — по макету Figma ===== */
/* Новые мобильные блоки по умолчанию скрыты, показываем только на телефоне (<=600px) */
.catalog_table_services_template .catalog-table__mobile-badges,
.catalog_table_services_template .catalog-table__info-text--mobile.is_mobile,
.catalog_table_services_template .catalog-table__complex-mobile-toggle,
.catalog_table_services_template .catalog-table__complexes-mobile {
    display: none;
}

/* Бейджи (АКЦИЯ + «В комплексе дешевле») показываем на всём мобильном диапазоне (<=991px),
   т.к. десктопный бейдж комплекса у цены скрыт классом .hide-991 именно с 991px и ниже.
   Если ограничиться 600px, в диапазоне 601-991px бейдж комплекса пропадает. */
@media (max-width: 991px) {
    #main .catalog_table_services_template .catalog-table__mobile-badges {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }
    /* убираем неоформленный дублирующий бейдж комплекса (выводим его плашкой в строке бейджей) */
    #main .catalog_table_services_template .catalog-table__complex-badge-wrap {
        display: none;
    }
    #main .catalog_table_services_template .catalog-table__mobile-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 25px;
        padding: 4px 10px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
    }
    #main .catalog_table_services_template .catalog-table__mobile-badge--hit {
        background: #d71f27;
        color: #fff;
        text-transform: uppercase;
    }
    #main .catalog_table_services_template .catalog-table__mobile-badge--complex {
        background: #fff;
        color: #d71f27;
        border: 1px solid #da0f0f;
        white-space: normal;
    }
    #main .catalog_table_services_template .catalog-table__mobile-badge--complex[data-complex-mobile-trigger] {
        cursor: pointer;
    }
}

/* Заголовок + плашка «АКЦИЯ» (свойство HIT) на десктопе:
   плашка идёт сразу после текста заголовка, а не уезжает вправо. */
#main .catalog_table_services_template .catalog-table__title-row {
    display: block;
}
#main .catalog_table_services_template .catalog-table__title-row .catalog-table__info-title {
    min-width: 0;
    display: inline;
    max-width: 487px;
}
#main .catalog_table_services_template .catalog-table__hit-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 10px;
}
#main .catalog_table_services_template .catalog-table__hit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 5px;
    border-radius: 5px;
    background: #d71f27;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 991px) {
    #main .catalog_table_services_template .catalog-table__title-row .catalog-table__info-title {
        display: block;
        max-width: none;
    }
    #main .catalog_table_services_template .catalog-table__title-row .catalog-table__hit-badges.hide-991 {
        display: none;
    }
}

/* ===== Блок цены каталога услуг (десктоп + мобилка) — по макету Figma =====
   Раскладка: старая цена + жёлтая плашка «Выгода - X%» сверху, новая цена крупно снизу. */
#main .catalog_table_services_template .catalog-table__info-bottom .price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px10px;
}
#main .catalog_table_services_template .catalog-table__info-bottom .price__old {
    order: 1;
    margin: 0;
}
#main .catalog_table_services_template .catalog-table__info-bottom .price__old-val {
    font-size: 12px;
    color: #181818;
    opacity: 0.5;
    text-decoration: line-through;
}
#main .catalog_table_services_template .catalog-table__info-bottom .price__economy {
    order: 2;
    background: #ffcc00;
    border-radius: 6px;
    padding: 1px;
    margin: 0;
    margin-left: 3px;
}
#main .catalog_table_services_template .catalog-table__info-bottom .price__economy-val {
    color: #282828;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 4px 3px 3px;
}
/* «Выгода» выводится текстом в самом рендере цены (showListingPrice), поэтому ::before не нужен.
   Подавляем псевдоэлемент темы, чтобы не было дублирования «Выгода Выгода». */
#main .catalog_table_services_template .catalog-table__info-bottom .price__economy-val::before,
#main .catalog_table_services_template .catalog-table__complex-price .price__economy-val::before {
    content: none;
}
/* плашка «Выгода» у комплексного элемента на десктопе — единый стиль с основной */
#main .catalog_table_services_template .catalog-table__complex-price .price__economy {
    margin: 0 0 0 3px;
    padding: 1px;
    border-radius: 6px;
    background: #ffcc00;
}
#main .catalog_table_services_template .catalog-table__complex-price .price__economy-val {
    padding: 4px 4px 3px 3px;
    color: #282828;
    font-size: 12px;
    font-weight: 400;
}
#main .catalog_table_services_template .catalog-table__info-bottom .price__new {
    order: 3;
    flex: 0 0 100%;
    margin: 0;
}
#main .catalog_table_services_template .catalog-table__info-bottom .price__new-val {
    color: #181818;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
}
/* основная цена красная только когда есть плашка «АКЦИЯ» (свойство HIT) */
#main .catalog_table_services_template .catalog-table__item--hit .catalog-table__info-bottom .price__new-val {
    color: #d71f27;
}

@media (min-width: 992px) {
    #main .catalog_table_services_template .catalog-table__complex-row {
        align-items: center;
        padding-left: 8px;
        padding-right: 8px;
    }
    /* чекбокс прижимаем к верху строки (остальная строка остаётся по центру) */
    #main .catalog_table_services_template .catalog-table__complex-checkbox {
        align-self: flex-start;
        align-items: flex-start;
    }
    /* чекбокс основного элемента (обёртка с .form-checkbox в .catalog-table__inner) — к верху */
    #main .catalog_table_services_template .catalog-table__inner > .catalog-table__item-wrapper:has(> .form-checkbox) {
        align-self: flex-start;
    }
    #main .catalog_table_services_template .catalog-table__complex-info {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
    }
    #main .catalog_table_services_template .catalog-table__complex-info-wrapper {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    #main .catalog_table_services_template .catalog-table__complex-main {
        flex: 1;
        width: auto;
        min-width: 0;
        margin: 0;
    }
    #main .catalog_table_services_template .catalog-table__complex-bottom {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }
    /* цена — слева в блоке низа (как блок цены у основного) */
    #main .catalog_table_services_template .catalog-table__complex-price {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
    }
    /* пустой зазор тянется (на месте бейджа «В комплексе дешевле» у основного) */
    #main .catalog_table_services_template .catalog-table__complex-badge-spacer {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        margin: 0;
    }
    /* кнопка — к правому краю (как «Добавить» у основного) */
    #main .catalog_table_services_template .catalog-table__complex-buttons {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    .header-bottom__mobile-buttons.mobile-buttons{
        margin-bottom: 0 !important;
    }
    /* артикул показываем на мобилке (по умолчанию compact-hidden-t600 его прячет) */
    #main .catalog_table_services_template .catalog-table__info-tech.compact-hidden-t600 {
        display: block;
        margin-top: 8px;
    }
    #main .catalog_table_services_template .catalog-table__info-tech .article {
        font-size: 10px;
        color: #282828;
        opacity: 0.5;
    }

    /* описание на мобилке: отображение задаём в component style.css рядом с базовым hide-правилом */
    #main .catalog_table_services_template .catalog-table__info-text--mobile-visible {
        margin-top: 10px;
        color: #181818;
        font-size: 10px;
        line-height: 1.4;
    }

    /* блок цены: на мобилке цифры крупнее, чем на десктопе */
    #main .catalog_table_services_template .catalog-table__info-bottom .price__old-val {
        font-size: 14px;
    }
    #main .catalog_table_services_template .catalog-table__info-bottom .price__economy-val {
        font-size: 14px;
    }
    #main .catalog_table_services_template .catalog-table__info-bottom .price__new-val {
        font-size: 24px;
    }

    /* карточка во всю ширину экрана, без скруглений, разделение красной линией 2px */
    #main .catalog_table_services_template .catalog-table {
        margin-left: -24px;
        margin-right: -24px;
    }
    #main .catalog_table_services_template .grid-list.grid-list--compact {
        grid-gap: 0;
        gap: 0;
    }
    #main .catalog_table_services_template .grid-list .catalog-table__wrapper {
        margin: 0;
    }
    #main .catalog_table_services_template .grid-list .catalog-table__item,
    #main .catalog_table_services_template .grid-list.grid-list--compact .grid-list-border-outer .catalog-table__item {
        border: 0;
        border-bottom: 2px solid #d71f27;
        border-radius: 0;
        padding: 16px 24px 14px;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle.is_mobile {
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        min-height: 80px;
        padding: 14px 24px 15px;
        border: 0;
        border-bottom: 2px solid #d71f27;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(236, 236, 236, 0.84) 56%, rgba(223, 223, 223, 0.96) 100%),
            rgba(255, 255, 255, 0.22);
        color: #2b2b2b;
        text-align: left;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(18px) saturate(130%);
        -webkit-backdrop-filter: blur(18px) saturate(130%);
        box-sizing: border-box;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        max-height: 120px;
        transition:
            max-height 0.28s ease,
            min-height 0.28s ease,
            padding 0.28s ease,
            opacity 0.2s ease,
            border-width 0.28s ease,
            margin 0.28s ease;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle--bottom.is_mobile {
        display: none;
        min-height: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-width: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle--bottom.is_mobile {
        background: #e3262e;
        color: #fff;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-top: 2px solid #d71f27;
        border-bottom-color: #d71f27;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle--bottom.is_mobile .catalog-table__complex-mobile-toggle-text {
        color: #fff;
        font-family: "Open Sans", sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 15px;
        text-transform: uppercase;
        text-align: center;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle--bottom.is_mobile .catalog-table__complex-mobile-toggle-icon {
        right: 18px;
        bottom: 18px;
        width: 8px;
        height: 8px;
        border-right-width: 2px;
        border-bottom-width: 2px;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle-chip {
        position: absolute;
        top: 14px;
        left: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        padding: 5px 8px;
        border-radius: 5px;
        background: rgba(215, 31, 39, 0.72);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        filter: blur(2.2px);
        opacity: 0.78;
        pointer-events: none;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle-text {
        display: block;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.01em;
        text-align: center;
        text-transform: uppercase;
        text-shadow: none;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-toggle-icon {
        position: absolute;
        top: auto;
        bottom: 17px;
        right: 22px;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    #main .catalog_table_services_template .catalog-table__wrapper--complex-mobile-open .catalog-table__complex-mobile-toggle {
        background: rgba(244, 244, 244, 0.78);
        color: #282828;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    #main .catalog_table_services_template .catalog-table__wrapper--complex-mobile-open .catalog-table__complex-mobile-toggle--bottom {
        background: #e3262e;
        color: #fff;
        box-shadow: none;
    }

    #main .catalog_table_services_template .catalog-table__wrapper--complex-mobile-open .catalog-table__complex-mobile-toggle--top {
        display: none;
        min-height: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-width: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    #main .catalog_table_services_template .catalog-table__wrapper--complex-mobile-open .catalog-table__complex-mobile-toggle-icon {
        transform: rotate(225deg);
    }

    #main .catalog_table_services_template .catalog-table__wrapper--complex-mobile-open .catalog-table__complex-mobile-toggle--bottom .catalog-table__complex-mobile-toggle-icon {
        transform: rotate(225deg);
        border-right-color: currentColor;
        border-bottom-color: currentColor;
    }

    #main .catalog_table_services_template .catalog-table__complexes-mobile.is_mobile {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition:
            max-height 0.32s ease,
            opacity 0.24s ease,
            visibility 0.24s ease;
    }

    /* Видимостью drawer управляет только класс --complex-mobile-open.
       Раньше --complex-selected тоже форсил display:block, из-за чего после
       добавления комплекса в корзину тоггл не мог его закрыть. */
    #main .catalog_table_services_template .catalog-table__wrapper--complex-mobile-open .catalog-table__complexes-mobile.is_mobile {
        max-height: 5000px;
        opacity: 1;
        visibility: visible;
    }

    #main .catalog_table_services_template .catalog-table__wrapper--complex-mobile-open .catalog-table__complex-mobile-toggle--bottom.is_mobile {
        display: flex;
        height: 45px;
        min-height: 45px;
        max-height: 45px;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 16px;
        padding-right: 32px;
        border-bottom-width: 2px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-card {
        background: #f4f4f4;
        border-bottom: 2px solid #d71f27;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-card-inner {
        padding: 14px 24px 12px;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-card .catalog-table__mobile-badges {
        display: flex;
        margin-bottom: 12px;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-title {
        margin-bottom: 6px;
        color: #282828;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
        text-transform: uppercase;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-title a {
        color: inherit;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-text {
        color: #282828;
        font-size: 10px;
        line-height: 1.4;
    }

    #main .catalog_table_services_template .service-extra--listing-mobile-complex {
        margin-top: 16px;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-bottom {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(40, 40, 40, 0.15);
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price {
        min-width: 0;
        flex: 1;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price__old {
        order: 1;
        margin: 0;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price__old-val {
        font-size: 14px;
        color: #181818;
        opacity: 0.5;
        text-decoration: line-through;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price__economy {
        order: 2;
        margin: 0;
        padding: 1px;
        border-radius: 6px;
        background: #ffcc00;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price__economy-val {
        padding: 4px 4px 3px 3px;
        color: #282828;
        font-size: 12px;
        font-weight: 400;
    }

    /* «Выгода» приходит из рендера цены (showListingPrice), ::before не нужен */
    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price__economy-val::before {
        content: none;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price__new {
        order: 3;
        flex: 0 0 100%;
        margin: 0;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-price .price__new-val {
        color: #d71f27;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.05;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .footer-button,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .buy_block,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .buttons {
        display: flex;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .footer-button,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .buy_block,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .buttons {
        width: 100%;
    }

    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .btn,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .in_cart {
        min-width: 100px;
        padding: 0 14px;
        height: 25px;
        min-height: 25px;
        border: 0;
        border-radius: 5px;
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        line-height: 25px;
        background: linear-gradient(104deg, #00b2fc 0%, #0064c6 100%);
    }
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .btn:hover,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .btn:focus,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .in_cart:hover,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .in_cart:focus {
        color: #fff;
        background: linear-gradient(104deg, #0064c6 0%, #00b2fc 100%);
    }
    /* в макете у кнопки нет иконки корзины — скрываем пустой icon-спан, чтобы не было лишнего отступа */
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .btn .to_cart__icon,
    #main .catalog_table_services_template .catalog-table__complex-mobile-buttons .btn [class*="icon"] {
        display: none;
    }
}

/* Блок доп. информации услуги: «Срок изготовления анализов» + «Взятие биоматериала +N ₽».
   Свойства ANALYSIS_PERIOD (строка) и BIOMATERIAL_SERVICE (привязка к элементу).
   По дизайну обе строки идут в одну линию; срок — красный, биоматериал — синий. */
.service-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 46px;
    margin: 8px 0;
}

.service-extra__item {
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}

.service-extra__period {
    color: #d71f27;
}

.service-extra__biomaterial {
    color: #008ce2;
}

.service-extra__value {
    white-space: nowrap;
}

.service-extra--detail {
    margin: 12px 0 4px;
}

.service-extra--detail .service-extra__item {
    font-size: 14px;
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
}

.service-extra--detail .service-extra__value {
    white-space: normal;
}

/* Только на мобильном и смартфоне (≤600px, как остальные мобильные правила темы)
   строки идут в столбик с отступом 10px между ними.
   Рендерятся только заполненные строки, поэтому при отсутствии одной из них
   пустого места не остаётся (gap применяется только между реальными элементами). */
@media (max-width: 600px) {
    .service-extra,
    .service-extra--detail {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 10px;
        /* Только верхний отступ по макету (Frame 30): 20px сверху.
           Нижний отступ даёт родитель (.catalog-table__info-top), чтобы не было двойного зазора. */
        margin: 20px 0 0;
    }

    .service-extra__item {
        font-family: "Open Sans", sans-serif;
        font-size: 10px;
        font-style: normal;
        font-weight: 600;
        line-height: 10px;
    }

    .service-extra--detail .service-extra__item {
        font-size: 10px;
    }
}

/* Блок формы обратной связи "Нужна помощь? Оставьте заявку" (аспровский drag-block
   конструктора главной, data-class="forms_drag") — на мобильном не нужен, скрываем. */
@media (max-width: 767px) {
    .drag-block.container.FORMS {
        display: none;
    }
}
