/* Reserve for later if the design starts using ultra-light typography.
@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
*/

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bnd-black: #000;
    --bnd-white: #fff;
    --bnd-orange: #e34f00;
    --bnd-muted: #7b7b7b;
    --bnd-light: #f7f6f9;
    --bnd-base: 20px;
    --bnd-page-pad: var(--bnd-base);
    --bnd-header-h: 64px;
    --bnd-scroll-offset: 92px;
    --bnd-section-gap: calc(var(--bnd-base) * 3);
    --bnd-font: "IBM Plex Mono", "Courier New", monospace;
    --bnd-hover-duration: 0.2s;
    --bnd-hover-ease: ease;
}

.overflow-hidden {
    overflow: hidden;
}

.site-main {
    overflow: clip;
}

.section {
    margin-top: var(--bnd-section-gap);
}

.section__inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--bnd-page-pad);
}

.section-title,
.h2,
h2 {
    margin: 0;
    font-size: clamp(28px, 4.8vw, 36px);
    font-weight: 400;
    line-height: 1.18;
    text-transform: uppercase;
}

p {
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 12px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 40px;
    background: transparent;
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary,
.btn--circle {
    background: var(--bnd-orange);
    color: var(--bnd-white);
}

.btn--primary:hover,
.btn--circle:hover {
    background: #c94300;
}

.btn--circle {
    width: 40px;
    padding: 0;
    flex: 0 0 40px;
}

.btn--outline-white {
    border-color: var(--bnd-white);
    color: var(--bnd-white);
}

.btn--outline-white:hover {
    background: var(--bnd-white);
    color: var(--bnd-black);
}

.btn--order {
    width: 100%;
    justify-content: space-between;
    border-color: var(--bnd-black);
    color: var(--bnd-black);
    font-size: 13px;
}

.btn--order:hover {
    background: var(--bnd-black);
    color: var(--bnd-white);
}

:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a {
    position: relative;
    display: inline-block;
    width: fit-content;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
    /* overflow: hidden; */
    color: inherit;
    background-image: linear-gradient(
        to right,
        var(--bnd-orange) 50%,
        currentColor 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    text-decoration: none;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.45s ease, opacity var(--bnd-hover-duration) var(--bnd-hover-ease);
}

:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a::before,
:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transform-origin: right center;
    transition: transform 0.45s ease;
}

:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a::after {
    background: var(--bnd-orange);
    transform: scaleX(0);
}

:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a:hover,
:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a:focus-visible {
    background-position: 0 0;
    opacity: 1;
}

:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a:hover::before,
:where(
    .order-steps__text,
    .hero__categories,
    .site-footer,
    .callback-modal-form__agree-text,
    .product-modal__description
) a:focus-visible::before {
    /* transform: translateX(100%); */
    transform: scale(0);
}

.site-header__menu-links a {
    color: inherit;
    background-image: linear-gradient(
        to right,
        var(--bnd-orange) 50%,
        currentColor 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.45s ease;
}

.site-header__menu-links a:hover,
.site-header__menu-links a:focus-visible {
    background-position: 0 0;
}

#cookie_notification {
    position: fixed;
    right: var(--bnd-page-pad);
    bottom: var(--bnd-page-pad);
    left: var(--bnd-page-pad);
    z-index: 50;
    display: grid;
    gap: 12px;
    align-items: center;
    max-width: 520px;
    padding: 16px;
    border: 1px solid #dde1e4;
    background: var(--bnd-white);
    color: var(--bnd-black);
    box-shadow: 0 20px 60px rgb(0 0 0 / 14%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(var(--bnd-base) * 2));
    transition: opacity 0.25s ease, transform 0.25s ease;

    &.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    p {
        font-size: 13px;
        font-weight: 400;
        line-height: 1.35;
    }

    a {
        color: var(--bnd-orange);
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: auto;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
    }

    .btn-cookie {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 24px;
        border: 0;
        border-radius: 40px;
        background: var(--bnd-orange);
        color: var(--bnd-white);
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        text-transform: uppercase;
        cursor: pointer;
    }
}

.site-header__inner {
    padding: 10px ;
    border-radius: 32px;
    transition: background-color 0.1s ease, margin 0.15s ease, padding 0.15s ease; 
}
.site-header.is-scrolled{
        margin: 8px 12px 0 12px;
}
.site-header.is-scrolled .site-header__inner {
    background: var(--bnd-black);
    padding-left: 7px;
    padding-right: 7px;
}

@media (min-width: 1170px){
    .site-header {
        margin: 0 10px 0 10px;

        .site-header__inner {
            padding: 10px 30px;
        }
    }

    .site-header.is-scrolled {
        margin: 10px 10px 0 10px;
        
        .site-header__inner {
            padding: 10px 30px;
        }
    }


}



@media (min-width: 1600px){
    .site-header__inner {
        padding: 10px 30px;
        border-radius: 40px;
        max-width: 1580px;
    }   
    .site-header.is-scrolled .site-header__inner {
        padding: 10px 30px;
    }
}

.site-header {
    .site-header__logo {
        display: inline-flex;
        flex: 0 0 130px;
        width: 130px;
        height: 20px;
        margin-left: 0;
        text-decoration: none;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .site-header__burger {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 40px;
        background: var(--bnd-orange);
        cursor: pointer;

        span {
            position: absolute;
            width: 20px;
            height: 1.5px;
            background: var(--bnd-white);
            transition: transform 0.2s ease;
        }

        span:first-child {
            transform: translateY(-4px);
        }

        span:last-child {
            transform: translateY(4px);
        }
    }

    &.menu-open .site-header__burger {
        span:first-child {
            transform: rotate(45deg);
        }

        span:last-child {
            transform: rotate(-45deg);
        }
    }

    .site-header__nav {
        position: fixed;
        top: 0;
        left: 0;
        display: none;
        grid-template-rows: auto 1fr auto;
        width: min(370px, calc(100vw - var(--bnd-base)));
        min-height: 100vh;
        min-height: 100dvh;
        padding: 92px var(--bnd-base) var(--bnd-base);
        border-radius: 0;
        background: var(--bnd-white);
        color: var(--bnd-black);
        box-shadow: 20px 0 60px rgb(0 0 0 / 18%);

        .site-header__menu-title {
            position: absolute;
            top: 15px;
            right: var(--bnd-base);
            font-size: 28px;
            font-weight: 400;
            line-height: 34px;
            text-transform: uppercase;
        }

        .site-header__menu-links {
            display: flex;
            flex-direction: column;
            grid-row: 1;
            width: 100%;
            text-transform: uppercase;
        }

        a {
            font-size: 18px;
            font-weight: 400;
            line-height: 26px;
            text-decoration: none;
        }

        .site-header__menu-links a {
            padding: 0 0 10px;
            border-bottom: 1px solid #DDE1E4;

            + a {
                padding-top: 10px;
            }

            &:last-child {
                padding-bottom: 0;
                border-bottom: 0;
            }
        }

        .site-header__menu-actions {
            display: flex;
            grid-row: 3;
            gap: 10px;
            align-items: center;
            align-self: end;
            width: 100%;
            margin-top: auto;
        }

        .site-header__menu-actions .btn {
            font-size: 13px;
            line-height: 1;
            text-decoration: none;
        }

        .site-header__menu-actions .site-header__messenger--max {
            order: 1;
        }

        .site-header__menu-actions .site-header__messenger--tg {
            order: 2;
        }

        .site-header__menu-call {
            flex: 1 1 auto;
            min-width: 0;
            order: 3;
            width: 100%;
            font-size: 15px;
        }
    }

    &.menu-open .site-header__nav {
        display: grid;
    }

    &.menu-open {
        color: var(--bnd-black);

        .site-header__burger {
            z-index: 1;

            span {
                width: 14px;
            }
        }

        .site-header__logo,
        > .site-header__inner > .site-header__actions {
            display: none;
        }
    }

    .site-header__actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .site-header__messenger--max {
        order: 1;
    }

    .site-header__messenger--tg {
        order: 2;
    }

    .site-header__call-icon {
        position: relative;
        order: 3;
    }

    .site-header__call-icon svg {
        display: block;
    }

    .site-header__call,
    .site-header__phone {
        display: none;
    }

    .site-header__phone {
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }
}
@media (max-width: 375px){
.site-header .site-header__logo{
            max-width: 85px;
        height: auto;
}
}
.bnd-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    overflow: auto;
    background: rgb(0 0 0 / 20%);
}

.bnd-modal.is-active {
    display: block;
    animation: bnd-modal-fade-in 0.18s ease both;
}

.bnd-modal.is-active > .bnd-modal__content {
    animation: bnd-modal-content-in 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes bnd-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bnd-modal-content-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bnd-modal.is-active,
    .bnd-modal.is-active > .bnd-modal__content {
        animation: none;
    }
}

.bnd-modal__close {
    cursor: pointer;
    transition:
        background-color var(--bnd-hover-duration) var(--bnd-hover-ease),
        color var(--bnd-hover-duration) var(--bnd-hover-ease),
        opacity var(--bnd-hover-duration) var(--bnd-hover-ease),
        transform var(--bnd-hover-duration) var(--bnd-hover-ease);
}

.bnd-modal--callback {
    padding: var(--bnd-base);
}
#popup--form-get-consultation.bnd-modal--callback{
    padding: unset;
}

.bnd-modal--callback.is-active {
    display: grid;
    place-items: center;
}

.callback-modal {
    position: relative;
    display: grid;
    place-items: center;
    width: min(350px, calc(100vw - calc(var(--bnd-base) * 2)));
    min-height: 481px;
    overflow: hidden;
    background: var(--bnd-white);
    color: var(--bnd-black);
}

.callback-modal__close {
    position: absolute;
    top: var(--bnd-base);
    right: var(--bnd-base);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bnd-black);
    cursor: pointer;
    transition:
        background-color var(--bnd-hover-duration) var(--bnd-hover-ease),
        transform var(--bnd-hover-duration) var(--bnd-hover-ease);

    span,
    span::before {
        display: block;
        width: 13px;
        height: 1px;
        background: var(--bnd-white);
    }

    span {
        transform: rotate(45deg);
    }

    span::before {
        content: "";
        transform: rotate(90deg);
    }
}

.callback-modal__close:hover,
.callback-modal__close:focus-visible {
    background: var(--bnd-orange);
    transform: scale(1.06);
}

.bnd-modal--thanks {
    padding: var(--bnd-base);
}

.bnd-modal--thanks.is-active {
    display: grid;
    place-items: center;
}

.bnd-modal--thanks .bnd-modal__content {
    position: relative;
    width: min(350px, calc(100vw - calc(var(--bnd-base) * 2)));
    height: 481px;
    overflow: hidden;
    background: var(--bnd-white);
    color: var(--bnd-black);
    font-family: var(--bnd-font);
}

.bnd-modal--thanks .bnd-modal__content::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 154px;
    width: 342px;
    height: 176px;
    border-left: 56px solid rgb(227 79 0 / 4%);
    border-bottom: 56px solid rgb(227 79 0 / 4%);
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

.bnd-modal--thanks .bnd-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bnd-black);
    color: var(--bnd-white);
}

.bnd-modal--thanks .bnd-modal__close:hover,
.bnd-modal--thanks .bnd-modal__close:focus-visible {
    background: var(--bnd-orange);
    transform: scale(1.06);
}

.bnd-modal--thanks .bnd-modal__close span,
.bnd-modal--thanks .bnd-modal__close span::before {
    display: block;
    width: 13px;
    height: 1px;
    background: currentColor;
}

.bnd-modal--thanks .bnd-modal__close span {
    transform: rotate(45deg);
}

.bnd-modal--thanks .bnd-modal__close span::before {
    content: "";
    transform: rotate(90deg);
}

.bnd-modal--thanks .modal-message {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: auto;
    height: 100%;
    padding: 40px 20px 20px;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.bnd-modal--thanks .modal-message__top {
    display: grid;
    gap: 20px;
    align-items: start;
    width: 310px;
    max-width: 100%;
    text-align: left;
}

.bnd-modal--thanks .modal-message__icon {
    display: none;
}

.bnd-modal--thanks .modal-message .h2 {
    margin: 0;
    font-size: 44px;
    font-weight: 400;
    line-height: 48px;
    text-transform: uppercase;
}

.bnd-modal--thanks .modal-message p {
    width: 217px;
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
}

.bnd-modal--thanks .modal-message__bot {
    width: 100%;
}

.bnd-modal--thanks .tools-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 40px;
    background: var(--bnd-orange);
    color: var(--bnd-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.bnd-modal--thanks .tools-item:hover,
.bnd-modal--thanks .tools-item:focus-visible {
    background: #c94300;
    transform: none;
}

.bnd-modal--thanks .bnd-btn__img {
    display: grid;
    place-items: center;
    width: 10px;
    height: 10px;
}

.bnd-modal--thanks .bnd-btn__img svg {
    display: block;
    width: 10px;
    height: 10px;
}

@media (min-width: 600px) {
    .bnd-modal--thanks .bnd-modal__content {
        width: 430px;
        height: 521px;
    }

    .bnd-modal--thanks .bnd-modal__content::before {
        left: -25px;
        top: 160px;
        width: 410px;
        height: 214px;
        border-left-width: 64px;
        border-bottom-width: 64px;
    }

    .bnd-modal--thanks .modal-message {
        padding: 40px;
    }

    .bnd-modal--thanks .modal-message__top {
        width: 350px;
    }
}

.bnd-modal--product {
    padding: 0;
}

.product-modal {
    position: relative;
    min-height: 100dvh;
    overflow: auto;
    scroll-behavior: smooth;
    background: var(--bnd-white);
    color: var(--bnd-black);
    font-family: var(--bnd-font);
}

.product-modal__stage {
    min-height: inherit;
}

.product-modal__close {
    position: fixed;
    top: 22px;
    right: 20px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bnd-black);
    cursor: pointer;
    transition:
        background-color var(--bnd-hover-duration) var(--bnd-hover-ease),
        transform var(--bnd-hover-duration) var(--bnd-hover-ease);

    span,
    span::before {
        display: block;
        width: 13px;
        height: 1px;
        background: var(--bnd-white);
    }

    span {
        transform: rotate(45deg);
    }

    span::before {
        content: "";
        transform: rotate(90deg);
    }
}

.product-modal__close:hover,
.product-modal__close:focus-visible,
.bnd-modal__close:hover,
.bnd-modal__close:focus-visible {
    background: var(--bnd-orange);
    transform: scale(1.06);
}

.product-modal__media {
    position: relative;
    /* height: 560px; */
        height: calc(100dvh - 190px);
    overflow: hidden;
    background: var(--bnd-light);

    > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
        transition:
            opacity 0.24s ease,
            transform 0.36s ease;
    }
}

.product-modal__media::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid rgb(255 255 255 / 60%);
    border-top-color: var(--bnd-orange);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
    animation: product-modal-loader 0.8s linear infinite;
}

.product-modal__media.is-loading > img {
    opacity: 0.35;
    transform: scale(1.015);
}

.product-modal__media.is-loading::after {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1169px) {
    .product-modal__media > img {
        touch-action: pan-y;
        user-select: none;
        -webkit-user-drag: none;
    }
}

@keyframes product-modal-loader {
    to {
        rotate: 360deg;
    }
}

.product-modal__badges {
    position: absolute;
    right: 20px;
    bottom: 160px;
    display: grid;
    gap: 10px;
}

.product-modal__badges[hidden],
.product-modal__awards[hidden] {
    display: none;
}

.product-modal__award span {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bnd-orange);
    color: var(--bnd-white);
    line-height: 1;
}


.product-modal__badge {
    position: relative;
    display: block;
    line-height: 0;
}

.product-modal__badge::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 3;
    padding: 4px 8px;
    background: var(--bnd-black, #1a1a1a);
    color: var(--bnd-white, #fff);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-modal__badge::before {
    content: "";
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    z-index: 3;
    border: 4px solid transparent;
    border-bottom-color: var(--bnd-black, #1a1a1a);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-modal__badge:hover::after,
.product-modal__badge:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.product-modal__badges img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.product-modal__media-bottom {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.product-modal__thumbs,
.product-modal__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-modal__thumbs {
    flex: 1 1 auto;
    max-width: calc(100% - 110px);
    min-width: 0;
    padding: 4px 3px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 3px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.product-modal__thumbs::-webkit-scrollbar {
    display: none;
}

.product-modal__thumbs.is-dragging {
    cursor: grabbing;
}

.product-modal__nav {
    flex: 0 0 auto;
}

.product-modal__thumbs[hidden],
.product-modal__nav[hidden] {
    display: none;
}

.product-modal__thumbs button {
    flex: 0 0 auto;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 50%;
    background: var(--bnd-light);
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    transition:
        border-color var(--bnd-hover-duration) var(--bnd-hover-ease),
        box-shadow var(--bnd-hover-duration) var(--bnd-hover-ease),
        transform var(--bnd-hover-duration) var(--bnd-hover-ease);

    &.active {
        border-color: var(--bnd-orange);
    }

    img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }
}

.product-modal__thumbs button:hover,
.product-modal__thumbs button:focus-visible {
    border-color: var(--bnd-orange);
    box-shadow: 0 0 0 3px rgb(227 79 0 / 18%);
    transform: translateY(-2px);
}

.product-modal__nav button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bnd-black);
    color: var(--bnd-white);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition:
        background-color var(--bnd-hover-duration) var(--bnd-hover-ease),
        transform var(--bnd-hover-duration) var(--bnd-hover-ease);

    svg {
        display: block;
    }
}

.product-modal__nav button:hover,
.product-modal__nav button:focus-visible {
    background: var(--bnd-orange);
    transform: scale(1.06);
}

.product-modal__content {
    display: grid;
    gap: 40px;
    padding: var(--bnd-base);
    padding-bottom: 0;
}

.product-modal__title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: min(350px, calc(100% - 80px));
    margin: 0;
    font-size: 36px;
    font-weight: 400;
    line-height: 42px;
    text-transform: uppercase;
}

.product-modal__details {
    display: contents;
}

.product-modal__description {
    display: grid;
    gap: 20px;
    order: 2;
    padding-bottom: 20px;
    font-size: 14px;
    line-height: 1.45;
}

.product-modal__awards {
    display: grid;
    gap: 10px;
    order: 1;
}

.product-modal__award {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #DDE1E4;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;

    &:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    span {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    img {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
}

.product-modal__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    min-width: 0;
    order: -2;
    font-size: 14px;
    line-height: normal;
}

.product-modal__options[hidden],
.product-modal__facts[hidden],
.product-modal__mini[hidden],
.product-modal__materials[hidden],
.product-modal__fact[hidden] {
    display: none;
}

.product-modal__facts,
.product-modal__mini,
.product-modal__materials {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
}

.product-modal__facts {
    grid-column: 2;
    grid-row: 1;
    gap: 18px;
}

.product-modal__mini {
    grid-column: 1;
    grid-row: 1;
    gap: 4px;
}

.product-modal__materials {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
}

.product-modal__fact {
    display: grid;
    min-width: 0;
}

.product-modal__property-label,
.product-modal__options-label {
    color: var(--bnd-muted);
    font: inherit;
}

.product-modal__options-label {
    margin: 0;
}

.product-modal__variant,
.product-modal__material {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 24px;
}

.product-modal__variant,
.product-modal__material {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.product-modal__variant-swatch,
.product-modal__material-swatch {
    box-sizing: border-box;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 3px;
    border: 1px solid #DDE1E4;
    border-radius: 50%;
    background-clip: content-box;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
    transition:
        background-color var(--bnd-hover-duration) var(--bnd-hover-ease),
        border-color var(--bnd-hover-duration) var(--bnd-hover-ease),
        box-shadow var(--bnd-hover-duration) var(--bnd-hover-ease);
}

.product-modal__material-swatch {
    background-color: #efefe9;
}

.product-modal__variant.active .product-modal__variant-swatch,
.product-modal__material.active .product-modal__material-swatch {
    border-color: var(--bnd-orange);
}

.product-modal__material.active .product-modal__material-swatch {
    background-color: var(--bnd-black);
}

.product-modal__variant:hover .product-modal__variant-swatch,
.product-modal__variant:focus-visible .product-modal__variant-swatch,
.product-modal__material:hover .product-modal__material-swatch,
.product-modal__material:focus-visible .product-modal__material-swatch {
    border-color: var(--bnd-orange);
    box-shadow:
        inset 0 0 0 1px rgb(0 0 0 / 8%),
        0 0 0 3px rgb(227 79 0 / 16%);
}

.product-modal__variant-name,
.product-modal__material-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-modal__buy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    order: -1;
}

.product-modal__price span[hidden],
.product-modal__description[hidden] {
    display: none;
}

.product-modal__price {
    display: contents;

    p {
        grid-column: 1;
        grid-row: 1;
        font-size: 18px;
        line-height: 16px;
        text-transform: uppercase;
    }

    span {
        grid-column: 2;
        grid-row: 1;
        color: var(--bnd-muted);
        font-size: 12px;
        line-height: normal;
    }
}

.product-modal__order {
    grid-column: 1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    border-color: var(--bnd-orange);
    background: var(--bnd-orange);
    color: var(--bnd-white);
    font-size: 15px;
}

.product-modal__order:hover {
    background: #c94300;
    border-color: #c94300;
}

.product-modal__description-link {
    grid-column: 2;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    border-color: var(--bnd-black);
    background: transparent;
    color: var(--bnd-black);
    font-size: 15px;
}

@media (max-width: 599px) {
    .product-modal__content {
        gap: 20px;
    }

    .product-modal__description {
        margin-top: 20px;
    }

    .product-modal__options.has-linked-materials .product-modal__facts {
        display: none;
    }
}

.product-modal__order-label--full {
    display: none;
}

.order-modal {
    display: none;
    position: relative;
    min-height: auto;
    padding: 100px var(--bnd-base) var(--bnd-base);
    overflow: auto;
    background: var(--bnd-white);
    color: var(--bnd-black);
    font-family: var(--bnd-font);
}

.order-modal__media {
    display: none;
}

.order-modal__back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 6;
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bnd-black);
    color: var(--bnd-white);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;

    svg {
        display: block;
    }
}

.order-modal__form {
    display: grid;
    gap: 40px;
}

.order-modal__title {
    position: absolute;
    top: 24px;
    right: 20px;
    width: min(287px, calc(100% - 103px));
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    text-transform: uppercase;
}

.order-modal__groups,
.order-modal__group,
.order-modal__fields {
    display: grid;
}

.order-modal__groups {
    gap: 40px;
}

.order-modal__group {
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;

    legend {
        margin: 0 0 10px;
        padding: 0;
        font-size: 18px;
        font-weight: 400;
        line-height: 32px;
        text-transform: uppercase;
    }
}

.order-modal__fields {
    gap: 10px;
}

.order-modal__input {
    width: 100%;
    height: 40px;
    min-width: 0;
    padding: 0 24px;
    border: 1px solid #d9d9d9;
    border-radius: 40px;
    background: var(--bnd-white);
    color: var(--bnd-black);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;

    &::placeholder {
        color: rgb(0 0 0 / 50%);
        opacity: 1;
    }
}

.order-modal__address {
    position: relative;
}

.order-modal__suggestions {
    position: absolute;
    z-index: 10;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    overflow: hidden auto;
    max-height: 220px;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    background: var(--bnd-white);
    box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

.order-modal__suggestion {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 10px 24px;
    border: 0;
    border-bottom: 1px solid #e9e9e9;
    background: transparent;
    color: var(--bnd-black);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;

    &:last-child {
        border-bottom: 0;
    }

    &:hover,
    &:focus-visible {
        background: #f5f5f5;
        outline: 0;
    }

    span {
        color: rgb(0 0 0 / 50%);
        font-size: 11px;
        font-weight: 400;
        text-transform: none;
    }
}

.order-modal__delivery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
    overflow: visible;
    scrollbar-width: none;
}

.order-modal__delivery::-webkit-scrollbar {
    display: none;
}

.order-modal__delivery-item {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 4px;
    color: rgb(0 0 0 / 50%);
    cursor: pointer;

    input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    > span {
        display: grid;
        place-items: center;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        padding: 3px;
        border: 1px solid transparent;
        border-radius: 50%;

        &::before {
            content: "";
            width: 100%;
            height: 100%;
            border: 1px solid #d9d9d9;
            border-radius: inherit;
            background-position: center;
            background-repeat: no-repeat;
        }
    }

    input:checked + span {
        border-color: var(--bnd-orange);

        &::before {
            border-color: var(--bnd-orange);
            background: var(--bnd-orange);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M0.34082 3.36548L2.48368 5.36548L7.84082 0.365479' stroke='white'/%3E%3C/svg%3E");
            background-position: center;
            background-repeat: no-repeat;
        }
    }

    input:checked ~ b {
        color: var(--bnd-black);
    }

    b {
        display: grid;
        gap: 0;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.15;
        text-transform: uppercase;
        white-space: normal;
    }

    small {
        font: inherit;
    }
}

.order-modal__delivery-price,
.order-modal__summary small,
.order-modal__agree {
    font-size: 12px;
    line-height: normal;
}

.order-modal__delivery-price {
    span {
        color: var(--bnd-muted);
    }
}

.order-modal__summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 20px;

    p {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        color: var(--bnd-muted);
        font-size: 18px;
        line-height: 24px;
        text-transform: uppercase;
    }

    span {
        color: var(--bnd-black);
        margin-left: auto;
        white-space: nowrap;
    }

    .order-modal__summary-label {
        min-width: 160px;
        margin-left: 0;
        color: var(--bnd-muted);
        white-space: normal;
    }

    small {
        grid-column: 1 / -1;
    }

    sup {
        color: var(--bnd-muted);
        font-size: 0.7em;
    }
}

.order-modal__footer {
    display: grid;
    gap: 20px;
}

.order-modal__agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--bnd-muted);

    input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    > span {
        display: grid;
        place-items: center;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        border: 1px solid #d9d9d9;
        border-radius: 50%;
        background-position: center;
        background-repeat: no-repeat;

        &::before {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: transparent;
        }
    }

    input:checked + span {
        border-color: var(--bnd-orange);
        background-color: var(--bnd-orange);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M0.34082 3.36548L2.48368 5.36548L7.84082 0.365479' stroke='white'/%3E%3C/svg%3E");

        &::before {
            background: transparent;
        }
    }

    b {
        font-weight: 400;
    }

    a {
        color: inherit;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: auto;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
    }
}

.order-modal__submit {
    justify-content: space-between;
    width: 100%;
    height: 40px;
    border-color: var(--bnd-orange);
    background: var(--bnd-orange);
    color: var(--bnd-white);
    font-size: 15px;

    svg {
        display: block;
        flex: 0 0 auto;
    }
}

.order-modal__submit:hover {
    background: #c94300;
    border-color: #c94300;
}

.order-modal__form .form-msg {
    display: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.order-modal__form.error .form-msg,
.order-modal__form.success .form-msg {
    display: block;
}

.order-modal__form.error .form-msg {
    color: #c94300;
}

.order-modal__form.success .form-msg {
    color: #38834d;
}

.site-footer {
    background: var(--bnd-black);
    color: var(--bnd-white);
    text-transform: uppercase;

    .site-footer__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 20px 40px;
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        padding: var(--bnd-base);
    }

    .site-footer__copyright {
        grid-column: 1 / -1;
        order: 2;
        width: 100%;
        margin-top: 20px;
        font-size: 12px;
        font-weight: 500;
        line-height: normal;
        text-align: justify;
    }

    .site-footer__socials,
    .site-footer__legal,
    .site-footer__credits {
        display: flex;
        font-weight: 500;
        line-height: normal;
    }

    .site-footer__socials,
    .site-footer__legal {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer__socials {
        align-items: flex-start;
        order: 1;
        font-size: 12px;
    }

    .site-footer__legal {
        align-items: flex-end;
        order: 1;
        font-size: 13px;
        text-align: right;
    }

    .site-footer__credits {
        grid-column: 1 / -1;
        align-items: center;
        justify-content: space-between;
        order: 3;
        font-size: 13px;
        white-space: nowrap;
    }

    .site-footer__legal a,
    .site-footer__credits {
        opacity: 0.7;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .site-footer__credits a {
        color: var(--bnd-orange);
    }

    a:hover,
    a:focus-visible {
        /* color: var(--bnd-orange); */
        opacity: 1;
    }

    .site-footer__legal a:hover,
    .site-footer__legal a:focus-visible,
    .site-footer__credits:hover,
    .site-footer__credits:focus-within {
        opacity: 1;
    }
}

@media (max-width: 1169px) {
    .bnd-modal--product.order-active {
        /*
         * The checkout must cover the complete product stage. On phones the
         * stage can be taller than the viewport, so a viewport-height overlay
         * would expose the product while scrolling.
         */
        > .product-modal {
            overflow: auto;
            transform: none;
        }

        .product-modal__stage {
            position: relative;
        }

        .order-modal__back {
            display: grid;
        }

        .order-modal {
            position: absolute;
            inset: 0;
            z-index: 5;
            display: block;
            width: 100%;
            min-height: 100%;
            height: auto;
            box-sizing: border-box;
        }
    }
}
@media (max-width: 600px){
    #popup--form-get-consultation .callback-modal{
            /* min-height: 100%; */
        /* width: 100%; */
    }
    /* Кнопка «назад» лежит в шапке формы (внутри .order-modal),
       остаётся на месте при скролле — как в макете <600px */
    .bnd-modal--product.order-active .order-modal__back {
        position: absolute;
        top: 20px;
        left: 20px;
    }
}

@media (max-width: 389px) {
    .site-header__actions,
    .site-header__menu-actions {
        gap: 6px;
    }

    .site-header__logo {
        flex-basis: 88px;
        width: 88px;
    }

    .site-footer {
        .site-footer__legal,
        .site-footer__credits {
            font-size: 11px;
        }
    }
}

@media (min-width: 600px) {
    :root {
        --bnd-page-pad: calc(var(--bnd-base) * 2);
        --bnd-section-gap: calc(var(--bnd-base) * 4);
    }

    .site-header {
        .site-header__inner {
            gap: 0;
        }

        &.menu-open .site-header__inner {
            padding-left: 20px;
        }

        .site-header__logo {
            margin-left: 20px;
        }

        .site-header__actions {
            margin-left: auto;
        }

        .site-header__messenger--tg {
            order: 1;
        }

        .site-header__messenger--max {
            order: 2;
        }

        .site-header__call-icon {
            display: none;
        }

        .site-header__call {
            display: inline-flex;
            order: 3;
            width: 183px;
        }

        .site-header__phone {
            display: inline-flex;
            order: 4;
        }
    }

    .callback-modal {
        width: 430px;
        min-height: 521px;
    }

    .bnd-modal--product {
        padding: 0;
    }

    .bnd-modal--product.is-active {
        display: grid;
        place-items: center;
    }

    .product-modal {
        width: 100%;
        min-height: 0;
        height: 100%;
        padding-bottom: 200px;
        margin: calc(var(--bnd-base) * 2);
        overflow: hidden;
    }

    .product-modal__stage {
        display: grid;
        grid-template-columns: minmax(0, calc(50% + 20px)) minmax(0, calc(50% - 20px));
        grid-template-rows: minmax(0, 1fr);
        width: 100%;
        height: 100%;
        min-height: 0;
        transition: transform 0.35s ease;
    }

    .order-modal {
        width: 100%;
        min-height: 0;
        height: 100%;
        padding: 100px calc(var(--bnd-base) * 2) calc(var(--bnd-base) * 2);
    }

    .product-modal__close {
        position: absolute;
        top: 40px;
        right: 40px;
    }

    .product-modal__media {
        grid-column: 2;
        grid-row: 1;
        height: 100%;
    }

    .product-modal__badges {
        top: 40px;
        left: 40px;
        right: auto;
        bottom: auto;
        display: flex;
    }

    .product-modal__media-bottom {
        bottom: 34px;
        left: 20px;
        right: 40px;
    }

    .product-modal__content {
        grid-column: 1;
        grid-row: 1;
        gap: 40px;
        min-height: 0;
        padding: 122px calc(var(--bnd-base) * 2) 160px;
        padding-bottom: 0;
    }

    .product-modal__title {
        top: 40px;
        left: 40px;
    }

    .product-modal__details {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 40px;
        overflow: auto;
    }

    .product-modal__description {
        display: block;
        flex: 0 0 auto;
        order: 0;
        overflow: visible;
        max-width: 324px;
        font-size: 14px;
    }

    .product-modal__description p + p {
        margin-top: 20px;
    }

    .product-modal__options {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 18px;
        order: 0;
    }

    .product-modal__facts,
    .product-modal__mini,
    .product-modal__materials {
        grid-column: auto;
    }

    .product-modal__awards {
        display: none;
    }

    .product-modal__buy {
        position: absolute;
        right: 40px;
        bottom: 40px;
        left: 40px;
        order: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
        align-items: end;
        width: auto;

        .product-modal__order {
            grid-column: auto;
            grid-row: auto;
            order: 1;
        }

        .product-modal__price {
            display: grid;
            gap: 4px;
            order: 2;
            grid-column: auto;

            p,
            span {
                grid-column: auto;
                grid-row: auto;
            }
        }
    }

    .product-modal__description-link {
        display: none;
    }

    .product-modal__order-label--short {
        display: none;
    }

    .product-modal__order-label--full {
        display: inline;
    }

    .order-modal__back {
        top: 40px;
        left: 40px;
    }

    .order-modal__title {
        top: 40px;
        right: auto;
        left: 83px;
        width: min(330px, calc(100% - 123px));
    }

    .order-modal__form {
        gap: 40px;
    }

    .order-modal__fields--contacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        .order-modal__input:last-child {
            grid-column: 1 / -1;
        }
    }

    .order-modal__delivery {
        display: flex;
        gap: 20px;
        overflow: visible;

        .order-modal__delivery-item {
            align-items: center;
        }

        .order-modal__delivery-item > span {
            flex-basis: 28px;
            width: 28px;
            height: 28px;
            padding: 4px;
        }

        .order-modal__delivery-item b {
            font-size: 13px;
            line-height: normal;
            white-space: nowrap;
        }
    }

    .order-modal__summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 44px 20px;

        p {
            display: block;
        }

        .order-modal__summary-label {
            min-width: 0;
        }

        small {
            grid-column: 2;
            grid-row: 1;
        }
    }

    .order-modal__footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 40px;
    }

    .site-footer {
        .site-footer__inner {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 40px;
            padding: calc(var(--bnd-base) * 2);
        }

        .site-footer__copyright,
        .site-footer__socials,
        .site-footer__legal,
        .site-footer__credits {
            grid-column: auto;
            order: 0;
        }

        .site-footer__copyright {
            grid-column: 1;
            grid-row: 1;
            margin-top: 0;
        }

        .site-footer__socials {
            grid-column: 2;
            grid-row: 1;
        }

        .site-footer__legal {
            grid-column: 2;
            grid-row: 2;
            align-self: end;
        }

        .site-footer__credits {
            grid-column: 1;
            grid-row: 2;
            align-self: end;
        }

        .site-footer__socials,
        .site-footer__credits {
            flex-direction: row;
            gap: 20px;
            justify-content: flex-end;
            white-space: nowrap;
        }

        .site-footer__legal {
            gap: 10px;
            flex-direction: column;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .site-footer__credits {
            justify-content: flex-start;
        }
    }
}

@media (min-width: 600px) and (max-width: 1169px) {
    .product-modal {
        padding-bottom: 260px;
    }

    .product-modal__media {
        overflow: visible;
    }

    .product-modal__media-bottom {
        right: 40px;
        bottom: -60px;
        left: 0;
    }

    /* Макет «768 - 2 колонки»: картинка слева + поля справа сверху,
       итого и футер — на всю ширину под картинкой */
    .bnd-modal--product.order-active .order-modal {
        display: grid;
        grid-template-columns: minmax(0, 364px) minmax(0, 1fr);
        column-gap: 40px;
        align-content: start;
        padding: 0;
        overflow: auto;
    }

    /* форма растворяется — её части встают в сетку модалки */
    .bnd-modal--product.order-active .order-modal__form {
        display: contents;
    }

    .bnd-modal--product.order-active .order-modal__media {
        display: block;
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: stretch;
        min-height: 0;
        overflow: hidden;
        background: var(--bnd-light);
    }

    .bnd-modal--product.order-active .order-modal__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .bnd-modal--product.order-active .order-modal__back {
        position: absolute;
        top: 40px;
        left: 80px;
        z-index: 2;
    }

    .bnd-modal--product.order-active .order-modal__title {
        position: static;
        grid-column: 2;
        grid-row: 1;
        width: auto;
        margin: 0;
        padding: 40px 40px 0 0;
    }

    .bnd-modal--product.order-active .order-modal__groups {
        display: grid;
        gap: 40px;
        grid-column: 2;
        grid-row: 2;
        padding: 40px 40px 0 0;
    }

    .bnd-modal--product.order-active .order-modal__summary {
        grid-column: 1 / -1;
        padding: 76px 40px 0;
    }
    
    .order-modal__footer .order-modal__submit{
            max-width: 187px;
    margin-left: auto;
    }
    .bnd-modal--product.order-active .order-modal__footer {
        grid-column: 1 / -1;
        padding: 20px 40px 40px;
    }

    /* узкая правая колонка — контакты и доставка в стопку */
    .bnd-modal--product.order-active .order-modal__fields--contacts {
        grid-template-columns: minmax(0, 1fr);
    }

    .bnd-modal--product.order-active .order-modal__fields--contacts .order-modal__input:last-child {
        grid-column: auto;
    }

    .bnd-modal--product.order-active .order-modal__delivery {
        flex-direction: column;
        gap: 12px;
        align-items: start;
    }
}
@media (min-width: 655px){
    .order-modal__footer .order-modal__agree{
           min-width: 386px;
    }
        
} 
@media (min-width: 1170px) {
    :root {
        --bnd-scroll-offset: 132px;
        --bnd-column-width: clamp(350px, calc((100% - 160px) / 3), 33vw);
    }

    .bnd-modal--product.is-active {
        overflow: hidden;
        place-items: center start;
    }

    .product-modal {
        width: 100%;
        min-height: 0;
        height: 100%;
        margin: 0;
        padding-bottom: 0;
    }

    .product-modal__stage {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
        grid-template-rows: minmax(0, 1fr);
        width: calc(100vw + 200vw / 3);
        min-height: inherit;
        height: 100%;
    }

    .bnd-modal--product.order-active {
        .product-modal__stage {
            transform: translateX(-40%);
        }
    }

    .product-modal__close {
        position: fixed;
        top: 40px;
        right: 40px;
    }

    .order-modal {
        position: relative;
        inset: auto;
        z-index: auto;
        display: block;
        grid-column: 3;
        grid-row: 1;
        padding: 40px;
    }

    .order-modal__back {
        top: 40px;
        left: 40px;
        display: none;
        background: var(--bnd-orange);
    }

    .bnd-modal--product.order-active {
        .order-modal__back {
            display: grid;
        }
    }

    .product-modal__content {
        position: relative;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 40px;
        padding: 40px;
    }

    .product-modal__title {
        position: static;
        grid-column: 1;
        grid-row: 1;
        width: auto;
    }

    .product-modal__details {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        min-height: 0;
        overflow: auto;
    }

    .product-modal__description {
        display: block;
        grid-column: 1;
        grid-row: 1;
        order: 0;
        align-self: start;
        max-width: none;
        overflow: visible;
        font-size: 14px;

        p {
            margin: 0 0 20px;
            break-inside: avoid;
        }

        p:last-child {
            margin-bottom: 0;
        }
    }

    .product-modal__options {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .product-modal__buy {
        position: static;
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        order: 0;
        gap: 40px;
        align-self: end;

        .product-modal__order {
            grid-column: 2;
            order: 2;
        }

        .product-modal__price {
            grid-column: 1;
            order: 1;
        }
    }

    .order-modal__title {
        position: static;
        width: auto;
        font-size: 36px;
        line-height: 42px;
    }

    .order-modal__form {
        display: flex;
        flex-direction: column;
        gap: 30px;
        height: 100%;
    }

    .order-modal__group {
        legend {
            font-size: 24px;
        }
    }

    .order-modal__input,
    .order-modal__delivery-item b {
        font-size: 15px;
    }

    .order-modal__fields--contacts {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        .order-modal__input:last-child {
            grid-column: auto;
        }
    }

    .order-modal__delivery {
        overflow: visible;

        .order-modal__delivery-item {
            flex: unset;
        }
    }

    .order-modal__summary {
        margin-top: auto;

        p {
            font-size: 24px;
            line-height: 1.33;
        }

        [data-order-modal-total] {
            white-space: nowrap;
        }
    }

    .site-footer {
        .site-footer__legal {
            grid-column: 1;
            flex-direction: row;
        }

        .site-footer__credits {
            grid-column: 2;
            justify-content: flex-end;
        }
    }

    .product-modal__media-bottom {
        left: 37px;
    }
}

@media (min-width: 1600px) {
    :root {
        --bnd-max-content-width: 1520px;
        --bnd-column-width: calc((var(--bnd-max-content-width) - 120px) / 4)
    }
    .product-modal__thumbs button{
            width: 60px;
    height: 60px;
    }

    .product-modal__thumbs {
        max-width: calc(100% - 150px);
    }

    .product-modal {
        width: calc(100vw - calc(var(--bnd-base) * 4));
        min-height: calc(100dvh - calc(var(--bnd-base) * 4));
        height: calc(100dvh - calc(var(--bnd-base) * 4));
        margin: calc(var(--bnd-base) * 2);
        padding-bottom: 0;
    }

    /* .product-modal__close {
        top: 80px;
        right: 80px;
    }

    .order-modal__back {
        top: 80px;
        left: 80px;
    } */

    .product-modal__stage {
        grid-template-columns:
            minmax(0, calc(33.333% + 20px))
            minmax(0, calc(33.333% - 20px))
            minmax(0, 33.333%);
        width: calc((100vw - calc(var(--bnd-base) * 4)) * 1.5);
    }

    .bnd-modal--product.order-active {
        .product-modal__stage {
            transform: translateX(calc(-33.333% - 20px));
        }
    }

    .order-modal {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        height: 100%;
        padding: 0;
        overflow: hidden;
    }

    .order-modal__media {
        display: none;
    }

    .order-modal__form {
        grid-column: 1;
        grid-row: 1;
        align-content: start;
        gap: 40px;
        padding: 40px;
    }

    .order-modal__title {
        position: static;
        width: auto;
        font-size: 44px;
        line-height: 48px;
    }

    .order-modal__groups {
        gap: 40px;
        margin-top: 45px;
    }

    .order-modal__delivery {
        gap: 30px;
    }

    .order-modal__summary {
        margin-top: auto;

        p {
            font-size: 24px;
            line-height: 1.33;
        }

        small {
            font-size: 13px;
        }
    }

    .order-modal__footer {
        margin-top: 10px;
    }

    .product-modal__title {
        font-size: 44px;
        line-height: 48px;
    }

    .product-modal__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }

    .product-modal__description {
        font-size: 17px;
    }

    .product-modal__options {
        gap: 22px;
        font-size: 17px;
    }

    .product-modal__facts {
        gap: 22px;
    }

    .product-modal__variant,
    .product-modal__material {
        min-height: 36px;
    }

    .product-modal__variant-swatch,
    .product-modal__material-swatch {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        padding: 5px;
    }

    .product-modal__buy {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;

        .product-modal__price {
            grid-column: 1;
            order: 0;
        }

        .product-modal__price {
            p {
                font-size: 24px;
                line-height: 1.33;
            }

            span {
                font-size: 17px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
            }
        }

        .product-modal__order {
            order: 0;
            grid-column: 2;
            height: 60px;
            padding-right: 32px;
            padding-left: 32px;
        }
    }

    .site-header {
        .site-header__burger {
            display: none;
        }

        .site-header__logo {
            margin-left: 0;
        }

        .site-header__nav,
        &.menu-open .site-header__nav {
            position: static;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex: 0 1 780px;
            width: 780px;
            padding: 0;
            margin-left: 80px;
            background: transparent;
            color: inherit;
            box-shadow: none;
            pointer-events: none;

            .site-header__menu-title,
            .site-header__menu-actions {
                display: none;
            }

            .site-header__menu-links {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                width: 100%;

                a {
                    padding: 0;
                    border-bottom: 0;
                    font-size: 15px;
                    font-weight: 500;
                    line-height: normal;
                    pointer-events: auto;
                }
            }
        }

        .site-header__actions {
            margin-left: auto;
        }

        &.menu-open {
            color: var(--bnd-white);

            .site-header__logo,
            > .site-header__inner > .site-header__actions {
                display: flex;
            }
        }
    }

    .site-footer {
        .site-footer__inner {
            max-width: 1600px;
            grid-template-columns: auto auto;
        }
    }
}
