/* ============================================================
   SENSORICA — NEW FIXED HEADER
   ============================================================ */

html {
    scroll-padding-top: calc(var(--sf-header-h, 78px) + 20px);
}

:root {
    --sf-header-h: 78px;
}

body {
    padding-top: var(--sf-header-h);
}

.th-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
    height: var(--sf-header-h);
    background: linear-gradient(180deg, rgba(74, 73, 81, .97) 0%, rgba(74, 73, 81, .88) 100%);
    border-bottom: 1px solid rgba(251, 237, 190, .1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: background-color .3s ease, box-shadow .3s ease;
}

.th-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    height: 2px;
    background: var(--sf-primary);
    pointer-events: none;
    -webkit-transform: scaleX(var(--scroll-progress, 0));
    transform: scaleX(var(--scroll-progress, 0));
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    opacity: .9;
}

.th-header > .container,
.th-header .menu-area,
.th-header .sticky-wrapper,
.th-header .sticky-wrapper > .container,
.th-header .sticky-wrapper > .container > .row {
    height: 100%;
}

.th-header .menu-area,
.th-header .sticky-wrapper,
.th-header .sticky-wrapper.sticky {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-animation: none !important;
    animation: none !important;
}

.th-header .sticky-wrapper > .container {
    display: flex;
    align-items: center;
}

.th-header .sticky-wrapper > .container > .row {
    width: 100%;
    margin: 0;
}

.th-header .header-logo img {
    width: 220px;
    height: auto;
    max-height: 42px;
    transition: width .25s ease;
}

.th-header .main-menu > ul > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
}

.th-header .header-button .th-btn,
.th-header .header-button .th-btn.header-login-btn {
    padding: 12px 20px !important;
    min-height: 46px;
}

.th-header .header-button .th-btn.header-login-btn {
    padding: 12px 18px !important;
}

.th-header .header-button .icon-btn {
    width: 46px;
    height: 46px;
}

.th-header .header-button .th-menu-toggle {
    width: 46px;
    height: 46px;
}

@media (max-width: 1199px) {
    :root {
        --sf-header-h: 72px;
    }

    .th-header .header-logo img {
        width: 200px;
    }
}

@media (max-width: 767px) {
    :root {
        --sf-header-h: 66px;
    }

    .th-header .header-logo img {
        width: 175px;
        max-height: 38px;
    }

    .th-header .header-button .th-menu-toggle {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 359px) {
    :root {
        --sf-header-h: 60px;
    }

    .th-header .header-logo img {
        width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-header,
    .th-header::after,
    .th-header .header-logo img {
        transition: none;
    }
}

/* Убираем иконку, появляющуюся при наведении в выпадающем меню */
.main-menu ul.sub-menu li a:before {
    content: none !important;
    display: none !important;
}

.main-menu ul.sub-menu li a:hover {
    padding-left: 0;
}

/* Центрирование иконок в круглых кнопках шапки */
@media (min-width: 768px) {
    .th-header .header-button .icon-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }
}

@media (max-width: 1199.98px) {
    .th-header .header-button .th-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }
}

.th-header .header-button .icon-btn img {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Header must be one uniform bar: remove the inner menu-area tint */
.th-header.header-layout1.style2 .menu-area {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
