/* Header Styles - Navigation and Site Header */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a85e5;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

body #page.site {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

body .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #f3f3f3;
    border-top: 7px solid #0058a7;
    box-shadow: 0 1px 5px rgba(33, 33, 33, 0.46);
    transition: transform 0.5s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
    padding: 0 15px;
    gap: 36px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 240px;
    width: 240px;
    height: 59px;
}

.site-logo-image {
    display: block;
    width: 230px;
    height: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    width: 100%;
}

.primary-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70px;
}

.primary-menu-link {
    display: inline-flex;
    font-family: var(--soeteck-font-ui);
    align-items: center;
    min-height: 70px;
    color: #1f2933;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.primary-menu-link:hover,
.primary-menu-item:hover > .primary-menu-link,
.primary-menu-item:focus-within > .primary-menu-link {
    color: var(--soeteck-primary);
}

.submenu-toggle {
    display: inline-flex;
    font-family: var(--soeteck-font-ui);
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2933;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}

@media (min-width: 992px) {
    .primary-menu {
        align-items: flex-end;
        min-height: 70px;
    }

    .primary-menu-item {
        min-height: 0;
        padding-bottom: 25px;
    }

    .primary-menu-link {
        min-height: 0;
    }

    .submenu-toggle {
        height: 18px;
    }

    .has-megamenu:hover > .megamenu-panel,
    .has-megamenu:focus-within > .megamenu-panel,
    .has-megamenu.submenu-open > .megamenu-panel {
        display: block;
    }

    .megamenu-panel {
        display: none;
        position: fixed;
        top: 77px;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        border-top: 2px solid #1a85e5;
        box-shadow: 0 5px 10px rgba(33, 33, 33, 0.23);
    }

    .megamenu-inner {
        display: grid;
        grid-template-columns: repeat(4, minmax(180px, 1fr));
        gap: 36px;
        width: 80%;
        margin: 0 auto;
        padding: 20px 0;
    }

    .megamenu-column {
        min-width: 0;
    }

    .menu-products .megamenu-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: space-between;
    }

    .solutions-megamenu-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 376px;
        width: 78%;
        max-width: 1504px;
        min-height: 505px;
        margin: 0 auto;
        background: #fff;
    }

    .solutions-megamenu-main {
        padding: 28px 40px 56px 0;
    }

    .solutions-megamenu-title {
        margin: 0 0 38px;
        font-family: var(--soeteck-font-heading);
        padding-bottom: 20px;
        border-bottom: 1px solid #d8d8d8;
        color: #333;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .solutions-card-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 42px 40px;
    }

    .solutions-card {
        display: block;
        color: #1f2937;
        text-decoration: none;
    }

    .solutions-card-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 128px;
        margin-bottom: 14px;
        border-radius: 5px;
        background: linear-gradient(135deg, #e7fbff 0%, #d9ebff 100%);
        overflow: hidden;
    }

    .solutions-card-image img {
        display: block;
        max-width: 82%;
        max-height: 86%;
        object-fit: contain;
        transition: transform 220ms ease;
    }

    .solutions-card-title {
        display: block;
        font-family: var(--soeteck-font-heading);
        margin-bottom: 8px;
        color: #1f2937;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25;
        transition: color 180ms ease;
    }

    .solutions-card-description {
        display: block;
        font-family: var(--soeteck-font-body);
        color: #5f6b7a;
        font-size: 12px;
        line-height: 1.35;
    }

    .solutions-card:hover .solutions-card-image img {
        transform: scale(1.04);
    }

    .solutions-card:hover .solutions-card-title {
        color: #1a85e5;
    }

    .solutions-megamenu-sidebar {
        display: flex;
        flex-direction: column;
        min-height: 505px;
        padding: 28px 30px 30px;
        background: #f5f7fa;
    }

    .solutions-industry-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .solutions-industry-list li {
        color: #111827;
        font-size: 16px;
        line-height: 1.35;
    }

    .solutions-industry-list li + li {
        margin-top: 14px;
    }

    .solutions-custom-cta {
        margin-top: auto;
        padding: 21px 20px 23px;
        border-radius: 6px;
        background: #d7e9ff;
    }

    .solutions-custom-cta span {
        display: block;
        margin-bottom: 8px;
        color: #1f2937;
        font-size: 16px;
        line-height: 1.3;
    }

    .solutions-custom-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 39px;
        border-radius: 4px;
        background: #1f86e8;
        color: #fff;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        transition: background 180ms ease;
    }

    .solutions-custom-cta a:hover {
        background: #0067bd;
    }

    .news-megamenu-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
        width: 78%;
        max-width: 1504px;
        margin: 0 auto;
        padding: 30px 0 42px;
        background: #fff;
    }

    .news-megamenu-column {
        min-width: 0;
    }

    .news-megamenu-heading {
        display: flex;
        font-family: var(--soeteck-font-heading);
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
        color: #2f343b;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
        transition: color 180ms ease;
    }

    .news-megamenu-marker {
        display: inline-block;
        width: 14px;
        height: 14px;
        border-radius: 3px;
        background: #1a85e5;
    }

    .news-megamenu-heading:hover {
        color: #1a85e5;
    }

    .news-megamenu-subtitle {
        min-height: 24px;
        font-family: var(--soeteck-font-body);
        margin: 0 0 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #d7dce3;
        color: #64748b;
        font-size: 11px;
        font-weight: 400;
        font-style: italic;
        line-height: 1.25;
    }

    .news-featured-card,
    .news-featured-placeholder {
        display: block;
        color: #1f2937;
        text-decoration: none;
    }

    .news-featured-image {
        position: relative;
        display: block;
        width: 100%;
        height: 150px;
        margin-bottom: 14px;
        background: #f3f6fa;
        overflow: hidden;
    }

    .news-featured-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 220ms ease;
    }

    .news-date-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 78px;
        min-height: 20px;
        padding: 4px 6px;
        border-radius: 3px;
        background: rgba(26, 133, 229, 0.92);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .news-featured-image .news-date-badge {
        position: absolute;
        left: 10px;
        bottom: 10px;
    }

    .news-featured-title {
        display: -webkit-box;
        min-height: 40px;
        margin-bottom: 8px;
        color: #111827;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        transition: color 180ms ease;
    }

    .news-featured-excerpt,
    .news-featured-placeholder {
        display: -webkit-box;
        min-height: 34px;
        color: #6b7280;
        font-size: 12px;
        line-height: 1.4;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .news-featured-card:hover .news-featured-image img {
        transform: scale(1.04);
    }

    .news-featured-card:hover .news-featured-title {
        color: #1a85e5;
    }

    .news-latest-list {
        list-style: none;
        margin: 18px 0 0;
        padding: 14px 0 0;
        border-top: 1px solid #e5e7eb;
    }

    .news-latest-list li + li {
        margin-top: 10px;
    }

    .news-latest-list a {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        color: #4b5563;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.35;
        text-decoration: none;
        transition: color 180ms ease;
    }

    .news-latest-list a:hover {
        color: #1a85e5;
    }

    .megamenu-heading {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        color: #333;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
    }

    .megamenu-heading-icon {
        display: inline-flex;
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
    }

    .megamenu-heading-icon svg {
        display: block;
        width: 16px;
        height: 16px;
    }

    .megamenu-heading-text {
        position: relative;
        display: inline-block;
        transition: color 0.2s ease;
    }

    .megamenu-heading-text::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background-color: #1a85e5;
        transition: width 0.2s ease;
    }

    .megamenu-heading:hover .megamenu-heading-text {
        color: #1a85e5;
    }

    .megamenu-heading:hover .megamenu-heading-text::after {
        width: 100%;
    }

    .megamenu-list,
    .megamenu-sublist {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .megamenu-list > li + li {
        margin-top: 5px;
    }

    .megamenu-list a,
    .megamenu-sublist a {
        display: block;
        margin-left: 24px;
        color: #666;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.35;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .megamenu-list a:hover,
    .megamenu-sublist a:hover {
        color: var(--soeteck-primary);
    }

    .megamenu-sublist {
        margin-top: 7px;
        margin-left: 14px;
    }

    .megamenu-sublist > li + li {
        margin-top: 6px;
    }

    .megamenu-sublist a {
        color: #6b7280;
        font-size: 13px;
    }

    body .site-header .megamenu-panel {
        display: none;
        position: fixed;
        top: 77px;
        left: 0;
        right: 0;
        width: auto;
    }

    body .site-header .has-megamenu:hover > .megamenu-panel,
    body .site-header .has-megamenu:focus-within > .megamenu-panel,
    body .site-header .has-megamenu.submenu-open > .megamenu-panel {
        display: block;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 14px;
    margin-left: auto;
}

.header-dropdown {
    position: relative;
}

@media (min-width: 992px) {
    .header-dropdown {
        display: flex;
        align-items: center;
        min-height: 70px;
        margin: 0 -10px;
        padding: 0 10px;
    }

    .header-dropdown::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
    }

    .header-icon-button,
    .language-toggle {
        height: 70px;
    }

    .header-icon-button {
        width: 64px;
    }

    .language-toggle {
        padding: 0 10px;
    }
}

.header-icon-button,
.language-toggle {
    display: inline-flex;
    font-family: var(--soeteck-font-ui);
    align-items: center;
    justify-content: center;
    height: 30px;
    border: 0;
    background: transparent;
    color: #1f2933;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.header-dropdown:hover > .header-icon-button,
.header-dropdown:focus-within > .header-icon-button,
.header-dropdown.dropdown-open > .header-icon-button,
.header-dropdown:hover > .language-toggle,
.header-dropdown:focus-within > .language-toggle,
.header-dropdown.dropdown-open > .language-toggle {
    color: #1a85e5;
}

.header-icon-button {
    width: 55px;
    font-size: 28px;
    line-height: 1;
}

.language-toggle {
    gap: 6px;
    width: auto;
    padding: 0;
}

.globe-icon,
.search-icon {
    display: block;
    width: 22px;
    height: 22px;
    transition: filter 180ms ease;
}

.search-icon {
    width: 18px;
    height: 18px;
}

.language-panel img {
    width: 18px;
    height: 12px;
    object-fit: cover;
}

.header-dropdown:hover .globe-icon,
.header-dropdown:focus-within .globe-icon,
.header-dropdown.dropdown-open .globe-icon,
.header-dropdown:hover .search-icon,
.header-dropdown:focus-within .search-icon,
.header-dropdown.dropdown-open .search-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(91%) saturate(1476%) hue-rotate(184deg) brightness(94%) contrast(91%);
}

.dropdown-chevron {
    display: block;
    flex: 0 0 auto;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.has-megamenu:hover > .submenu-toggle .dropdown-chevron,
.has-megamenu:focus-within > .submenu-toggle .dropdown-chevron,
.has-megamenu.submenu-open > .submenu-toggle .dropdown-chevron,
.header-dropdown:hover .dropdown-chevron,
.header-dropdown:focus-within .dropdown-chevron,
.header-dropdown.dropdown-open .dropdown-chevron {
    transform: rotate(180deg);
}

.header-dropdown-panel {
    display: none;
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    z-index: 1001;
    width: auto;
    min-height: 120px;
    background: #fff;
    border-top: 2px solid #1a85e5;
    box-shadow: 0 5px 10px rgba(33, 33, 33, 0.23);
}

@media (min-width: 992px) {
    .header-dropdown:hover > .header-dropdown-panel,
    .header-dropdown:focus-within > .header-dropdown-panel,
    .header-dropdown.dropdown-open > .header-dropdown-panel {
        display: flex;
    }
}

@media (max-width: 991px) {
    .header-search > .header-dropdown-panel {
        display: none !important;
    }
}

.search-panel {
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.header-search-form {
    display: flex;
    width: 100%;
    max-width: 953px;
    height: 42px;
}

.header-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.header-search-form input[type="search"]:focus {
    border-color: #1a85e5;
    outline: none;
}

.header-search-form button {
    height: 42px;
    border: 0;
    border-radius: 4px;
    background: #1a85e5;
    color: #fff;
    padding: 10px 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.header-search-form button:hover {
    background: #0058a7;
}

.language-panel {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 120px;
    list-style: none;
    margin: 0;
    padding: 25px 20px;
}

.language-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.language-panel a:hover,
.language-panel a[aria-current="true"] {
    color: #1a85e5;
    border-color: #1a85e5;
    background: #f0f7ff;
}

.header-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 44px;
    border-radius: 4px;
    background: #1a85e5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.header-contact-button:hover {
    background: var(--soeteck-primary-dark);
    color: #fff;
}

/* Mobile menu overlay - hidden on desktop */
.mobile-menu-overlay {
    display: none;
}

.mobile-search-overlay {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1f2933;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

body .site-header {
    padding: 0;
}

body .site-header .header-inner {
    padding: 0 15px;
}

body .site-header .site-logo-link,
body .site-header .header-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .site-header .primary-menu {
    list-style: none;
    list-style-position: outside;
}

body .site-header .header-contact-button {
    width: 200px;
    height: 44px;
}

@media (max-width: 1400px) {
    .header-inner {
        gap: 24px;
    }

    .primary-menu {
        gap: 24px;
    }

    .header-contact-button {
        width: 160px;
    }

    .megamenu-inner {
        width: calc(100% - 160px);
    }
}

@media (max-width: 991px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .header-inner {
        position: relative;
        justify-content: space-between;
    }

    .site-logo-link {
        position: absolute;
        left: 50%;
        top: 50%;
        order: 2;
        transform: translate(-50%, -50%);
    }

    .header-actions {
        position: relative;
        z-index: 2;
        order: 3;
    }

    .header-search {
        display: flex;
    }

    .menu-toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        order: 1;
    }

    .menu-toggle.is-open .menu-toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.is-open .menu-toggle-line:nth-child(2) {
        opacity: 0;
        transform: scale(0.8);
    }

    .menu-toggle.is-open .menu-toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hide desktop nav on mobile */
    .main-navigation,
    #site-navigation {
        display: none !important;
    }

    /* Mobile overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), visibility 300ms cubic-bezier(0.4, 0, 0.2, 1);
        will-change: opacity, visibility;
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 400px;
        height: 100%;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        will-change: transform;
    }

    .mobile-menu-overlay.is-open .mobile-menu-sidebar {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        padding: 0 16px;
        height: 77px;
        background-color: #f3f3f3;
        border-top: 7px solid #0058a7;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 1px 5px rgba(33, 33, 33, 0.46);
        position: relative;
    }

    .mobile-menu-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
    }

    .mobile-menu-logo img {
        width: 140px;
        height: auto;
    }

    .mobile-menu-close {
        padding: 8px;
        cursor: pointer;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
    }

    .mobile-menu-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-nav {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu-item {
        border-bottom: 1px solid #e5e5e5;
    }

    .mobile-menu-toggle-item,
    .mobile-menu-link {
        display: flex;
        font-family: var(--soeteck-font-ui);
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
        min-height: 52px;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-parent-link,
    .mobile-menu-link {
        display: flex;
        align-items: center;
        flex: 1;
        min-height: 52px;
        padding: 16px;
        color: inherit;
        text-decoration: none;
    }

    .mobile-menu-toggle-button,
    .mobile-accordion-toggle-button {
        display: inline-flex;
        font-family: var(--soeteck-font-ui);
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        width: 48px;
        min-height: 48px;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-parent-link:active,
    .mobile-menu-link:active,
    .mobile-menu-toggle-button:active,
    .mobile-accordion-toggle-button:active {
        background-color: rgba(0, 0, 0, 0.05);
        transition: background-color 50ms ease;
    }

    .mobile-arrow {
        color: #666;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        transition: transform 240ms ease-out;
        transform-origin: center;
    }

    .mobile-menu-item.is-open .mobile-arrow {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 320ms ease-in-out;
        background-color: #f0f0f0;
        will-change: max-height;
    }

    .mobile-menu-item.is-open .mobile-submenu {
        max-height: 1400px;
    }

    .mobile-submenu-content {
        padding: 0;
    }

    .mobile-accordion-section {
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-accordion-section.mobile-has-nested {
        padding: 0;
    }

    .mobile-accordion-nested .mobile-accordion-section {
        border-bottom: 1px solid #d0d0d0;
    }

    .mobile-accordion-nested .mobile-accordion-nested .mobile-accordion-section {
        border-bottom: 1px solid #c0c0c0;
    }

    .mobile-accordion-nested .mobile-accordion-section:last-child {
        border-bottom: none;
    }

    .mobile-accordion-nested .mobile-accordion-nested .mobile-accordion-section:last-child {
        border-bottom: none;
    }

    .mobile-accordion-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-accordion-main-link {
        display: flex;
        align-items: center;
        flex: 1;
        min-height: 48px;
        padding: 14px 16px 14px 32px;
        font-size: 15px;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
    }

    .mobile-accordion-main-link:active {
        background-color: rgba(0, 0, 0, 0.05);
        transition: background-color 50ms ease;
    }

    .mobile-accordion-arrow {
        color: #888;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        transition: transform 240ms ease-out;
        transform-origin: center;
    }

    .mobile-accordion-section.is-open > .mobile-accordion-toggle .mobile-accordion-arrow {
        transform: rotate(180deg);
    }

    .mobile-accordion-nested .mobile-accordion-arrow {
        color: #999;
        width: 12px;
        height: 12px;
    }

    .mobile-accordion-nested .mobile-accordion-nested .mobile-accordion-arrow {
        color: #aaa;
        width: 10px;
        height: 10px;
    }

    .mobile-accordion-nested {
        max-height: 0;
        overflow: hidden;
        transition: max-height 320ms ease-in-out;
        background-color: #e0e0e0;
        will-change: max-height;
    }

    .mobile-accordion-section.is-open > .mobile-accordion-nested {
        max-height: 900px;
    }

    .mobile-accordion-nested .mobile-accordion-nested {
        background-color: #d0d0d0;
    }

    .mobile-accordion-sub-link {
        display: block;
        padding: 12px 16px 12px 48px;
        font-size: 14px;
        font-weight: 400;
        color: #444;
        text-decoration: none;
        border-bottom: 1px solid #d0d0d0;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-accordion-sub-link:active {
        background-color: rgba(0, 0, 0, 0.05);
        transition: background-color 50ms ease;
    }

    .mobile-accordion-nested .mobile-accordion-toggle .mobile-accordion-main-link {
        padding: 10px 16px 10px 48px;
        font-size: 14px;
        font-weight: 500;
    }

    .mobile-accordion-nested .mobile-accordion-toggle .mobile-accordion-arrow {
        width: 12px;
        height: 12px;
    }

    .mobile-accordion-toggle.mobile-accordion-toggle-link-style {
        min-height: 44px;
        border-bottom: 1px solid #d0d0d0;
    }

    .mobile-accordion-toggle.mobile-accordion-toggle-link-style .mobile-accordion-main-link {
        padding: 12px 16px 12px 48px;
        font-size: 14px;
        font-weight: 400;
        color: #444;
    }

    .mobile-accordion-nested .mobile-accordion-nested .mobile-accordion-sub-link {
        padding-left: 64px;
        border-bottom: 1px solid #c0c0c0;
    }

    .mobile-accordion-nested .mobile-accordion-nested .mobile-accordion-sub-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-footer {
        padding: 20px 16px;
        border-top: 1px solid #e5e5e5;
        background-color: #f5f5f5;
    }

    .mobile-lang-switcher {
        margin-bottom: 16px;
    }

    .mobile-lang-title {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #666;
        margin-bottom: 12px;
    }

    .mobile-lang-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mobile-lang-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px;
        background-color: #fff;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        color: #333;
        border: 1px solid #ddd;
        min-height: 44px;
    }

    .mobile-lang-option.active {
        background-color: #333;
        color: #fff;
        border-color: #333;
    }

    .mobile-contact-btn {
        display: block;
        width: 100%;
        text-align: center;
        background-color: #333;
        color: #fff;
        padding: 14px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        min-height: 48px;
        transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-contact-btn:active {
        transform: scale(0.98);
        transition: transform 80ms ease;
    }

    /* Mobile search overlay */
    .mobile-search-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), visibility 300ms cubic-bezier(0.4, 0, 0.2, 1);
        will-change: opacity, visibility;
    }

    .mobile-search-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-search-sidebar {
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 400px;
        height: 100%;
        background-color: #fff;
        transform: translateX(100%);
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        will-change: transform;
    }

    .mobile-search-overlay.is-open .mobile-search-sidebar {
        transform: translateX(0);
    }

    .mobile-search-title {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }

    .mobile-search-close {
        padding: 8px;
        cursor: pointer;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-search-content {
        flex: 1;
        padding: 20px 16px;
    }

    .mobile-search-form {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .mobile-search-input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        transition: border 0.3s ease;
    }

    .mobile-search-input:focus {
        border: 1px solid #1a85e5 !important;
        outline: none;
    }

    .mobile-search-submit {
        background: #1a85e5;
        color: white;
        border: none;
        padding: 12px;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }

    .mobile-search-submit:hover {
        background: #0058a7;
    }

    body .site-header .header-contact-button {
        display: none;
    }

    .language-navigation {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        position: relative;
        height: 70px;
        min-height: 70px;
        justify-content: space-between;
        gap: 12px;
    }

    .site-logo-link {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 180px;
        height: auto;
        flex-basis: 180px;
        transform: translate(-50%, -50%);
    }

    .site-logo-image {
        width: 180px;
    }

    .header-icon-button {
        width: 36px;
    }

    .search-panel {
        top: 77px;
        min-height: 120px;
        padding: 24px 12px;
    }

    .language-panel {
        top: 72px;
        min-height: 160px;
        flex-wrap: wrap;
        gap: 18px 26px;
        padding: 24px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle-item,
    .mobile-menu-link,
    .mobile-menu-close,
    .mobile-accordion-toggle,
    .mobile-accordion-sub-link,
    .mobile-arrow,
    .mobile-accordion-arrow,
    .mobile-submenu,
    .mobile-accordion-nested,
    .mobile-contact-btn {
        transition: none !important;
        animation: none !important;
    }

    .mobile-menu-toggle-item:active,
    .mobile-menu-link:active,
    .mobile-accordion-toggle:active {
        transform: none !important;
    }
}
