:root {
    --bg: #08111f;
    --card: rgba(255, 255, 255, 0.075);
    --card-strong: rgba(255, 255, 255, 0.11);
    --text: #f8fafc;
    --muted: #a9b6c8;
    --line: rgba(255, 255, 255, 0.14);
    --gold: #d8b46a;
    --blue: #4b8cff;
    --danger: #ff6b6b;
    --success: #51d28a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(75, 140, 255, 0.18), transparent 35%),
        radial-gradient(circle at top right, rgba(216, 180, 106, 0.15), transparent 30%),
        var(--bg);
    color: var(--text);
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1;
}

.hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.badge {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-card,
.card,
.result {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
}

.hero-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    overflow-wrap: anywhere;
}

.hero-card span,
.hint {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

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

.three {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    padding: 22px;
}

.card h2 {
    margin: 0 0 18px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 600;
}

input,
select,
button {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}

select option {
    color: #111827;
}

button {
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold), #f0d99b);
    color: #111827;
    border: none;
    font-weight: 800;
    transition: transform 0.15s ease, filter 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.section-header {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.section-header p {
    color: var(--muted);
    margin: -8px 0 0;
}

.section-header button {
    max-width: 220px;
}

.status {
    margin-top: 12px;
    color: var(--muted);
}

.result {
    padding: 20px;
}

.result span {
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.result strong {
    font-size: 23px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: var(--muted);
    font-weight: 700;
}

.copy-box {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    color: #e8edf7;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .hero,
    .two,
    .three,
    .four {
        grid-template-columns: 1fr;
    }

    .section-header {
        display: grid;
    }

    .section-header button {
        max-width: none;
    }
}
