:root {
    --cm-navy-950: #061f32;
    --cm-navy-900: #092f49;
    --cm-navy-800: #123f5a;
    --cm-sea-600: #167f9f;
    --cm-sea-500: #2498ad;
    --cm-mint-500: #15918c;
    --cm-green-600: #4f8e55;
    --cm-sand-400: #e8b979;
    --cm-orange-500: #df8542;

    --cm-text: #183e55;
    --cm-muted: #71838e;
    --cm-soft: #f3f8f9;
    --cm-white: #ffffff;
    --cm-line: rgba(9, 47, 73, 0.11);

    --cm-radius-sm: 10px;
    --cm-radius-md: 15px;
    --cm-radius-lg: 23px;
    --cm-radius-xl: 32px;

    --cm-shadow-sm:
        0 9px 28px rgba(9, 47, 73, 0.07);

    --cm-shadow:
        0 24px 70px rgba(9, 47, 73, 0.13);

    --cm-ease:
        180ms cubic-bezier(.2, .8, .2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--cm-text);
    background: #ffffff;
    font-family: "Manrope", sans-serif;
}

body.cm-menu-open {
    overflow: hidden;
}

.cm-main-content {
    min-height: 65vh;
}

.cm-site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, 0.93);
    transition:
        border-color var(--cm-ease),
        box-shadow var(--cm-ease),
        background var(--cm-ease);
    backdrop-filter: blur(18px);
}

.cm-site-header.is-scrolled {
    border-color: var(--cm-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 34px rgba(9, 47, 73, 0.08);
}

.cm-header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cm-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.cm-brand img {
    display: block;
    width: auto;
    max-width: 168px;
    height: 48px;
    object-fit: contain;
}

.cm-main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.3vw, 34px);
}

.cm-main-nav > a {
    position: relative;
    color: #496778;
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
    transition: color var(--cm-ease);
}

.cm-main-nav > a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--cm-mint-500);
    content: "";
    transform: scaleX(0);
    transition: transform var(--cm-ease);
}

.cm-main-nav > a:hover {
    color: var(--cm-navy-900);
}

.cm-main-nav > a:hover::after {
    transform: scaleX(1);
}

.cm-main-nav .cm-nav-publish {
    padding: 10px 13px;
    border-radius: 11px;
    background: #edf7f6;
    color: #116f6b;
}

.cm-main-nav .cm-nav-publish::after {
    display: none;
}

.cm-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.cm-language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a0adb5;
    font-size: 0.67rem;
    font-weight: 800;
}

.cm-language-switch a {
    color: #91a0a9;
    text-decoration: none;
}

.cm-language-switch a.is-active {
    color: var(--cm-navy-900);
}

.cm-account-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--cm-line);
    border-radius: 13px;
    background: #ffffff;
    color: var(--cm-navy-900);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform var(--cm-ease),
        box-shadow var(--cm-ease);
}

.cm-account-link:hover {
    box-shadow: var(--cm-shadow-sm);
    transform: translateY(-1px);
}

.cm-account-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    background: #edf6f7;
    color: var(--cm-sea-600);
}

.cm-nav-toggle {
    display: none;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--cm-line);
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
}

.cm-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--cm-navy-900);
    transition:
        transform var(--cm-ease),
        opacity var(--cm-ease);
}

.cm-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.cm-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cm-mobile-nav {
    position: fixed;
    z-index: 990;
    inset: 78px 0 0;
    display: none;
    overflow-y: auto;
    padding: 24px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(105, 199, 213, 0.14),
            transparent 30%
        ),
        #ffffff;
}

.cm-mobile-nav.is-open {
    display: flex;
    flex-direction: column;
}

.cm-mobile-nav nav {
    display: flex;
    flex-direction: column;
}

.cm-mobile-nav nav a {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--cm-line);
    color: var(--cm-navy-900);
    font-size: clamp(1.35rem, 7vw, 2.2rem);
    font-weight: 750;
    text-decoration: none;
}

.cm-mobile-nav nav a span {
    color: var(--cm-orange-500);
    font-size: 0.65rem;
}

.cm-mobile-nav-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 30px;
}

.cm-mobile-nav-bottom a {
    color: var(--cm-sea-600);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.cm-mobile-nav-bottom > div {
    display: flex;
    gap: 13px;
}

.cm-site-footer {
    position: relative;
    overflow: hidden;
    padding: 78px 0 23px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(105, 199, 213, 0.13),
            transparent 28%
        ),
        var(--cm-navy-950);
    color: #ffffff;
}

.cm-site-footer::before {
    position: absolute;
    right: -220px;
    bottom: -320px;
    width: 630px;
    height: 630px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
}

.cm-footer-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr);
    gap: 90px;
}

.cm-footer-brand img {
    width: auto;
    max-width: 180px;
    height: 53px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cm-footer-brand p {
    max-width: 410px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
    line-height: 1.7;
}

.cm-footer-search {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.cm-footer-search span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.cm-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.cm-footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cm-footer-links h4 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 0.74rem;
}

.cm-footer-links a {
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.72rem;
    text-decoration: none;
    transition:
        color var(--cm-ease),
        transform var(--cm-ease);
}

.cm-footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.cm-footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 65px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.65rem;
}

.cm-footer-bottom > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cm-footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.cm-auto-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 650ms cubic-bezier(.2, .8, .2, 1),
        transform 650ms cubic-bezier(.2, .8, .2, 1);
}

.cm-auto-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .cm-main-nav {
        display: none;
    }

    .cm-nav-toggle {
        display: flex;
    }
}

@media (max-width: 720px) {
    .cm-header-inner {
        min-height: 70px;
    }

    .cm-brand img {
        height: 42px;
    }

    .cm-language-switch,
    .cm-account-link span:last-child {
        display: none;
    }

    .cm-mobile-nav {
        inset: 70px 0 0;
    }

    .cm-footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cm-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cm-footer-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cm-auto-reveal {
        opacity: 1;
        transform: none;
    }
}
