@font-face {
  font-family: "DejaVu Local";
  src: url("assets/fonts/DejaVuSans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DejaVu Local";
  src: url("assets/fonts/DejaVuSans-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #14211c;
  --muted: #56645e;
  --paper: #ffffff;
  --soft: #f4f7f3;
  --panel: #ffffff;
  --line: #d9e4dc;
  --forest: #104b36;
  --forest-2: #0b3328;
  --moss: #607f55;
  --accent: #9d2b28;
  --gold: #b58c13;
  --focus: #165fcc;
  --button-ink: #ffffff;
  --shadow: 0 18px 48px rgba(15, 49, 37, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #edf7f1;
    --muted: #c7d5ce;
    --paper: #071611;
    --soft: #0c2119;
    --panel: #102b21;
    --line: #2b4a3e;
    --forest: #8fd7b6;
    --forest-2: #d7f5e7;
    --moss: #a8c999;
    --accent: #ff9a93;
    --gold: #ffd76a;
    --focus: #8ab4ff;
    --button-ink: #071611;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf7f1;
  --muted: #c7d5ce;
  --paper: #071611;
  --soft: #0c2119;
  --panel: #102b21;
  --line: #2b4a3e;
  --forest: #8fd7b6;
  --forest-2: #d7f5e7;
  --moss: #a8c999;
  --accent: #ff9a93;
  --gold: #ffd76a;
  --focus: #8ab4ff;
  --button-ink: #071611;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DejaVu Local", Arial, sans-serif;
  line-height: 1.58;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #104b36, #607f55);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a {
  white-space: nowrap;
  text-decoration: none;
}

.nav-cta,
.button.primary {
  color: var(--button-ink);
  background: var(--forest);
}

.nav-cta {
  padding: 10px 13px;
  border-radius: 8px;
}

:root[data-theme="dark"] .nav-cta,
:root[data-theme="dark"] .button.primary {
  color: #071611;
}

.menu-button,
.theme-switcher button,
.protected-contact button {
  font: inherit;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 800;
}

.lang-switcher,
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--panel);
}

.lang-switcher a,
.theme-switcher button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.theme-switcher button[aria-pressed="true"],
.lang-switcher a[aria-current="true"] {
  color: var(--button-ink);
  background: var(--forest);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 750;
}

.breadcrumbs .sep {
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(16, 75, 54, 0.97), rgba(11, 51, 40, 0.9)),
    radial-gradient(circle at 75% 25%, rgba(181, 140, 19, 0.24), transparent 38%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #edf7f1;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 3.35rem;
}

h2 {
  font-size: 2.15rem;
}

h3 {
  font-size: 1.22rem;
}

.hero-lead,
.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #edf7f1;
  font-size: 1.12rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.on-light {
  color: var(--forest);
  border-color: var(--line);
  background: color-mix(in srgb, var(--forest) 8%, var(--panel));
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.image-frame {
  position: relative;
  min-height: 460px;
  background: #f5f2e9;
}

.image-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(11, 51, 40, 0.86);
  font-size: 0.9rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat {
  padding: 20px;
  background: var(--panel);
}

.stat strong {
  display: block;
  color: var(--forest);
  font-size: 1.35rem;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  padding: 76px 0;
}

section.soft {
  background: var(--soft);
}

.page-hero {
  padding: 64px 0 46px;
  color: #fff;
  background: linear-gradient(145deg, #104b36, #0b3328);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.grid-3,
.grid-2,
.facts,
.blog-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.grid-3,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2,
.facts {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.highlight {
  border-radius: 8px;
  padding: 24px;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.priority-card {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 16px 36px rgba(15, 49, 37, 0.1);
}

.card h2,
.card h3 {
  margin-bottom: 12px;
}

.card p,
.card li,
.legal-page p,
.legal-page li,
.article-body p,
.article-body li {
  color: var(--muted);
}

.card ul,
.article-body ul,
.legal-page ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.card li + li,
.article-body li + li,
.legal-page li + li {
  margin-top: 8px;
}

.label {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--forest-2);
  background: color-mix(in srgb, var(--forest) 16%, var(--panel));
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.highlight {
  color: #fff;
  background: linear-gradient(145deg, #104b36, #0b3328);
}

.highlight p {
  color: #edf7f1;
}

.fact-list {
  display: grid;
  gap: 12px;
}

.fact-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row b {
  color: var(--forest);
}

.fact-row span {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--button-ink);
  background: var(--forest);
  font-weight: 850;
}

.step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.document-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
}

.document-card h3 {
  margin: 0;
}

.document-card p {
  margin: 0;
  color: var(--muted);
}

.document-card .button {
  width: fit-content;
  margin-top: 4px;
}

.notice-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line));
  border-radius: 8px;
  padding: 22px;
  background: color-mix(in srgb, var(--gold) 10%, var(--panel));
}

.notice-box h3,
.notice-box p {
  margin: 0;
}

.notice-box p {
  margin-top: 8px;
  color: var(--muted);
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: fit-content;
}

.blog-card {
  min-height: 100%;
  text-decoration: none;
}

.article-body,
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 58px 0 86px;
}

.article-body .lead {
  color: var(--ink);
  font-size: 1.12rem;
}

.article-body .takeaways,
.article-body .toc,
.article-body .property-note,
.article-body .sources-box,
.article-body .faq-block {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.article-body .takeaways {
  border-left: 5px solid var(--gold);
}

.article-body .property-note {
  border-left: 5px solid var(--forest);
  background: color-mix(in srgb, var(--forest) 8%, var(--panel));
}

.article-body .toc ol,
.article-body .sources-box ul,
.article-body .faq-block ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--panel);
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  color: var(--forest-2);
  background: color-mix(in srgb, var(--forest) 12%, var(--panel));
}

.table-wrap td {
  color: var(--muted);
}

.article-body details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.article-body details:first-of-type {
  border-top: 0;
}

.article-body summary {
  color: var(--forest);
  cursor: pointer;
  font-weight: 850;
}

.article-body .source-note {
  font-size: 0.92rem;
}

.article-body h2,
.legal-page h2 {
  margin-top: 34px;
  font-size: 1.65rem;
}

.article-meta {
  margin-top: 18px;
  color: #edf7f1;
  font-weight: 800;
}

.protected-contact {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.protected-contact a {
  color: var(--forest);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 44px 0 28px;
  color: #edf7f1;
  background: #0b3328;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer p,
.footer-note {
  color: #d7e7de;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}

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

.footer-note p + p {
  margin-top: 8px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: #fff;
  font-weight: 800;
}

.scroll-controls {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  gap: 8px;
}

.scroll-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--forest) 42%, var(--line));
  border-radius: 8px;
  color: var(--button-ink);
  background: color-mix(in srgb, var(--forest) 94%, var(--panel));
  box-shadow: 0 10px 24px rgba(15, 49, 37, 0.2);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.scroll-button:disabled {
  opacity: 0.42;
  cursor: default;
}

@media (max-width: 1040px) {
  .hero-grid,
  .facts,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .blog-grid,
  .document-grid,
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .notice-box {
    display: grid;
  }

  .notice-actions {
    justify-content: start;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }
}

@media (max-width: 1080px) {
  .nav {
    min-height: 64px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a {
    padding: 10px;
  }

  .lang-switcher,
  .theme-switcher {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding: 46px 0;
  }

  section {
    padding: 52px 0;
  }

  .hero-actions,
  .grid-3,
  .blog-grid,
  .document-grid,
  .stat-strip {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button {
    width: 100%;
    margin-right: 0;
  }

  .image-frame,
  .image-frame img {
    min-height: 330px;
    height: 330px;
  }

  .fact-row,
  .step {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .scroll-controls {
    display: none;
  }
}

@media (min-width: 1500px) {
  .container {
    width: min(1280px, calc(100% - 80px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.article-body .pull-quote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--forest);
  background: color-mix(in srgb, var(--forest) 7%, var(--panel));
  border-radius: 0 8px 8px 0;
}

.article-body .pull-quote p {
  font-size: 1.06rem;
  font-style: italic;
  margin: 0;
}

.article-body .pull-quote footer {
  margin-top: 10px;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--muted);
}

.article-body .callout {
  margin: 26px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 7%, var(--panel));
}

.article-body .callout h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--forest-2);
}

.article-body .callout p {
  margin: 0;
}

figure.table-wrap {
  margin: 24px 0 6px;
  padding: 0;
}

.table-wrap caption {
  caption-side: top;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-2);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.table-note,
.article-body .src-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.table-note {
  margin: 0 0 24px;
}

.card .table-note {
  margin: 16px 0 0;
}

.source-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

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

.source-list li + li {
  margin-top: 8px;
}

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

.distance-list li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.distance-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.distance-list b {
  color: var(--forest);
  white-space: nowrap;
}

@media (max-width: 460px) {
  .distance-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---- Schemat działki (inline SVG w hero) ---- */

.plot-figure {
  --svg-canvas: #f5f2e6;
  --svg-grid: rgba(11, 51, 40, 0.11);
  --svg-glow: 0.7;
  --svg-plot-line: #22402f;
  --svg-building-line: #fdf3e2;
  --svg-chip: #0b3328;
  --svg-chip-ink: #f7efe0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--svg-canvas);
}

:root[data-theme="dark"] .plot-figure {
  --svg-canvas: #0e2218;
  --svg-grid: rgba(215, 245, 231, 0.08);
  --svg-glow: 0.06;
  --svg-plot-line: #d7f5e7;
  --svg-building-line: #f7efe0;
  --svg-chip: #edf7f1;
  --svg-chip-ink: #071611;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plot-figure {
    --svg-canvas: #0e2218;
    --svg-grid: rgba(215, 245, 231, 0.08);
    --svg-glow: 0.06;
    --svg-plot-line: #d7f5e7;
    --svg-building-line: #f7efe0;
    --svg-chip: #edf7f1;
    --svg-chip-ink: #071611;
  }
}

.plot-figure .plot-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
}

.plot-caption {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #edf7f1;
  background: rgba(11, 51, 40, 0.86);
  font-size: 0.9rem;
}

.plot-caption strong {
  color: #fff;
  white-space: nowrap;
}

/* ---- Publiczna mapa cen transakcyjnych ---- */

.wide-container {
  width: min(1540px, calc(100% - 32px));
  max-width: none;
}

.map-section {
  padding-top: 30px;
}

.map-intro {
  margin-bottom: 20px;
}

.map-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.market-map-frame {
  display: block;
  width: 100%;
  height: clamp(680px, 82dvh, 920px);
  border: 0;
  background: var(--panel);
}

.map-direct-link {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.map-direct-link a {
  font-weight: 700;
}

.map-source-note {
  max-width: 1100px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Wykresy danych GUS. SVG dziedziczy zmienne motywu, więc sam przełącza się
   między trybem jasnym i ciemnym - nie ma osobnych wersji graficznych. */
.chart-figure {
  margin: 24px 0 6px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.chart-figure .data-chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-figure figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.source-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  /* Na wąskim ekranie wykres z 21 słupkami staje się nieczytelny w pełnej
     szerokości: pozwalamy go przewinąć w poziomie zamiast go ściskać. */
  .chart-figure {
    overflow-x: auto;
  }

  .chart-figure .data-chart {
    min-width: 620px;
  }
}

@media (max-width: 880px) {
  .wide-container {
    width: min(100% - 20px, 1540px);
  }

  .market-map-frame {
    height: min(820px, 78dvh);
    min-height: 620px;
  }
}

/* ---- Strony błędów HTTP ---- */

.error-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

/* Specyficzność musi przebić `.page-hero p`, inaczej kod błędu dostaje 1.12rem. */
.page-hero .error-code {
  max-width: none;
  margin: 0;
  /* Hero jest zawsze ciemnozielone, w obu motywach. Złoto z jasnego motywu
     miałoby na nim kontrast poniżej WCAG AA, dlatego kolor jest stały. */
  color: #ffd76a;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-actions .button {
  min-height: 44px;
}

@media (max-width: 760px) {
  .error-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-hero .error-code {
    font-size: 4.2rem;
  }

  .error-actions .button {
    width: 100%;
  }

  .plot-figure .plot-svg {
    max-height: 420px;
  }
}
