@font-face {
    font-family: Onest;
    src: url('../wave1/fonts/Onest-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body.site_s2 {
    --drev-body-font: Onest, sans-serif;
    --drev-heading-font: Forum, Onest, sans-serif;
    font-family: var(--drev-body-font) !important;
}
body.site_s2 :where(button, input, select, textarea) { font-family: var(--drev-body-font); }
body.site_s2 :is(.dpv-bento, .bx-yandex-map, .accordion-type-2 .accordion-head) {
    font-family: var(--drev-body-font) !important;
}
body.site_s2 #content :is(.dpv-bento, .dpr-editorial) :where(p, button, span, strong, small, figcaption, div, li, a) {
    font-family: var(--drev-body-font) !important;
}
body.site_s2 :is(#content :is(h1, h2, h3, h4, h5, h6, [role="heading"], .ordered-block__title),
    .top-block-wrapper h1, .dpr-editorial h3, .dpv-bento .dpv-bento__title) {
    font-family: var(--drev-heading-font) !important;
    font-weight: 400 !important;
}
body.site_s2 :is(blockquote, blockquote :where(p, a, strong, span, em),
    .dp-areas .dp-area > .title_block, .additional-gallery > :is(.ordered-block__title, .bordered-block__title),
    .drev8-album > .drev8-album__title, .ordered-block.goods > .ordered-block__title) {
    font-family: var(--drev-heading-font) !important;
    font-weight: 400 !important;
    font-synthesis: none;
}
body.site_s2 .drev8-description__editorial blockquote {
    font-size: clamp(21px, 1.25vw, 30px);
    line-height: 1.25;
}
body.site_s2 :is(.dp-areas .dp-area > .title_block, .additional-gallery > :is(.ordered-block__title, .bordered-block__title),
    .drev8-album > .drev8-album__title, .ordered-block.goods > .ordered-block__title,
    .viewed-wrapper h3.font_lg) {
    font-size: clamp(24px, 1.7vw, 38px);
    line-height: 1.1;
}

body.site_s2 #mobilemenu .drev8-nav--drawer :is(.drev8-nav__root, .drev8-nav__all) {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-block-size: 54px;
    padding: 8px 14px;
    line-height: 1.25;
}
body.site_s2 #mobilemenu .drev8-nav--drawer .drev8-nav__root > svg {
    display: block;
    flex: 0 0 22px;
    inline-size: 22px;
    block-size: 22px;
    margin: 0;
}
body.site_s2 #mobilemenu .drev8-nav--drawer .drev8-nav__trigger {
    display: grid;
    place-items: center;
    inline-size: 44px;
    min-block-size: 54px;
}

body.site_s2 .drev8-album[data-drev8-album="subject"] .drev8-album__thumbs {
    justify-content: safe center;
}
body.site_s2 .detail-gallery-big-slider-thumbs .gallery-slider-thumb__container--hide-navigation .gallery__thumb-wrapper {
    justify-content: safe center;
}
body.site_s2 .detail-gallery-big-slider-thumbs .gallery-slider-thumb__container--hide-navigation .gallery__thumb-wrapper > :last-child {
    margin-inline-end: 0 !important;
}
@media (max-width: 767px) {
    body.site_s2 #content .detail-gallery-big-slider-thumbs .gallery__thumb-wrapper .gallery__item--thumb {
        --drev-thumb-size: clamp(44px, 12vw, 58px);
        flex: 0 0 var(--drev-thumb-size) !important;
        width: var(--drev-thumb-size) !important;
        min-width: 0 !important;
        max-width: var(--drev-thumb-size) !important;
        height: var(--drev-thumb-size) !important;
    }
    body.site_s2 #content .detail-gallery-big-slider-thumbs .gallery__item--thumb img {
        max-width: 100%;
        max-height: 100%;
    }
}
@media (min-width: 1050px) {
    body.site_s2 .drev8-album[data-drev8-album="subject"][data-multiple] .drev8-album__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    body.site_s2 .drev8-album[data-drev8-album="subject"][data-multiple] .drev8-album__viewport {
        grid-column: 1;
        grid-row: 1;
    }
    body.site_s2 .drev8-album[data-drev8-album="subject"] .drev8-album__thumbs {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
    }
    body.site_s2 .drev8-album[data-drev8-album="subject"] .drev8-album__thumb { block-size: 68px; }
}

.drev8-description__feature .drev8-copy-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-block-size: 4.9em;
    margin-block: 0;
    mask-image: linear-gradient(#000 68%, #0008 90%, transparent);
}
.drev8-description__feature :is(.drev8-copy-preview, .drev8-copy-continuation)[hidden] { display: none; }
.drev8-description__feature .drev8-copy-toggle {
    min-block-size: 44px;
    padding: 0 13px;
    margin-top: 8px;
    border: 1px solid #d6cec0;
    background: #fffdf9;
    color: #28251f;
    border-radius: 50px;
    font-size: .88em;
    cursor: pointer;
}
.drev8-description__feature .drev8-copy-toggle:is(:hover,:focus-visible) {
    border-color: #776a57;
    background: #f0eae1;
}

@media (min-width: 2300px) {
    body.site_s2 { --drev-interior-height: min(81svh, 1580px); }
    body.site_s2 .additional-gallery .big-gallery-block .item > a.fancy {
        display: grid;
        place-items: center;
        block-size: var(--drev-interior-height);
    }
    body.site_s2 #content .additional-gallery > .big-gallery-block .owl-item .item > a.fancy > img {
        display: block;
        width: auto !important;
        height: var(--drev-interior-height) !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center;
    }
    body.site_s2 .additional-gallery .big-gallery-block .owl-stage-outer.owl-height {
        height: var(--drev-interior-height) !important;
        overflow: hidden !important;
    }
    body.site_s2 #content .additional-gallery > .big-gallery-block > .owl-carousel {
        height: auto !important;
        max-height: none !important;
    }
    body.site_s2 .drev8-album[data-drev8-album="interior"] { max-width: 100%; }
    body.site_s2 .drev8-album[data-drev8-album="interior"] .drev8-album__viewport {
        height: var(--drev-interior-height);
        max-height: none;
        aspect-ratio: auto;
    }
    body.site_s2 #content .drev8-album[data-drev8-album="interior"] .drev8-album__bitmap:not([data-cropped]) > img {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: var(--drev-interior-height) !important;
        max-height: none !important;
        max-width: none !important;
        object-fit: contain !important;
        object-position: center;
    }
    body.site_s2 .dp-areas .dp-area__grid {
        display: grid;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 10px;
    }
    body.site_s2 .dp-areas .dp-area__grid > .dp-gallery-item { width: auto; min-width: 0; margin: 0; }
}

body.site_s2 #desc [data-drev-finishes] > .dp-gallery-item[hidden] { display: none !important; }
body.site_s2 #desc .drev-finishes-toggle {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
}
body.site_s2 #desc .drev-finishes-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

body.site_s2 #desc :is(
    .drev8-album[data-drev8-album="interior"] > .drev8-album__title,
    .additional-gallery > :is(.ordered-block__title,.bordered-block__title)
) {
    text-align: center;
    text-wrap: balance;
    margin-inline: auto;
    padding-inline: clamp(16px, 2vw, 36px);
}

/* Keep menu names and editorial headings in the display family. */
body.site_s2 :is(.drev8-nav a, .drev8-nav summary,
    #mobilemenu .menu a, #mobilemenu .menu_title, #mobilemenu .menu_top_block a,
    .bottom-icons-panel__content-link) {
    font-family: var(--drev-heading-font) !important;
    font-weight: 600 !important;
    font-synthesis: weight;
}
body.site_s2 #header :is(.mega-menu,.menu-row,.top-menu) :is(a,summary),
body.site_s2 #headerfixed :is(.mega-menu,.menu-row,.top-menu) :is(a,summary) {
    font-family: var(--drev-heading-font) !important;
    font-weight: 600 !important;
    font-synthesis: weight;
}
body.site_s2 #content :is(.group_description_block,.CUSTOM_TEXT,.drev8-description__editorial)
    :is(p, li, td, dd, figcaption):not(blockquote *) {
    font-family: var(--drev-body-font) !important;
}
body.site_s2 #popup_iframe_wrapper .fast_view_frame[data-drev8-quick]
    :is(.fast-view-title,.fastview-product__title,.fastview-product__info .title,.props_list_wrapp .title,.props_list_wrapp .char_title,.props_list_wrapp .char_title span) {
    font-family: var(--drev-heading-font) !important;
    font-weight: 400 !important;
}

body.site_s2 #right_block_ajax [data-drev8-card-surface="grid"] .drev8-card-glass .item-title :is(a, a span) {
    font-family: var(--drev-heading-font) !important;
    font-size: var(--drev-card-caption-size) !important;
    font-weight: 600 !important;
    font-synthesis: weight;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
}

body.site_s2 [data-drev-section-tile] .drev-section-tile-label {
    font-size: var(--drev-card-caption-size);
    line-height: 1.1;
}

body.site_s2 #content [data-drev8-pdp-layout] .side-block--feedback .introtext,
body.site_s2 #popup_iframe_wrapper .wave1-quick-native .wave1-quick-sku-photos > span {
    font-family: var(--drev-heading-font) !important;
    font-weight: 400 !important;
}

body.site_s2:has([data-drev-v8-home-hero]) .float_banners.type1
    .title:has(> a[href*="/catalog/mezhkomnatnye-dveri/"]) > a {
    font-family: var(--drev-heading-font) !important;
    font-size: var(--drev-card-caption-size);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

body.site_s2 {
    --drev-card-caption-size: clamp(22.5px, 5.2cqw, 33px);
}
body.site_s2:has([data-drev-v8-home-hero]) .float_banners.type1
    .item:has(.title > a[href*="/catalog/mezhkomnatnye-dveri/"]) {
    container-type: inline-size;
}
body.site_s2 #right_block_ajax [data-drev8-card-surface="grid"] .drev8-card-glass
    :is(.price:not(.discount), .price_value, .price_currency, .price .values_wrapper, .drev8-card-quote) {
    font: 700 var(--drev-card-caption-size)/1.08 Forum, Onest, sans-serif !important;
    font-synthesis: weight;
    vertical-align: baseline;
}
body.site_s2 :is(#right_block_ajax [data-drev8-card-surface="grid"] .drev8-card-glass,
    [data-drev-shelf] :is(.drev8-card-glass,.block-item__info))
    :is(.price:not(.discount), .drev8-card-quote) {
    white-space: nowrap;
    font-synthesis: weight;
}
body.site_s2 :is(#right_block_ajax .drev8-card-glass, [data-drev-shelf])
    .price :is(.drev-minimum-price-prefix,.dp-byn-symbol) {
    font-family: Forum, Onest, sans-serif !important;
    font-weight: 700 !important;
}

#footer[data-drev8-footer] .bottom-menu .wrap a {
    font-family: var(--drev-body-font) !important;
    font-weight: 400 !important;
}
#footer[data-drev8-footer] .bottom-menu [data-drev-footer-heading] > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--drev-heading-font) !important;
    font-size: clamp(17px, 1.15vw, 24px) !important;
    font-weight: 600 !important;
    font-synthesis: weight;
    line-height: 1.08;
}
#footer[data-drev8-footer] .bottom-menu [data-drev-footer-heading]
    .drev8-footer-group-icon {
    position: static;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
}
#footer[data-drev8-footer] [data-drev-footer-heading] .drev8-footer-catalog {
    display: inline-flex;
    align-items: center;
    gap: inherit;
    width: auto;
    height: auto;
    margin: 0;
}
#footer[data-drev8-footer] [data-drev-footer-heading] .drev8-footer-catalog > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}
#footer[data-drev8-footer] .drev8-footer-group-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
@media (prefers-reduced-motion: no-preference) {
    #footer[data-drev8-footer] [data-drev-footer-heading]:is(:hover,:focus-within) .drev8-footer-group-icon svg {
        animation: drev8-footer-icon-nudge .36s ease-out;
    }
    @keyframes drev8-footer-icon-nudge {
        0%,100% { transform: translateY(0) rotate(0); }
        45% { transform: translateY(-2px) rotate(-8deg); }
    }
}
#footer[data-drev8-footer] .social-icons > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: fit-content;
    padding: 0;
    margin: 0;
    background: transparent !important;
}
#footer[data-drev8-footer] .social-icons > ul > li { margin: 0; }
@media (max-width: 767px) {
    #footer[data-drev8-footer] .footer_top > .maxwidth-theme > .row {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 0 12px;
        padding-inline: 14px;
        align-items: start;
    }
    #footer[data-drev8-footer] .footer_top > .maxwidth-theme > .row > div {
        width: auto;
        min-width: 0;
    }
    #footer[data-drev8-footer] .footer_top > .maxwidth-theme > .row > .contact-block {
        grid-column: 1 / -1;
        margin-inline: 0;
    }
    #footer[data-drev8-footer] .bottom-menu [data-drev-footer-heading] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2px;
        min-height: 54px;
        padding-inline: 0;
    }
    #footer[data-drev8-footer] .bottom-menu [data-drev-footer-heading] > a {
        gap: 5px;
        font-size: clamp(16px, 4.3vw, 19px) !important;
        min-width: 0;
        width: auto !important;
        max-width: none !important;
        padding-inline: 0 !important;
        white-space: nowrap !important;
        overflow-wrap: normal;
    }
    #footer[data-drev8-footer] .bottom-menu [data-drev-footer-toggle] {
        flex: 0 0 26px;
        position: static;
        min-width: 26px;
        width: 26px;
        height: 44px;
        padding: 0;
    }
    #footer[data-drev8-footer] .social-icons > ul {
        justify-content: center;
        margin-inline: auto;
    }
}

body.site_s2 .callback_frame:has(form[action*="form_id=DREV_CALLBACK"]) .form_head h2 {
    font-family: var(--drev-heading-font) !important;
    font-size: clamp(26px, 1.7vw, 34px);
    font-weight: 400;
    line-height: 1.1;
}


@media (max-width: 767px) {
    #footer[data-drev8-footer] .bottom-menu .wrap[data-drev-footer-panel]:not([data-drev-footer-open]) {
        display: none !important;
    }
}
