/* ============================================================
   SALVO IURE - arkusz stylów frontu
   Paleta: atrament (#12161d), złoto (#b4924f), pergamin (#f7f4ee)
   ============================================================ */

:root {
  --ink: #12161d;
  --ink-2: #1c222c;
  --ink-3: #2a3240;
  --gold: #b4924f;
  --gold-2: #9a7a3c;
  --gold-soft: #e6d9bf;
  --paper: #f7f4ee;
  --white: #ffffff;
  --text: #272d36;
  --muted: #6a7180;
  --line: #e4dfd4;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 10px 40px rgba(18, 22, 29, .10);
  --radius: 3px;
  --container: 1220px;
  --container-header: 1380px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
/* złota linia sygnaturowa na samej górze serwisu */
body::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 35%, #d8bd85 50%, var(--gold) 65%, var(--gold-2));
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- typografia */
h1, h2, h3, .hero-title, .section-title {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.section-kicker {
  font-family: var(--sans);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 .8rem;
}
.section-kicker::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 34px; height: 2px; background: var(--gold); margin-right: 12px;
}
.section-title { margin-bottom: 1.4rem; font-weight: 800; }
.section-title::after {
  content: ""; display: block; width: 68px; height: 3px;
  background: var(--gold); margin-top: .45em;
}
.center .section-title::after, .cta-strip .section-title::after { margin-inline: auto; }

/* ---------------------------------------------------------- przyciski */
.btn {
  display: inline-block;
  padding: .8rem 1.7rem;
  font-family: var(--sans); font-weight: 700; font-size: .84rem;
  letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all .18s ease;
  line-height: 1.4;
}
.btn-lg { padding: 1rem 2.2rem; font-size: .92rem; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: transparent; text-decoration: underline; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* ------------------------------------------------------------- topbar */
.topbar {
  background: var(--ink); color: #aeb6c2;
  font-size: .82rem; padding: .45rem 0;
}
.topbar-in { display: flex; gap: 1.6rem; justify-content: flex-end; flex-wrap: wrap; }
.topbar a { color: #aeb6c2; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(180,146,79,.25);
  backdrop-filter: blur(8px);
}
.site-header .container { max-width: var(--container-header); }
.header-in { display: flex; align-items: center; gap: 1.4rem; min-height: 82px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--ink); }
.brand:hover .brand-mark { color: var(--gold-2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.brand-text strong {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .06em;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; flex-wrap: nowrap; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: .55rem .7rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem;
  white-space: nowrap;
  border-radius: var(--radius);
}
.main-nav > ul > li > a { position: relative; }
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.active > a::after { transform: scaleX(1); }
.main-nav li.active > a { color: var(--gold-2); }
.main-nav a:hover { background: var(--paper); }
.sub-toggle { display: none; }
.main-nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem;
  display: none; flex-direction: column; gap: 0;
}
.main-nav li:hover > .sub,
.main-nav li:focus-within > .sub { display: flex; }
.main-nav .sub a { font-weight: 400; font-size: .92rem; padding: .5rem .8rem; }

.header-cta { display: flex; align-items: center; gap: .9rem; flex: none; }
.header-cta .btn { padding: .62rem 1.15rem; font-size: .78rem; }
.phone-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem;
  white-space: nowrap;
}
.phone-link:hover { color: var(--gold-2); }
.phone-link svg { color: var(--gold-2); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------- breadcrumbs */
.breadcrumbs { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: .55rem 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ----------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(180,146,79,.16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 70%, #232c3a 100%);
  color: #cfd5de;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "§";
  position: absolute; right: -1rem; bottom: -5rem;
  font-family: var(--serif); font-size: 30rem; line-height: 1;
  color: rgba(180,146,79,.07); pointer-events: none;
}
.hero-in { max-width: 820px; position: relative; }
.hero-kicker {
  font-size: .82rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6.6vw, 4.9rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); max-width: 640px; margin: 0 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem;
  font-size: .88rem; color: #aeb6c2;
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: "✦"; color: var(--gold); font-size: .75rem; }

/* -------------------------------------------------------------- sekcje */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section:nth-of-type(even) { background: var(--paper); }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  text-decoration: none; color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); color: var(--text); }
.card h2, .card h3 { margin: 0; font-size: 1.28rem; font-weight: 700; }
.card p { margin: 0; font-size: .93rem; color: var(--muted); }
.card-more { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .9rem; color: var(--gold-2); }
.card-cover { border-radius: var(--radius); margin-bottom: .6rem; object-fit: cover; aspect-ratio: 16/9; width: 100%; }

/* automatyczny placeholder okładki (artykuły bez grafiki) */
.cover-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; position: relative; overflow: hidden;
}
.cover-ph::after {
  content: "§";
  position: absolute; right: -1.2rem; bottom: -2.6rem;
  font-family: var(--serif); font-size: 7.5rem; font-weight: 700; line-height: 1;
  color: rgba(180,146,79,.10); pointer-events: none;
}
.cover-ph-mark { width: 34px; height: 34px; color: var(--gold); position: relative; }
.cover-ph-label {
  position: relative;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(216,189,133,.9); text-align: center; padding-inline: 1rem;
}
.cover-ph-1 { background: linear-gradient(150deg, #12161d 0%, #232c3a 100%); }
.cover-ph-2 { background: linear-gradient(150deg, #1c222c 0%, #12161d 60%, #1e2734 100%); }
.cover-ph-3 { background: linear-gradient(150deg, #2a3240 0%, #171c24 70%, #12161d 100%); }

.pillar-card { border-top: 4px solid var(--gold); }
.hub-card { border-left: 4px solid var(--gold); }
.pillar-icon { width: 42px; height: 42px; color: var(--gold-2); margin-bottom: .5rem; }

.badge {
  display: inline-block; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(180,146,79,.12);
  padding: .22rem .6rem; border-radius: 3px; text-decoration: none;
}
.badge-link:hover { background: rgba(180,146,79,.25); }
.article-meta { font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: .7rem; }

/* --------------------------------------------------------- o kancelarii */
.about-in {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.about-placeholder {
  aspect-ratio: 4/5; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: var(--radius);
}
.about-placeholder svg { width: 40%; color: rgba(180,146,79,.45); }
.about-copy .section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.about-copy .muted { display: block; font-size: .62em; margin-top: .4em; font-family: var(--sans); letter-spacing: .04em; }
.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* -------------------------------------------------------------- proces */
.process-steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin: 0; padding: 0;
}
.process-steps li {
  counter-increment: step;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.process-steps strong { font-size: 1.02rem; color: var(--ink); }
.process-steps span { font-size: .9rem; color: var(--muted); }

/* --------------------------------------------------------------- opinie */
.reviews-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.reviews-in p { max-width: 520px; }

/* ------------------------------------------------------------------ FAQ */
.faq-in { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: clamp(2rem, 4vw, 4rem); }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 600; color: var(--ink); cursor: pointer;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--gold-2); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 1rem 1.3rem; font-size: .95rem; }
.faq-answer p { margin: 0 0 .6em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- page-head */
.page-head {
  background:
    radial-gradient(900px 300px at 90% -20%, rgba(180,146,79,.14), transparent 60%),
    linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #cfd5de;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
}
.page-head h1 { color: var(--white); margin-bottom: .3em; }
.page-lead { font-size: 1.1rem; max-width: 760px; margin: 0; }
.article-head .badge { margin-bottom: 1rem; background: rgba(180,146,79,.2); color: var(--gold); }
.article-byline { font-size: .9rem; color: #aeb6c2; margin: .6rem 0 0; }

/* ------------------------------------------------------------ treść/prose */
.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.6rem); align-items: start; }
.prose { max-width: 760px; }
.prose-wide { max-width: none; margin-bottom: 2.4rem; }
.prose h2 {
  font-size: 1.55rem; margin: 1.8em 0 .6em;
  padding-top: .4em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-2); font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0; padding: .8em 1.4em;
  border-left: 3px solid var(--gold); background: var(--paper);
  font-style: italic; color: var(--ink-3);
}
.prose img { border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose sup { font-size: .7em; }

.info-box {
  background: var(--paper); border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem; margin: 1.8em 0;
}
.info-box > :first-child { margin-top: 0; }
.info-box > :last-child { margin-bottom: 0; }
.info-box h3 { margin-top: 0; }

.cta-box {
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #cfd5de;
  border-radius: var(--radius);
  padding: 2rem 2.2rem; margin: 2.2em 0;
}
.cta-box h2, .cta-box h3 { color: var(--white); margin-top: 0; padding-top: 0; }
.cta-box p:last-child { margin-bottom: 0; }
.cta-box .btn { margin-right: .8rem; margin-bottom: .5rem; }

.legal-note {
  font-size: .88rem; color: var(--muted);
  background: var(--paper); border-radius: var(--radius);
  padding: .6rem 1rem; display: inline-block;
}
.sources {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.sources h2 { font-size: 1.05rem; font-family: var(--sans); color: var(--ink); }
.article-cover img { border-radius: var(--radius); display: block; }
.related { margin-top: 3rem; }
.related h2 { font-size: 1.3rem; }

.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; }
.prose th { background: var(--paper); }

/* -------------------------------------------------------------- sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 96px; }
.side-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.side-box h2 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; margin-bottom: .8rem; }
.side-box h3 { font-size: .92rem; font-family: var(--sans); font-weight: 700; margin: 1.2rem 0 .4rem; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { padding: .34rem 0; font-size: .94rem; }
.side-box li.current a { color: var(--ink); font-weight: 600; text-decoration: none; }
.side-articles li { display: flex; flex-direction: column; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.side-articles li:last-child { border-bottom: 0; }
.side-articles span { font-size: .78rem; color: var(--muted); }
.side-cta { background: var(--paper); border-color: var(--gold-soft); }
.side-cta .btn { display: block; margin-top: .7rem; }

/* --------------------------------------------------------- baza wiedzy */
.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.cat-filter a {
  padding: .45rem 1rem; font-size: .9rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 100px;
  text-decoration: none; color: var(--text); background: var(--white);
}
.cat-filter a span { color: var(--muted); font-size: .8rem; }
.cat-filter a:hover { border-color: var(--gold); }
.cat-filter a.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cat-filter a.active span { color: var(--gold); }
.empty-note { color: var(--muted); font-style: italic; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination a {
  min-width: 42px; padding: .5rem .7rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-weight: 500;
}
.pagination a.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* -------------------------------------------------------------- kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-nap { margin-top: 0; }
.contact-list { list-style: none; margin: 0 0 .6rem; padding: 0; }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.map-box iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); display: block; }
.edo-address code {
  display: block; background: var(--paper); padding: .7rem 1rem; border-radius: var(--radius);
  font-size: .95rem; word-break: break-all;
}
.small { font-size: .84rem; color: var(--muted); }

.contact-form-wrap h2 { font-size: 1.6rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400;
  padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--text);
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold);
}
.contact-form .check { flex-direction: row; align-items: flex-start; gap: .7rem; font-weight: 400; font-size: .85rem; color: var(--muted); }
.contact-form .check input { width: auto; margin-top: .25rem; }
.req { color: #b0483f; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; margin: 0; }

.alert { padding: 1rem 1.3rem; border-radius: var(--radius); margin-bottom: 1.4rem; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-ok { background: #eaf3ea; border: 1px solid #bcd8bc; color: #2c5e2e; }
.alert-err { background: #f8ecea; border: 1px solid #e4c2bd; color: #8c3a31; }

/* ------------------------------------------------------------ cta strip */
.cta-strip {
  background:
    radial-gradient(900px 400px at 10% 120%, rgba(180,146,79,.18), transparent 60%),
    linear-gradient(155deg, var(--ink-2) 0%, var(--ink) 100%);
  color: #cfd5de;
  padding: clamp(2.8rem, 5vw, 4rem) 0;
}
.cta-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-strip-title { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3em; }
.cta-strip p { margin: 0; max-width: 560px; }
.cta-strip-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- footer */
.site-footer { background: #0d1116; color: #98a1ae; font-size: .92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 2.4rem; padding: clamp(2.6rem, 5vw, 4rem) 24px;
}
.footer-brand .brand-mark { width: 44px; height: 44px; color: var(--gold); }
.footer-name { font-family: var(--serif); font-size: 1.05rem; color: var(--white); letter-spacing: .05em; margin: .8rem 0; }
.footer-nap { line-height: 1.8; margin: 0; }
.footer-col h3 {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .28rem 0; }
.footer-col a { color: #98a1ae; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-contact a { font-weight: 600; color: #c9d0da; }
.footer-edo { word-break: break-all; font-size: .85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.2rem; font-size: .8rem;
}
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------------- 404 */
.notfound-code { font-family: var(--serif); font-size: 6rem; font-weight: 800; color: var(--gold); margin: 0; line-height: 1; }
.notfound-links { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* -------------------------------------------------------------- consent */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--ink); color: #cfd5de;
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
  padding: 1.1rem 0;
}
.consent-in {
  max-width: var(--container); margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
}
.consent-in p { margin: 0; font-size: .88rem; max-width: 720px; }
.consent-in a { color: var(--gold); }
.consent-actions { display: flex; gap: .7rem; }

/* ----------------------------------------------------------------- RWD */
@media (max-width: 1420px) {
  .main-nav a { padding: .55rem .55rem; font-size: .89rem; }
  .phone-link { font-size: .9rem; }
}
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .page-cols, .contact-grid, .about-in, .faq-in { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about-media { max-width: 380px; }
}
@media (max-width: 1180px) {
  .nav-burger { display: flex; }
  .main-nav {
    display: none;
    position: fixed; inset: 0; top: 0; z-index: 120;
    background: var(--white); overflow-y: auto;
    padding: 90px 24px 40px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 1.1rem; padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav li.has-sub { position: relative; }
  .sub-toggle {
    display: block; position: absolute; right: 0; top: 6px;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
  }
  .sub-toggle::after { content: "▾"; font-size: 1.1rem; color: var(--gold-2); }
  .sub-toggle[aria-expanded="true"]::after { content: "▴"; }
  .main-nav .sub {
    position: static; display: none; border: 0; box-shadow: none; padding: 0 0 0 1.2rem; min-width: 0;
  }
  .main-nav li.sub-open > .sub { display: flex; }
  .nav-burger { position: relative; z-index: 130; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 700px) {
  /* na telefonie z numeru zostaje sama ikona (nadal klikalna) */
  .phone-link { font-size: 0; gap: 0; padding: .5rem; }
  .phone-link svg { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-in { justify-content: center; gap: .8rem; }
  .topbar-item:first-child { display: none; }
  .header-in { gap: 1rem; }
  .brand-text strong { font-size: 1.15rem; }
  .header-cta { gap: .5rem; }
  .header-cta .btn { padding: .55rem .8rem; font-size: .7rem; }
  .hero-actions .btn { width: 100%; }
  .cta-strip-actions { width: 100%; }
  .cta-strip-actions .btn { flex: 1; }
}

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