:root {
    --bg: #f4efe7;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #fffdf9;
    --navy: #14213d;
    --muted: #756f66;
    --accent: #b75f3c;
    --accent-dark: #8f452c;
    --line: #d9dce3;
    --shadow: 0 18px 50px rgba(20, 33, 61, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--navy);
    background:
        radial-gradient(circle at 12% 10%, rgba(183, 95, 60, 0.08), transparent 30%),
        radial-gradient(circle at 90% 18%, rgba(20, 33, 61, 0.06), transparent 28%),
        var(--bg);
    font-family: "Manrope", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    width: min(1480px, calc(100% - 28px));
    min-height: calc(100vh - 28px);
    margin: 14px auto;
    padding: 24px;
    border: 1px solid rgba(20, 33, 61, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 246, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 620px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 15px;
    background: var(--navy);
    color: white;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-size: 15px;
    line-height: 1.25;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

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

.language-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-solid);
    font: inherit;
    cursor: pointer;
}

.language-switch span {
    min-width: 36px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.language-switch .is-active {
    background: var(--navy);
    color: white;
}

.login-button {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(410px, .88fr);
    gap: 28px;
    align-items: stretch;
}

.hero-main,
.hero-aside {
    min-width: 0;
}

.hero-main {
    padding: clamp(18px, 3vw, 42px) clamp(4px, 2vw, 18px) 10px 0;
}

.eyebrow,
.action-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.eyebrow {
    margin: 0 0 18px;
}

h1 {
    max-width: 830px;
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 6.2vw, 92px);
    line-height: .96;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-description {
    max-width: 740px;
    margin: 42px 0 30px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.action-card {
    position: relative;
    display: grid;
    min-height: 154px;
    padding: 22px 52px 22px 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(183, 95, 60, 0.5);
    box-shadow: 0 16px 32px rgba(20, 33, 61, 0.09);
}

.action-card--primary {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.action-card--primary .action-label,
.action-card--primary .action-text {
    color: rgba(255,255,255,.72);
}

.action-title {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 800;
}

.action-text {
    align-self: end;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.action-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 16px;
    opacity: .7;
}

.hero-aside {
    display: grid;
    gap: 14px;
    align-content: start;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-card,
.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.metric-card {
    min-height: 166px;
    padding: 22px 18px;
}

.metric-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
}

.metric-card p,
.info-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.info-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
}

.info-card--accent {
    border-color: rgba(183, 95, 60, .35);
    background: rgba(183, 95, 60, .06);
}

.info-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(20, 33, 61, .08);
    font-size: 12px;
    font-weight: 800;
}

.info-card h2 {
    margin: 0 0 8px;
    font-size: 14px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 22px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(20, 33, 61, .1);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-main {
        padding-right: 0;
    }

    .hero-aside {
        grid-template-columns: 1fr 1fr;
    }

    .metric-grid {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 14px, 1480px);
        min-height: calc(100vh - 14px);
        margin: 7px auto;
        padding: 16px;
        border-radius: 20px;
    }

    .site-header {
        align-items: flex-start;
    }

    .brand-copy small {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .language-switch {
        display: none;
    }

    .login-button {
        padding: 10px 14px;
    }

    h1 {
        font-size: clamp(42px, 14vw, 66px);
    }

    .hero-description {
        margin-top: 28px;
    }

    .action-grid,
    .hero-aside {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: auto;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .brand-copy strong {
        font-size: 13px;
    }

    .hero-main {
        padding-top: 10px;
    }

    .action-card {
        min-height: 142px;
    }
}
