* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-nav: #111;
    --bg-panel: #1A1A1A;
    --border: #404040;
    --text: #9A9A9A;
    --mobile-text-description: #bebebe;
    --h1: #E3E3E3;
    --text-dim: #c7c7c7;
    --accent: #3da5ff;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);
    --dd-gap: 10px;
}

body {
    background-color: #191919;
}

.h1 {
    font-size: 64px;
    color: var(--h1);
    font-weight: 500;
}

.p {
    color: var(--text);
    font-size: 20px;
}

/* 
HEADER 
*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 18px 24px 18px 18px;
    background-color: #1A1A1A;
    border-radius: 60px;
    border: 2px solid #404040;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.header-logo {
    height: 33px;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header,
.header-nav {
    overflow: visible;
}

.header-nav__links {
    display: flex;
    gap: 46px;
}

.header-nav__links a,
.header-nav__links span {
    color: #B5B5B5;
    font-size: 17px;
    cursor: pointer;
    transition: color .2s ease;
}

.header-nav__links a:hover,
.header-nav__links span:hover {
    color: var(--accent);
}

/* 
DROPDOWN 
*/

.header-categories__dropdown {
    position: relative;
    align-items: center;
    gap: 6px;
}

.header-categories__dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: var(--dd-gap);
}

.header-categories__dropdown img {
    display: inline-block;
    width: 8px;
    height: 8px;
}

.dropdown-menu {
    position: absolute;
    display: block;
    top: calc(100% + var(--dd-gap));
    left: 0;
    min-width: 180px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(26, 26, 26, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.98);
    transform-origin: 10% 0%;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    will-change: opacity, transform;
}

.header-categories__dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #E6E6E6;
    font-weight: 400;
    transition: background .15s ease, color .15s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, .06);
    color: #3da5ff;
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: url("../icons/dropdown.svg") no-repeat center/contain;
    transition: transform .2s ease;
}

.header-categories__dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

/* 
BURGER 
*/

.burger {
    display: none;
    width: 32px;
    height: 32px;
    background: url("../icons/burger.png") no-repeat center/contain;
    border: none;
    cursor: pointer;
}

.burger.open {
    background: url("../icons/close.png") no-repeat center/contain;
}

@media (max-width: 1280px) {

    .h1 {
        font-size: 54px;
    }
}

@media (max-width: 940px) {

    body.menu-open {
        overflow: hidden;
    }

    .h1 {
        font-size: 44px;
    }

    .p {
        color: var(--mobile-text-description);
    }

    /* 
    HEADER 
    */

    .header {
        margin: 25px 20px 0 20px;
    }

    .header-categories__dropdown {
        position: relative;
        z-index: 20;
    }

    .header-categories__dropdown.open .dropdown-menu {
        display: block;
    }

    .header-nav__links.active {
        transform: translateX(0);
    }

    .header-nav__links a,
    .dd-btn {
        display: block;
        width: 100%;
        padding: 12px 6px;
        font-size: 18px;
        line-height: 1.2;
    }

    .header-nav__links a {
        display: block;
        width: 100%;
        padding: 12px 6px;
        font-size: 18px;
        line-height: 1.2;
    }


    .header-categories__dropdown .dropdown-menu {
        position: static;
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 6px 0 0 8px;
        transition: max-height .3s ease, opacity .25s ease;
    }

    .header-categories__dropdown.open .dropdown-menu {
        max-height: 500px;
        border: 1px solid rgba(255, 255, 255, .06);
        opacity: 1;
    }

    .header-categories__dropdown .dropdown-menu li a {
        display: block;
        padding: 12px 8px;
        font-size: 17px;
        font-weight: 500;
        color: var(--text);
        border-radius: 8px;
        transition: background .2s ease, color .2s ease;
    }

    /* 
    DROPDOWN 
    */

    .dropdown-menu {
        position: absolute;
        top: 110%;
        left: 0;
        min-width: 220px;
        background: var(--bg-panel);
        border-radius: 10px;
        box-shadow: var(--shadow);
        padding: 10px 0;
        z-index: 1000;
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 14px;
        color: var(--text);
        font-weight: 500;
    }

    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, .08);
        color: var(--accent);
    }

    /* 
    BURGER 
    */


    .burger {
        display: block;
        width: 32px;
        height: 32px;
        background: url("../icons/burger.png") no-repeat center/contain;
        border: none;
        z-index: 1001;
    }

    .burger.open {
        background: url("../icons/close.png") no-repeat center/contain;
    }

    .burger {
        display: block;
    }

    .header-nav__links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 320px;
        max-width: 90vw;
        background: var(--bg-panel);
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 80px 20px 24px;
        margin: 0;
        transform: translateX(100%);
        transition: transform .3s ease;
        box-shadow: var(--shadow);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}