header.decorpro-hero-header,
header.decorpro-hero-header.smaller {
    position: absolute;
    top: 8px;
    left: 50%;
    width: min(calc(100% - 60px), 1296px);
    min-height: 78px;
    transform: translateX(-50%);
    border-radius: 40px;
    background: #252525;
    box-shadow: none;
    z-index: 1100;
}

header.decorpro-hero-header.smaller {
    position: fixed;
    top: 8px;
}

header.decorpro-hero-header .container {
    max-width: 1260px;
}

header.decorpro-hero-header .de-flex {
    min-height: 78px;
}

header.decorpro-hero-header #logo img {
    width: 185px;
    max-height: 54px;
    object-fit: contain;
}

.decorpro-wordmark {
    display: inline-flex;
    flex-direction: column;
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1;
    letter-spacing: .08em;
}

.decorpro-wordmark strong {
    font-size: 23px;
    font-weight: 700;
    color: #fff;
}

.decorpro-wordmark small {
    margin-top: 5px;
    color: #b58a5c;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .28em;
}

.decorpro-wordmark--large strong {
    font-size: 30px;
}

.decorpro-wordmark--large small {
    font-size: 10px;
}

header.decorpro-hero-header #mainmenu > li > a.menu-item {
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

header.decorpro-hero-header #mainmenu > li > a.menu-item.active,
header.decorpro-hero-header #mainmenu > li > a.menu-item[aria-current="page"] {
    color: #b58a5c;
}

header.decorpro-hero-header .menu_side_area .btn-main {
    position: relative;
    min-width: 166px;
    padding: 14px 48px 14px 22px;
    border-radius: 30px;
    background: #9b764e;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

header.decorpro-hero-header .menu_side_area .btn-main span {
    color: #fff;
}

header.decorpro-hero-header .menu_side_area .btn-main::after {
    content: "↗";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #805231;
    display: grid;
    place-items: center;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform .25s ease, background-color .25s ease;
}

header.decorpro-hero-header .menu_side_area .decorpro-quote-button:hover {
    background: #805231;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
    transform: translateY(-2px);
}

header.decorpro-hero-header .menu_side_area .decorpro-quote-button:hover::after {
    background: #f6f2eb;
    transform: translate(3px, -50%);
}

header.decorpro-hero-header #btn-extra {
    display: none;
}

header.decorpro-hero-header #menu-btn {
    display: none !important;
}

@media (max-width: 992px) {
    header.decorpro-hero-header #mainmenu {
        display: block;
        top: 86px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 86px);
        margin: 0;
        padding: 24px 28px 110px;
        background: #252525;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
        overflow-y: auto;
    }

    header.decorpro-hero-header.menu-open #mainmenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    header.decorpro-hero-header #btn-extra.menu-open span:first-child {
        top: 6px;
        transform: rotate(45deg);
    }

    header.decorpro-hero-header #btn-extra.menu-open span:nth-child(2) {
        top: 6px;
        transform: rotate(-45deg);
    }
}

.decorpro-hero {
    width: calc(100% - 60px);
    height: min(850px, calc(100vh - 70px));
    min-height: 680px;
    margin: 37px 30px 33px;
    border-radius: 50px;
    background: #252525;
    overflow: hidden;
}

.decorpro-hero__slider,
.decorpro-hero__slider .swiper-wrapper,
.decorpro-hero__slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.decorpro-hero__slide {
    border-radius: 50px;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.decorpro-hero__slider .swiper-slide {
    transition-timing-function: cubic-bezier(.45, 0, .2, 1) !important;
}

.decorpro-hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .98) 0%, rgba(0, 0, 0, .62) 35%, rgba(0, 0, 0, .08) 100%);
}

.decorpro-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding-top: 145px;
    padding-bottom: 72px;
    display: flex;
    align-items: flex-end;
}

.decorpro-hero__grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: clamp(45px, 8vw, 135px);
    align-items: center;
}

.decorpro-hero h1,
.decorpro-hero h2 {
    max-width: 690px;
    margin: 0;
    color: #f1f1f1;
    font-family: "Oswald", Arial, sans-serif;
    font-size: clamp(54px, 4.8vw, 76px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.decorpro-hero h1 small {
    display: block;
    color: inherit;
    font: inherit;
}

.decorpro-hero h1 span,
.decorpro-hero h2 span {
    color: #9b764e;
}

.decorpro-hero__description {
    max-width: 650px;
    padding-bottom: 5px;
}

.decorpro-hero__description p {
    margin-bottom: 18px;
    color: #f1f1f1;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.decorpro-hero .btn-main {
    padding: 11px 22px;
    border-radius: 30px;
    background: #9b764e;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.decorpro-hero .decorpro-hero-button:hover {
    background: #805231;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
    transform: translateY(-2px);
}

.decorpro-hero__pagination.swiper-pagination {
    left: auto;
    right: 80px;
    bottom: 23px;
    width: auto;
    display: flex;
    gap: 6px;
}

.decorpro-hero__pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    opacity: 1;
}

.decorpro-hero__pagination .swiper-pagination-bullet-active {
    border-color: #9b764e;
    background: #9b764e;
}

.de-dot::before {
    width: 20px;
    height: 20px;
    background: #ff9f0a;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .6);
}

.de-dot::after {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    background: #ff9f0a;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 159, 10, .3);
}

.de-dot:hover::before,
.de-dot.active::before,
.de-dot:hover::after,
.de-dot.active::after {
    background: #ffb21c;
}

.bamboo-feature-section .container {
    max-width: 1240px;
}

/* Карточки позиций на страницах продукции. */
.col-lg-6 > .relative.overflow-hidden.rounded-1 > img.w-100.wow.scaleIn {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain;
}

.service-supply-legacy {
    display: none;
}

.service-positions-section {
    background: var(--bg-default);
}

.service-positions-grid img {
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.service-position-card h3 {
    margin: 18px 0 0;
    font-size: 22px;
}

.footer-requisites {
    width: min(1240px, calc(100% - 40px));
    margin: 28px auto 0;
    padding: 16px 0 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 18px 32px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.6;
}

.footer-requisites > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-requisites strong {
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .footer-requisites {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
        padding-top: 14px;
    }
}

.bamboo-feature-section {
    padding-bottom: 50px;
}

.product-showcase-section {
    padding-top: 50px;
}

.bamboo-panel-visual {
    width: min(100%, 560px);
    margin-inline: auto;
}

.bamboo-panel-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
}

/* Единая высота карточек независимо от пропорций исходных изображений. */
#services-carousel .item > .hover > .relative > a > .relative,
#gallery .item > .hover > .relative > a > .relative {
    aspect-ratio: 1 / 1.08;
}

#services-carousel .item > .hover > .relative > a > .relative > img,
#gallery .item > .hover > .relative > a > .relative > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Изображения товара сохраняют исходное соотношение сторон на страницах service. */
.col-lg-6 > .relative.overflow-hidden.rounded-1 > img.w-100.wow.scaleIn {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain;
}

@media (max-width: 1199px) {
    header.decorpro-hero-header,
    header.decorpro-hero-header.smaller {
        top: 0;
        width: 100%;
        border-radius: 0 0 18px 18px;
    }

    header.decorpro-hero-header #btn-extra {
        display: block !important;
        position: absolute;
        top: 33px;
        right: 24px;
        z-index: 2;
    }

    header.decorpro-hero-header .de-flex > .de-flex-col:last-child {
        display: flex !important;
    }

    .decorpro-hero {
        width: 100%;
        height: 720px;
        margin: 0 0 30px;
        border-radius: 0 0 50px 50px;
    }

    .decorpro-hero__slide {
        border-radius: 0 0 50px 50px;
    }

    .decorpro-hero__content {
        padding-top: 130px;
        padding-bottom: 80px;
    }

    .decorpro-hero__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .decorpro-hero h1,
    .decorpro-hero h2 {
        font-size: clamp(50px, 7vw, 68px);
    }

    .decorpro-hero__description {
        max-width: 650px;
    }
}

@media (max-width: 767px) {
    .bamboo-feature-section {
        padding-bottom: 25px;
    }

    .product-showcase-section {
        padding-top: 35px;
    }

    #services-carousel .item > .hover > .relative > a > .relative,
    #gallery .item > .hover > .relative > a > .relative {
        aspect-ratio: 4 / 5;
    }

    #services-carousel .item > .hover > .relative > a > .relative > img,
    #gallery .item > .hover > .relative > a > .relative > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    #gallery .item h2.fs-40 {
        font-size: 24px;
    }

    header.decorpro-hero-header #logo img {
        width: 155px;
    }

    header.decorpro-hero-header .decorpro-wordmark strong {
        font-size: 19px;
    }

    header.decorpro-hero-header .decorpro-wordmark small {
        font-size: 8px;
    }

    .decorpro-hero {
        height: 690px;
        min-height: 0;
    }

    .decorpro-hero__content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding-top: 115px;
        padding-bottom: 75px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .decorpro-hero h1,
    .decorpro-hero h2 {
        max-width: 100%;
        font-size: clamp(34px, 9.5vw, 44px);
        line-height: 1;
        overflow-wrap: anywhere;
    }

    .decorpro-hero__grid,
    .decorpro-hero__description {
        min-width: 0;
        width: calc(100vw - 56px);
        max-width: calc(100vw - 56px);
    }

    .decorpro-hero__description p {
        font-size: 15px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .decorpro-hero__pagination.swiper-pagination {
        right: 28px;
        bottom: 24px;
    }

    .bamboo-panel-visual {
        width: min(100%, 430px);
    }

    .bamboo-panel-image {
        max-height: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .decorpro-hero__pagination .swiper-pagination-bullet {
        transition: none;
    }
}

/* Lenis управляет прокруткой, но высота страницы остаётся естественной. */
html.lenis,
html.lenis body {
    height: auto;
}

html.lenis {
    scroll-behavior: auto !important;
    overflow-x: hidden;
    overflow-y: auto;
}

html.lenis body {
    overflow-x: hidden;
    overflow-y: visible;
}

html.lenis.lenis-stopped {
    overflow: hidden;
}

/* Блог DecorPro */
/* Крупные иконки соцсетей в футере. */
footer .social-icons i {
    width: 46px;
    height: 46px;
    padding: 12px 5px;
    margin: 0 6px 0 0;
    font-size: 22px;
    line-height: 22px;
}

footer .social-icons .max-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transition: all .3s ease;
}
footer .social-icons .max-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}
@media (max-width: 767px) {
    footer .social-icons .max-btn {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    footer .social-icons i {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}

.decorpro-blog-hero {
    min-height: 470px;
    display: flex;
    align-items: end;
    padding: 150px 0 70px;
    background: linear-gradient(180deg, rgba(20, 14, 11, .35), rgba(20, 14, 11, .86)), var(--blog-hero-image) center/cover no-repeat;
}

.decorpro-blog-hero h1 {
    max-width: 980px;
    margin-bottom: 18px;
    color: #fff;
}

.decorpro-blog-hero p,
.decorpro-blog-hero a {
    color: rgba(255, 255, 255, .82);
}

.decorpro-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.decorpro-blog-card {
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, .34);
}

.decorpro-blog-card > a {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ddd2ca;
}

.decorpro-blog-card img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.decorpro-blog-card__body {
    padding: 26px;
}

.decorpro-blog-card__meta,
.decorpro-article__meta {
    color: #8d5b35;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.decorpro-article {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.decorpro-article h2 {
    margin-top: 52px;
}

.decorpro-article h3 {
    margin-top: 34px;
}

.decorpro-article img {
    width: 100%;
    height: auto;
    margin: 28px 0;
    border-radius: 4px;
}

.decorpro-article__note {
    margin: 34px 0;
    padding: 24px 28px;
    border-left: 4px solid #9a6842;
    background: rgba(154, 104, 66, .08);
}

.decorpro-article-cta {
    margin-top: 55px;
    padding: 34px;
    background: #2a211d;
    color: #fff;
}

.decorpro-article-cta h2,
.decorpro-article-cta p {
    color: #fff;
}

@media (max-width: 991px) {
    .decorpro-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .decorpro-blog-hero {
        min-height: 390px;
        padding: 125px 0 50px;
    }

    .decorpro-blog-grid {
        grid-template-columns: 1fr;
    }

    .decorpro-article {
        font-size: 16px;
    }
}

/* Юридические страницы и уведомление о cookies. */
.footer-legal-links {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-size: 12px;
}

.footer-legal-links a { color: rgba(255, 255, 255, .58); }
.footer-legal-links a:hover { color: #fff; }

.legal-hero {
    min-height: 390px;
    display: flex;
    align-items: end;
    padding: 150px 0 65px;
    background: linear-gradient(135deg, #2a211d, #5a4031);
}

.legal-hero h1 {
    max-width: 960px;
    color: #fff;
}

.legal-document {
    max-width: 920px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
}

.legal-document h2 { margin-top: 46px; }
.legal-document h3 { margin-top: 28px; }
.legal-document ul { padding-left: 22px; }

.legal-document__notice {
    margin: 28px 0;
    padding: 22px 26px;
    border-left: 4px solid #9a6842;
    background: rgba(154, 104, 66, .08);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
}

.form-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.decorpro-cookie-banner {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    width: min(460px, calc(100% - 44px));
    padding: 22px;
    border-radius: 4px;
    background: #2a211d;
    color: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .3);
    font-size: 14px;
    line-height: 1.55;
}

.decorpro-cookie-banner a { color: #d4a16e; }
.decorpro-cookie-banner__actions { display: flex; gap: 10px; margin-top: 14px; }

.decorpro-cookie-banner button {
    border: 0;
    padding: 10px 18px;
    background: #9a6842;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 767px) {
    .footer-legal-links { justify-content: flex-start; gap: 8px 16px; }
    .legal-hero { min-height: 330px; padding: 125px 0 45px; }
    .legal-document { font-size: 16px; }
    .decorpro-cookie-banner { right: 14px; bottom: 14px; width: calc(100% - 28px); }
}

/* Кнопка "Просмотреть каталог" — вторичная CTA с иконкой загрузки */
.btn-catalog {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 10px 30px;
    font-family: var(--btn-font-family);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    text-transform: var(--btn-text-transform);
    letter-spacing: var(--btn-letter-spacing);
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.btn-catalog:hover {
    background: var(--primary-color);
    color: var(--btn-color);
    transform: translateY(-2px);
}
