/* ==========================================================================
   OmniLingua — arkusz stylów wspólny dla wszystkich podstron
   Spis: 1. Zmienne  2. Reset  3. Typografia  4. Layout  5. Przyciski
         6. Nagłówek/menu  7. Hero  8. Kafelki  9. Sekcje  10. Formularz
         11. Stopka  12. Animacje  13. Responsywność
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Zmienne — cały motyw sterowany jest stąd
   -------------------------------------------------------------------------- */
:root {
  /* Paleta wyprowadzona z logo: kula ziemska (błękit + zieleń) w wieńcu flag */
  --navy-900: #071426;
  --navy-800: #0c2039;
  --navy-700: #123055;
  --blue-600: #1d5fd6;
  --blue-500: #2f7bf0;
  --blue-100: #e3edfd;
  --green-600: #0f9a72;
  --green-500: #16b988;
  --green-100: #dcf6ed;
  --amber-500: #f2802a;
  --amber-600: #dd6a12;

  /* Role kolorystyczne — tryb jasny */
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --border: #e2e8f2;
  --border-strong: #cbd6e6;
  --text: #0d1f36;
  --text-muted: #56688a;
  --brand: var(--blue-600);
  --brand-ink: #ffffff;
  --accent: var(--green-600);
  --cta: var(--amber-600);
  --cta-ink: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.72);

  /* Odstępy */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 48px;
  --s-6: 80px;

  /* Kształt i głębia */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(9, 26, 51, 0.06), 0 2px 8px rgba(9, 26, 51, 0.04);
  --shadow-2: 0 4px 12px rgba(9, 26, 51, 0.08), 0 12px 28px rgba(9, 26, 51, 0.07);
  --shadow-3: 0 8px 20px rgba(9, 26, 51, 0.1), 0 28px 60px rgba(9, 26, 51, 0.12);

  /* Ruch */
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --dur: 0.32s;

  --container: 1160px;
  --header-h: 74px;
}

/* Tryb ciemny — automatyczny… */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060f1d;
    --bg-alt: #0a1729;
    --surface: #0e1c31;
    --surface-2: #122340;
    --border: #1d3252;
    --border-strong: #2b4670;
    --text: #eaf1fb;
    --text-muted: #9db0cd;
    --brand: var(--blue-500);
    --accent: var(--green-500);
    --cta: var(--amber-500);
    --header-bg: rgba(6, 15, 29, 0.72);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.55);
  }
}

/* …i wymuszony przełącznikiem w menu */
:root[data-theme="dark"] {
  --bg: #060f1d;
  --bg-alt: #0a1729;
  --surface: #0e1c31;
  --surface-2: #122340;
  --border: #1d3252;
  --border-strong: #2b4670;
  --text: #eaf1fb;
  --text-muted: #9db0cd;
  --brand: var(--blue-500);
  --accent: var(--green-500);
  --cta: var(--amber-500);
  --header-bg: rgba(6, 15, 29, 0.72);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

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

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Typografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.28rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.42vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.text-gradient {
  background: linear-gradient(100deg, var(--brand), var(--accent) 62%, var(--cta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 200;
  padding: var(--s-2) var(--s-3);
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s-3); }

.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;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 68ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head p { margin-top: var(--s-3); }

.divider { height: 1px; background: var(--border); border: 0; }

/* --------------------------------------------------------------------------
   5. Przyciski
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.8em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9875rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--cta), var(--amber-500));
  color: var(--cta-ink);
  box-shadow: 0 6px 18px rgba(221, 106, 18, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(221, 106, 18, 0.36); }

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 95, 214, 0.26);
}
.btn-brand:hover { box-shadow: 0 10px 26px rgba(29, 95, 214, 0.34); }

.btn-outline {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--brand); }

.btn-lg { padding: 0.95em 1.9em; font-size: 1.03rem; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

/* --------------------------------------------------------------------------
   6. Nagłówek i menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: var(--s-4); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.945rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-link.is-active { color: var(--text); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 4px 5px 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-1);
  color: var(--text-muted);
  user-select: none;
}

.language-switcher__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand);
}

.language-switcher__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 46px);
  height: 32px;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  overflow: hidden;
}

.language-switcher__indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 46px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 4px 12px rgba(29, 95, 214, 0.26);
  transition: transform 0.28s var(--ease);
}

:root[data-language="en"] .language-switcher__indicator { transform: translateX(46px); }

.language-switcher__button {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.language-switcher__button:hover { color: var(--text); transform: translateY(-1px); }
.language-switcher__button.is-active { color: #fff; }
.language-switcher__button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

/* Na bardzo szerokich ekranach przełącznik wykorzystuje wolne miejsce
   przy prawej krawędzi nagłówka — zgodnie z układem desktopowym. */
@media (min-width: 1500px) {
  .site-header .language-switcher {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
  }
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); transform: rotate(12deg); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.hamburger span + span { margin-top: 5px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px);
}

/* Warstwa dekoracyjna — miękkie plamy światła w kolorach logo */
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.34;
}
.hero-aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation: float 18s var(--ease) infinite alternate;
}
.hero-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; left: -6%; top: 4%;
  background: radial-gradient(circle, var(--blue-500), transparent 68%);
}
.hero-aurora span:nth-child(2) {
  width: 38vw; height: 38vw; right: 2%; top: -4%;
  background: radial-gradient(circle, var(--green-500), transparent 68%);
  animation-duration: 22s; animation-delay: -6s;
}
.hero-aurora span:nth-child(3) {
  width: 30vw; height: 30vw; right: 22%; bottom: 2%;
  background: radial-gradient(circle, var(--amber-500), transparent 70%);
  animation-duration: 26s; animation-delay: -12s;
}
:root[data-theme="dark"] .hero-aurora { opacity: 0.3; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.14); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3rem); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.badge b { color: var(--text); font-weight: 600; }
.badge .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
  color: #fff;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin-top: var(--s-5);
  display: grid;
  gap: 10px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.hero-points svg { color: var(--accent); flex-shrink: 0; }

/* Wizualizacja hero — orbita języków wokół logo */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  opacity: 0.7;
  animation: spin 44s linear infinite;
}
.orbit--2 { inset: 15%; animation-duration: 32s; animation-direction: reverse; }
.orbit--3 { inset: 30%; animation-duration: 24s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-core {
  position: relative;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-3);
  display: grid;
  place-items: center;
}
.hero-core img { width: 100%; height: 100%; object-fit: cover; }

.orbit-chip {
  position: absolute;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  animation: bob 6s var(--ease) infinite alternate;
}
.orbit-chip:nth-of-type(1) { top: 4%;  left: 50%; transform: translateX(-50%); }
.orbit-chip:nth-of-type(2) { top: 33%; right: -2%; animation-delay: -1.5s; }
.orbit-chip:nth-of-type(3) { bottom: 8%; right: 8%; animation-delay: -3s; }
.orbit-chip:nth-of-type(4) { bottom: 2%; left: 12%; animation-delay: -4.5s; }
.orbit-chip:nth-of-type(5) { top: 26%; left: -4%; animation-delay: -2.2s; }

@keyframes bob {
  from { transform: translateY(-5px); }
  to   { transform: translateY(5px); }
}
.orbit-chip:nth-of-type(1) { animation-name: bob-center; }
@keyframes bob-center {
  from { transform: translate(-50%, -5px); }
  to   { transform: translate(-50%, 5px); }
}

/* Nagłówek podstrony */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 84px) clamp(32px, 4vw, 56px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { margin-top: var(--s-4); }

.breadcrumbs {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.breadcrumbs a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   8. Kafelki
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

/* Gradientowa obwódka pojawiająca się na hover */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand), var(--accent) 55%, var(--cta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 1;
  pointer-events: none;
}

/* Delikatna poświata w tle kafelka */
.tile::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  top: -110px; right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  z-index: -1;
}

.tile:hover,
.tile:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
}
.tile:hover::before, .tile:focus-within::before { opacity: 1; }
.tile:hover::after,  .tile:focus-within::after  { opacity: 0.14; transform: scale(1.15); }

.tile-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-100), var(--green-100));
  color: var(--blue-600);
  transition: transform 0.35s var(--ease);
}
:root[data-theme="dark"] .tile-icon {
  background: linear-gradient(135deg, rgba(47, 123, 240, 0.18), rgba(22, 185, 136, 0.16));
  color: var(--blue-500);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile-icon {
    background: linear-gradient(135deg, rgba(47, 123, 240, 0.18), rgba(22, 185, 136, 0.16));
    color: var(--blue-500);
  }
}
.tile:hover .tile-icon { transform: scale(1.1) rotate(-5deg); }

.tile h3 { letter-spacing: -0.015em; }
.tile p { color: var(--text-muted); font-size: 0.96rem; }

.tile-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
}
.tile-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.tile:hover .tile-link::after { transform: translateX(5px); }
/* Cały kafelek klikalny, gdy zawiera link „stretched” */
.tile-link.stretched::before { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Kafelek-link do pobrania dokumentu (PDF) */
.doc-card { cursor: pointer; }
.doc-card .tile-link::after { content: "↓"; }
.doc-card:hover .tile-link::after { transform: translateY(3px); }
.doc-card .doc-size {
  margin-left: 6px;
  font-weight: 500;
  color: var(--text-muted);
}

.tile--flat { background: var(--surface-2); }
.tile--flat::after { display: none; }

/* Numerowane kroki / atuty */
.tile-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Sekcje treściowe
   -------------------------------------------------------------------------- */

/* Placeholder na zdjęcia — celowy, nie „brakujący obrazek” */
.media-ph {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--s-2);
  min-height: 240px;
  padding: var(--s-4);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(47, 123, 240, 0.13), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(22, 185, 136, 0.13), transparent 60%),
    var(--surface-2);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.86rem;
  overflow: hidden;
}
.media-ph svg { color: var(--brand); opacity: 0.75; }
.media-ph--tall { min-height: 380px; }
.media-ph--wide { aspect-ratio: 16 / 9; min-height: 0; }

/* Wycinka PNG (przezroczyste tło) — miękka plama zamiast ramki */
.cutout {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  margin: 0;
  padding: clamp(10px, 2.4vw, 24px);
}
.cutout::before {
  content: "";
  position: absolute;
  inset: 8% 2% 6%;
  border-radius: 46% 54% 50% 50% / 50% 44% 56% 50%;
  background:
    radial-gradient(120% 100% at 20% 12%, rgba(47, 123, 240, 0.22), transparent 62%),
    radial-gradient(110% 100% at 85% 88%, rgba(22, 185, 136, 0.22), transparent 62%),
    var(--surface-2);
}
.cutout__img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(9, 26, 51, 0.22));
}

/* Zdjęcia w treści — wspólna oprawa */
.photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  object-fit: cover;
}
/* Kadr panoramiczny — zamiennik .media-ph--wide */
.photo--wide { aspect-ratio: 16 / 9; }
/* Portret: kadr 3:4 z twarzą w górnej części kadru */
.photo--portrait {
  aspect-ratio: 3 / 4;
  object-position: 50% 18%;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* Partnerzy — chipy tekstowe zamiast logotypów */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { transform: translateY(-3px); color: var(--text); border-color: var(--brand); }

/* Opinie klientów indywidualnych */
.individual-reviews {
  position: relative;
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--border);
}

.individual-reviews::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(180px, 34vw);
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: translateX(-50%);
}

.individual-reviews__head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}
.individual-reviews__head h3 { margin-top: 8px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.individual-reviews__head p { margin-top: 12px; color: var(--text-muted); font-size: 1.02rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.3vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(29, 95, 214, 0.08), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.review-card::after {
  content: "“";
  position: absolute;
  right: 16px;
  bottom: -24px;
  color: color-mix(in srgb, var(--brand) 10%, transparent);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
  box-shadow: var(--shadow-2);
}

.review-card__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.review-card__header h4 { font-size: 0.98rem; line-height: 1.25; }
.review-source { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.78rem; }

.review-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.24);
}
.review-avatar--blue { background: #5472bb; }
.review-avatar--brown { background: #725044; }
.review-avatar--green { background: #43863a; }
.review-avatar--forest { background: #24652a; }
.review-avatar--orange { background: #b56a32; }
.review-avatar--pink { background: #b95391; }
.review-avatar--lime { background: #80ad4b; }
.review-avatar--violet { background: #7257ad; }
.review-avatar--purple { background: #8059b7; }
.review-avatar--navy { background: #5570b4; }
.review-avatar--sand { background: #b58a56; }

.review-platform {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 0.78rem;
  font-weight: 850;
}
.review-platform--google { color: #4285f4; }
.review-platform--facebook { color: #fff; background: #1877f2; font-family: Arial, sans-serif; font-size: 1rem; }

.review-rating,
.review-recommendation {
  position: relative;
  z-index: 1;
  min-height: 24px;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 750;
}
.review-rating { color: #f6b700; letter-spacing: 0.08em; }
.review-recommendation { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.review-recommendation span { color: #ef476f; }

.review-card blockquote {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.68;
}

@media (max-width: 940px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 20px; }
}

/* Pasek liczb */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.stat {
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  text-align: center;
}
.stat-value {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: var(--s-2); font-size: 0.9rem; color: var(--text-muted); }

/* Oś czasu */
.timeline { position: relative; list-style: none; padding: 0; margin-top: var(--s-5); }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--brand), var(--accent), var(--cta));
  opacity: 0.5;
}
.timeline li {
  position: relative;
  padding-left: 46px;
  padding-bottom: clamp(24px, 3vw, 36px);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline .year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline p { color: var(--text-muted); margin-top: var(--s-1); }

/* Karty cenowe */
.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.price-card.is-featured { border-color: var(--brand); box-shadow: var(--shadow-2); }
.price-tag {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.price-tag small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.list-check { list-style: none; padding: 0; display: grid; gap: 10px; }
.list-check li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-100);
  box-shadow: inset 0 0 0 1px rgba(15, 154, 114, 0.35);
}
.list-check li::after {
  content: "";
  position: absolute;
  left: 6px; top: 0.68em;
  width: 5px; height: 9px;
  border: solid var(--green-600);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
:root[data-theme="dark"] .list-check li::before { background: rgba(22, 185, 136, 0.16); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .list-check li::before { background: rgba(22, 185, 136, 0.16); }
}

/* Panel CTA */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-2);
}
.cta-panel::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  top: -220px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-500), transparent 68%);
  opacity: 0.35;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, 0.82); max-width: 56ch; margin: var(--s-3) auto 0; }
.cta-panel .btn-row { justify-content: center; margin-top: var(--s-4); }
.cta-panel .btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.cta-panel .btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* Karty kontaktowe */
.contact-card {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.contact-card .tile-icon { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; }
.contact-card h3 { font-size: 1rem; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: 0.95rem; word-break: break-word; }
.contact-card a:hover { color: var(--brand); }

/* Treść dokumentu (polityka prywatności) */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); margin-top: var(--s-5); }
.prose h3 { margin-top: var(--s-4); }
.prose p, .prose li { color: var(--text-muted); }
.prose p, .prose ul, .prose ol { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 6px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.note {
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   10. Formularz
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s-3);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 123, 240, 0.2);
}
.field .error {
  font-size: 0.82rem;
  color: #d8492f;
  min-height: 1.1em;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #d8492f; }
.field.is-invalid .error { opacity: 1; }

.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.87rem; color: var(--text-muted); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--brand); }
.field-check a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  display: none;
  gap: 10px;
  align-items: center;
  padding: var(--s-3);
  border-radius: var(--radius-sm);
  background: var(--green-100);
  color: #0b5c45;
  font-size: 0.93rem;
  font-weight: 500;
}
.form-status.is-visible { display: flex; }
:root[data-theme="dark"] .form-status { background: rgba(22, 185, 136, 0.16); color: var(--green-500); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-status { background: rgba(22, 185, 136, 0.16); color: var(--green-500); }
}

/* --------------------------------------------------------------------------
   11. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: clamp(40px, 5vw, 64px) var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.footer-about p { color: var(--text-muted); font-size: 0.93rem; margin-top: var(--s-3); max-width: 42ch; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.93rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--brand); }

.socials { display: flex; gap: 10px; margin-top: var(--s-4); }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.socials a:hover { transform: translateY(-3px); color: var(--brand); border-color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Animacje wejścia
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Osoby preferujące ograniczony ruch nie dostają żadnych animacji */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   13. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; }
  .hero-points { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); display: grid; }
}

@media (max-width: 1020px) {
  .hamburger { display: grid; }

  /* Menu mobilne — pełny ekran, wysuwane */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-5);
    padding: var(--s-6) var(--s-4) var(--s-5);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-list { flex-direction: column; gap: var(--s-2); width: 100%; }
  .nav-list li { width: 100%; }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1.2rem;
    border-radius: var(--radius);
  }
  .nav-link.is-active::after { bottom: 6px; }

  .nav-actions { flex-direction: column-reverse; width: 100%; gap: var(--s-3); }
  .nav-actions .btn { width: 100%; padding: 1em; }
  .language-switcher { width: 100%; max-width: 220px; justify-content: center; }

  body.nav-open { overflow: hidden; }
  /* Hamburger musi zostać nad warstwą menu */
  .hamburger { position: relative; z-index: 130; }
  .site-header.is-open .brand { position: relative; z-index: 130; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: 0.62rem; }
  .btn-row .btn { width: 100%; }
  .orbit-chip { font-size: 0.74rem; padding: 6px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .cta-panel, .hero-aurora { display: none; }
  body { background: #fff; color: #000; }
}
