/* =========================================================================
   Kancelaria Adwokacka Marta Kosecka — Design System "Editorial Warm"
   Krem + leśna zieleń + terakota · Fraunces (serif) + Inter (sans)
   ========================================================================= */

:root {
  /* Kolory */
  --cream:      #FAF6EF;
  --cream-200:  #F2EBDD;
  --paper:      #FFFFFF;
  --ink:        #1E2620;
  --ink-soft:   #3A433B;
  --green:      #2F4A3C;
  --green-700:  #253B30;
  --green-300:  #5E7A6A;
  --terra:      #C4623D;
  --terra-600:  #A94E2D;
  --muted:      #6B6F69;
  --line:       #E5DFD3;
  --line-soft:  #EFE9DC;

  /* Typografia */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Skala / promienie / cienie */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(30,38,32,.04), 0 12px 32px -12px rgba(30,38,32,.14);
  --shadow-sm: 0 1px 3px rgba(30,38,32,.08);
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--terra); }
ul, ol { padding-left: 1.25em; }

/* ---------- Typografia ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 560; line-height: 1.12; color: var(--green); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--terra);
  display: inline-block; margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--cream) 94%, transparent); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 2rem; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-footer .brand-logo { height: 42px; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--terra); transition: width .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- Dropdown „Zakres usług" ---------- */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a { display: inline-flex; align-items: center; gap: .25rem; }
.caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-links .has-sub:hover .caret { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 290px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60;
}
.nav-links .has-sub:hover .subnav,
.nav-links .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.subnav li { width: 100%; }
.subnav a { display: block; padding: .65rem .85rem; border-radius: 9px; font-size: .94rem; color: var(--ink-soft); font-weight: 500; }
.subnav a::after { display: none; }
.subnav a:hover { background: var(--cream-200); color: var(--green); }
.subnav .subnav-all a { color: var(--terra); font-weight: 600; }
.subnav .subnav-all { border-bottom: 1px solid var(--line); margin-bottom: .35rem; padding-bottom: .15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(196,98,61,.6); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); background: var(--paper); }
.btn--dark { background: var(--green); color: #fff; }
.btn--dark:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero .lede { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); font-weight: 500; }
.hero-tags b { color: var(--green); font-weight: 600; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/5; background: var(--cream-200); }
.hero-photo::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 62%; height: 62%;
  background: var(--cream-200); border-radius: var(--radius); z-index: -1;
}

/* ---------- Hero premium (ciemne, dramatyczne wejście) ---------- */
.hero { background: var(--green-700); color: #fff; padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 70% at 90% 6%, rgba(196,98,61,.22), transparent 60%),
    radial-gradient(45% 60% at 0% 100%, rgba(94,122,106,.28), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: #E9A684; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #E98A60; }
.hero .lede { color: rgba(255,255,255,.82); }
.hero-text { max-width: 38rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 2.1rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16); font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.78);
}
.hero-trust span { position: relative; padding-left: 1.4rem; }
.hero-trust span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border: 1.5px solid var(--terra); border-radius: 50%;
}
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; transform: translateY(-2px); }
/* terakotowa rama pod zdjęciem */
.hero .hero-photo::before { background: var(--terra); opacity: .9; inset: auto -20px -20px auto; width: 66%; height: 66%; }
.hero .hero-photo img { box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
/* pływająca pieczęć z monogramem */
.hero-badge {
  position: absolute; left: -20px; bottom: 28px; display: flex; align-items: center; gap: .85rem;
  background: var(--paper); color: var(--ink); padding: .75rem 1.15rem .75rem .75rem;
  border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
}
.hero-badge-mark {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .03em; display: grid; place-items: center;
}
.hero-badge b { display: block; font-family: var(--serif); color: var(--green); font-size: 1.02rem; line-height: 1.15; }
.hero-badge span { font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero-text { max-width: none; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem,4vw,2.8rem); color: var(--green); line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); margin-top: .5rem; display: block; }

/* ---------- Karty kwalifikacji (O mnie) ---------- */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cred { padding: 1.4rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cred b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: .45rem; }
.cred span { font-family: var(--serif); color: var(--green); font-size: 1.12rem; line-height: 1.25; display: block; }
@media (max-width: 720px) { .creds { grid-template-columns: 1fr 1fr; } }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.3rem; }
.card-svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: all .3s var(--ease);
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
}
.card-svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.card-svc h3 { color: var(--green); }
.card-more { margin-top: auto; padding-top: 1rem; color: var(--terra); font-weight: 600; font-size: .92rem; }
.card-svc:hover .card-more { color: var(--terra-600); }
.card-svc .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--cream-200); color: var(--terra);
  display: grid; place-items: center; margin-bottom: 1.1rem; }
.card-svc .ico svg { width: 24px; height: 24px; }
.card-svc:hover .ico { background: var(--terra); color: #fff; transition: all .3s var(--ease); }
.card-svc h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.card-svc p { color: var(--muted); font-size: .96rem; }

/* ---------- Blog cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.8rem; }
.post-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-200); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: .8rem; color: var(--terra); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.22rem; margin: .55rem 0 .7rem; line-height: 1.25; }
.post-card h3 a { color: var(--green); }
.post-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.post-card .more { margin-top: 1rem; font-weight: 600; color: var(--terra); font-size: .92rem; }

/* ---------- Prose (artykuły) ---------- */
.prose { max-width: 72ch; margin-inline: auto; font-size: 1.13rem; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.35rem; }
.prose p { line-height: 1.78; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.5rem,3vw,2rem); }
.prose h3 { margin-top: 2rem; }
.prose a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--terra-600); }
/* Obrazki w treści wpisów — ujarzmione: wyśrodkowane, z limitem wysokości (pionowe
   screeny z WP nie dominują), delikatna rama. */
.prose img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--cream-200);
}
.prose figure { margin: 2rem auto; max-width: 100%; }
.prose figure img { margin-block: 0; }
.prose figcaption { text-align: center; font-size: .86rem; color: var(--muted); font-style: italic; margin-top: .6rem; }
.prose blockquote {
  border-left: 3px solid var(--terra); padding: .4rem 0 .4rem 1.5rem; margin-left: 0;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--green);
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: .5rem; line-height: 1.7; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--cream-200); font-family: var(--sans); color: var(--green); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); }
/* Zostałości WordPressa — wyrównania obrazków i czyszczenie floatów */
.prose .aligncenter { margin-inline: auto; }
.prose .alignright { float: right; margin: .4rem 0 1rem 1.6rem; max-width: 50%; }
.prose .alignleft { float: left; margin: .4rem 1.6rem 1rem 0; max-width: 50%; }
.prose .clear { clear: both; }
/* Author box z WP -> intencjonalna notka kontaktowa */
.prose .author-box {
  clear: both; margin-top: 2.8rem; padding: 1.5rem 1.7rem;
  background: var(--cream-200); border-radius: var(--radius-sm);
  border-left: 3px solid var(--terra); font-size: 1rem;
}
.prose .author-box > * + * { margin-top: 0; }
.prose .author-box p { margin: .2rem 0; line-height: 1.6; }
.prose .author-box-img { display: none; }
.prose .author-box-sep::before { content: "·"; margin: 0 .55rem; color: var(--muted); }
@media (max-width: 600px) { .prose .alignright, .prose .alignleft { float: none; max-width: 100%; margin-inline: auto; } }

/* ---------- Article header ---------- */
.article-head { max-width: 72ch; margin-inline: auto; text-align: center; margin-bottom: 2.5rem; }
.article-head h1 { font-size: clamp(2rem,4.5vw,3.2rem); margin-bottom: 1.2rem; }
.article-meta { display: flex; gap: 1.2rem; justify-content: center; align-items: center; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.article-meta time { color: var(--terra); font-weight: 600; }
.article-hero-img { width: fit-content; max-width: min(100%, 760px); margin: 0 auto 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-200); }
.article-hero-img img { display: block; width: auto; max-height: 520px; margin-inline: auto; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; padding-block: 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--terra); }

/* ---------- Section heads ---------- */
.section-head { max-width: 60ch; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: .8rem; font-size: 1.08rem; }

/* ---------- Tonal blocks ---------- */
.bg-paper { background: var(--paper); }
.bg-green { background: var(--green); color: #fff; }
.bg-green h1, .bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .lede, .bg-green p { color: rgba(255,255,255,.82); }
.bg-cream2 { background: var(--cream-200); }

/* ---------- Media (zdjęcie landscape w sekcji) ---------- */
.media { position: relative; }
.media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-200); }
.media::before { content: ""; position: absolute; inset: auto auto -16px -16px; width: 56%; height: 56%; background: var(--cream-200); border-radius: var(--radius); z-index: -1; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius); padding: clamp(2.2rem,5vw,3.5rem); text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .btn { margin-top: 1.6rem; }
/* CTA na tle zdjęcia (premium) */
.cta-photo { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background-image: linear-gradient(rgba(30,38,32,.78), rgba(37,59,48,.86)), var(--cta-bg);
  background-size: cover; background-position: center; }
.cta-photo h2 { color: #fff; }
.cta-photo .lede { color: rgba(255,255,255,.85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--cream-200); color: var(--terra); display: grid; place-items: center; }
.contact-list b { display: block; color: var(--green); font-family: var(--serif); }
.form { display: grid; gap: 1.1rem; }
.form label { font-weight: 600; font-size: .9rem; color: var(--green); display: block; margin-bottom: .4rem; }
.form input, .form textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; background: var(--paper); color: var(--ink); transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(196,98,61,.12); }
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: rgba(255,255,255,.8); padding-block: clamp(3rem,6vw,4.5rem) 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .brand b { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-links a:hover { color: var(--terra); }
.site-footer p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer p a:hover { color: var(--terra); }
.footer-bottom { display: flex; justify-content: space-between; gap: .6rem 1.4rem; flex-wrap: wrap; padding-top: 1.8rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-credit a { color: rgba(255,255,255,.82); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--terra); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .5rem; justify-content: center; align-items: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 .8rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; background: var(--paper);
}
.pagination a:hover { border-color: var(--terra); color: var(--terra); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------- Podstrona usługi ---------- */
/* Hero (na ciemnym pasku .hero): tekst + karta „Zakres pomocy" */
.service-hero-band .crumbs, .service-hero-band .crumbs a { color: rgba(255,255,255,.6); }
.service-hero-band .crumbs a:hover { color: #fff; }
.service-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; margin-top: .5rem; }
.service-hero-text h1 { margin: .3rem 0 1.1rem; font-size: clamp(2rem,4.2vw,2.9rem); }
.service-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.45);
}
.service-card-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; margin-bottom: 1.1rem; }
.service-card-ico svg { width: 28px; height: 28px; }
.service-card-h { font-size: 1.15rem; margin-bottom: 1.1rem; color: var(--green); }

/* Treść z sidebarem */
.service-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.service-main { max-width: none; margin-inline: 0; }
.service-main > h2:first-child { margin-top: 0; }
.service-aside { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.aside-card--cta { background: var(--green); color: #fff; border-color: var(--green); }
.aside-card--cta h3 { color: #fff; }
.aside-card--cta p { color: rgba(255,255,255,.82); font-size: .94rem; margin: .4rem 0 1.2rem; }
.aside-card--cta .btn { width: 100%; justify-content: center; }
.aside-tel { display: block; text-align: center; margin-top: .9rem; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aside-tel:hover { color: var(--terra); }
.aside-h { margin-bottom: .8rem; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; }
.aside-links li { border-top: 1px solid var(--line-soft); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: .6rem 0; font-size: .94rem; color: var(--ink-soft); font-weight: 500; }
.aside-links a:hover { color: var(--terra); }

/* Lista „check" */
.check-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; line-height: 1.55; font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--cream-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C4623D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* FAQ */
.faq-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 0; }
.faq-item h3 { font-family: var(--serif); color: var(--green); font-size: 1.18rem; margin-bottom: .5rem; }
.faq-item p { margin: 0; color: var(--ink-soft); }

@media (max-width: 900px) {
  .service-hero { grid-template-columns: 1fr; }
  .service-body { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin-inline: auto; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 1rem 0; transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: .28s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem clamp(1.1rem,4vw,2rem); }
  .nav-links a::after { display: none; }
  /* Dropdown na mobile: rozwinięty inline pod „Zakres usług" */
  .nav-links .has-sub .caret { display: none; }
  .subnav {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; background: transparent; border-radius: 0;
    padding: 0 0 .5rem; min-width: 0;
  }
  .subnav a { padding: .6rem clamp(1.6rem,7vw,2.6rem); font-size: .9rem; color: var(--muted); }
  .subnav .subnav-all { border: 0; margin: 0; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Modal kontaktowy (popup „Umów konsultację") ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2rem); }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(19,26,21,.6); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.modal-dialog {
  position: relative; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto;
  background: var(--cream); border-radius: 20px; box-shadow: 0 40px 90px -24px rgba(0,0,0,.55);
  animation: pop .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.28); }
.modal-head { background: var(--green-700); color: #fff; padding: 1.9rem 1.9rem 1.6rem; position: relative; overflow: hidden; }
.modal-head::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 100% 0%, rgba(196,98,61,.28), transparent 60%); }
.modal-head .eyebrow { color: #E9A684; margin-bottom: .5rem; }
.modal-head h2 { color: #fff; font-size: 1.55rem; margin: 0; position: relative; }
.modal-head p { color: rgba(255,255,255,.8); font-size: .95rem; margin-top: .5rem; position: relative; }
.modal-body { padding: 1.6rem 1.9rem 1.9rem; }
.modal-contacts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .2rem; }
.modal-contacts a { display: flex; align-items: center; gap: .8rem; padding: .7rem .4rem; border-radius: 10px; color: var(--ink-soft); font-weight: 500; }
.modal-contacts a:hover { background: var(--cream-200); color: var(--green); }
.modal-contacts .mc-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--cream-200); color: var(--terra); display: grid; place-items: center; font-size: 1.05rem; }
.modal-contacts b { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.modal-contacts span { display: block; font-size: 1.02rem; color: var(--green); font-family: var(--serif); }
.modal-sep { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.modal-sep::before, .modal-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal .form { gap: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Status formularza (AJAX) ---------- */
.form-status { font-size: .95rem; padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.is-ok { display: block; background: color-mix(in srgb, var(--green) 12%, var(--cream)); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); }
.form-status.is-err { display: block; background: color-mix(in srgb, var(--terra) 12%, var(--cream)); color: var(--terra-600); border: 1px solid color-mix(in srgb, var(--terra) 32%, transparent); }
.form button[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- BLUF / TL;DR na wpisie ---------- */
.post-tldr {
  max-width: 72ch; margin: 0 auto 2.4rem; padding: 1.2rem 1.5rem;
  background: var(--cream-200); border-left: 3px solid var(--terra); border-radius: var(--radius-sm);
  font-size: 1.02rem; color: var(--ink-soft);
}
.post-tldr b { color: var(--green); font-weight: 650; }

/* ---------- Powiązana usługa (linkowanie blog -> money page) ---------- */
.related-service {
  display: flex; align-items: center; gap: 1.1rem; max-width: 72ch; margin: 2.8rem auto 0;
  padding: 1.2rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.related-service .rs-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--cream-200); color: var(--terra); display: grid; place-items: center; }
.related-service .rs-ico svg { width: 24px; height: 24px; }
.related-service b { color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; display: block; }
.related-service a { color: var(--green); font-family: var(--serif); font-size: 1.12rem; }
.related-service a:hover { color: var(--terra); }
