.catalog-page {
    padding: 36px 0 0;
    color: var(--industrial-blue);
}

.catalog-page__breadcrumbs {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0 0 54px;
    color: #8b94a8;
    font-size: 15px;
    font-weight: 400;
}

.catalog-page__breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.catalog-page__breadcrumbs > span:last-child {
    color: #000;
}

.catalog-page__heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 36px;
}

.catalog-page h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 500;
    line-height: .96;
    letter-spacing: 0.02em;
}

.catalog-page h1 span {
    color: #9ca5b8;
}

.catalog-page__actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.catalog-page__title-button {
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
}

.catalog-page__title-button:focus {
    outline: none;
}

.catalog-sort {
    appearance: none;
    position: relative;
    display: flex;
    min-width: 158px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 42px 12px 16px;
    background: #f3f5f8;
    border: 0;
    color: #0a1e4d;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.catalog-sort:focus {
    outline: none;
}

.catalog-sort:focus-visible {
    box-shadow: 0 0 0 2px rgba(10, 30, 77, .18);
}

.catalog-sort::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 24px;
    height: 24px;
    background: url("../svg/sort-vertical.svg") center / contain no-repeat;
    content: "";
    transform: translateY(-50%);
}

.catalog-filter-button {
    display: none;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #0a1e4d;
    font: inherit;
    cursor: pointer;
}

.catalog-filter-button span {
    width: 20px;
    height: 20px;
    background: url("../svg/filter-slider.svg") center / contain no-repeat;
}

.catalog-page__layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.catalog-filter {
    padding: 22px 18px 28px;
    background: #f3f5f8;
}

.catalog-filter-backdrop,
.catalog-filter__mobile-head {
    display: none;
}

.catalog-filter button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #0a1e4d;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.catalog-filter__body {
    padding: 0;
}

.catalog-filter__body button {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 15px 18px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.catalog-filter__body button:hover {
    background: #e5e8ee;
}

.catalog-filter__category.is-active {
    background: var(--industrial-orange) !important;
    color: #fff !important;
}

.catalog-filter__body span {
    flex: 0 0 auto;
    width: 18px;
    color: currentColor;
    font-size: 28px;
    line-height: 18px;
    text-align: center;
    transform: translateY(-1px);
    transition: transform .25s ease;
}

.catalog-filter__category[aria-expanded="true"] span {
    transform: translateY(1px) rotate(90deg);
}

.catalog-filter__subcategories {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}

.catalog-filter__group.is-open .catalog-filter__subcategories {
    max-height: 170px;
    padding: 16px 0 22px;
    opacity: 1;
}

.catalog-filter__subcategories .catalog-filter__subcategory {
    justify-content: center;
    padding: 8px 12px;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.catalog-filter__subcategory.is-active {
    background: transparent !important;
    color: var(--industrial-orange) !important;
}

.catalog-products__count {
    margin: 0 0 13px;
    color: #7d879b;
    font-size: 13px;
}

.catalog-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 16px;
}

.catalog-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.catalog-product[hidden],
.catalog-products__empty[hidden] {
    display: none !important;
}

.catalog-product__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ebf0;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.catalog-product__image:hover {
    border-color: #d5dae3;
    box-shadow: 0 8px 24px rgba(7, 29, 80, .06);
}

.catalog-product__image::after {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: #fff;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    content: "";
}

.catalog-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 28px 24px;
    box-sizing: border-box;
    background: #fff;
}

.catalog-product__image span {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    padding: 5px 7px;
    background: #fff;
    color: var(--industrial-orange);
    font-size: 16px;
    font-weight: 500;
}

.catalog-product__category {
    margin: 13px 0 5px;
    color: #7c879a;
    font-size: 12px;
}

.catalog-product__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.catalog-product h2 {
    min-height: 2.2em;
    margin: 16px 0 14px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.catalog-product h2 a {
    color: inherit;
    text-decoration: none;
}

.catalog-product__excerpt {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: #66748e;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.catalog-product__offer {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    color: #66748e;
    font-size: 13px;
    text-decoration: none;
}

.catalog-offer-icon {
    position: relative;
    inset: auto;
    display: inline-block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: .5px solid rgba(0, 0, 0, .2);
    border-radius: 50%;
    background: #fff;
    transform: none;
}

.catalog-products__empty {
    margin: 40px 0;
    font-size: 17px;
}

.catalog-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 48px;
}

.catalog-pagination button {
    width: 34px;
    height: 32px;
    border: 0;
    background: #f5f6f8;
    color: #071d50;
    font: 600 16px "Inter Tight", sans-serif;
    cursor: pointer;
}

.catalog-pagination button.is-active {
    background: var(--industrial-orange);
    color: #fff;
}

.catalog-pagination span {
    padding: 0 6px;
}

.catalog-video {
    
    margin: 120px 0 0 calc(300px + 32px);
}

.catalog-video h2 {
    margin: 0 0 50px;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
}

.catalog-video__preview {
    position: relative;
    display: block;
    aspect-ratio: 2.53 / 1;
    overflow: hidden;
    background: #dce3ee;
}

.catalog-video__preview::after {
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 80, .08);
    content: "";
}

.catalog-video__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-video__preview span {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 74px;
    height: 74px;
    border: 1px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.catalog-video__preview span::after {
    position: absolute;
    top: 50%;
    left: 53%;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 20px solid #fff;
    content: "";
    transform: translate(-50%, -50%);
}

.catalog-page__seo {
   
    margin: 70px 0 0 calc(300px + 32px);
    color: #071d50;
}

.catalog-page__seo h2 {
    margin: 0 0 28px;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
}

.catalog-page__seo p {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.16;
}

.catalog-page__seo--columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    
    margin-top: 88px;
}

.catalog-page__seo--columns h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.catalog-page__seo--columns > div p:last-child {
    margin-bottom: 0;
}

.catalog-related {
    margin-top: 122px;
}

.catalog-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.catalog-related__head h2 {
    margin: 0;
    font-size: 46px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.catalog-related__head div {
    display: flex;
    gap: 4px;
}

.catalog-related__head button {
    width: 39px;
    height: 39px;
    border: 1px solid #e2e5ea;
    background: #fff;
    color: #071d50;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.catalog-related__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.catalog-related__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ebf0;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.catalog-related__media:hover {
    border-color: #d5dae3;
    box-shadow: 0 8px 24px rgba(7, 29, 80, .06);
}

.catalog-related__media::after {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 26px;
    height: 26px;
    background: #fff;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    content: "";
}

.catalog-related__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 22px 18px;
    box-sizing: border-box;
    background: #fff;
}

.catalog-related__media span {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 4px 6px;
    background: #fff;
    color: var(--industrial-orange);
    font-size: 16px;
    font-weight: 500;
}

.catalog-related__item h3 {
    margin: 13px 0 11px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.02em;
    min-height: 2.2em;
}

.catalog-related__item h3 a {
    color: inherit;
    text-decoration: none;
}

.catalog-related__offer {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #66748e;
    font-size: 14px;
    text-decoration: none;
}

.catalog-request {
    margin-top: 90px;
}

.catalog-request .industrial-request__form {
    position: absolute;
    z-index: 1;
    right: calc((100% - 100vw) / 2);
    bottom: 0;
    width: min(1050px, 74%);
    margin: 0;
}

@media (max-width: 1000px) {
    .catalog-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .catalog-page {
        padding: 18px 0 64px;
    }

    .catalog-page__breadcrumbs {
        margin-bottom: 38px;
        font-size: 14px;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .catalog-page__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 42px;
        margin-bottom: 52px;
    }

    .catalog-page h1 {
        font-size: 32px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.02em;
    }

    .catalog-page__actions {
        width: 100%;
        justify-content: space-between;
        gap: 16px;
    }

    .catalog-sort {
        min-width: 152px;
        padding: 13px 42px 13px 12px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: -.02em;
    }

    .catalog-sort::after {
        right: 10px;
        width: 18px;
        height: 18px;
    }

    .catalog-filter-button {
        display: inline-flex;
        padding: 13px 0;
        color: #000;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .catalog-page__layout {
        display: block;
    }

    .catalog-filter-backdrop {
        position: fixed;
        z-index: 110;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(0, 0, 0, .35);
        opacity: 0;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.is-catalog-filter-open .catalog-filter-backdrop {
        visibility: visible;
        opacity: 1;
    }

    body.is-catalog-filter-open {
        overflow: hidden;
    }

    .catalog-filter {
        position: fixed;
        z-index: 120;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(280px, 82vw);
        margin: 0;
        padding: 18px 14px 28px;
        overflow-y: auto;
        background: #f3f5f8;
        transform: translateX(-100%);
        transition: transform .28s ease;
        -webkit-overflow-scrolling: touch;
    }

    body.is-catalog-filter-open .catalog-filter {
        transform: translateX(0);
    }

    .catalog-filter__mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 0 4px 12px;
        color: #000;
        font-size: 18px;
        font-weight: 500;
        line-height: 1;
    }

    .catalog-filter__mobile-head button {
        width: 32px;
        height: 32px;
        padding: 0;
        color: inherit;
        font-size: 22px;
        line-height: 1;
        text-align: center;
    }

    .catalog-filter__body button {
        padding: 10px 12px;
        color: #000;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: 0.01em;
    }

    .catalog-filter__body span {
        width: 16px;
        font-size: 20px;
        line-height: 16px;
    }

    .catalog-filter__category.is-active {
        padding-top: 10px;
        padding-bottom: 10px;
        color: #fff !important;
    }

    .catalog-filter__subcategories .catalog-filter__subcategory {
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: -.01em;
    }

    .catalog-products__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .catalog-products__count {
        display: none;
    }

    .catalog-product__image {
        aspect-ratio: 1 / .87;
    }

    .catalog-product__image span {
        top: 12px;
        left: 10px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .catalog-product h2 {
        min-height: auto;
        margin-top: 18px;
        margin-bottom: 18px;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }

    .catalog-product__offer {
        gap: 10px;
        font-size: 14px;
        font-weight: 500;
        line-height: .99;
        letter-spacing: -.02em;
    }

    .catalog-product__category {
        display: none;
    }

    .catalog-pagination {
        margin-top: 42px;
    }

    .catalog-pagination button {
        width: 100%;
        height: 48px;
    }

    .catalog-pagination__more {
        position: relative;
        background: var(--industrial-orange) !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
    }

    .catalog-pagination__more::after {
        display: inline-flex;
        width: 24px;
        height: 24px;
        align-items: center;
        justify-content: center;
        margin-left: 12px;
        border: 1px solid rgba(255, 255, 255, .75);
        border-radius: 50%;
        content: "›";
        font-size: 18px;
        line-height: 1;
    }

    .catalog-video,
    .catalog-page__seo,
    .catalog-related {
        margin-top: 70px;
        margin-left: 0;
    }

    .catalog-video h2,
    .catalog-page__seo h2,
    .catalog-related__head h2 {
        font-size: 29px;
    }

    .catalog-video__preview span {
        width: 55px;
        height: 55px;
    }

    .catalog-video__preview span::after {
        border-top-width: 9px;
        border-bottom-width: 9px;
        border-left-width: 14px;
    }

    .catalog-page__seo p {
        font-size: 13px;
    }

    .catalog-page__seo--columns {
        display: block;
        margin-top: 65px;
    }

    .catalog-page__seo--columns h2 {
        margin-bottom: 24px;
    }

    .catalog-page__seo--columns > div + div {
        margin-top: 20px;
    }

    .catalog-related {
        overflow: hidden;
    }

    .catalog-related__head {
        align-items: flex-start;
        margin-bottom: 58px;
    }

    .catalog-related__head h2 {
        max-width: 190px;
        font-size: 36px;
        line-height: 1;
        letter-spacing: 0.02em;
    }

    .catalog-related__head div {
        padding-top: 18px;
    }

    .catalog-related__head button {
        width: 39px;
        height: 39px;
        font-size: 18px;
    }

    .catalog-related__grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .catalog-related__grid::-webkit-scrollbar {
        display: none;
    }

    .catalog-related__item {
        flex: 0 0 295px;
        scroll-snap-align: start;
    }

    .catalog-related__media {
        aspect-ratio: 1 / 1.12;
    }

    .catalog-related__item h3 {
        margin: 22px 0 18px;
        min-height: 0;
        font-size: 22px;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }

    .catalog-related__offer {
        font-size: 14px;
        font-weight: 500;
        line-height: .99;
        letter-spacing: -.02em;
    }

    .catalog-request .industrial-request__form {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 30px);
        margin: 0 auto;
    }
}

@media (max-width: 380px) {
    .catalog-products__grid {
        grid-template-columns: 1fr;
    }
}
