/* ==========================================================================
   Na Kołach — Atlas Drogowy (wariant A)
   Fraunces + Public Sans + JetBrains Mono
   Molочная бумага + ink + vermillion + ochre + teal
   ========================================================================== */

:root {
  --paper: #f5ecd8;
  --paper-2: #ece0c4;
  --paper-3: #e5d9bf;
  --ink: #1a2b3d;
  --ink-2: #2a3b4d;
  --ink-3: #3a4a5c;
  --ink-muted: #8a7a5c;
  --vermilion: #c8381f;
  --vermilion-soft: #d95a3f;
  --ochre: #c99a3b;
  --ochre-soft: #e0b458;
  --teal: #2d6b6e;
  --teal-soft: #4a8d90;
  --rule: #c8b991;
  --greece: #2d6b6e;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- base ---------- */
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(26,43,61,.03), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(200,56,31,.03), transparent 60%);
  min-height: 100vh;
}

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

/* ---------- shell ---------- */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
}

/* ---------- folio margin numbers ---------- */
.folio {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
}
.folio.l { left: 14px; }
.folio.r { right: 14px; }
@media (max-width: 1100px) { .folio { display: none; } }

/* ---------- metabar ---------- */
.metabar {
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.metabar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.metabar-inner span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--rule);
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 2px solid var(--ink);
  padding: 22px 0 18px;
  background:
    linear-gradient(180deg, transparent 0, transparent calc(100% - 6px), var(--paper) calc(100% - 6px)),
    repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  background-size: 100% 100%, 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 100%;
  position: relative;
  z-index: 20;
}
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: conic-gradient(from 0deg, var(--vermilion) 0 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0 100%);
  display: inline-block;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.brand-mark::before {
  content: "N";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  z-index: 2;
}
.brand-text { display: block; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -.01em;
  line-height: 1;
  display: block;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--vermilion);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  align-items: center;
}
.header-nav a,
.header-nav .nav-dropdown-btn {
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font: inherit;
  cursor: pointer;
}
.header-nav a:hover,
.header-nav .nav-dropdown-btn:hover { border-bottom-color: var(--vermilion); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ochre);
  padding: 14px 4px;
  min-width: 260px;
  display: none;
  z-index: 30;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-dropdown.open .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a {
  display: block;
  padding: 9px 22px;
  font-size: 11px;
  letter-spacing: .12em;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink-2);
}
.nav-dropdown-panel a:last-child { border-bottom: none; }
.nav-dropdown-panel a:hover { background: var(--paper-3); color: var(--vermilion); }

.header-edition {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  text-align: right;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.header-edition strong {
  color: var(--ink);
  display: block;
  font-weight: 500;
}

.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 1.5px solid var(--ink);
  padding: 0;
  position: relative;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  background: var(--ink);
}
.nav-burger span:nth-child(1) { top: 10px; }
.nav-burger span:nth-child(2) { top: 16px; }
.nav-burger span:nth-child(3) { top: 22px; }

@media (max-width: 900px) {
  .header-grid { grid-template-columns: auto 1fr auto; gap: 18px; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 20px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 25;
  }
  .header-nav.open { display: flex; }
  .nav-burger { display: block; }
  .header-edition { display: none; }
  .nav-dropdown-panel {
    position: static;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--rule);
    margin-top: 8px;
    width: 100%;
  }
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding: 22px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--vermilion); }
.breadcrumb .sep::before { content: "›"; margin: 0 4px; }
.breadcrumb .current { color: var(--vermilion); }

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

.hero {
  margin-top: 48px;
  padding: 56px 0 72px;
  position: relative;
  border: 1px solid var(--ink);
  background:
    radial-gradient(ellipse at 70% 60%, rgba(45,107,110,.08), transparent 55%),
    radial-gradient(ellipse at 20% 30%, rgba(200,56,31,.06), transparent 55%),
    var(--paper-2);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 45% at 68% 55%, transparent 38%, rgba(26,43,61,.18) 38.5%, transparent 39.3%),
    radial-gradient(ellipse 60% 45% at 68% 55%, transparent 44%, rgba(26,43,61,.15) 44.5%, transparent 45.3%),
    radial-gradient(ellipse 60% 45% at 68% 55%, transparent 50%, rgba(26,43,61,.13) 50.5%, transparent 51.3%),
    radial-gradient(ellipse 60% 45% at 68% 55%, transparent 56%, rgba(26,43,61,.11) 56.5%, transparent 57.3%),
    radial-gradient(ellipse 60% 45% at 68% 55%, transparent 62%, rgba(26,43,61,.09) 62.5%, transparent 63.3%),
    radial-gradient(ellipse 60% 45% at 68% 55%, transparent 68%, rgba(26,43,61,.07) 68.5%, transparent 69.3%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-stamp {
  position: absolute;
  top: 24px;
  right: 40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2.5px solid var(--vermilion);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  text-align: center;
  color: var(--vermilion);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 10px;
  z-index: 3;
}
.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--vermilion);
  border-radius: 50%;
}
.hero-stamp strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  display: block;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}
.hero-kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--teal);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
}
.hero h1 em {
  font-style: italic;
  color: var(--vermilion);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.hero-slogan {
  margin-top: 22px;
  max-width: 40ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.4;
}
.hero-meta {
  border-left: 2px solid var(--ink);
  padding-left: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.8;
}
.hero-meta dt {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9.5px;
  margin-top: 12px;
}
.hero-meta dt:first-child { margin-top: 0; }
.hero-meta dd {
  color: var(--ink);
  font-size: 12px;
}
.hero-meta dd strong {
  color: var(--vermilion);
  font-weight: 700;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 0 24px; }
  .hero-stamp { width: 90px; height: 90px; top: 16px; right: 16px; font-size: 7.5px; }
  .hero-stamp strong { font-size: 11px; }
}

.homepage-intro {
  max-width: 820px;
  margin: 48px auto 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
.homepage-intro p { margin-bottom: 1.1em; }

/* ---------- section framing ---------- */
.section {
  padding: 72px 0 40px;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 36px;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vermilion);
}
.section-num::before {
  content: "§ ";
  color: var(--ink-muted);
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin: 0;
}
.section-title em {
  font-style: italic;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.section-legend {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.dotted-rule {
  height: 1px;
  margin: 0 0 28px;
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.4px);
  background-size: 10px 3px;
  background-repeat: repeat-x;
  opacity: .5;
}
@media (max-width: 640px) {
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-legend { text-align: left; }
}

/* ---------- COUNTRIES INDEX grid ---------- */
.countries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.country {
  position: relative;
  padding: 22px 22px 44px 58px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: block;
  transition: background .25s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.country:nth-child(3n) { border-right: none; }
.country:nth-last-child(-n+3) { border-bottom: none; }
.country:hover { background: var(--paper-3); }

.country-tab {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-right: 1px dashed rgba(0,0,0,.2);
  color: #fff;
  background: var(--teal);
}
.country.c-hiszpania .country-tab { background: var(--vermilion); }
.country.c-grecja .country-tab { background: var(--teal); }
.country.c-wlochy .country-tab { background: #6b8c21; }
.country.c-portugalia .country-tab { background: #c99a3b; color: var(--ink); }
.country.c-chorwacja .country-tab { background: #1e4e7a; }
.country.c-turcja .country-tab { background: #a03030; }
.country.c-albania .country-tab { background: #5a3a2a; }
.country.c-czarnogora .country-tab { background: #6e3d6b; }
.country.c-bulgaria .country-tab { background: #2d5f3e; }
.country.c-cypr .country-tab { background: #d9a441; color: var(--ink); }
.country.c-maroko .country-tab { background: #b05a20; }
.country.c-tunezja .country-tab { background: #4a6a8a; }

.country-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  display: block;
}
.country-tag {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 28ch;
}
.country-page {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: .12em;
}
@media (max-width: 860px) {
  .countries { grid-template-columns: repeat(2, 1fr); }
  .country:nth-child(3n) { border-right: 1px solid var(--rule); }
  .country:nth-child(2n) { border-right: none; }
  .country:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .country:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .countries { grid-template-columns: 1fr; }
  .country { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }
  .country:last-child { border-bottom: none !important; }
}

/* ---------- LEGENDA / poradniki ---------- */
.legend-wrap {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  align-items: start;
}
.legend-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  border-left: 3px solid var(--vermilion);
  padding: 8px 0 8px 22px;
}
.legend-note small {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: 14px;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
.legend-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px dashed var(--rule);
  border-right: 1px dashed var(--rule);
  text-decoration: none;
  color: inherit;
}
.legend-item:nth-child(2n) { border-right: none; }
.legend-item:nth-last-child(-n+2) { border-bottom: none; }
.legend-item:hover { background: var(--paper-3); }
.legend-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink);
  font-size: 18px;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 700;
}
.legend-body { font-family: var(--sans); font-size: 13.5px; color: var(--ink); }
.legend-body strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  display: block;
  line-height: 1.2;
  font-variation-settings: "opsz" 144;
}
.legend-body span {
  font-size: 12px;
  color: var(--ink-muted);
  display: block;
  margin-top: 3px;
}
.legend-arrow { font-family: var(--mono); font-size: 11px; color: var(--vermilion); }
@media (max-width: 820px) {
  .legend-wrap { grid-template-columns: 1fr; }
  .legend-grid { grid-template-columns: 1fr; }
  .legend-item { border-right: none !important; }
  .legend-item:not(:last-child) { border-bottom: 1px dashed var(--rule) !important; }
}

/* ---------- PROMISE STRIP ---------- */
.promise {
  margin: 0;
  padding: 36px 48px;
  border: 1px solid var(--ink);
  background: var(--paper-3);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(26,43,61,.035) 14px 15px);
}
.promise::before, .promise::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--vermilion);
  background: var(--paper);
}
.promise::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.promise::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.promise-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--vermilion);
  letter-spacing: .18em;
  display: block;
  margin-bottom: 8px;
}
.promise-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.promise-text { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 820px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-top: 20px;
}
.faq-aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink-2);
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  position: sticky;
  top: 20px;
}
.faq-aside small {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  color: var(--vermilion);
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: 12px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.faq-item {
  padding: 22px 0;
  border-bottom: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
}
.faq-item:last-child { border-bottom: none; }
.faq-q-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--vermilion);
  letter-spacing: .14em;
  padding-top: 4px;
}
.faq-q {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.faq-a { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.faq-a p { margin-bottom: .6em; }
.faq-a strong { color: var(--ink); }
@media (max-width: 820px) {
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq-aside { position: static; }
}

/* ==========================================================================
   COUNTRY HUB
   ========================================================================== */

.country-hub .spread {
  margin: 36px 0 0;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.country-hub .spread::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(26,43,61,.35) 0 4px, transparent 4px 10px);
  z-index: 1;
}
.spread-tab {
  position: absolute;
  top: -1px;
  right: 40px;
  background: var(--greece);
  color: #fff;
  padding: 10px 22px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 88% 100%, 84% 70%, 16% 70%, 12% 100%, 0 100%);
  z-index: 3;
}
.spread-tab strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .02em;
  display: block;
  font-weight: 700;
}
.spread-grid {
  display: grid;
  grid-template-columns: 38% 62%;
  min-height: 520px;
  position: relative;
  z-index: 2;
}
.profile { padding: 40px 36px 40px 44px; }
.profile-kicker {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--greece);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.profile-kicker::before {
  content: "§ ";
  color: var(--ink-muted);
}
.profile h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: .9;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  margin: 0;
}
.profile h1 em {
  font-style: italic;
  color: var(--greece);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.profile-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 18px;
  max-width: 30ch;
}
.profile-data {
  margin-top: 34px;
  border-top: 1.5px solid var(--ink);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
}
.profile-data dt {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
  margin-bottom: 2px;
}
.profile-data dd {
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
}

.overview { padding: 40px 44px 40px 40px; }
.overview-intro {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  border-left: 2px solid var(--greece);
  padding-left: 18px;
  margin-bottom: 34px;
}
.idx-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vermilion);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.idx {
  list-style: none;
  padding: 0;
  margin: 0;
}
.idx li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  position: relative;
}
.idx li:last-child { border-bottom: 1px solid var(--ink); }
.idx-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: .08em;
}
.idx-entry { display: block; text-decoration: none; color: inherit; }
.idx-entry strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -.005em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  display: block;
  line-height: 1.15;
}
.idx-entry span {
  font-size: 12.5px;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}
.idx-dots {
  flex: 1;
  min-width: 40px;
  border-bottom: 1.5px dotted var(--rule);
  margin: 0 6px;
  align-self: center;
  transform: translateY(2px);
}
.idx-page {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--greece);
  font-weight: 700;
  letter-spacing: .12em;
}
.idx li:hover .idx-entry strong { color: var(--vermilion); }
.idx li:hover .idx-dots { border-bottom-color: var(--vermilion); }

@media (max-width: 900px) {
  .spread-grid { grid-template-columns: 1fr; }
  .country-hub .spread::before { display: none; }
  .profile { border-bottom: 1px solid var(--ink); padding: 32px 28px; }
  .overview { padding: 32px 28px; }
}

/* ---------- TL;DR strip ---------- */
.tldr-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.tldr-cell {
  padding: 24px 22px;
  border-right: 1px dashed var(--rule);
  position: relative;
}
.tldr-cell:last-child { border-right: none; }
.tldr-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.tldr-big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: var(--greece);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-variant-numeric: tabular-nums;
}
.tldr-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 10px;
}
@media (max-width: 820px) {
  .tldr-strip { grid-template-columns: repeat(2, 1fr); }
  .tldr-cell:nth-child(2) { border-right: none; }
  .tldr-cell:nth-child(1), .tldr-cell:nth-child(2) { border-bottom: 1px dashed var(--rule); }
}
@media (max-width: 500px) {
  .tldr-strip { grid-template-columns: 1fr; }
  .tldr-cell { border-right: none; border-bottom: 1px dashed var(--rule); }
  .tldr-cell:last-child { border-bottom: none; }
}

/* ---------- PROSE 2-col (hub overview) ---------- */
.prose-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  margin-top: 20px;
  align-items: start;
}
.aside-card {
  border: 1px solid var(--ink);
  padding: 24px 22px;
  background: var(--paper-3);
  position: sticky;
  top: 20px;
}
.aside-card h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vermilion);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
}
.aside-card ul {
  list-style: none;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}
.aside-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
}
.aside-card li:last-child { border-bottom: none; }
.aside-card li a {
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
}
.aside-card li a:hover { color: var(--vermilion); }
.aside-card li a small {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-muted);
  letter-spacing: .1em;
}
.aside-card-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 14px;
}
@media (max-width: 820px) {
  .prose-2col { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

/* ---------- related countries ---------- */
.related { margin-top: 72px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rel-card {
  border: 1px solid var(--ink);
  padding: 20px 22px;
  background: var(--paper-2);
  position: relative;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.rel-card:hover { background: var(--paper-3); }
.rel-card small {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rel-card strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  display: block;
  margin-top: 6px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.rel-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 6px;
}
.rel-card::after {
  content: "→";
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--mono);
  color: var(--vermilion);
}
@media (max-width: 820px) { .related-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   ARTICLE
   ========================================================================== */

.title-block {
  margin: 32px 0 0;
  padding: 44px 0 44px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}
.country-tab-big {
  background: var(--greece);
  color: #fff;
  padding: 16px 18px 26px;
  align-self: start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  min-width: 86px;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}
.country-tab-big strong {
  font-family: var(--serif);
  font-size: 22px;
  display: block;
  letter-spacing: .02em;
  font-weight: 700;
  margin-bottom: 4px;
}
.title-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--greece);
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.title-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--greece);
}
.title-kicker span { color: var(--ink-muted); }
.title-block h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  max-width: 22ch;
  margin: 0;
}
.title-block h1 em {
  font-style: italic;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.title-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 20px;
  max-width: 55ch;
}
.title-byline {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.title-byline strong { color: var(--ink); font-weight: 500; }
@media (max-width: 720px) {
  .title-block { grid-template-columns: 1fr; gap: 20px; }
  .country-tab-big { justify-self: start; }
}

/* ---------- article grid ---------- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 56px 0 0;
  align-items: start;
}
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   ARTICLE CONTENT (.article-content)
   — rendered markdown from @content.render_html
   ========================================================================== */

.article-content {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-2);
  font-family: var(--sans);
  counter-reset: h2counter;
}
.article-content p { margin-bottom: 1.2em; }
.article-content > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.2em;
  float: left;
  line-height: .85;
  padding: 6px 10px 0 0;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.article-content p strong { color: var(--ink); font-weight: 600; }

.article-content a:not(.cta-button) {
  color: var(--vermilion);
  border-bottom: 1px dotted var(--vermilion);
  text-decoration: none;
}
.article-content a:not(.cta-button):hover { background: rgba(200,56,31,.08); }

.content-wrap a:not(.cta-button) {
  color: var(--vermilion);
  border-bottom: 1px dotted var(--vermilion);
  text-decoration: none;
}
.content-wrap a:not(.cta-button):hover { background: rgba(200,56,31,.08); }

/* § auto-numbering H2 */
.article-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  margin: 3em 0 .6em;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  position: relative;
  padding-top: 32px;
  counter-increment: h2counter;
}
.article-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--vermilion);
}
.article-content h2::after {
  content: "§ " counter(h2counter, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  position: absolute;
  top: 10px;
  left: 0;
}
.article-content h2 em {
  font-style: italic;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.article-content h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 1.8em 0 .5em;
  letter-spacing: -.005em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.article-content h3::before {
  content: "§";
  color: var(--greece);
  font-style: italic;
  margin-right: 8px;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.article-content h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.5em 0 .4em;
}

/* lists */
.article-content ul {
  list-style: none;
  margin: 1em 0 1.2em;
  padding: 0;
}
.article-content ul li {
  position: relative;
  padding: 4px 0 4px 28px;
}
.article-content ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  width: 12px;
  height: 1px;
  background: var(--vermilion);
}
.article-content ul li strong { color: var(--ink); }

.article-content ol {
  list-style: none;
  counter-reset: item;
  margin: 1em 0 1.2em;
  padding: 0;
}
.article-content ol li {
  position: relative;
  padding: 6px 0 6px 36px;
  counter-increment: item;
}
.article-content ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--vermilion);
  letter-spacing: .08em;
}

/* tables — atlas data style */
.article-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
}
.article-content table caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vermilion);
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 0;
}
.article-content table thead th {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 10px;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
}
.article-content table thead th:not(:first-child) { text-align: right; }
.article-content table tbody td {
  padding: 12px 10px;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.article-content table tbody td:not(:first-child) { text-align: right; }
.article-content table tbody td:first-child {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}
.article-content table tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }
.article-content table tbody tr:hover td { background: var(--paper-3); }

/* blockquote */
.article-content blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--vermilion);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.article-content blockquote p { margin-bottom: .6em; }
.article-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.article-content blockquote cite::before { content: "— "; }

/* uwaga warning block (when generated as > [!uwaga] or .uwaga class) */
.article-content .uwaga,
.article-content .uwaga-praktyczna,
.article-content blockquote.uwaga {
  margin: 1.8em 0;
  padding: 20px 24px 20px 60px;
  background: #f4e3b8;
  border: 1.5px solid var(--ochre);
  border-left: 1.5px solid var(--ochre);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, transparent 0 16px, rgba(201,154,59,.12) 16px 17px);
  font-style: normal;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.article-content .uwaga::before,
.article-content .uwaga-praktyczna::before,
.article-content blockquote.uwaga::before {
  content: "!";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  background: var(--ochre);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.article-content .uwaga p,
.article-content .uwaga-praktyczna p { margin: 0 0 .4em; }

/* checklist */
.article-content .checklist {
  margin: 1.8em 0;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  padding: 22px 24px;
}
.article-content .checklist ul { margin: 0; padding: 0; }
.article-content .checklist ul li {
  padding: 8px 0 8px 32px;
  position: relative;
  border-bottom: 1px dashed var(--rule);
}
.article-content .checklist ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.article-content .checklist ul li::after {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 5px;
  color: var(--vermilion);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
}

/* footnotes */
.article-content .footnotes {
  margin-top: 3em;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
  font-size: 13px;
  color: var(--ink-muted);
}
.article-content .footnotes::before {
  content: "Przypisy";
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 12px;
}
.article-content .footnotes ol { counter-reset: fn; }
.article-content .footnotes ol li::before {
  content: counter(fn);
  counter-increment: fn;
  color: var(--vermilion);
}

/* rendered markdown GFM task lists → checklist style (Atlas ✓ markers) */
.article-content ul.task-list {
  list-style: none;
  padding-left: 0;
  margin: 1.4em 0;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.article-content ul.task-list li.task-list-item {
  position: relative;
  padding-left: 1.9em;
  list-style: none;
  margin: 0;
}
.article-content ul.task-list li.task-list-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: transparent;
  font-family: var(--sans);
  font-size: 1.05em;
  font-weight: 700;
  color: var(--vermilion);
  line-height: inherit;
}
.article-content ul.task-list li.task-list-item input[type="checkbox"],
.article-content ul.task-list li.task-list-item input.task-list-item-checkbox {
  display: none;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.side-block {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 22px 20px;
}
.side-block h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vermilion);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
}
.side-block h4 span:last-child { color: var(--ink-muted); font-weight: 400; }

.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.4;
}
.toc ol li {
  counter-increment: toc;
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px dashed var(--rule);
}
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: .08em;
}
.toc ol li:last-child { border-bottom: none; }
.toc ol li a { color: var(--ink-2); display: block; text-decoration: none; }
.toc ol li a:hover { color: var(--vermilion); }

.side-related ul {
  list-style: none;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}
.side-related li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}
.side-related li:last-child { border-bottom: none; }
.side-related li a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
}
.side-related li a:hover { color: var(--vermilion); }
.side-related li strong {
  font-family: var(--serif);
  font-weight: 500;
  display: block;
  font-size: 15px;
  line-height: 1.2;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
}
.side-related li span {
  font-size: 11.5px;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
}

/* article end */
.article-end {
  margin: 56px 0 0;
  padding: 32px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.article-end a {
  color: var(--ink-2);
  border-bottom: 1px dotted var(--ink-muted);
  padding-bottom: 2px;
  text-decoration: none;
}
.article-end a:hover { color: var(--vermilion); }
.article-end .prev::before { content: "← "; }
.article-end .next::after { content: " →"; }

/* ==========================================================================
   CTA — Atlas exit sign / inline / sidebar
   ========================================================================== */

/* Shared button removal */
.cta-inline, .cta-exit, .side-cta {
  text-decoration: none;
}

/* Inline CTA (default, also used by {{cta_car_rental}} placeholder via _cta.html.erb) */
.cta-inline {
  display: block;
  margin: 2em 0;
  padding: 26px 56px 26px 68px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  transition: transform .15s;
}
.cta-inline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: repeating-linear-gradient(-45deg, var(--ochre) 0 10px, var(--ink) 10px 20px);
}
.cta-inline::after {
  content: "→";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ochre);
  font-family: var(--mono);
  font-size: 22px;
}
.cta-inline:hover { transform: translate(-1px, -1px); }
.cta-inline-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ochre);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cta-inline-label::before {
  content: "§";
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.cta-inline-title,
.cta-inline strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--paper);
  display: block;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  max-width: 55ch;
}
.cta-inline-title em,
.cta-inline strong em {
  font-style: italic;
  color: var(--ochre-soft);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.cta-inline-note,
.cta-inline span {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(245,236,216,.6);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 12px;
  display: block;
}

/* Exit-sign CTA — endpage variant */
.cta-exit {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 36px 44px 36px 60px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.cta-exit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: repeating-linear-gradient(-45deg, var(--ochre) 0 10px, var(--ink) 10px 20px);
}
.cta-exit-body { min-width: 0; }
.cta-exit-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ochre);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cta-exit-label::before { content: "→"; font-size: 14px; }
.cta-exit-title,
.cta-exit h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  max-width: 34ch;
  margin: 0;
}
.cta-exit-title em,
.cta-exit h3 em {
  font-style: italic;
  color: var(--ochre-soft);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.cta-exit-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(245,236,216,.55);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 14px;
}
.cta-btn,
.cta-exit .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--vermilion);
  color: #fff;
  border: none;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ochre);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.cta-btn:hover,
.cta-exit .cta-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ochre);
}
.cta-btn::after,
.cta-exit .cta-button::after { content: "→"; }
@media (max-width: 640px) {
  .cta-exit { grid-template-columns: 1fr; padding: 32px 28px 32px 48px; }
}

/* Sidebar mini CTA */
.side-cta {
  display: block;
  border: 2px solid var(--vermilion);
  background: var(--paper);
  padding: 22px 20px 22px 22px;
  position: relative;
  color: var(--ink);
}
.side-cta::before {
  content: "Legenda · CTA";
  position: absolute;
  top: -9px;
  left: 16px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--vermilion);
}
.side-cta-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 10px;
  display: block;
}
.side-cta-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  display: block;
  margin-bottom: 10px;
}
.side-cta-title em {
  font-style: italic;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.side-cta-copy {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 16px;
  display: block;
}
.side-cta-btn {
  display: block;
  text-align: center;
  background: var(--vermilion);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ochre);
}
.side-cta:hover .side-cta-btn {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ochre);
}
.side-cta-sig {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.article-endcta { margin-top: 3em; }
.section-cta { padding-top: 40px; padding-bottom: 80px; }

/* ==========================================================================
   ARTICLE SIMPLE (About, Privacy)
   ========================================================================== */

.simple-page .colophon {
  margin: 64px auto 0;
  max-width: 820px;
  padding: 60px 60px 68px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  text-align: center;
  background-image: radial-gradient(ellipse at 50% 100%, rgba(26,43,61,.05), transparent 60%);
}
.colophon::before, .colophon::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--vermilion);
  background: var(--paper-2);
}
.colophon::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.colophon::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }
.colophon-wrap { position: relative; z-index: 2; }
.colophon-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--vermilion) 0 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0 100%);
  position: relative;
}
.colophon-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.colophon-mark::before {
  content: "N";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  z-index: 2;
}
.colophon-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--vermilion);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.colophon-kicker::before, .colophon-kicker::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--vermilion);
}
.colophon h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: .98;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  margin: 0 0 22px;
}
.colophon h1 em {
  font-style: italic;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.colophon-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 auto;
}
.colophon-meta {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.colophon-meta strong {
  color: var(--ink);
  display: block;
  font-weight: 500;
  font-size: 11px;
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .colophon { padding: 48px 28px 52px; }
}

.simple-title {
  max-width: 680px;
  margin: 56px auto 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink);
}
.simple-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  margin: 0 0 18px;
}
.simple-title-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
}

.prose-simple.article-content,
.content-wrap.prose-simple {
  max-width: 680px;
  margin: 60px auto 0;
  font-size: 17px;
  line-height: 1.82;
  color: var(--ink-2);
  font-family: var(--sans);
  counter-reset: none;
}
.prose-simple .intro {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px dashed var(--rule);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-align: center;
  font-style: italic;
}
.prose-simple h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  margin: 2.5em 0 .7em;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  position: relative;
  padding-top: 28px;
}
/* override autonumbering for simple pages */
.prose-simple h2::before {
  content: "§";
  position: absolute;
  top: 28px;
  left: -36px;
  color: var(--vermilion);
  font-style: italic;
  font-size: 26px;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  width: auto;
  height: auto;
  background: none;
}
.prose-simple h2::after { content: none; }
.prose-simple h2 em {
  font-style: italic;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
@media (max-width: 820px) {
  .prose-simple h2::before { position: static; margin-right: 8px; }
}

.signature {
  margin: 64px auto 0;
  max-width: 680px;
  padding: 34px 0 0;
  border-top: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.signature-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-2);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.signature-text strong {
  color: var(--vermilion);
  font-style: normal;
  font-family: var(--serif);
  font-weight: 600;
  display: block;
  margin-top: 10px;
  font-size: 18px;
}
.signature-stamp {
  width: 110px;
  height: 110px;
  border: 2px solid var(--vermilion);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  color: var(--vermilion);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  padding: 10px;
  position: relative;
}
.signature-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--vermilion);
  border-radius: 50%;
}
.signature-stamp strong {
  font-family: var(--serif);
  font-size: 13px;
  display: block;
  font-weight: 700;
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .signature { grid-template-columns: 1fr; gap: 28px; }
  .signature-stamp { justify-self: start; }
}

.end-mark {
  text-align: center;
  margin: 50px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--vermilion);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.end-mark::before, .end-mark::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1px;
  background: var(--vermilion);
  vertical-align: middle;
  margin: 0 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: 96px;
  padding: 56px 0 32px;
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(26,43,61,.04), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(200,56,31,.03), transparent 50%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { max-width: 28ch; }
.footer-brand .brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 18px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.footer-col ul {
  list-style: none;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 2;
  padding: 0;
  margin: 0;
}
.footer-col li { }
.footer-col a {
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dotted transparent;
  text-decoration: none;
}
.footer-col a:hover { color: var(--vermilion); }
.footer-col .page-num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-muted);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.compass {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.compass::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: conic-gradient(from 0deg, var(--vermilion) 0 6%, transparent 6% 50%, var(--ink) 50% 56%, transparent 56% 100%);
  clip-path: polygon(50% 0, 58% 50%, 50% 100%, 42% 50%);
  border-radius: 50%;
}
.compass::after {
  content: "N";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 10px;
  color: var(--vermilion);
  font-weight: 700;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.cc-floating {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 100;
}
.cc-floating[hidden] { display: none !important; }
.cc-banner {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 22px 26px 22px 68px;
  font-family: var(--sans);
  position: relative;
  box-shadow: 6px 6px 0 var(--ochre);
}
.cc-banner::before {
  content: "Legenda · uwagi praktyczne";
  position: absolute;
  top: -9px;
  left: 60px;
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--vermilion);
}
.cc-banner::after {
  content: "§";
  position: absolute;
  bottom: 8px;
  right: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-muted);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  opacity: .45;
}
.cc-icon {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper-3);
  display: grid;
  place-items: center;
}
.cc-icon::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow:
    -8px -4px 0 0 var(--ink),
    7px -6px 0 0 var(--teal),
    -6px 7px 0 0 var(--ochre),
    8px 5px 0 0 var(--ink);
}
.cc-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cc-text { min-width: 0; }
.cc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cc-title em {
  font-style: italic;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.cc-title-ref {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
}
.cc-copy {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0;
}
.cc-copy a.cc-more {
  color: var(--vermilion);
  border-bottom: 1px dotted var(--vermilion);
  font-family: var(--sans);
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 1px;
  margin-left: 4px;
  text-decoration: none;
}
.cc-copy a.cc-more:hover { background: rgba(200,56,31,.08); }
.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 180px;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform .15s, box-shadow .15s;
  line-height: 1;
}
.cc-btn.primary {
  background: var(--vermilion);
  color: #fff;
  border-color: var(--vermilion);
  box-shadow: 3px 3px 0 var(--ink);
}
.cc-btn.primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.cc-btn.primary::after { content: "→"; }
.cc-btn.ghost {
  background: transparent;
  color: var(--ink);
}
.cc-btn.ghost:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 760px) {
  .cc-floating { left: 10px; right: 10px; bottom: 10px; }
  .cc-banner { padding: 18px 16px 18px 56px; }
  .cc-body { grid-template-columns: 1fr; gap: 14px; }
  .cc-actions { flex-direction: column; min-width: 0; }
  .cc-icon { width: 32px; height: 32px; left: 12px; top: 18px; }
  .cc-title { font-size: 15px; }
  .cc-copy { font-size: 12.5px; }
}
