/* Product and catalog design layer. Loaded only on current system pages. */

.product-v2 .system-page,
.product-v2 .system-page-2,
.catalog-v2 .systems-page {
    position: relative;
    color: var(--home-text);
    background:
        radial-gradient(circle at 14% 0%, rgba(223, 193, 132, 0.1), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(223, 193, 132, 0.055), transparent 25%),
        var(--home-bg);
}

.product-v2 .system-page,
.product-v2 .system-page-2 {
    min-height: 60vh;
    padding: 86px 0 104px;
    overflow: hidden;
}

.product-v2 .system-page::before,
.product-v2 .system-page-2::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 520px);
    mask-image: linear-gradient(180deg, #000, transparent 520px);
}

.product-v2 .system-page > .container,
.product-v2 .system-page-2 > .container {
    position: relative;
    z-index: 1;
    max-width: 1040px;
}

.product-v2 .system-page-h {
    max-width: 920px;
    margin: 0 auto 26px;
    color: var(--home-text);
    text-align: center;
    font-size: clamp(48px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.product-v2 .system-page-h::before {
    content: "Каталог систем";
    display: block;
    margin-bottom: 18px;
    color: var(--home-gold);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.product-v2 .system-page-h::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin: 28px auto 0;
    background: linear-gradient(90deg, transparent, var(--home-gold), transparent);
}

.product-v2 .system-page-h2,
.product-v2 .opisanie-h3,
.product-v2 .opisanie-h3-blockin,
.product-v2 .system-page h2:not(.system-page-h2),
.product-v2 .system-page-2 h2:not(.system-page-h2),
.product-v2 .system-page h3:not(.opisanie-h3):not(.opisanie-h3-blockin),
.product-v2 .system-page-2 h3:not(.opisanie-h3):not(.opisanie-h3-blockin) {
    width: auto;
    max-width: 900px;
    margin: 54px auto 20px;
    color: var(--home-text);
    text-align: left;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: 0.015em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.product-v2 .system-page-h2 {
    text-align: center;
}

.product-v2 .opisanie-p,
.product-v2 .system-page-p {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 0;
    color: #c9c6cc;
    font: 400 17px/1.72 Arial, sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
}

.product-v2 .system-page-p {
    max-width: 820px;
    margin-bottom: 30px;
    padding: 20px 24px;
    border: 1px solid rgba(223, 193, 132, 0.2);
    border-radius: 16px;
    background: rgba(223, 193, 132, 0.055);
    text-align: center;
}

.product-v2 .opisanie-detail {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.product-v2 .spis,
.product-v2 .spis-2,
.product-v2 .spis-3 {
    max-width: 900px;
    margin: 24px auto 34px;
    padding: 24px 26px 24px 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(24, 24, 30, 0.84), rgba(13, 13, 18, 0.88));
    color: #c9c6cc;
    list-style: disc;
    font: 400 16px/1.65 Arial, sans-serif;
}

.product-v2 .spis li,
.product-v2 .spis-2 li,
.product-v2 .spis-3 li {
    margin: 0 0 12px;
    padding: 0;
    color: inherit;
    font: inherit;
    background: none;
    list-style: disc;
    overflow-wrap: anywhere;
}

.product-v2 .spis li:last-child,
.product-v2 .spis-2 li:last-child,
.product-v2 .spis-3 li:last-child {
    margin-bottom: 0;
}

.product-v2 .system-page img,
.product-v2 .system-page-2 img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.product-v2 .center img,
.product-v2 p.center img,
.product-v2 a img {
    margin-right: auto;
    margin-left: auto;
}

.product-v2 .center,
.product-v2 p.center {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.product-v2 .center > img,
.product-v2 p.center > img,
.product-v2 .img-block,
.product-v2 .logo-sup {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: #101015;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.product-v2 .logo-sup {
    width: min(100%, 520px);
    margin: 0 auto 34px;
    padding: 18px;
}

.product-v2 .images-systems-block,
.product-v2 .images-systems-block-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    align-items: stretch;
    max-width: 1000px;
    margin: 36px auto 52px !important;
}

.product-v2 .left-wrap,
.product-v2 .right-wrap,
.product-v2 .center-wrap {
    width: auto;
    min-width: 0;
    margin: 0;
}

.product-v2 .img-block {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 560px;
    padding: 8px;
}

.product-v2 .video-block-opt {
    position: relative;
    width: min(100%, 900px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 34px auto 54px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(223, 193, 132, 0.3);
    border-radius: 18px;
    background: #050508;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.product-v2 .video-block-opt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-v2 .button-box-system {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 30px auto 46px;
}

.product-v2 .buy-system,
.product-v2 .buy-system-bottom,
.product-v2 .hero__button-2,
.product-v2 .hero__button-new-2 {
    width: auto;
    max-width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 26px auto 42px;
    padding: 14px 24px;
    border: 1px solid var(--home-gold);
    border-radius: 12px;
    background: var(--home-gold);
    color: #121116;
    text-align: center;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: 0.035em;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.product-v2 .button-box-system .buy-system,
.product-v2 .button-box-system .buy-system-bottom,
.product-v2 .button-box-system .hero__button-2,
.product-v2 .button-box-system .hero__button-new-2 {
    flex: 1 1 280px;
    margin: 0;
}

.product-v2 .hero__button-2 {
    background: transparent;
    color: var(--home-text);
}

.product-v2 .buy-system:hover,
.product-v2 .buy-system-bottom:hover,
.product-v2 .hero__button-new-2:hover {
    transform: translateY(-2px);
    background: var(--home-gold-light);
    color: #121116;
}

.product-v2 .hero__button-2:hover {
    transform: translateY(-2px);
    background: rgba(223, 193, 132, 0.1);
    color: var(--home-gold-light);
}

.product-v2 .system-page > .container > .buy-system,
.product-v2 .system-page-2 > .container > .buy-system {
    display: flex;
}

.product-v2 .system-page a:not(.buy-system):not(.buy-system-bottom):not(.hero__button-2):not(.hero__button-new-2),
.product-v2 .system-page-2 a:not(.buy-system):not(.buy-system-bottom):not(.hero__button-2):not(.hero__button-new-2) {
    color: var(--home-gold-light);
    text-decoration-color: rgba(223, 193, 132, 0.5);
    text-underline-offset: 3px;
}

/* Catalog */
.catalog-v2 .line-bg {
    height: 180px;
    margin: 0;
    border-bottom: 1px solid var(--home-line);
    background-image:
        linear-gradient(90deg, rgba(7, 7, 10, 0.4), rgba(7, 7, 10, 0.72)),
        url("../images/bg-line.webp");
    background-position: center;
    background-size: cover;
    filter: none;
}

.catalog-v2 .systems-page {
    padding: 74px 0;
}

.catalog-v2 .systems-page + .systems-page {
    padding-top: 0;
}

.catalog-v2 .systems-page h1 {
    margin-bottom: 24px;
    color: var(--home-text);
    font-size: clamp(48px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 700;
    text-align: center;
    text-wrap: balance;
}

.catalog-v2 .systems-page-p {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 0;
    color: #c9c6cc;
    font: 400 16px/1.7 Arial, sans-serif;
    text-align: center;
}

.catalog-v2 .systems-card,
.catalog-v2 .systems-card-end {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    width: 100%;
    margin: 0 0 18px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: linear-gradient(145deg, #15151b, #0d0d12);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.catalog-v2 .systems-card:hover,
.catalog-v2 .systems-card-end:hover {
    transform: translateY(-3px);
    border-color: rgba(223, 193, 132, 0.5);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

.catalog-v2 .systems-logo {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(223, 193, 132, 0.14);
    border-radius: 13px;
    background:
        radial-gradient(circle, rgba(223, 193, 132, 0.12), transparent 52%),
        #0c0c11;
}

.catalog-v2 .systems-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-v2 .systems-content {
    width: auto;
    min-width: 0;
    padding: 8px 0;
}

.catalog-v2 h3.systems-name,
.catalog-v2 h3.systems-name-b {
    margin: 0 0 14px;
    padding: 0;
    color: var(--home-text);
    text-align: left;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.catalog-v2 .systems-desc,
.catalog-v2 .systems-desc-b {
    margin: 0;
    padding: 0;
    color: var(--home-muted);
    font: 400 15px/1.6 Arial, sans-serif;
    overflow-wrap: anywhere;
}

.catalog-v2 .button-card {
    margin-top: 18px;
}

.catalog-v2 .systems-button {
    min-height: 48px;
    margin: 0;
    padding: 10px 20px;
    border: 1px solid var(--home-gold);
    border-radius: 10px;
    background: var(--home-gold);
    color: #121116;
    font-size: 17px;
    line-height: 1;
}

.catalog-v2 .systems-button:hover {
    margin: 0;
    padding: 10px 20px;
    border-width: 1px;
    background: var(--home-gold-light);
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 767px) {
    .product-v2 .system-page,
    .product-v2 .system-page-2 {
        padding: 54px 0 72px;
    }

    .product-v2 .system-page-h {
        margin-bottom: 20px;
        font-size: clamp(38px, 12vw, 52px);
        line-height: 1;
    }

    .product-v2 .system-page-h::before {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .product-v2 .system-page-h2,
    .product-v2 .opisanie-h3,
    .product-v2 .opisanie-h3-blockin,
    .product-v2 .system-page h2:not(.system-page-h2),
    .product-v2 .system-page-2 h2:not(.system-page-h2),
    .product-v2 .system-page h3:not(.opisanie-h3):not(.opisanie-h3-blockin),
    .product-v2 .system-page-2 h3:not(.opisanie-h3):not(.opisanie-h3-blockin) {
        width: 100% !important;
        margin: 42px 0 18px;
        font-size: 28px !important;
        line-height: 1.12;
    }

    .product-v2 .opisanie-p,
    .product-v2 .system-page-p {
        font-size: 16px;
        line-height: 1.65;
    }

    .product-v2 .system-page-p {
        padding: 18px;
    }

    .product-v2 .spis,
    .product-v2 .spis-2,
    .product-v2 .spis-3 {
        margin: 20px 0 30px;
        padding: 20px 20px 20px 38px;
        font-size: 15px;
        line-height: 1.6;
    }

    .product-v2 .system-page img,
    .product-v2 .system-page-2 img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        float: none !important;
    }

    .product-v2 .images-systems-block,
    .product-v2 .images-systems-block-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin: 28px 0 40px !important;
    }

    .product-v2 .left-wrap,
    .product-v2 .right-wrap,
    .product-v2 .center-wrap {
        width: 100% !important;
        margin: 0 !important;
    }

    .product-v2 .img-block {
        min-height: 0;
        max-height: none;
        padding: 5px;
    }

    .product-v2 .video-block-opt {
        width: 100%;
        height: auto;
        margin: 28px 0 42px;
        padding: 0;
    }

    .product-v2 .button-box-system {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin: 24px 0 38px;
    }

    .product-v2 .buy-system,
    .product-v2 .buy-system-bottom,
    .product-v2 .hero__button-2,
    .product-v2 .hero__button-new-2,
    .product-v2 .button-box-system .buy-system,
    .product-v2 .button-box-system .buy-system-bottom,
    .product-v2 .button-box-system .hero__button-2,
    .product-v2 .button-box-system .hero__button-new-2 {
        width: 100%;
        min-height: 52px;
        flex: 0 0 auto;
        margin: 20px 0 34px;
        padding: 13px 16px;
        white-space: normal;
        font-size: 17px;
        line-height: 1.22;
    }

    .product-v2 .button-box-system .buy-system,
    .product-v2 .button-box-system .buy-system-bottom,
    .product-v2 .button-box-system .hero__button-2,
    .product-v2 .button-box-system .hero__button-new-2 {
        margin: 0;
    }

    .catalog-v2 .line-bg {
        height: 110px;
    }

    .catalog-v2 .systems-page {
        padding: 54px 0;
    }

    .catalog-v2 .systems-page h1 {
        font-size: 44px;
        line-height: 1;
    }

    .catalog-v2 .systems-card,
    .catalog-v2 .systems-card-end {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin: 0 0 14px;
        padding: 14px;
    }

    .catalog-v2 .systems-logo {
        aspect-ratio: 16 / 10;
        padding: 20px;
    }

    .catalog-v2 .systems-content {
        padding: 4px 6px 10px;
    }

    .catalog-v2 h3.systems-name,
    .catalog-v2 h3.systems-name-b {
        font-size: 25px;
    }

    .catalog-v2 .systems-button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .product-v2 .system-page-h {
        font-size: 36px;
    }

    .product-v2 .system-page-h2,
    .product-v2 .opisanie-h3,
    .product-v2 .opisanie-h3-blockin {
        font-size: 26px !important;
    }
}
