/* Laboratory groups page */
.lab-groups-page {
    padding-bottom: 0;
}

.lab-groups-page h1 {
    margin: 22px 0 34px;
    color: #050505;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
}

.lab-groups-page__list {
    padding-bottom: 64px;
}

.lab-groups-page .button_laboratory_research_box {
    width: 100%;
    margin-top: 0;
}

.lab-groups-page .row_laboratory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 0;
}

.lab-groups-page .col-laboratory {
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 0;
}

.lab-groups-page .button_laboratory_research {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 86px;
    margin: 0;
    padding: 18px 52px 18px 20px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(22, 27, 45, .12);
    color: #111111;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.lab-groups-page .button_laboratory_research:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(22, 27, 45, .16);
}

.lab-groups-page .button_laboratory_research::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-top: 3px solid var(--accent-red, #d30e17);
    border-right: 3px solid var(--accent-red, #d30e17);
    transform: translateY(-50%) rotate(45deg);
    transition: transform .2s ease;
}

.lab-groups-page .button_laboratory_research:hover::after {
    transform: translate(4px, -50%) rotate(45deg);
}

.lab-groups-page .button_laoratory_research_icon_box {
    margin: unset;
    background: unset;
    border: unset;
    width: 40px;
    min-width: 40px;
    height: 40px;
}

.lab-groups-page .button_laoratory_research_icon_box img {
    width: 40px;
    height: 40px;
}

.lab-groups-page .button_laboratory_research .category_title {
    display: block;
    margin: 0;
    color: inherit;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 700;
}

@media (max-width: 1399px) {
    .lab-groups-page .row_laboratory {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .lab-groups-page .row_laboratory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lab-groups-page h1 {
        margin: 18px 0 24px;
        font-size: 28px;
    }

    .lab-groups-page__list {
        padding-bottom: 42px;
    }

    .lab-groups-page .row_laboratory {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lab-groups-page .button_laboratory_research {
        min-height: 72px;
        padding: 16px 52px 16px 16px;
        border-radius: 8px;
        max-width: unset;
    }

    .lab-groups-page .button_laboratory_research .category_title {
        font-size: 14px;
        line-height: 1.15;
    }
}

/* Laboratory catalog category */
.lab-catalog-page {
    --lab-card-shadow: 0 8px 22px rgba(22, 27, 45, .08);
}

.lab-catalog-page__breadcrumbs {
    margin: 0 0 12px;
}

.lab-catalog-page .laboratory {
    padding: 12px 0;
}

.lab-catalog-page__content {
    padding-bottom: 64px;
}

.lab-catalog-page__body {
    display: grid;
    gap: 22px;
}

.lab-catalog-page__description {
    color: #333333;
    font-size: 17px;
    line-height: 1.45;
}

.lab-catalog-page__description p:last-child {
    margin-bottom: 0;
}

.lab-catalog-page .laboratory_content .price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 48px 150px;
    gap: 18px;
    align-items: center;
    min-height: 64px;
    margin: 0 !important;
    padding: 12px 24px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: var(--lab-card-shadow);
}

.lab-catalog-page .laboratory_content .price-line.is-hidden:not(.visible) {
    display: none;
}

.lab-catalog-page .laboratory_content .price-line.is-hidden.visible {
    display: grid;
    visibility: visible;
}

.lab-catalog-card__main {
    min-width: 0;
}

.lab-catalog-card__code {
    display: inline-block;
    margin: 0 8px 3px 0;
    color: var(--accent-red, #d30e17);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.lab-catalog-page .laboratory_content .price-line .name {
    display: inline;
    color: #7d7d7d;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none;
}

.lab-catalog-page .laboratory_content .price-line .name:hover {
    color: var(--accent-red, #d30e17);
}

.lab-catalog-card__material,
.lab-catalog-card__notice {
    display: block;
    margin-top: 4px;
    color: #777777;
    font-size: 13px;
    line-height: 1.3;
}

.lab-catalog-card__notice {
    color: var(--accent-red, #d30e17);
}

.lab-catalog-card__price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lab-catalog-card__price-wrap img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.lab-catalog-page .laboratory_content .price-line .oldprice {
    color: #888888;
    font-size: 14px;
    line-height: 1;
    text-decoration: line-through;
    white-space: nowrap;
}

.lab-catalog-page .laboratory_content .price-line .price {
    display: block;
    color: var(--accent-red, #d30e17);
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.lab-catalog-page .laboratory_content .price-line .info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--accent-red, #d30e17);
}

.lab-catalog-page .laboratory_content .price-line .info img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.lab-catalog-card__action {
    display: flex;
    justify-content: flex-start;
}

.lab-catalog-page .laboratory_content .price-line .order,
.lab-catalog-card__order-placeholder {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 150px;
    min-height: 34px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--accent-red, #d30e17);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.lab-catalog-page .laboratory_content .price-line .order.active {
    background: var(--accent-red, #d30e17);
}

.lab-catalog-page .laboratory_content .price-line .order .icon_del,
.lab-catalog-page .laboratory_content .price-line .order .icon_del img {
    display: block;
    width: 18px;
    height: 18px;
}

.lab-catalog-card__order-placeholder {
    visibility: hidden;
}

.lab-catalog-page .search_result_bottom {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.lab-catalog-page .button_another_research {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 50px 0 26px;
    border: 1px solid var(--accent-red, #d30e17);
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent-red, #d30e17);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.lab-catalog-page .button_another_research::after {
    content: "";
    position: absolute;
    right: 24px;
    width: 13px;
    height: 13px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.lab-catalog-page .button_another_research:hover {
    background: var(--accent-red, #d30e17);
    color: #ffffff;
}

@media (max-width: 991px) {
    .lab-catalog-page .laboratory_content .price-line {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px 18px;
        align-items: start;
        padding: 18px;
    }

    .lab-catalog-card__price-wrap {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        align-self: start;
        text-align: right;
    }

    .lab-catalog-page .laboratory_content .price-line .info {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        width: 48px;
        height: 48px;
    }

    .lab-catalog-card__action {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: center;
        margin-left: 68px;
    }

    .lab-catalog-card__order-placeholder {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .lab-catalog-page__content {
        padding-bottom: 42px;
    }

    .lab-catalog-page__description {
        font-size: 15px;
    }

    .lab-catalog-page .laboratory_content .price-line {
        border-radius: 8px;
    }

    .lab-catalog-page .laboratory_content .price-line .name {
        font-size: 15px;
    }

    .lab-catalog-page .laboratory_content .price-line .price {
        font-size: 18px;
    }
}
