:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5f6d64;
  --line: #d8e3dc;
  --soft: #f3f8f4;
  --surface: #f7faf8;
  --paper: #ffffff;
  --accent: #177245;
  --accent-strong: #0f5d37;
  --accent-tint: #e6f4eb;
  --navy: #17314d;
  --blue: #2f6f9f;
  --gold: #f4b63f;
  --gold-soft: #fff6dc;
  --aqua: #48a8a0;
  --danger: #b3472e;
  --shadow: 0 18px 50px rgba(24, 45, 34, 0.12);
  --shadow-soft: 0 10px 35px rgba(24, 45, 34, 0.08);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(216, 227, 220, 0.88);
  background: rgba(250, 253, 251, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.locale-link {
  border: 1px solid #c4d5cb;
  background: #ffffff;
  color: var(--accent-strong);
  font-weight: 800;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(620px, calc(100vh - 96px));
  padding: clamp(28px, 4vw, 46px) clamp(18px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(47, 111, 159, 0.08), transparent 36%),
    linear-gradient(180deg, #fdfefb 0%, #edf6ef 100%);
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 4.15rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.7rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 16px 0 18px;
}

.hero-kpis div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d5e4dc;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.hero-kpis span,
.source-strip span,
.result-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.hero-kpis strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.2;
}

.hero-calculator {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #cdded4;
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-calculator-head {
  display: grid;
  gap: 4px;
}

.hero-calculator-head .eyebrow,
.hero-calculator-head p {
  margin-bottom: 0;
}

.hero-calculator-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.08;
}

.hero-calculator-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-field-grid .field span {
  font-size: 0.78rem;
}

.hero-field-grid .field input,
.hero-field-grid .field select {
  min-height: 38px;
}

.hero-result-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d5e4dc;
  border-radius: var(--radius);
  background: #f8fbff;
}

.hero-result-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.hero-result-card span,
.hero-result-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.hero-result-card strong {
  color: var(--navy);
  font-size: 1.78rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-result-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.hero-result-card dl div {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid #dfeae5;
  border-radius: 6px;
  background: #ffffff;
}

.hero-result-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.hero-result-card p {
  margin: 0;
  color: #5c4310;
  font-size: 0.8rem;
}

.hero-tax-meter {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-calculator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-calculator-actions .button {
  min-height: 40px;
  padding: 0 12px;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 760;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.button.secondary:hover {
  border-color: #b9c9bf;
  background: var(--soft);
}

.icon-button {
  display: grid;
  width: 44px;
  place-items: center;
  color: var(--accent-strong);
  border-color: var(--line);
  background: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

.receipt-visual {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 420px;
  place-items: center;
}

.parcel {
  position: absolute;
  top: 10px;
  left: 6px;
  width: 170px;
  height: 132px;
  border: 2px solid rgba(23, 32, 27, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #d6994a, #f1c06d);
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
}

.parcel::before,
.parcel::after,
.parcel-tape {
  position: absolute;
  content: "";
  background: rgba(255, 246, 210, 0.62);
}

.parcel::before {
  top: 0;
  left: 50%;
  width: 36px;
  height: 100%;
  transform: translateX(-50%);
}

.parcel::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 26px;
  transform: translateY(-50%);
}

.parcel-label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 32, 27, 0.14);
  border-radius: 4px;
  background: #fffdf6;
  color: var(--accent-strong);
  font-weight: 900;
}

.mini-receipt {
  position: relative;
  width: min(100%, 390px);
  margin-top: 42px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.mini-receipt::before {
  position: absolute;
  top: -12px;
  right: 24px;
  left: 24px;
  height: 18px;
  content: "";
  background:
    linear-gradient(135deg, transparent 75%, #ffffff 0) 0 0 / 18px 18px,
    linear-gradient(225deg, transparent 75%, #ffffff 0) 0 0 / 18px 18px;
}

.receipt-row,
.receipt-header,
.mini-receipt .total-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px dashed #d5ddd7;
}

.receipt-header {
  align-items: flex-start;
  padding-top: 0;
  border-bottom-style: solid;
}

.receipt-header strong {
  color: var(--navy);
}

.mini-receipt span {
  color: var(--muted);
}

.mini-receipt .total-line {
  margin-top: 10px;
  padding-top: 16px;
  border-bottom: 0;
  color: var(--accent-strong);
  font-size: 1.12rem;
}

.receipt-alert {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #efd48f;
  border-radius: 6px;
  background: var(--gold-soft);
  color: #654910;
  font-size: 0.86rem;
  font-weight: 720;
}

.tool-band,
.data-band,
.guides-band,
.rules-band,
.split-band,
.faq-band {
  padding: clamp(44px, 7vw, 82px) clamp(18px, 6vw, 84px);
}

.tool-band {
  background: #ffffff;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.split-band > div > p,
.rules-band > div > p {
  color: var(--muted);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.source-strip span {
  padding: 7px 10px;
  border: 1px solid #cfddd4;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--navy);
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.72fr);
  gap: 20px;
  align-items: start;
}

.mobile-total-bar {
  display: none;
}

.calculator-form,
.result-panel,
.watch-form,
.table-wrap,
.report-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.span-2 {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #29372f;
  font-size: 0.9rem;
  font-weight: 760;
}

.field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.product-summary[hidden] {
  display: none;
}

.product-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.product-summary span {
  color: var(--muted);
  font-weight: 700;
}

.product-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.product-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd9d0;
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 114, 69, 0.14);
  outline: none;
}

.result-panel {
  position: sticky;
  top: 94px;
  overflow: hidden;
  padding: 22px;
  border-top: 4px solid var(--navy);
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 18px;
}

.result-meta strong {
  color: var(--blue);
  font-size: 0.82rem;
}

.result-topline {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.result-topline span {
  color: var(--muted);
  font-weight: 720;
}

.result-topline strong {
  color: var(--navy);
  font-size: 3rem;
  line-height: 1;
}

.note-text,
.status-text,
.rule-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.note-text {
  margin: 12px 0 0;
}

.status-text {
  width: 100%;
  min-height: 1.2em;
  margin: 0;
  font-weight: 700;
}

.verdict {
  margin: 16px 0;
  padding: 12px;
  border-radius: 6px;
  background: var(--accent-tint);
  color: #1e4c34;
  font-weight: 700;
}

.breakdown {
  display: grid;
  gap: 0;
  margin: 0;
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2ee;
}

.breakdown dt {
  color: var(--muted);
}

.breakdown dd {
  margin: 0;
  font-weight: 800;
}

.tax-meter-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #d5e4dc;
  border-radius: 6px;
  background: #f7fbff;
}

.tax-meter-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.tax-meter-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.tax-meter-card strong {
  color: var(--blue);
}

.meter-track {
  height: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #dfeae5;
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  transition: width 180ms ease;
}

.insight-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.insight {
  padding: 12px;
  border-left: 4px solid var(--aqua);
  border-radius: 6px;
  background: #eef8f7;
  color: #244c48;
  font-size: 0.92rem;
}

.insight.warning {
  border-left-color: var(--gold);
  background: #fff8e8;
  color: #5c4310;
}

.insight.danger {
  border-left-color: var(--danger);
  background: #fff0ec;
  color: #653020;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
  background: #eef6f0;
}

.guides-band {
  background: #fbfdfb;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.guide-grid a {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--aqua);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 35px rgba(24, 45, 34, 0.06);
}

.guide-grid a:hover,
.guide-grid a:focus-visible {
  border-color: #b9c9bf;
  background: var(--soft);
  outline: none;
}

.guide-grid span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.guide-grid strong {
  font-size: 1.05rem;
  line-height: 1.18;
}

.guide-grid small {
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-clusters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.guide-clusters h3 {
  margin-bottom: 10px;
}

.guide-clusters ul,
.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.guide-clusters a {
  color: var(--accent-strong);
  font-weight: 720;
  text-decoration: none;
}

.watch-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.watch-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watch-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.data-band {
  background: #ffffff;
}

.report-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2ee;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.rules-band {
  background: #17201b;
  color: #ffffff;
}

.rules-band .eyebrow {
  color: #9de2bb;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.rule-grid article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.rule-grid p,
.source-list {
  color: rgba(255, 255, 255, 0.74);
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.source-list a {
  color: #b9f2cd;
}

.rule-updated {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.faq-band {
  background: #f7fbf8;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.legal-page {
  max-width: 860px;
  padding: clamp(44px, 7vw, 82px) clamp(18px, 6vw, 84px);
}

.legal-page.guide-page {
  max-width: 980px;
}

.legal-page h1 {
  font-size: 3.4rem;
}

.legal-page h2 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.legal-page p {
  color: var(--muted);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.answer-card,
.guide-cta-panel {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 18px;
  border: 1px solid #d7e4dc;
  border-radius: var(--radius);
  background: #f7fbff;
}

.answer-card h2,
.guide-cta-panel h2 {
  margin-top: 0;
}

.intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intent-chips span {
  padding: 7px 10px;
  border: 1px solid #cfe1d7;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 780;
}

.example-card {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.example-card h2 {
  font-size: 1.35rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.quick-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d7e4dc;
  border-radius: 6px;
  background: #ffffff;
}

.estimate-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.estimate-strip div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #cfe1d7;
  border-radius: 6px;
  background: #ffffff;
}

.estimate-strip span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.estimate-strip strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.quick-grid span,
.related-links span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-page .source-list {
  color: var(--muted);
}

.guide-page .source-list a {
  color: var(--accent-strong);
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.step-list li::marker {
  color: var(--accent-strong);
  font-weight: 850;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-links a {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 84px);
  color: var(--muted);
  background: #101713;
}

footer p {
  max-width: 980px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

.footer-links a {
  color: #b9f2cd;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .calculator-shell,
  .split-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .legal-page h1 {
    font-size: 3rem;
  }

  .receipt-visual {
    min-height: 380px;
  }

  .hero-calculator {
    max-width: 640px;
    justify-self: center;
  }

  .result-panel {
    position: static;
  }

  .report-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .guide-clusters,
  .quick-grid,
  .estimate-strip,
  .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .locale-link {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-copy,
  .receipt-visual,
  .hero-calculator {
    justify-self: center;
    width: 100%;
    max-width: min(100%, 430px);
  }

  h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 2.05rem;
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 1.82rem;
    overflow-wrap: break-word;
  }

  .lead {
    font-size: 1rem;
  }

  .result-topline strong {
    font-size: 2.2rem;
  }

  .legal-page h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    align-items: stretch;
    gap: 8px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 16px;
  }

  .hero-kpis div {
    padding: 9px 8px;
    border-left-width: 3px;
  }

  .hero-kpis span {
    font-size: 0.66rem;
  }

  .hero-kpis strong {
    font-size: 0.78rem;
  }

  .hero-calculator {
    padding: 16px;
  }

  .hero-field-grid,
  .hero-calculator-actions {
    grid-template-columns: 1fr;
  }

  .hero-result-card strong {
    font-size: 1.8rem;
  }

  .calculator-form,
  .watch-form,
  .result-panel,
  .mobile-total-bar,
  .report-form,
  .section-heading,
  .calculator-shell,
  .split-band > *,
  .table-wrap,
  .faq-list,
  .guide-grid,
  .guide-clusters,
  .quick-grid,
  .estimate-strip,
  .related-links,
  .rule-grid {
    width: 100%;
    max-width: min(100%, 430px);
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .field input,
  .field select {
    min-width: 0;
  }

  .mobile-total-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(24, 45, 34, 0.1);
  }

  .mobile-total-bar span {
    color: var(--muted);
    font-weight: 760;
  }

  .mobile-total-bar strong {
    color: var(--accent-strong);
  }

  .span-2 {
    grid-column: auto;
  }

  .receipt-visual {
    width: 100%;
    min-height: auto;
    overflow: hidden;
    place-items: start;
  }

  .parcel {
    display: none;
  }

  .mini-receipt {
    width: 100%;
    max-width: min(100%, 430px);
    margin-top: 0;
    padding: 16px;
  }

  .receipt-row,
  .receipt-header,
  .mini-receipt .total-line {
    gap: 10px;
    padding: 8px 0;
  }

  .mini-receipt .receipt-row,
  .receipt-alert {
    display: none;
  }

  .mini-receipt .total-line {
    margin-top: 4px;
    padding-top: 12px;
    font-size: 1rem;
  }

  .mini-receipt strong {
    white-space: nowrap;
  }

  footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }
}
