@import url("main.css");

header {
    width: 100%;
    position: relative;
    background: #f5f5f5;
    color: #333;
    border-bottom: 3px solid var(--accent);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logotip .logo {
    text-transform: uppercase;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.logotip .logo:hover {
    opacity: 0.95;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

header nav li {
    display: inline-block;
}

header nav a {
    display: block;
    padding: 8px 14px;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

header nav a:hover {
    background: #ddd;
}

header nav a.active,
header nav a[aria-current="page"] {
    background: var(--accent);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.menu-toggle img {
    width: 2rem;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f5f5f5;
        border-bottom: 1px solid #ddd;
        z-index: 1000;
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav li {
        border-bottom: 1px solid #e0e0e0;
    }

    header nav a {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
