.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    height: 68px;
    display: flex;
    align-items: center;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.3); */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 32px;
    background: transparent;
}

.header-logo {
    font-size: 26px;
    display: none;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.01em;
    margin-right: 32px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1 1 auto;
}

.header-nav a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
    position: relative;
}
.header-nav a:hover,
.header-nav a:focus {
    color: var(--primary-color);
}

.header-nav a.nav-highlight {
    background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-nav a.nav-highlight:hover {
    background: linear-gradient(135deg, #e7e5e4 0%, #d6d3d1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: var(--text-color);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 32px;
}

.header-question {
    background: transparent;
    color: var(--text-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.01em;
    padding: 12px 28px;
    border: 2px solid var(--text-color);
    transition: background 0.18s, color 0.18s, border 0.18s;
    box-shadow: none;
    text-decoration: none;
    outline: none;
    display: inline-block;
    height: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-question:hover,
.header-question:focus,
.header-question:active {
    background: var(--text-color);
    color: #fff;
    border: 2px solid var(--text-color);
}

.header-cta {
    background: var(--text-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.01em;
    padding: 12px 28px;
    border: 2px solid var(--text-color);
    transition: background 0.18s, color 0.18s, border 0.18s;
    box-shadow: none;
    text-decoration: none;
    outline: none;
    display: inline-block;
    height: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-cta:hover,
.header-cta:focus,
.header-cta:active {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.header-burger {
    display: none;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    margin-left: 18px;
    padding: 0;
    position: relative;
    z-index: 102;
}
.header-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.header-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-burger.active span:nth-child(2) {
    opacity: 0;
}

.header-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 101;
    padding: 80px 32px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    display: block;
    z-index: 9999 !important;
    height: 100vh;
    margin-top: 59px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
    padding-top: 7px;
}

.mobile-nav a {
    color: #000;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
    text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--primary-color);
}

.mobile-nav a.nav-highlight {
    background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #000;
}

.mobile-nav a.nav-highlight:hover {
    background: linear-gradient(135deg, #e7e5e4 0%, #d6d3d1 100%);
    color: #000;
}

.mobile-cta {
    width: 100%;
    text-align: center;
    padding: 16px !important;
    font-size: 18px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 12px;
    margin-top: 16px;
}

.mobile-header-buttons {
    display: none;
}

@media (max-width: 900px) {
    .header-buttons {
        display: none;
    }
    .mobile-header-buttons {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mobile-header-question {
        background: transparent;
        color: var(--primary-color, #229ED9);
        border-radius: 10px;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.01em;
        padding: 10px 18px;
        border: 2px solid var(--primary-color, #229ED9);
        transition: background 0.18s, color 0.18s, border 0.18s;
        box-shadow: none;
        text-decoration: none;
        outline: none;
        display: inline-block;
        height: 40px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-header-question:hover,
    .mobile-header-question:focus,
    .mobile-header-question:active {
        background: var(--primary-color, #229ED9);
        color: #fff;
        border: 2px solid var(--primary-color, #229ED9);
    }
    .mobile-header-cta {
        background: var(--primary-color, #229ED9);
        color: #fff;
        border-radius: 10px;
        font-weight: 700;
        font-size: 15px;
        letter-spacing: 0.01em;
        padding: 10px 18px;
        border: 2px solid var(--primary-color, #229ED9);
        transition: background 0.18s, color 0.18s, border 0.18s;
        box-shadow: none;
        text-decoration: none;
        outline: none;
        display: inline-block;
        height: 40px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-header-cta:hover,
    .mobile-header-cta:focus,
    .mobile-header-cta:active {
        background: transparent;
        color: var(--primary-color, #229ED9);
        border: 2px solid var(--primary-color, #229ED9);
    }
}
@media (min-width: 901px) {
    .mobile-header-buttons {
        display: none !important;
    }
}

.main-header.menu-open {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
@media (max-width: 900px) {
  .main-header.menu-open {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  }
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
    .header-burger {
        display: flex;
    }
    .header-cta {
        display: none;
    }
    .mobile-menu {
        display: none;
    }
    .header-logo {
        font-size: 20px;
        margin-right: 12px;
    }
    .header-container {
        padding: 0 16px;
    }
    .mobile-menu.active {
        display: block;
    }
}

@media (max-width: 600px) {
    .main-header {
        height: 60px;
        /* background: rgba(255, 255, 255, 0.9); */
    }
    .header-container {
        height: 60px;
        padding: 0 12px;
    }
    .header-logo {
        font-size: 18px;
    }
    .header-burger {
        width: 32px;
        height: 32px;
        margin-left: 12px;
    }
    .header-burger span {
        width: 22px;
    }
    .mobile-menu {
        padding: 0px 20px 20px;
    }
    .mobile-nav {
        gap: 15px;
    }
    .mobile-nav a {
        font-size: 20px;
        padding: 6px 0;
    }
    .mobile-cta {
        padding: 14px !important;
        font-size: 16px !important;
    }
} 