/* ── layout helper ── */

.page-width {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── navbar ── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: #000000;
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(15, 15, 15, 0.4) 30%,
        rgba(39, 39, 39, 0.2) 60%,
        transparent 100%
    );
    pointer-events: none;
    transform: translateY(100%);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo img {
    width: clamp(80px, 8vw, 130px);
    height: auto;
}

.menu-toggle, .catalog-toggle {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    /*letter-spacing: 0.15em;*/
    cursor: pointer;
}

.menu-icon {
    display: grid;
    gap: 5px;
}

.menu-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
}

.nav-catalog {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    /*font-size: 0.85rem;*/
    /*letter-spacing: 0.12em;*/
}

.catalog-icon {
    font-size: 1.6rem;
    color: #fff;
}

.catalog-icon img {
    height: 1.4rem;
}

.catalog-label {
    margin-left: 5px;
}

.menu-toggle:hover, .catalog-toggle:hover,
.nav-catalog:hover {
    opacity: 0.7;
}

/* ── menu overlay ── */

.menu-overlay, .catalog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: circle(0% at 0 0);
    pointer-events: none;
    z-index: 90;
}

.menu-overlay.open, .catalog-overlay.open {
    pointer-events: auto;
}

.menu-content, .catalog-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.menu-item, .catalog-item {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.menu-item:hover, .catalog-item:hover {
    color: #ff0000;
}

/* ── footer ── */

.footer {
    background: #000000;
    padding: 2rem 0 2.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.footer-inner {
    text-align: center;
}

.footer-inner p + p,
.footer-inner div + div {
    margin-top: 0.3rem;
}

/* ── responsive (header / footer / layout) ── */

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }

    .page-width {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav-catalog {
        gap: 0;
    }
}

@media (max-width: 540px) {
    .navbar {
        height: 56px;
    }

    .menu-toggle, .catalog-toggle {
        font-size: 0.72rem;
        gap: 0.35rem;
    }

    .menu-icon span {
        width: 30px;
    }

    .nav-catalog {
        font-size: 0.72rem;
    }

    .footer {
        font-size: 0.82rem;
    }

    .menu-label {
        display: none;
    }

    .catalog-label {
        display: none;
    }

    .catalog-icon img {
        height: 1.6rem;
    }
}

@media (min-width: 1920px) {
    .navbar {
        height: 80px;
    }
}
