:root {
    --paper: #fff;
    --canvas: #f5f7fa;
    --ink: #26313e;
    --muted: #5b6877;
    --line: #d9e0e8;
    --blue: #175cdb;
    --wash: #edf3ff;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-size: 17px;
    line-height: 1.6;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: var(--blue);
    text-underline-offset: 4px;
}
header,
footer {
    max-width: 1120px;
    margin: auto;
    padding: 24px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}
header {
    border-bottom: 1px solid var(--line);
}
header > a {
    font-weight: 750;
    text-decoration: none;
    color: var(--ink);
}
nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
main {
    max-width: 1080px;
    margin: auto;
    padding: 48px 24px 64px;
}
h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 650;
    max-width: 900px;
    margin: 16px 0 24px;
}
h2 {
    font-size: 1.8rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
}
h3 {
    font-size: 1.1rem;
    margin: 24px 0 10px;
}
p {
    max-width: 75ch;
    margin: 12px 0;
}
section {
    margin: 36px 0;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}
.intro {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 650px;
}
.hero {
    padding: 0 0 24px;
    border: 0;
    margin: 0;
}
.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 22px 0;
}
button,
.button {
    border: 1px solid var(--blue);
    border-radius: 6px;
    min-height: 48px;
    padding: 11px 20px;
    background: var(--blue);
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
button.secondary,
.button.secondary {
    background: var(--paper);
    color: var(--blue);
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
button:hover,
.button:hover {
    filter: brightness(0.94);
}
:focus-visible {
    outline: 3px solid #7099ee;
    outline-offset: 4px;
}
input,
textarea,
select {
    width: 100%;
    font: inherit;
    color: var(--ink);
    padding: 10px 12px;
    border: 1px solid #a9b7c7;
    border-radius: 5px;
    background: white;
}
textarea {
    resize: vertical;
}
label {
    display: block;
    margin: 16px 0 6px;
}
label.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
}
input[type='checkbox'] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}
fieldset {
    min-width: 0;
    border: 0;
    padding: 24px;
    background: var(--paper);
    border-top: 3px solid var(--ink);
}
legend {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0 8px;
}
.options,
.example-grid,
.result-grid,
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.example-grid {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 28px;
}
.example-grid > div + div {
    border-left: 1px solid var(--line);
    padding-left: 24px;
}
.big-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.2;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
}
.hint,
.muted,
small {
    color: var(--muted);
    font-size: 0.9rem;
}
.preserve {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.message,
.notice {
    background: var(--wash);
    padding: 20px;
    border-left: 3px solid var(--blue);
}
.result-card {
    background: white;
    padding: 24px;
    border: 1px solid var(--line);
}
.result-card dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    font-size: 0.9rem;
}
.result-card dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.result-card dt {
    color: var(--muted);
}
.feed {
    list-style: none;
    padding: 0;
}
.feed li {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.feed h3 {
    margin: 5px 0;
}
.feed a {
    font-weight: 650;
}
.feed p {
    margin: 6px 0;
}
.offer {
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--blue);
    border-radius: 8px;
}
.price {
    font-size: 2.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hidden,
[hidden] {
    display: none !important;
}
footer {
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}
[role='alert'] {
    color: #a52626;
}
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 210px;
    gap: 48px;
}
.article-layout aside {
    font-size: 0.9rem;
    padding-top: 40px;
}
.article-layout article {
    min-width: 0;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
}
td,
th {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 10px;
    vertical-align: top;
}
.table-wrap {
    overflow: auto;
}
summary {
    cursor: pointer;
    font-weight: 650;
    padding: 10px 0;
}
.feedback {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.feedback button {
    background: white;
    color: var(--blue);
}
.categories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
@media (max-width: 640px) {
    main {
        padding: 28px 18px 48px;
    }
    header,
    footer {
        padding: 18px;
    }
    header nav {
        gap: 14px;
        font-size: 0.9rem;
    }
    h1 {
        font-size: 2.25rem;
    }
    .options,
    .example-grid,
    .result-grid,
    .two-col,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .example-grid > div + div {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 20px 0 0;
    }
    fieldset {
        padding: 18px;
    }
    .actions > * {
        width: 100%;
    }
    .article-layout aside {
        border-top: 1px solid var(--line);
        padding-top: 20px;
    }
    section {
        padding-top: 24px;
    }
    .result-card dl {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}
