/* ==========================================================================
   REMIGIUS – statyczna wersja strony remigius.pl
   Paleta oparta na oryginalnym motywie (granat #0a1843, fiolet #705da7,
   zieleń #9cdf43), dopracowana: głębszy granat z 3 poziomami powierzchni,
   spokojniejszy indygo-fiolet jako główny akcent, zieleń jako akcent „check”.
   Fonty: Inter (tekst) + Sora (nagłówki) – self-hosted, licencja SIL OFL 1.1
   (assets/fonts/*-OFL.txt).
   ========================================================================== */

/* ---------- Fonts (self-hosted woff2, zmienne; latin + Latin Extended-A = pełne polskie znaki) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-017F;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-017F;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* Tła i powierzchnie (od najciemniejszej) */
  --bg-0: #060d29;        /* stopka, najgłębsze tło */
  --bg-alt: #081134;      /* sekcje naprzemienne */
  --bg: #0a1540;          /* tło bazowe */
  --surface: #0f1d4f;     /* karty */
  --surface-2: #14255e;   /* karty uniesione, baner cookies */
  --surface-3: #1b2e6c;   /* hover, ikony, przełączniki */
  --bg-rgb: 10, 21, 64;
  --bg-0-rgb: 6, 13, 41;

  /* Linie */
  --line: rgba(148, 170, 230, .13);
  --line-strong: rgba(148, 170, 230, .24);

  /* Tekst */
  --heading: #f5f7ff;
  --text: #d5dcea;
  --muted: #a3b0cb;

  /* Akcenty */
  --accent: #6558b5;       /* główny: przyciski, ikony */
  --accent-hover: #7467c2;
  --accent-deep: #463c92;  /* gradienty ikon */
  --accent-soft: #b6adf2;  /* linki, etykiety, ceny na ciemnym tle */
  --accent-rgb: 101, 88, 181;
  --green: #9cdf43;        /* akcent „check”: listy, kroki, godziny, focus */
  --green-rgb: 156, 223, 67;
  --on-green: #0a1540;
  --danger: #ff9d9d;       /* błędy formularza */

  /* Aliasy zgodności (stare nazwy) */
  --purple: var(--accent);
  --purple-light: var(--accent-soft);
  --btn: var(--surface-3);
  --btn-hover: #24397f;
  --bg-deep: var(--bg-alt);

  /* Typografia */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-small: .9rem;
  --fs-label: .78rem;
  --fs-h1: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.55rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --measure: 65ch;
  --tracking-label: .14em;

  /* Odstępy (skala 4/8) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;

  /* Kształt i głębia */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -22px rgba(0, 0, 0, .7);
  --shadow-hover: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 26px 50px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(var(--accent-rgb), .18);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --header-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-soft); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.16; margin: 0 0 .6em; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; letter-spacing: -.028em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.012em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
strong { color: var(--heading); font-weight: 600; }
::selection { background: rgba(var(--accent-rgb), .55); color: #fff; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--alt::before, .site-footer::before { /* delikatny separator sekcji */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, rgba(var(--accent-rgb), .55) 50%, var(--line-strong) 80%, transparent);
}
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section__head p { max-width: var(--measure); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center p { margin-inline: auto; }
.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-family: var(--font); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--accent-soft);
}
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 400; background: #fff; color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font: 600 1rem/1.2 var(--font); letter-spacing: .01em;
  color: #fff; text-decoration: none; cursor: pointer;
  background: var(--btn); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  transition: background-color .2s var(--ease), transform .2s var(--ease), border-color .2s, color .2s, box-shadow .2s var(--ease);
}
.btn:hover { background: var(--btn-hover); border-color: rgba(var(--accent-rgb), .6); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: var(--radius-pill); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--primary { background: var(--accent); border-color: transparent; box-shadow: 0 8px 22px -12px rgba(var(--accent-rgb), .9); }
.btn--primary:hover { background: var(--accent-hover); border-color: transparent; box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), .95); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.75); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--bg-0-rgb), .82);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo img { width: 170px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; color: #fff;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background-color .25s;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--bg-0); border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
  display: none;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: .8rem .25rem; color: var(--text); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav li a { transition: color .2s, background-color .2s; }
.site-nav li a:hover, .site-nav li a[aria-current="true"] { color: #fff; }
.site-nav li a[aria-current="true"] { color: var(--accent-soft); }
.site-nav .btn { margin-top: 1.1rem; width: 100%; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 1.5rem; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: .25rem; }
  .site-nav li a { border: 0; padding: .5rem .7rem; font-size: .95rem; font-weight: 500; color: var(--text); border-radius: var(--radius-pill); }
  .site-nav li a:hover { background: rgba(255, 255, 255, .06); }
  .site-nav .btn { margin-top: 0; width: auto; min-height: 42px; padding: .55rem 1.15rem; font-size: .95rem; }
  .logo img { width: 190px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(900px 560px at 8% 18%, rgba(var(--accent-rgb), .26), transparent 62%),
    radial-gradient(600px 400px at 0% 100%, rgba(var(--green-rgb), .06), transparent 70%),
    var(--bg);
}
.hero__bg {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 100%;
  opacity: .28;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { /* soft vignette for text legibility */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--bg-rgb), .96) 0%, rgba(var(--bg-rgb), .85) 45%, rgba(var(--bg-rgb), .2) 100%);
}
.hero__content { max-width: 720px; }
.hero h1 { margin-bottom: .45em; }
.hero h1 span { display: block; }
.hero h1 .eyebrow { width: max-content; max-width: 100%; line-height: 1.7; letter-spacing: var(--tracking-label); color: var(--green); }
.hero .lead { max-width: 58ch; margin-bottom: 1.6rem; }
.hero__points { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__points li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .95rem; font-size: .93rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__points svg { width: 1em; height: 1em; color: var(--green); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__phone { margin-top: 1.4rem; font-size: .98rem; color: var(--muted); }
.hero__phone a { color: #fff; font-weight: 600; text-decoration: none; }
.hero__phone a:hover { color: var(--accent-soft); }
@media (min-width: 900px) {
  .hero { min-height: min(780px, 92vh); display: flex; align-items: center; }
  .hero__bg { width: 78%; opacity: 1; }
  .hero::after { background: linear-gradient(90deg, rgba(var(--bg-rgb), .97) 0%, rgba(var(--bg-rgb), .9) 22%, rgba(var(--bg-rgb), .5) 55%, rgba(var(--bg-rgb), 0) 80%); }
}

/* ---------- Intro (Kiedy warto) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .split--reverse { grid-template-columns: .85fr 1.15fr; }
}
.callout {
  margin: 1.4rem 0; padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--green); background: linear-gradient(90deg, rgba(var(--green-rgb), .09), rgba(var(--green-rgb), .02));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #fff; font-weight: 600;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow);
}
/* Karty z uniesieniem po najechaniu */
.scope-card, .plan, .faq-item, .steps li, .clients li {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .25s;
}
.scope-card:hover, .plan:hover, .faq-item:hover, .steps li:hover {
  transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-hover);
}
.effect h3 { display: flex; align-items: center; gap: .6rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1540' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.tech { margin-top: clamp(2.5rem, 6vw, 4rem); }
.tech__label { max-width: 820px; margin: 0 auto 1.3rem; text-align: center; font-size: 1rem; color: var(--muted); }
.logo-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.logo-row li { background: #fff; border-radius: var(--radius-sm); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8); overflow: hidden; aspect-ratio: 9 / 5; display: grid; place-items: center; }
.logo-row img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 700px) { .logo-row { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }

/* ---------- Intro (W skrócie) ---------- */
.section--intro { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.intro { position: relative; overflow: hidden; background: radial-gradient(520px 260px at 100% 0%, rgba(var(--accent-rgb), .16), transparent 70%), var(--surface); }
.intro::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); }
.intro h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
.intro > p { max-width: 75ch; }
.facts { display: grid; gap: 1rem 2rem; margin: 1.4rem 0 0; }
@media (min-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { padding-top: .9rem; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-soft); margin-bottom: .3rem; }
.facts dd { margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .faq-list { grid-template-columns: 1fr 1fr; } }
.faq-item h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: .6rem; padding-left: 1.1rem; border-left: 3px solid var(--accent); }
.faq-item p { margin: 0; }

/* ---------- Scope cards ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.scope-card { display: flex; flex-direction: column; }
.scope-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-deep)); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(var(--accent-rgb), .9), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.scope-card__icon svg { width: 26px; height: 26px; }
.scope-card h3 { letter-spacing: .08em; font-size: 1.2rem; }
.scope-card ul { padding-left: 1.1em; }
.scope-card li { margin-bottom: .35rem; }
.scope-card li::marker { color: var(--purple-light); }
.scope-card__goal { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); margin-bottom: 0; font-size: .98rem; }
.scope-card__goal strong { color: var(--green); }
.effect-band { margin-top: 1.25rem; display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 800px) { .effect-band { grid-template-columns: auto 1fr; } .effect-band .check-list { columns: 2; column-gap: 2rem; } .effect-band .check-list li { break-inside: avoid; } }
.effect-band h3 { margin: 0; font-size: 1.5rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding: 1.4rem 1.4rem 1.4rem 4.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 1.3rem; top: 1.3rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem/1 var(--font-head); color: var(--on-green); background: var(--green);
  box-shadow: 0 0 0 5px rgba(var(--green-rgb), .12);
}
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { margin: 0; }
.aside-card { text-align: center; }
.aside-card img { width: min(260px, 80%); margin: 1.25rem auto 1.4rem; }

/* ---------- Clients ---------- */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.clients li {
  display: grid; place-items: center; min-height: 110px; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.clients li:hover { border-color: rgba(var(--accent-rgb), .6); background-color: var(--surface-2); transform: translateY(-2px); }
.clients img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 700px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .clients { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } .plan__desc { min-height: calc(3 * 1.5em + 1.1rem); } }
.plan { display: flex; flex-direction: column; position: relative; overflow: hidden; background: radial-gradient(420px 220px at 50% -10%, rgba(var(--accent-rgb), .22), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); }
.plan:hover { border-color: rgba(var(--accent-rgb), .5); }
.plan__name { font-family: var(--font); font-size: .95rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; font-weight: 700; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; color: #fff; margin-bottom: .3rem; }
.plan__amount { font-family: var(--font-head); font-size: clamp(2.5rem, 2rem + 2vw, 3.1rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff; }
.plan__unit { font-size: 1rem; color: var(--muted); }
.plan__hours { display: inline-block; margin: .9rem 0 1rem; padding: .22rem .75rem; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--green); background: rgba(var(--green-rgb), .12); border: 1px solid rgba(var(--green-rgb), .35); align-self: flex-start; }
.plan__desc { line-height: 1.5; font-size: 1.05rem; color: var(--heading); font-weight: 500; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.plan .check-list { margin: 1.2rem 0 1.6rem; font-size: .98rem; }
.plan .btn { margin-top: auto; }
.pricing-note { max-width: 860px; margin: 2rem auto 0; text-align: center; font-size: .98rem; }

/* ---------- About ---------- */
.about__photo { position: relative; max-width: 420px; margin-inline: auto; }
.about__photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about__photo::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 2px solid rgba(var(--accent-rgb), .8); border-radius: var(--radius); z-index: -1; background: radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), .18), transparent 60%); }
.about { isolation: isolate; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(760px 520px at 0% 55%, rgba(var(--accent-rgb), .2), transparent 65%), radial-gradient(520px 380px at 100% 100%, rgba(52, 197, 214, .08), transparent 70%), var(--bg-alt); }
.contact::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 20%, rgba(var(--accent-rgb), .55) 50%, var(--line-strong) 80%, transparent); }
.contact__details { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.contact__details a {
  display: inline-flex; align-items: center; gap: .8rem; color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none;
}
.contact__details a { transition: color .2s; }
.contact__details a:hover { color: var(--accent-soft); }
.contact__details .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-deep)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 8px 18px -10px rgba(var(--accent-rgb), .9); transition: transform .2s var(--ease); }
.contact__details a:hover .icon { transform: scale(1.06); }
.contact__details svg { width: 20px; height: 20px; }
.form { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; color: #fff; }
.form input, .form textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1rem; color: #141c3a;
  background: #f6f7fc; border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #5f6886; }
.form input:hover, .form textarea:hover { background: #fff; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .35); }
.form__note { font-size: .88rem; color: var(--muted); margin: 0; }
/* Pole-pułapka dla botów (niewidoczne dla ludzi i czytników ekranu; nie type=hidden) */
.form__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__check { display: flex; align-items: flex-start; gap: .7rem; }
.form__check input { flex: none; width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--accent); cursor: pointer; }
.form__check label { margin: 0; font-size: .9rem; font-weight: 400; line-height: 1.5; color: var(--text); cursor: pointer; }
.form__check a { color: var(--accent-soft); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 138, 138, .25); }
.form__check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.5em; }
.form__status:empty { display: none; }
.form__status.is-info { color: var(--muted); }
.form__status.is-success { color: var(--green); font-weight: 600; }
.form__status.is-error { color: var(--danger); }
.form__turnstile { min-height: 65px; }
.form__turnstile[hidden] { display: none; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
/* Podziękowanie po wysłaniu bez JavaScript (contact.php przekierowuje na #dziekuje) */
.form-thanks { display: none; margin-bottom: 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid rgba(var(--green-rgb), .45); background: rgba(var(--green-rgb), .1); color: var(--heading); }
.form-thanks p { margin: 0; }
.form-thanks:target { display: block; }
.form-thanks:focus { outline: none; }
/* Strona contact.php (wysyłka bez JavaScript) */
.contact-standalone { max-width: 760px; margin-inline: auto; }
.contact-standalone__title { font-size: var(--fs-h2); }
.form__errors { margin: 0 0 1.2rem; padding-left: 1.2em; color: var(--danger); }
.form__note a { color: var(--text); }

/* ---------- Other projects ---------- */
.projects { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: radial-gradient(700px 300px at 100% 0%, rgba(var(--accent-rgb), .1), transparent 70%), var(--bg-0); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: .96rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .footer-title { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--text); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer p { max-width: 42ch; }
.footer-brand img { width: 180px; margin-bottom: 1rem; }
.social { display: flex !important; gap: .6rem !important; margin-top: 1.2rem !important; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); color: #fff; transition: background-color .2s, transform .2s var(--ease), border-color .2s; }
.social a:hover { background: var(--accent); border-color: transparent; color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; }
/* Pasek prawny: jedna linia na desktopie/tablecie, łagodne zawijanie na wąskich ekranach */
.footer-bottom .footer-legal { margin: 0; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.footer-legal > * { white-space: nowrap; }
.footer-legal__sep { color: var(--muted); opacity: .6; }
.site-footer .footer-legal a, .site-footer .footer-legal .link-button { color: var(--text); text-decoration: none; font-size: inherit; line-height: inherit; }
.site-footer .footer-legal a:hover, .site-footer .footer-legal .link-button:hover { color: var(--accent-soft); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 560px) {
  .footer-bottom .footer-legal { gap: .35rem 1rem; }
  .footer-legal__sep { display: none; }
  .footer-legal > span:first-child { flex-basis: 100%; }
}

/* ---------- Legal page ---------- */
.page-hero { padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem); background: radial-gradient(700px 360px at 100% 0%, rgba(var(--accent-rgb), .32), transparent 70%), var(--bg-alt); border-bottom: 1px solid var(--line); }
.breadcrumbs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; }
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--purple-light); font-weight: 700; }
.prose ul li::marker { color: var(--green); }
.prose address { font-style: normal; padding: 1rem 1.2rem; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 1.1em; }

/* ---------- Cookie consent ---------- */
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.link-button:hover { color: var(--accent-soft); }
.cc {
  position: fixed; z-index: 300; left: 0; right: 0; bottom: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  font-size: .92rem; line-height: 1.55;
}
.cc[hidden] { display: none; }
.cc__inner {
  position: relative; max-height: 85vh; overflow-y: auto;
  background: var(--surface-2); color: var(--text);
  border-top: 1px solid rgba(var(--accent-rgb), .55);
  box-shadow: 0 -12px 40px -8px rgba(0, 0, 0, .6);
  padding: 1rem var(--gutter) 1.1rem;
  display: grid; gap: .8rem;
}
.cc__inner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); }
.cc__inner:focus { outline: none; }
.cc__inner:focus-visible { outline: none; } /* focus lands on the container only programmatically; buttons keep their own focus ring */
.cc__title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 650; line-height: 1.3; color: #fff; margin: 0 0 .25rem; letter-spacing: .02em; }
.cc__text { margin: 0; }
.cc__text a { color: #fff; font-weight: 600; }
.cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.cc-btn {
  min-height: 44px; padding: .6rem 1rem; border-radius: 999px; cursor: pointer;
  font: 600 .95rem/1.2 var(--font); color: #fff;
  background: var(--accent); border: 2px solid var(--accent);
  transition: background-color .2s, border-color .2s;
}
.cc-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cc-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cc-btn--ghost { grid-column: 1 / -1; background: transparent; border-color: rgba(255, 255, 255, .35); }
.cc-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.cc-btn[hidden] { display: none; }
.cc__settings { display: grid; gap: .6rem; }
.cc__settings[hidden] { display: none; }
.cc-cat { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; }
.cc-cat__desc { margin: .35rem 0 0 3.4rem; color: var(--muted); font-size: .88rem; }
.cc-cat__name { font-weight: 700; color: #fff; }
.cc-cat__badge { margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--on-green); background: var(--green); vertical-align: middle; }
.cc-switch { display: flex; align-items: center; gap: .8rem; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch__track { position: relative; flex: none; width: 2.6rem; height: 1.45rem; border-radius: 999px; background: #3b4b82; transition: background-color .2s; }
.cc-switch__track::after { content: ""; position: absolute; top: .18rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.cc-switch input:checked + .cc-switch__track { background: var(--green); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(1.1rem); background: var(--bg); }
.cc-switch input:disabled + .cc-switch__track { opacity: .75; cursor: not-allowed; }
.cc-switch input:focus-visible + .cc-switch__track { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 799px) {
  .cc__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cc__more { display: none; }
  .cc__inner { padding: .85rem var(--gutter) .9rem; gap: .65rem; font-size: .88rem; }
  .cc__actions { gap: .45rem; }
  .cc-btn--ghost { min-height: 38px; padding-block: .4rem; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
}
/* Desktop: compact card in the bottom-right corner – doesn't cover the hero CTA (left column) */
@media (min-width: 800px) {
  .cc { left: auto; right: 1.25rem; bottom: 1.25rem; width: 430px; padding: 0; }
  .cc.cc--settings { width: min(560px, calc(100% - 2.5rem)); }
  .cc__inner { border: 1px solid rgba(var(--accent-rgb), .55); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); padding: 1.25rem 1.35rem; max-height: calc(100vh - 2.5rem); }
  .cc__actions { grid-template-columns: 1fr 1fr; }
  .cc-btn { padding-inline: .9rem; }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:hover svg, .scope-card:hover, .plan:hover, .faq-item:hover, .steps li:hover,
  .clients li:hover, .social a:hover, .contact__details a:hover .icon { transform: none; }
}
