@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/onest-cyrillic-ext-400-700.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/onest-cyrillic-400-700.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/onest-latin-ext-400-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/onest-latin-400-700.woff2') format('woff2');
    unicode-range: U+0000-00BF, U+00D7, U+00F7, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/plexmono-cyrillic-ext-400.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/plexmono-cyrillic-400.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/plexmono-latin-ext-400.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/plexmono-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00BF, U+00D7, U+00F7, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/plexmono-cyrillic-ext-500.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/plexmono-cyrillic-500.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/plexmono-latin-ext-500.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/plexmono-latin-500.woff2') format('woff2');
    unicode-range: U+0000-00BF, U+00D7, U+00F7, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --paper: #F4F4F8;
    --paper-deep: #E9E9F0;
    --card: #FFFFFF;
    --fill: #EDEDF3;
    --fill-soft: #F2F2F7;

    --ink: #1A1B26;
    --ink-2: #333850;
    --ink-3: #474B60;
    --ink-soft: #5C6076;
    --ink-mute: #5E6279;
    --ink-mute-2: #60647B;

    --accent-900: #171A3A;
    --accent-800: #1F244F;
    --accent-700: #2B316F;
    --accent-600: #343C86;
    --accent-500: #3E47A0;
    --accent-400: #5E67BE;
    --accent-300: #8B92D6;
    --accent-soft-500: #AAB0E1;
    --accent-soft-400: #BBBFE7;
    --accent-soft-300: #BEC2E8;
    --accent-soft-200: #D2D5F0;
    --accent-soft-150: #DDE0F5;
    --accent-soft-100: #E4E6F7;
    --accent-soft-75: #E8E9F9;
    --accent-soft-50: #EFF0FC;

    --line: #DFDFE9;
    --line-2: #DEDEE8;
    --line-soft: #EDEDF3;
    --line-softer: #EEEEF4;

    --grad-primary: linear-gradient(135deg, #EFF0FC 0%, #BEC2E8 100%);

    --shadow-primary: 0 6px 18px rgba(62, 71, 160, .22);
    --shadow-tip: 0 14px 34px rgba(26, 27, 38, .28);

    --r-panel: 28px;
    --r-card: 24px;
    --r-card-sm: 20px;
    --r-pill: 999px;

    --header-h: 52px;

    --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--paper);
    background-image:
        radial-gradient(115% 85% at 50% 38%, rgba(244, 244, 248, 0) 55%, rgba(154, 159, 201, .16) 100%),
        url('/img/pattern.svg?v1'),
        radial-gradient(120% 60% at 50% 0%, rgba(187, 191, 231, .55), rgba(244, 244, 248, 0) 62%);
    background-size: auto, 440px 440px, auto;
    background-repeat: no-repeat, repeat, no-repeat;
}

::selection { background: var(--accent-soft-300); }

a { color: var(--accent-600); text-decoration: none; }
a:hover { color: var(--accent-800); }

.footer__text a,
.prose p a,
.prose li a,
.faq__answer a,
.disclaimer a,
.result__note a,
.section__meta a { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3 { margin: 0; letter-spacing: -.03em; }

input, button, select, textarea { font: inherit; color: inherit; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

@media (scripting: enabled) {
    .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
}
.reveal--visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

.container { max-width: 1192px; margin: 0 auto; padding: 0 44px; }

.header { position: relative; padding: 22px 0; }
.header__inner { display: flex; align-items: center; gap: 20px; justify-content: space-between; }

.header__menu { display: contents; }

.burger {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px; flex: none;
    border: none; background: transparent;
    border-radius: 12px;
    cursor: pointer;
    place-content: center;
    justify-items: center;
    gap: 5px;
}
.burger:hover { background: var(--fill); }
.burger__bar {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}
.header--open .burger__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.header--open .burger__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger__bar { transition: none; } }

.logo {
    display: flex; align-items: center; gap: 12px;
    height: var(--header-h);
    margin-left: -5px;
    border-radius: 12px;
    padding: 5px 16px 5px 5px;
    background: transparent;
}
.logo:hover { color: inherit; }
.logo__mark {
    width: 40px; height: 40px; flex: none;
    display: grid; place-items: center;
}
.logo__icon { width: 100%; height: 100%; display: block; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.logo__tagline { font-size: 12px; color: var(--ink-mute-2); }

.nav {
    display: flex; align-items: center; gap: 4px;
    height: var(--header-h);
    background: var(--card);
    border-radius: 12px;
    padding: 5px;
}
.nav__link {
    padding: 9px 8px;
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--ink-3);
    white-space: nowrap;
    transition: background-color .15s;
}
.nav__link:hover { background: #EFEFF5; color: var(--ink-3); }
.nav__link--active {
    background-image: var(--grad-primary);
    border: 1px solid var(--accent-soft-500);
    color: var(--accent-900);
    font-weight: 600;
    padding: 8px 7px;
}
.nav__link--active:hover { background-image: var(--grad-primary); color: var(--accent-900); }

.header__action { height: var(--header-h); white-space: nowrap; }
.header__action.header__action--active,
.header__action.header__action--active:hover {
    border-color: var(--accent-soft-500);
    color: var(--accent-900);
    font-weight: 600;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--accent-900); color: #fff;
    padding: 10px 18px; border-radius: 0 0 var(--radius, 8px) 0;
    font-size: 14px;
}
.skip-link:focus { left: 0; color: #fff; }

.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 4px 0 0;
    font-size: 13px;
}
.crumbs__link { color: var(--ink-mute); }
.crumbs__link:hover { color: var(--accent-600); }
.crumbs__sep { color: var(--line-strong, #C4C5D6); }
.crumbs__current { color: var(--ink-3); }

.badge {
    display: inline-flex; align-items: center; gap: 9px;
    align-self: flex-start;
    background: var(--accent-soft-100);
    color: var(--accent-600);
    border: 1px solid var(--accent-soft-400);
    border-radius: var(--r-pill);
    padding: 7px 15px;
    font-size: 13px;
    font-weight: 500;
}
.badge__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-400); flex: none;
    animation: badge-pulse 2.4s ease-out infinite;
}
@keyframes badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(94, 103, 190, .5); }
    70% { box-shadow: 0 0 0 8px rgba(94, 103, 190, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 103, 190, 0); }
}
@media (prefers-reduced-motion: reduce) { .badge__dot { animation: none; } }

.hero { padding: 52px 0 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.hero--page { padding: 40px 0 36px; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center; }
.hero--solo { grid-template-columns: minmax(0, 1fr); }
.hero__body { display: flex; flex-direction: column; gap: 20px; }
.hero--page .hero__body { gap: 16px; }
.hero__title { font-size: 56px; line-height: 1.02; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.hero__title--page { font-size: 56px; line-height: 1.02; letter-spacing: -.045em; }
.hero__lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 620px; text-wrap: pretty; }
.hero--page .hero__lead { font-size: 17px; line-height: 1.55; max-width: 540px; }
.hero--solo .hero__lead { max-width: none; }
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

.photo {
    aspect-ratio: 3 / 2;
    border-radius: 34px;
    background-color: var(--fill);
    overflow: hidden;
}
.photo--page { border-radius: var(--r-panel); }
.photo--wide { aspect-ratio: auto; height: 230px; border-radius: 22px; }
.photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 15.5px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.button--primary {
    background: var(--accent-500);
    border-color: var(--accent-500);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}
.button--primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: #FFFFFF; }
.button--ghost {
    background: var(--card);
    border-color: var(--line-2);
    color: var(--ink-2);
    font-weight: 500;
    padding: 15px 26px;
}
.button--ghost:hover { background: var(--fill-soft); border-color: var(--line); color: var(--ink-2); }
.button--sm { padding: 12px 24px; font-size: 14.5px; }
.button--danger {
    background: transparent; border: none; color: #8E3A3A;
    padding: 5px 10px; font-size: 13px; font-weight: 500;
}
.button--danger:hover { background: #F7E9E7; }

.section { padding-bottom: 52px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 20px; }
.section__title { font-size: 32px; font-weight: 700; letter-spacing: -.035em; }
.section__meta { font-size: 14px; color: var(--ink-mute-2); }
.section__label { font-size: 13px; font-weight: 500; color: var(--ink-mute); padding-bottom: 12px; }

.const-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 44px; }
.const-card {
    position: relative;
    background: var(--card);
    border-radius: var(--r-card-sm);
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 6px;
}
.const-card__head { display: flex; align-items: center; gap: 7px; }
.const-card__short { font-size: 13.5px; color: var(--ink-mute); }
.const-card__help {
    width: 17px; height: 17px; flex: none;
    border-radius: 50%;
    background: var(--accent-soft-75);
    color: var(--accent-500);
    font-size: 11px; font-weight: 600;
    display: grid; place-items: center;
    cursor: help;
    border: none; padding: 0;
}
.const-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.const-card__value { font-size: 21px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.const-card__from { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute-2); white-space: nowrap; }
.const-card__tip {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
    z-index: 5;
    background: var(--accent-900);
    color: #ECEEFB;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 13.5px; line-height: 1.45;
    box-shadow: var(--shadow-tip);
    opacity: 0; visibility: hidden;
    transform: translateY(4px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.const-card__help:hover + .const-card__tip,
.const-card__help:focus + .const-card__tip { opacity: 1; visibility: visible; transform: none; }
.const-card__tip-title { font-weight: 600; padding-bottom: 4px; }
.const-card__tip-text { opacity: .84; }

.calc-grid {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    overflow: hidden;
}
.calc-tile {
    grid-column: span 2;
    background: var(--card);
    padding: 30px 26px 28px;
    display: flex; flex-direction: column; gap: 16px;
    min-height: 230px;
    transition: background-color .15s;
}
.calc-tile:nth-child(3n+1):nth-last-child(2),
.calc-tile:nth-child(3n+1):nth-last-child(2) ~ .calc-tile { grid-column: span 3; }
.calc-tile:hover { background: #F5F6FE; color: var(--ink); }
.calc-tile__icon { width: 64px; height: 64px; display: block; }
.calc-tile__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.calc-tile__title { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.calc-tile__text { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.calc-tile__action {
    font-size: 14px; font-weight: 600; color: var(--accent-600);
    border-top: 1px solid var(--line-soft); padding-top: 14px;
}

.feature {
    display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 44px;
    align-items: center;
    background: var(--card);
    border-radius: var(--r-panel);
    padding: 30px;
}
.feature__body { display: flex; flex-direction: column; gap: 16px; }
.feature__label { font-size: 13px; font-weight: 500; color: var(--accent-500); }
.feature__title { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; max-width: 560px; }

.timeline { display: flex; align-items: flex-start; padding-top: 10px; }
.timeline--panel { background: var(--card); border-radius: var(--r-panel); padding: 32px; align-items: stretch; }
.timeline__item { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-right: 16px; }
.timeline__track { display: flex; align-items: center; }
.timeline__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-400); flex: none; }
.timeline__line { flex: 1; height: 2px; border-radius: 2px; background: var(--accent-soft-100); }
.timeline__date { font-size: 14px; font-weight: 600; }
.timeline__what { font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.timeline--panel .timeline__dot { width: 12px; height: 12px; }
.timeline--panel .timeline__item { gap: 12px; padding-right: 18px; }
.timeline--panel .timeline__date { font-size: 16px; }
.timeline--panel .timeline__what { font-size: 14.5px; line-height: 1.45; }

.calc { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 44px; }
.calc--solo { grid-template-columns: minmax(0, 1fr); }
.calc--form { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
.calc--form .field__input { max-width: 100%; }

.form {
    background: var(--card);
    border-radius: var(--r-panel);
    padding: 26px;
    display: flex; flex-direction: column; gap: 20px;
}
.form__label { font-size: 13px; font-weight: 500; color: var(--ink-mute); }
.form__title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.form__field { display: flex; flex-direction: column; gap: 8px; }

.segment { display: flex; background: var(--fill); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.segment__input { position: absolute; opacity: 0; pointer-events: none; }
.segment__label {
    flex: 1; text-align: center;
    display: flex; align-items: center; justify-content: center;
    padding: 11px 8px;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    border-radius: var(--r-pill);
    color: var(--ink-3);
    transition: background .15s, color .15s;
}
.segment__input:checked + .segment__label {
    background-image: var(--grad-primary);
    color: var(--accent-900);
}
.segment__input:focus-visible + .segment__label { outline: 2px solid var(--accent-400); outline-offset: 2px; }

.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.fieldset__legend { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); padding: 0 0 6px; }

.choice { display: flex; flex-direction: column; gap: 10px; }
.choice__input { position: absolute; opacity: 0; pointer-events: none; }
.choice__label {
    display: block;
    background: var(--fill-soft);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 15px 18px;
    font-size: 15.5px; line-height: 1.45;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.choice__label:hover { background: var(--accent-soft-50); border-color: var(--accent-soft-300); }
.choice__input:checked + .choice__label {
    background-image: var(--grad-primary);
    border-color: var(--accent-soft-500);
    color: var(--accent-900);
    font-weight: 500;
}
.choice__input:focus-visible + .choice__label { outline: 2px solid var(--accent-400); outline-offset: 2px; }

.amount {
    display: flex; align-items: baseline; gap: 8px;
    background: var(--fill-soft);
    border-radius: var(--r-card-sm);
    padding: 15px 18px;
    transition: box-shadow .15s;
}
.amount:focus-within { box-shadow: 0 0 0 3px rgba(94, 103, 190, .25); }
.amount__input {
    flex: 1; min-width: 0;
    border: 0; background: transparent; outline: none;
    font-size: 32px; font-weight: 600; letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
    padding: 0;
}
.amount__unit { font-size: 15px; color: var(--ink-mute-2); }

.amount__input:disabled { color: var(--ink-mute-2); cursor: not-allowed; }

.select {
    -webkit-appearance: none; appearance: none;
    width: 100%;
    background-color: var(--fill-soft);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2360647B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 11px 8px;
    border: 1px solid transparent;
    border-radius: var(--r-card-sm);
    padding: 13px 38px 13px 16px;
    font-family: inherit; font-size: 15px; color: var(--ink);
    outline: none; cursor: pointer;
    transition: box-shadow .15s;
}
.select:focus { box-shadow: 0 0 0 3px rgba(94, 103, 190, .25); }

.form__inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form__inline > .form__field { flex: 1; min-width: 0; }
.form__inline-label { font-size: 15px; color: var(--ink-3); }

.stepper { display: flex; align-items: center; background: var(--fill-soft); border-radius: var(--r-pill); padding: 3px; }
.stepper__btn {
    display: none;
    width: 40px; height: 40px; flex: none;
    border: none; background: transparent;
    border-radius: var(--r-pill);
    font-size: 18px; color: var(--ink-3);
    cursor: pointer;
    place-items: center;
}
.stepper--enhanced .stepper__btn { display: grid; }
.stepper__btn:hover { background: var(--accent-soft-100); }
.stepper__input {
    width: 56px; height: 40px;
    text-align: center;
    border: none; background: transparent; outline: none;
    font-size: 16px; font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.stepper--enhanced .stepper__input { width: 36px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
    width: 44px; height: 26px; flex: none;
    border-radius: var(--r-pill);
    padding: 3px;
    background: #DCDCE7;
    display: flex; justify-content: flex-start;
    transition: background .18s;
}
.switch__thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: #FFF;
    box-shadow: 0 1px 3px rgba(26, 27, 38, .25);
    transition: transform .18s;
}
.switch__input:checked + .switch__track { background: var(--accent-400); }
.switch__input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch__input:focus-visible + .switch__track { outline: 2px solid var(--accent-400); outline-offset: 2px; }
.switch__text { font-size: 15px; color: var(--ink-3); }

.params {
    background: var(--fill-soft);
    border-radius: var(--r-card-sm);
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 11px;
}
.params__title { font-size: 12.5px; font-weight: 600; color: var(--accent-600); }
.params__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-soft); }
.params__value { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.result-col { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.result {
    background: var(--accent-soft-150);
    color: var(--accent-900);
    border-radius: var(--r-panel);
    padding: 34px 36px 30px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 36px;
}
.result__main { min-width: 0; }
.result__label { font-size: 13px; font-weight: 500; opacity: .78; }
.result__value {
    font-size: 54px; font-weight: 700; letter-spacing: -.045em;
    font-variant-numeric: tabular-nums; line-height: 1.15;
    padding-top: 4px; white-space: nowrap;
}
.result__value--text {
    font-size: 34px; white-space: normal;
    letter-spacing: -.03em; font-variant-numeric: normal;
}
.result__caption { text-align: right; font-size: 14px; line-height: 1.5; opacity: .84; max-width: 220px; }

.breakdown { background: var(--card); border-radius: var(--r-panel); padding: 10px 30px 24px; }
.breakdown__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 10px; }
.breakdown__title { font-size: 13px; font-weight: 500; color: var(--ink-mute); }
.breakdown__bar { display: flex; height: 8px; width: 220px; gap: 3px; }
.breakdown__seg { border-radius: var(--r-pill); min-width: 3px; }
.breakdown__seg--net { background: var(--accent-600); }
.breakdown__seg--tax { background: var(--accent-300); }
.breakdown__seg--fszn { background: var(--accent-soft-200); }
.breakdown__row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 15px 0;
    border-top: 1px solid var(--line-softer);
}
.breakdown__row-label { font-size: 15.5px; color: var(--ink-soft); }
.breakdown__row-value { font-size: 15.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown__total {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 14px;
    background: var(--accent-soft-100);
    border-radius: 18px;
    padding: 16px 20px;
}
.breakdown__total-label { font-size: 17px; font-weight: 600; color: var(--accent-700); }
.breakdown__total-value { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-700); }
.breakdown__actions { display: flex; gap: 10px; padding-top: 18px; flex-wrap: wrap; }

.checklist { display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 0 0 4px; list-style: none; }
.checklist__item {
    position: relative;
    padding-left: 30px;
    font-size: 15.5px; line-height: 1.5; color: var(--ink-soft);
}
.checklist__item::before {
    content: "";
    position: absolute; left: 0; top: 1px;
    width: 19px; height: 19px;
    border-radius: 6px;
    background: var(--accent-soft-100);
}
.checklist__item::after {
    content: "";
    position: absolute; left: 7px; top: 5px;
    width: 4px; height: 9px;
    border: solid var(--accent-600);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.formula {
    background: var(--accent-soft-100);
    border-radius: var(--r-card);
    padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.formula__title { font-size: 13px; font-weight: 600; color: var(--accent-700); }
.formula__body { font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--accent-700); }

.faq-section { padding-bottom: 52px; }
.faq-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 20px; }
.faq-section__title { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.faq-section__count { font-size: 14px; color: var(--ink-mute-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq-section__body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.faq-tools { display: none; flex-direction: column; gap: 12px; }
.faq-section--enhanced .faq-tools { display: flex; }

.faq-search,
.hub-search { position: relative; display: flex; align-items: center; }
.faq-search__icon,
.hub-search__icon {
    position: absolute; left: 20px; pointer-events: none;
    width: 16px; height: 16px; color: var(--ink-mute-2);
}
.faq-search__input,
.hub-search__input {
    width: 100%;
    background: var(--card);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    padding: 14px 48px 14px 46px;
    font-family: inherit; font-size: 15.5px; color: var(--ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none; appearance: none;
}
.faq-search__input::placeholder,
.hub-search__input::placeholder { color: var(--ink-mute-2); }
.faq-search__input:focus,
.hub-search__input:focus { border-color: var(--accent-400); box-shadow: 0 0 0 3px rgba(94, 103, 190, .25); }
.faq-search__input::-webkit-search-cancel-button,
.hub-search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.faq-search__clear,
.hub-search__clear {
    position: absolute; right: 14px;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; line-height: 1; color: var(--ink-mute-2);
    background: transparent; border: 0; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.faq-search__clear[hidden],
.hub-search__clear[hidden] { display: none; }
.faq-search__clear:hover,
.hub-search__clear:hover { background: var(--fill); color: var(--ink-3); }
.faq-search__clear:focus-visible,
.hub-search__clear:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 1px; }

.faq-topics,
.hub-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-topics__pill,
.hub-topics__pill {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 9px 17px;
    font-family: inherit; font-size: 14px; color: var(--ink-3);
    cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.faq-topics__pill:hover,
.hub-topics__pill:hover { background: var(--accent-soft-50); border-color: var(--accent-soft-400); color: var(--accent-700); }
.faq-topics__pill:focus-visible,
.hub-topics__pill:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 2px; }
.faq-topics__pill[aria-pressed="true"],
.hub-topics__pill[aria-pressed="true"] {
    background: none; background-image: var(--grad-primary);
    border-color: var(--accent-soft-500); color: var(--accent-900); font-weight: 600;
}

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    background: var(--card);
    border-radius: 22px;
}
.faq__item[hidden] { display: none; }

.faq__empty,
.hub__empty {
    background: var(--card);
    border-radius: 22px;
    padding: 24px 26px;
    font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
}
.faq__reset,
.hub__reset {
    background: none; border: 0; padding: 0;
    font-family: inherit; font-size: inherit;
    color: var(--accent-600); cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.faq__reset:hover,
.hub__reset:hover { color: var(--accent-800); }
.faq__reset:focus-visible,
.hub__reset:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 2px; border-radius: 4px; }

.faq__question {
    font-size: 18px; font-weight: 600; letter-spacing: -.01em;
    list-style: none; cursor: pointer;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 22px 26px;
    border-radius: 22px;
    transition: background-color .15s;
}
.faq__question:hover { background: #F5F6FE; }
.faq__item[open] > .faq__question { border-radius: 22px 22px 0 0; padding-bottom: 9px; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
    content: ""; flex: none;
    width: 10px; height: 10px; margin-top: 7px;
    border-right: 2px solid var(--accent-400);
    border-bottom: 2px solid var(--accent-400);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.faq__item[open] > .faq__question::after { transform: rotate(-135deg); }
.faq__question:focus-visible { outline: 2px solid var(--accent-400); outline-offset: -3px; }

.faq__answer {
    font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
    max-width: 720px; text-wrap: pretty;
    margin: 0;
    padding: 0 26px 22px;
}
@media (prefers-reduced-motion: reduce) { .faq__question::after { transition: none; } }

.hub-tools { display: none; flex-direction: column; gap: 12px; padding-bottom: 28px; }
.hub--enhanced .hub-tools { display: flex; }
.hub-tools__row { display: flex; align-items: center; gap: 20px; }
.hub-tools__row .hub-search { flex: 1; min-width: 0; }
.hub-tools__count { font-size: 14px; color: var(--ink-mute-2); font-variant-numeric: tabular-nums; white-space: nowrap; margin: 0; }

.article-card[hidden], [data-hub-section][hidden] { display: none; }
.hub__empty { margin: 0 0 52px; }

.rows { display: flex; flex-direction: column; gap: 12px; }
.row-card {
    background: var(--card);
    border-radius: var(--r-card);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px 150px 140px;
    gap: 20px;
    align-items: center;
}
a.row-card { position: relative; padding-right: 48px; transition: background-color .15s; }
a.row-card:hover { background: #F5F6FE; color: var(--ink); }
a.row-card::after {
    content: "";
    position: absolute;
    right: 28px; top: 50%;
    width: 10px; height: 10px;
    border-right: 2px solid var(--accent-400);
    border-bottom: 2px solid var(--accent-400);
    transform: translateY(-50%) rotate(-45deg);
}
.row-card--benefit { grid-template-columns: minmax(0, 1fr) 220px 200px; gap: 24px; }
.row-card__main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.row-card__name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.row-card__abbr { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink-mute-2); white-space: nowrap; }
.row-card__note { font-size: 13.5px; color: var(--ink-mute); }
.row-card__value { text-align: right; font-size: 24px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.row-card__value--lg { font-size: 26px; }
.row-card__aside { display: flex; justify-content: flex-end; }
.row-card__link { text-align: right; font-size: 14px; color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }

.article-cards { display: flex; flex-direction: column; gap: 12px; }
.article-card {
    position: relative;
    background: var(--card);
    border-radius: var(--r-card);
    padding: 22px 48px 22px 28px;
    display: block;
    color: var(--ink);
    transition: background-color .15s;
}
.article-card:hover { background: #F5F6FE; color: var(--ink); }
.article-card::after {
    content: "";
    position: absolute;
    right: 28px; top: 50%;
    width: 10px; height: 10px;
    border-right: 2px solid var(--accent-400);
    border-bottom: 2px solid var(--accent-400);
    transform: translateY(-50%) rotate(-45deg);
}
.article-card__main { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.article-card__badge { padding: 5px 13px; font-size: 12.5px; }
.article-card__name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.article-card__note { font-size: 13.5px; color: var(--ink-mute); max-width: 660px }
.article-card__thumb { display: none; }

@media (hover: hover) and (min-width: 721px) {
    .article-card__thumb {
        display: block;
        position: absolute;
        z-index: 5;
        left: var(--thumb-x, calc(100% - 212px));
        top: var(--thumb-y, 50%);
        width: 300px; height: 200px;
        object-fit: cover;
        border-radius: 18px;
        box-shadow: var(--shadow-tip);
        pointer-events: none;
        opacity: 0; visibility: hidden;
        transform: translate(-50%, -50%) scale(.9) rotate(-3deg);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .article-card:hover .article-card__thumb,
    .article-card:focus-visible .article-card__thumb {
        opacity: 1; visibility: visible;
        transform: translate(-50%, -50%) scale(1) rotate(-3deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .article-card__thumb,
    .article-card:hover .article-card__thumb,
    .article-card:focus-visible .article-card__thumb {
        transition: none;
        transform: translate(-50%, -50%) rotate(-3deg);
    }
}

.tag {
    background: var(--fill);
    border-radius: var(--r-pill);
    padding: 7px 14px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
}
.table__cell .tag { padding: 3px 9px; font-size: 11.5px; }

.cta {
    background: var(--accent-soft-150);
    color: var(--accent-900);
    border-radius: var(--r-panel);
    padding: 30px 34px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta__body { display: flex; flex-direction: column; gap: 7px; }
.cta__title { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.cta__text { font-size: 15px; opacity: .84; }
.cta__button {
    background-image: linear-gradient(135deg, #FFFFFF 0%, #EBECFA 100%);
    border: 1px solid var(--accent-soft-500);
    color: var(--accent-900);
    border-radius: var(--r-pill);
    padding: 15px 28px;
    font-size: 15px; font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(52, 60, 134, .14);
}
.cta__button:hover { background-image: linear-gradient(135deg, #FCFCFF 0%, #E0E2F5 100%); color: var(--accent-900); }

.alert { border-radius: var(--r-card); padding: 16px 20px; margin: 0 0 20px; font-size: 14.5px; border: 1px solid; scroll-margin-top: 16px; }
.alert--error { background: #FBEFEE; border-color: #E6C9C4; color: #8E3A3A; }
.alert--success { background: var(--accent-soft-100); border-color: var(--accent-soft-500); color: var(--accent-700); }
.alert--warn { background: #FBF4E4; border-color: #EBDCB4; color: #7A5A22; }
.alert__list { margin: 0; padding-left: 18px; }

.prose {
    background: var(--card);
    border-radius: var(--r-panel);
    padding: 40px 44px;
    margin-bottom: 52px;
}
.prose__updated { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute-2); }
.prose h2 {
    font-size: 21px; font-weight: 600; letter-spacing: -.02em;
    margin: 32px 0 10px; padding-top: 4px;
}
.prose h2:first-of-type { margin-top: 20px; }
.prose p { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 7px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .button { text-decoration: none; }
.prose p:has(> .button) { margin: 28px 0 0; }
.prose__callout {
    background: var(--accent-soft-100);
    border-radius: var(--r-card-sm);
    padding: 18px 22px;
    margin: 0 0 8px;
}
.prose__callout p { color: var(--accent-700); margin: 0; }

.example { background: var(--card); border-radius: var(--r-card); padding: 24px 28px; }
.example__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.example__given { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.example__given-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--ink-soft); }
.example__given-value { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.example__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.example__step { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.example__step-num {
    flex: none; width: 22px; height: 22px; border-radius: var(--r-pill);
    background: var(--accent-soft-100); color: var(--accent-700);
    font-family: var(--mono); font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.example__math { font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.example__result {
    margin-top: 16px; padding: 14px 18px;
    background: var(--accent-soft-100); border-radius: var(--r-card-sm);
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.example__result-label { font-size: 14.5px; color: var(--accent-700); }
.example__result-value { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--accent-800); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cases { display: flex; flex-direction: column; gap: 12px; }
.cases__item { background: var(--card); border-radius: var(--r-card-sm); padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.cases__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cases__when { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.cases__arrow {
    flex: none;
    width: 10px; height: 10px;
    margin-right: 4px;
    border-right: 2px solid var(--accent-400);
    border-bottom: 2px solid var(--accent-400);
    transform: rotate(-45deg);
}
a.cases__item { color: var(--ink); transition: background-color .15s; }
a.cases__item:hover { background: #F5F6FE; color: var(--ink); }
.prose a.cases__item:hover { background: var(--card); }
.cases__what { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; text-wrap: pretty; }

.prose .example,
.prose .cases__item { background: var(--fill-soft); }

.norm { color: var(--ink-mute); }
.norm__act { color: var(--ink-3); font-weight: 500; }
.norm__link { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.form__hint { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-mute-2); }

.disclaimer {
    font-size: 12.5px; line-height: 1.5;
    color: var(--ink-mute-2);
    padding: 2px 4px 0;
}
.disclaimer a { text-decoration: underline; text-underline-offset: 2px; }

.report-link {
    padding: 0; border: 0; background: none;
    font: inherit; line-height: inherit;
    color: var(--accent-600);
    text-align: left;
    text-decoration: underline; text-underline-offset: 2px;
    cursor: pointer;
}
.report-link:hover { color: var(--accent-800); }

.report {
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--r-panel);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow-tip);
    overflow: auto;
}
.report::backdrop { background: rgba(23, 26, 58, .55); }

.report__inner { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.report__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.report__title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.report__close {
    flex: none;
    width: 36px; height: 36px;
    padding: 0;
    -webkit-appearance: none; appearance: none;
    display: grid; place-items: center;
    border: 0; border-radius: var(--r-pill);
    background: var(--fill);
    color: var(--ink-3);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.report__close:hover { background: var(--paper-deep); color: var(--ink); }
.report__close-icon { width: 15px; height: 15px; display: block; }
.report__body { display: flex; flex-direction: column; gap: 24px; }
.report__body .alert { margin: 0; }

.report-form { display: flex; flex-direction: column; gap: 14px; position: relative; }
.report-form__scope { font-size: 13.5px; line-height: 1.5; border-radius: 14px; }
.report-form .button { align-self: flex-start; }

.report-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(273.58deg,
        var(--accent-900) 27.62%,
        var(--accent-600) 61.64%,
        var(--accent-700) 75.05%,
        var(--accent-800) 97.21%);
    color: var(--accent-soft-100);
    padding: 44px 0 40px;
    margin-top: 12px;
}
.footer__inner { position: relative; display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.footer__about { flex: 1 1 380px; min-width: 0; }

.footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-color: var(--accent-soft-300);
    -webkit-mask-image: url('/img/pattern.svg?v1');
    mask-image: url('/img/pattern.svg?v1');
    -webkit-mask-size: 440px 440px;
    mask-size: 440px 440px;
    opacity: .6;
}

.footer__inner::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: -40px;
    transform: translateX(-10%);
    width: 260px;
    height: 260px;
    pointer-events: none;
    background: url('/img/footer-mark.svg?v5') no-repeat bottom center / contain;
    opacity: .75;
}
.footer__text { font-size: 14px; line-height: 1.6; color: var(--accent-soft-150); max-width: 620px; margin: 0; }
.footer__text + .footer__text { margin-top: 12px; }
.footer__text a { color: #FFFFFF; }
.footer__text a:hover { color: var(--accent-soft-200); }
.footer__cols {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 44px;
    row-gap: 10px;
    align-items: start;
    font-size: 14px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col:nth-child(1) { grid-column: 1; grid-row: 1; }
.footer__col:nth-child(2) { grid-column: 2; grid-row: 1; }
.footer__report { grid-column: 2; grid-row: 2; }
.footer__meta { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: var(--accent-soft-100); }
.footer__col a:hover { color: #FFFFFF; }
.footer__col-title { font-size: 14px; color: var(--accent-soft-200); }
.footer__copy { font-family: var(--mono); font-size: 11px; color: var(--accent-soft-400); }

.footer__report.button--ghost {
    justify-self: start;
    border-color: var(--accent-300);
}
.footer__report.button--ghost:hover {
    background: var(--fill-soft);
    border-color: var(--accent-soft-300);
}
.footer__revoke {
    padding: 0; border: 0; background: none;
    font: inherit;
    text-align: left; color: var(--accent-soft-100); cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}
.footer__revoke:hover { color: #FFFFFF; }

.admin-panel { background: var(--card); border-radius: var(--r-panel); padding: 8px 0; overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table__head-cell {
    text-align: left; padding: 14px 16px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-mute); border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.table__cell { padding: 14px 16px; border-bottom: 1px solid var(--line-softer); vertical-align: top; }
.table__row:last-child .table__cell { border-bottom: none; }
.table__row--actual .table__cell { background: #F7F8FE; }
.table__cell--num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table__cell--muted { color: var(--ink-mute); font-size: 13px; }
.table__cell--actions { white-space: normal; font-size: 13px; }
.table__cell--stamp { font-family: var(--mono); font-size: 12px; color: var(--ink-mute-2); white-space: nowrap; }
.table__cell--stale { color: #8E5A22; background: var(--warn-bg, #FBF4E4); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.row-actions > * { white-space: nowrap; }
.row-actions__form { display: inline-flex; margin: 0; }
.row-actions .button--danger { padding: 2px 6px; font-size: 13px; }

.table__cell code { white-space: normal; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 0 0 20px; }
.toolbar__meta { font-size: 13.5px; color: var(--ink-mute); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--ink-mute); }
.field__input, .field__textarea {
    background: var(--fill-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 15px;
    font-size: 15px;
    width: 100%;
    max-width: 420px;
    outline: none;
    transition: box-shadow .15s;
}
.field__textarea { max-width: 100%; resize: vertical; }
.field__input:focus, .field__textarea:focus { box-shadow: 0 0 0 3px rgba(94, 103, 190, .25); }
.field__hint { font-size: 12.5px; color: var(--ink-mute-2); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field__error { font-size: 12.5px; line-height: 1.4; color: #8E3A3A; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.field__check--top { align-items: flex-start; }
.field__check--top input { margin-top: 4px; flex: none; }
.field__check code { font-size: 12.5px; color: var(--ink-mute-2); }
.prompt-box {
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.6;
    background: var(--card);
    border: 1px solid var(--line);
    white-space: pre;
    overflow: auto;
}
.row-card--next { outline: 2px solid var(--accent-soft-500); outline-offset: -2px; }
code { font-family: var(--mono); font-size: .88em; background: var(--fill); border-radius: 6px; padding: 2px 7px; }

@media (max-width: 1200px) {
    .container { padding: 0 24px; }
    .hero, .hero--page { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero__title--page { font-size: 44px; }
    .calc { grid-template-columns: minmax(0, 1fr); }
    .const-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-tile,
    .calc-tile:nth-child(3n+1):nth-last-child(2),
    .calc-tile:nth-child(3n+1):nth-last-child(2) ~ .calc-tile { grid-column: auto; }
    .calc-tile:nth-child(2n+1):last-child { grid-column: span 2; }
    .feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }

    .header { padding: 14px 0; }
    .header__inner { flex-wrap: wrap; gap: 12px; }
    .burger { display: grid; }

    .header__menu {
        display: flex; flex-direction: column; align-items: stretch;
        gap: 6px; width: 100%;
    }
    .header--enhanced .header__menu { display: none; }
    .header--enhanced.header--open .header__menu {
        display: flex;
        position: absolute; left: 0; right: 0; top: 100%;
        z-index: 30;
        background: var(--card);
        padding: 12px 20px 18px;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 20px 44px rgba(26, 27, 38, .18);
        width: auto;
    }
    .header--open .nav {
        flex-direction: column; align-items: stretch;
        height: auto;
        background: transparent; padding: 0; gap: 2px;
    }
    .header--open .nav__link,
    .header--open .header__action {
        display: flex; align-items: center;
        height: auto;
        min-height: 48px;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 16px;
        text-align: left;
        border: none;
    }
    .header--open .header__action { margin-top: 8px; border: 1px solid var(--line-2); background: var(--fill-soft); }
    .header--open .nav__link--active { padding: 10px 14px; }
    .timeline, .timeline--panel { flex-direction: column; gap: 20px; }
    .timeline__line { display: none; }
    .row-card, .row-card--benefit { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .row-card__value, .row-card__link { text-align: left; }
    .row-card__aside { justify-content: flex-start; }
}

@media (min-width: 721px) and (max-width: 1200px) {
    .header--enhanced.header--open .header__menu {
        left: auto; right: 24px;
        width: 320px;
        border-radius: 20px;
        padding: 12px 14px 14px;
    }
}

@media print {
    @page { margin: 15mm; }

    body { background: #fff; color: #000; font-size: 11pt; }
    body::before { display: none; }

    .header, .footer, .crumbs, .skip-link, .burger, .breakdown__actions,
    .cta, .photo, .form > .button, .toolbar, .cases__arrow,
    .article-card__thumb { display: none !important; }

    .container { max-width: none; padding: 0; }
    .hero, .hero--page { display: block; padding: 0 0 8mm; }
    .hero__title, .hero__title--page { font-size: 20pt; }
    .hero__lead { font-size: 11pt; color: #000; }
    .badge { border: 1px solid #999; background: none; color: #000; }

    .calc { display: block; }
    .form, .result, .breakdown, .formula, .params, .alert, .row-card, .article-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
        background: #fff !important;
        color: #000 !important;
    }
    .form { margin-bottom: 6mm; }
    .result__value { font-size: 22pt; }
    .breakdown__bar { display: none; }

    .disclaimer a, .faq__answer a { text-decoration: none; color: #000; }

    .faq-section { display: block; break-inside: avoid; }
    .faq-tools, .faq-section__count, .faq__empty { display: none !important; }
    .hub-tools, .hub__empty { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }
    body::before { background-size: auto, 320px 320px, auto; }
    .hero { padding: 24px 0 32px; }
    .hero__title { font-size: 40px; line-height: 1.05; letter-spacing: -.035em; }
    .hero__title--page { font-size: 34px; }
    .hero__lead, .hero--page .hero__lead { font-size: 16px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .const-cards { grid-template-columns: minmax(0, 1fr); }
    .calc-grid { grid-template-columns: minmax(0, 1fr); }
    .calc-tile, .calc-tile:nth-child(2n+1):last-child { grid-column: auto; }
    .calc-tile { min-height: 0; padding: 24px; }
    .section__title, .faq-section__title { font-size: 26px; }
    .result { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 24px 24px; }
    .result__value { font-size: 40px; white-space: normal; }
    .result__caption { text-align: left; max-width: none; }
    .breakdown { padding: 8px 20px 20px; }
    .breakdown__bar { width: 140px; }
    .form { padding: 20px; }
    .feature, .timeline--panel { padding: 22px; }
    .cta { flex-direction: column; align-items: stretch; }
    .cta__button { text-align: center; }
    .footer__inner { flex-direction: column; gap: 24px; }
    .footer__cols { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
    .footer__report { grid-column: 1; grid-row: 1; }
    .footer__col:nth-child(1) { grid-column: 1; grid-row: 2; }
    .footer__col:nth-child(2) { grid-column: 1; grid-row: 3; }
    .footer__meta { grid-column: 1; grid-row: 4; }
    .footer__report.button--ghost { justify-self: stretch; width: 100%; }
    .footer__inner::after { display: none; }

    .section__head, .faq-section__head { flex-wrap: wrap; gap: 4px 16px; }

    .article-card { padding: 20px 40px 20px 22px; }

    .faq-topics,
    .hub-topics {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -20px;
        padding: 2px 20px;
        scroll-padding: 0 20px;
    }
    .faq-topics::-webkit-scrollbar,
    .hub-topics::-webkit-scrollbar { width: 0; height: 0; }
    .faq-topics__pill,
    .hub-topics__pill { flex: none; }

    .hub-tools__row { flex-wrap: wrap; gap: 10px; }
    .hub-tools__row .hub-search { flex: 1 1 100%; }

    .form__inline { flex-wrap: wrap; gap: 10px; }
    .form__inline-label { flex: 1 1 100%; }
    .form__inline > .form__field { flex: 1 1 100%; }

    .breakdown__actions { flex-direction: column; }
    .breakdown__actions .button { width: 100%; }

    .breakdown__total { padding: 14px 16px; }
    .breakdown__total-label { font-size: 15px; }
    .breakdown__total-value { font-size: 17px; white-space: nowrap; }

    .prose { padding: 24px 20px; border-radius: var(--r-card); }
    .prose h2 { font-size: 19px; margin-top: 26px; }
    .prose p, .prose li { font-size: 15px; }

    .const-card__help { width: 22px; height: 22px; position: relative; }
    .const-card__help::after {
        content: ""; position: absolute;
        top: -12px; right: -12px; bottom: -12px; left: -12px;
    }
    .const-card__tip { font-size: 14px; }
}
