:root {
  color: #091b36;
  background: #f5f7fb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #091b36;
  --muted: #617086;
  --blue: #0d6efd;
  --sky: #2998ff;
  --coral: #ff7f70;
  --line: rgba(9, 27, 54, .1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: #f7f8fa; }
button, input, select { font: inherit; }
a { color: inherit; }

.site-header,
.page,
.site-footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 145px; }
.header-links { display: flex; gap: 22px; color: #59677c; font-size: 13px; font-weight: 700; }
.header-links a { text-decoration: none; }

.breadcrumbs { margin: 16px 0 20px; color: #7a8799; font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.hero {
  padding: 42px 48px;
  border: 1px solid rgba(9, 27, 54, .08);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(112deg, #fff2ee 0%, #f7f6f7 48%, #e2efff 100%);
}
.eyebrow { margin: 0; color: #0867ee; font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 13px 0 0; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.052em; }
.hero-copy { max-width: 790px; margin: 18px 0 0; color: #586579; font-size: 17px; line-height: 1.5; }
.hero-badges { margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-badges li { padding: 8px 12px; border: 1px solid rgba(13, 110, 253, .12); border-radius: 999px; color: #145fae; background: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 750; }

.calculator-grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr); align-items: stretch; gap: 20px; }
.input-card,
.result-card { border-radius: 30px; }
.input-card { padding: 34px; background: #f0f1f3; }
.card-title { margin: 0 0 25px; font-size: 23px; letter-spacing: -.03em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-head { min-height: 20px; margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-head label { font-size: 13px; font-weight: 800; }
.field-note { color: #758094; font-size: 11px; }
.input-shell { position: relative; }
.input-shell input,
.input-shell select {
  width: 100%; height: 58px; padding: 0 48px 0 16px;
  border: 1px solid #d3d9e2; border-radius: 16px; outline: none;
  color: var(--ink); background: #fff; font-size: 18px; font-weight: 760;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input-shell input:focus,
.input-shell select:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41, 152, 255, .12); }
.input-shell select { appearance: none; cursor: pointer; }
.suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #5f6878; font-style: normal; font-weight: 700; pointer-events: none; }
.select-arrow { width: 8px; height: 8px; border-right: 2px solid #536072; border-bottom: 2px solid #536072; transform: translateY(-70%) rotate(45deg); }
.custom-select { z-index: 3; }
.custom-select.is-open { z-index: 30; }
.custom-select-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.custom-select-trigger { width: 100%; min-height: 58px; padding: 0 48px 0 16px; border: 1px solid #d3d9e2; border-radius: 16px; display: flex; align-items: center; color: var(--ink); background: #fff; text-align: left; font-size: 18px; font-weight: 760; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.custom-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-trigger > i { position: absolute; right: 19px; top: 50%; width: 9px; height: 9px; border-right: 2px solid #536072; border-bottom: 2px solid #536072; transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
.custom-select-trigger:hover { border-color: #b8c4d3; }
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41, 152, 255, .12); outline: none; }
.custom-select.is-open .custom-select-trigger > i { transform: translateY(-20%) rotate(225deg); }
.custom-select-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; left: 0; padding: 7px; border: 1px solid rgba(9, 27, 54, .1); border-radius: 16px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 44px rgba(9, 27, 54, .18); backdrop-filter: blur(14px); }
.custom-select-menu[hidden] { display: none; }
.custom-select-menu button { width: 100%; min-height: 48px; padding: 9px 12px; border: 0; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); background: transparent; text-align: left; font-size: 14px; line-height: 1.3; cursor: pointer; }
.custom-select-menu button:hover,
.custom-select-menu button:focus-visible { background: #eef6ff; outline: none; }
.custom-select-menu button[aria-selected="true"] { color: #075fc7; background: #e7f2ff; font-weight: 750; }
.custom-select-menu button i { width: 8px; height: 14px; flex: 0 0 auto; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); opacity: 0; transform: rotate(45deg) translate(-2px, 2px); }
.custom-select-menu button[aria-selected="true"] i { opacity: 1; }
.range { width: 100%; height: 20px; margin: 5px 0 0; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(to right, var(--sky) 0 var(--range-progress, 0%), #34383e var(--range-progress, 0%) 100%); }
.range::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -6px; border: 0; border-radius: 50%; appearance: none; background: var(--sky); box-shadow: 0 2px 7px rgba(41, 152, 255, .3); }
.range::-moz-range-track { height: 5px; border-radius: 99px; background: #34383e; }
.range::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--sky); }
.range::-moz-range-thumb { width: 17px; height: 17px; border: 0; border-radius: 50%; background: var(--sky); }
.range-meta { display: flex; align-items: center; justify-content: space-between; color: #677386; font-size: 10px; }
.range-meta strong { color: #0c2546; font-weight: 800; }
.field-help { display: block; margin-top: 7px; color: #748095; font-size: 11px; line-height: 1.4; }
.program-advanced { margin-top: 2px; }
.program-advanced summary {
  min-height: 52px; padding: 0 15px; border: 1px solid #d3d9e2; border-radius: 15px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 9px;
  color: var(--ink); background: #fff; font-size: 13px; font-weight: 800; list-style: none; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.program-advanced summary::-webkit-details-marker { display: none; }
.program-advanced summary > span { padding: 5px 8px; border-radius: 999px; color: #1768c4; background: #e9f3ff; font-size: 9px; font-weight: 650; }
.program-advanced summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #0d4d93; border-bottom: 2px solid #0d4d93; transform: rotate(45deg) translate(-2px, 2px); transition: transform .18s ease; }
.program-advanced[open] summary { border-color: rgba(41, 152, 255, .55); background: #eaf4ff; }
.program-advanced[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.program-advanced-body { padding: 18px 2px 2px; }
.program-advanced fieldset { margin: 18px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.program-advanced legend { grid-column: 1 / -1; margin-bottom: 1px; font-size: 12px; font-weight: 800; }
.strategy-option { min-height: 62px; padding: 11px 12px; border: 1px solid #d3d9e2; border-radius: 13px; display: flex; align-items: flex-start; gap: 9px; background: #fff; cursor: pointer; }
.strategy-option:has(input:checked) { border-color: var(--sky); background: #eef6ff; box-shadow: 0 0 0 2px rgba(41, 152, 255, .1); }
.strategy-option input { margin-top: 3px; accent-color: var(--blue); }
.strategy-option span, .strategy-option strong, .strategy-option small { display: block; }
.strategy-option strong { font-size: 12px; }
.strategy-option small { margin-top: 3px; color: #748095; font-size: 10px; line-height: 1.35; }

.result-card {
  min-width: 0; padding: 36px 38px; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(41, 152, 255, .35), transparent 20rem), linear-gradient(145deg, #071b38, #0b2d55);
  box-shadow: 0 24px 54px rgba(8, 29, 59, .15);
}
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-kicker { color: #aab9ca; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-badge { padding: 7px 9px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .12); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.result-value { display: block; margin-top: 12px; font-size: clamp(46px, 6vw, 68px); line-height: 1; letter-spacing: -.055em; }
.income { margin: 13px 0 0; color: #b5c2d1; font-size: 13px; }
.income strong { color: #fff; }
.limit-status { margin-top: 22px; padding: 13px 15px; border-left: 2px solid var(--sky); color: #dfe9f5; background: rgba(255, 255, 255, .09); font-size: 12px; line-height: 1.45; }
.limit-status.good { border-color: #5bd5aa; }
.limit-status.warning { border-color: #ffba57; background: rgba(255, 171, 61, .13); }
.limit-status.bad { border-color: #ff7f70; background: rgba(255, 127, 112, .14); }
.result-divider { height: 1px; margin: 24px 0 10px; background: rgba(255, 255, 255, .13); }
.program-composition { padding: 7px 0 4px; }
.composition-title { margin: 0 0 12px; text-align: center; color: #aebccd; font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.composition-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 22px; }
.program-donut {
  --principal-share: 58%;
  position: relative; width: 150px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; cursor: default;
  background: conic-gradient(var(--sky) 0 var(--principal-share), #79bdf6 var(--principal-share) 100%);
  transition: transform .25s ease, filter .25s ease;
}
.program-donut::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: #0a2344; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.program-donut-center { position: relative; z-index: 1; display: grid; justify-items: center; }
.program-donut-center span { color: #9fb0c3; font-size: 10px; }
.program-donut-center strong { margin-top: 2px; color: #fff; font-size: 18px; }
.program-donut.is-building { animation: program-donut-build .8s cubic-bezier(.22, 1, .36, 1); }
.program-donut.is-waiting { opacity: .001; transform: scale(.76) rotate(-45deg); }
.program-donut.show-principal { filter: drop-shadow(0 8px 16px rgba(41, 152, 255, .18)); }
.program-donut.show-interest { filter: drop-shadow(0 8px 16px rgba(121, 189, 246, .15)); }
@keyframes program-donut-build { from { opacity: .05; transform: scale(.72) rotate(-70deg); } 70% { transform: scale(1.035) rotate(0); } to { opacity: 1; transform: scale(1) rotate(0); } }
.program-donut-info { min-width: 0; display: grid; gap: 8px; }
.program-donut-info button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; display: flex; align-items: center; gap: 8px; color: #b8c5d4; background: rgba(255, 255, 255, .055); text-align: left; font-size: 11px; cursor: pointer; transition: color .18s ease, background .18s ease; }
.program-donut-info button:hover,
.program-donut-info button:focus-visible,
.program-donut-info button.is-active { color: #fff; background: rgba(255, 255, 255, .095); outline: none; }
.principal-dot, .interest-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--sky); }
.interest-dot { background: #79bdf6; }
.program-donut-info p { min-height: 31px; margin: 2px 0 0; color: #9fb0c3; font-size: 10px; line-height: 1.3; }
.program-donut-info p strong { display: block; margin-top: 2px; color: #fff; font-size: 14px; }
.metrics { margin: 0; }
.metric { min-height: 51px; border-bottom: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.metric dt { color: #aebccd; font-size: 13px; }
.metric dd { margin: 0; text-align: right; font-size: 15px; font-weight: 800; }
.result-actions { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-actions a,
.result-actions button { min-height: 50px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; display: grid; place-items: center; color: #fff; background: transparent; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.result-actions .primary { border-color: var(--sky); background: var(--sky); }
.result-actions #shareButton { border-color: var(--coral); color: var(--ink); background: var(--coral); }
.disclaimer { margin: 16px 0 0; color: #7890a9; font-size: 9px; line-height: 1.5; }

.program-schedule { margin-top: 26px; padding: 40px 44px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: 0 20px 48px rgba(9, 27, 54, .06); overflow: hidden; }
.program-schedule-head { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.program-schedule-head h2 { margin: 8px 0 0; font-size: 32px; letter-spacing: -.04em; }
.program-schedule-head p:last-child { max-width: 630px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.program-chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; color: #5f6c80; font-size: 11px; }
.program-chart-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.program-chart-shell { position: relative; padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: 24px; background: #fbfcfe; }
.program-chart { width: 100%; height: auto; display: block; overflow: visible; }
#programChartGrid line { stroke: rgba(9, 27, 54, .08); stroke-width: 1; }
#programChartLabels text { fill: #68758a; font-size: 11px; }
#programChartLabels .y-label { font-size: 10px; }
.program-chart-area { transform-box: fill-box; transform-origin: center bottom; }
.program-chart-principal { fill: var(--sky); fill-opacity: .9; }
.program-chart-interest { fill: #79bdf6; fill-opacity: .82; }
.program-chart.is-rising .program-chart-area { animation: program-chart-rise .85s cubic-bezier(.22, 1, .36, 1) both; }
.program-chart.is-rising .program-chart-interest { animation-delay: .08s; }
.program-chart.is-waiting .program-chart-area { opacity: .001; transform: scaleY(.02); }
@keyframes program-chart-rise { from { opacity: .08; transform: scaleY(.02); } to { opacity: 1; transform: scaleY(1); } }
.program-chart-cursor { stroke: #0b2d55; stroke-width: 1.4; stroke-dasharray: 4 4; pointer-events: none; }
.program-crossover-marker { cursor: help; outline: none; }
.program-crossover-halo { fill: rgba(255, 127, 112, .24); stroke: rgba(255, 255, 255, .95); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: program-crossover-pulse 2.2s ease-in-out infinite; }
.program-crossover-dot { fill: var(--coral); stroke: #fff; stroke-width: 2; }
.program-crossover-marker:focus-visible .program-crossover-halo { stroke: var(--ink); stroke-width: 2; }
@keyframes program-crossover-pulse { 0%, 100% { transform: scale(.82); opacity: .58; } 50% { transform: scale(1.16); opacity: 1; } }
.program-crossover-tooltip { position: absolute; z-index: 12; width: min(310px, calc(100% - 32px)); padding: 11px 12px; border: 1px solid rgba(255, 127, 112, .34); border-radius: 11px; color: var(--ink); background: #fff; box-shadow: 0 16px 38px rgba(9, 27, 54, .16); font-size: 10px; line-height: 1.45; opacity: 0; visibility: hidden; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; transition: opacity .16s ease, visibility .16s ease, transform .16s ease; }
.program-crossover-tooltip strong { display: block; margin-bottom: 3px; font-size: 11px; }
.program-crossover-tooltip.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, calc(-100% - 18px)); }
.program-chart-control { width: calc(100% - 56px); height: 24px; margin: -1px 0 0 56px; appearance: none; background: transparent; cursor: pointer; }
.program-chart-control::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: #34383e; }
.program-chart-control::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -6px; border: 0; border-radius: 50%; appearance: none; background: var(--sky); box-shadow: 0 2px 7px rgba(41, 152, 255, .3); }
.program-chart-control::-moz-range-track { height: 5px; border-radius: 999px; background: #34383e; }
.program-chart-control::-moz-range-thumb { width: 17px; height: 17px; border: 0; border-radius: 50%; background: var(--sky); }
.program-chart-focus { min-height: 20px; margin: 7px 0 0; text-align: center; color: #566377; font-size: 11px; line-height: 1.45; }
.program-chart-focus strong { color: var(--ink); }
.program-schedule-actions { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.program-schedule-actions button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); background: #fff; box-shadow: 0 1px 0 rgba(9, 27, 54, .04); font-size: 11px; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.program-schedule-actions button:hover { border-color: rgba(41, 152, 255, .48); color: #075fc7; background: #eef6ff; transform: translateY(-1px); }
.program-schedule-actions button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.program-schedule-actions svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.program-schedule-actions .report-error-action { color: #d5504c; }
.program-schedule-actions .report-error-action svg { stroke: #ff665f; }
.program-schedule-actions .report-error-action:hover { border-color: rgba(255, 102, 95, .45); color: #b53b36; background: #fff5f4; }
.program-schedule-action-status { min-height: 15px; margin: 6px 2px -5px; color: #168760; font-size: 10px; }
.program-schedule-action-status.is-error { color: #b12e25; }
.program-schedule-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.program-schedule-table { width: 100%; min-width: 780px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.program-schedule-table th,
.program-schedule-table td { padding: 12px 13px; border-bottom: 1px solid rgba(9, 27, 54, .09); text-align: right; font-size: 11px; white-space: nowrap; }
.program-schedule-table th { color: var(--muted); background: rgba(9, 27, 54, .035); font-weight: 650; }
.program-schedule-table th:nth-child(2),
.program-schedule-table td:nth-child(2) { text-align: left; }
.program-schedule-table tbody tr:hover { background: #eef6ff; }
.program-schedule-table .schedule-gap td { padding: 9px 13px; color: var(--muted); background: rgba(9, 27, 54, .025); text-align: center; font-size: 10px; }
.program-schedule-table tfoot td { border-bottom: 0; color: var(--ink); background: #eaf4ff; font-weight: 750; }
.program-schedule-toggle { min-height: 42px; margin: 14px auto 0; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; display: block; color: #075fc7; background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.program-schedule-toggle:hover { background: #f4f7fb; }

.info-section { margin-top: 26px; padding: 42px 46px; border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.info-section h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.info-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; }
.info-block h3 { margin: 0 0 9px; font-size: 16px; }
.info-block p,
.info-block li { color: #5f6d81; font-size: 14px; line-height: 1.6; }
.info-block p { margin: 0; }
.info-block ul { margin: 0; padding-left: 19px; }
.sources { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); color: #788497; font-size: 11px; line-height: 1.6; }
.sources a { color: #1768c4; }
.seo-content { margin-top: 26px; display: grid; gap: 18px; }
.seo-content-intro,
.seo-section,
.faq-section { border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.seo-content-intro { padding: 42px 46px; background: linear-gradient(120deg, #fff8f5 0%, #fff 48%, #edf5ff 100%); }
.seo-content h2 { margin: 0 0 16px; color: var(--ink); font-size: clamp(25px, 3vw, 32px); line-height: 1.08; letter-spacing: -.035em; }
.seo-content p,
.seo-content li { color: #5f6d81; font-size: 14px; line-height: 1.68; }
.seo-content p { margin: 0 0 12px; }
.seo-content p:last-child { margin-bottom: 0; }
.seo-content-intro .eyebrow,
.faq-section .eyebrow,
.limit-explainer .eyebrow { margin-bottom: 10px; color: #0b6ee8; font-size: 10px; line-height: 1.2; }
.seo-section { padding: 38px 42px; }
.conditions-grid { margin: 24px 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.conditions-grid div { min-height: 98px; padding: 17px 18px; border: 1px solid #dce6f2; border-radius: 17px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: #f8fbff; }
.conditions-grid span { color: #6b788c; font-size: 11px; line-height: 1.35; }
.conditions-grid strong { color: var(--ink); font-size: 19px; letter-spacing: -.025em; }
.seo-note { padding: 15px 17px; border-left: 3px solid var(--sky); background: #eef6ff; font-size: 12px !important; }
.seo-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.limit-explainer { background: linear-gradient(135deg, #081d3b, #0d3768); box-shadow: 0 20px 45px rgba(9, 30, 61, .12); }
.limit-explainer h2 { color: #fff; }
.limit-explainer p { color: #bac8d8; }
.seo-cta { width: fit-content; min-height: 44px; margin-top: 18px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-size: 12px; font-weight: 750; }
.seo-cta:hover { border-color: var(--sky); background: rgba(41, 152, 255, .14); }
.text-link { display: inline-block; margin-top: 8px; color: #086cdc; font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.accuracy-block { border-left: 4px solid var(--coral); }
.faq-section { padding: 42px 46px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe; overflow: hidden; }
.faq-list summary { min-height: 66px; padding: 16px 46px 16px 18px; position: relative; display: flex; align-items: center; color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1.35; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; width: 24px; height: 24px; position: absolute; right: 15px; top: 50%; border-radius: 50%; display: grid; place-items: center; color: #086cdc; background: #e7f2ff; font-size: 18px; font-weight: 500; transform: translateY(-50%); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] { border-color: #bcd8f6; background: #fff; }
.faq-list details p { margin: 0; padding: 0 18px 18px; font-size: 12px; }
.seo-content > .sources { margin: 0; padding: 21px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.rural-coverage {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid #dce4ee;
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 5%, rgba(41, 152, 255, .12), transparent 24%),
    linear-gradient(135deg, #fffaf8 0%, #f4f8ff 100%);
  box-shadow: 0 22px 60px rgba(9, 27, 54, .08);
}
.rural-coverage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.rural-coverage-head > div { max-width: 850px; }
.rural-coverage h2 { margin: 8px 0 14px; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.rural-coverage-head p:not(.eyebrow),
.coverage-regions > p { margin: 0; color: #596579; font-size: 17px; line-height: 1.55; }
.coverage-jump {
  flex: 0 0 auto;
  padding: 14px 20px;
  border: 1px solid #cdd8e6;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #0b63ce;
  font-weight: 800;
  text-decoration: none;
}
.coverage-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.coverage-types article {
  display: flex;
  gap: 14px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid #d9e3ee;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
}
.coverage-types h3,
.coverage-regions h3,
.coverage-check h3 { margin: 0 0 8px; color: #091b36; font-size: 20px; line-height: 1.2; }
.coverage-types p { margin: 0; color: #5b6678; line-height: 1.5; }
.coverage-icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e6f4ff;
  color: #0672df;
  font-weight: 900;
}
.coverage-warning .coverage-icon { background: #fff0eb; color: #ef654f; }
.coverage-regions { margin-top: 38px; }
.coverage-regions > h3 { font-size: clamp(26px, 3vw, 36px); }
.coverage-districts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.coverage-districts details {
  overflow: hidden;
  border: 1px solid #d9e3ee;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}
.coverage-districts summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #0b1f3a;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.coverage-districts summary::-webkit-details-marker { display: none; }
.coverage-districts summary::after { content: "+"; color: #1686f3; font-size: 24px; line-height: 1; }
.coverage-districts details[open] summary::after { content: "−"; }
.coverage-districts summary span { margin-left: auto; color: #7b8798; font-size: 12px; font-weight: 700; }
.coverage-districts p { margin: 0; padding: 0 20px 20px; color: #5b6678; font-size: 14px; line-height: 1.55; }
.coverage-check {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  margin-top: 32px;
  padding: 28px;
  border-radius: 24px;
  background: #091f3d;
  color: #fff;
}
.coverage-check h3 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.coverage-check ol { display: grid; gap: 8px; margin: 18px 0 0; padding-left: 22px; color: #dbe8f8; line-height: 1.5; }
.coverage-callout { align-self: stretch; margin: 0; padding: 22px; border-left: 3px solid #2998ff; background: rgba(255,255,255,.09); color: #dce8f8; line-height: 1.55; }
.coverage-callout strong { color: #fff; }
.maternal-ways {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid #dce4ee;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 4%, rgba(41, 152, 255, .14), transparent 25%),
    linear-gradient(135deg, #fff9f6 0%, #f1f7ff 100%);
  box-shadow: 0 22px 60px rgba(9, 27, 54, .08);
}
.maternal-ways-head { max-width: 900px; }
.maternal-ways h2 { margin: 8px 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.03; letter-spacing: -.045em; }
.maternal-ways-head > p:not(.eyebrow) { margin: 0; color: #596579; font-size: 17px; line-height: 1.55; }
.maternal-way-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.maternal-way-grid article { min-height: 245px; padding: 25px; border: 1px solid #dae4f0; border-radius: 22px; display: flex; flex-direction: column; background: rgba(255,255,255,.86); }
.maternal-way-grid article > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #0874df; background: #e6f3ff; font-size: 12px; font-weight: 900; }
.maternal-way-grid h3 { margin: 22px 0 10px; color: #091b36; font-size: 21px; line-height: 1.2; }
.maternal-way-grid p { margin: 0 0 20px; color: #5b6678; line-height: 1.55; }
.maternal-way-grid strong,
.maternal-way-grid a { margin-top: auto; color: #0874df; font-size: 12px; font-weight: 850; text-decoration: none; }
.maternal-way-important { color: #fff; background: linear-gradient(145deg, #092143, #10477f) !important; }
.maternal-way-important > span { color: #ff806f !important; background: rgba(255,255,255,.13) !important; }
.maternal-way-important h3 { color: #fff; }
.maternal-way-important p { color: #c5d3e4; }
.maternal-way-important strong { color: #fff; }
.maternal-steps { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 32px; margin-top: 32px; padding: 28px; border-radius: 24px; background: #fff; }
.maternal-steps h3 { margin: 8px 0 0; color: #091b36; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.maternal-steps ol { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; counter-reset: steps; }
.maternal-steps li { min-width: 0; padding-left: 42px; position: relative; display: flex; flex-direction: column; gap: 5px; color: #0a1f3a; counter-increment: steps; }
.maternal-steps li::before { content: counter(steps); width: 30px; height: 30px; position: absolute; left: 0; top: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2998ff; font-size: 11px; font-weight: 900; }
.maternal-steps li strong { font-size: 13px; }
.maternal-steps li span { color: #667285; font-size: 12px; line-height: 1.45; }
.site-footer { padding: 30px 0 40px; display: flex; justify-content: space-between; gap: 20px; color: #7b8798; font-size: 12px; }
.site-footer a { text-decoration: none; }

@media (max-width: 900px) {
  .calculator-grid { grid-template-columns: 1fr; }
  .result-card { min-height: auto; }
  .program-schedule-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .program-chart-legend { justify-content: flex-start; }
  .conditions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-columns { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, .page, .site-footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 62px; }
  .brand img { width: 124px; }
  .header-links a:first-child { display: none; }
  .breadcrumbs { margin: 8px 0 14px; }
  .hero { padding: 26px 20px; border-radius: 24px; }
  .hero h1 { font-size: 36px; }
  .hero-copy { font-size: 14px; }
  .hero-badges li { font-size: 10px; }
  .calculator-grid { margin-top: 14px; gap: 14px; }
  .input-card, .result-card { padding: 22px 20px; border-radius: 24px; }
  .fields { grid-template-columns: 1fr; gap: 19px; }
  .field.full { grid-column: auto; }
  .input-shell select { font-size: 15px; }
  .custom-select-trigger { font-size: 15px; }
  .custom-select-menu button { min-height: 52px; font-size: 13px; }
  .program-advanced fieldset { grid-template-columns: 1fr; }
  .result-value { font-size: 48px; }
  .composition-body { grid-template-columns: 132px minmax(0, 1fr); gap: 15px; }
  .program-donut { width: 132px; }
  .program-donut-info button { padding-inline: 8px; }
  .result-actions { grid-template-columns: 1fr; }
  .program-schedule { margin-top: 14px; padding: 25px 14px 18px; border-radius: 24px; }
  .program-schedule-head { padding-inline: 6px; margin-bottom: 17px; }
  .program-schedule-head h2 { font-size: 28px; }
  .program-chart-shell { padding: 12px 8px 10px; border-radius: 20px; }
  .program-chart-control { width: calc(100% - 48px); margin-left: 48px; }
  .program-chart-focus { padding-inline: 5px; font-size: 10px; }
  .program-schedule-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .program-schedule-actions button { width: 100%; min-width: 0; padding-inline: 8px; font-size: 10px; }
  #programSaveButton,
  #programPrintButton,
  #programPdfButton { display: none; }
  .program-schedule-table-wrap { overflow: visible; border: 0; background: transparent; }
  .program-schedule-table { width: 100%; min-width: 0; display: block; }
  .program-schedule-table thead { display: none; }
  .program-schedule-table tbody,
  .program-schedule-table tfoot { width: 100%; display: block; }
  .program-schedule-table tbody tr:not(.schedule-gap),
  .program-schedule-table tfoot tr { width: 100%; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; }
  .program-schedule-table td { width: auto; min-width: 0; padding: 11px 12px; display: block; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: normal; }
  .program-schedule-table tbody tr:not(.schedule-gap) td:nth-child(odd) { border-right: 1px solid rgba(9, 27, 54, .08); }
  .program-schedule-table tbody tr:not(.schedule-gap) td:nth-child(-n + 2) { background: #f7f8fa; }
  .program-schedule-table td::before { margin-bottom: 4px; display: block; color: var(--muted); font-size: 8px; font-weight: 550; letter-spacing: .05em; text-transform: uppercase; }
  .program-schedule-table td:nth-child(1)::before { content: "Платёж №"; }
  .program-schedule-table td:nth-child(2)::before { content: "Месяц"; }
  .program-schedule-table td:nth-child(3)::before { content: "Сумма платежа"; }
  .program-schedule-table td:nth-child(4)::before { content: "Основной долг"; }
  .program-schedule-table td:nth-child(5)::before { content: "Проценты"; }
  .program-schedule-table td:nth-child(6)::before { content: "Остаток долга"; }
  .program-schedule-table .schedule-gap { width: 100%; margin: 2px 0 12px; display: block; }
  .program-schedule-table .schedule-gap td { width: 100%; border: 1px dashed var(--line); border-radius: 12px; display: block; }
  .program-schedule-table .schedule-gap td::before { display: none; }
  .program-schedule-table tfoot td:first-child { display: none; }
  .program-schedule-table tfoot td:nth-child(2) { grid-column: 1 / -1; font-size: 13px; }
  .program-schedule-table tfoot td:nth-child(2)::before { display: none; }
  .program-schedule-table tfoot td:nth-child(odd) { border-right: 1px solid rgba(9, 27, 54, .08); }
  .info-section { margin-top: 14px; padding: 28px 20px; border-radius: 24px; }
  .info-section h2 { font-size: 25px; }
  .info-grid { grid-template-columns: 1fr; gap: 24px; }
  .seo-content { margin-top: 14px; gap: 12px; }
  .seo-content-intro,
  .seo-section,
  .faq-section { padding: 27px 20px; border-radius: 23px; }
  .seo-content h2 { font-size: 25px; }
  .seo-content p,
  .seo-content li { font-size: 13px; line-height: 1.6; }
  .conditions-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .conditions-grid div { min-height: 88px; padding: 14px; }
  .conditions-grid strong { font-size: 16px; }
  .faq-list { grid-template-columns: 1fr; }
  .faq-list summary { min-height: 60px; font-size: 12px; }
  .seo-content > .sources { padding: 18px 19px; }
  .rural-coverage { margin-top: 14px; padding: 22px 16px; border-radius: 24px; }
  .rural-coverage-head { display: block; }
  .rural-coverage h2 { font-size: 34px; }
  .rural-coverage-head p:not(.eyebrow),
  .coverage-regions > p { font-size: 14px; }
  .coverage-jump { display: inline-flex; margin-top: 18px; padding: 11px 16px; font-size: 13px; }
  .coverage-types,
  .coverage-districts,
  .coverage-check { grid-template-columns: 1fr; }
  .coverage-types { margin-top: 24px; }
  .coverage-types article { min-height: 0; padding: 18px; }
  .coverage-districts summary { padding: 16px; }
  .coverage-districts p { padding: 0 16px 16px; }
  .coverage-check { padding: 22px 18px; }
  .maternal-ways { margin-top: 14px; padding: 22px 16px; border-radius: 24px; }
  .maternal-ways h2 { font-size: 34px; }
  .maternal-ways-head > p:not(.eyebrow) { font-size: 14px; }
  .maternal-way-grid,
  .maternal-steps,
  .maternal-steps ol { grid-template-columns: 1fr; }
  .maternal-way-grid article { min-height: 0; padding: 20px; }
  .maternal-steps { padding: 22px 18px; gap: 24px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header,
  .breadcrumbs,
  .hero,
  .input-card,
  .result-actions,
  .program-schedule-actions,
  .program-schedule-action-status,
  .program-schedule-toggle,
  .rural-coverage,
  .maternal-ways,
  .info-section,
  .seo-content,
  .site-footer { display: none !important; }
  body { background: #fff; }
  .page { width: 100%; }
  .calculator-grid { display: block; }
  .result-card { color: #000; background: #fff; box-shadow: none; }
  .result-card * { color: #000 !important; }
  .program-schedule { padding: 0; border: 0; box-shadow: none; }
}
