.elementor-1063 .elementor-element.elementor-element-272e6bf{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-ed9b92b *//* ===== Responsive Header Styles ===== */
.teng-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.teng-header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Logo Section */
.teng-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.teng-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.teng-logo-img {
    height: 50px;
    width: 90px;
    object-fit: contain;
    display: block;
}

/* Navigation Menu */
.teng-header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.teng-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
}

.teng-nav-menu li {
    margin: 0;
    padding: 0;
}

.teng-nav-menu a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.teng-nav-menu a:hover,
.teng-nav-menu .current-menu-item > a,
.teng-nav-menu .current_page_item > a {
    color: #111827;
}

/* Dropdown Submenu Styles */
.teng-nav-menu .menu-item-has-children {
    position: relative;
}

.teng-nav-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}

.teng-nav-menu .menu-item-has-children > a::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.teng-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    white-space: nowrap;
}

.teng-nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.teng-nav-menu .sub-menu li {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.teng-nav-menu .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    color: #6b7280;
    display: block;
    white-space: nowrap;
}

.teng-nav-menu .sub-menu a:hover {
    background: #f9fafb;
    color: #111827;
}

/* Repository Button */
.teng-header-actions {
    flex-shrink: 0;
}

.teng-repo-button {
    display: inline-block;
    padding: 10px 24px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.teng-repo-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.teng-repo-button:active {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.teng-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 7px;
    z-index: 1001;
    flex-shrink: 0;
    margin-left: 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.teng-mobile-toggle span {
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Tablet and smaller desktop - show burger when menu doesn't fit */
@media (max-width: 1200px) {
    .teng-header-container {
        padding: 0 30px;
    }

    .teng-header-nav {
        margin: 0 20px;
    }

    .teng-nav-menu {
        gap: 20px;
    }

    .teng-nav-menu a {
        font-size: 13px;
        padding: 8px 3px;
    }
}

/* Show burger menu when content doesn't fit */
@media (max-width: 1024px) {
    .teng-header-container {
        padding: 0 20px;
    }

    .teng-header-nav {
        margin: 0 15px;
    }

    .teng-nav-menu {
        gap: 15px;
    }

    .teng-nav-menu a {
        font-size: 13px;
        padding: 8px 2px;
    }
}

/* Mobile - always show burger */
@media (max-width: 992px) {
    .teng-mobile-toggle {
        display: flex !important;
    }

    .teng-header-nav {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 999;
        flex-direction: column;
    }

    .teng-header-nav.active {
        display: flex !important;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .teng-nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 15px 20px;
        align-items: stretch;
        width: 100%;
    }

    .teng-nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .teng-nav-menu li:last-child {
        border-bottom: none;
    }

    .teng-nav-menu > li > a {
        padding: 16px 0;
        font-size: 16px;
        color: #374151;
        font-weight: 600;
    }

    .teng-nav-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 30px;
    }

    .teng-nav-menu .menu-item-has-children > a::after {
        content: '▶';
        font-size: 12px;
        right: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .teng-nav-menu .menu-item-has-children.active > a::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .teng-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fafb;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-radius: 0;
        width: 100%;
    }

    .teng-nav-menu .menu-item-has-children.active > .sub-menu {
        max-height: 800px;
        padding: 8px 0;
    }

    .teng-nav-menu .sub-menu li {
        border-bottom: 1px solid #e5e7eb;
    }

    .teng-nav-menu .sub-menu a {
        padding: 14px 0 14px 20px;
        font-size: 15px;
        color: #6b7280;
        font-weight: 400;
    }
}

@media (max-width: 768px) {
    .teng-header-container {
        padding: 0 16px;
        height: 65px;
    }

    .teng-mobile-toggle {
        display: flex !important;
        order: 3;
    }

    .teng-header-logo {
        order: 1;
        flex-shrink: 0;
        max-width: 150px;
        overflow: hidden;
    }

    .teng-header-actions {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .teng-header-nav {
        top: 65px;
    }

    .teng-header-nav.active {
        max-height: calc(100vh - 65px);
    }

    .teng-repo-button {
        padding: 8px 16px;
        font-size: 11px;
    }

    .teng-logo-img {
        height: 45px;
    }

    /* Hamburger animation */
    .teng-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .teng-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .teng-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .teng-header-container {
        padding: 0 12px;
        height: 60px;
    }

    .teng-header-nav {
        top: 60px;
    }

    .teng-header-nav.active {
        max-height: calc(100vh - 60px);
    }

    .teng-logo-img {
        height: 40px;
    }

    .teng-repo-button {
        padding: 7px 12px;
        font-size: 10px;
    }

    .teng-nav-menu {
        padding: 12px 16px;
    }

    .teng-nav-menu > li > a {
        padding: 14px 0;
        font-size: 15px;
    }
}

/* На десктопе подменю должно быть видно */
@media (min-width: 993px) {
    .teng-header-nav {
        overflow: visible;
    }
}

/* На десктопе позволяем подменю выходить за пределы хедера */
@media (min-width: 993px) {
    .teng-header-container {
        overflow: visible;
    }

    .teng-nav-menu .sub-menu {
        z-index: 1100; /* на всякий случай поверх всего */
    }
}/* End custom CSS */