.page--catalog-detail .layout {
    overflow: visible;
}

.catalog-detail {
    color: #1c2126;
    padding-bottom: 60rem;
}

.catalog-detail__page-title {
    font-size: 30rem;
    line-height: 1.1;
}

.catalog-detail .systems__banner {
    margin-bottom: 24rem;
}

.catalog-detail__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24rem;
    margin-bottom: 16rem;
}

.catalog-detail__title {
    margin: 0;
    font-size: 42rem;
    line-height: 1;
    font-weight: 700;
}

.catalog-detail__sku {
    margin-top: 6rem;
    font-size: 14rem;
    color: #5d6570;
}

.catalog-detail__breadcrumbs {
    font-size: 12rem;
    color: #98a0a8;
    text-align: right;
}

.catalog-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 200rem) minmax(320rem, 40%);
    grid-template-areas: "visual scheme summary";
    gap: 24rem;
    align-items: stretch;
}

.catalog-detail__visual {
    grid-area: visual;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog-detail__scheme-card,
.catalog-detail__summary-box,
.catalog-detail__cta-image,
.catalog-detail__cta-card {
    background: #f4f5f6;
}

.catalog-detail__product-card {
    height: 100%;
    min-height: 380rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    background: transparent;
}

.catalog-detail__product-image-link,
.catalog-detail__scheme-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.catalog-detail__thumbs-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12rem;
    margin-top: 12rem;
}

.catalog-detail__gallery-nav {
    width: 24rem;
    height: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.catalog-detail__gallery-nav:hover {
    opacity: 0.92;
}

.catalog-detail__gallery-nav img {
    width: 12rem;
    height: 18rem;
}

.catalog-detail__product-image {
    width: 100%;
    max-width: 340rem;
    /* max-height: 270rem; */
    object-fit: contain;
}

.catalog-detail__product-model {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(180deg, #fafdff 0%, #ddecf8 100%);
    --progress-bar-color: #0ea5e9;
    --poster-color: transparent;
}

.catalog-detail__product-model--hidden,
.catalog-detail__product-image-link[hidden],
.catalog-detail__product-image[hidden],
.catalog-detail__product-model[hidden] {
    display: none;
}



.catalog-detail__scheme-card {
    grid-area: scheme;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200rem;
    height: 100%;
    min-height: 380rem;
    padding: 16rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.catalog-detail__summary {
    grid-area: summary;
    min-width: 0;
    height: 100%;
    display: flex;
}

.catalog-detail__scheme-card img {
    width: 100%;
    /* max-width: 200rem; */
    max-height: 350rem;
    object-fit: contain;
}

.catalog-detail__product-image-link[aria-disabled="true"] {
    cursor: default;
}

.catalog-detail-fancybox {
    --fancybox-bg: #ffffff;
    --fancybox-color: #1c2126;
    --fancybox-hover-color: #1c2126;
}

.catalog-detail-fancybox .fancybox__backdrop {
    background: #ffffff;
}

.catalog-detail-fancybox .fancybox__toolbar {
    --f-button-color: #1c2126;
    --f-button-hover-color: #1c2126;
    --f-button-bg: rgba(255, 255, 255, 0.9);
    --f-button-hover-bg: rgba(233, 236, 240, 0.95);
    --f-button-active-bg: rgba(220, 224, 229, 0.98);
    text-shadow: none;
}

.catalog-detail-fancybox .fancybox__nav {
    --f-button-color: #1c2126;
    --f-button-hover-color: #1c2126;
    --f-button-hover-bg: rgba(255, 255, 255, 0.78);
    --f-button-active-bg: rgba(233, 236, 240, 0.92);
    --f-button-svg-filter: none;
}

.catalog-detail__thumbs {
    display: flex;
    gap: 10rem;
    padding: 10rem 12rem;
    border-radius: 6rem;
    background: #f4f5f6;
    width: fit-content;
    max-width: 100%;
}

.catalog-detail__thumb {
    width: 58rem;
    height: 48rem;
    flex: 0 0 auto;
    padding: 6rem;
    border: 1px solid #d9dee4;
    background: #fff;
    border-radius: 4rem;
    cursor: pointer;
    transition: 0.2s;
}

.catalog-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-detail__thumb--model {
    padding: 6rem;
}

.catalog-detail__thumb--model img {
    object-fit: contain;
}

.catalog-detail__thumb:hover {
    opacity: 0.7;
}

.catalog-detail__thumb--active {
    border-color: #8aa9df;
}

.catalog-detail__summary-box {
    width: 100%;
    height: 100%;
    border-radius: 6rem;
    padding: 22rem 24rem 18rem;
    display: flex;
    flex-direction: column;
}

.catalog-detail__summary-title {
    font-size: 18rem;
    font-weight: 700;
    line-height: 1.25;
}

.catalog-detail__summary-list {
    margin-top: 18rem;
    display: grid;
    gap: 10rem;
}

.catalog-detail__summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16rem;
    font-size: 13rem;
    line-height: 1.4;
}

.catalog-detail__summary-row span {
    color: #747d86;
}

.catalog-detail__summary-row strong {
    font-weight: 500;
    text-align: right;
}

.catalog-detail__summary-divider {
    height: 1px;
    margin: 18rem 0 16rem;
    background: #dde1e6;
}

.catalog-detail__quantity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10rem 14rem;
    align-items: center;
    margin-top: auto;
}

.catalog-detail__quantity-label {
    grid-column: 1 / -1;
    font-size: 14rem;
    font-weight: 600;
}

.catalog-detail__quantity-control {
    display: grid;
    grid-template-columns: repeat(3, 50rem);
    gap: 10rem;
}

.catalog-detail__quantity-control button,
.catalog-detail__quantity-control input {
    width: 50rem;
    height: 50rem;
    border: 0;
    background: #fff;
    text-align: center;
    border-radius: 0;
    font-size: 18rem;
    box-shadow: 0 0 0 1px rgba(205, 213, 222, 0.18);
    transition: 0.2s;
}

.catalog-detail__quantity-control button:hover {
    opacity: 0.7;
}

.catalog-detail__price-box {
    justify-self: end;
}

.catalog-detail__price {
    font-size: 22rem;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-detail__price span {
    color: #8e96a0;
    font-size: 14rem;
    font-weight: 500;
}

.catalog-detail__price-note {
    margin-top: 4rem;
    color: #8e96a0;
    font-size: 13rem;
    line-height: 1.35;
    text-align: right;
}

.catalog-detail__summary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
    margin-top: 16rem;
    margin-bottom: 16rem;
}

.catalog-detail__button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40rem;
    padding: 8rem 14rem;
    border-radius: 4rem;
    font-size: 16rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: 0.2s;
}

.catalog-detail__button:hover {
    opacity: 0.7;
}

.catalog-detail__summary-link,
.catalog-detail__cta-button,
.catalog-detail__related-products .catalog__item-button {
    transition: 0.2s;
}

.catalog-detail__related-products .catalog__item-name a,
.catalog-detail__related-products .catalog__item-button {
    color: #1C2126;
}

.catalog-detail__summary-link:hover,
.catalog-detail__cta-button:hover,
.catalog-detail__related-products .catalog__item-button:hover {
    opacity: 0.7;
}

.catalog-detail__button--primary {
    background: #b9cdee;
    color: #1c2126;
}

.catalog-detail__button--ghost {
    background: #fff;
    color: #1c2126;
}

.catalog-detail__summary-link {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: auto; */
    gap: 10px;
    padding: 10rem 12rem;
    background: #fff;
    border: 1px solid #d5dbe2;
    border-radius: 4rem;
    text-decoration: none;
    color: #5c6771;
    font-size: 14rem;
    text-align: center;
}

.catalog-detail__cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24rem;
    margin-top: 24rem;
}

.catalog-detail__cta-image,
.catalog-detail__cta-card {
    min-height: 250px;
    border-radius: 6rem;
}

.catalog-detail__cta-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20rem 24rem;
    transition: transform 0.2s ease;
}

.catalog-detail__cta-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.catalog-detail__cta-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(16, 23, 32, 0.14) 0%, rgba(16, 23, 32, 0.48) 100%);
    transition: background 0.2s ease;
}

.catalog-detail__cta-image-content {
    position: relative;
    z-index: 1;
    max-width: 360rem;
    color: #ffffff;
}

.catalog-detail__cta-image-play {
    width: 64rem;
    height: 64rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-detail__cta-image:hover img {
    transform: scale(1.03);
}

.catalog-detail__cta-image:hover .catalog-detail__cta-image-overlay {
    background: linear-gradient(180deg, rgba(16, 23, 32, 0.2) 0%, rgba(16, 23, 32, 0.56) 100%);
}

.catalog-detail__cta-image:hover .catalog-detail__cta-image-play {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.catalog-detail__cta-image-play-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 4rem;
    border-top: 11rem solid transparent;
    border-bottom: 11rem solid transparent;
    border-left: 18rem solid #1c2126;
}

.catalog-detail__cta-image-title {
    font-size: 24rem;
    font-weight: 700;
    line-height: 1.1;
}

.catalog-detail__cta-image-text {
    margin-top: 8rem;
    font-size: 13rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.catalog-detail__cta-card {
    display: flex;
    flex-direction: column;
    padding: 24rem;
}

.catalog-detail__cta-title {
    font-size: 20rem;
    font-weight: 700;
    line-height: 1.3;
}

.catalog-detail__cta-text {
    margin-top: 10rem;
    font-size: 14rem;
    color: #6c7681;
}

.catalog-detail__cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 10rem 14rem;
    background: #b9cdee;
    border-radius: 4rem;
    color: #1c2126;
    text-decoration: none;
    text-align: center;
    font-size: 14rem;
    font-weight: 600;
}

.catalog-detail__content {
    margin-top: 24rem;
}

.catalog-detail__content-title {
    font-size: 40rem;
    line-height: 1.05;
    font-weight: 700;
}

.catalog-detail__tabs {
    margin-top: 10rem;
}

.catalog-detail__tab-input {
    display: none;
}

.catalog-detail__tab-controls {
    display: inline-flex;
    gap: 26rem;
    border-bottom: 1px solid #d9dde2;
    width: auto;
    max-width: 100%;
}

.catalog-detail__tab-control {
    padding: 10rem 0 12rem;
    border-bottom: 2px solid transparent;
    font-size: 18rem;
    color: #7a8188;
    cursor: pointer;
}

.catalog-detail__tab-panels {
    padding-top: 14rem;
    width: min(100%, 920rem);
    min-width: 640rem;
    max-width: 100%;
}

.catalog-detail__tab-panel {
    display: none;

    font-size: 16rem;
    line-height: 1.6;
    color: #5d6771;
}

.catalog-detail__tab-panel p {
    margin: 0;
    font-size: 16rem;
    line-height: 1.6;
    color: #5d6771;
}

.catalog-detail__tab-panel p+p {
    margin-top: 10rem;
}

#catalog-detail-tab-description:checked~.catalog-detail__tab-controls label[for="catalog-detail-tab-description"],
#catalog-detail-tab-specs:checked~.catalog-detail__tab-controls label[for="catalog-detail-tab-specs"],
#catalog-detail-tab-docs:checked~.catalog-detail__tab-controls label[for="catalog-detail-tab-docs"],
#catalog-detail-tab-faq:checked~.catalog-detail__tab-controls label[for="catalog-detail-tab-faq"] {
    color: #1c2126;
    border-bottom-color: #8aa9df;
}

#catalog-detail-tab-description:checked~.catalog-detail__tab-panels .catalog-detail__tab-panel--description,
#catalog-detail-tab-specs:checked~.catalog-detail__tab-panels .catalog-detail__tab-panel--specs,
#catalog-detail-tab-docs:checked~.catalog-detail__tab-panels .catalog-detail__tab-panel--docs,
#catalog-detail-tab-faq:checked~.catalog-detail__tab-panels .catalog-detail__tab-panel--faq {
    display: block;
}

.catalog-detail__specs,
.catalog-detail__docs {
    display: grid;
    gap: 10rem;
}

.catalog-detail__faq {
    display: grid;
    gap: 16rem;
}

.catalog-detail__faq-item {
    padding-bottom: 16rem;
    border-bottom: 1px solid #edf0f3;
}

.catalog-detail__faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16rem;
    list-style: none;
    cursor: pointer;
    font-size: 18rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1c2126;
}

.catalog-detail__faq-question::-webkit-details-marker {
    display: none;
}

.catalog-detail__faq-question::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 24rem;
    font-weight: 400;
    line-height: 1;
    color: #8aa9df;
}

.catalog-detail__faq-item[open] .catalog-detail__faq-question::after {
    content: "−";
}

.catalog-detail__faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.28s ease;
    color: #5d6771;
    line-height: 1.6;
}

.catalog-detail__faq-answer-inner {
    padding-top: 12rem;
}

.catalog-detail__docs--cards {
    gap: 14rem;
}

.catalog-detail__docs--cards .document-card {
    width: 100%;
    padding: 16rem;
    border-radius: 8rem;
    background: #f4f5f6;
}

.catalog-detail__docs--cards .document-card__image {
    width: 92rem;
    min-width: 92rem;
    height: 92rem;
    overflow: hidden;
    border-radius: 6rem;
    background: #f4f5f6;
}

.catalog-detail__docs--cards .document-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-detail__docs--cards .document-card__button {
    text-decoration: none;
}

.catalog-detail__spec-row {
    display: flex;
    justify-content: space-between;
    gap: 20rem;
    padding-bottom: 8rem;
    border-bottom: 1px solid #edf0f3;
    font-size: 13rem;
}

.catalog-detail__spec-row span {
    color: #6f7881;
}

.catalog-detail__doc {
    color: #4a78c8;
    text-decoration: none;
    font-size: 13rem;
}

.catalog-detail__banner {
    margin-top: 28rem;
}

.catalog-detail__section-title {
    margin-top: 24rem;
    font-size: 25rem;
    font-weight: 700;
}

.catalog-detail__related-products {
    margin-top: 16rem;
    overflow: hidden;
}

.catalog-detail__related-products .catalog__items {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.catalog-detail__related-products .catalog__items.swiper-wrapper {
    transform: none;
}

.catalog-detail__related-products .catalog__item {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border: 1px solid #DADCDE;
    border-radius: 12px;
    background: #fff;
}

.catalog-detail__related-products .catalog__item-code {
    width: 100%;
    display: flex;
    font-size: 12px;
    color: #93999E;
}

.catalog-detail__related-products .catalog__item-image {
    margin-top: 0;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog-detail__related-products .catalog__item-image img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.catalog-detail__related-products .catalog__item-rating {
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.catalog-detail__related-products .catalog__item-name {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14rem;
    font-weight: normal;
    line-height: 120%;
}

.catalog-detail__related-products .catalog__item-sale {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.catalog-detail__related-products .catalog__item-sale .old {
    font-size: 12rem;
    color: #484F55;
    text-decoration: line-through;
}

.catalog-detail__related-products .catalog__item-sale .sale {
    font-size: 14rem;
    color: #ffffff;
    padding: 2px 8px;
    background-color: #3CAA3C;
    border-radius: 4px;
    font-weight: 500;
}

.catalog-detail__related-products .catalog__item-price {
    margin-top: auto;
    font-size: 18rem;
    line-height: 24rem;
    font-weight: 700;
}

.catalog-detail__related-products .catalog__item-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px;
    font-size: 14rem;
    line-height: 20rem;
    font-weight: 500;
    background-color: #ADC4E9;
    border-radius: 8px;
}

.catalog-detail__related-products .catalog__item.swiper-slide {
    margin-right: 0;
}

@media (max-width: 1439px) {
    .catalog-detail__hero {
        grid-template-columns: 320rem 180rem 1fr;
        grid-template-areas: "visual scheme summary";
    }

    .catalog-detail__related-products .catalog__items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {

    .catalog-detail__heading,
    .catalog-detail__hero,
    .catalog-detail__cta-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .catalog-detail__hero {
        grid-template-areas:
            "visual"
            "scheme"
            "summary";
    }

    .catalog-detail__heading {
        align-items: start;
    }

    .catalog-detail__breadcrumbs {
        text-align: left;
    }

    .catalog-detail__related-products .catalog__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-detail__summary-actions {
        grid-template-columns: 1fr;
    }

    .catalog-detail__tab-panels {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {

    .catalog-detail__title,
    .catalog-detail__content-title {
        font-size: 28rem;
    }

    .catalog-detail__summary-box,
    .catalog-detail__cta-card {
        padding: 18rem;
    }

    .catalog-detail__cta-card {
        min-height: 0;
    }

    .catalog-detail__tabs {
        margin-top: 18rem;
    }

    .catalog-detail__thumbs {
        width: 100%;
    }

    .catalog-detail__tab-controls {
        gap: 26rem;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .catalog-detail__tab-controls::-webkit-scrollbar {
        display: none;
    }

    .catalog-detail__tab-panels {
        padding-top: 18rem;
    }

    .catalog-detail__related-products {
        overflow: visible;
    }

    .catalog-detail__related-products .catalog__items {
        grid-template-columns: none;
    }

    .catalog-detail__related-products.is-related-swiper-ready .catalog__items {
        display: flex;
        gap: 0;
    }

    .catalog-detail__related-products.is-related-swiper-ready .catalog__item {
        width: calc(100% - 36rem);
    }

    .catalog-detail__quantity-row {
        grid-template-columns: 1fr;
    }

    .catalog-detail__price {
        justify-self: start;
    }

    .catalog-detail__price-box,
    .catalog-detail__price-note {
        justify-self: start;
        text-align: left;
    }

    .catalog-detail__cta-image-title {
        font-size: 20rem;
    }

    .catalog-detail__cta-text {
        display: none;
    }

    .catalog-detail__cta-button {
        margin-top: 12rem;
    }

    .catalog-detail__product-image {
        max-width: 100%;
    }

    .catalog-detail__thumbs-wrap {
        gap: 12rem;
        /* padding-left: 12rem; */
        /* padding-right: 12rem; */
    }

    .catalog-detail__thumbs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

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