:root {
  --rent-blue: #2c98f6;
  --rent-sky: #75c6ff;
  --rent-coral: #ff7f70;
  --rent-mint: #5bd5aa;
  --rent-gold: #ffc85a;
}

.rental-header-links { gap: 12px; }
.rental-header-links .rental-newbuilds-button {
  min-height: 42px;
  padding: 0 18px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(13,110,253,.18);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg,#075bbd,#0d6efd 56%,#3ba9ff);
  box-shadow: 0 10px 24px rgba(13,110,253,.2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease,box-shadow .18s ease;
}
.rental-header-links .rental-newbuilds-button::before {
  content: "";
  width: 34%;
  position: absolute;
  inset: -35% auto -35% -45%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
  transform: skewX(-18deg);
  animation: rental-header-shimmer 3.8s ease-in-out infinite;
}
.rental-header-links .rental-newbuilds-button span { position: relative; }
.rental-header-links .rental-newbuilds-label { font-size: inherit; font-weight: inherit; }
.rental-header-links .rental-newbuilds-extra { font-size: inherit; font-weight: inherit; }
.rental-header-links .rental-newbuilds-arrow { margin-left: 2px; font-size: 17px; line-height: 1; transition: transform .18s ease; }
.header-links.rental-header-links a.rental-newbuilds-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13,110,253,.28);
}
.rental-header-links .rental-newbuilds-button:hover .rental-newbuilds-arrow { transform: translateX(3px); }
.rental-header-links .rental-newbuilds-button:focus-visible { outline: 3px solid rgba(13,110,253,.25); outline-offset: 3px; }

@keyframes rental-header-shimmer {
  0%,55% { left: -45%; opacity: 0; }
  62% { opacity: 1; }
  82%,100% { left: 118%; opacity: 0; }
}

@media (max-width: 680px) {
  .rental-header-links .rental-newbuilds-button:first-child { display: inline-flex; }
  .rental-header-links .rental-newbuilds-button {
    min-height: 40px;
    padding: 0 14px;
    gap: 8px;
    font-size: 10px;
  }
  .rental-header-links .rental-newbuilds-button { font-size: 10px; }
  .rental-header-links .rental-newbuilds-arrow { font-size: 14px; }
}

@media (max-width: 420px) {
  .site-header .brand img { width: 108px; }
  .rental-header-links .rental-newbuilds-button { min-height: 38px; padding: 0 11px; }
  .rental-header-links .rental-newbuilds-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rental-header-links .rental-newbuilds-button::before { animation: none; }
}

.rental-hero { background: linear-gradient(114deg, #fff4ef 0%, #f7f7f8 48%, #dfeeff 100%); }
.rental-grid { align-items: start; }
.rental-grid > * { height: auto; }
.section-label { margin: 0 0 7px; color: #0867ee; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.form-heading { margin-bottom: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.form-heading .card-title { margin: 0; }

.purchase-switch { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; background: #e3e8ef; }
.purchase-switch button { min-height: 40px; padding: 8px 11px; border: 0; border-radius: 11px; color: #5d6a7d; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.purchase-switch button.is-active { color: #091b36; background: #fff; box-shadow: 0 4px 13px rgba(9,27,54,.1); }
.purchase-switch button:focus-visible { outline: 3px solid rgba(41,152,255,.25); outline-offset: 2px; }

.rental-details { margin-top: 24px; border-top: 1px solid rgba(9,27,54,.12); }
.rental-details summary { min-height: 64px; display: flex; align-items: center; gap: 10px; color: #0a1e3b; font-size: 14px; font-weight: 850; cursor: pointer; list-style: none; }
.rental-details summary::-webkit-details-marker { display: none; }
.rental-details summary span { margin-left: auto; color: #647186; font-size: 10px; font-weight: 650; }
.rental-details summary::after { content: ""; width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid #0d5fab; border-bottom: 2px solid #0d5fab; transform: rotate(45deg) translate(-2px,2px); transition: transform .2s ease; }
.rental-details[open] summary::after { transform: rotate(225deg) translate(-1px,-1px); }
.rental-details-body { padding-bottom: 4px; }
.forecast-settings { margin-top: 20px; }
.tax-field { position: relative; }
.tax-field .custom-select { position: relative; }
.custom-tax-field[hidden] { display: none; }
.field-help { display: block; }
.vacancy-period-badge {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(44, 152, 246, .18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #075fc7 !important;
  background: #e3f1ff;
  font-family: inherit;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(44, 152, 246, 0);
  animation: vacancy-badge-pulse 2.4s ease-in-out infinite;
}
.vacancy-period-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
  background: #2c98f6;
  box-shadow: 0 0 0 4px rgba(44, 152, 246, .12);
}

.extra-expenses { margin-top: 24px; padding: 22px; position: relative; border: 1px solid rgba(13,110,253,.13); border-radius: 20px; overflow: hidden; background: linear-gradient(145deg,rgba(255,255,255,.74),rgba(231,241,252,.76)); }
.extra-expenses > *:not(.extra-expenses-watermark) { position: relative; z-index: 1; }
.extra-expenses-watermark { width: 190px; height: 190px; position: absolute; right: -40px; bottom: -53px; fill: none; stroke: #1674d0; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .045; transform: rotate(-8deg); pointer-events: none; }
.extra-expenses-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.extra-expenses-head span { color: #0867ee; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.extra-expenses-head h3 { margin: 5px 0 3px; font-size: 18px; letter-spacing: -.02em; }
.extra-expenses-head p { margin: 0; color: #627086; font-size: 11px; line-height: 1.45; }
.add-expense-button { min-height: 42px; padding: 8px 14px; border: 1px solid rgba(13,110,253,.25); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; color: #075fc7; background: rgba(255,255,255,.9); font-size: 11px; font-weight: 850; cursor: pointer; box-shadow: 0 5px 16px rgba(9,27,54,.06); }
.add-expense-button b { font-size: 18px; line-height: 1; }
.add-expense-button:hover { border-color: #2998ff; background: #fff; transform: translateY(-1px); }
.add-expense-button:focus-visible,.expense-delete:focus-visible,.expense-period button:focus-visible { outline: 3px solid rgba(41,152,255,.25); outline-offset: 2px; }
.extra-expenses-list { margin-top: 17px; display: grid; gap: 12px; }
.extra-expense-card { padding: 17px; position: relative; border: 1px solid rgba(9,27,54,.11); border-radius: 17px; overflow: hidden; background: rgba(255,255,255,.93); box-shadow: 0 8px 22px rgba(9,27,54,.045); }
.expense-card-watermark { width: 88px; height: 88px; position: absolute; right: -13px; bottom: -21px; fill: none; stroke: #1169bf; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .045; pointer-events: none; }
.extra-expense-card > *:not(.expense-card-watermark) { position: relative; z-index: 1; }
.extra-expense-title { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.extra-expense-title strong { color: #0a1e3b; font-size: 12px; }
.expense-delete { min-height: 32px; padding: 5px 10px; border: 1px solid rgba(213,75,64,.2); border-radius: 999px; color: #c7463d; background: #fff8f7; font-size: 10px; font-weight: 800; cursor: pointer; }
.expense-delete:hover { border-color: rgba(213,75,64,.45); background: #fff2f0; }
.extra-expense-grid { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 12px; }
.extra-expense-grid label { min-width: 0; }
.extra-expense-grid label > span,.expense-period > span { margin-bottom: 6px; display: block; color: #536174; font-size: 10px; font-weight: 750; }
.extra-expense-grid input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d3d9e2; border-radius: 13px; outline: none; color: var(--ink); background: #fff; font-size: 14px; font-weight: 720; }
.extra-expense-grid input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41,152,255,.11); }
.expense-amount-shell { position: relative; }
.expense-amount-shell input { padding-right: 35px; font-size: 16px; }
.expense-amount-shell i { position: absolute; right: 13px; top: 50%; color: #667286; font-style: normal; font-weight: 750; transform: translateY(-50%); }
.expense-period { margin-top: 12px; }
.expense-period-buttons { padding: 4px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; border-radius: 13px; background: #e9edf3; }
.expense-period button { min-height: 38px; padding: 7px 9px; border: 0; border-radius: 10px; color: #5a687c; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.expense-period button.is-active { color: #fff; background: #0b68c7; box-shadow: 0 4px 12px rgba(11,104,199,.2); }
.extra-expenses-empty { margin: 16px 0 0; padding: 13px 15px; border: 1px dashed rgba(9,27,54,.14); border-radius: 13px; color: #6b788b; background: rgba(255,255,255,.5); font-size: 11px; text-align: center; }
.extra-expenses-empty[hidden] { display: none; }

.mortgage-panel { margin-top: 0; padding: 22px; grid-column: 1 / -1; border: 1px solid rgba(13,110,253,.16); border-radius: 20px; background: #eaf4ff; }
.mortgage-panel[hidden] { display: none; }
.panel-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.panel-heading span { color: #0867ee; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.panel-heading h3 { margin: 5px 0 0; font-size: 19px; }
.panel-heading small { max-width: 190px; color: #5d6b80; font-size: 10px; line-height: 1.4; text-align: right; }
.unit-toggle { padding: 3px; display: inline-flex; gap: 2px; border-radius: 999px; background: #dbe6f2; }
.unit-toggle button { min-width: 42px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; color: #556175; background: transparent; font: inherit; font-weight: 900; cursor: pointer; }
.unit-toggle button.is-active { color: #fff; background: #0869c7; box-shadow: 0 4px 12px rgba(8,105,199,.2); }
.unit-toggle button:focus-visible { outline: 3px solid rgba(43,152,247,.32); outline-offset: 2px; }

.rental-result { background: radial-gradient(circle at 100% 0, rgba(41,152,255,.35), transparent 22rem), linear-gradient(150deg,#061a36,#0a2d58); }
.rental-result .result-value { color: #fff; }
.rental-result.is-mortgage .result-value { font-size: clamp(38px, 5vw, 58px); }
.rental-result.is-mortgage .result-value.positive { color: #65e4b6; }
.rental-result.is-mortgage .result-value.negative { color: #ff9e94; }
.rental-structure { margin-top: 24px; padding: 21px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.rental-structure .composition-title { text-align: left; }
.structure-body { display: grid; grid-template-columns: 154px minmax(0,1fr); align-items: center; gap: 24px; }
.rental-donut { --net-stop: 72%; --bank-stop: 72%; --expenses-stop: 88%; --tax-stop: 96%; width: 150px; aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--rent-mint) 0 var(--net-stop),#9b83ff var(--net-stop) var(--bank-stop),var(--rent-sky) var(--bank-stop) var(--expenses-stop),var(--rent-gold) var(--expenses-stop) var(--tax-stop),var(--rent-coral) var(--tax-stop) 100%); transition: transform .22s ease; }
.rental-donut::before { content: ""; position: absolute; inset: 29px; border-radius: 50%; background: #0a2448; }
.rental-donut.is-waiting { background: conic-gradient(rgba(255,255,255,.13) 0 100%); }
.rental-donut.is-building { animation: donut-build .9s cubic-bezier(.22,1,.36,1) both; }
.donut-center { max-width: 92px; position: relative; z-index: 1; text-align: center; }
.donut-center span { display: block; color: rgba(255,255,255,.67); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.donut-center strong { display: block; margin-top: 5px; color: #fff; font-size: 14px; line-height: 1.15; overflow-wrap: anywhere; }
.rental-legend { display: grid; gap: 7px; }
.rental-legend button { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid transparent; border-radius: 11px; display: grid; grid-template-columns: 9px minmax(0,1fr); gap: 9px; color: #fff; background: rgba(255,255,255,.055); text-align: left; cursor: pointer; }
.rental-legend button:hover,.rental-legend button:focus-visible { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.1); outline: none; }
.rental-legend i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; }
.rental-legend span { min-width: 0; color: rgba(255,255,255,.68); font-size: 10px; }
.rental-legend strong { display: block; margin-top: 3px; color: #fff; font-size: 13px; overflow-wrap: anywhere; }
.net-dot { background: var(--rent-mint); }.bank-dot { background: #9b83ff; }.expenses-dot { background: var(--rent-sky); }.tax-dot { background: var(--rent-gold); }.vacancy-dot { background: var(--rent-coral); }
.mortgage-result-card { margin-top: 20px; padding: 18px; border: 1px solid rgba(117,198,255,.2); border-radius: 16px; background: linear-gradient(145deg,rgba(66,154,245,.13),rgba(255,255,255,.055)); }
.mortgage-result-card[hidden] { display: none; }
.mortgage-result-card .composition-title { text-align: left; }
.mortgage-result-card > div { padding: 9px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mortgage-result-card > div:last-child { border-bottom: 0; }
.mortgage-result-card span { color: rgba(255,255,255,.7); font-size: 11px; }.mortgage-result-card strong { color: #fff; font-size: 13px; text-align: right; }
.mortgage-result-card .mortgage-impact { margin: 5px -8px; padding: 12px 8px; border: 0; border-radius: 11px; background: rgba(255,255,255,.08); }
.mortgage-result-card .mortgage-impact span { color: #fff; font-weight: 800; }
.mortgage-result-card strong.negative { color: #ff9e94; }.mortgage-result-card strong.positive { color: #65e4b6; }
.rental-result .result-actions #shareButton { border-color: #65ddb4; display: flex; align-items: center; justify-content: center; gap: 8px; color: #062d25; background: linear-gradient(135deg,#72e7c0,#52cca3); box-shadow: 0 10px 25px rgba(50,201,153,.2); transition: transform .18s ease,box-shadow .18s ease,background .18s ease; }
.rental-result .result-actions #shareButton:hover { background: linear-gradient(135deg,#82efd0,#5bd7ae); box-shadow: 0 13px 30px rgba(50,201,153,.29); transform: translateY(-2px); }
.rental-result .result-actions #shareButton:focus-visible { outline: 3px solid rgba(114,231,192,.38); outline-offset: 3px; }
.rental-result .result-actions #shareButton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rental-result .result-actions .screenshot-button { grid-column: 1 / -1; border-color: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; gap: 8px; color: #eaf5ff; background: rgba(255,255,255,.075); transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.rental-result .result-actions .screenshot-button:hover { border-color: rgba(117,198,255,.5); background: rgba(117,198,255,.14); transform: translateY(-1px); }
.rental-result .result-actions .screenshot-button:disabled { cursor: wait; opacity: .65; transform: none; }
.rental-result .result-actions .screenshot-button svg { width: 18px; height: 18px; fill: none; stroke: #75c6ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screenshot-action-status { min-height: 15px; margin: 7px 2px -2px; color: #7de1be; font-size: 10px; text-align: center; }
.screenshot-action-status.is-error { color: #ffaaa0; }
.rental-result .result-disclaimer { margin: 13px 0 0; padding: 13px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 10px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.055); }
.rental-result .result-disclaimer > svg { width: 22px; height: 22px; fill: none; stroke: #77c8ff; stroke-width: 1.8; stroke-linecap: round; }
.rental-result .result-disclaimer p { margin: 0; font-size: 10px; line-height: 1.45; }
.rental-result .result-disclaimer strong,.rental-result .result-disclaimer span { display: block; }
.rental-result .result-disclaimer strong { margin-bottom: 2px; color: #fff; font-size: 11px; }

.income-legend { background: var(--rent-blue); }.cumulative-legend { background: var(--rent-coral); }
.rental-chart-shell { position: relative; padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: 24px; background: #fbfcfe; opacity: 0; transform: translateY(28px); transition: opacity .55s ease,transform .75s cubic-bezier(.22,1,.36,1); }
.rental-chart-shell.is-visible { opacity: 1; transform: none; }
.rental-chart { width: 100%; height: auto; display: block; overflow: visible; }
#chartGrid line { stroke: rgba(9,27,54,.09); stroke-width: 1; }
#chartGrid line.zero-line { stroke: rgba(9,27,54,.38); stroke-width: 1.6; }
#chartLabels text,#chartCumulativeLabels text { fill: #607087; font-size: 10px; }
#chartCumulativeLabels text { fill: #c45d54; }
#chartLabels text.axis-title,#chartCumulativeLabels text.axis-title { font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
#incomeBars rect { fill: var(--rent-blue); transform-box: fill-box; transform-origin: center bottom; }
#incomeBars rect.is-negative { fill: var(--rent-coral); }
#cumulativeLine { fill: none; stroke: var(--rent-coral); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#chartPoint { fill: #fff; stroke: var(--rent-coral); stroke-width: 4; vector-effect: non-scaling-stroke; }
#chartCursor { stroke: #16395f; stroke-width: 1.4; stroke-dasharray: 4 4; }
.rental-chart-tooltip { display: none; }
.rental-chart-shell:not(.is-visible) #incomeBars rect { opacity: .001; transform: scaleY(.02); }
.rental-chart-shell.is-visible #incomeBars rect { animation: bar-rise .7s cubic-bezier(.22,1,.36,1) both; }
.rental-chart-shell:not(.is-visible) #cumulativeLine,.rental-chart-shell:not(.is-visible) #chartPoint { opacity: .001; }
.rental-chart-shell.is-visible #cumulativeLine,.rental-chart-shell.is-visible #chartPoint { animation: line-in .75s .15s ease both; }
.rental-table th,.rental-table td { text-align: right; }.rental-table th:first-child,.rental-table td:first-child { text-align: left; }
.rental-table.is-cash .mortgage-column { display: none; }

.calculation-notes { margin-top: 26px; }
.rental-projection + .program-back-to-calculator { margin-right: auto; margin-left: 0; }
.rental-back-button { width: 48px; height: 48px; min-width: 48px; padding: 0; display: grid; place-items: center; border-color: rgba(13,110,253,.2); border-radius: 50%; color: #075fc7; font-size: 22px; line-height: 1; }
.rental-back-button:hover { color: #fff; background: #0d6efd; transform: translateY(-2px); }
.rental-back-button span { display: block; transform: translateY(-1px); }
.formula-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.formula-grid section { padding: 23px; border: 1px solid rgba(9,27,54,.09); border-radius: 20px; background: #fff; }
.formula-grid section > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #0867ee; background: #e8f3ff; font-size: 12px; font-weight: 850; }
.formula-grid h3 { margin: 14px 0 7px; font-size: 17px; }.formula-grid p { margin: 0; color: #5f6d81; font-size: 13px; line-height: 1.55; }
.method-section { margin-top: 54px; }
.method-section > h2,.example-section h2,.mortgage-explainer h2,.editorial-cta h2 { margin: 0; color: #091b36; font-size: clamp(25px,3vw,36px); line-height: 1.08; letter-spacing: -.035em; }
.method-section > p,.example-section > div > p,.mortgage-explainer > p { max-width: 830px; margin: 15px 0 0; color: #536174; font-size: 16px; line-height: 1.7; }
.method-section .section-label,.example-section .section-label,.mortgage-explainer .section-label,.editorial-cta .section-label { margin: 0 0 10px; color: #0968ef; font-size: 12px; font-weight: 850; letter-spacing: .11em; }
.metric-explainer-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.metric-explainer-grid section { padding: 23px; border: 1px solid rgba(9,27,54,.09); border-radius: 20px; background: #fff; }
.metric-explainer-grid h3 { margin: 0; color: #0c2b50; font-size: 17px; line-height: 1.25; }
.metric-explainer-grid p { margin: 8px 0 0; color: #5b687a; font-size: 14px; line-height: 1.58; }
.example-section { padding: 30px; border: 1px solid #badcff; border-radius: 26px; background: linear-gradient(135deg,#edf6ff 0%,#f8fbff 62%,#fff 100%); }
.example-metrics { margin: 24px 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.example-metrics div { min-width: 0; padding: 17px; border: 1px solid rgba(9,27,54,.08); border-radius: 17px; background: rgba(255,255,255,.86); }
.example-metrics dt { min-height: 34px; color: #667389; font-size: 12px; font-weight: 700; line-height: 1.35; }
.example-metrics dd { margin: 9px 0 0; color: #091b36; font-size: 18px; font-weight: 850; line-height: 1.2; letter-spacing: -.025em; }
.content-note { margin-top: 17px !important; padding: 14px 16px; border-left: 4px solid #2f9af4; border-radius: 0 14px 14px 0; color: #405268 !important; background: rgba(255,255,255,.76); font-size: 14px !important; line-height: 1.55 !important; }
.expense-checklist { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.expense-checklist div { padding: 20px; border: 1px solid rgba(9,27,54,.09); border-radius: 18px; display: grid; gap: 7px; background: #fff; }
.expense-checklist strong { color: #0b3a69; font-size: 15px; }
.expense-checklist span { color: #5b687a; font-size: 14px; line-height: 1.5; }
.mortgage-explainer { padding: 30px; border-radius: 26px; color: #fff; background: linear-gradient(135deg,#082448,#0b4e8c); box-shadow: 0 20px 50px rgba(8,36,72,.14); }
.mortgage-explainer .section-label { color: #78c7ff; }
.mortgage-explainer h2 { color: #fff; }
.mortgage-explainer > p { color: rgba(255,255,255,.77); }
.steps-list { margin: 23px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; list-style: none; counter-reset: mortgageSteps; }
.steps-list li { padding: 19px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; color: rgba(255,255,255,.76); background: rgba(255,255,255,.06); font-size: 13px; line-height: 1.55; counter-increment: mortgageSteps; }
.steps-list strong { color: #fff; }
.mortgage-explainer .content-note { border-left-color: #65d9ad; color: rgba(255,255,255,.8) !important; background: rgba(255,255,255,.07); }
.comparison-list { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; }
.comparison-list li { position: relative; padding: 17px 18px 17px 46px; border: 1px solid rgba(9,27,54,.09); border-radius: 17px; color: #4f5f73; background: #fff; font-size: 14px; line-height: 1.5; }
.comparison-list li::before { content: "✓"; position: absolute; top: 16px; left: 16px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #22a270; font-size: 11px; font-weight: 900; }
.faq-section details { margin-top: 9px; border: 1px solid rgba(9,27,54,.1); border-radius: 17px; background: #fff; }
.faq-section summary { padding: 18px 48px 18px 20px; position: relative; color: #0b294e; font-size: 15px; font-weight: 800; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; top: 50%; right: 19px; transform: translateY(-50%); color: #0d6efd; font-size: 22px; font-weight: 500; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: 0; padding: 0 20px 19px; color: #5b687a; font-size: 14px; line-height: 1.62; }
.editorial-cta { margin-top: 54px; padding: 30px; border-radius: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #e8f3ff; }
.editorial-cta p { max-width: 680px; margin: 11px 0 0; color: #52657b; font-size: 14px; line-height: 1.55; }
.editorial-cta a { min-width: 210px; min-height: 52px; padding: 0 21px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; color: #fff; background: #0d6efd; font-size: 13px; font-weight: 850; text-decoration: none; box-shadow: 0 10px 24px rgba(13,110,253,.2); }
.editorial-cta a:hover { transform: translateY(-2px); }
.sources { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(9,27,54,.1); color: #5d6b80; font-size: 13px; line-height: 1.65; }
.sources a { color: #075fc7; }

.screenshot-dialog { width: min(920px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 26px; overflow: auto; color: #091b36; background: #fff; box-shadow: 0 28px 90px rgba(4,20,40,.28); }
.screenshot-dialog::backdrop { background: rgba(7,23,44,.64); backdrop-filter: blur(5px); }
.screenshot-dialog-panel { padding: 32px; position: relative; }
.screenshot-dialog-close { width: 42px; height: 42px; position: absolute; top: 22px; right: 22px; border: 1px solid rgba(9,27,54,.1); border-radius: 50%; color: #536174; background: #f4f6f8; font-size: 27px; line-height: 1; cursor: pointer; }
.screenshot-dialog h2 { margin: 8px 54px 0 0; font-size: 30px; letter-spacing: -.035em; }
.screenshot-dialog-copy { max-width: 680px; margin: 9px 0 0; color: #617086; font-size: 13px; line-height: 1.5; }
.screenshot-previews { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.screenshot-previews figure { min-width: 0; margin: 0; }
.screenshot-previews figure > div { height: 270px; border: 1px solid rgba(9,27,54,.1); border-radius: 18px; overflow: auto; display: flex; align-items: flex-start; justify-content: center; background: #eef1f5; }
.screenshot-previews img { width: 100%; height: auto; display: block; }
.screenshot-previews figcaption { margin-top: 8px; color: #536174; font-size: 11px; font-weight: 750; }
.screenshot-dialog-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.screenshot-dialog-actions button { min-height: 48px; padding: 10px 15px; border: 1px solid rgba(13,110,253,.2); border-radius: 999px; color: #075fc7; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.screenshot-dialog-actions .save-both-button { grid-column: 1 / -1; border-color: #56d2a8; color: #052d23; background: linear-gradient(135deg,#75e9c2,#55cfa6); box-shadow: 0 9px 22px rgba(50,201,153,.18); }
.screenshot-dialog-actions button:hover { transform: translateY(-1px); }
.screenshot-dialog-status { min-height: 18px; margin: 9px 0 0; color: #168760; font-size: 11px; text-align: center; }
.screenshot-dialog-status.is-error { color: #b12e25; }

.screenshot-capture-sheet { width: 760px; padding: 28px; position: fixed; left: -10000px; top: 0; z-index: -1; color: #091b36; background: #f7f8fa; font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.screenshot-capture-header { margin-bottom: 18px; padding: 20px 22px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(135deg,#082448,#0d6efd); }
.screenshot-capture-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.screenshot-capture-brand i { width: 18px; height: 18px; border: 5px double #fff; border-radius: 50%; display: block; }
.screenshot-capture-heading { text-align: right; }.screenshot-capture-heading strong,.screenshot-capture-heading span { display: block; }.screenshot-capture-heading strong { font-size: 17px; }.screenshot-capture-heading span { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 10px; }
.screenshot-capture-content > .input-card,.screenshot-capture-content > .result-card { width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important; box-shadow: none !important; }
.screenshot-capture-content .add-expense-button,.screenshot-capture-content .expense-delete,.screenshot-capture-content .result-actions,.screenshot-capture-content .screenshot-action-status,.screenshot-capture-content .gid-result-state-note { display: none !important; }
.screenshot-capture-content .custom-select-menu { display: none !important; }
.screenshot-capture-content .range,.screenshot-capture-content .range-meta { display: none !important; }
.screenshot-capture-footer { margin-top: 14px; padding: 0 4px; display: flex; justify-content: space-between; gap: 18px; color: #68768a; font-size: 9px; }

@keyframes donut-build { from { opacity: .15; transform: rotate(-100deg) scale(.88); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes bar-rise { from { opacity: .08; transform: scaleY(.02); } to { opacity: 1; transform: scaleY(1); } }
@keyframes line-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vacancy-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(44, 152, 246, 0); }
  45% { box-shadow: 0 0 0 6px rgba(44, 152, 246, .1); }
}

@media (min-width: 901px) {
  .rental-hero {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
    grid-template-areas:
      "eyebrow badges"
      "title badges"
      "copy badges";
    column-gap: 52px;
    row-gap: 0;
    align-items: start;
  }
  .rental-hero > .eyebrow { grid-area: eyebrow; }
  .rental-hero > h1 {
    grid-area: title;
    max-width: 720px;
    margin: 8px 0 18px;
    font-size: clamp(44px, 4.5vw, 64px);
  }
  .rental-hero > .hero-copy { grid-area: copy; margin: 0; }
  .rental-hero > .hero-badges {
    grid-area: badges;
    align-self: center;
    margin: 0;
    display: grid;
    gap: 10px;
  }
  .rental-hero > .hero-badges li {
    min-height: 42px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-color: rgba(13,110,253,.16);
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 22px rgba(9,27,54,.055);
  }

  .purchase-switch {
    min-width: 330px;
    padding: 5px;
    border: 1px solid rgba(9,27,54,.09);
    background: #dfe5ee;
    box-shadow: inset 0 1px 3px rgba(9,27,54,.06);
  }
  .purchase-switch button {
    min-height: 48px;
    padding-inline: 18px;
    font-size: 13px;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  .purchase-switch button:not(.is-active):hover {
    color: #163b68;
    background: rgba(255,255,255,.58);
  }
  .purchase-switch button.is-active {
    color: #fff;
    background: linear-gradient(135deg,#0a5fc9,#178cf1);
    box-shadow: 0 8px 18px rgba(10,95,201,.23);
  }

  .rental-chart { cursor: crosshair; }
  .rental-chart.is-hovering #incomeBars rect { opacity: .35; }
  .rental-chart.is-hovering #incomeBars rect.is-active {
    opacity: 1;
    filter: brightness(.94) drop-shadow(0 7px 9px rgba(20,112,199,.25));
  }
  .rental-chart-tooltip:not([hidden]) {
    width: max-content;
    max-width: 260px;
    padding: 11px 13px;
    position: absolute;
    z-index: 5;
    display: block;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;
    color: #fff;
    background: rgba(7,31,61,.94);
    box-shadow: 0 13px 32px rgba(7,31,61,.22);
    font-size: 11px;
    line-height: 1.4;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 13px));
    backdrop-filter: blur(10px);
  }
  .rental-chart-tooltip strong,
  .rental-chart-tooltip span { display: block; }
  .rental-chart-tooltip strong { margin-bottom: 4px; font-size: 12px; }
  .rental-chart-tooltip span { color: rgba(255,255,255,.76); }
}

@media (max-width: 900px) {
  .form-heading { display: block; }.purchase-switch { margin-top: 18px; }.formula-grid { grid-template-columns: 1fr; }
  .example-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .steps-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .form-heading { margin-bottom: 22px; }.purchase-switch button { min-height: 44px; font-size: 11px; }
  .rental-details summary { min-height: 58px; align-items: flex-start; padding: 18px 0; flex-wrap: wrap; }.rental-details summary span { width: calc(100% - 25px); margin: 1px 0 0; order: 3; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }.panel-heading small { max-width: none; text-align: left; }
  .mortgage-panel { padding: 18px 14px; }
  .extra-expenses { padding: 18px 14px; }.extra-expenses-head { display: block; }.add-expense-button { width: 100%; margin-top: 15px; }.extra-expense-grid { grid-template-columns: 1fr; }.expense-period-buttons { grid-template-columns: 1fr; }.expense-period button { min-height: 42px; text-align: left; padding-inline: 14px; }.extra-expenses-watermark { width: 150px; height: 150px; }
  .structure-body { grid-template-columns: 118px minmax(0,1fr); gap: 13px; }.rental-donut { width: 116px; }.rental-donut::before { inset: 23px; }.donut-center { max-width: 69px; }.donut-center strong { font-size: 11px; }
  .rental-legend button { padding: 8px; }.rental-legend strong { font-size: 11px; }
  .rental-chart-shell { padding: 12px 7px 10px; border-radius: 19px; }.rental-chart { height: auto; }
  .rental-table tbody tr,.rental-table tfoot tr { grid-template-columns: 1fr 1fr !important; }
  .rental-table td::before { content: ""; }
  .rental-table td:nth-child(1)::before { content: "Год"; }.rental-table td:nth-child(2)::before { content: "Аренда после простоя"; }.rental-table td:nth-child(3)::before { content: "Расходы"; }.rental-table td:nth-child(4)::before { content: "Налог"; }.rental-table td:nth-child(5)::before { content: "Чистый доход"; }.rental-table td:nth-child(6)::before { content: "После ипотеки"; }.rental-table td:nth-child(7)::before { content: "Накоплено"; }
  .rental-table.is-cash td:nth-child(6) { display: none; }
  .screenshot-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }.screenshot-dialog-panel { padding: 24px 16px 18px; }.screenshot-dialog-close { top: 16px; right: 16px; }.screenshot-dialog h2 { font-size: 25px; }.screenshot-previews { grid-template-columns: 1fr; }.screenshot-previews figure > div { height: 210px; }.screenshot-dialog-actions { grid-template-columns: 1fr; }.screenshot-dialog-actions .save-both-button { grid-column: auto; }
  .method-section { margin-top: 38px; }.method-section > p,.example-section > div > p,.mortgage-explainer > p { font-size: 15px; line-height: 1.62; }
  .metric-explainer-grid,.expense-checklist,.comparison-list { grid-template-columns: 1fr; }
  .example-section,.mortgage-explainer,.editorial-cta { padding: 22px 18px; border-radius: 21px; }
  .example-metrics { grid-template-columns: 1fr; }.example-metrics dt { min-height: 0; }
  .editorial-cta { align-items: stretch; flex-direction: column; }.editorial-cta a { width: 100%; min-width: 0; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .vacancy-period-badge { animation: none; }
  .rental-donut,.rental-chart-shell,#incomeBars rect,#cumulativeLine,#chartPoint { animation: none !important; transition: none !important; }
}
