/* Test homepage hero v8. Live homepage is not affected. */
.owl-home-test-hero {
    position: relative;
    width: 100%;
    min-height: 575px;
    overflow: hidden;
    background: #17120f;
    color: #fff;
}

.owl-home-test-hero__media,
.owl-home-test-hero__media picture,
.owl-home-test-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.owl-home-test-hero__media img {
    object-fit: cover;
    object-position: center center;
}

.owl-home-test-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 7, 6, .92) 0%, rgba(8, 7, 6, .82) 28%, rgba(8, 7, 6, .60) 47%, rgba(8, 7, 6, .22) 70%, rgba(8, 7, 6, .05) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, .02) 72%, rgba(0, 0, 0, .26) 100%);
}

.owl-home-test-hero__inner {
    position: relative;
    z-index: 2;
    width: 96%;
    max-width: 1200px;
    min-height: 575px;
    margin: 0 auto;
    padding: 46px 0 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.owl-home-test-hero__content {
    width: 560px;
    max-width: 50%;
}

.owl-home-test-hero__brand {
    display: inline-flex;
    align-items: center;
    margin: 0 0 22px;
    color: #fff;
}

.owl-home-test-hero__brand-icon {
    width: 40px;
    height: 38px;
    padding-right: 16px;
    margin-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, .58);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.owl-home-test-hero__brand-icon img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.owl-home-test-hero__brand-name {
    font-family: 'gothic', Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: .30em;
    white-space: nowrap;
}

.owl-home-test-hero__title {
    max-width: 545px;
    margin: 0 0 17px;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 44px;
    line-height: 1.07;
    font-weight: 400;
    letter-spacing: .015em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.owl-home-test-hero__description {
    max-width: 535px;
    margin: 0 0 24px;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.48;
    font-weight: 400;
    color: rgba(255, 255, 255, .80);
}

.owl-home-test-hero__benefits {
    display: grid;
    grid-template-columns: 1.25fr 1.05fr .82fr;
    width: 550px;
    max-width: 100%;
    margin: 0 0 27px;
}

.owl-home-test-hero__benefit {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-sizing: border-box;
}

.owl-home-test-hero__benefit:first-child { padding-left: 0; }
.owl-home-test-hero__benefit:last-child { padding-right: 0; }

.owl-home-test-hero__benefit + .owl-home-test-hero__benefit:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: rgba(255, 255, 255, .28);
}

.owl-home-test-hero__benefit-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .10);
}

.owl-home-test-hero__benefit-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.owl-home-test-hero__benefit strong,
.owl-home-test-hero__benefit small {
    display: block;
    font-family: 'gothic', Arial, sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, .82);
}

.owl-home-test-hero__benefit strong {
    font-size: 14px;
    line-height: 1.25;
}

.owl-home-test-hero__benefit small {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.25;
}

.owl-home-test-hero__buttons {
    display: grid;
    grid-template-columns: 238px 238px;
    gap: 16px;
    width: 492px;
    max-width: 100%;
    margin: 0 0 19px;
}

.owl-home-test-hero__button {
    width: 100%;
    min-width: 0;
    min-height: 55px;
    padding: 13px 20px;
    box-sizing: border-box;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, filter .2s ease, background-color .2s ease;
}

.owl-home-test-hero__button:hover,
.owl-home-test-hero__button:focus {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.owl-home-test-hero__button--main,
.owl-home-test-hero__button--main:visited {
    color: #fff;
    border: 1px solid rgba(145, 94, 62, .82);
    background-color: #704b34;
    background-image:
        linear-gradient(rgba(80, 44, 28, .24), rgba(80, 44, 28, .24)),
        url('/wood/banner.webp');
    background-size: auto, 900px auto;
    background-position: center, 82% 68%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 8px 20px rgba(0,0,0,.13);
}

.owl-home-test-hero__button--main:hover,
.owl-home-test-hero__button--main:focus {
    color: #fff;
    filter: brightness(1.08);
}

.owl-home-test-hero__button--secondary,
.owl-home-test-hero__button--secondary:visited {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    background: rgba(8, 7, 6, .28);
}

.owl-home-test-hero__button--secondary:hover,
.owl-home-test-hero__button--secondary:focus {
    color: #fff;
    border-color: #fff;
    background: rgba(8, 7, 6, .42);
}

.owl-home-test-hero__note {
    display: inline-block;
    padding-left: 12px;
    border-left: 1px solid rgba(175, 116, 73, .86);
    font-family: 'gothic', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    color: rgba(255, 255, 255, .68);
}

.owl-home-test-hero__sections {
    margin-top: 20px;
    max-width: 550px;
}

.owl-home-test-hero__sections-title {
    margin-bottom: 9px;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.78);
}

.owl-home-test-hero__section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.owl-home-test-hero__section-buttons a {
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 3px;
    color: rgba(255,255,255,.82);
    background: rgba(0,0,0,.20);
    font: 13px/1.2 'gothic', Arial, sans-serif;
    text-decoration: none;
}

@media (max-width: 1250px) {
    .owl-home-test-hero__content { max-width: 55%; }
    .owl-home-test-hero__title { font-size: 40px; }
    .owl-home-test-hero__benefits { width: 530px; }
}

@media (max-width: 980px) {
    .owl-home-test-hero { min-height: 620px; }
    .owl-home-test-hero__inner { min-height: 620px; }
    .owl-home-test-hero__content { width: 520px; max-width: 66%; }
    .owl-home-test-hero__title { font-size: 36px; }
    .owl-home-test-hero__benefits {
        grid-template-columns: 1fr;
        gap: 9px;
        width: 350px;
        margin-bottom: 22px;
    }
    .owl-home-test-hero__benefit,
    .owl-home-test-hero__benefit:first-child,
    .owl-home-test-hero__benefit:last-child { padding: 0; }
    .owl-home-test-hero__benefit + .owl-home-test-hero__benefit:before { display: none; }
    .owl-home-test-hero__buttons { grid-template-columns: 215px 215px; width: 446px; }
}

@media (max-width: 767px) {
    .owl-home-test-hero {
        min-height: 690px;
    }

    .owl-home-test-hero__media img {
        object-position: 68% center;
    }

    .owl-home-test-hero__shade {
        background:
            linear-gradient(180deg, rgba(8, 7, 6, .91) 0%, rgba(8, 7, 6, .82) 42%, rgba(8, 7, 6, .62) 72%, rgba(8, 7, 6, .44) 100%),
            linear-gradient(90deg, rgba(8, 7, 6, .58) 0%, rgba(8, 7, 6, .10) 100%);
    }

    .owl-home-test-hero__inner {
        width: 92%;
        min-height: 690px;
        padding: 28px 0 34px;
        align-items: flex-start;
    }

    .owl-home-test-hero__content {
        width: 100%;
        max-width: 100%;
    }

    .owl-home-test-hero__brand { margin-bottom: 20px; }
    .owl-home-test-hero__brand-icon { width: 34px; height: 32px; padding-right: 13px; margin-right: 14px; }
    .owl-home-test-hero__brand-icon img { width: 32px; height: 32px; }
    .owl-home-test-hero__brand-name { font-size: 13px; letter-spacing: .24em; }

    .owl-home-test-hero__title {
        max-width: 100%;
        margin-bottom: 14px;
        font-size: 31px;
        line-height: 1.08;
    }

    .owl-home-test-hero__description {
        max-width: 100%;
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.48;
    }

    .owl-home-test-hero__benefits {
        width: 100%;
        max-width: 340px;
        gap: 9px;
        margin-bottom: 22px;
    }

    .owl-home-test-hero__benefit-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .owl-home-test-hero__benefit-icon svg { width: 17px; height: 17px; }
    .owl-home-test-hero__benefit strong { font-size: 13px; }
    .owl-home-test-hero__benefit small { font-size: 12px; }

    .owl-home-test-hero__buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        max-width: 340px;
        margin-bottom: 16px;
    }

    .owl-home-test-hero__button {
        min-height: 50px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .owl-home-test-hero__note {
        max-width: 330px;
        font-size: 12px;
    }
}


/* v8: equal hero buttons. The global .catalog_orderbutton styles are intentionally neutralized here. */
.owl-home-test-hero__buttons .owl-home-test-hero__button,
.owl-home-test-hero__buttons .owl-home-test-hero__button.catalog_orderbutton {
    display: inline-flex;
    width: 100%;
    max-width: none;
    height: 55px;
    min-height: 55px;
    margin: 0;
    padding: 0 20px;
    border-radius: 3px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    text-transform: none;
}

/* v8: visual refresh of the existing #form1 only. Form fields, names, action and JS behavior are untouched. */
#form1.custom-model-main {
    padding: 18px;
}

#form1 .custom-model-inner {
    width: 430px;
    max-width: calc(100% - 24px);
    margin: 24px auto;
}

#form1 .custom-model-wrap {
    position: relative;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px 30px 26px;
    border: 1px solid rgba(108, 77, 58, .15);
    border-radius: 18px;
    background: #fbfaf8;
    box-shadow: 0 24px 70px rgba(22, 14, 10, .30);
}

#form1 .pop-up-content-wrap {
    width: 100%;
}

#form1 form#contact {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #2f2925;
    font-family: 'gothic', Arial, sans-serif;
}

#form1 form#contact > b {
    display: block;
    margin: 0 42px 22px 0;
    color: #2d2723;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 25px;
    line-height: 1.18;
    font-weight: 400;
}

#form1 #fields p {
    margin: 0 0 13px;
}

#form1 #fields p.elem_item[style] {
    opacity: 1 !important;
}

#form1 #fields input[type="text"],
#form1 #fields input[type="tel"],
#form1 #fields input[type="email"],
#form1 #fields textarea {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #ddd6d1;
    border-radius: 9px;
    background: #fff;
    color: #2f2925;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    box-shadow: inset 0 1px 2px rgba(34, 24, 18, .03);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#form1 #fields textarea {
    min-height: 92px;
    height: 92px;
    padding-top: 13px;
    resize: vertical;
}

#form1 #fields input:focus,
#form1 #fields textarea:focus {
    border-color: #9a7258;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 89, 70, .10);
}

#form1 #fields input::placeholder,
#form1 #fields textarea::placeholder {
    color: #938a84;
    opacity: 1;
}

#form1 .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

#form1 .check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 9px;
    align-items: start;
    margin: 4px 0 18px;
}

#form1 .check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #7c5946;
    cursor: pointer;
}

#form1 #fields p.elem_item.one {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

#form1 #fields p.elem_item.one small {
    color: #746c67;
    font-size: 12px;
    line-height: 1.4;
}

#form1 #fields p.elem_item.one a {
    color: #6f4d3a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#form1 #fields p.buttons {
    margin: 0;
}

#form1 #fields button[type="submit"] {
    display: flex;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #76513b;
    color: #fff;
    font-family: 'gothic', Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 400;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(85, 53, 35, .18);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#form1 #fields button[type="submit"]:hover,
#form1 #fields button[type="submit"]:focus {
    background: #684632;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(85, 53, 35, .24);
}

#form1 .close-btn {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    margin: 0;
    border: 1px solid #e2dcd7;
    border-radius: 50%;
    background: #fff;
    color: #665c55;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(35, 25, 20, .08);
}

#form1 .bg-overlay {
    backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
    .owl-home-test-hero__buttons .owl-home-test-hero__button,
    .owl-home-test-hero__buttons .owl-home-test-hero__button.catalog_orderbutton {
        height: 50px;
        min-height: 50px;
        padding: 0 18px;
        font-size: 15px;
    }

    #form1.custom-model-main {
        padding: 10px;
    }

    #form1 .custom-model-inner {
        width: 100%;
        max-width: 100%;
        margin: 12px auto;
    }

    #form1 .custom-model-wrap {
        max-height: calc(100vh - 24px);
        padding: 24px 18px 20px;
        border-radius: 14px;
    }

    #form1 form#contact > b {
        margin-bottom: 18px;
        font-size: 21px;
    }

    #form1 .close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 23px;
        line-height: 28px;
    }
}
