:root {
  --navy-950: #050d22;
  --navy-900: #0a1838;
  --navy-800: #122455;
  --navy-700: #1a3270;
  --navy-600: #2a4a8c;
  --navy-50: #eef1f8;
  --gold: #b8924d;
  --gold-light: #d4ac6a;
  --gold-dark: #8f6f33;
  --cream: #f8f5ef;
  --paper: #fdfcf9;
  --ink: #1a1d2e;
  --muted: #5a6178;
  --line: #e6e2d8;
  --success: #2d7a4a;
  --danger: #b04545;
  --surface: #f5f3ee;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: 'Cormorant Garamond', serif; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--navy-950);
  color: var(--cream);
  font-size: 13px;
  padding: 10px 0;
  letter-spacing: 0.02em;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.topbar a { text-decoration: none; }
.topbar-left { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar-left span { opacity: 0.6; margin-right: 6px; }
.topbar-right { display: flex; gap: 24px; align-items: center; font-size: 12px; }
.topbar-right span { opacity: 0.6; margin-right: 6px; }

/* ============ HEADER ============ */
header {
  background: rgba(253, 252, 249, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 8px 24px -12px rgba(10, 24, 56, 0.08); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy-900); }
.logo-mark {
  width: 52px; height: 52px;
  background: var(--navy-900);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em;
  border: 1px solid var(--gold);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(184, 146, 77, 0.3); }
.logo-text { line-height: 1.15; }
.logo-text .name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--navy-900); letter-spacing: -0.01em; }
.logo-text .sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-top: 2px; }

nav ul { display: flex; list-style: none; gap: 28px; align-items: center; }
nav a { text-decoration: none; color: var(--navy-900); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; position: relative; padding-bottom: 4px; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--gold); }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease; }
nav a:hover::after, nav a.active::after { width: 100%; }
.nav-cta::after { display: none; }
.menu-toggle { display: none; background: none; border: none; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: 0.3s; }

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--cream);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(184, 146, 77, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(184, 146, 77, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(248, 245, 239, 0.55); margin-bottom: 24px; }
.breadcrumb a { color: rgba(248, 245, 239, 0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { opacity: 0.4; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 900px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.page-hero p {
  font-size: 18px;
  color: rgba(248, 245, 239, 0.78);
  max-width: 720px;
  line-height: 1.6;
}

/* ============ HOME HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  color: var(--cream);
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(184, 146, 77, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(184, 146, 77, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold-light); margin-bottom: 28px; }
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.hero-lead {
  font-size: 18px; line-height: 1.7;
  color: rgba(248, 245, 239, 0.78);
  margin-bottom: 36px; max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.25s; border: none;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--cream); border: 1px solid rgba(248, 245, 239, 0.3); }
.btn-secondary:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-dark { background: var(--navy-900); color: var(--cream); }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--navy-900); border: 1px solid var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--cream); }

/* Hero card */
.hero-card {
  background: rgba(248, 245, 239, 0.04);
  border: 1px solid rgba(184, 146, 77, 0.25);
  padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
}
.hero-card::before, .hero-card::after { content: ''; position: absolute; width: 30px; height: 30px; }
.hero-card::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hero-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.hero-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin-bottom: 24px; color: var(--cream); }
.hero-card-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(248, 245, 239, 0.08); font-size: 14px; gap: 16px; }
.hero-card-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.hero-card-row .label { color: rgba(248, 245, 239, 0.55); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.hero-card-row .value { color: var(--cream); font-weight: 500; text-align: right; }
.hero-card-cta {
  display: block; text-align: center;
  margin-top: 24px; padding: 14px;
  background: var(--gold);
  color: var(--navy-900) !important;
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: background 0.2s;
}
.hero-card-cta:hover { background: var(--gold-light); }

/* ============ SECTION COMMON ============ */
section { padding: 100px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; margin-right: 0; }
.section-eyebrow { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 18px; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-lead { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* Prose content (paragraphs in subpages) */
.prose { font-size: 16px; line-height: 1.8; color: var(--ink); max-width: 820px; }
.prose p { margin-bottom: 20px; }
.prose h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 500; color: var(--navy-900); margin: 48px 0 20px; line-height: 1.2; letter-spacing: -0.01em; }
.prose h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--navy-900); margin: 36px 0 14px; line-height: 1.25; }
.prose h4 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--navy-900); margin: 28px 0 12px; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--navy-900); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 20px 28px;
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--paper);
  padding: 40px 36px;
  border: 1px solid var(--line);
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.service::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(10, 24, 56, 0.18); }
.service:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--navy-900); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-num { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 12px; }
.service h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--navy-900); margin-bottom: 12px; line-height: 1.2; }
.service p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.service .service-link { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.service .service-link svg { transition: transform 0.2s; }
.service:hover .service-link svg { transform: translateX(4px); }

/* ============ JURISDICTION CHECKER ============ */
.checker-wrap { max-width: 880px; margin: 0 auto; }
.checker-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 50px 56px;
  position: relative;
}
.checker-box::before {
  content: ''; position: absolute; top: 0; left: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.checker-input-wrap { position: relative; margin: 28px 0 0; }
.checker-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  font-size: 17px;
  font-family: inherit;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--navy-900);
  transition: border-color 0.2s;
  outline: none;
}
.checker-input:focus { border-color: var(--gold); }
.checker-input::placeholder { color: var(--muted); }
.checker-icon { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.checker-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--line); border-top: none;
  max-height: 280px; overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: 0 12px 24px -12px rgba(10, 24, 56, 0.15);
}
.checker-suggestions.open { display: block; }
.checker-suggestion {
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: background 0.15s;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.checker-suggestion:last-child { border-bottom: none; }
.checker-suggestion:hover, .checker-suggestion.active { background: var(--cream); }
.checker-suggestion .sub { font-size: 12px; color: var(--muted); }
.checker-result {
  margin-top: 22px; padding: 22px 26px;
  display: none;
  align-items: flex-start; gap: 16px;
  border-left: 4px solid;
}
.checker-result.show { display: flex; }
.checker-result.yes { background: rgba(45, 122, 74, 0.08); border-color: var(--success); }
.checker-result.no { background: rgba(176, 69, 69, 0.08); border-color: var(--danger); }
.checker-result-icon { flex-shrink: 0; }
.checker-result.yes .checker-result-icon { color: var(--success); }
.checker-result.no .checker-result-icon { color: var(--danger); }
.checker-result-content h4 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; margin-bottom: 6px; color: var(--navy-900); }
.checker-result-content p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.checker-result-content a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.checker-help { margin-top: 18px; font-size: 13px; color: var(--muted); }
.checker-help strong { color: var(--navy-900); }

/* ============ TIMELINE ============ */
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 32px; top: 20px; bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
}
.timeline-step { position: relative; padding-left: 90px; padding-bottom: 44px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 18px; top: 8px;
  width: 30px; height: 30px;
  background: var(--navy-950);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 600;
  color: var(--gold-light);
}
.timeline-step h4 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--cream); margin-bottom: 8px; line-height: 1.2; }
.timeline-step .timeline-tag { display: inline-block; padding: 3px 10px; background: rgba(184, 146, 77, 0.15); color: var(--gold-light); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; border: 1px solid rgba(184, 146, 77, 0.3); }
.timeline-step p { color: rgba(248, 245, 239, 0.72); line-height: 1.7; font-size: 15px; max-width: 700px; }

/* Dark sections */
.dark-section { background: var(--navy-950); color: var(--cream); position: relative; overflow: hidden; }
.dark-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(184, 146, 77, 0.08), transparent 60%);
}
.dark-section .section-title { color: var(--cream); }
.dark-section .section-eyebrow { color: var(--gold-light); }
.dark-section .section-lead { color: rgba(248, 245, 239, 0.7); }
.dark-section .container { position: relative; z-index: 1; }

/* ============ JURISDICTION SECTION ============ */
.jurisdiction-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.areas-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.areas-tab {
  padding: 11px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.areas-tab.active { background: var(--navy-900); color: var(--cream); border-color: var(--navy-900); }
.areas-pane { display: none; }
.areas-pane.active { display: block; }
.areas-list {
  list-style: none;
  columns: 2; column-gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.areas-list li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--navy-900);
  break-inside: avoid;
  display: flex; align-items: center; gap: 10px;
}
.areas-list li::before { content: ''; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.map-illust { background: var(--paper); border: 1px solid var(--line); padding: 28px; position: relative; }
.map-legend { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.map-legend-item { display: flex; align-items: center; gap: 8px; }
.map-legend-dot { width: 10px; height: 10px; }
.legend-primary { background: var(--gold); }
.legend-secondary { background: var(--navy-700); }

.info-note {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--navy-900); color: var(--cream);
  border-left: 4px solid var(--gold);
  font-size: 14px; line-height: 1.7;
}
.info-note strong { color: var(--gold-light); display: block; margin-bottom: 6px; font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; }

/* ============ FULL GMINY GRID ============ */
.gminy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.gmina-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 32px;
}
.gmina-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 10px;
}
.gmina-card h3::before {
  content: ''; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
  flex-shrink: 0;
}
.gmina-card .gmina-meta {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.gmina-card .miejscowosci {
  font-size: 14px; line-height: 1.7; color: var(--muted);
}
.gmina-card .miejscowosci span { display: inline-block; white-space: nowrap; padding: 2px 0; }
.gmina-card .miejscowosci span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--gold); }

/* ============ FAQ ============ */
.faq-wrap { max-width: 920px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  padding: 24px 0;
  background: none; border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 600;
  color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; line-height: 1.3;
}
.faq-q:hover { color: var(--gold); }
.faq-toggle {
  flex-shrink: 0; width: 30px; height: 30px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  position: relative;
}
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; background: var(--navy-900); transition: transform 0.3s; }
.faq-toggle::before { width: 12px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-toggle { background: var(--navy-900); border-color: var(--navy-900); }
.faq-item.open .faq-toggle::before, .faq-item.open .faq-toggle::after { background: var(--cream); }
.faq-item.open .faq-toggle::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 780px; }
.faq-a-inner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-a-inner strong { color: var(--navy-900); }

/* ============ DOCS ============ */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc {
  background: var(--paper);
  padding: 26px;
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  display: flex; gap: 18px; align-items: flex-start;
  transition: all 0.25s;
}
.doc:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(10, 24, 56, 0.15); }
.doc-icon {
  flex-shrink: 0; width: 42px; height: 54px;
  background: var(--navy-900); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.doc-icon::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.doc-icon svg { width: 18px; height: 18px; }
.doc h4 { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--navy-900); margin-bottom: 4px; line-height: 1.3; }
.doc p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; }
.contact-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: var(--navy-900); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-row-icon svg { width: 18px; height: 18px; }
.contact-row-content { flex: 1; }
.contact-row-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 4px; }
.contact-row-value { font-size: 15px; color: var(--navy-900); font-weight: 500; word-break: break-word; }
.contact-row-value a { color: inherit; text-decoration: none; }
.contact-row-value a:hover { color: var(--gold); }

.contact-card {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--cream);
  padding: 50px 44px;
  position: relative; overflow: hidden;
}
.contact-card::before { content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: var(--gold); opacity: 0.06; border-radius: 50%; transform: translate(40%, -40%); }
.contact-card-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold-light); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.contact-card-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.contact-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; margin-bottom: 14px; line-height: 1.2; }
.contact-card p { color: rgba(248, 245, 239, 0.75); margin-bottom: 28px; line-height: 1.7; font-size: 15px; }
.hours-block { background: rgba(248, 245, 239, 0.05); padding: 22px 26px; border-left: 3px solid var(--gold); margin-bottom: 28px; }
.hours-block .hours-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-light); margin-bottom: 8px; }
.hours-block .hours-value { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--cream); word-break: break-all; }
.bank-info { padding-top: 22px; border-top: 1px solid rgba(248, 245, 239, 0.1); font-size: 13px; color: rgba(248, 245, 239, 0.6); line-height: 1.8; }
.bank-info .bank-row { display: flex; justify-content: space-between; gap: 16px; }
.bank-info strong { color: var(--cream); font-weight: 500; }

/* ============ FOOTER ============ */
footer { background: var(--navy-950); color: rgba(248, 245, 239, 0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand { max-width: 360px; }
.footer-brand .logo-mark { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-brand .footer-contact { font-size: 14px; line-height: 1.8; }
.footer-brand .footer-contact strong { color: var(--cream); }
.footer-col h5 { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--cream); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(248, 245, 239, 0.65); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(248, 245, 239, 0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(248, 245, 239, 0.5); flex-wrap: wrap; gap: 16px; }
.disclaimer {
  background: rgba(248, 245, 239, 0.03);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  font-size: 12px;
  color: rgba(248, 245, 239, 0.55);
  line-height: 1.6;
  margin-bottom: 30px;
  font-style: italic;
}

/* ============ SUBPAGE CONTENT ============ */
.section-content { padding: 80px 0; }
.section-content .prose { margin: 0 auto; }
.lead { font-size: 18px; color: rgba(248, 245, 239, 0.78); max-width: 720px; line-height: 1.6; margin-bottom: 0; }
.page-hero .lead { color: rgba(248, 245, 239, 0.78); }
.page-hero .hero-actions { margin-top: 2rem; }

/* ============ INFO CARDS GRID ============ */
.section-info { padding: 80px 0; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-top: 3px solid var(--gold);
}
.info-card .info-icon { font-size: 28px; margin-bottom: 14px; }
.info-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--navy-900); margin-bottom: 10px; }
.info-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.info-box { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 32px 36px; max-width: 860px; margin: 0 auto; }
.info-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--navy-900); margin-bottom: 12px; }
.info-box p { color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.info-box p:last-child { margin-bottom: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--navy-900); margin-bottom: 12px; }

/* ============ CZYNNOŚCI PAGE ============ */
.section-czynnosci { padding: 80px 0; }
.czynnosci-list { display: flex; flex-direction: column; gap: 48px; }
.czynnosc-item {
  padding: 44px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}
.czynnosc-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.czynnosc-icon { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.czynnosc-icon svg { width: 36px; height: 36px; }
.czynnosc-meta { flex: 1; }
.czynnosc-badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); background: rgba(184, 146, 77, 0.1); padding: 3px 10px; margin-bottom: 8px; }
.czynnosc-item h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: var(--navy-900); line-height: 1.2; }
.czynnosc-lead { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.czynnosc-content { margin-top: 16px; }

/* ============ WZORY WNIOSKÓW PAGE ============ */
.section-wzory { padding: 80px 0; }
.wzory-list { display: flex; flex-direction: column; gap: 16px; }
.wzor-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.wzor-card:hover { border-color: var(--gold); }
.wzor-info { flex: 1; }
.wzor-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.wzor-info p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.wzor-action { flex-shrink: 0; }

/* ============ PRACA PAGE ============ */
.section-praca { padding: 80px 0; }
.praca-list { display: flex; flex-direction: column; gap: 32px; }
.praca-card {
  padding: 40px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.praca-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--navy-900); margin-bottom: 16px; }
.praca-desc { margin-bottom: 20px; color: var(--muted); line-height: 1.7; }
.praca-reqs { background: var(--cream); padding: 20px 24px; margin-bottom: 24px; }
.praca-reqs h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--navy-900); margin-bottom: 10px; }
.praca-apply { padding-top: 20px; border-top: 1px solid var(--line); }

/* ============ KONTAKT PAGE ============ */
.section-contact { padding: 80px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-details h2, .contact-form-wrap h2 { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 500; color: var(--navy-900); margin-bottom: 28px; line-height: 1.15; }
.contact-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-block:first-of-type { padding-top: 0; }
.contact-block:last-of-type { border-bottom: none; }
.contact-block h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 8px; }
.contact-block p { font-size: 15px; color: var(--navy-900); line-height: 1.7; }
.contact-block a { color: var(--gold); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }
.contact-form-wrap .text-muted { color: var(--muted); }
.section-map { padding: 0; }
.map-embed iframe { display: block; width: 100%; height: 400px; border: none; }

/* ============ FORM ELEMENTS ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--navy-900); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; }
.check-label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check-label input[type=checkbox] { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold); }
.check-label a { color: var(--gold); }
.btn-full { width: 100%; justify-content: center; }
.btn-outline--light { color: var(--cream); border-color: rgba(248, 245, 239, 0.4); }
.btn-outline--light:hover { background: rgba(248, 245, 239, 0.1); color: var(--cream); }
.form-status { padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.form-status--ok { background: rgba(45, 122, 74, 0.08); border: 1px solid var(--success); color: var(--success); }
.form-status--err { background: rgba(176, 69, 69, 0.08); border: 1px solid var(--danger); color: var(--danger); }
.text-muted { color: var(--muted); }

/* ============ WLASCIWOSC / CHECKER ============ */
.section-checker { padding: 80px 0; }
.checker-wrap { max-width: 860px; margin: 0 auto; }
.checker-wrap h2 { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 500; color: var(--navy-900); margin-bottom: 12px; }
.checker-form { display: flex; gap: 12px; margin: 24px 0 16px; }
.checker-form .checker-input { flex: 1; }
.checker-result { padding: 16px 20px; font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.checker-result--yes { background: rgba(45, 122, 74, 0.08); border: 1px solid var(--success); color: var(--success); }
.checker-result--no { background: rgba(176, 69, 69, 0.08); border: 1px solid var(--danger); color: var(--ink); }
.checker-result--no a { color: var(--gold); }
.checker-result--partial { background: rgba(184, 146, 77, 0.1); border: 1px solid var(--gold); color: var(--ink); }
.checker-suggestions { background: var(--paper); border: 1px solid var(--line); border-top: none; }
.suggestion-item { padding: 12px 16px; cursor: pointer; font-size: 14px; color: var(--navy-900); border-bottom: 1px solid var(--line); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--cream); color: var(--gold); }
.section-localities { padding: 80px 0; }
.section-localities h2 { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 500; color: var(--navy-900); margin-bottom: 12px; }
.section-localities > .container > p { color: var(--muted); margin-bottom: 28px; }
.localities-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.locality-tag { padding: 6px 14px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--navy-900); }

/* ============ LANDING PAGE ============ */
.landing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.landing-card { background: var(--paper); border: 1px solid var(--line); padding: 28px 24px; border-top: 3px solid var(--gold); }
.landing-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 10px; }
.landing-card p { font-size: 15px; font-weight: 500; color: var(--navy-900); }
.landing-card a { color: var(--gold); text-decoration: none; }
.landing-card a:hover { text-decoration: underline; }
.section-landing-info { padding: 60px 0; }
.czynnosci-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.czynnosc-preview-card {
  display: block; padding: 28px 24px;
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.czynnosc-preview-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.czynnosc-preview-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.czynnosc-preview-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .jurisdiction-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .gminy-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .landing-cards { grid-template-columns: 1fr 1fr; }
  .czynnosci-preview-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); gap: 16px; }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 60px 0 70px; }
  .page-hero { padding: 50px 0 50px; }
  .services-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .checker-box { padding: 32px 22px; }
  .areas-list { columns: 1; }
  .timeline::before { left: 14px; }
  .timeline-step { padding-left: 56px; }
  .timeline-dot { left: 0; width: 28px; height: 28px; }
  .contact-card { padding: 36px 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .landing-cards { grid-template-columns: 1fr 1fr; }
  .czynnosci-preview-grid { grid-template-columns: 1fr; }
  .czynnosc-item { padding: 28px 24px; }
  .praca-card { padding: 28px 24px; }
  .wzor-card { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .checker-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 60px 0; }
  .topbar-left { flex-direction: column; gap: 4px; }
  .topbar-right { display: none; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero-lead, .hero-actions, .hero-card { animation: fadeUp 0.8s ease-out backwards; }
.hero-lead { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.2s; }
.hero-card { animation-delay: 0.3s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
