@font-face {
    font-family: 'Cygre';
    src: url('../../fonts/Cygre-Light.ttf');
}

@font-face {
    font-family: 'Space Grotesk Local';
    src: url('../../fonts/SpaceGrotesk-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Space Grotesk Local';
    src: url('../../fonts/SpaceGrotesk.ttf');
    font-weight: 400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk Local', 'Space Grotesk', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.header{
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 30;
    pointer-events: none;
}

.nav-shell{
    position: relative;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 92px;
    pointer-events: auto;
}

.nav{
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    min-height: 92px;
    padding: 14px 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    text-decoration: none;
    color: rgba(255,255,255,0.95);
}

.logo img {
    display: block;
    width: 94px;
    height: auto;
    object-fit: contain;
    transition: filter .28s ease, opacity .28s ease;
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 1px 12px rgba(0,0,0,0.28);
    transition: transform .28s ease, opacity .2s ease, top .28s ease, width .28s ease;
}

.nav-toggle span:nth-child(1) {
    top: 14px;
    width: 18px;
}

.nav-toggle span:nth-child(2) {
    top: 22px;
}

.nav-toggle span:nth-child(3) {
    top: 30px;
    width: 20px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 38px;
}

.menu-phone {
    display: none;
}

.menu a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 14px rgba(0,0,0,0.2);
    transition: opacity .3s ease, color .3s ease;
}

.menu a:hover,
.menu a.is-active {
    opacity: 0.9;
    color: #fff;
}

.phone {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 300;
    white-space: nowrap;
    text-shadow: 0 1px 14px rgba(0,0,0,0.2);
    transition: color .28s ease, opacity .28s ease;
}

.header.is-contrast-dark .logo img {
    filter: brightness(0) saturate(100%);
}

.header.is-contrast-dark .menu a,
.header.is-contrast-dark .phone {
    color: rgba(23,22,19,0.88);
    text-shadow: none;
}

.header.is-contrast-dark .menu a:hover,
.header.is-contrast-dark .menu a.is-active {
    color: rgba(23,22,19,0.98);
}

.header.is-contrast-dark .nav-toggle span {
    background: rgba(23,22,19,0.96);
    box-shadow: none;
}

.mist {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    background-repeat: no-repeat;
}

.mist-top {
    inset: -42px -56px auto;
    height: 154px;
    opacity: 0.92;
    background:
        radial-gradient(38% 92% at 14% 74%, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.22) 44%, rgba(255,255,255,0) 78%),
        radial-gradient(34% 88% at 50% 44%, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.28) 40%, rgba(255,255,255,0) 73%),
        radial-gradient(32% 84% at 86% 68%, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.18) 42%, rgba(255,255,255,0) 76%);
    filter: blur(22px);
    animation: mistDriftTop 14s ease-in-out infinite alternate;
}

.mist-top-secondary {
    inset: -18px 10% auto;
    height: 112px;
    opacity: 0.45;
    background:
        radial-gradient(28% 100% at 24% 38%, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.18) 42%, rgba(255,255,255,0) 76%),
        radial-gradient(24% 86% at 74% 52%, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.14) 40%, rgba(255,255,255,0) 74%);
    filter: blur(28px);
    animation: mistDriftSoft 18s ease-in-out infinite alternate;
}

@keyframes mistDriftTop{
    0%   { transform: translate3d(-1.5%, -4px, 0) scale(1); }
    100% { transform: translate3d(1.2%, 6px, 0) scale(1.03); }
}

@keyframes mistDriftSoft{
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-1.4%, 5px, 0) scale(1.04); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcc09c;
    color: #1a1a1a;
    padding: 19px 38px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    font-size: 13px;
    font-weight: 400;
    min-width: 276px;
    text-decoration: none;
    transition: transform .25s ease, opacity .25s ease, background .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    background: #e3c8a7;
}

@media (max-width: 1200px) {
    .nav-shell {
        width: min(100% - 36px, 1080px);
    }

    .nav {
        gap: 24px;
        padding: 14px 8px 0;
    }

    .menu {
        gap: 24px;
    }
}

@media (max-width: 980px) {
    .nav {
        justify-content: space-between;
        min-height: 92px;
        padding-top: 0;
    }

    .menu {
        position: fixed;
        inset: 0;
        display: grid;
        grid-template-columns: 1fr;
        align-content: center;
        justify-items: center;
        gap: 18px;
        padding: 120px 24px 34px;
        background:
            linear-gradient(180deg, rgba(10,10,10,0.94), rgba(18,18,18,0.92)),
            radial-gradient(circle at 50% 18%, rgba(255,255,255,0.08), transparent 24%);
        backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        transition: opacity .32s ease, transform .32s ease, visibility .32s ease;
        pointer-events: none;
        z-index: 2;
    }

    .menu a {
        display: block;
        width: 100%;
        max-width: 420px;
        font-size: 28px;
        line-height: 1.05;
        letter-spacing: -0.04em;
        text-align: center;
        text-transform: uppercase;
    }

    .menu-phone {
        display: inline-flex;
        margin-top: 12px;
        color: rgba(255,255,255,0.84);
        font-size: 18px;
        letter-spacing: 0;
        text-transform: none;
    }

    .phone {
        display: none;
    }

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

    body.menu-open .menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    body.menu-open .header.is-contrast-dark .menu a,
    body.menu-open .header.is-contrast-dark .menu-phone {
        color: rgba(255,255,255,0.92);
    }

    body.menu-open .header.is-contrast-dark .nav-toggle span {
        background: rgba(255,255,255,0.96);
        box-shadow: 0 1px 12px rgba(0,0,0,0.28);
    }

    body.menu-open .nav-toggle span:nth-child(1) {
        top: 22px;
        width: 24px;
        transform: rotate(45deg);
    }

    body.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .nav-toggle span:nth-child(3) {
        top: 22px;
        width: 24px;
        transform: rotate(-45deg);
    }
}

@media (max-width: 640px) {
    .header {
        top: 8px;
    }

    .nav-shell {
        width: calc(100% - 20px);
    }

    .nav {
        gap: 12px;
        min-height: 74px;
        padding: 6px 8px 0;
    }

    .logo {
        min-width: 88px;
    }

    .logo img {
        width: 76px;
    }

    .menu {
        gap: 14px;
        padding: 104px 20px 24px;
    }

    .menu a,
    .menu-phone {
        display: block;
        width: 100%;
        text-align: center;
    }

    .menu a {
        font-size: 22px;
    }

    .menu-phone {
        font-size: 16px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        min-width: 0;
    }

    .mist-top {
        inset: -24px -20px auto;
        height: 118px;
    }
}
