.header {
    background-color: var(--primary-dark);
    width: 100%;
}

.header > div {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 210px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.logo-img {
    height: 180px;
    width: auto;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo-text-large {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-yellow);
    white-space: nowrap;
    line-height: 1.2;
}

.logo-text-large span {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto; /* Прижимаем к правому краю */
}

.nav-links li {
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 16px 20px;
    display: inline-block;
    letter-spacing: 0.3px;
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
}

.nav-links a:hover {
    background: rgba(255, 239, 153, 0.15);
    color: #ffffff;
}

.nav-links a.active {
    background: rgba(255, 239, 153, 0.25);
    border-bottom: 2px solid var(--accent-yellow);
}

.contacts-bar {
    background: white;
    border-bottom: 1px solid #e2ede6;
    padding: 12px 0;
}

.contacts-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contacts-wrapper a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    padding: 6px 12px;
    border-radius: 30px;
}

.contacts-wrapper a:hover {
    color: #0f5437;
    background: #f0f6f2;
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .nav-links a {
        font-size: 1rem;
        padding: 14px 18px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        min-height: 160px;
        padding: 0 24px;
    }

    .logo-img {
        height: 140px;
        max-height: 140px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        padding: 20px 16px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .nav-links {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-links a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 780px) {
    .navbar {
        padding: 16px;
    }

    .logo-img {
        height: 120px;
        max-height: 120px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .contacts-wrapper {
        gap: 16px;
    }

    .contacts-wrapper a {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px;
    }

    .logo-img {
        height: 100px;
        max-height: 100px;
    }

    .logo-text-large {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .contacts-wrapper {
        gap: 8px;
    }

    .contacts-wrapper a {
        font-size: 0.75rem;
    }
}