/* HOLZBAU - Navigation & Menu Styles */

:root {
    --accent-green: #2B6D3C;
    --accent-green-hover: #266035;
    --text-main: #363636;
    --text-secondary: #6B7280;
    --bg-white: #FFFFFF;
    --bg-soft: #F8F9FA;
    --border: #F3F4F6;
    --radius-button: 12px;
    --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Bulletproof iOS scroll lock */
html.body-scroll-locked {
    overflow: hidden !important;
    height: 100% !important;
}



/* General Button Styles for 100% Parity */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 44px;
    background: var(--accent-green) !important;
    color: white !important;
    border-radius: var(--radius-button) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
}

.btn:hover {
    background: var(--accent-green-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(43, 109, 60, 0.25) !important;
}

.btn:active {
    transform: scale(0.97) translateY(-1px) !important;
    opacity: 0.9 !important;
}

.header { 
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateZ(0); 
    width: calc(100% - 40px); max-width: 1400px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 1001; height: 90px; display: flex; align-items: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 60px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 40px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.header.header--hidden {
    transform: translateX(-50%) translateY(-145%) translateZ(0);
    opacity: 0;
    pointer-events: none;
}
.header.scrolled { background: rgba(255, 255, 255, 1); box-shadow: 0 20px 60px rgba(0,0,0,0.1); top: 15px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; transition: 0.3s; }
.header__inner .logo { flex: 1 1 0%; display: flex; justify-content: flex-start; }
.header__inner .nav { flex: 0 1 auto; margin: 0 auto; }
.header__inner .header__right { flex: 1 1 0%; justify-content: flex-end; }

.logo { 
    display: flex; align-items: center; flex-shrink: 0;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: var(--accent-green); 
    text-decoration: none; 
    letter-spacing: -0.5px; 
    white-space: nowrap; 
    transform: translateY(-4px); 
}

.nav { display: flex; gap: 24px; align-items: center; justify-content: center; }
.nav__link { 
    font-weight: 500; 
    font-size: 0.95rem; 
    color: var(--text-main); 
    text-decoration: none; 
    cursor: pointer; 
    transition: 0.3s; 
    padding: 24px 10px; 
    position: relative; 
    white-space: nowrap; 
}
.nav__link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--accent-green); 
    transition: 0.3s; 
}
.nav__link:hover { color: var(--accent-green); }
.nav__link:hover::after { width: 100%; }
.nav__link[data-menu="projects"] { margin-left: 28px; }

.header__right { display: flex; align-items: center; gap: 24px; justify-content: flex-end; }
.phone { font-weight: 700; font-size: 0.95rem; color: var(--text-main); text-decoration: none; white-space: nowrap; }

/* Standardized Header Button */
.header__right .btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    width: 130px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    display: inline-flex;
    white-space: normal;
    height: auto;
}

/* Mega Menu - Tesla Style */
.overlay { 
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.25); 
    backdrop-filter: blur(15px); 
    opacity: 0; visibility: hidden; 
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    z-index: 999; 
}
.overlay.active { opacity: 1; visibility: visible; }

.header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 40px; 
    background: transparent;
    z-index: -1;
}

.mega-menu {
    position: fixed; top: 125px; left: 50%; transform: translateX(-50%) translateY(-20px); 
    width: calc(100% - 40px); max-width: 1400px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 100px rgba(0,0,0,0.12); 
    opacity: 0; visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; 
    z-index: 1000; border-radius: 60px;
    display: flex;
    overflow: hidden; 
}
.mega-menu.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Sidebar */
.mega-sidebar { width: 340px; background: rgba(0,0,0,0.005); border-right: 1px solid rgba(0,0,0,0.03); padding: 50px 0; }
.sidebar-item { 
    padding: 12px 40px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--text-secondary);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; display: flex; align-items: center;
}
.sidebar-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent-green); opacity: 0; transition: 0.3s; }
.sidebar-item:hover { color: var(--text-main); background: rgba(255,255,255,0.4); padding-left: 45px; }
.sidebar-item.active { color: var(--accent-green); background: white; }
.sidebar-item.active::before { opacity: 1; }

/* Content Area */
.mega-content { flex: 1; padding: 50px 40px; min-height: 420px; opacity: 1; transition: opacity 0.2s ease-in-out; }
.mega-content.fading { opacity: 0; transition: opacity 0.15s ease-out; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.mega-col-title { 
    font-size: 0.65rem; font-weight: 800; color: #ADB5BD; text-transform: uppercase; 
    letter-spacing: 2px; margin-bottom: 12px; 
}
.mega-link { 
    display: block; text-decoration: none; color: var(--text-main); 
    margin-bottom: 5px; font-weight: 500; font-size: 0.95rem; 
    line-height: 1.25; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}
.mega-link:hover { color: var(--accent-green); transform: translateX(6px); }

/* Воздух для выпадающих меню, кроме "Проекты" */
.mega-menu.air-mode .mega-col-title { margin-bottom: 24px; font-size: 0.75rem; letter-spacing: 2.5px; }
.mega-menu.air-mode .mega-link { margin-bottom: 18px; font-size: 1.05rem; }

/* Hide Mobile Elements by Default */
.burger, .mobile-drawer { display: none; }

/* Laptop Adaptivity (e.g. 13-14 inch screens) */
@media (max-width: 1440px) {
    .header { padding: 0 24px; }
    .nav { gap: 12px; }
    .nav__link { padding: 24px 8px; font-size: 0.9rem; }
    .nav__link[data-menu="projects"] { margin-left: 16px; }
    .header__right { gap: 16px; }
    .logo { font-size: 1.25rem; }
    .header__right .btn { padding: 10px 16px !important; font-size: 0.85rem !important; }
}

@media (max-width: 1200px) {
    .nav { gap: 8px; }
    .nav__link { padding: 24px 6px; font-size: 0.85rem; }
    .nav__link[data-menu="projects"] { margin-left: 10px; }
    .phone { font-size: 0.85rem; }
    .header__right { gap: 12px; }
    .header__right .btn { padding: 10px 14px !important; }
}

/* Mobile Adaptivity */
@media (max-width: 1024px) {
    .header { 
        height: 64px; top: 12px; width: calc(100% - 32px); 
        padding: 0 15px; border-radius: 32px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        background: rgba(255, 255, 255, 0.98);
    }
    .header__inner > .nav, .header__right .phone, .header__right .btn { display: none; }
    .header__inner .logo { transform: scale(0.9); transform-origin: left; }
    .header__inner { justify-content: space-between; }
    .header__inner > * { flex: 0 0 auto; }
    
    .burger { 
        display: flex; flex-direction: column; gap: 6px; cursor: pointer; 
        padding: 10px; z-index: 1100;
    }
    .burger span { 
        width: 24px; height: 2px; background: var(--text-main); 
        transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 2px;
    }
    .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobile Drawer Styles */
    .mobile-drawer {
        position: fixed; inset: 0; background: rgba(255,255,255,0.98); 
        backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
        z-index: 1050; padding: 100px 24px 40px;
        transform: translateX(100%); transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto; display: flex; flex-direction: column;
        visibility: hidden; pointer-events: none;
        overscroll-behavior-y: contain;
    }
    .m-close-btn {
        position: absolute; right: 20px; top: 24px; background: none; 
        border: none; padding: 10px; cursor: pointer; color: var(--text-main);
        display: flex; align-items: center; justify-content: center;
        z-index: 10;
        pointer-events: auto;
    }
    .mobile-drawer.active { transform: translateX(0); visibility: visible; pointer-events: auto; }
    .m-menu-item { border-bottom: 1px solid var(--border); }
    .m-menu-head { 
        padding: 20px 0; font-size: 1.3rem; font-weight: 700; color: var(--text-main);
        display: flex; justify-content: space-between; align-items: center;
    }
    .m-menu-head::after { content: '+'; font-size: 1.5rem; color: var(--accent-green); transition: 0.3s; }
    .m-menu-item.open .m-menu-head::after { transform: rotate(45deg); }
    
    .m-menu-body { height: 0; overflow: hidden; transition: 0.4s ease; background: var(--bg-soft); border-radius: 16px; margin-bottom: 0; }
    .m-menu-item.open .m-menu-body { height: auto; padding: 15px; margin-bottom: 20px; }
    
    .m-sub-title { font-size: 0.7rem; font-weight: 800; color: #ADB5BD; text-transform: uppercase; letter-spacing: 1px; margin: 15px 0 10px; }
    .m-link { display: block; padding: 10px 0; color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 1rem; }
    
    .m-footer { margin-top: auto; padding-top: 40px; border-top: 1px solid var(--border); }
    .m-phone { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; display: block; margin-bottom: 20px; }
}

/* =========================================
   Search Component (Header & Modal)
 ========================================= */

/* Search Button in Header */
.search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; background: #f1f6f3; color: var(--accent-green);
    border: 0; cursor: pointer; font: inherit;
    text-decoration: none; transition: all 0.3s ease; flex-shrink: 0;
}
.search-btn:hover { background: var(--accent-green); color: white; transform: scale(1.05); }

/* Shared carousel arrows for homeowner stories and inline carousels */
.section--stories .stories-dots-container {
    gap: 12px !important;
}

.section--stories .stories-dots-container .stories-nav {
    display: none !important;
}

.section--stories > .container,
.section--stories .stories-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: min(100% - 48px, 1240px);
}

.section--stories .section-head,
.section--stories > .container:has(> h2) {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.section--stories h2 {
    max-width: min(100%, 760px);
    text-wrap: balance;
}

@media (min-width: 1180px) {
    .section--stories h2 {
        white-space: nowrap;
    }
}

.section--stories .stories-carousel-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex: 0 0 auto;
}

.section--stories .hb-inline-carousel-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.section--stories .hb-stories-controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.stories-carousel-nav__btn,
.stories-nav,
.hb-inline-carousel-nav__btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(43, 109, 60, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(17, 31, 43, 0.08);
    transition: transform .22s ease, color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, opacity .22s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .stories-carousel-nav__btn:hover:not(:disabled),
    .stories-nav:hover:not(:disabled),
    .hb-inline-carousel-nav__btn:hover:not(:disabled) {
        background: var(--accent-green);
        color: #fff;
        border-color: rgba(43, 109, 60, 0.58);
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(43, 109, 60, 0.22);
        outline: none;
    }
}

.stories-carousel-nav__btn:focus-visible,
.stories-nav:focus-visible,
.hb-inline-carousel-nav__btn:focus-visible {
    background: var(--accent-green);
    color: #fff;
    border-color: rgba(43, 109, 60, 0.58);
    outline: 3px solid rgba(43, 109, 60, 0.24);
    outline-offset: 3px;
}

.stories-carousel-nav__btn svg,
.stories-nav svg,
.hb-inline-carousel-nav__btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section--stories .stories-dots-container .autoplay-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--contact-green, var(--accent-green, #2B6D3C));
    background: #f0f2f5;
    box-shadow: inset 0 0 0 1px rgba(228, 233, 237, 0.78);
    cursor: pointer;
    transition: transform .24s ease, background .24s ease, color .24s ease, box-shadow .24s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .section--stories .stories-dots-container .autoplay-toggle:hover:not(:disabled) {
        transform: translateY(-1px);
        color: var(--contact-green, var(--accent-green, #2B6D3C));
        background: #e7eee9;
        box-shadow: inset 0 0 0 1px rgba(43, 109, 60, 0.18);
    }
}

.section--stories .stories-dots-container .autoplay-toggle:focus-visible {
    outline: 3px solid rgba(43, 109, 60, 0.24);
    outline-offset: 3px;
}

.section--stories .stories-dots-container .autoplay-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}

@media (max-width: 820px) {
    .section--stories .section-head,
    .section--stories > .container:has(> h2) {
        align-items: flex-start;
        gap: 16px;
    }

    .stories-carousel-nav__btn,
    .stories-nav,
    .hb-inline-carousel-nav__btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .section--stories .stories-dots-container .autoplay-toggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
}

@media (max-width: 560px) {
    .section--stories .section-head,
    .section--stories > .container:has(> h2) {
        flex-direction: column;
    }

    .section--stories .stories-carousel-nav {
        align-self: flex-end;
        margin-top: -8px;
    }

    .section--stories .hb-inline-carousel-nav {
        align-self: flex-end;
    }

    .section--stories .hb-stories-controls {
        align-self: flex-end;
    }
}

/* Search Modal */
.search-modal {
    position: fixed; top: 125px; left: 50%; transform: translateX(-50%) translateY(-20px);
    width: calc(100% - 40px); max-width: 1400px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 60px;
    z-index: 1200; padding: 60px 80px;
    opacity: 0; visibility: hidden; 
    box-shadow: 0 30px 100px rgba(0,0,0,0.12);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.search-modal.active { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.search-modal::-webkit-scrollbar { width: 10px; }
.search-modal::-webkit-scrollbar-track { background: transparent; }
.search-modal::-webkit-scrollbar-thumb { background: rgba(43, 109, 60, 0.22); border-radius: 999px; border: 3px solid rgba(255,255,255,0.82); }
.search-modal::-webkit-scrollbar-thumb:hover { background: rgba(43, 109, 60, 0.38); }

.search-close {
    position: absolute; top: 40px; right: 50px; background: none; border: none; 
    cursor: pointer; color: var(--text-main); transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.search-close:hover { color: var(--accent-green); transform: rotate(90deg) scale(1.1); }

.search-modal__inner { max-width: 900px; margin: 0 auto; }

.search-input-wrapper { position: relative; margin-bottom: 30px; border-bottom: 2px solid rgba(0,0,0,0.1); }
.search-input-wrapper:focus-within { border-bottom-color: var(--text-main); }
.search-input { 
    width: 100%; border: none; background: transparent; padding: 20px 50px 20px 0;
    font-size: 2rem; font-family: 'Montserrat', sans-serif; font-weight: 500; 
    color: var(--text-main); outline: none;
}
.search-input::placeholder { color: #ADB5BD; font-weight: 400; }
.search-input-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #ADB5BD; transition: 0.3s; }
.search-input:focus ~ .search-input-icon { color: var(--accent-green); }

.search-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.search-suggestions-title { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }
.search-tags { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.search-tag { 
    padding: 8px 20px; background: rgba(0,0,0,0.04); border-radius: 30px; text-decoration: none;
    color: var(--text-main); font-size: 0.9rem; font-weight: 500; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-tag:hover { background: var(--text-main); color: white; transform: translateY(-2px); }

.search-results {
    margin-top: 30px;
    display: grid;
    gap: 18px;
    padding-bottom: 10px;
}

.search-results[hidden] {
    display: none;
}

.search-results__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.search-results__head strong {
    color: var(--text-main);
}

.search-results__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.search-result-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(43, 109, 60, 0.1);
    box-shadow: 0 16px 34px rgba(17,31,43,0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(43, 109, 60, 0.26);
    box-shadow: 0 22px 46px rgba(17,31,43,0.11);
}

.search-result-card__media {
    overflow: hidden;
    border-radius: 14px;
    background: #e8ecee;
    aspect-ratio: 1.15 / 1;
}

.search-result-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-card__body {
    min-width: 0;
    display: grid;
    gap: 7px;
    align-content: center;
}

.search-result-card__title {
    margin: 0;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.16;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-card__meta,
.search-result-card__price {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.25;
}

.search-result-card__price {
    color: var(--accent-green);
    font-weight: 800;
}

.search-result-card__matches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-result-card__matches span {
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(43, 109, 60, 0.08);
    color: var(--accent-green);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.search-results__all {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--accent-green);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(43,109,60,0.18);
}

.search-results__empty {
    padding: 20px;
    border-radius: 20px;
    background: rgba(43, 109, 60, 0.06);
    color: var(--text-secondary);
    line-height: 1.45;
}

.filter-option__label {
    text-transform: capitalize;
}

.filter-option__count {
    text-transform: none;
}

@media (max-width: 899px) {
    .search-btn { display: none; }
}

@media (max-width: 1024px) {
    .search-modal { top: 20px; max-height: calc(100vh - 40px); padding: 100px 20px 40px; border-radius: 36px; }
    .search-close { top: 20px; right: 20px; }
    .search-input { font-size: 1.5rem; }
    .search-suggestions { flex-direction: column; align-items: flex-start; gap: 10px; }
    .search-results__grid { grid-template-columns: 1fr; }
    .search-result-card { grid-template-columns: 96px minmax(0, 1fr); }
}

/* --- Call Modal Styles --- */
.call-modal-overlay {
    position: fixed !important; inset: 0 !important; background: rgba(0,0,0,0.5) !important; 
    backdrop-filter: blur(5px) !important; -webkit-backdrop-filter: blur(5px) !important;
    z-index: 2000 !important; opacity: 0; pointer-events: none; transition: 0.4s ease;
}
.call-modal-overlay.active { opacity: 1 !important; pointer-events: auto !important; }

.call-modal {
    position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -40%) !important;
    width: 90% !important; max-width: 440px !important; 
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(25px) !important; -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 32px !important; padding: 48px 40px !important; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
    z-index: 2001 !important; opacity: 0 !important; pointer-events: none !important; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
}
.call-modal.active { opacity: 1 !important; transform: translate(-50%, -50%) !important; pointer-events: auto !important; }

.call-modal-close {
    position: absolute !important; right: 24px !important; top: 24px !important; background: rgba(0,0,0,0.05) !important;
    border: none !important; width: 36px !important; height: 36px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; color: var(--text-main) !important; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.call-modal-close:hover { background: var(--text-main) !important; color: #fff !important; transform: rotate(90deg) !important; }

.call-modal__header h3 { font-size: 1.7rem !important; margin-bottom: 12px !important; font-weight: 700 !important; text-align: center !important; color: var(--text-main) !important; letter-spacing: -0.5px !important; }
.call-modal__header p { font-size: 1rem !important; color: #555 !important; text-align: center !important; margin-bottom: 32px !important; line-height: 1.6 !important; }

.call-form { display: flex !important; flex-direction: column !important; gap: 24px !important; }
.form-input {
    width: 100% !important; padding: 20px 24px !important; border-radius: 16px !important; border: 1px solid rgba(0,0,0,0.05) !important;
    background: rgba(0,0,0,0.03) !important; font-family: inherit !important; font-size: 1rem !important; color: var(--text-main) !important; outline: none !important; transition: 0.3s !important;
}
.form-input:focus { background: #fff !important; border-color: var(--accent-green) !important; box-shadow: 0 10px 30px rgba(35, 107, 72, 0.08) !important; }
.call-submit-btn { 
    width: 100% !important; padding: 20px !important; border-radius: 16px !important; font-size: 1.1rem !important; font-weight: 600 !important;
    display: flex !important; align-items: center !important; justify-content: center !important; border: none !important; cursor: pointer !important; 
    color: white !important; background: var(--accent-green) !important; 
    box-shadow: 0 15px 35px rgba(35, 107, 72, 0.25) !important;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; 
}
.call-submit-btn:hover { background: #266035 !important; transform: translateY(-3px) !important; box-shadow: 0 20px 40px rgba(38, 96, 51, 0.2) !important; }

.form-checkbox { display: flex !important; align-items: flex-start !important; gap: 12px !important; cursor: pointer !important; user-select: none !important; }
.form-checkbox input { display: none !important; }
.custom-checkbox {
    width: 20px !important; height: 20px !important; border-radius: 6px !important; border: 1px solid #c0c0c0 !important; background: #fff !important;
    display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; transition: 0.2s !important; margin-top: 2px !important;
}
.form-checkbox input:checked + .custom-checkbox { background: var(--accent-green) !important; border-color: var(--accent-green) !important; }
.form-checkbox input:checked + .custom-checkbox::after {
    content: '' !important; width: 4px !important; height: 9px !important; border: solid white !important; border-width: 0 2px 2px 0 !important; transform: rotate(45deg) !important; margin-bottom: 2px !important;
}
.checkbox-text { font-size: 0.85rem !important; color: #888 !important; line-height: 1.4 !important; }
.checkbox-text a { color: #888 !important; text-decoration: underline !important; }
.form-secure { text-align: center !important; font-size: 0.75rem !important; color: #aaa !important; margin-top: 10px !important; }

/* --- Unified glass popups --- */
.call-modal-overlay,
.max-selection-overlay {
    background: rgba(18, 23, 20, 0.34) !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
    transition: opacity 0.28s ease, visibility 0.28s ease !important;
}

.call-modal,
.max-selection-modal {
    width: min(470px, calc(100vw - 32px)) !important;
    max-width: 470px !important;
    padding: 28px !important;
    overflow: hidden !important;
    background:
        linear-gradient(155deg, rgba(255,255,255,.80), rgba(255,255,255,.54) 48%, rgba(239,246,241,.50)),
        radial-gradient(circle at 14% 0%, rgba(255,255,255,.84), transparent 32%),
        radial-gradient(circle at 94% 18%, rgba(176,138,79,.16), transparent 30%) !important;
    border: 1px solid rgba(255,255,255,.70) !important;
    border-radius: 34px !important;
    box-shadow:
        0 38px 120px rgba(9, 23, 18, .34),
        inset 0 1px 0 rgba(255,255,255,.92),
        inset 0 -1px 0 rgba(255,255,255,.28) !important;
    backdrop-filter: blur(30px) saturate(1.28) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.28) !important;
}

.call-modal {
    transform: translate(-50%, calc(-50% + 18px)) scale(.98) !important;
    transition: transform .28s ease, opacity .28s ease, visibility .28s ease !important;
}

.call-modal.active {
    transform: translate(-50%, -50%) scale(1) !important;
}

.call-modal::before,
.max-selection-modal::before {
    content: '' !important;
    position: absolute !important;
    inset: 1px 1px auto !important;
    height: 112px !important;
    border-radius: 32px 32px 46px 46px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,0)) !important;
    pointer-events: none !important;
}

.call-modal::after,
.max-selection-modal::after {
    content: '' !important;
    position: absolute !important;
    right: -54px !important;
    bottom: -72px !important;
    width: 190px !important;
    height: 190px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(35,107,72,.18), transparent 64%) !important;
    pointer-events: none !important;
}

.call-modal > :not(.call-modal-close),
.max-selection-modal > :not(.max-selection-close) {
    position: relative !important;
    z-index: 1 !important;
}

.call-modal .call-modal__header::before {
    content: '' !important;
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto 20px !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.46) !important;
    border: 1px solid rgba(255,255,255,.64) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 14px 28px rgba(35,107,72,.10) !important;
}

.call-modal.is-ringing:not(#successModal) .call-modal__header::before {
    animation: callIconPulse 2.45s ease-out .05s 1 both !important;
}

.call-modal .call-modal__header::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 15px !important;
    width: 22px !important;
    height: 22px !important;
    transform: none !important;
    translate: -50% 0 !important;
    rotate: 0deg;
    scale: 1;
    border: 0 !important;
    border-radius: 0 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23236B48' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.57 2.61a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.47-1.14a2 2 0 0 1 2.11-.45c.84.25 1.71.45 2.61.57A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.call-modal.is-ringing:not(#successModal) .call-modal__header::after {
    animation: callIconRing .82s cubic-bezier(.2, .8, .2, 1) .12s 1 both !important;
    background-color: #236B48 !important;
    background-image: none !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.57 2.61a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.47-1.14a2 2 0 0 1 2.11-.45c.84.25 1.71.45 2.61.57A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.57 2.61a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.47-1.14a2 2 0 0 1 2.11-.45c.84.25 1.71.45 2.61.57A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    transform-origin: 50% 50% !important;
}

@keyframes callIconRing {
    0% { rotate: 0deg; scale: 1; }
    18% { rotate: -12deg; scale: 1.05; }
    38% { rotate: 9deg; scale: 1.05; }
    58% { rotate: -5deg; scale: 1.03; }
    78% { rotate: 2deg; scale: 1.01; }
    100% { rotate: 0deg; scale: 1; }
}

@keyframes callIconPulse {
    0% {
        outline: 0 solid rgba(35,107,72,.28);
        filter: drop-shadow(0 0 0 rgba(35,107,72,0));
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.82),
            0 14px 28px rgba(35,107,72,.12),
            0 0 0 0 rgba(35,107,72,.28),
            0 0 0 0 rgba(35,107,72,.16),
            0 0 0 0 rgba(35,107,72,.08);
    }
    22% {
        outline: 26px solid rgba(35,107,72,.13);
        filter: drop-shadow(0 11px 18px rgba(35,107,72,.18));
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.82),
            0 18px 36px rgba(35,107,72,.16),
            0 0 0 26px rgba(35,107,72,.13),
            0 0 0 56px rgba(35,107,72,.066),
            0 0 0 86px rgba(35,107,72,.030);
    }
    56% {
        outline: 70px solid rgba(35,107,72,.042);
        filter: drop-shadow(0 12px 20px rgba(35,107,72,.16));
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.82),
            0 19px 38px rgba(35,107,72,.14),
            0 0 0 70px rgba(35,107,72,.042),
            0 0 0 112px rgba(35,107,72,.021),
            0 0 0 150px rgba(35,107,72,.010);
    }
    78% {
        outline: 96px solid rgba(35,107,72,.016);
        filter: drop-shadow(0 8px 14px rgba(35,107,72,.10));
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.82),
            0 17px 34px rgba(35,107,72,.12),
            0 0 0 96px rgba(35,107,72,.016),
            0 0 0 150px rgba(35,107,72,.008),
            0 0 0 190px rgba(35,107,72,.004);
    }
    100% {
        outline: 0 solid rgba(35,107,72,0);
        filter: drop-shadow(0 0 0 rgba(35,107,72,0));
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.82),
            0 14px 28px rgba(35,107,72,.10),
            0 0 0 120px rgba(35,107,72,0),
            0 0 0 180px rgba(35,107,72,0),
            0 0 0 220px rgba(35,107,72,0);
    }
}

#successModal .call-modal__header::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23236B48' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

@media (prefers-reduced-motion: reduce) {
    .call-modal.is-ringing:not(#successModal) .call-modal__header::before,
    .call-modal.is-ringing:not(#successModal) .call-modal__header::after {
        animation: none !important;
    }
}

.call-modal-close,
.max-selection-close {
    top: 16px !important;
    right: 16px !important;
    z-index: 2 !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255,255,255,.68) !important;
    background: rgba(255,255,255,.48) !important;
    color: rgba(21,35,29,.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.call-modal-close:hover,
.max-selection-close:hover {
    background: rgba(255,255,255,.72) !important;
    color: var(--accent-green) !important;
    transform: none !important;
}

.call-modal__header {
    margin-bottom: 26px !important;
    text-align: center !important;
}

.call-modal__header h3,
.max-selection-modal h3 {
    margin: 0 0 10px !important;
    color: #173228 !important;
    font-size: clamp(2rem, 5vw, 2.35rem) !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}

.call-modal__header p,
.max-selection-modal p {
    max-width: 340px !important;
    margin: 0 auto !important;
    color: rgba(23, 50, 40, .68) !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
}

.call-form {
    gap: 16px !important;
}

.form-input,
.max-selection-summary {
    border: 1px solid rgba(255,255,255,.78) !important;
    background: rgba(255,255,255,.36) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.64) !important;
}

.form-input {
    height: 58px !important;
    padding: 0 20px !important;
    border-radius: 18px !important;
}

.form-input:focus {
    background: rgba(255,255,255,.70) !important;
    border-color: rgba(35,107,72,.34) !important;
    box-shadow: 0 14px 32px rgba(35,107,72,.12), inset 0 1px 0 rgba(255,255,255,.84) !important;
}

.call-submit-btn,
.max-selection-link {
    min-height: 58px !important;
    border-radius: 17px !important;
    background: linear-gradient(180deg, #3f9b68, #21754d) !important;
    color: #fff !important;
    box-shadow: 0 16px 36px rgba(35,107,72,.24) !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
}

.call-submit-btn:hover,
.max-selection-link:hover {
    background: linear-gradient(180deg, #4aa873, #257d53) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 20px 42px rgba(35,107,72,.26) !important;
}

.max-selection-copy {
    min-height: 58px !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.42) !important;
    border: 1px solid rgba(255,255,255,.70) !important;
    color: #173228 !important;
}

.success-icon {
    display: none !important;
}

#successModal .call-modal__header {
    margin-bottom: 0 !important;
}

#successModal .call-submit-btn {
    margin-top: 24px !important;
}

@media (max-width: 520px) {
    .call-modal,
    .max-selection-modal {
        width: min(420px, calc(100vw - 24px)) !important;
        padding: 24px 20px !important;
        border-radius: 28px !important;
    }

    .call-modal__header h3,
    .max-selection-modal h3 {
        font-size: 1.72rem !important;
    }

    .call-modal__header p,
    .max-selection-modal p {
        font-size: .95rem !important;
    }
}

/* --- Similar catalog projects --- */
.similar-projects-section {
    margin-top: 150px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.similar-projects-section--search {
    margin-top: 120px;
    padding-top: 18px;
}

.similar-projects-section.active {
    opacity: 1;
    transform: translateY(0);
}

.similar-projects-glass {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    margin-bottom: 74px;
    padding: 24px 28px;
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 28px;
    background:
        linear-gradient(155deg, rgba(255,255,255,.78), rgba(255,255,255,.52) 48%, rgba(239,246,241,.48)),
        radial-gradient(circle at 12% 0%, rgba(255,255,255,.84), transparent 34%),
        radial-gradient(circle at 94% 10%, rgba(35,107,72,.13), transparent 32%);
    box-shadow:
        0 26px 80px rgba(9,23,18,.16),
        inset 0 1px 0 rgba(255,255,255,.90),
        inset 0 -1px 0 rgba(255,255,255,.24);
    backdrop-filter: blur(26px) saturate(1.18);
    -webkit-backdrop-filter: blur(26px) saturate(1.18);
}

.similar-projects-section--search .similar-projects-glass {
    margin-bottom: 64px;
}

.similar-projects-glass::before {
    content: '';
    position: absolute;
    inset: 1px 1px auto;
    height: 82px;
    border-radius: 27px 27px 38px 38px;
    background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,0));
    pointer-events: none;
}

.similar-projects-icon,
.similar-projects-count {
    position: relative;
    z-index: 1;
}

.similar-projects-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: var(--accent-green, #236b48);
    background: rgba(255,255,255,.46);
    border: 1px solid rgba(255,255,255,.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 14px 28px rgba(35,107,72,.10);
}

.similar-projects-icon svg {
    width: 24px;
    height: 24px;
}

.similar-projects-glass h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: #173228;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.similar-projects-glass p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 620px;
    color: rgba(23,50,40,.68);
    font-size: .98rem;
    line-height: 1.45;
}

.similar-projects-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: #176143;
    background: rgba(35,107,72,.12);
    border: 1px solid rgba(35,107,72,.10);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.similar-projects-count {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
}

.similar-projects-grid {
    margin-top: 0;
}

.similar-projects-grid.catalog-grid--single {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(280px, auto) !important;
}

.similar-projects-grid.catalog-grid--single .p-card,
.similar-projects-grid.catalog-grid--single .p-card--feature,
.similar-projects-grid.catalog-grid--single .p-card--wide {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

.similar-projects-grid.catalog-grid--single .p-card__img {
    aspect-ratio: 16 / 8;
}

.p-card--similar {
    background: rgba(255,255,255,.88);
    box-shadow: 0 18px 45px rgba(9,23,18,.08);
}

.p-card__social {
    display: block !important;
    pointer-events: none !important;
}

.p-card__social .p-like-count {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    flex: none !important;
    pointer-events: auto !important;
}

.p-card__social .p-card__action-group {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    flex: none !important;
    pointer-events: auto !important;
}

@media (max-width: 760px) {
    .similar-projects-section {
        margin-top: 96px;
    }

    .similar-projects-section--search {
        margin-top: 82px;
        padding-top: 8px;
    }

    .similar-projects-glass {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 20px;
        border-radius: 24px;
        margin-bottom: 52px;
    }

    .similar-projects-count {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* ============================================
   HOLZBAU SPA Page Transitions (Effect #13)
   ============================================ */

/* --- Page Transition Overlay --- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition-overlay.active {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Spinner within overlay */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(26, 36, 33, 0.08);
    border-top-color: var(--accent-green, #2B6D3C);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* --- Transition Toast --- */
.transition-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Скрыт за верхним краем экрана */
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(43, 109, 60, 0.2);
    border-radius: 30px;
    padding: 10px 24px;
    box-shadow: 0 8px 30px rgba(18, 28, 25, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Плавный выезд с пружиной */
}

/* Состояние показа тоста */
.transition-toast.show {
    transform: translateX(-50%) translateY(0); /* Спускается вниз */
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Global H1 Styling - Montserrat shimmer */
h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    opacity: 0;
    color: #1d2420;
    background:
        linear-gradient(
            90deg,
            #121C19 0%,
            #121C19 40%,
            #C08A4E 50%,
            #121C19 60%,
            #121C19 100%
        );
    background-size: 200% auto;
    background-position: 200% center;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: blur(13px);
    transform: translate3d(0, 22px, 0);
    animation:
        holzbau-title-reveal 1.4s cubic-bezier(.22, 1, .36, 1) forwards,
        holzbau-title-shimmer 8s linear 1.15s infinite !important;
    will-change: opacity, filter, transform, background-position;
}

h1 * {
    font-family: 'Montserrat', sans-serif !important;
    font-style: normal !important;
    font-weight: inherit !important;
}

@keyframes holzbau-title-reveal {
    from {
        opacity: 0;
        filter: blur(13px);
        transform: translate3d(0, 22px, 0);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes holzbau-title-shimmer {
    from { background-position: 200% center; }
    to { background-position: -200% center; }
}

@media (prefers-reduced-motion: reduce) {
    h1 {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        background: none !important;
        -webkit-text-fill-color: currentColor !important;
        color: #1d2420 !important;
        animation: none !important;
    }
}

/* Зеленый пульсирующий индикатор в тосте */
.transition-toast-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: toast-pulse 1.5s infinite;
}

@keyframes toast-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.transition-toast-text {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-main, #363636);
}

/* Global footer finish: dark HOLZBAU green gradient, shared across static pages. */
footer,
.site-footer {
    background:
        radial-gradient(circle at 78% 20%, rgba(19, 158, 89, .34), transparent 32vw),
        radial-gradient(circle at 16% 96%, rgba(123, 153, 91, .16), transparent 28vw),
        linear-gradient(135deg, #101513 0%, #071b12 42%, #164728 76%, #101513 100%) !important;
    color: #fff !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
}

footer::before,
footer::after,
.site-footer::before,
.site-footer::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

footer::before,
.site-footer::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.08) 52%, transparent 62%) !important;
    background-size: 24px 24px, 100% 100% !important;
    opacity: .54 !important;
}

footer::after,
.site-footer::after {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 44%),
        linear-gradient(90deg, rgba(0,0,0,.28), transparent 30%, transparent 70%, rgba(0,0,0,.34)) !important;
    opacity: .78 !important;
}

footer .container,
.site-footer .container {
    position: relative !important;
    z-index: 1 !important;
}

footer .footer-logo,
.site-footer .footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: fit-content !important;
    color: rgba(255,255,255,.88) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
}

footer .footer-logo::after,
.site-footer .footer-logo::after {
    content: "Holzbau" !important;
}

footer .footer-logo img,
.site-footer .footer-logo img {
    content: url("/favicon.svg") !important;
    width: 31px !important;
    height: 31px !important;
    max-width: 31px !important;
    min-width: 31px !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 9px !important;
    object-fit: contain !important;
    filter: none !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.18) !important;
}

footer .footer-lead,
footer .footer-about,
footer .footer-subscribe-text,
.site-footer .footer-lead,
.site-footer .footer-about,
.site-footer .footer-subscribe-text {
    color: rgba(255,255,255,.62) !important;
}

footer .footer-title,
.site-footer .footer-title {
    color: rgba(255,255,255,.52) !important;
}

footer .footer-link,
.site-footer .footer-link {
    color: rgba(255,255,255,.68) !important;
}

footer .footer-link:hover,
footer .footer-link:focus-visible,
.site-footer .footer-link:hover,
.site-footer .footer-link:focus-visible {
    color: #fff !important;
}

footer .footer-subscribe input,
.site-footer .footer-subscribe input {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #fff !important;
}

footer .footer-subscribe input::placeholder,
.site-footer .footer-subscribe input::placeholder {
    color: rgba(255,255,255,.55) !important;
}

footer .footer-subscribe input:focus-visible,
.site-footer .footer-subscribe input:focus-visible {
    outline: 3px solid rgba(255,255,255,.28) !important;
    outline-offset: 2px !important;
    border-color: rgba(255,255,255,.32) !important;
}

footer .footer-subscribe button,
footer .footer-subscribe .btn,
.site-footer .footer-subscribe button,
.site-footer .footer-subscribe .btn {
    background: rgba(43, 109, 60, .98) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.18) !important;
}

footer .footer-subscribe button:hover,
footer .footer-subscribe .btn:hover,
.site-footer .footer-subscribe button:hover,
.site-footer .footer-subscribe .btn:hover {
    background: #2f7a45 !important;
}

footer .footer-bottom,
.site-footer .footer-bottom {
    border-top-color: rgba(255,255,255,.14) !important;
    color: rgba(255,255,255,.42) !important;
}

footer .footer-bottom a,
footer .footer-bottom-links a,
footer .footer-bottom__links a,
.site-footer .footer-bottom a,
.site-footer .footer-bottom-links a,
.site-footer .footer-bottom__links a {
    color: inherit !important;
}

footer .footer-bottom a:hover,
footer .footer-bottom a:focus-visible,
footer .footer-bottom-links a:hover,
footer .footer-bottom-links a:focus-visible,
footer .footer-bottom__links a:hover,
footer .footer-bottom__links a:focus-visible,
.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus-visible,
.site-footer .footer-bottom-links a:hover,
.site-footer .footer-bottom-links a:focus-visible,
.site-footer .footer-bottom__links a:hover,
.site-footer .footer-bottom__links a:focus-visible {
    color: rgba(255,255,255,.86) !important;
}

footer .footer-grid,
.site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(240px, 1.5fr) !important;
    gap: 60px !important;
    align-items: start !important;
}

footer .footer-grid > *,
.site-footer .footer-grid > * {
    min-width: 0 !important;
}

footer .footer-grid p,
.site-footer .footer-grid p {
    max-width: 360px !important;
}

footer .footer-subscribe,
footer .footer-grid > div:last-child > div[style*="display: flex"],
.site-footer .footer-subscribe,
.site-footer .footer-grid > div:last-child > div[style*="display: flex"] {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

footer .footer-subscribe input,
footer .footer-grid > div:last-child input,
.site-footer .footer-subscribe input,
.site-footer .footer-grid > div:last-child input {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

footer .footer-subscribe button,
footer .footer-subscribe .btn,
footer .footer-grid > div:last-child button,
.site-footer .footer-subscribe button,
.site-footer .footer-subscribe .btn,
.site-footer .footer-grid > div:last-child button {
    flex: 0 0 auto !important;
    min-width: 82px !important;
    min-height: 52px !important;
}

footer .footer-bottom,
footer .container > .footer-grid + div,
.site-footer .footer-bottom,
.site-footer .container > .footer-grid + div {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

footer .footer-bottom-links,
footer .footer-bottom__links,
footer .container > .footer-grid + div > div:last-child,
.site-footer .footer-bottom-links,
.site-footer .footer-bottom__links,
.site-footer .container > .footer-grid + div > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 26px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

footer .footer-bottom a,
footer .container > .footer-grid + div a,
.site-footer .footer-bottom a,
.site-footer .container > .footer-grid + div a {
    overflow-wrap: anywhere !important;
}

@media (max-width: 1024px) {
    footer .footer-grid,
    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important;
        gap: 38px 48px !important;
    }

    footer .footer-grid > div:last-child,
    .site-footer .footer-grid > div:last-child {
        grid-column: 1 / -1 !important;
    }

    footer .footer-subscribe,
    footer .footer-grid > div:last-child > div[style*="display: flex"],
    .site-footer .footer-subscribe,
    .site-footer .footer-grid > div:last-child > div[style*="display: flex"] {
        max-width: 440px !important;
    }

    footer .footer-bottom,
    footer .container > .footer-grid + div,
    .site-footer .footer-bottom,
    .site-footer .container > .footer-grid + div {
        flex-direction: column !important;
    }
}

@media (max-width: 680px) {
    footer,
    .site-footer {
        padding: 52px 0 28px !important;
    }

    footer .footer-grid,
    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 32px !important;
        margin-bottom: 36px !important;
    }

    footer .footer-grid p,
    .site-footer .footer-grid p {
        max-width: 280px !important;
        margin-bottom: 0 !important;
    }

    footer .footer-subscribe,
    footer .footer-grid > div:last-child > div[style*="display: flex"],
    .site-footer .footer-subscribe,
    .site-footer .footer-grid > div:last-child > div[style*="display: flex"] {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    footer .footer-subscribe button,
    footer .footer-subscribe .btn,
    footer .footer-grid > div:last-child button,
    .site-footer .footer-subscribe button,
    .site-footer .footer-subscribe .btn,
    .site-footer .footer-grid > div:last-child button {
        width: 100% !important;
    }

    footer .footer-bottom,
    footer .container > .footer-grid + div,
    .site-footer .footer-bottom,
    .site-footer .container > .footer-grid + div {
        padding-top: 28px !important;
        font-size: .82rem !important;
        line-height: 1.55 !important;
    }

    footer .footer-bottom-links,
    footer .footer-bottom__links,
    footer .container > .footer-grid + div > div:last-child,
    .site-footer .footer-bottom-links,
    .site-footer .footer-bottom__links,
    .site-footer .container > .footer-grid + div > div:last-child {
        gap: 10px 18px !important;
    }
}

@media (forced-colors: active) {
    footer,
    .site-footer {
        border-top: 1px solid CanvasText !important;
    }
}

@media (max-width: 680px) {
    .breadcrumbs {
        overflow: hidden !important;
    }

    .breadcrumbs ul {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-width: 100% !important;
        padding-bottom: 2px !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .breadcrumbs ul::-webkit-scrollbar {
        display: none !important;
    }

    .breadcrumbs li {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }

    .breadcrumbs li::after {
        flex: 0 0 auto !important;
        margin-left: 8px !important;
        line-height: 1 !important;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        display: inline-block !important;
        white-space: nowrap !important;
    }

    .breadcrumbs li:last-child {
        max-width: min(75vw, 280px) !important;
    }

    .breadcrumbs li:last-child span,
    .breadcrumbs li:last-child a {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .page-header h1 {
        font-size: clamp(1.45rem, 5.8vw, 1.75rem) !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
}

@media (hover: none), (pointer: coarse) {
    .hb-inline-carousel-nav__btn,
    .hb-stories-controls .hb-inline-carousel-nav__btn,
    .sides-nav button,
    .sides-auto__toggle,
    .gallery-lightbox__close,
    .gallery-lightbox__nav,
    .autoplay-toggle {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .hb-inline-carousel-nav__btn:hover,
    .hb-inline-carousel-nav__btn:focus:not(:focus-visible),
    .hb-stories-controls .hb-inline-carousel-nav__btn:hover,
    .hb-stories-controls .hb-inline-carousel-nav__btn:focus:not(:focus-visible) {
        background: rgba(255, 255, 255, 0.94) !important;
        color: var(--accent-green) !important;
        border-color: rgba(43, 109, 60, 0.18) !important;
        box-shadow: 0 18px 46px rgba(18, 32, 51, 0.08) !important;
        transform: none !important;
    }

    .sides-nav button:hover,
    .sides-nav button:focus:not(:focus-visible) {
        background: #fff !important;
        color: #1f3444 !important;
        border-color: #d7e0e5 !important;
        transform: none !important;
    }

    .sides-auto__toggle:hover,
    .sides-auto__toggle:focus:not(:focus-visible),
    .autoplay-toggle:hover,
    .autoplay-toggle:focus:not(:focus-visible) {
        background: #f4f5f6 !important;
        color: #1d1d1f !important;
        transform: none !important;
    }

    .gallery-lightbox__close:hover,
    .gallery-lightbox__close:focus:not(:focus-visible),
    .gallery-lightbox__nav:hover,
    .gallery-lightbox__nav:focus:not(:focus-visible) {
        background: rgba(8, 18, 30, 0.52) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.28) !important;
        box-shadow: none !important;
    }

    .gallery-lightbox__close:hover,
    .gallery-lightbox__close:focus:not(:focus-visible) {
        transform: none !important;
    }

    .gallery-lightbox__nav:hover,
    .gallery-lightbox__nav:focus:not(:focus-visible) {
        transform: translateY(-50%) !important;
    }

    .hb-inline-carousel-nav__btn.is-pressing,
    .hb-stories-controls .hb-inline-carousel-nav__btn.is-pressing,
    .sides-nav button.is-pressing {
        transition-duration: .08s !important;
        background:
            radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.42), transparent 34%),
            linear-gradient(135deg, #3b8a50 0%, var(--accent-green) 52%, #20532e 100%) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.34) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.34),
            inset 0 -2px 4px rgba(10, 34, 20, 0.22),
            0 16px 34px rgba(43, 109, 60, 0.28) !important;
        transform: translateY(1px) scale(0.96) !important;
    }

    .sides-auto__toggle.is-pressing,
    .autoplay-toggle.is-pressing {
        transition-duration: .08s !important;
        background:
            radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.5), transparent 36%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 240, 235, 0.94)) !important;
        color: var(--accent-green) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.5),
            0 10px 22px rgba(43, 109, 60, 0.18) !important;
        transform: scale(0.94) !important;
    }

    .gallery-lightbox__close.is-pressing {
        transition-duration: .08s !important;
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 38%),
            rgba(255, 255, 255, 0.24) !important;
        border-color: rgba(255, 255, 255, 0.48) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.28),
            0 16px 32px rgba(0, 0, 0, 0.24) !important;
        transform: scale(0.94) !important;
    }

    .gallery-lightbox__nav.is-pressing {
        transition-duration: .08s !important;
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 38%),
            rgba(255, 255, 255, 0.24) !important;
        border-color: rgba(255, 255, 255, 0.48) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.28),
            0 16px 32px rgba(0, 0, 0, 0.24) !important;
        transform: translateY(-50%) scale(0.94) !important;
    }
}

@media (hover: none) and (max-width: 1024px), (pointer: coarse) and (max-width: 1024px) {
    .gallery-lightbox__nav:hover,
    .gallery-lightbox__nav:focus:not(:focus-visible) {
        background: rgba(4, 12, 20, 0.72) !important;
        border-color: rgba(255, 255, 255, 0.34) !important;
        transform: translateY(-50%) !important;
    }

    .gallery-lightbox__nav.is-pressing {
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 38%),
            rgba(255, 255, 255, 0.24) !important;
        border-color: rgba(255, 255, 255, 0.48) !important;
        transform: translateY(-50%) scale(0.94) !important;
    }
}

html.holzbau-touch-input .hb-inline-carousel-nav__btn,
html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn,
html.holzbau-touch-input .sides-nav button,
html.holzbau-touch-input .sides-auto__toggle,
html.holzbau-touch-input .gallery-lightbox__close,
html.holzbau-touch-input .gallery-lightbox__nav,
html.holzbau-touch-input .autoplay-toggle {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

html.holzbau-touch-input .hb-inline-carousel-nav__btn:hover,
html.holzbau-touch-input .hb-inline-carousel-nav__btn:focus:not(:focus-visible),
html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn:hover,
html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn:focus:not(:focus-visible) {
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--accent-green) !important;
    border-color: rgba(43, 109, 60, 0.18) !important;
    box-shadow: 0 18px 46px rgba(18, 32, 51, 0.08) !important;
    transform: none !important;
}

html.holzbau-touch-input .sides-nav button:hover,
html.holzbau-touch-input .sides-nav button:focus:not(:focus-visible) {
    background: #fff !important;
    color: #1f3444 !important;
    border-color: #d7e0e5 !important;
    transform: none !important;
}

html.holzbau-touch-input .sides-auto__toggle:hover,
html.holzbau-touch-input .sides-auto__toggle:focus:not(:focus-visible),
html.holzbau-touch-input .autoplay-toggle:hover,
html.holzbau-touch-input .autoplay-toggle:focus:not(:focus-visible) {
    background: #f4f5f6 !important;
    color: #1d1d1f !important;
    transform: none !important;
}

html.holzbau-touch-input .gallery-lightbox__close:hover,
html.holzbau-touch-input .gallery-lightbox__close:focus:not(:focus-visible),
html.holzbau-touch-input .gallery-lightbox__nav:hover,
html.holzbau-touch-input .gallery-lightbox__nav:focus:not(:focus-visible) {
    background: rgba(8, 18, 30, 0.52) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: none !important;
}

html.holzbau-touch-input .gallery-lightbox__close:hover,
html.holzbau-touch-input .gallery-lightbox__close:focus:not(:focus-visible) {
    transform: none !important;
}

html.holzbau-touch-input .gallery-lightbox__nav:hover,
html.holzbau-touch-input .gallery-lightbox__nav:focus:not(:focus-visible) {
    transform: translateY(-50%) !important;
}

html.holzbau-touch-input .hb-inline-carousel-nav__btn.is-pressing,
html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn.is-pressing,
html.holzbau-touch-input .sides-nav button.is-pressing {
    transition-duration: .08s !important;
    background:
        radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.42), transparent 34%),
        linear-gradient(135deg, #3b8a50 0%, var(--accent-green) 52%, #20532e 100%) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.34),
        inset 0 -2px 4px rgba(10, 34, 20, 0.22),
        0 16px 34px rgba(43, 109, 60, 0.28) !important;
    transform: translateY(1px) scale(0.96) !important;
}

html.holzbau-touch-input .sides-auto__toggle.is-pressing,
html.holzbau-touch-input .autoplay-toggle.is-pressing {
    transition-duration: .08s !important;
    background:
        radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.5), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 240, 235, 0.94)) !important;
    color: var(--accent-green) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        0 10px 22px rgba(43, 109, 60, 0.18) !important;
    transform: scale(0.94) !important;
}

html.holzbau-touch-input .gallery-lightbox__close.is-pressing {
    transition-duration: .08s !important;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 38%),
        rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.48) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.28),
        0 16px 32px rgba(0, 0, 0, 0.24) !important;
    transform: scale(0.94) !important;
}

html.holzbau-touch-input .gallery-lightbox__nav.is-pressing {
    transition-duration: .08s !important;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 38%),
        rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.48) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.28),
        0 16px 32px rgba(0, 0, 0, 0.24) !important;
    transform: translateY(-50%) scale(0.94) !important;
}

@media (max-width: 1024px) {
    html.holzbau-touch-input .gallery-lightbox__nav:hover,
    html.holzbau-touch-input .gallery-lightbox__nav:focus:not(:focus-visible) {
        background: rgba(4, 12, 20, 0.72) !important;
        border-color: rgba(255, 255, 255, 0.34) !important;
        transform: translateY(-50%) !important;
    }

    html.holzbau-touch-input .gallery-lightbox__nav.is-pressing {
        transition-duration: .08s !important;
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 38%),
            rgba(255, 255, 255, 0.24) !important;
        border-color: rgba(255, 255, 255, 0.48) !important;
        transform: translateY(-50%) scale(0.94) !important;
    }
}

:root {
    --hb-press-ease: cubic-bezier(.2, .8, .2, 1);
    --hb-release-ease: cubic-bezier(.16, 1, .3, 1);
}

.hb-inline-carousel-nav__btn,
.hb-stories-controls .hb-inline-carousel-nav__btn,
.sides-nav button,
.sides-auto__toggle,
.gallery-lightbox__close,
.gallery-lightbox__nav,
.autoplay-toggle,
html.holzbau-touch-input .hb-inline-carousel-nav__btn,
html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn,
html.holzbau-touch-input .sides-nav button,
html.holzbau-touch-input .sides-auto__toggle,
html.holzbau-touch-input .gallery-lightbox__close,
html.holzbau-touch-input .gallery-lightbox__nav,
html.holzbau-touch-input .autoplay-toggle {
    transition-property: background, color, border-color, box-shadow, transform, opacity !important;
    transition-duration: .24s !important;
    transition-timing-function: var(--hb-release-ease) !important;
    will-change: transform, background, box-shadow;
}

.hb-inline-carousel-nav__btn.is-pressing,
.hb-stories-controls .hb-inline-carousel-nav__btn.is-pressing,
.hb-inline-carousel-nav__btn.is-mouse-pressing,
.hb-stories-controls .hb-inline-carousel-nav__btn.is-mouse-pressing,
.sides-nav button.is-pressing,
.sides-nav button.is-mouse-pressing,
.sides-auto__toggle.is-pressing,
.sides-auto__toggle.is-mouse-pressing,
.gallery-lightbox__close.is-pressing,
.gallery-lightbox__close.is-mouse-pressing,
.gallery-lightbox__nav.is-pressing,
.gallery-lightbox__nav.is-mouse-pressing,
.autoplay-toggle.is-pressing,
.autoplay-toggle.is-mouse-pressing,
html.holzbau-touch-input .hb-inline-carousel-nav__btn.is-pressing,
html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn.is-pressing,
html.holzbau-touch-input .sides-nav button.is-pressing,
html.holzbau-touch-input .sides-auto__toggle.is-pressing,
html.holzbau-touch-input .gallery-lightbox__close.is-pressing,
html.holzbau-touch-input .gallery-lightbox__nav.is-pressing,
html.holzbau-touch-input .autoplay-toggle.is-pressing {
    transition-duration: .18s !important;
    transition-timing-function: var(--hb-press-ease) !important;
}

@media (hover: hover) and (pointer: fine) {
    .hb-inline-carousel-nav__btn:hover:not(:disabled),
    .hb-stories-controls .hb-inline-carousel-nav__btn:hover:not(:disabled),
    html.holzbau-touch-input .hb-inline-carousel-nav__btn:hover:not(:disabled),
    html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn:hover:not(:disabled) {
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 36%),
            linear-gradient(135deg, #347f49 0%, var(--accent-green) 54%, #1f542f 100%) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.34) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.26),
            0 20px 42px rgba(43, 109, 60, 0.24) !important;
        transform: translateY(-2px) scale(1.02) !important;
    }

    .hb-inline-carousel-nav__btn:active:not(:disabled),
    .hb-stories-controls .hb-inline-carousel-nav__btn:active:not(:disabled),
    .hb-inline-carousel-nav__btn.is-mouse-pressing:not(:disabled),
    .hb-stories-controls .hb-inline-carousel-nav__btn.is-mouse-pressing:not(:disabled),
    html.holzbau-touch-input .hb-inline-carousel-nav__btn:active:not(:disabled),
    html.holzbau-touch-input .hb-stories-controls .hb-inline-carousel-nav__btn:active:not(:disabled) {
        transition-duration: .14s !important;
        transform: translateY(0) scale(.96) !important;
        box-shadow:
            inset 0 2px 5px rgba(10, 34, 20, 0.24),
            0 12px 26px rgba(43, 109, 60, 0.18) !important;
    }

    .sides-nav button:hover:not(:disabled),
    html.holzbau-touch-input .sides-nav button:hover:not(:disabled) {
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.4), transparent 36%),
            linear-gradient(135deg, #347f49 0%, var(--accent-green) 55%, #1f542f 100%) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.38) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.28),
            0 18px 34px rgba(43, 109, 60, 0.24) !important;
        transform: translateY(-2px) scale(1.02) !important;
    }

    .sides-nav button:active:not(:disabled),
    .sides-nav button.is-mouse-pressing:not(:disabled),
    html.holzbau-touch-input .sides-nav button:active:not(:disabled) {
        transition-duration: .14s !important;
        transform: translateY(0) scale(.96) !important;
        box-shadow:
            inset 0 2px 5px rgba(10, 34, 20, 0.24),
            0 10px 22px rgba(43, 109, 60, 0.18) !important;
    }

    .sides-auto__toggle:hover:not(:disabled),
    .autoplay-toggle:hover:not(:disabled),
    html.holzbau-touch-input .sides-auto__toggle:hover:not(:disabled),
    html.holzbau-touch-input .autoplay-toggle:hover:not(:disabled) {
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.7), transparent 38%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 241, 236, 0.98)) !important;
        color: var(--accent-green) !important;
        border-color: rgba(43, 109, 60, 0.24) !important;
        box-shadow: 0 14px 30px rgba(43, 109, 60, 0.18) !important;
        transform: translateY(-1px) scale(1.03) !important;
    }

    .sides-auto__toggle:active:not(:disabled),
    .autoplay-toggle:active:not(:disabled),
    .sides-auto__toggle.is-mouse-pressing:not(:disabled),
    .autoplay-toggle.is-mouse-pressing:not(:disabled),
    html.holzbau-touch-input .sides-auto__toggle:active:not(:disabled),
    html.holzbau-touch-input .autoplay-toggle:active:not(:disabled) {
        transition-duration: .14s !important;
        transform: translateY(0) scale(.95) !important;
        box-shadow:
            inset 0 2px 5px rgba(43, 109, 60, 0.12),
            0 8px 18px rgba(43, 109, 60, 0.14) !important;
    }

    .gallery-lightbox__close:hover:not(:disabled),
    html.holzbau-touch-input .gallery-lightbox__close:hover:not(:disabled) {
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.3), transparent 40%),
            rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.46) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.2),
            0 18px 36px rgba(0, 0, 0, 0.28) !important;
        transform: scale(1.05) !important;
    }

    .gallery-lightbox__close:active:not(:disabled),
    .gallery-lightbox__close.is-mouse-pressing:not(:disabled),
    html.holzbau-touch-input .gallery-lightbox__close:active:not(:disabled) {
        transition-duration: .14s !important;
        transform: scale(.94) !important;
        box-shadow:
            inset 0 2px 5px rgba(0, 0, 0, 0.18),
            0 10px 22px rgba(0, 0, 0, 0.24) !important;
    }

    .gallery-lightbox__nav:hover:not(:disabled),
    html.holzbau-touch-input .gallery-lightbox__nav:hover:not(:disabled) {
        background:
            radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.32), transparent 40%),
            rgba(255, 255, 255, 0.22) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.22),
            0 18px 36px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }

    .gallery-lightbox__nav:active:not(:disabled),
    .gallery-lightbox__nav.is-mouse-pressing:not(:disabled),
    html.holzbau-touch-input .gallery-lightbox__nav:active:not(:disabled) {
        transition-duration: .14s !important;
        transform: translateY(-50%) scale(.94) !important;
        box-shadow:
            inset 0 2px 5px rgba(0, 0, 0, 0.18),
            0 10px 22px rgba(0, 0, 0, 0.24) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-inline-carousel-nav__btn,
    .hb-stories-controls .hb-inline-carousel-nav__btn,
    .sides-nav button,
    .sides-auto__toggle,
    .gallery-lightbox__close,
    .gallery-lightbox__nav,
    .autoplay-toggle {
        transition-duration: .01ms !important;
        transition-timing-function: linear !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   GLOBAL FIX — MUST BE LAST RULE IN FILE
   Disable backdrop-filter on ALL hidden overlays and modals.
   Yandex Browser / older Chromium applies backdrop-filter blur even
   when an overlay has opacity:0 + visibility:hidden, causing the
   entire page content to appear blurred during SPA transitions.
   This rule MUST come after all other rules to win the !important cascade.
   ════════════════════════════════════════════════════════════════════════ */
.max-selection-overlay:not(.active),
.max-selection-modal:not(.active),
.page-transition-overlay:not(.active),
.overlay:not(.active),
.call-modal-overlay:not(.active),
.call-modal:not(.active),
.favorites-flight-box:not(.is-visible),
.compare-flight-box:not(.is-visible),
#searchModal:not(.active),
#overlay:not(.active),
#callModal:not(.active),
#callModalOverlay:not(.active),
.mega-menu:not(.active) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
