/* eduLOCA – platforma usług dla oświaty
   Jeden arkusz dla całej strony. Kolory i odstępy jako tokeny w :root. */

:root {
  --brand: #03a0e3;          /* niebieski z logo – plamy, tła, ikony */
  --brand-strong: #0377b8;   /* tekst/przyciski na białym (kontrast AA) */
  --brand-deep: #06507d;
  --brand-tint: #e6f5fc;
  --brand-tint-2: #f2f9fd;
  --ink: #0f2133;            /* tekst główny */
  --ink-2: #45586b;          /* tekst pomocniczy */
  --ink-3: #6d7f90;
  --line: #dde6ee;
  --paper: #ffffff;
  --paper-2: #f5f8fb;
  --ok: #2e7d32;
  --ok-tint: #e8f4ea;
  --deny: #c62838;
  --deny-tint: #fbe9eb;
  --amber: #e07b00;

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(15, 33, 51, .06), 0 4px 14px rgba(15, 33, 51, .06);
  --shadow-2: 0 2px 4px rgba(15, 33, 51, .05), 0 18px 48px rgba(15, 33, 51, .14);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
/* Płynne przewijanie dopiero po wczytaniu strony (klasę dodaje site.js) – inaczej skok do #kotwicy przy wejściu bywa przerywany */
html.smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html, html.smooth { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--brand { background: var(--brand-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { justify-content: center; }
.section-head:not(.center) .eyebrow { justify-content: flex-start; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand-strong); color: #fff; box-shadow: 0 6px 18px rgba(3, 119, 184, .28); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-family: var(--font-display); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 33, 51, .05); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu a {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-tint-2); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed; inset: 76px 0 0 0; background: #fff; padding: 16px var(--gutter) 32px; overflow-y: auto;
    display: none; border-top: 1px solid var(--line);
  }
  .nav-panel.is-open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu a { padding: 14px 12px; font-size: 1.08rem; width: 100%; justify-content: space-between; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1021px) { .nav-panel { display: flex; flex: 1; align-items: center; } }
@media (min-width: 1021px) and (max-width: 1240px) {
  .nav { gap: 16px; }
  .nav-menu { gap: 0; }
  .nav-menu a { padding: 10px 10px; font-size: .94rem; }
  .nav-cta { margin-left: 4px; }
  .nav-cta .btn { padding: 0 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); background:
  radial-gradient(900px 480px at 88% 8%, rgba(3, 160, 227, .16), transparent 60%),
  radial-gradient(700px 420px at 0% 100%, rgba(0, 214, 226, .10), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--brand-tint-2) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 .hl { color: var(--brand-strong); }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.hero-banner { position: relative; }
.hero-banner img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-2); }
.exp-badge {
  position: absolute; left: -22px; bottom: 28px; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--radius-l); padding: 14px 22px 14px 16px; box-shadow: var(--shadow-2);
  border-left: 5px solid var(--brand);
}
.exp-badge b {
  font-family: var(--font-display); font-weight: 700; font-size: 3.1rem; line-height: 1; letter-spacing: -.04em; color: var(--brand-strong);
}
.exp-badge span { display: block; font-size: .84rem; line-height: 1.35; color: var(--ink-3); max-width: 190px; }
.exp-badge strong { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
@media (max-width: 900px) { .exp-badge { left: 12px; bottom: 12px; } }
@media (max-width: 420px) { .exp-badge { padding: 10px 14px 10px 12px; gap: 10px; } .exp-badge b { font-size: 2.4rem; } .exp-badge span { font-size: .76rem; } .exp-badge strong { font-size: 1rem; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-banner { max-width: 620px; }
}

/* ---------- Pasek zaufania ---------- */
.proof { border-block: 1px solid var(--line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 28px 20px; text-align: center; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.proof-item span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Jak to działa – naprzemienne bloki ---------- */
.story { display: grid; gap: clamp(48px, 7vw, 96px); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-row:nth-child(even) .story-media { order: 2; }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.story-media .screen-ph { border-radius: var(--radius-l); border: 1px solid var(--line); }
.story-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--brand-tint); color: var(--brand-deep); border-radius: 999px; padding: 6px 14px 6px 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
}
.story-tag svg { width: 18px; height: 18px; color: var(--brand-strong); }
.story-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -.015em; margin-bottom: .5em; }
.story-body > p { color: var(--ink-2); font-size: 1.06rem; margin-bottom: 20px; }
.story-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.story-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.5; }
.story-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); stroke-width: 2.6; }
.story .link-arrow { color: var(--brand-strong); }
@media (max-width: 860px) {
  .story-row { grid-template-columns: 1fr; }
  .story-row:nth-child(even) .story-media { order: 0; }
}

/* ---------- Funkcje (siatka) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 1px 2px rgba(15, 33, 51, .04); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature:hover { border-color: #b5dcef; box-shadow: var(--shadow-1); transform: translateY(-2px); }
.feature-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-strong); margin-bottom: 16px; }
.feature-ico svg { width: 22px; height: 22px; }
.feature-ico--warn { background: #fff2e0; color: var(--amber); }
.feature h3 { font-size: 1.12rem; margin-bottom: .4em; }
.feature p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Zrzuty ekranu (4:3) ---------- */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.screen { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.screen:hover { border-color: #b5dcef; box-shadow: var(--shadow-1); transform: translateY(-2px); }
.screen button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; }
.screen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.screen-ph {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #eef3f7 14px 28px); color: var(--ink-3); font-size: .9rem;
}
.screen-ph svg { width: 32px; height: 32px; color: #b9cad8; }
.screen figcaption { padding: 16px 20px 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.screen figcaption b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; }
@media (max-width: 960px) { .screens { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .screens { grid-template-columns: 1fr; } }

/* ---------- Split (tekst + obraz) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split-media { order: -1; }
.split-media img { border-radius: var(--radius); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }


/* ---------- Wdrożenia ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case { display: grid; grid-template-columns: 180px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.case img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.case-body { padding: 26px; }
.case-body h3 { font-size: 1.2rem; }
.case-body p { color: var(--ink-2); font-size: .97rem; }
.case-facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.case-facts li { font-size: .8rem; font-weight: 600; background: var(--brand-tint); color: var(--brand-deep); padding: 4px 10px; border-radius: 99px; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .case { grid-template-columns: 1fr; } .case img { min-height: 0; aspect-ratio: 4 / 3; } }

.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.photo-strip button { padding: 0; border: 0; background: var(--paper-2); border-radius: var(--radius-s); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-strip button:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Proces wdrożenia ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: .92rem; }
.steps h3 { font-size: 1.1rem; margin: 10px 0 .35em; }
.steps p { margin: 0; font-size: .97rem; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: 1fr; } }

/* ---------- Dla instalatorów ---------- */
.installer-hero { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-2); }

/* ---------- Blog: karty artykułów ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.post:hover { border-color: #b5dcef; box-shadow: var(--shadow-1); transform: translateY(-2px); }
.post-media { display: block; overflow: hidden; background: var(--paper-2); }
.post-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.post:hover .post-media img { transform: scale(1.03); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-cat { align-self: flex-start; display: inline-block; margin-bottom: 12px; background: var(--brand-tint); color: var(--brand-deep); border-radius: 999px; padding: 4px 12px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; }
.post h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .5em; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--brand-strong); }
.post p { color: var(--ink-2); font-size: .97rem; flex: 1; margin-bottom: 18px; }
.post .link-arrow { color: var(--brand-strong); align-self: flex-start; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Blog: artykuł ---------- */
.article-hero .wrap { max-width: 860px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article-meta { margin: 0; color: var(--ink-3); font-size: .92rem; }
.article .wrap { max-width: 860px; }
.article-figure { margin: 0 0 40px; }
.article-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.article .prose { max-width: none; font-size: 1.08rem; }
.article .prose h2:first-child { margin-top: 0; }
.article .prose li { margin-bottom: .5em; }
.callout { margin: 32px 0; padding: 22px 26px; background: var(--brand-tint-2); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230377b8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-strong); }
.faq .answer { padding: 0 4px 22px; color: var(--ink-2); max-width: 760px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, #00c6de, var(--brand) 45%, var(--brand-strong)); color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 1.1rem; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .08); pointer-events: none; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.contact-card:hover { border-color: #b5dcef; box-shadow: var(--shadow-1); transform: translateY(-2px); color: var(--ink); }
.contact-card .ci { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center; }
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--ink-3); font-size: .85rem; }
.contact-card b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); overflow-wrap: anywhere; }
.contact-card .go { width: 22px; height: 22px; color: var(--brand-strong); transition: transform .2s; }
a.contact-card:hover .go { transform: translateX(4px); }
.contact-card--static { grid-template-columns: 56px 1fr; background: var(--paper-2); }
.contact-card--static b { font-size: 1.05rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-card { grid-template-columns: 44px 1fr; padding: 16px; gap: 14px; } .contact-card .ci { width: 44px; height: 44px; } .contact-card .go { display: none; } }

/* ---------- Nagłówek podstrony ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, #fff, var(--brand-tint-2)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 900px; }
.page-hero .lead { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand-strong); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }


/* ---------- Stopka ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-grid h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--brand-strong); }
.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-2); max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
.footer-bottom a { color: var(--ink-3); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 18, 28, .9); display: none; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Pojawianie się przy przewijaniu ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Strona błędu ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--brand); letter-spacing: -.04em; margin-bottom: 8px; }
