:root {
    --bg: #fafafa;
    --bg-accent: #f7f7f8;
    --surface: #ffffff;
    --ink: #111111;
    --muted: #6b6b6f;
    --line: #e2e2e5;
    --brand: #1d4e9e;
    --brand-hover: #1962fb;
    --brand-dark: #164080;
    --ok: #1f7a4d;
    --err: #9b2c2c;
    --warn: #8a5a00;
    --shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
    --radius: 16px;
    --radius-pill: 100px;
    --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
    color-scheme: light;
}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.main { padding: 1.75rem 0 3rem; }
.page-title {
    margin: 0 0 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
}
.brand__logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.brand__logo--auth {
    height: 48px;
    max-width: 240px;
    margin: 0 auto 0.5rem;
}
.brand__text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--brand);
}
.brand__text--auth {
    display: block;
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar__inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
.nav a,
.nav-dropdown__toggle {
    text-decoration: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav a.is-active,
.nav a:hover,
.nav-dropdown__toggle.is-active,
.nav-dropdown__toggle:hover,
.nav-dropdown.is-open .nav-dropdown__toggle {
    color: var(--brand);
    background: var(--bg-accent);
}
.nav-dropdown {
    position: relative;
}
.nav-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-dropdown__caret {
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.15s ease;
}
.nav-dropdown.is-open .nav-dropdown__caret {
    transform: rotate(-135deg) translateY(-1px);
}
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 13.5rem;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: none;
    z-index: 120;
}
.nav-dropdown.is-open .nav-dropdown__menu {
    display: grid;
    gap: 0.15rem;
}
.nav-dropdown__menu a {
    display: block;
    border-radius: 10px;
    white-space: nowrap;
}
.topbar__user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.page--auth {
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 100%);
}
.auth { width: min(440px, 100%); }
.auth--legal { width: min(720px, 100%); }
.auth__panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem;
}
.auth__title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
}
.auth__footer { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; text-align: center; }

.legal { font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
.legal h2 {
    margin: 1.4rem 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.legal h3 {
    margin: 1rem 0 0.4rem;
    font-size: 0.98rem;
    font-weight: 650;
}
.legal p { margin: 0 0 0.7rem; }
.legal ul {
    margin: 0 0 0.7rem;
    padding-left: 1.2rem;
}
.legal li { margin-bottom: 0.3rem; }
.legal a { color: var(--brand); }
.legal__back { margin-top: 1.5rem; }

.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
}
.cookie-notice[hidden] { display: none !important; }
.cookie-notice__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.cookie-notice__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}
.cookie-notice__text a {
    color: #bfdbfe;
    text-decoration: underline;
}
.cookie-notice__btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
}
.contact-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.contact-list__item {
    display: grid;
    gap: 0.2rem;
}
.contact-list__label {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}
.contact-list__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
    word-break: break-word;
}
.contact-list__value--phone {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    -webkit-tap-highlight-color: transparent;
}

.panel h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field[hidden] { display: none !important; }
.field > span { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1rem;
    font: inherit;
    background: var(--bg);
    color: var(--ink);
    color-scheme: light;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.15rem),
        calc(100% - 0.85rem) calc(50% - 0.15rem);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
    cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 78, 158, 0.12);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
}
.field textarea { border-radius: 16px; resize: vertical; }
.field input[type="file"] {
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    background: var(--surface);
}

.password-input {
    position: relative;
    display: block;
}
.password-input input {
    padding-right: 5.75rem;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    cursor: pointer;
}
.password-toggle:hover {
    background: rgba(29, 78, 158, 0.08);
}
.password-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.25rem;
}
.password-field-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 1.35rem;
}
.password-generate {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.15rem 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}
.password-generate:hover,
.password-generate:focus-visible {
    color: var(--brand-hover);
}
.password-generate:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.field--password[hidden],
.field--password-hidden {
    display: none !important;
}
.password-strength[hidden] {
    display: none !important;
}
.password-strength__label {
    color: var(--err);
    font-size: 0.85rem;
    font-weight: 600;
}
.password-criteria-info {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.password-criteria-info__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.password-criteria-info__trigger:hover,
.password-criteria-info__trigger:focus-visible,
.password-criteria-info:hover .password-criteria-info__trigger,
.password-criteria-info--open .password-criteria-info__trigger {
    color: var(--brand);
    background: rgba(29, 78, 158, 0.08);
}
.password-criteria-info__popover {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%);
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.password-criteria-info__title {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
}
.password-criteria-info:hover .password-criteria-info__popover,
.password-criteria-info--open .password-criteria-info__popover,
.password-criteria-info__trigger:focus-visible + .password-criteria-info__popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.password-criteria-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.password-criteria-list__item {
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: 0.45rem;
    align-items: start;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
}
.password-criteria-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
.password-criteria-list__item--ok {
    color: var(--ok);
}
.password-criteria-list__item--ok .password-criteria-list__icon {
    color: var(--ok);
}
.password-criteria-list__item--fail {
    color: var(--err);
}
.password-criteria-list__item--fail .password-criteria-list__icon {
    color: var(--err);
}

.custom-select {
    position: relative;
    width: 100%;
    min-width: 0;
}
.custom-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: none !important;
    box-shadow: none !important;
}
.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    font: inherit;
    text-align: left;
    background-color: var(--bg);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.15rem),
        calc(100% - 0.85rem) calc(50% - 0.15rem);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
    color: var(--ink);
    color-scheme: light;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.custom-select__trigger:hover:not(:disabled) {
    border-color: var(--brand);
}
.custom-select.is-open .custom-select__trigger,
.custom-select__trigger:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 78, 158, 0.12);
}
.custom-select__trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.custom-select__label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
}
.custom-select__menu {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    max-height: min(320px, 50vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.custom-select__option {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
.custom-select__option:hover,
.custom-select__option:focus {
    background: var(--bg-accent);
    color: var(--brand);
}
.custom-select__option.is-selected {
    background: #e8f1fb;
    color: var(--brand);
    font-weight: 600;
}
.custom-select__option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.date-input {
    position: relative;
}

.date-input__display {
    pointer-events: none;
}

.date-input__native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.date-input__native:focus {
    box-shadow: none;
}

.date-input__native::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; }
.doc-type {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin: 0;
    background: var(--bg);
}
.doc-type legend {
    padding: 0 0.35rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.doc-type .check { margin-top: 0.45rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.35rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    color-scheme: light;
}
.btn__spinner {
    display: none;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    flex: 0 0 auto;
}
.btn.is-loading .btn__spinner {
    display: inline-block;
}
.btn.is-loading,
.btn.is-loading:disabled {
    opacity: 1;
    cursor: wait;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
.btn--primary {
    background: var(--brand);
    color: #fff;
}
.btn--primary:hover:not(:disabled) {
    background: var(--brand-hover);
}
.btn--primary:active:not(:disabled) {
    background: var(--brand-dark);
}
.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
    font-weight: 500;
}
.btn--ghost:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand);
}
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.otp-resend-timer {
    font-variant-numeric: tabular-nums;
    min-width: 3rem;
}

.overdue-summary__amount {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.alert {
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid;
    font-size: 0.95rem;
}
.alert--ok { background: #e8f6ee; border-color: #b7dfc6; color: var(--ok); }
.alert--err { background: #fdecec; border-color: #f0b4b4; color: var(--err); }
.alert--warn { background: #fff6e5; border-color: #f0d39a; color: var(--warn); line-height: 1.5; }
.error { color: var(--err); font-size: 0.85rem; font-style: normal; }
.muted { color: var(--muted); }

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
    margin: 0;
}
.facts dt { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.facts dd { margin: 0.2rem 0 0; font-weight: 600; color: var(--ink); }

.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th,
.table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}
.table th {
    background: var(--bg);
    color: var(--muted);
    font-weight: 600;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
    line-height: 1.25;
    font-size: 0.85rem;
}
.table tr.schedule-row--past td { color: var(--muted); }
.table tr.schedule-row--active td { font-weight: 600; color: var(--ink); }

.schedule-mobile { display: none; }
.schedule-year-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-bottom: 0.85rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.schedule-year-chips::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.schedule-year-chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    min-height: 40px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color-scheme: light;
}
.schedule-year-chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.schedule-cards { display: block; }
.schedule-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    background: var(--bg);
    margin-bottom: 0.65rem;
}
.schedule-card[hidden] { display: none !important; }
.schedule-card:last-child { margin-bottom: 0; }
.schedule-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.schedule-card__num {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.schedule-card__date { font-size: 1rem; }
.schedule-card__annuity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.65rem;
}
.schedule-card__annuity-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}
.schedule-card__annuity-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}
.schedule-card__details {
    margin: 0 0 0.75rem;
    border: 0;
    background: transparent;
    overflow: visible;
}
.schedule-card__details > summary {
    list-style: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}
.schedule-card__details > summary::-webkit-details-marker { display: none; }
.schedule-card__details > summary::after {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex: 0 0 auto;
    margin-top: -0.15rem;
    text-decoration: none;
}
.schedule-card__details[open] > summary {
    text-decoration: none;
    margin-bottom: 0.45rem;
}
.schedule-card__details[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}
.schedule-card__breakdown {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    border: 0;
}
.schedule-card__breakdown dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}
.schedule-card__breakdown dd {
    margin: 0.1rem 0 0;
    font-weight: 600;
    font-size: 0.95rem;
}
.schedule-card__saldo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.15rem;
}
.schedule-card__saldo span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}
.schedule-card__saldo strong {
    font-size: 1rem;
    font-weight: 700;
}
.schedule-card--past {
    opacity: 0.78;
}
.schedule-card--past .schedule-card__date,
.schedule-card--past .schedule-card__annuity-value,
.schedule-card--past .schedule-card__saldo strong,
.schedule-card--past .schedule-card__breakdown dd {
    color: var(--muted);
    font-weight: 600;
}
.schedule-card--active {
    border-color: rgba(29, 78, 158, 0.35);
    background: #f3f7fc;
}

.tag {
    display: inline-block;
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.65rem;
    background: var(--bg-accent);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}
.tag--paid { background: #e8f6ee; color: var(--ok); }
.tag--upcoming { background: #e8f1fb; color: var(--brand); }
.tag--overdue { background: #fdecec; color: var(--err); }

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row .muted { display: block; font-size: 0.85rem; }

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 1.25rem 0;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.85rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }

@media (max-width: 720px) {
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-notice__btn { width: 100%; }
}

@media (max-width: 720px) {
    .container { width: min(1120px, calc(100% - 1.25rem)); }
    .main { padding: 1.25rem 0 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .topbar__inner { align-items: flex-start; gap: 0.75rem; }
    .nav {
        width: 100%;
        order: 3;
        gap: 0.35rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .nav a,
    .nav-dropdown__toggle {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
        min-height: 40px;
    }
    .nav-dropdown__menu {
        min-width: 12.5rem;
    }
    .page-title { font-size: 1.35rem; }
    .panel { padding: 1.1rem 1rem; }
    .facts { grid-template-columns: 1fr; }
    .list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .field input,
    .field select,
    .field textarea,
    .btn {
        min-height: 44px;
    }
    .field select {
        font-size: 16px; /* avoid iOS zoom on focus */
    }

    .schedule-table { display: none; }
    .schedule-mobile { display: block; }
}
