:root {
    --bg: #f7f9fc;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --text-soft: #475569;
    --line: rgba(5, 46, 96, 0.10);
    --teal: #1d4ed8;
    --teal-deep: #052e60;
    --shadow: 0 24px 54px rgba(5, 46, 96, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --container: min(1180px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(5, 46, 96, 0.10), transparent 38%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    color: var(--text);
    font-family: "Avenir Next", Avenir, "Segoe UI", "Manrope", system-ui, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.nav-inner,
.legal-shell,
.footer-shell,
.footer-bottom {
    width: var(--container);
    margin: 0 auto;
}

.site-nav {
    position: fixed;
    inset: 18px 0 auto;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.78);
    border: 1px solid rgba(20, 53, 54, 0.08);
    backdrop-filter: blur(22px);
    box-shadow: 0 10px 30px rgba(15, 61, 62, 0.08);
}

.nav-brand-image {
    width: clamp(170px, 16vw, 214px);
    height: auto;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(20, 53, 54, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--teal-deep);
    border-radius: 999px;
}

.nav-panel,
.nav-links,
.nav-actions,
.language-switcher {
    display: flex;
    align-items: center;
}

.nav-panel {
    gap: 18px;
}

.nav-links {
    gap: 18px;
}

.nav-links a,
.footer-links a,
.footer-legal a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 700;
}

.nav-links a:hover,
.footer-links a:hover,
.footer-legal a:hover,
.footer-social a:hover {
    color: var(--teal-deep);
}

.nav-actions {
    gap: 14px;
}

.language-switcher {
    padding: 4px;
    border-radius: 999px;
    background: rgba(20, 53, 54, 0.06);
    border: 1px solid rgba(20, 53, 54, 0.08);
}

.lang-button {
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.lang-button.is-active {
    background: #ffffff;
    color: var(--teal-deep);
    box-shadow: 0 8px 18px rgba(15, 61, 62, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
    color: #fffef9;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 61, 62, 0.18);
}

.legal-main {
    padding: 142px 0 78px;
}

.legal-shell {
    padding: 42px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.legal-shell h1,
.legal-shell h2,
.legal-shell h3 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
    color: var(--teal-deep);
}

.legal-shell h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    margin: 0 0 26px;
}

.legal-shell h2 {
    margin: 28px 0 12px;
    font-size: 1.6rem;
}

.legal-shell p,
.legal-shell li {
    color: var(--text-soft);
    line-height: 1.8;
}

.legal-shell a {
    color: var(--teal-deep);
}

.site-footer {
    padding: 0 0 32px;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 32px;
    border-radius: 34px;
    background: rgba(255, 250, 242, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.footer-brand-image {
    width: clamp(190px, 18vw, 240px);
}

.footer-desc {
    margin: 16px 0 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.footer-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-stat-strip span {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(20, 53, 54, 0.06);
    color: var(--teal-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.footer-column h4 {
    margin: 0 0 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(20, 53, 54, 0.06);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 6px 0;
}

.footer-copy,
.footer-legal a {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 1120px) {
    .footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .site-nav {
        inset: 12px 0 auto;
    }

    .nav-inner {
        padding: 12px 14px;
        border-radius: 24px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        display: grid;
        gap: 18px;
        padding: 18px;
        border-radius: 24px;
        background: rgba(255, 250, 243, 0.94);
        border: 1px solid rgba(20, 53, 54, 0.08);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-nav.is-open .nav-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links,
    .nav-actions {
        display: grid;
        gap: 12px;
    }

    .legal-main {
        padding-top: 120px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    :root {
        --container: min(1180px, calc(100vw - 24px));
    }

    .legal-shell,
    .footer-shell {
        padding: 24px;
    }

    .nav-brand-image {
        width: 164px;
    }
}
