/* DEVSOLUTION — style strony. Jeden plik, bez frameworka. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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;
}

/* Montserrat ExtraBold: krój wszystkich nagłówków (h1–h3) i tytułów w elementach graficznych */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url("../fonts/montserrat-latin-800-normal.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: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url("../fonts/montserrat-pl-800-normal.woff2") format("woff2");
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 800;
  font-display: optional;
  src: url("../fonts/montserrat-latin-800-italic.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;
}

:root {
  --bg: #050b1a;
  --bg-2: #081431;
  --bg-3: #0b1b40;
  --surface: rgba(18, 42, 94, 0.38);
  --surface-strong: rgba(14, 33, 76, 0.7);
  --border: rgba(86, 144, 255, 0.24);
  --border-strong: rgba(110, 170, 255, 0.5);
  --text: #eef3ff;
  --text-muted: #aebbd8;
  --accent: #1761ea;
  --accent-hover: #2b74ff;
  --accent-text: #55a8ff;
  --focus: #8fd0ff;
  --danger: #ff8f8f;
  --success: #52e0a1;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(8, 40, 120, 0.7);
  --container: 1320px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(23, 97, 234, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(23, 97, 234, 0.1), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3 { font-family: "Montserrat", var(--font); line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 1.1rem + 3vw, 2.9rem); }
h2 { font-size: clamp(1rem, 0.82rem + 0.7vw, 1.3rem); }
h3, .h3 { font-size: 0.94rem; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: #8cc5ff; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ── Ikony ─────────────────────────────────────────── */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 48px; height: 48px; }

/* ── Układ ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(22px, 2.6vw, 36px); }
.section--tight { padding-block: clamp(20px, 2.6vw, 34px); }
.section--alt { background: linear-gradient(180deg, rgba(11, 27, 64, 0.55), rgba(8, 20, 49, 0.25)); border-block: 1px solid rgba(86, 144, 255, 0.1); }

.section__head { margin-bottom: clamp(18px, 2.4vw, 28px); text-align: center; }
/* Podtytuł pod nagłówkiem sekcji w jednej linii (jest miejsce na całą szerokość kontenera) */
.section__head .lead { max-width: none; margin-inline: auto; }
/* Sekcja zaraz pod hero: mniejszy odstęp od hero */
.hero + .section { padding-top: clamp(10px, 1.1vw, 16px); }
.section__head h2 { margin-bottom: 0.4em; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text);
}

/* Etykiety nad nagłówkami sekcji: wyróżniona "pigułka" z kropką akcentu */
.section__head .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; margin: 0 0 16px;
  font-size: 0.72rem; letter-spacing: 0.16em;
  color: #9fd0ff;
  background: rgba(23, 97, 234, 0.14);
  border: 1px solid var(--border-strong); border-radius: 999px;
  box-shadow: 0 0 22px -8px rgba(23, 97, 234, 0.7);
}
.section__head .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-text); box-shadow: 0 0 8px 1px var(--accent-text);
}

.lead { font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem); color: var(--text-muted); max-width: 62ch; }
.text-accent { color: var(--accent-text); }

.more-links { margin: 28px 0 0; color: var(--text-muted); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

/* ── Przyciski ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 0.9rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(23, 97, 234, 0.9); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(86, 144, 255, 0.14); color: #fff; }
.btn--outline { background: transparent; border-color: var(--accent); color: #cfe3ff; }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ── Nagłówek ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 26, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(86, 144, 255, 0.14);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; position: relative; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: #fff; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-weight: 700; letter-spacing: 0.04em; font-size: 1rem; color: var(--accent-text); }
.brand__name span { color: #fff; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }

/* Menu mobilne: pełnoekranowa nakładka pod paskiem z logo (pasek i przycisk zamknięcia zostają widoczne) */
.site-nav {
  display: none; position: fixed; z-index: 40;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  flex-direction: column; justify-content: flex-start; gap: 20px;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(640px 420px at 50% 0%, rgba(23, 97, 234, 0.24), transparent 70%), var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
}
.site-nav.is-open { display: flex; }
/* Tło menu mobilnego: zdjęcie laptopa z małą przezroczystością (pobierane dopiero po otwarciu menu) */
.site-nav::before { content: ""; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; opacity: 0.2;
  background: url("../img/hero-mobile-600.webp") 68% 36% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
/* margin-block: auto: linki wyśrodkowane pionowo w pełnoekranowym menu */
.site-nav__list { list-style: none; margin: auto 0; padding: 0; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.site-nav__list a {
  display: block; padding: 14px 8px; color: var(--text); text-decoration: none;
  font-family: var(--font); font-weight: 500; font-size: 1.3rem; letter-spacing: 0; /* ten sam krój i grubość co menu desktopowe, większy rozmiar pod dotyk */
}
.site-nav__list a:hover, .site-nav__list a[aria-current] { color: var(--accent-text); }
/* backdrop-filter na headerze tworzyłby kontekst dla position: fixed — na czas menu wyłączony */
.site-header.is-menu-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.menu-open { overflow: hidden; }

@media (min-width: 960px) {
  .site-nav::before { display: none; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; z-index: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 28px; padding: 0; background: none; overflow: visible; }
  .site-nav__list { flex-direction: row; gap: 26px; text-align: left; margin: 0; }
  .site-nav__list a { padding: 8px 0; border: 0; font-family: var(--font); font-weight: 500; font-size: 0.875rem; letter-spacing: 0; position: relative; }
  .site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-text); border-radius: 2px; transform: scaleX(0); transition: transform .25s; }
  .site-nav__list a[aria-current]::after { transform: scaleX(1); }
    .site-header.is-menu-open { background: rgba(5, 11, 26, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  html.menu-open { overflow: auto; }
}

/* ── Hero: zdjęcie jako tło całej sekcji (zgodnie z projektem) ───────── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: 0; padding-bottom: clamp(4px, 0.5vw, 8px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg picture { display: contents; }
/* Grafika po prawej, prawa krawędź równo z końcem kontenera treści, nad paskiem faktów — jak w projekcie */
.hero__bg img { position: absolute; right: max(20px, calc((100% - var(--container)) / 2 + 20px)); top: 0; bottom: auto; width: min(62%, 960px); height: calc(100% - 100px); object-fit: cover; object-position: 60% 50%; max-width: none;
  /* miękkie wygaszenie wszystkich krawędzi (grafika ma tło z zasłonami) */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 74%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 8%, #000 24%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 74%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 8%, #000 24%, #000 96%, transparent 100%);
  mask-composite: intersect; }
/* Ciemny gradient od lewej: wtapia grafikę w tło i chroni czytelność tekstu */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 11, 26, 0.92) 32%, rgba(5, 11, 26, 0.5) 42%, rgba(5, 11, 26, 0.1) 52%, rgba(5, 11, 26, 0) 60%);
}
.hero__copy h1 { font-weight: 700; text-wrap: balance; margin-bottom: clamp(16px, 1.9vw, 28px); max-width: 15em; font-size: clamp(1.2rem, 0.8rem + 1.4vw, 1.65rem); line-height: 1.16; }
.hero__copy .lead { max-width: 56ch; color: #c3cee6; font-size: clamp(0.9rem, 0.87rem + 0.15vw, 0.97rem); }
/* Desktop i tablet: opis w kolumnie tekstu, nie wchodzi na zdjęcie po prawej (hero ma zapas wysokości) */
@media (min-width: 760px) { .hero__copy .lead { max-width: min(56ch, max(220px, 28vw)); } }

/* Hero strony głównej w wersji "statement": nagłówek w Montserracie ExtraBold, "pomocy?" pochyłe, niebieskie, z zakrzywionym podkreśleniem */
.hero--statement .hero__copy h1 { font-family: "Montserrat", "Inter", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.015em; line-height: 1.14; max-width: 15em; font-size: clamp(1.3rem, 0.85rem + 1.6vw, 1.9rem); }
.hero--statement .text-accent { position: relative; display: inline-block; padding: 0 0.12em 0.04em 0.02em; font-style: italic; color: transparent; background: linear-gradient(90deg, #1f86ff, #5cc2ff); -webkit-background-clip: text; background-clip: text; }
.hero--statement .text-accent::after { content: ""; position: absolute; left: 6%; right: -1%; bottom: -0.2em; height: 0.3em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%231761ea' stop-opacity='0'/%3E%3Cstop offset='0.28' stop-color='%231f86ff'/%3E%3Cstop offset='1' stop-color='%235cc2ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 18 C70 4 170 -3 240 8 C172 4 72 10 0 18Z' fill='url(%23g)'/%3E%3C/svg%3E") center / 100% 100% no-repeat; pointer-events: none; }
@media (min-width: 760px) {
  .hero--statement .hero__inner { display: flex; align-items: stretch; min-height: clamp(290px, 25.5vw, 350px); }
  /* przyciski przypięte do dołu bloku tekstu, tuż nad poziomą linią paska faktów */
  .hero--statement .hero__copy { display: flex; flex-direction: column; }
  .hero--statement .hero__copy .btn-row { margin-top: auto; padding-top: 22px; }
}

/* Telefon: gradient od góry jak w menu mobilnym. Zdjęcie hero na telefonie tylko w wersji "statement" (strona główna):
   wycinek z laptopem jest TŁEM za tekstem (hero--bg: strona główna i podstrony usług), wtopiony maskami i ściemnieniem od lewej. */
@media (max-width: 759px) {
  .hero { background: radial-gradient(640px 420px at 50% 0%, rgba(23, 97, 234, 0.24), transparent 70%); }
  .hero__bg { display: none; }
  /* Grafika na całe tło hero, wygaszona pod tekstem (ściemnienie od lewej) i przed paskiem faktów (zanikanie ku dołowi);
     kubek z logo i roślina widoczne po prawej, nagłówek na lewej połowie, niebieski napis i przyciski na całą szerokość */
  .hero--bg .hero__copy h1 { max-width: 56%; }
  .hero--bg .hero__bg { display: block; }
  .hero--bg .hero__bg img {
    top: 28px; right: auto; bottom: auto; left: 0; width: 100%; height: auto; max-width: none; aspect-ratio: 2006 / 784; object-fit: cover;
    filter: brightness(1.06) saturate(1.1) contrast(1.04);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 72%, transparent 100%);
  }
  .hero--bg .hero__bg::after { background: linear-gradient(90deg, rgba(5, 11, 26, 0.78) 0%, rgba(5, 11, 26, 0.5) 38%, rgba(5, 11, 26, 0.1) 100%); }
  .hero--bg .hero__copy h1, .hero--bg .hero__copy .eyebrow { text-shadow: 0 1px 8px rgba(5, 11, 26, 0.95), 0 0 18px rgba(5, 11, 26, 0.8); }
  .hero--statement .hero__copy h1 .text-accent { text-shadow: none; }
  /* Telefon: drobny tekst pod nagłówkiem ukryty wizualnie (zostaje w HTML dla czytników ekranu i wyszukiwarek); na desktopie widoczny */
  .hero--bg .hero__copy .lead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* Podstrony ofert: pierwsze, pełne zdanie opisu pod nagłówkiem w lewej kolumnie (bez obcinania, bo wielokropek sugerowałby nieistniejący ciąg dalszy) */
  .hero--bg:not(.hero--statement) .hero__copy .lead {
    position: static; width: auto; height: auto; margin: 0; padding: 0; clip: auto; border: 0; overflow: visible; white-space: normal;
    max-width: 64%; font-size: 0.8rem; line-height: 1.5; color: #c3cee6;
  }
  /* tylko pierwsze zdanie jest widoczne; reszta ukryta wizualnie (zostaje w HTML dla czytników ekranu i wyszukiwarek) */
  .hero--bg:not(.hero--statement) .hero__copy .lead .lead__rest { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* Telefon: niebieski napis nad nagłówkiem trochę mniejszy */
  .hero .eyebrow { font-size: 0.64rem; letter-spacing: 0.12em; }
  /* Telefon: blok tekstu rozciągnięty na wysokość hero, przyciski przypięte do dołu (tuż nad poziomą linią) */
  .hero--bg .hero__inner { display: flex; flex-direction: column; min-height: 220px; }
  .hero--bg .hero__copy { display: flex; flex: 1; flex-direction: column; }
  .hero--bg .hero__copy .btn-row { margin-top: auto; padding-top: 24px; }
}
/* Telefony: przyciski hero obok siebie, mniejsza czcionka i odstępy, żeby oba mieściły się w jednym rzędzie */
@media (max-width: 599px) {
  .hero .btn-row { flex-wrap: nowrap; gap: 8px; margin-top: 22px; }
  .hero .btn-row .btn { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 10px; gap: 6px; font-size: 0.76rem; white-space: nowrap; }
  .hero .btn-row .btn .icon { width: 14px; height: 14px; }
}
/* Wąskie telefony: bez strzałek w przyciskach hero (tekst ma pierwszeństwo) */
@media (max-width: 379px) {
  .hero .btn-row .btn .icon { display: none; }
}
/* Najwęższe ekrany (np. 320 px): przyciski jeden pod drugim, żeby tekst się nie ucinał */
@media (max-width: 339px) {
  .hero .btn-row { flex-wrap: wrap; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

.trust {
  list-style: none; margin: clamp(12px, 1.4vw, 20px) 0 0; padding: 18px 0;
  display: grid; gap: 18px; grid-template-columns: 1fr 1fr;
  border-block: 1px solid rgba(86, 144, 255, 0.16);
}
.trust li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.35; }
.trust .icon { width: 28px; height: 28px; color: var(--accent-text); }
.trust strong { color: var(--text); font-weight: 600; display: block; }
@media (min-width: 900px) {
  /* pierwszy element równo z lewą krawędzią treści, ostatni z prawą, reszta rozłożona równo */
  .trust { display: flex; justify-content: space-between; gap: 24px; }
}
/* Mobile (2 kolumny): nieparzysty ostatni element na całą szerokość */
/* Poniżej 900 px (układ 2 kolumn): 4 punkty, bez dopisku "z wersją mobilną" i bez piątego punktu */
@media (max-width: 899px) {
  .trust__note { display: none; }
  .trust li:nth-child(5) { display: none; }
}

/* ── Podstrony: hero ───────────────────────────────── */
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 48px); background: radial-gradient(800px 360px at 80% 0%, rgba(23, 97, 234, 0.2), transparent 70%); }
.page-hero h1 { max-width: 24ch; font-size: clamp(1.65rem, 1rem + 2.2vw, 2.45rem); }
/* Strony pomocnicze (polityka): ciasny górny odstęp, mały odstęp do treści */
.page-hero--compact { padding-block: clamp(12px, 1.4vw, 20px) clamp(8px, 1vw, 14px); }
.page-hero--compact .lead { margin-bottom: 0; }
.page-hero--compact + .section { padding-top: clamp(10px, 1.2vw, 16px); }
.page-hero--compact h1 { font-size: clamp(1.6rem, 1rem + 1.9vw, 2.2rem); }

/* ── Karty i cechy ─────────────────────────────────── */
.card {
  display: flex; flex-direction: column;
  padding: 18px 18px;
  background: linear-gradient(180deg, rgba(23, 97, 234, 0.13), rgba(10, 24, 58, 0.55));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon, .feature__icon { display: inline-flex; color: var(--accent-text); margin-bottom: 12px; }
.card h3 { margin-bottom: 0.5em; }
/* Ikona w jednej linii z nagłówkiem karty */
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card__head .card__icon { margin: 0; flex: none; }
.card__head h3 { margin: 0; }
/* Boxy "Dlaczego warto": ikona w jednej linii z nagłówkiem (jak w ofercie) */
.feature__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.feature__head .feature__icon { margin: 0; flex: none; }
.feature__head h3 { margin: 0; }
.card > p { color: var(--text-muted); font-size: 0.875rem; }
.card { position: relative; }
.card__cta { margin-top: auto; }
/* Cała karta oferty jest klikalna (rozciągnięty link); fokus widać na całej karcie */
.card__cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:focus-within { border-color: var(--border-strong); }
.card__note { margin: 14px 0 0; font-size: 0.85rem; color: var(--text-muted); }

.feature {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid rgba(86, 144, 255, 0.16);
  border-radius: var(--radius);
  transition: border-color .25s, background-color .25s;
}
.feature:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.feature h3 { margin-bottom: 0.45em; }
/* Karta progu cenowego: cena jako niebieska pigułka na dole karty */
.price-card { display: flex; flex-direction: column; }
.price-card__meta { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 10px; }
.price-card__meta p { margin: 0; }
.price-card__time { display: inline-flex; align-items: center; gap: 8px; justify-content: center; white-space: nowrap; padding: 8px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; color: var(--text-muted); background: rgba(86, 144, 255, 0.07); }
.price-card__time .icon, .price-card__price .icon { width: 16px; height: 16px; flex: none; }
.price-card__time .icon { color: var(--accent-text); }
.price-card__price { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: linear-gradient(135deg, #1f86ff, #1761ea); color: #fff; font-family: "Montserrat", var(--font); font-weight: 800; font-size: 1.25rem; box-shadow: 0 8px 22px -10px rgba(23, 97, 234, 0.8); }
.price-card__price small { font-size: 0.78rem; font-weight: 700; opacity: 0.9; }

/* Box z linkiem: tytuł jest linkiem, kliknięcie w dowolne miejsce boxa prowadzi na podstronę */
.feature--link { position: relative; }
.feature--link h3 a { color: inherit; text-decoration: none; }
.feature--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.feature--link:hover h3 a { color: var(--accent-text); }
.feature--link:focus-within { border-color: var(--border-strong); }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.875rem; line-height: 1.5; }
.checklist .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); }
.checklist--card { padding: 26px 24px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
/* Lista jako siatka boxów (jak karty w pozostałych sekcjach) */
.checklist--grid { margin: 0; gap: 16px; grid-template-columns: 1fr; }
.checklist--grid li { padding: 16px 18px; background: var(--surface); border: 1px solid rgba(86, 144, 255, 0.16); border-radius: var(--radius); transition: border-color .25s, background-color .25s; }
.checklist--grid li:hover { border-color: var(--border-strong); background: var(--surface-strong); }
@media (min-width: 700px) { .checklist--cols-2, .checklist--cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .checklist--cols-3 { grid-template-columns: repeat(3, 1fr); } }
.section__foot { max-width: 820px; margin: clamp(18px, 2.4vw, 28px) auto 0; text-align: center; color: var(--text-muted); }
.section__foot p { margin: 0 0 0.8em; }
.section__foot p:last-child { margin-bottom: 0; }

/* ── Kroki procesu ─────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.step {
  position: relative; padding: 16px 18px 18px;
  background: var(--surface); border: 1px solid rgba(86, 144, 255, 0.2); border-radius: var(--radius);
}
/* Numer, tytuł i ikona w jednym wierszu: tytuł między numerem a ikoną */
.step__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step__num { flex: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent-text); line-height: 1; }
.step__icon { width: 22px; height: 22px; flex: none; color: var(--accent-text); opacity: 0.9; }
.step__top h3 { flex: 1; min-width: 0; margin: 0; font-size: 0.95rem; line-height: 1.2; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .steps--4 { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .steps--5 { grid-template-columns: repeat(5, 1fr); gap: 36px; }
  /* Strzałka między krokami: sam kształt — krótki, grubszy trzonek i szeroki, wypełniony grot */
  .steps--4 .step:not(:last-child)::after,
  .steps--5 .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -31px; transform: translateY(-50%);
    width: 26px; height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%2355a8ff'%3E%3Crect x='1' y='9.5' width='9' height='5' rx='1.2'/%3E%3Cpath d='M9.5 2.5 23 12 9.5 21.5z' stroke='%2355a8ff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
    filter: drop-shadow(0 0 6px rgba(23, 97, 234, 0.75));
  }
}


/* ── O mnie: zdjęcie jako tło całej sekcji (zgodnie z projektem) ───── */
/* O mnie: sekcja jak pozostałe (wyśrodkowany nagłówek); zdjęcie w szerokości treści jako tło, z wygaszonymi krawędziami */
.about__panel {
  position: relative; isolation: isolate;
  display: flex; align-items: center; min-height: 280px;
  padding: 0;
}
.about__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
/* Panorama szeroka jak w projekcie: postać ~52% szerokości, między tekstem a kartą */
.about__bg img { position: absolute; bottom: 0; left: -48%; width: 149%; max-width: none; height: auto; }
.about__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 11, 26, 0.92) 0%, rgba(5, 11, 26, 0.75) 40%, rgba(5, 11, 26, 0.1) 70%, rgba(5, 11, 26, 0) 100%);
}
.about__grid { display: grid; gap: 24px; align-items: center; width: 100%; }
.about__copy p { color: #c3cee6; max-width: 66ch; font-size: 0.9rem; }
.about__copy p:last-child { margin-bottom: 0; }
/* Tabela kompetencji (prawa kolumna "O mnie") */
.skills {
  padding: 20px 22px;
  background: rgba(8, 20, 49, 0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.skills h3 { margin: 0 0 6px; }
.skills dl { margin: 0; }
.skills__row { padding: 11px 0; border-bottom: 1px solid rgba(86, 144, 255, 0.14); }
.skills__row:last-child { border-bottom: 0; padding-bottom: 2px; }
.skills dt { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.skills dt .icon { width: 18px; height: 18px; }
.skills dd { margin: 0 0 0 28px; font-size: 0.86rem; line-height: 1.5; color: #d3dff5; }
@media (min-width: 960px) { .about__grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; } }
/* Mobile i tablet (jedna kolumna): bez zdjęcia w tle "O mnie" — postać ma sens tylko między kolumnami na desktopie */
@media (max-width: 959px) {
  .about__bg { display: none; }
}

/* ── FAQ ───────────────────────────────────────────── */
.faq { display: grid; gap: 8px; align-items: start; }
.faq__col { display: grid; gap: 8px; align-content: start; }
@media (min-width: 800px) { .faq { grid-template-columns: 1fr 1fr; gap: 14px; } }
.faq__item { background: var(--surface); border: 1px solid rgba(86, 144, 255, 0.2); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq__item[open] { border-color: var(--border-strong); background: var(--surface-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; font-size: 0.93rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #fff; }
.faq__icon { color: var(--accent-text); transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 18px 18px; color: var(--text-muted); font-size: 0.875rem; }

/* ── CTA ───────────────────────────────────────────── */
.cta-band {
  display: grid; gap: 20px; align-items: center;
  padding: clamp(18px, 2.6vw, 30px);
  background: linear-gradient(120deg, rgba(23, 97, 234, 0.34), rgba(10, 24, 58, 0.7));
  border: 1px solid var(--border-strong); border-radius: 18px;
}
.cta-band h2 { font-size: clamp(1rem, 0.82rem + 0.7vw, 1.3rem); margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: var(--text-muted); }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; gap: 40px; } }

/* ── Kontakt i formularz ───────────────────────────── */
/* Kontakt: wyśrodkowany nagłówek; boxy z informacjami po lewej, formularz po prawej */
.contact { display: grid; gap: 16px; }
.contact__aside { display: grid; gap: 12px; align-content: start; }
.contact__aside .card:hover { transform: none; box-shadow: none; }
.contact__aside .card h3 { margin-bottom: 10px; }
.mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-muted); font-size: 0.875rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; } }
.contact__details { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact__details li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.contact__details .icon { width: 22px; height: 22px; color: var(--accent-text); }
.contact__details a { color: var(--text); font-weight: 500; }
.contact__form {
  padding: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(180deg, rgba(14, 33, 76, 0.75), rgba(8, 20, 49, 0.75));
  border: 1px solid var(--border); border-radius: 18px;
}

.form__grid { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text); /* 16px: iOS nie przybliża pola przy fokusie */
  background: rgba(5, 11, 26, 0.85);
  border: 1px solid #4a6fb5; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aebbd8 50%), linear-gradient(135deg, #aebbd8 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: #0b1b40; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #7d8db0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #6f93d6; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { margin: 6px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.field__error { margin: 6px 0 0; font-size: 0.82rem; color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }

.form__status { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 500; }
.form__status:empty { display: none; }
.form__status--ok { color: #d6fbe9; background: rgba(82, 224, 161, 0.12); border-color: rgba(82, 224, 161, 0.5); }
.form__status--error { color: #ffe1e1; background: rgba(255, 143, 143, 0.1); border-color: rgba(255, 143, 143, 0.5); }
.form__privacy { margin: 14px 0 0; font-size: 0.7rem; color: var(--text-muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Treść prawna i listy ──────────────────────────── */
.prose { column-width: 520px; column-gap: 56px; }
.prose__block { break-inside: avoid; margin-bottom: 22px; }
.prose h2 { font-size: 1.02rem; margin: 0 0 0.45em; }
.prose p { color: var(--text-muted); font-size: 0.9rem; }
.prose p:last-child { margin-bottom: 0; }

/* ── Stopka ────────────────────────────────────────── */
.site-footer { margin-top: 0; padding: clamp(28px, 3.6vw, 44px) 0 22px; background: var(--bg); border-top: 1px solid rgba(86, 144, 255, 0.16); }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__brand p { margin: 14px 0 0; max-width: 36ch; color: var(--text-muted); font-size: 0.85rem; }
.site-footer__title { font-family: "Montserrat", var(--font); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; font-weight: 600; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.site-footer__contact .icon { color: var(--accent-text); width: 20px; height: 20px; }
.site-footer__contact a { color: var(--text); }
.site-footer__legal a { color: var(--text-muted); text-underline-offset: 3px; }
.site-footer__legal a:hover { color: var(--text); }
.site-footer__legal { margin: 24px 0 0; padding-top: 16px; text-align: center; border-top: 1px solid rgba(86, 144, 255, 0.12); font-size: 0.85rem; color: var(--text-muted); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr; gap: 56px; } }

/* ── Ruch ograniczony ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}

/* Przycisk "wróć na górę" (klasę is-visible ustawia skrypt).
   Telefon: mały, przy prawej krawędzi z marginesem na pasek gestów, pokazywany tylko przy przewijaniu w górę.
   Desktop: większy, widoczny po zjechaniu w dół. Pod nakładką menu mobilnego (z-index niższy niż menu). */
.to-top {
  display: grid; place-items: center; position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 35;
  width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong);
  background: rgba(10, 17, 36, 0.86); color: var(--accent-text); cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(23, 97, 234, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s, border-color .2s, color .2s;
}
.to-top.is-visible { opacity: 0.92; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); border-color: var(--accent-hover); color: #fff; }
.to-top .icon { width: 21px; height: 21px; }
@media (min-width: 960px) {
  .to-top { right: 28px; bottom: 28px; width: 48px; height: 48px; }
  .to-top.is-visible { opacity: 1; }
  .to-top .icon { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .to-top { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Panel z listą zadań ("drobne zmiany"): okno z paskiem tytułowym, numerowane wiersze z odhaczonymi polami */
.tasklist { max-width: 820px; margin-inline: auto; background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px -24px rgba(23, 97, 234, 0.45); }
.tasklist__bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: rgba(86, 144, 255, 0.08); border-bottom: 1px solid var(--border); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--text-muted); }
.tasklist__dots { display: inline-flex; gap: 6px; }
.tasklist__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(110, 170, 255, 0.35); }
.tasklist__title { flex: 1; }
.tasklist__count { color: var(--accent-text); }
.tasklist__list { list-style: none; margin: 0; padding: 0; counter-reset: job; }
.tasklist__list li { counter-increment: job; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; font-size: 0.9rem; line-height: 1.45; color: var(--text); border-bottom: 1px solid rgba(86, 144, 255, 0.14); transition: background-color .2s; }
.tasklist__list li:last-child { border-bottom: 0; }
.tasklist__list li:hover { background: rgba(86, 144, 255, 0.07); }
.tasklist__list li::before { content: counter(job, decimal-leading-zero); flex: none; width: 1.6em; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--text-muted); opacity: 0.8; }
.tasklist__check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(23, 97, 234, 0.22); border: 1px solid var(--border-strong); color: var(--accent-text); }
.tasklist__check .icon { width: 14px; height: 14px; }

/* Drzewko "Na start": węzeł po lewej, od niego linia do pnia, z pnia gałęzie do każdej pozycji */
.tree { --line: rgba(110, 170, 255, 0.45); --spine: 27px; --pl: 64px; display: grid; gap: 0; max-width: 980px; margin-inline: auto; }
.tree__root { display: flex; align-items: center; gap: 14px; }
.tree__node { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #2b74ff, #1761ea); color: #fff; box-shadow: 0 0 0 6px rgba(23, 97, 234, 0.18), 0 10px 30px -8px rgba(23, 97, 234, 0.7); }
.tree__node .icon { width: 26px; height: 26px; }
.tree__label { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.tree__link { display: block; width: 2px; height: 26px; margin-left: calc(var(--spine) - 1px); background: var(--line); }
.tree__branches { list-style: none; margin: 0; padding: 0; }
.tree__branches li { position: relative; padding: 7px 0 7px var(--pl); }
.tree__branches li::before { content: ""; position: absolute; left: calc(var(--spine) - 1px); top: 0; bottom: 0; width: 2px; background: var(--line); }
.tree__branches li:first-child::before { top: 50%; }
.tree__branches li:last-child::before { bottom: 50%; }
.tree__branches li::after { content: ""; position: absolute; left: calc(var(--spine) - 1px); top: 50%; width: calc(var(--pl) - var(--spine) + 1px); height: 2px; margin-top: -1px; background: var(--line); }
.tree__item { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-size: 0.95rem; line-height: 1.45; color: var(--text); background: var(--surface); border: 1px solid rgba(86, 144, 255, 0.2); border-radius: var(--radius); transition: border-color .25s, background-color .25s; }
.tree__item::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 3px rgba(85, 168, 255, 0.2); }
.tree__item:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.tree__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(23, 97, 234, 0.2); border: 1px solid var(--border); color: var(--accent-text); }
.tree__icon .icon { width: 18px; height: 18px; }
@media (max-width: 899px) { .tree__branches li:first-child::before { top: 0; } }
@media (min-width: 900px) {
  .tree { --spine: 0px; --pl: 56px; grid-template-columns: auto 64px 1fr; align-items: center; }
  .tree__link { width: auto; height: 2px; margin: 0; }
  .tree__root { flex-direction: column; text-align: center; padding-right: 4px; }
  .tree__node { width: 72px; height: 72px; }
  .tree__node .icon { width: 32px; height: 32px; }
}

/* "Podejście": grafika w stylu edytora kodu (diff + cofnięcie) obok zasad z dużymi numerami */
.approach { display: grid; gap: 32px; max-width: 1040px; margin-inline: auto; align-items: center; }
@media (min-width: 900px) { .approach { grid-template-columns: 5fr 6fr; gap: 56px; } }
.codewin { position: relative; background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -28px rgba(23, 97, 234, 0.55); }
.codewin__bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: rgba(86, 144, 255, 0.08); border-bottom: 1px solid var(--border); }
.codewin__branch { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--accent-text); }
.codewin__branch .icon { width: 14px; height: 14px; }
.codewin__body { padding: 14px 0 22px; }
.codeline { display: flex; align-items: center; gap: 10px; padding: 6px 16px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.75rem; }
.codeline__no { flex: none; width: 1.4em; text-align: right; color: var(--text-muted); opacity: 0.55; }
.codeline__sign { flex: none; width: 0.8em; text-align: center; font-weight: 700; }
.codeline code { white-space: pre; font: inherit; color: #d6e2ff; }
.tk-k { color: #c792ea; }
.tk-s { color: #a5e075; }
.tk-v { color: #82aaff; }
.tk-f { color: #ffcb6b; }
.tk-c { color: #7a8bb5; font-style: italic; }
.codeline--add { background: rgba(61, 220, 151, 0.1); }
.codeline--add .codeline__sign { color: #3ddc97; }
.codeline--del { background: rgba(255, 107, 129, 0.1); }
.codeline--del .codeline__sign { color: #ff6b81; }
.codewin__undo { position: absolute; right: 16px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2b74ff, #1761ea); color: #fff; box-shadow: 0 8px 22px -6px rgba(23, 97, 234, 0.8); }
.codewin__undo .icon { width: 20px; height: 20px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: rule; }
.principles li { counter-increment: rule; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 16px; padding: 18px 0; font-size: 1rem; line-height: 1.55; color: var(--text); border-bottom: 1px solid rgba(86, 144, 255, 0.16); }
.principles li:first-child { padding-top: 0; }
.principles li:last-child { border-bottom: 0; padding-bottom: 0; }
.principles li::before { content: counter(rule, decimal-leading-zero); font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 2rem; line-height: 1; background: linear-gradient(135deg, #45b6ff, #1761ea); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Integracje: schemat przepływu danych obok listy automatyzacji */
.auto { display: grid; gap: 28px; max-width: 1040px; margin-inline: auto; align-items: center; }
@media (min-width: 900px) { .auto { grid-template-columns: 6fr 5fr; gap: 48px; } }
.flow { padding: 34px 20px 28px; background: radial-gradient(ellipse at 50% 0%, rgba(23, 97, 234, 0.28), rgba(14, 33, 76, 0.7) 70%); border: 1px solid var(--border); border-radius: var(--radius); }
.flow__row { display: flex; align-items: center; justify-content: center; gap: 0; }
.flow__node { display: grid; justify-items: center; gap: 10px; flex: none; }
.flow__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(23, 97, 234, 0.22); border: 1px solid var(--border-strong); color: var(--accent-text); }
.flow__icon .icon { width: 28px; height: 28px; }
.flow__node--hub .flow__icon { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #2b74ff, #1761ea); color: #fff; box-shadow: 0 0 0 7px rgba(23, 97, 234, 0.2), 0 12px 34px -8px rgba(23, 97, 234, 0.8); }
.flow__node--hub .flow__icon .icon { width: 34px; height: 34px; }
.flow__label { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.flow__pipe { flex: 1 1 36px; min-width: 24px; max-width: 110px; height: 3px; margin: 0 6px 26px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--accent-text) 0 10px, transparent 10px 18px); background-size: 36px 3px; animation: flow-run 1.2s linear infinite; }
.flow__pipe--back { animation-direction: reverse; }
@keyframes flow-run { to { background-position: 36px 0; } }
@media (prefers-reduced-motion: reduce) { .flow__pipe { animation: none; } }
.auto__list { list-style: none; margin: 0; padding: 0; }
.auto__list li { display: flex; align-items: center; gap: 16px; padding: 13px 0; font-size: 0.97rem; line-height: 1.45; color: var(--text); border-bottom: 1px solid rgba(86, 144, 255, 0.16); }
.auto__list li:first-child { padding-top: 0; }
.auto__list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Integracje: "Od czego zacząć" jako rząd kafelków z ikonami i strzałkami */
.brief { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; gap: 16px; }
@media (min-width: 640px) { .brief { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .brief { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.brief li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 24px 18px 22px; text-align: center; background: var(--surface); border: 1px solid rgba(86, 144, 255, 0.2); border-radius: var(--radius); font-size: 0.88rem; line-height: 1.45; color: var(--text-muted); }
.brief li strong { font-family: "Montserrat", sans-serif; font-size: 1.05rem; color: var(--text); }
.brief__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: rgba(23, 97, 234, 0.22); border: 1px solid var(--border-strong); color: var(--accent-text); }
.brief__icon .icon { width: 24px; height: 24px; }
.brief__optional { border-style: dashed !important; }
@media (min-width: 1000px) { .brief li:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--accent-text); opacity: 0.85; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; } }

/* Zakres (dla agencji): mapa myśli, węzeł pośrodku, gałęzie na obie strony */
.mind { --line: rgba(110, 170, 255, 0.45); display: grid; gap: 0; max-width: 1120px; margin-inline: auto; }
.mind__hub { margin-bottom: 26px; }
.mind__core { display: flex; align-items: center; gap: 14px; }
.mind__name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.mind__list { list-style: none; margin: 0; padding: 0; --spine: 27px; }
.mind__list li { position: relative; padding: 7px 0 7px 64px; }
.mind__list li::before { content: ""; position: absolute; left: calc(var(--spine) - 1px); top: 0; bottom: 0; width: 2px; background: var(--line); }
.mind__list li::after { content: ""; position: absolute; left: calc(var(--spine) - 1px); top: 50%; width: 38px; height: 2px; margin-top: -1px; background: var(--line); }
.mind__list--l li:first-child::before { top: -26px; }
.mind__list--l li:last-child::before { bottom: 0; }
.mind__list--r li:first-child::before { top: 0; }
.mind__list--r li:last-child::before { bottom: 50%; }
.mind__item { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid rgba(86, 144, 255, 0.2); border-radius: var(--radius); transition: border-color .25s, background-color .25s; }
.mind__item::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 3px rgba(85, 168, 255, 0.2); }
.mind__item:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.mind__item h3 { margin: 0 0 4px; font-size: 1rem; }
.mind__item p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--text-muted); }
.mind__item--link h3 a { color: inherit; text-decoration: none; }
.mind__item--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.mind__item--link:hover h3 a { color: var(--accent-text); }
.mind__item--link:focus-within { border-color: var(--border-strong); }
@media (min-width: 960px) {
  .mind { grid-template-columns: 1fr 220px 1fr; align-items: stretch; }
  .mind__hub { order: 1; margin-bottom: 0; position: relative; display: grid; align-items: center; justify-items: center; }
  .mind__hub::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
  .mind__core { position: relative; flex-direction: column; gap: 0; }
  .mind__core .tree__node { width: 96px; height: 96px; }
  .mind__core .tree__node .icon { width: 42px; height: 42px; }
  .mind__name { position: absolute; top: 100%; margin-top: 14px; white-space: nowrap; }
  .mind__list { display: grid; grid-template-rows: repeat(3, 1fr); align-items: center; }
  .mind__list--l { order: 0; }
  .mind__list--r { order: 2; }
  .mind__list li { padding: 8px 0; }
  .mind__list--l li { padding-right: 56px; padding-left: 0; }
  .mind__list--r li { padding-left: 56px; }
  .mind__list--l li::before, .mind__list--l li:first-child::before, .mind__list--l li:last-child::before { left: auto; right: -1px; }
  .mind__list--l li::after { left: auto; right: 0; width: 56px; }
  .mind__list--r li::before { left: -1px; }
  .mind__list--r li::after { left: 0; width: 56px; }
  .mind__list--l li:first-child::before { top: 50%; bottom: 0; }
  .mind__list--l li:last-child::before { top: 0; bottom: 50%; }
  .mind__list--r li:first-child::before { top: 50%; bottom: 0; }
  .mind__list--r li:last-child::before { top: 0; bottom: 50%; }
  .mind__list--l .mind__item::before { left: auto; right: -5px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vat-note { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 1040px; margin: 0 auto 18px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); text-align: center; }
.vat-note .icon { width: 17px; height: 17px; flex: none; color: var(--accent-text); }

/* Cennik: czynniki ceny jako lista z liniami (bez boxów) */
.factors { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; column-gap: 56px; }
.factors li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(86, 144, 255, 0.16); }
.factors li:first-child { padding-top: 0; }
.factors li:last-child { border-bottom: 0; padding-bottom: 0; }
.factors h3 { margin: 0 0 4px; font-size: 1rem; }
.factors p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
@media (min-width: 760px) {
  .factors { grid-template-columns: 1fr 1fr; }
  .factors li:nth-child(2) { padding-top: 0; }
  .factors li:nth-last-child(2) { border-bottom: 0; padding-bottom: 0; }
}
