.mobile-bottom-bar,
.mobile-menu {
    display: none;
}

.header-big-logo .logo-white { display: none; }
.header-big-logo .logo-black { display: block; }

#masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    transition: background 0.3s ease;
}

.header-big-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    overflow: hidden;
    opacity: 1;
    transition: padding 0.3s ease, opacity 0.3s ease;
}

.header-big-logo a {
    display: block;
    text-decoration: none;
}

.header-big-logo img {
    height: 180px;
    width: auto;
    display: block;
}

.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
    background: white;
}

.header-bar .menu-left {
    display: flex;
    align-items: center;
}

.header-bar .menu-left .menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-bar .menu-left .menu-item a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.header-bar .menu-left .menu-item a:hover {
    color: #FF0000;
}

.header-bar .menu-left .menu-item.current-menu-item a {
    color: #FF0000;
}

.header-small-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.header-small-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.header-bar .header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-bar .header-search {
    display: flex;
    align-items: center;
    position: relative;
}

.header-bar .header-search input {
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    outline: none;
    font-size: 16px;
    padding: 4px 0;
    width: 160px;
    color: #000;
    font-family: inherit;
}

.header-bar .header-search input::placeholder {
    color: #818181;
}

.header-bar .header-lang {
    font-size: 16px;
    color: #000;
    cursor: pointer;
    text-decoration: none;
}

.header-bar .header-lang:hover {
    color: #818181;
}

.search-hints {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 14px;
    z-index: 100;
    min-width: 200px;
    font-family: 'Geologica', sans-serif;
    font-size: 16px !important;
    line-height: 22px !important;
    color: #333;
}

.search-hints-row {
    display: block;
    padding: 4px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 16px !important;
    line-height: 22px !important;
}

.search-hints-row:hover {
    color: #FF0000;
}

.search-hints-row strong {
    color: #000;
    font-weight: 500;
    font-size: 16px !important;
    line-height: 22px !important;
}

.search-hints-row:hover strong {
    color: #FF0000;
}

#masthead.scrolled .header-big-logo {
    padding: 0;
    height: 0;
    opacity: 0;
}

#masthead.scrolled .header-small-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

#masthead.scrolled .header-bar {
    padding: 12px 40px;
}

.header-bar .clear {
    clear: both;
}

.header-bar .header-unit {
    font-size: 16px;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.header-bar .header-unit .unit-sep {
    margin: 0 3px;
    color: #000;
}

.header-bar .header-unit .unit-cm.active,
.header-bar .header-unit .unit-ft.active {
    color: #FF0000;
}

.header-bar .header-unit:hover .unit-cm:not(.active),
.header-bar .header-unit:hover .unit-ft:not(.active) {
    color: #818181;
}


@media (max-width: 768px) {

    body.has-hero #masthead {
        background: transparent;
    }

    body.has-hero #masthead.scrolled {
        background: white;
    }

    body.has-hero .header-big-logo .logo-black { display: none; }
    body.has-hero .header-big-logo .logo-white { display: block; }

    .header-big-logo {
        padding: 20px 0;
    }

    .header-big-logo img {
        width: 100%;
        max-width: 358px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .header-bar {
        display: none;
    }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: #fff;
        z-index: 900;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        border-top: 1px solid #eee;
        transition: transform 0.3s ease;
    }

    .mobile-bottom-bar.hidden {
        transform: translateY(100%);
    }

    .mobile-burger {
        background: transparent;
        border: none;
        padding: 0;
        width: 24px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .mobile-burger span {
        display: block;
        width: 100%;
        height: 1.5px;
        background: #000;
    }

    .mobile-center-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 26px;
        height: 32px;
    }

    .mobile-center-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .mobile-search-btn {
        background: transparent;
        border: none;
        padding: 0;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .mobile-search-btn svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 2000;
        flex-direction: column;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        padding: 0;
        color: #000;
        cursor: pointer;
        transition: color 0.3s ease;
        z-index: 2100;
    }

    .mobile-menu-close svg {
        width: 24px;
        height: 24px;
        display: block;
        pointer-events: none;
    }

    .mobile-menu-close:hover {
        color: #FF0000;
    }

    .mobile-menu-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 24px 40px;
        width: 100%;
    }

    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 60px;
    }

    .mobile-menu-nav a {
        font-family: 'Geologica', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 21px;
        text-align: center;
        letter-spacing: 0;
        color: #000;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .mobile-menu-nav a:hover {
        color: #FF0000;
    }

    .mobile-search-block {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        position: relative;
    }

    .mobile-search-block input {
        width: 100%;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #000;
        background: transparent;
        font-family: 'Geologica', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 18px;
        text-align: center;
        letter-spacing: 0;
        color: #000;
        outline: none;
    }

    .mobile-search-block input::placeholder {
        color: #818181;
    }

    .mobile-search-hints {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 0 20px;
        display: none;
    }

    .mobile-search-hints.visible {
        display: block;
    }

    .mobile-search-hints a {
        display: block;
        font-family: 'Geologica', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 21px;
        text-align: center;
        letter-spacing: 0;
        color: #000;
        text-decoration: none;
        padding: 6px 0;
        transition: color 0.2s ease;
    }

    .mobile-search-hints a:hover {
        color: #FF0000;
    }

        .mobile-unit-toggle {
        display: inline-flex;
        align-items: center;
        font-family: 'Geologica', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 21px;
        color: #000;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-top: 40px;
    }

    .mobile-unit-toggle .unit-sep {
        margin: 0 3px;
    }

    .mobile-unit-toggle .unit-cm.active,
    .mobile-unit-toggle .unit-ft.active {
        color: #FF0000;
    }
}