:root {
    color-scheme: light;
    --bg: #f4f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #14243d;
    --muted: #64748b;
    --line: #dfe6ee;
    --accent: #0f766e;
    --accent-dark: #0b5f59;
    --accent-soft: #e6f5f2;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --warning: #a15c07;
    --warning-soft: #fff8e8;
    --header: #10263d;
    --shadow: 0 18px 50px rgba(15, 35, 60, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(15, 118, 110, 0.12), transparent 28rem),
        linear-gradient(180deg, #eef5f4 0, var(--bg) 320px);
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    background: var(--header);
    color: #e9f2f7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    width: min(1120px, calc(100% - 2rem));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2dd4bf, #0f766e);
    color: #062c29;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(45, 212, 191, 0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: #b8cbd8;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.identity {
    margin-left: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #cfe4e8;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 2.5rem auto 3rem;
}

.card {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.hero-main {
    padding: clamp(1.75rem, 4vw, 3rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.amount {
    color: var(--accent);
    white-space: nowrap;
}

.lead {
    max-width: 58ch;
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: 1.02rem;
}

.muted {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-side {
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0, var(--surface-soft) 100%);
}

.side-label {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.steps {
    display: grid;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.step-number {
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
}

.steps strong {
    display: block;
    font-size: 0.95rem;
}

.steps small {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.side-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

.alert {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: #334155;
    font-size: 0.95rem;
}

.alert-error {
    border-left-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.alert-warning {
    border-left-color: #d99a2b;
    background: var(--warning-soft);
    color: var(--warning);
}

.form {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.form-compact {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

label {
    color: #334155;
    font-size: 0.88rem;
    font-weight: 650;
}

input[type="email"] {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid #cfd9e4;
    border-radius: 11px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.inline-field {
    display: flex;
    gap: 0.6rem;
}

.inline-field input {
    flex: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
    transform: translateY(-1px);
}

.button-secondary {
    border-color: #cfd9e4;
    background: #ffffff;
    color: var(--ink);
}

.button-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
    box-shadow: none;
}

.button-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.button-ghost:hover {
    background: var(--surface-soft);
    color: var(--danger);
    box-shadow: none;
    transform: none;
}

.button-disabled {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
}

.button-disabled:hover {
    transform: none;
    box-shadow: none;
}

.identity-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
}

.label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.identity-card strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1rem;
}

.result-card {
    max-width: 640px;
    margin: 2rem auto;
    text-align: center;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-success {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.status-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.result-card h1 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.result-card .lead {
    margin: 0 auto;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
    font-size: 0.92rem;
}

thead th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fbfdfd;
}

tfoot th {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: var(--surface-soft);
    color: var(--ink);
}

.site-footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.85rem;
}

.card > h1 {
    margin-top: 0;
}

.card > .lead + .alert {
    margin-top: 1rem;
}

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

    .hero-side {
        order: -1;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .steps li {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .site-nav {
        width: 100%;
    }

    .identity {
        margin-left: 0;
    }

    .container {
        margin-top: 1.5rem;
    }

    .card,
    .hero-main {
        padding: 1.25rem;
    }

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

    .inline-field {
        flex-direction: column;
    }

    .site-footer {
        flex-direction: column;
        gap: 0.25rem;
    }
}
