:root {
  --navy: #0b1f3a;
  --navy-deep: #071526;
  --navy-mid: #132a4a;
  --ivory: #f6f1e8;
  --ivory-soft: #ebe4d6;
  --brass: #c4a35a;
  --brass-soft: #d4bc7a;
  --ink: #1a1a1a;
  --muted: #5c5a55;
  --white: #ffffff;
  --header-h: 4.25rem;
  --max: 68rem;
  --pad: 1.25rem;
  --radius: 2px;
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brass);
  color: var(--navy);
  padding: 0.5rem 0.9rem;
  z-index: 100;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.85rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}

.for-whom {
  margin: 0;
  padding: 0.75rem var(--pad);
  background: #e8dcc0;
  color: var(--navy);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(196, 163, 90, 0.45);
}

.for-whom strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.for-whom a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.for-whom a:hover {
  color: var(--navy-deep);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
  min-height: 44px;
}

.brand picture,
.brand img {
  width: 2.15rem;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.15rem;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(196, 163, 90, 0.4);
  background: transparent;
  color: var(--ivory);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  background: var(--navy-deep);
  padding: 1.5rem var(--pad) 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  z-index: 30;
  transition: transform 0.28s ease, visibility 0.28s;
}

body.nav-open .nav {
  transform: none;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav a,
.nav-label {
  display: block;
  text-decoration: none;
  color: var(--ivory);
  font-size: 1.35rem;
  font-family: var(--serif);
  padding: 0.7rem 0;
  min-height: 44px;
}

.nav a.is-active,
.nav a:hover {
  color: var(--brass);
}

.nav-sub {
  list-style: none;
  padding: 0 0 0.6rem 0.9rem;
  border-left: 1px solid rgba(196, 163, 90, 0.35);
  margin: 0 0 0.5rem 0.15rem;
}

.nav-sub a {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ivory-soft);
  padding: 0.55rem 0;
}

.nav-cta {
  margin-top: 1.25rem;
}

.nav-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--brass);
  text-align: center;
  line-height: 1.3;
}

.btn-gold {
  background: var(--brass);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--brass-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-block {
  width: 100%;
}

.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 2.6rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: 2rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(196, 163, 90, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2.05rem, 8vw, 3.6rem);
  color: var(--ivory);
  max-width: 22ch;
}

.lede {
  font-size: 1.08rem;
  color: var(--ivory-soft);
  max-width: 42ch;
}

.hero-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-aside {
  border-top: 1px solid rgba(196, 163, 90, 0.3);
  padding-top: 1.4rem;
}

.hero-aside p {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ivory);
  margin: 0;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(196, 163, 90, 0.28);
}

.mark {
  width: 4.5rem;
  margin-bottom: 1rem;
}

.split-visual {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.split-visual figure {
  margin: 0;
}

.split-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--ivory-soft);
}

.split-copy .section-intro {
  margin-bottom: 1.2rem;
}

.figure-block {
  margin: 1.5rem 0 2rem;
}

.figure-block img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border: 1px solid var(--ivory-soft);
}

.callout {
  background: var(--white);
  border-left: 2px solid var(--brass);
  padding: 1.15rem 1.2rem;
  margin: 1.5rem 0 1.8rem;
}

.callout strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.edict {
  background: var(--white);
  border: 2px solid var(--navy);
  padding: 1.35rem 1.35rem 1.2rem;
  margin: 1.75rem 0 2rem;
}

.edict-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.45rem;
}

.edict-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.edict p {
  margin: 0 0 0.85rem;
}

.edict p:last-child {
  margin-bottom: 0;
}

.edict strong {
  font-weight: 700;
}

.edict .btn {
  margin-top: 0.45rem;
}

.section {
  padding: 3.2rem 0;
}

.section-navy {
  background: var(--navy);
  color: var(--ivory);
}

.section h2 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.section-intro {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.8rem;
}

.section-navy .section-intro {
  color: rgba(246, 241, 232, 0.72);
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--white);
  border-top: 2px solid var(--brass);
  padding: 1.4rem 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.04);
}

.card-illust,
.page-hero-art,
.fact-illust,
.fact picture {
  width: 2.75rem;
  height: auto;
  margin-bottom: 0.85rem;
}

.card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.rules {
  display: grid;
  gap: 1rem;
}

.rule {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--ivory-soft);
}

.rule:first-child {
  border-top: 1px solid var(--ivory-soft);
}

.rule strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
  margin-top: 1.6rem;
}

.step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(196, 163, 90, 0.28);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--brass);
  font-size: 1.4rem;
  line-height: 1.2;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.step p {
  margin: 0;
  color: rgba(246, 241, 232, 0.75);
}

.quote {
  background: var(--ivory);
  padding: 3rem 0;
}

.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--navy);
  max-width: 22ch;
}

.quote p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  background: var(--navy-mid);
  color: var(--ivory);
  padding: 2.6rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 2rem;
}

.cta-band p {
  color: rgba(246, 241, 232, 0.75);
}

.cta-band a:not(.btn) {
  color: var(--brass-soft);
  font-weight: 600;
}

.cta-band .btn {
  margin-top: 0.4rem;
  max-width: 28rem;
}

.opener {
  background: var(--navy);
  color: var(--ivory);
  padding: 2.8rem 0 3.2rem;
}

.opener-inner {
  display: grid;
  gap: 1rem;
}

.opener-sigil {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.opener h1 {
  font-size: clamp(2.15rem, 6.5vw, 4.15rem);
  max-width: 15ch;
  color: var(--ivory);
}

.opener .lede {
  max-width: 40rem;
}

.opener-next {
  margin: 1.4rem 0 0;
}

.opener-next a {
  color: var(--brass-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.12rem;
}

.plate {
  margin: 0;
  line-height: 0;
  background: var(--navy);
}

.plate img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 40%;
}

.docket {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  counter-reset: docket;
}

.docket a {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(11, 31, 58, 0.14);
}

.docket li:last-child a {
  border-bottom: 1px solid rgba(11, 31, 58, 0.14);
}

.docket-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--navy);
}

.docket-name::before {
  counter-increment: docket;
  content: counter(docket, decimal-leading-zero);
  display: inline-block;
  min-width: 2.2rem;
  margin-right: 0.35rem;
  color: var(--brass);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.docket-text {
  color: var(--muted);
}

.docket a:hover .docket-name {
  color: var(--brass);
}

.dossier {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.dossier figure {
  margin: 0;
}

.dossier img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-top: 2px solid var(--brass);
}

.page-hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 2.4rem 0 0;
  overflow: hidden;
}

.page-hero .wrap {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

.page-hero h1 {
  font-size: clamp(2rem, 7vw, 3.1rem);
  max-width: 16ch;
}

.page-hero-art {
  width: 6.5rem;
  margin: 0;
  justify-self: start;
  background: var(--white);
  border: 1px solid rgba(196, 163, 90, 0.28);
}

.page-hero figure {
  margin: 1.8rem calc(50% - 50vw) 0;
  width: 100vw;
  max-width: 100vw;
}

.page-hero-photo,
.page-hero-photo.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 32%;
  margin: 0;
  border: 0;
}

.page-hero-photo.portrait {
  aspect-ratio: 3 / 4;
  object-position: center 18%;
}

.page-hero-photo.nizej {
  object-position: center 70%;
}

.facts {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 1.8rem;
}

.fact {
  background: var(--white);
  border-top: 2px solid var(--brass);
  padding: 1.2rem 1.15rem 1.15rem;
}

.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

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

.prose {
  padding: 2.4rem 0 3.4rem;
}

/* Continuous copy, set like a pleading: even left and right edges.
   Narrow measures stay ragged-right; without Polish hyphenation, justify opens gaps. */
@media (min-width: 720px) {
  .prose p,
  .prose li,
  .edict p,
  .opener .lede,
  .rule p,
  .step p,
  .footer-bottom {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.15rem;
  margin: 0 0 1.1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  color: var(--navy);
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}

.mail-card {
  background: var(--navy);
  color: var(--ivory);
  padding: 1.6rem 1.2rem;
  margin: 1.4rem 0 1.8rem;
}

a.js-mail[data-reveal]:not([data-ready]) {
  color: transparent;
  user-select: none;
}

.mail-card a.mail {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  color: var(--brass);
  text-decoration: none;
  word-break: break-word;
  min-height: 48px;
  padding: 0.4rem 0;
}

.list-articles {
  display: grid;
  gap: 0.85rem;
}

.list-articles a {
  display: block;
  background: var(--white);
  padding: 1.15rem 1.1rem;
  text-decoration: none;
  border-left: 2px solid var(--brass);
  min-height: 44px;
}

.list-articles h2 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.list-articles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  background: var(--navy-deep);
  color: rgba(246, 241, 232, 0.78);
  padding: 1.15rem 0 0.85rem;
  border-top: 1px solid rgba(196, 163, 90, 0.28);
  font-size: 0.8rem;
  line-height: 1.55;
}

.footer a {
  color: var(--ivory);
  text-decoration: none;
}

.footer a:hover {
  color: var(--brass);
}

.footer-bottom {
  margin: 0 0 0.35rem;
  max-width: 48rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.15rem;
  margin: 0;
  font-size: 0.78rem;
}

.footer-meta a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 768px) {
  :root {
    --pad: 2rem;
  }

  .hero,
  .section,
  .page-hero {
    padding-top: 4rem;
    padding-bottom: 4.2rem;
  }

  .page-hero {
    padding-bottom: 0;
  }

  .cards,
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero-art {
    width: 8.5rem;
  }

  .page-hero figure:has(.portrait) {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--ivory);
    display: flex;
    justify-content: center;
  }

  .page-hero-photo.portrait {
    width: min(34rem, 100%);
  }

  .opener {
    padding: 4.2rem 0 4.6rem;
  }

  .opener-inner {
    grid-template-columns: 8.5rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .docket a {
    grid-template-columns: 16rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }

  .dossier {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 3rem;
  }

  .dossier img {
    height: 26rem;
  }

  .rule {
    display: grid;
    grid-template-columns: 16rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }

  .split-visual {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
  }
}

@media (min-width: 1100px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
  }

  body.nav-open {
    overflow: auto;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.2rem 1.15rem;
  }

  .nav a,
  .nav-label {
    font-family: var(--sans);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0;
    min-height: 0;
  }

  .has-sub {
    position: relative;
  }

  .has-sub .nav-label {
    cursor: default;
  }

  .nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 13rem;
    background: var(--navy-deep);
    border: 1px solid rgba(196, 163, 90, 0.28);
    padding: 0.55rem 0.9rem;
    margin: 0;
    border-left: 0;
  }

  .has-sub:hover .nav-sub,
  .has-sub:focus-within .nav-sub {
    display: block;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 0.6rem;
    display: flex;
    align-items: center;
  }

  .nav-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.95rem;
    font-size: 0.8rem;
    line-height: 1;
  }

  .nav-cta .btn:hover {
    color: var(--navy);
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.2rem;
  }

  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .btn:not(.btn-block) {
    width: auto;
  }

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

  .rules {
    display: block;
  }

  .hero-aside {
    border-top: 0;
    border-left: 1px solid rgba(196, 163, 90, 0.3);
    padding: 0 0 0 2rem;
  }
}

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

  .nav,
  .nav-toggle span {
    transition: none;
  }
}
