.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    width: 100%;
    height: var(--header-height);
    border-bottom: 1px solid rgba(20, 21, 31, 0.055);
    background: rgba(250, 250, 252, 0.88);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 10px 34px rgba(30, 24, 76, 0.035);
    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);
}

.header-container {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    gap: 30px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    transition: opacity 180ms ease, transform 180ms ease;
}

.brand:hover {
    opacity: 0.78;
    transform: translateY(-1px);
}

.brand img {
    width: 205px;
    height: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid rgba(20, 21, 31, 0.055);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 8px 24px rgba(26, 21, 61, 0.025);
}

.main-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    color: #24252c;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.018em;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.main-navigation a::after {
    position: absolute;
    right: 17px;
    bottom: 6px;
    left: 17px;
    height: 1px;
    content: "";
    background: var(--purple);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 180ms ease, transform 180ms ease;
}

.main-navigation a:hover,
.main-navigation a.is-current {
    color: var(--purple);
    background: rgba(91, 55, 255, 0.055);
    box-shadow: 0 6px 18px rgba(91, 55, 255, 0.06);
    transform: translateY(-1px);
}

.main-navigation a:hover::after,
.main-navigation a.is-current::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-navigation__mobile-contact {
    display: none !important;
}

.dashboard-link {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 14px;
    min-width: 194px;
    height: 50px;
    padding: 0 22px;
    overflow: hidden;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: #0d0e15;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow:
        0 0 0 1px rgba(119, 88, 255, 0.12),
        0 0 16px rgba(101, 64, 255, 0.24),
        0 0 34px rgba(101, 64, 255, 0.13),
        0 13px 30px rgba(44, 28, 115, 0.22);
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.dashboard-link::before {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 250%;
    aspect-ratio: 1;
    content: "";
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 46deg,
            #633cff 78deg,
            #c4b4ff 101deg,
            #6ce8ff 119deg,
            transparent 151deg,
            transparent 238deg,
            #7650ff 278deg,
            #e0d7ff 307deg,
            transparent 340deg
        );
    transform: translate(-50%, -50%);
    animation: dashboard-border-spin 3.8s linear infinite;
    opacity: 1;
    transition: opacity 180ms ease;
}

.dashboard-link::after {
    position: absolute;
    z-index: 1;
    inset: 2px;
    content: "";
    border-radius: inherit;
    background:
        radial-gradient(circle at 75% 14%, rgba(136, 103, 255, 0.18), transparent 34%),
        linear-gradient(120deg, #08090e 0%, #13121c 40%, #1c1732 56%, #101119 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.dashboard-link span,
.dashboard-link svg {
    position: relative;
    z-index: 2;
}

.dashboard-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms ease;
}

.dashboard-link:hover,
.dashboard-link.is-current {
    box-shadow:
        0 0 0 1px rgba(155, 127, 255, 0.32),
        0 0 30px rgba(111, 72, 255, 0.58),
        0 0 62px rgba(111, 72, 255, 0.29),
        0 18px 40px rgba(44, 28, 115, 0.3);
    transform: translateY(-2px) scale(1.015);
}

.dashboard-link:hover::before,
.dashboard-link.is-current::before {
    animation-play-state: paused;
    opacity: 0;
}

.dashboard-link:hover svg {
    transform: translateX(4px);
}

.dashboard-link:active {
    transform: translateY(0) scale(0.99);
}

.menu-checkbox,
.menu-trigger {
    display: none;
}

@keyframes dashboard-border-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 1420px) {
    .header-container {
        grid-template-columns: minmax(185px, 1fr) auto 176px;
        gap: 18px;
    }

    .brand img {
        width: 184px;
    }

    .main-navigation a {
        padding: 0 10px;
        font-size: 11px;
    }

    .dashboard-link {
        min-width: 176px;
        padding: 0 17px;
        font-size: 12px;
    }
}

@media (max-width: 1100px) {
    .site-header {
        background: rgba(250, 250, 252, 0.95);
    }

    .header-container {
        display: flex;
        justify-content: space-between;
    }

    .brand img {
        width: 184px;
    }

    .menu-trigger {
        position: relative;
        z-index: 120;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        cursor: pointer;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 8px 22px rgba(25, 26, 37, 0.055);
    }

    .menu-trigger span {
        width: 18px;
        height: 1.5px;
        background: #111218;
        transition: transform 180ms ease;
    }

    .main-navigation {
        position: fixed;
        z-index: 110;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        width: min(420px, 92vw);
        height: 100svh;
        padding: 90px 38px;
        visibility: hidden;
        border: 0;
        border-radius: 0;
        background: rgba(249, 249, 252, 0.98);
        box-shadow: -30px 0 80px rgba(25, 26, 37, 0.09);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .main-navigation a {
        justify-content: flex-start;
        width: 100%;
        min-height: 54px;
        padding: 0 16px;
        font-size: 23px;
        border-radius: 12px;
    }

    .main-navigation a::after {
        right: auto;
        bottom: 8px;
        left: 16px;
        width: 42px;
    }

    .main-navigation__mobile-contact {
        display: inline-flex !important;
        margin-top: 14px;
        color: #ffffff !important;
        background: linear-gradient(135deg, #6845ff, #4823ed) !important;
    }

    .menu-checkbox:checked ~ .main-navigation {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .menu-checkbox:checked + .menu-trigger span:first-child {
        transform: translateY(3.75px) rotate(45deg);
    }

    .menu-checkbox:checked + .menu-trigger span:last-child {
        transform: translateY(-3.75px) rotate(-45deg);
    }

    .dashboard-link {
        display: none;
    }
}

@media (max-width: 620px) {
    .brand img {
        width: 160px;
    }

    .menu-trigger {
        width: 42px;
        height: 42px;
    }
}

