:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #eef4fb;
    --ink: #152033;
    --muted: #617083;
    --line: #dbe5ef;
    --blue: #0f63c7;
    --blue-2: #06366f;
    --cyan: #2bb3d6;
    --green: #3ea46a;
    --danger: #b33939;
    --shadow: 0 18px 48px rgba(21, 32, 51, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.wrap {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 138px;
    display: block;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 22px;
}

.main-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 8px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
    background: var(--surface-2);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 46px;
    align-items: center;
    padding: 62px 0 46px;
}

.eyebrow {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    margin: 12px 0 20px;
    letter-spacing: 0;
}

.hero p {
    max-width: 660px;
    font-size: 19px;
    color: #2d3949;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--blue);
    text-decoration: none;
    font-weight: 800;
    background: var(--blue);
    color: #fff;
}

.button.secondary {
    background: transparent;
    color: var(--blue);
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    margin: 4px 0 44px;
}

.metric {
    background: var(--surface);
    padding: 18px;
}

.metric strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
}

.page-shell {
    padding: 44px 0 70px;
}

.page-head {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 44px;
    align-items: end;
    padding: 28px 0 30px;
}

.page-title {
    font-size: clamp(38px, 5vw, 62px);
    margin: 0;
}

.page-summary {
    color: var(--muted);
    font-size: 18px;
}

.content-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 44px);
    box-shadow: 0 8px 30px rgba(21, 32, 51, 0.05);
}

.content-panel h2,
.content-panel h3 {
    margin-top: 1.2em;
    line-height: 1.2;
}

.content-panel h2:first-child,
.content-panel h3:first-child {
    margin-top: 0;
}

.content-panel blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--blue);
    background: var(--surface-2);
}

.content-panel pre {
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    background: #101928;
    color: #eef7ff;
}

.content-panel img {
    border-radius: 8px;
}

.table-scroll {
    overflow-x: auto;
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-2);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.member-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 24px 0 10px;
}

.search-input,
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.search-input {
    max-width: 360px;
}

.graph-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.graph-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.graph-card h3 {
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.graph-placeholder {
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 30px;
    background: repeating-linear-gradient(90deg, #f7fbff 0, #f7fbff 20px, #eef5fb 20px, #eef5fb 21px);
    color: var(--muted);
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 30px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-field label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 0 0 18px;
    border: 1px solid var(--line);
}

.alert.success {
    border-color: rgba(62, 164, 106, 0.35);
    background: rgba(62, 164, 106, 0.10);
}

.alert.error {
    border-color: rgba(179, 57, 57, 0.35);
    background: rgba(179, 57, 57, 0.10);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 36px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: start;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.muted {
    color: var(--muted);
}

.underline {
    text-decoration: underline;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: grid;
        justify-content: stretch;
    }

    .main-nav a {
        padding: 12px;
    }

    .hero,
    .page-head,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .metric-strip,
    .graph-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 22px, 1160px);
    }

    .brand img {
        width: 130px;
    }

    .hero {
        padding-top: 36px;
    }

    .hero h1,
    .page-title {
        font-size: 38px;
    }

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

    .content-panel {
        padding: 18px;
    }

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