:root {
    --te-primary: #DC2626;
    --te-primary-light: #FEF2F2;
    --te-text-main: #1F2937;
    --te-text-muted: #9CA3AF;
}
.te-header-top {
    background: #ffffff;
    padding-top: 15px;
    padding-bottom: 0;
    border: none;
    box-shadow: none;
}
.te-header-container {
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid #F3F4F6;
    padding: 0 24px 15px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.te-logo {
    flex-shrink: 0;
}
.te-logo a {
    display: block;
    text-decoration: none;
}
.te-logo img {
    height: 70px;
    width: auto;
    filter: none;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
}
.te-contacts {
    display: flex;
    align-items: center;
    gap: 70px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-35px);
}
.te-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    background: transparent;
    padding: 0;
    border: none;
    white-space: nowrap;
}
.te-contact-item:hover {
    transform: none;
}
.te-contact-icon {
    width: 47px;
    height: 47px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.te-contact-icon svg {
    /* size handles by SVG directly */
}
.te-contact-item:hover .te-contact-icon {
    transform: scale(1.05);
}
.te-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.te-contact-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: -0.56px;
    text-transform: uppercase;
}
.te-contact-phone,
.te-contact-email {
    font-size: 17px;
    font-weight: 800;
    color: var(--te-text-main);
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease;
}
.te-contact-item:hover .te-contact-phone,
.te-contact-item:hover .te-contact-email {
    color: var(--te-primary);
}

/* ������ "������ ��� ������������" */
.te-bvi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    background: transparent;
    flex-shrink: 0;
    margin: 0;
    transition: transform 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.te-bvi-btn:hover {
    transform: scale(1.05);
}
.te-bvi-btn svg {
    pointer-events: none;
}
@media (max-width: 1200px) {
    .te-contacts {
        gap: 30px;
        transform: none;
        margin-left: auto;
        margin-right: 0;
    }
    .te-contact-phone,
    .te-contact-email {
        font-size: 15px;
    }
    .te-contact-icon {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 900px) {
    .te-header-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-bottom: 20px;
    }
    .te-contacts {
        width: 100%;
        justify-content: center;
        margin: 0;
        flex-wrap: nowrap;
        gap: 20px;
    }
    .te-contact-label {
        display: none;
    }
    .te-contact-item {
        gap: 10px;
    }
}
.te-hamburger {
    display: none;
}
@media (max-width: 600px) {
    .te-header-top {
        border-top: none;
        padding-bottom: 0;
    }
    .te-header-container {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 15px;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
        position: relative;
    }
    /* BVI ������ �� ��������� */
    .te-bvi-btn {
        position: absolute;
        top: 8px;
        right: 12px;
        width: 44px;
        height: 44px;
        margin-left: 0;
    }
    .te-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: absolute;
        top: 8px;
        left: 12px;
        width: 44px;
        height: 44px;
        padding: 8px;
        background: transparent;
        border: 2px solid transparent;
        border-radius: 12px;
        cursor: pointer;
        z-index: 100;
        transition: transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        appearance: none;
        outline: none !important;
        user-select: none;
    }
    .te-hamburger:hover,
    .te-hamburger:focus,
    .te-hamburger:focus-visible {
        background: transparent;
        border-color: transparent;
        outline: none !important;
        box-shadow: none;
    }
    .te-hamburger:active {
        transform: scale(0.93);
    }
    .te-hamburger-line {
        display: block;
        width: 22px;
        height: 2.5px;
        background: #2B52B8;
        border-radius: 2px;
        transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1),
            opacity 0.25s ease,
            width 0.25s ease;
        transform-origin: center;
    }
    .te-hamburger.active .te-hamburger-line:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .te-hamburger.active .te-hamburger-line:nth-child(2) {
        opacity: 0;
        width: 0;
    }
    .te-hamburger.active .te-hamburger-line:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    .te-hamburger.active {
        background: transparent;
        border-color: transparent;
    }
    .te-hamburger.active .te-hamburger-line {
        background: #2B52B8;
    }
    .te-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .te-logo img {
        height: 90px;
    }
    .te-contacts {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
        padding-left: 20px;
    }
    .te-contact-phone,
    .te-contact-email {
        font-size: 14px;
    }
    .te-contact-label {
        display: block !important;
    }
    .te-contact-icon {
        width: 38px;
        height: 38px;
    }
    .te-contact-icon svg {
        width: 26px;
        height: 26px;
    }
    .te-icon-email svg {
        width: 18px;
        height: 18px;
    }
}
.te-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.te-menu-overlay.te-menu-open {
    opacity: 1;
    pointer-events: auto;
}
.te-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100%;
    background: #2B52B8;
    z-index: 9999;
    padding: 70px 20px 30px;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.te-mobile-menu.te-menu-open {
    transform: translateX(0);
}
.te-mobile-menu a,
.te-mobile-menu button,
.te-menu-close,
.te-menu-overlay {
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}
.te-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 300;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s, opacity 0.2s;
}
.te-menu-close:hover {
    background: transparent;
    transform: rotate(90deg) scale(1.1);
    opacity: 0.8;
}
.te-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.te-menu-list>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.te-menu-list>li:last-child {
    border-bottom: none;
}
.te-menu-list>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.te-menu-list>li>a:hover {
    color: rgba(255, 255, 255, 0.8);
}
.te-submenu-arrow {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 10px;
}
.te-has-submenu.te-open>a .te-submenu-arrow {
    transform: rotate(90deg);
    color: #ffffff;
}
.te-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.te-has-submenu.te-open>.te-submenu {
    max-height: 800px;
}
.te-submenu>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 3px 0;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.te-submenu>li>a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 18px;
}
.te-has-submenu-inner.te-open>a .te-submenu-arrow {
    transform: rotate(90deg);
    color: #ffffff;
}
.te-has-submenu-inner.te-open>a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
.te-submenu-inner {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.te-has-submenu-inner.te-open>.te-submenu-inner {
    max-height: 500px;
}
.te-submenu-inner>li>a {
    display: block;
    padding: 10px 14px 10px 28px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin: 3px 8px;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.te-submenu-inner>li>a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 32px;
}
