:root {
    color-scheme: light;
    --site-ink: #14231f;
    --site-muted: #52635e;
    --site-line: #dbe5e1;
    --site-surface: #ffffff;
    --site-canvas: #f5f8f7;
    --site-primary: #245fd3;
    --site-primary-dark: #194aa9;
    --site-accent: #19785f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--site-ink);
    background: var(--site-canvas);
    font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--site-primary);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgb(36 95 211 / 32%);
    outline-offset: 3px;
}

.site-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    color: #fff;
    background: var(--site-primary);
    font-weight: 800;
    transform: translateY(-180%);
    transition: transform 140ms ease;
}

.site-skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
}

.site-main {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 62rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 7vw, 5rem);
}

.site-main:focus {
    outline: none;
}

.site-main > :first-child {
    margin-top: 0;
}

.site-main :where(p, li) {
    overflow-wrap: anywhere;
}

.site-main :where(h1, h2, h3, strong) {
    color: var(--site-ink);
}

.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 8%, rgb(36 95 211 / 9%), transparent 30rem),
        radial-gradient(circle at 90% 85%, rgb(25 120 95 / 8%), transparent 28rem),
        var(--site-canvas);
}

.site-footer {
    padding: 1rem clamp(1rem, 5vw, 4.5rem);
    color: #53615d;
    background: #e9efed;
    font-size: 0.8rem;
}

.site-footer:empty {
    display: none;
}

.main-title {
    max-width: 46rem;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.16;
    text-align: center;
}

.main-description {
    max-width: 48rem;
    margin: 0 auto 2rem;
    color: var(--site-muted);
    text-align: center;
}

.error-code-text {
    margin: 0 auto 1rem;
    color: var(--site-primary);
    font-size: clamp(5rem, 20vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    text-align: center;
}

.version {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    color: var(--site-muted);
    font-size: 0.75rem;
    text-align: center;
}

body:not(.site-home) .site-main {
    border-radius: 1rem;
    background: rgb(255 255 255 / 84%);
    box-shadow: 0 1px 2px rgb(20 35 31 / 4%), 0 20px 60px rgb(20 35 31 / 5%);
    margin-block: clamp(1rem, 5vw, 3rem);
    padding: clamp(1.25rem, 5vw, 3.5rem);
}

body:not(.site-home) .site-main :where(h1, h2, h3) {
    line-height: 1.25;
}

body:not(.site-home) .site-main :where(ol, ul) {
    padding-left: 1.5rem;
}

.simple-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 7vw, 5rem);
}

.simple-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--site-ink);
    font-size: 1.05rem;
    font-weight: 900;
    text-decoration: none;
}

.simple-back-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-underline-offset: 0.25em;
}

.simple-page-heading {
    max-width: 46rem;
}

.simple-page-heading > p {
    margin: 0 0 0.75rem;
    color: var(--site-accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.simple-page-heading h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
}

.simple-page-heading > span {
    display: block;
    margin-top: 1rem;
    color: var(--site-muted);
    font-size: 1.05rem;
}

.tariff-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.tariff-card {
    display: grid;
    align-content: start;
    gap: 1.5rem;
    border: 1px solid var(--site-line);
    border-radius: 0.85rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    background: #fff;
}

.tariff-stack {
    display: grid;
    gap: 1rem;
}

.tariff-card--primary {
    color: #fff;
    background: #102f28;
}

.tariff-card > div > span {
    display: block;
    color: var(--site-accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tariff-card--primary > div > span {
    color: #7bd9bd;
}

.tariff-card strong {
    display: block;
    margin-top: 0.5rem;
    color: inherit;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
}

.tariff-card p {
    margin: 0.5rem 0 0;
    color: var(--site-muted);
}

.tariff-card--primary p {
    color: #c8d9d4;
}

.tariff-card ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.tariff-card > a {
    justify-self: start;
    border-radius: 0.55rem;
    padding: 0.7rem 1rem;
    color: #102f28;
    background: #fff;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 700px) {
    .tariff-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
