/* ===== NEW HEADER STYLES ===== */

.new-header-wrapper {
    position: relative;
}

.new-main-header {
    background: linear-gradient(180deg, #2aace0 0%, #42bde8 40%, #5ccbef 100%);
    padding: 12px 0 12px 0;
    position: relative;
    z-index: 5;
}
.new-header-strip {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
.new-header-white-bar {
    background: #fff;
    border-radius: 30px;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 12px 0 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    font-family: 'Nunito', sans-serif;
}

/* Search button */
.new-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe14d 0%, #ffd000 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255,208,0,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 2;
}
.new-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255,208,0,0.5);
}
.new-search-btn i {
    color: #fff;
    font-size: 18px;
}
.new-header-white-bar.search-open .new-search-btn {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    width: 0;
    padding: 0;
    margin: 0;
    transition: transform 0.25s, opacity 0.2s, width 0.3s;
}

/* Left section */
.new-left-section {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

/* Search bar */
.new-search-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.new-header-white-bar.search-open .new-search-bar {
    opacity: 1;
    visibility: visible;
}
.new-search-bar-input {
    flex: 1;
    height: 42px;
    border: 2px solid #0a8fd6;
    border-radius: 22px;
    padding: 0 18px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #333;
    outline: none;
    background: #f8fcff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.new-search-bar-input::placeholder {
    color: #aac8dd;
    font-weight: 600;
}
.new-search-bar-input:focus {
    border-color: #0a8fd6;
    box-shadow: 0 0 0 3px rgba(10,143,214,0.12);
    background: #fff;
}
.new-search-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f2f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.new-search-close-btn:hover {
    background: #e0e3e8;
    transform: scale(1.08);
}
.new-search-close-btn i {
    color: #666;
    font-size: 16px;
}

/* Left nav */
.new-nav-left {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 16px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.new-header-white-bar.search-open .new-nav-left {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
.new-nav-left a {
    color: #0a8fd6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.new-nav-left a:hover {
    background: #e8f6fd;
    color: #0778b5;
}
.new-nav-left a.active {
    background: #e8f6fd;
    color: #0778b5;
}
.new-nav-right a.active {
    background: #e8f6fd;
    color: #0778b5;
}

/* Nav dropdown (О компании → Руководство) */
.new-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.new-nav-dropdown-toggle {
    display: flex;
    align-items: center;
}
.new-nav-dropdown-toggle i {
    transition: transform 0.25s ease;
}
.new-nav-dropdown:hover .new-nav-dropdown-toggle i {
    transform: rotate(180deg);
}
.new-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 50;
}
.new-nav-dropdown:hover .new-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.new-nav-dropdown-menu a {
    display: block;
    padding: 9px 14px !important;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 700;
    color: #333 !important;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.new-nav-dropdown-menu a:hover {
    background: #e8f6fd !important;
    color: #0a8fd6 !important;
}

/* Logo + Cloud container */
.new-logo-container {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.new-logo-cloud {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.new-logo-cloud .cloud-bg {
    width: 208px;
    height: auto;
    filter: drop-shadow(0 3px 12px rgba(0,0,0,0.13));
    display: block;
}
.new-logo-cloud .logo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: auto;
    pointer-events: auto;
}
.new-logo-spacer {
    width: 220px;
    flex-shrink: 0;
}

/* Logo — fixed size, no shrink on scroll */

/* Right nav */
.new-nav-right {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
.new-nav-right a {
    color: #0a8fd6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.new-nav-right a:hover {
    background: #e8f6fd;
    color: #0778b5;
}

/* Location selector */
.new-location-wrapper {
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
}
.new-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ba0d8 0%, #19b5e5 100%);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: 'Nunito', sans-serif;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(11,160,216,0.4);
}
.new-location-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(11,160,216,0.5);
}
.new-location-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 8px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.new-location-wrapper.open .new-location-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.new-location-wrapper.open .new-location-btn {
    background: linear-gradient(135deg, #0990c5 0%, #10a5d5 100%);
}
.new-location-wrapper.open .new-chevron {
    transform: rotate(180deg);
}
.new-location-dropdown-title {
    padding: 8px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Nunito', sans-serif;
}
.new-location-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #333;
}
.new-location-dropdown-item:hover {
    background: #e8f6fd;
}
.new-location-dropdown-item.active {
    color: #0a8fd6;
    font-weight: 700;
    background: #f0f9ff;
}
.new-location-dropdown-item i {
    color: #0a8fd6;
    font-size: 14px;
    width: 18px;
    text-align: center;
}
.new-location-icon {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.new-location-icon i {
    color: #0a8fd6;
    font-size: 14px;
}
.new-location-text {
    display: none;
}
.new-location-text .city {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.new-location-text .sub {
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 600;
}
.new-location-btn .new-chevron {
    display: none;
}

/* Language Dropdown Switcher */
.lang-dropdown {
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
    z-index: 100;
}
.lang-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(10, 125, 194, 0.08);
    color: #0a7dc2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
    flex-shrink: 0;
}
.lang-dropdown-btn:hover {
    background: rgba(10, 125, 194, 0.15);
}
.lang-chevron {
    transition: transform 0.25s ease;
    width: 12px;
    height: 12px;
}
.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 101;
}
.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #5a6a7a;
    background: transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}
.lang-dropdown-menu a:hover {
    color: #0a7dc2;
    background: rgba(10, 125, 194, 0.08);
}
.lang-dropdown-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, #0a7dc2 0%, #0a8fd6 100%);
    box-shadow: 0 2px 8px rgba(10, 125, 194, 0.25);
    pointer-events: none;
}

/* Keep old class for backward compat on other pages */
.new-lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
    flex-shrink: 0;
    background: rgba(10, 125, 194, 0.08);
    border-radius: 22px;
    padding: 4px 4px;
}
.new-lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #5a6a7a;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.new-lang-switcher a:hover {
    color: #0a7dc2;
    background: rgba(10, 125, 194, 0.08);
}
.new-lang-switcher a.active {
    color: #fff;
    background: linear-gradient(135deg, #0a7dc2 0%, #0a8fd6 100%);
    box-shadow: 0 2px 8px rgba(10, 125, 194, 0.25);
    pointer-events: none;
}

/* ===== LARGE SCREENS — match .container scaling ===== */
@media (min-width: 1440px) {
    .new-header-strip {
        max-width: 1360px;
    }
}
@media (min-width: 1920px) {
    .new-header-strip {
        max-width: 1600px;
        padding: 0 40px;
    }
    .new-nav-left a, .new-nav-right a {
        font-size: 16px;
        padding: 8px 18px;
    }
    .new-header-white-bar {
        height: 60px;
        padding: 0 16px 0 8px;
    }
    .new-search-btn {
        width: 48px;
        height: 48px;
    }
    .new-lang-switcher a {
        min-width: 38px;
        height: 34px;
        font-size: 12.5px;
    }
    .new-logo-cloud .cloud-bg {
        width: 215px;
    }
    .new-logo-cloud .logo-img {
        width: 95px;
    }
    .new-logo-spacer {
        width: 250px;
    }
}
@media (min-width: 2560px) {
    .new-header-strip {
        max-width: 2000px;
        padding: 0 60px;
    }
    .new-main-header {
        padding: 16px 0 16px 0;
    }
    .new-nav-left a, .new-nav-right a {
        font-size: 18px;
        padding: 10px 22px;
    }
    .new-header-white-bar {
        height: 68px;
        border-radius: 34px;
        padding: 0 20px 0 10px;
    }
    .new-search-btn {
        width: 54px;
        height: 54px;
    }
    .new-search-btn i { font-size: 22px; }
    .new-lang-switcher a {
        min-width: 42px;
        height: 38px;
        font-size: 14px;
        padding: 0 10px;
    }
    .new-logo-cloud .cloud-bg {
        width: 380px;
    }
    .new-logo-cloud .logo-img {
        width: 155px;
    }
    .new-logo-spacer {
        width: 310px;
    }
    .new-location-text .city { font-size: 15px; }
    .new-location-text .sub { font-size: 12px; }
    .new-location-icon { width: 34px; height: 34px; }
}
@media (min-width: 3840px) {
    .new-header-strip {
        max-width: 2800px;
        padding: 0 80px;
    }
    .new-main-header {
        padding: 20px 0 20px 0;
    }
    .new-nav-left a, .new-nav-right a {
        font-size: 22px;
        padding: 12px 28px;
    }
    .new-header-white-bar {
        height: 80px;
        border-radius: 40px;
        padding: 0 24px 0 12px;
    }
    .new-search-btn {
        width: 64px;
        height: 64px;
    }
    .new-search-btn i { font-size: 26px; }
    .new-lang-switcher a {
        min-width: 48px;
        height: 44px;
        font-size: 16px;
        padding: 0 12px;
    }
    .new-logo-cloud .cloud-bg {
        width: 480px;
    }
    .new-logo-cloud .logo-img {
        width: 200px;
    }
    .new-logo-spacer {
        width: 400px;
    }
    .new-location-text .city { font-size: 18px; }
    .new-location-text .sub { font-size: 14px; }
    .new-location-icon { width: 40px; height: 40px; }
    .new-location-icon i { font-size: 18px; }
    .new-location-btn {
        padding: 8px 18px 8px 12px;
        border-radius: 28px;
    }
}

/* ===== SMALL SCREENS ===== */
@media (max-width: 1024px) {
    .new-nav-left a, .new-nav-right a {
        font-size: 13px;
        padding: 8px 10px;
    }
    .new-logo-cloud .cloud-bg {
        width: 190px;
    }
    .new-logo-cloud .logo-img {
        width: 95px;
    }
    .new-logo-spacer {
        width: 195px;
    }
}

@media (max-width: 768px) {
    .new-header-white-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        border-radius: 20px;
        gap: 8px;
        justify-content: center;
    }
    .new-logo-container {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
    }
    .new-logo-spacer {
        display: none;
    }
    .new-nav-left, .new-nav-right {
        gap: 0;
        margin-left: 0;
    }
    .new-nav-left a, .new-nav-right a {
        font-size: 12px;
        padding: 6px 8px;
    }
    .new-location-btn {
        margin-left: 0;
    }
    .new-lang-switcher {
        margin-left: 0;
    }
    .new-logo-cloud .cloud-bg {
        width: 160px;
    }
    .new-logo-cloud .logo-img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .new-nav-left a, .new-nav-right a {
        font-size: 11px;
        padding: 5px 6px;
    }
    .new-search-btn {
        width: 38px;
        height: 38px;
    }
    .new-search-btn i { font-size: 15px; }
    .new-lang-switcher {
        padding: 3px 3px;
        gap: 1px;
    }
    .new-lang-switcher a {
        min-width: 28px;
        height: 26px;
        font-size: 10px;
        padding: 0 5px;
    }
    .new-location-text .city { font-size: 11px; }
    .new-location-text .sub { font-size: 9px; }
    .new-location-icon { width: 24px; height: 24px; }
    .new-location-icon i { font-size: 12px; }
}
