.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: #526074; font-size: 14px; font-weight: 750; text-decoration: none; }
.header-nav a:hover { color: var(--blue); }

.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(1,98,247,.12); border-radius: 999px; color: #0759b5; background: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }

.card-heading,
.result-top,
.calculation-map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading { margin-bottom: 22px; }
.card-heading .section-title { margin: 0; font-size: 24px; }
.card-heading > span { padding-top: 3px; color: #7a8494; font-size: 11px; }
.compact-heading { margin-bottom: 18px; }
.form-divider { height: 1px; margin: 28px 0; background: #dce1e8; }
.result-top > span { padding: 6px 9px; border-radius: 999px; color: #d9eaff; background: rgba(121,189,246,.2); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.only-home-row { padding: 14px; border: 1px solid #d8dee7; border-radius: 15px; background: #fff; }
.only-home-row span,
.family-relief .check-row span { display: grid; gap: 3px; }
.only-home-row strong,
.family-relief .check-row strong { color: var(--ink); font-size: 12px; }

.field-range { --range-progress: 10%; width: calc(100% - 6px); height: 4px; margin: 2px 3px 0; border-radius: 999px; appearance: none; background: linear-gradient(to right, var(--sky) 0 var(--range-progress), #cbd1d9 var(--range-progress) 100%); cursor: pointer; }
.field-range::-webkit-slider-thumb { width: 16px; height: 16px; border: 3px solid white; border-radius: 50%; appearance: none; background: var(--sky); box-shadow: 0 1px 5px rgba(8,29,59,.22); }
.field-range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: var(--sky); box-shadow: 0 1px 5px rgba(8,29,59,.22); }
.range-meta { display: flex; justify-content: space-between; gap: 12px; color: #778195; font-size: 10px; }
.range-meta strong { color: var(--ink); text-align: center; }
.deduction-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deduction-choices .choice:first-child { grid-column: 1 / -1; }

.advanced-options,
.family-relief { border: 1px solid #d9dee5; border-radius: 16px; background: #fff; }
.advanced-options summary,
.family-relief summary { min-height: 54px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.advanced-options summary::-webkit-details-marker,
.family-relief summary::-webkit-details-marker { display: none; }
.advanced-options summary::after,
.family-relief summary::after { content: "⌄"; color: var(--blue); font-size: 18px; transition: transform .18s ease; }
.advanced-options[open] summary::after,
.family-relief[open] summary::after { transform: rotate(180deg); }
.advanced-options summary small,
.family-relief summary small { margin-left: auto; color: #7a8494; font-size: 10px; font-weight: 650; }
.advanced-content,
.family-relief-content { padding: 0 16px 16px; }
.family-relief-content > .check-row { padding: 13px; border-radius: 13px; background: #edf5ff; }
.family-checks { margin-top: 10px; display: grid; gap: 8px; transition: opacity .2s ease; }
.family-checks.inactive { opacity: .42; }
.family-checks .check-row,
.automatic-check { padding: 12px; border-radius: 13px; background: #f3f5f8; }
.automatic-check { display: flex; align-items: flex-start; gap: 10px; color: #596476; font-size: 12px; line-height: 1.45; }
.automatic-check > i { width: 17px; height: 17px; border: 1px solid #aab3c0; border-radius: 4px; flex: 0 0 auto; background: #fff; }
.automatic-check.passed > i { border-color: #1aab72; background: #1aab72; box-shadow: inset 0 0 0 4px #fff; }
.automatic-check.failed > i { border-color: #e66c61; background: #e66c61; box-shadow: inset 0 0 0 4px #fff; }
.automatic-check > span { display: grid; gap: 3px; }
.automatic-check strong { color: var(--ink); font-size: 12px; }
.automatic-check small { color: #7a8494; font-size: 10px; }

.income-compare { margin-top: 24px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.06); }
.income-line { display: grid; grid-template-columns: 95px 1fr 68px; align-items: center; gap: 9px; color: #b5c3d2; font-size: 9px; }
.income-line + .income-line { margin-top: 10px; }
.income-line > div { height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.income-line i { height: 100%; display: block; border-radius: inherit; background: var(--sky); transition: width .35s ease; }
.income-line:nth-child(2) i { background: #79bdf6; }
.income-line strong { color: #fff; font-size: 10px; text-align: right; }
.income-compare p { margin: 13px 0 0; color: #9faec0; font-size: 10px; line-height: 1.45; }

.deadlines { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deadlines div { padding: 12px; border-radius: 13px; display: grid; gap: 4px; background: rgba(255,255,255,.07); }
.deadlines span { color: #9eb0c4; font-size: 9px; }
.deadlines strong { font-size: 12px; }

.calculation-map,
.decision-guide { margin-top: 24px; padding: 36px; border: 1px solid #e0e5eb; border-radius: 30px; background: #fff; box-shadow: 0 18px 45px rgba(8,29,59,.05); }
.calculation-map-head h2,
.decision-guide h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.calculation-map-head p:not(.eyebrow),
.decision-guide > div:first-child p:not(.eyebrow) { max-width: 720px; margin: 10px 0 0; color: #5c6879; font-size: 14px; line-height: 1.55; }
.map-summary { min-width: 220px; padding: 16px 18px; border-radius: 17px; display: grid; gap: 5px; color: #b9c7d8; background: var(--navy); }
.map-summary span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.map-summary strong { color: #fff; font-size: 22px; }
.calculation-steps { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calculation-steps article { min-width: 0; padding: 17px; border: 1px solid #e0e5eb; border-radius: 17px; display: flex; gap: 12px; background: #f8fafc; }
.calculation-steps article > span { color: var(--blue); font-size: 10px; font-weight: 850; }
.calculation-steps article > div { min-width: 0; display: grid; align-content: start; gap: 5px; }
.calculation-steps small { color: #7c8797; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.calculation-steps strong { font-size: 13px; }
.calculation-steps p { margin: 0; color: #637084; font-size: 10px; line-height: 1.45; }
.calculation-steps article.good { border-color: rgba(37,171,114,.28); background: #f0fbf6; }
.calculation-steps article.warn { border-color: rgba(237,143,66,.28); background: #fff7ee; }

.calculation-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.calculation-actions button,
.calculation-actions a { min-height: 48px; padding: 10px 13px; border: 1px solid #d5dbe3; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #536074; background: #fff; font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; }
.calculation-actions button:hover,
.calculation-actions a:hover { border-color: var(--sky); color: var(--blue); }
.calculation-actions .report-error { color: #e94f4f; }
.action-icon { color: var(--sky); font-size: 17px; line-height: 1; }
.report-error .action-icon { width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.action-status { min-height: 17px; margin: 8px 0 0; color: #687486; font-size: 10px; text-align: center; }

.decision-guide { display: grid; grid-template-columns: .65fr 1.35fr; gap: 34px; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.decision-grid article { padding: 17px; border-radius: 17px; background: #f1f6fc; }
.decision-grid span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.decision-grid strong { margin-top: 7px; display: block; font-size: 13px; }
.decision-grid p { margin: 6px 0 0; color: #637084; font-size: 10px; line-height: 1.45; }

.seo-content { margin-top: 24px; padding: 48px; border: 1px solid #e0e5eb; border-radius: 30px; background: #fff; }
.seo-content-intro { max-width: 860px; }
.seo-content h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.seo-content p,
.seo-content li { color: #4f5d70; font-size: 14px; line-height: 1.68; }
.seo-content a { color: var(--blue); }
.seo-section { margin-top: 42px; }
.seo-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.formula-section { padding: 30px; border-radius: 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; background: #f1f6fc; }
.formula { padding: 16px; border-radius: 14px; color: var(--ink) !important; background: #fff; font-weight: 800; }
.formula-facts { display: grid; gap: 9px; }
.formula-facts div { padding: 14px; border: 1px solid #dce5ef; border-radius: 15px; display: grid; gap: 4px; background: rgba(255,255,255,.62); }
.formula-facts span { color: #7a8697; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.formula-facts strong { font-size: 21px; }
.cadastral-section { padding: 30px; border-radius: 24px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 30px; color: #fff; background: linear-gradient(145deg, #071b38, #0b2d55); }
.cadastral-section h2 { color: #fff; }
.cadastral-section p { color: #bbc7d5; }
.cadastral-example { padding: 20px; border-radius: 18px; display: grid; gap: 7px; background: rgba(255,255,255,.08); }
.cadastral-example span { color: #79bdf6; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.cadastral-example strong { font-size: 17px; }
.cadastral-example b { color: #fff; font-size: 28px; }
.cadastral-example small { color: #9eb0c4; font-size: 10px; }
.family-section { padding: 30px; border-radius: 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; background: linear-gradient(115deg, #fff0ec, #eef5ff); }
.family-section ul { margin: 0; padding-left: 20px; }
.family-section li + li { margin-top: 9px; }
.faq-section { margin-top: 44px; }
.faq-list { margin-top: 20px; border-top: 1px solid #e1e5ea; }
.faq-list details { border-bottom: 1px solid #e1e5ea; }
.faq-list summary { padding: 18px 0; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.faq-list details p { margin: -3px 0 18px; }
.sources { margin-top: 34px; padding-top: 22px; border-top: 1px solid #e2e6eb; font-size: 11px !important; }
.legal-note { font-size: 11px !important; }

@media (max-width: 980px) {
  .calculation-steps { grid-template-columns: 1fr 1fr; }
  .decision-guide { grid-template-columns: 1fr; }
  .calculation-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .header-nav a:first-child { display: none; }
  .hero-badges { gap: 6px; }
  .hero-badges li { padding: 7px 9px; font-size: 9px; }
  .card-heading > span { display: none; }
  .deduction-choices { grid-template-columns: 1fr; }
  .deduction-choices .choice:first-child { grid-column: auto; }
  .income-line { grid-template-columns: 80px 1fr 60px; }
  .calculation-map,
  .decision-guide,
  .seo-content { padding: 24px 20px; }
  .calculation-map-head { display: grid; }
  .map-summary { width: 100%; }
  .calculation-map-head h2,
  .decision-guide h2,
  .seo-content h2 { font-size: 27px; }
  .calculation-steps,
  .decision-grid,
  .seo-columns,
  .formula-section,
  .cadastral-section,
  .family-section { grid-template-columns: 1fr; }
  .calculation-actions { grid-template-columns: 1fr 1fr; }
  .calculation-actions #saveButton,
  .calculation-actions #printButton,
  .calculation-actions #pdfButton { display: none; }
  .calculation-actions a,
  .calculation-actions button { min-width: 0; padding-inline: 8px; font-size: 10px; }
}

@media print {
  .site-header,
  .breadcrumbs,
  .result-actions,
  .calculation-actions,
  .decision-guide,
  .site-footer { display: none !important; }
  body { background: #fff; }
  .page { width: 100%; padding: 0; }
  .hero,
  .input-card,
  .result-card,
  .calculation-map,
  .seo-content { break-inside: avoid; box-shadow: none; }
  .result-card { position: static; color-adjust: exact; -webkit-print-color-adjust: exact; }
}
