/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    width: 95%;
    margin: 10px 2.5% 0;
    top: 5px;
}

.header.menu-open {
    border-radius: 100px 100px 0 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 80px;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    height: 50px;
    width: auto;
}

.navigation {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #262626;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--Green-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #07B361;
}

.nav-link.active::after {
    width: 100%;
    background-color: #07B361;
}

.callback-btn {
    background-color: var(--Green-main);
    color: var(--White-main);
    border: none;
    border-radius: 100px;
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.callback-btn:hover {
    background-color: var(--Grey-main);
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: #262626;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #262626;
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #262626;
}

/* Затемнение фона при открытом меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
