/* ============================================================
   Kancelaria Adwokacka B/K — Biała Krzysztofowicz
   Design system: 2025 modern legal UX
   ============================================================ */

:root {
  --ink: #10141b;
  --ink-2: #1a212d;
  --paper: #faf8f5;
  --paper-2: #f1ede6;
  --white: #ffffff;
  --gold: #b08d57;
  --gold-2: #c8a970;
  --gold-text: #785a30;
  --gold-button: #866438;
  --gold-soft: rgba(176, 141, 87, 0.14);
  --text: #262a31;
  --muted: #5d6470;
  --line: #e4ded3;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(16, 20, 27, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 20, 27, 0.16);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; }

a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold-button);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(var(--max), 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 8px; z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--dark { background: var(--ink); color: #d7dae0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tinted { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: #aab0ba; }
.section--dark .eyebrow { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold-button); color: #fff; box-shadow: 0 8px 24px rgba(176, 141, 87, 0.35); }
.btn--gold:hover { background: var(--gold-text); color: #fff; transform: translateY(-2px); }
.btn--outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold-text); color: var(--gold-text); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s, box-shadow 0.35s, height 0.35s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(16, 20, 27, 0.06);
  height: 68px;
}
.site-header.is-solid .main-nav a:not(.btn),
.site-header.is-solid .brand { color: var(--ink); }

.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1.15; }
.brand strong { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.06em; }
.brand span { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.85; }

.main-nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  color: rgba(255, 255, 255, 0.9); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  position: relative; padding: 0.3rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-2); }
.site-header.is-solid .main-nav a:not(.btn):is(:hover, [aria-current="page"]) { color: var(--gold-text); }
.main-nav a.btn { padding: 0.95rem 1.9rem; color: #fff; }
.main-nav a.btn::after { display: none; }
.main-nav a.btn:hover { color: #fff; }

.header-cta { margin-left: 1rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; z-index: 120;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }
.site-header.is-solid .nav-toggle span, .site-header.has-open-nav .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92svh;
  display: flex; align-items: flex-end;
  color: #fff; isolation: isolate;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(200deg, rgba(16, 20, 27, 0.25) 0%, rgba(16, 20, 27, 0.72) 62%, rgba(16, 20, 27, 0.9) 100%);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero--home h1 { max-width: 21ch; }
.hero p.lead { max-width: 56ch; font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); }
.hero .eyebrow { color: var(--gold-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero--compact { min-height: 52svh; align-items: center; text-align: left; padding-bottom: 3rem; }
.hero--compact h1 { max-width: 26ch; overflow-wrap: anywhere; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  margin-top: 3.2rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.trust-row div { max-width: 260px; }
.trust-row strong { display: block; color: var(--gold-2); font-family: var(--font-head); font-size: 1.6rem; }
.trust-row span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.trust-row a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.trust-row a:hover { color: var(--gold-2); }
.consultation-steps h3 { color: var(--gold-2); }
.consultation-steps p { max-width: 40ch; margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.2rem; font-size: 0.88rem; }
.crumbs li { display: flex; gap: 0.5rem; align-items: center; color: rgba(255, 255, 255, 0.7); }
.crumbs li + li::before { content: "›"; opacity: 0.5; }
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- Cards / practices ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 0.5em; }
.card h3 a { color: var(--ink); text-decoration-color: var(--gold); }
.card h3 a:hover, .card h3 a:focus-visible { color: var(--gold-text); }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold);
  margin-bottom: 1.3rem;
}

/* ---------- Media/text split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev > .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__media--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.split__badge {
  position: absolute; left: -1.4rem; bottom: 2rem;
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-lg); max-width: 240px;
}
.split__badge strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-2); }
.split__badge span { font-size: 0.88rem; color: #c6cbd4; }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text); }
.checklist svg { flex: none; margin-top: 0.35rem; color: var(--gold); }

/* ---------- Team ---------- */
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card img { aspect-ratio: 3 / 3.4; object-fit: cover; width: 100%; }
.team-card__body { padding: 1.6rem 1.8rem 1.9rem; }
.team-card__body h3 { margin-bottom: 0.15em; }
.team-card__body h3 a { color: var(--ink); text-decoration-color: var(--gold); }
.team-card__body h3 a:hover { color: var(--gold-text); }
.team-card__role { color: var(--gold-text); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.7rem; }
.team-card__body p { color: var(--muted); font-size: 0.97rem; }
.team-card__contact { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 1rem; font-size: 0.92rem; }
.team-card__contact a { color: var(--ink); text-decoration: none; font-weight: 500; }
.team-card__contact a { overflow-wrap: anywhere; }
.team-card__contact a:hover { color: var(--gold-text); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 1.5rem 1.7rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.post-card__meta .tag { color: var(--gold-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-text); }
.post-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.read-more { font-weight: 600; text-decoration: none; color: var(--ink); display: inline-flex; gap: 0.4rem; align-items: center; }
.read-more:hover { color: var(--gold-text); }
.read-more::after { content: "→"; transition: transform 0.25s var(--ease); }
.read-more:hover::after { transform: translateX(4px); }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.article h2 { margin-top: 1.8em; font-size: 1.7rem; }
.article p, .article li { font-size: 1.08rem; }
.article blockquote {
  margin: 2rem 0; padding: 1.4rem 1.8rem;
  border-left: 3px solid var(--gold);
  background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.article__hero { border-radius: var(--radius-lg); margin: 0 0 2.5rem; box-shadow: var(--shadow-lg); }
.article-toc { border-block: 1px solid var(--line); padding: 1rem 0; margin: 1.6rem 0; }
.article-toc p { margin-bottom: 0.5rem; }
.article-toc ol { margin: 0; padding-left: 1.3rem; }

.article-summary {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.45rem;
  margin: 0 0 2rem;
}
.article-summary__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 0.45rem;
}
.article-summary p:last-child { margin-bottom: 0; font-size: 1rem; color: var(--ink); }

.author-box {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.4rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; margin: 3rem 0;
}
.author-box img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.author-box__mark {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--ink); color: var(--gold-2);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.06em;
}
.author-box h4 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.author-box p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.disclaimer {
  font-size: 0.88rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1rem 1.3rem; margin-top: 2.5rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 0.9rem;
  padding: 0 1.6rem; transition: border-color 0.3s;
}
.faq details[open] { border-color: var(--gold); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.2rem 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 0 1.3rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem); color: #fff; isolation: isolate;
}
.cta-band img.cta-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(16,20,27,0.94) 30%, rgba(16,20,27,0.55)); }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { max-width: 52ch; color: rgba(255,255,255,0.85); }
.cta-band .eyebrow { color: var(--gold-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.contact-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.contact-office h3 { font-size: 1.6rem; }
.contact-office address { font-style: normal; }
.contact-office__note { color: var(--muted); font-size: 0.925rem; margin: 0.45rem 0 0; }
.contact-office a, .contact-card a { overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
.contact-actions .btn { white-space: normal; text-align: center; }
.contact-office__email { display: inline-block; margin-top: 1rem; }
.contact-quick .contact-office { height: 100%; }
.contact-details { display: grid; gap: 1.6rem; }
.contact-details h2 { font-size: 1.45rem; }
.contact-advocate { display: grid; gap: 0.35rem; margin-block: 1.2rem; }
.contact-advocate h3 { font: 600 1rem/1.5 var(--font-body); margin: 0; }
.contact-advocate p { font-size: 0.875rem; margin: 0; color: var(--muted); }
.office-hours > div { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: space-between; }
.office-hours dd { margin: 0; }
.contact-map { display: block; height: clamp(18rem, 48vw, 25rem); aspect-ratio: auto; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.8rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: baseline; }
.contact-list svg { flex: none; color: var(--gold); transform: translateY(2px); }
.contact-list strong { min-width: 92px; color: var(--ink); }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--gold-text); }
.map-embed { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { font-size: 0.94rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 0.35rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gold-button); outline-offset: 2px; border-color: var(--gold-button);
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form label.form__consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.form__consent input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0.24rem 0 0; accent-color: var(--gold-button); }
.form__note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form__success {
  display: none; background: #eef7ee; border: 1px solid #b9dcb9;
  color: #27632a; padding: 1rem 1.3rem; border-radius: 10px; font-weight: 500;
}
.form.is-sent .form__success { display: block; }
.form [data-form-status]:not([hidden]), .form [data-form-error]:not([hidden]) {
  display: block; margin: 0; padding: 0.9rem 1rem; border: 1px solid; border-radius: 10px;
}
.form [data-form-status] { color: #235d30; background: #eef7ee; border-color: #b9dcb9; }
.form [data-form-error] { color: #8a241d; background: #fff3f0; border-color: #edc4bf; }
.form button:disabled { cursor: wait; opacity: 0.8; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold-2); }
.stat span { color: #aab0ba; font-size: 0.95rem; }

/* ---------- Gallery strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.strip img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab0ba; padding: 4rem 0 0; font-size: 0.95rem; }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #aab0ba; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer a { overflow-wrap: anywhere; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: 1.4rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; inset: auto 0 0 0; z-index: 150;
  background: rgba(16, 20, 27, 0.97); color: #cfd4db;
  padding: 1.2rem 0; font-size: 0.88rem;
  visibility: hidden; transform: translateY(110%); transition: transform 0.5s var(--ease);
}
.cookie.is-visible { visibility: visible; transform: translateY(0); }
.cookie .container { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cookie p { margin: 0; flex: 1; min-width: 260px; }
.cookie a { color: var(--gold-2); }

/* ---------- Reveal animation (aktywne tylko przy włączonym JS) ---------- */
html.has-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.has-reveal .reveal:is(.is-in, :focus-within) { opacity: 1; transform: none; }
html.has-reveal .reveal:nth-child(2) { transition-delay: 0.08s; }
html.has-reveal .reveal:nth-child(3) { transition-delay: 0.16s; }
html.has-reveal .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-reveal .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  html:not(.nav-ready) .site-header { position: relative; height: auto; padding: 0.9rem 0; background: var(--ink); }
  html:not(.nav-ready) .site-header .container, html:not(.nav-ready) .main-nav ul { flex-wrap: wrap; gap: 0.6rem 1.1rem; }
  html:not(.nav-ready) .header-cta { margin-left: 0; }
  html.nav-ready .nav-toggle { display: block; }
  html.nav-ready .site-header.has-open-nav { z-index: 160; backdrop-filter: none; }
  html.nav-ready .site-header.has-open-nav .brand { color: var(--ink); }
  html.nav-ready .main-nav {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(250, 248, 245, 0.98); backdrop-filter: blur(10px);
    display: grid; align-items: safe center; justify-items: center;
    overflow-y: auto; padding: 5.5rem 1.2rem 2rem;
    visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  html.nav-ready .main-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  html.nav-ready .main-nav ul { flex-direction: column; gap: 1rem; text-align: center; }
  html.nav-ready .main-nav a:not(.btn) {
    color: var(--ink); font-size: 1.2rem; min-height: 44px; display: inline-flex; align-items: center;
  }
  html.nav-ready .main-nav .btn { color: #fff; font-size: 1rem; }
  html.nav-ready .header-cta { margin-left: 0; }
  .site-header .brand, .site-header .nav-toggle { position: relative; z-index: 120; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > .split__media { order: 0; }
  .split__badge { left: 1rem; bottom: 1rem; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .author-box { grid-template-columns: 72px 1fr; }
}

@media (max-width: 520px) {
  .site-footer .grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .contact-card { padding: 1.25rem; }
  .contact-actions .btn { width: 100%; }
  .hero--home .trust-row { gap: 0.75rem 1.9rem; margin-top: 1.5rem; }
  .hero--contact { min-height: 0; }
  .contact-offices { padding-top: 2.5rem; }
}

/* ---------- New UX components (copy, status, map switcher, mobile bar) ---------- */
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 600 0.78rem/1.3 var(--font-body);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.copy-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.contact-office__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.2rem; }
.contact-advocate__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  margin-bottom: 1rem;
}
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #237447; flex: none; }
.status-pill[data-state="closed"] .status-pill__dot { background: var(--gold-text); }

.map-tabs { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.15rem; }
.map-tab {
  min-height: 44px; padding: 0.6rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--text);
  font: 600 0.9rem/1.3 var(--font-body); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.map-tab:hover { border-color: var(--gold); color: var(--ink); }
.map-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.mobile-bar {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 140;
  background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 0.75rem; gap: 0.55rem;
  box-shadow: 0 -6px 24px rgba(16, 20, 27, 0.24);
}
.mobile-bar a {
  flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font: 600 0.85rem/1.2 var(--font-body); text-decoration: none;
  color: #fff; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.18);
}
.mobile-bar a.mobile-bar__call { background: var(--gold-button); border-color: var(--gold-button); }

.sr-toast {
  position: fixed; right: 1.25rem; bottom: 5rem; z-index: 260;
  padding: 0.75rem 1.1rem; border-radius: 10px;
  background: var(--ink); color: #fff; border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg); font-size: 0.88rem;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.sr-toast.is-shown { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .mobile-bar { display: flex; }
  .site-footer { padding-bottom: 5.5rem; }
  .cookie.is-visible { bottom: 3.7rem; }
}

/* ---------- E-E-A-T / YMYL components ---------- */
.article__status {
  margin: 0 0 1.05rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}
.article__status a { color: var(--ink); font-weight: 500; }

.credentials-links {
  margin: 0.95rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}
.credentials-links a { color: var(--gold-text); font-weight: 500; }

.editorial-note {
  margin-top: 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
}
.editorial-note p { margin: 0; max-width: none; }
.editorial-note a { color: var(--gold-text); font-weight: 600; }

@media (max-width: 820px) {
  .author-box__mark { width: 72px; height: 72px; font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .author-box { grid-template-columns: 1fr; padding: 1.25rem; }
}
