:root {
    --header-height: 80px;

    --header-bg: #041a23;
    --header-bg-deep: #03141b;
    --header-border: rgba(255, 255, 255, 0.12);
    --header-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);

    --text-main: #eaf7f8;
    --text-muted: rgba(234, 247, 248, 0.72);

    --brand-main: #11c6c0;
    --brand-hover: #2ddbd5;
    --brand-soft: rgba(17, 198, 192, 0.12);
    --brand-soft-hover: rgba(17, 198, 192, 0.2);

    --button-text: #03141b;
    --white: #ffffff;
}

html {
    scroll-padding-top: var(--header-height);
}

body {
    padding-top: var(--header-height);
}

.site-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--header-bg);
}

.site-header {
    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
}

.site-nav {
    position: relative;
    width: 100%;
}

.site-header__container {
    width: min(100% - 32px, 1180px);
    height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-logo:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.site-logo__mark {
    width: 34px;
    height: 34px;
    display: inline-block;
    position: relative;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-main), var(--brand-hover));
    transform: rotate(45deg);
    box-shadow: 0 8px 18px rgba(17, 198, 192, 0.28);
}

.site-logo__mark::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--header-bg-deep);
    opacity: 0.95;
}

.site-logo__text {
    color: var(--white);
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* DESKTOP NAV */
.site-nav__links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--brand-main);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-nav__link:hover {
    color: var(--brand-main);
}

.site-nav__link:hover::after {
    transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
    color: var(--brand-main);
}

.site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

/* CONTACT BUTTON */
.site-nav__link--contact {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--brand-main);
    background: var(--brand-soft);
}

.site-nav__link--contact::after,
.site-nav__link--cta::after {
    display: none;
}

.site-nav__link--contact:hover {
    color: var(--brand-hover);
    background: var(--brand-soft-hover);
}

/* CTA BUTTON */
.site-nav__link--cta {
    padding: 11px 18px;
    border-radius: 999px;
    color: var(--button-text);
    background: var(--brand-main);
    box-shadow: 0 10px 22px rgba(17, 198, 192, 0.24);
}

.site-nav__link--cta:hover {
    color: var(--button-text);
    background: var(--brand-hover);
}

/* MOBILE BUTTON */
.mobile-menu-button {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--brand-soft);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--brand-main);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button:hover {
    background: var(--brand-soft-hover);
}

.mobile-menu-button.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.28);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu__inner {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__link:hover {
    color: var(--brand-main);
    background: var(--brand-soft);
}

.mobile-menu__link--contact {
    color: var(--brand-main);
    background: var(--brand-soft);
}

.mobile-menu__link--contact:hover {
    color: var(--brand-hover);
    background: var(--brand-soft-hover);
}

.mobile-menu__link--cta {
    justify-content: center;
    margin-top: 6px;
    color: var(--button-text);
    background: var(--brand-main);
}

.mobile-menu__link--cta:hover {
    color: var(--button-text);
    background: var(--brand-hover);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .site-nav__links {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }
}

@media (max-width: 520px) {
    :root {
        --header-height: 72px;
    }

    .site-header__container {
        width: min(100% - 24px, 1180px);
    }

    .site-logo__mark {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .site-logo__text {
        font-size: 18px;
    }

    .mobile-menu__inner {
        width: min(100% - 24px, 1180px);
    }
}