:root {
  --bg: #fbf6ef;
  --bg-alt: #f4ebdf;
  --surface: #ffffff;
  --surface-2: #fff9f2;
  --text: #2a211c;
  --muted: #65574d;
  --line: #e7d9c8;
  --primary: #a8481f;
  --primary-hover: #8c3a17;
  --on-primary: #ffffff;
  --accent: #4f6f52;
  --accent-soft: #e5ede2;
  --honey: #f3c969;
  --honey-soft: #fdf0cf;
  --heart: #c8372a;
  --shadow: 0 1px 2px rgb(60 35 20 / .06), 0 8px 24px rgb(60 35 20 / .08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --step--1: clamp(.875rem, .85rem + .1vw, .925rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + .75vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1916;
    --bg-alt: #24201c;
    --surface: #2a2420;
    --surface-2: #302924;
    --text: #f3ebe2;
    --muted: #c4b5a8;
    --line: #42382f;
    --primary: #f0a27a;
    --primary-hover: #f6b896;
    --on-primary: #2a1409;
    --accent: #a9c7a6;
    --accent-soft: #2c3529;
    --honey: #e9bd5b;
    --honey-soft: #3a311d;
    --heart: #f07a6c;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-family: var(--font-serif); font-size: var(--step-4); letter-spacing: -.01em; }
h2 { font-family: var(--font-serif); font-size: var(--step-3); letter-spacing: -.005em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
li > ul, li > ol { margin-top: .4em; }
strong { font-weight: 650; }

a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--primary-hover); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.nowrap { white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a {
  display: block; padding: .5rem .7rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.site-nav ul a:hover { background: var(--bg-alt); }
.site-nav ul a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-wrap: wrap; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .75rem;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .75rem 1rem 1.25rem;
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { padding: .75rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .header-inner { position: relative; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-small { padding: .55rem 1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.site-nav .btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--on-primary); }

.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1.05fr 1fr; }
.eyebrow {
  display: inline-block; font-size: var(--step--1); font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 38ch; }
.hero-media { position: relative; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%;
  background: var(--honey-soft); border-radius: 28px; z-index: -1;
}
.hero-badge {
  position: absolute; left: -12px; bottom: 22px; background: var(--surface); border-radius: 16px;
  padding: .7rem 1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem; font-size: .9rem;
}
.hero-badge img { width: 46px; height: 46px; border-radius: 50%; box-shadow: none; aspect-ratio: auto; }
.hero-badge strong { display: block; font-size: 1rem; }

.page-hero { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2rem); }
.page-hero h1 { font-size: var(--step-3); margin-bottom: .4em; }
.page-hero .lead { max-width: 60ch; }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .5em; }
.card-soft { background: var(--surface-2); box-shadow: none; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%234f6f52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.highlight { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.3; color: var(--primary); margin: 1.25rem 0 0; }

.num-cards { counter-reset: n; }
.num-card { position: relative; padding-top: 4.1rem; }
.num-card::before {
  counter-increment: n; content: counter(n);
  position: absolute; top: 1.25rem; left: clamp(1.25rem, 3vw, 2rem);
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--honey-soft); color: var(--primary); font-weight: 700;
}

.tag {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .03em;
  background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .2rem .7rem; margin-bottom: .8rem;
}

.support {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--heart)));
  color: var(--on-primary); border-radius: 28px; padding: clamp(1.75rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.support h2 { color: inherit; margin-bottom: .3em; }
.support p { opacity: .95; }
.support .btn-primary { background: var(--on-primary); color: var(--primary); }
.support .btn-primary:hover { background: var(--bg); color: var(--primary-hover); }
.support .btn-secondary { color: var(--on-primary); border-color: color-mix(in srgb, var(--on-primary) 55%, transparent); }
.support .btn-secondary:hover { border-color: var(--on-primary); color: var(--on-primary); }
.support .pay { background: color-mix(in srgb, var(--on-primary) 12%, transparent); border-color: color-mix(in srgb, var(--on-primary) 30%, transparent); box-shadow: none; }
.support .pay-label { color: inherit; opacity: .85; }
.support .copy-btn { background: var(--on-primary); color: var(--primary); border-color: transparent; }

.pay-stack { display: grid; gap: .9rem; }
.pay {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
}
.pay-label { display: block; font-size: .8rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pay-value { display: block; font-size: clamp(1.05rem, 1rem + .6vw, 1.35rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy-btn {
  font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer;
  border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: .45rem .9rem; min-height: 2.25rem;
}
.copy-btn:hover { filter: brightness(.97); }
.copy-btn.copied { background: var(--accent); color: var(--surface); }

.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.steps li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 1.1rem;
}
.steps .card { padding: 1.1rem 1.4rem; }
.steps h3 { font-size: 1.1rem; }
.krs-chip { display: inline-block; margin-top: .25rem; font-size: .82rem; font-weight: 650; color: var(--muted); background: var(--bg-alt); border-radius: 999px; padding: .15rem .65rem; }

.tax-box {
  text-align: center; border: 2px dashed var(--primary); border-radius: var(--radius);
  padding: 1.75rem 1.25rem; background: var(--surface);
}
.tax-box p { margin: 0; }
.tax-box .tax-name { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.25; margin: .4rem 0; }
.tax-box .tax-krs { font-size: var(--step-1); font-weight: 700; color: var(--primary); letter-spacing: .03em; }

.people { list-style: none; padding: 0; margin: 0; }
.people li { padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.people li:last-child { border-bottom: 0; }
.people .role { color: var(--muted); font-size: .92rem; }

.notice {
  display: flex; gap: .8rem; align-items: flex-start; background: var(--honey-soft);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.5rem 0;
}
.notice strong { color: var(--primary); letter-spacing: .04em; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare .card h3 { display: flex; align-items: center; gap: .6rem; }
.compare .dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--accent); flex: none; }
.compare .card:last-child .dot { background: var(--primary); }

.form-card h3 { font-size: 1.05rem; letter-spacing: .03em; color: var(--primary); }

.toc ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .6rem; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-weight: 650; height: 100%;
}
.toc a span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.toc a:hover { border-color: var(--primary); }

.chapter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow); }
.chapter summary {
  cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.4rem; position: relative;
  display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; border-radius: var(--radius);
}
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%; width: .65rem; height: .65rem;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.chapter[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.chapter-num { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.chapter-title { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 700; }
.chapter-body { padding: 0 1.4rem 1.4rem; max-width: 78ch; }
.chapter-body .para { font-size: 1rem; color: var(--primary); margin: 1.6em 0 .5em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.chapter-body .para:first-child { border-top: 0; padding-top: 0; margin-top: .25em; }
.chapter-body .para span { color: var(--muted); font-weight: 400; }

.statute-head { text-align: center; margin-bottom: 1.75rem; }
.statute-head p { margin: 0; }
.statute-head .statute-title { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.3; }
.statute-head .statute-sub { color: var(--muted); }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-contain a { background: var(--surface); border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.gallery-contain img { object-fit: contain; padding: .5rem; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  margin: 0; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(15 10 8 / .88); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 10px 40px rgb(0 0 0 / .5); }
.lightbox button {
  position: fixed; border: 0; background: rgb(255 255 255 / .14); color: #fff; width: 3rem; height: 3rem;
  border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: rgb(255 255 255 / .28); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { margin: 0; display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; align-items: center; }
.contact-icon { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; background: var(--honey-soft); color: var(--primary); }
.contact-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-list .label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }

.figure-card { margin: 0; }
.figure-card img { border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; }

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.footer-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-block: 1.25rem 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .hero-grid, .split, .support { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-small { display: none; }
  .hero-badge { left: 8px; bottom: 8px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .lightbox, .btn, .copy-btn { display: none !important; }
  .chapter-body { display: block !important; }
  body { background: #fff; color: #000; }
}
.chapters { margin-top: 1.5rem; }
.h-card { font-family: var(--font); font-size: var(--step-1); }
.crop-portrait { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-height: 640px; }
.steps li { grid-template-columns: 1fr; }
.steps li::before { content: none; }
.h-step { font-family: var(--font); font-size: 1.1rem; margin-bottom: .4em; }
.steps .card > :last-child { margin-bottom: 0; }
.hero-list { margin-top: 1.25rem; }
.hero .highlight { margin-top: .5rem; }
.site-header .container { width: min(100% - 2rem, 1280px); }
.site-nav ul a, .site-nav .btn { white-space: nowrap; }
@media (min-width: 1181px) {
  .site-nav ul { flex-wrap: nowrap; }
  .site-nav ul a { padding: .45rem .6rem; font-size: .9rem; }
  .brand-small { display: none; }
}
