/* ============================================================
   Senrix.pl — main.css
   Fluid typography, full responsiveness, WCAG contrast
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── ZMIENNE ────────────────────────────────────────────────── */
:root {
  /* ── TŁO (wg spec: zewnętrzne → centrum) ──────────────────── */
  --bg-outer:       #06090F;   /* krawędzie — najciemniejsze */
  --bg-mid:         #0F1626;   /* przejście */
  --bg-center:      #18243A;   /* centrum — jaśniejsze ale nadal nocne */

  /* ── KAFELKI (wg spec: #273556 normal, #2F3F66 hover) ──────── */
  --kafel-bg:       #273556;
  --kafel-bg-hover: #2F3F66;

  /* ── GLOW NIEBIESKI — kafelki usług i project-card ─────────── */
  --glow-primary:   rgba(124, 140, 255, 0.28);   /* statyczny — wyraźny neon */
  --glow-secondary: rgba(154, 124, 255, 0.18);
  --glow-hover-p:   rgba(100, 120, 255, 0.48);   /* hover — neon ale nie za obszerny */
  --glow-hover-s:   rgba(140, 100, 255, 0.32);

  /* ── GLOW FIOLETOWY — section-island ────────────────────────── */
  --glow-violet:    rgba(154, 100, 255, 0.25);   /* statyczny fioletowy neon */
  --glow-violet-2:  rgba(180, 120, 255, 0.16);
  --glow-violet-h:  rgba(160, 80,  255, 0.44);   /* hover — neon ale nie zalewa */
  --glow-violet-h2: rgba(200, 100, 255, 0.28);

  /* ── TEKST W KAFELKACH (wg spec) ────────────────────────────── */
  --kafel-title:    #F2F6FF;   /* tytuł — natychmiast czytelny */
  --kafel-desc:     #C2CCE0;   /* opis — czytelny bez wysiłku */
  --kafel-meta:     #9AA6BF;   /* drobne elementy */

  /* ── IKONA W KAFELKU ─────────────────────────────────────────── */
  --kafel-icon:     #7C8CFF;   /* zgodny z glow */

  /* ── SECTION ISLAND (pozostaje jasna wyspa dla treści) ────────── */
  --island-bg:      #bab7c8;   /* dla section-island, project-card itp. */
  --island-bg-alt:  #b0adb8;
  --island-surface: #c2bfce;

  /* ── POŚWIATA DLA WYSP (section-island, project-card) ───────── */
  --glow-base:      rgba(80,65,155,.14);
  --glow-ring:      rgba(70,55,140,.08);
  --glow-hover:     rgba(90,75,170,.24);

  /* ── TEKST NA CIEMNYM TLE ────────────────────────────────────── */
  --text-light:     #cac6e0;
  --text-muted:     #8a879e;

  /* ── TEKST NA JASNYCH WYSPACH ────────────────────────────────── */
  --text-dark:      #1e1c2e;
  --text-dark-soft: #383552;
  --text-dark-muted:#524f68;

  /* ── AKCENT ──────────────────────────────────────────────────── */
  --accent:         #6e63b0;
  --accent-light:   #9b90cc;
  --ornament:       #8a6e38;

  /* Czcionki */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Fluid spacing */
  --sp-xs: clamp(.25rem, .5vw,  .4rem);
  --sp-sm: clamp(.5rem,  1vw,   .75rem);
  --sp-md: clamp(.9rem,  2vw,   1.25rem);
  --sp-lg: clamp(1.5rem, 3.5vw, 2.5rem);
  --sp-xl: clamp(2.5rem, 6vw,   4.5rem);

  /* Radius */
  --r-sm: 4px; --r-md: 10px; --r-lg: 18px;

  /* Animacje */
  --ease:    cubic-bezier(.16,1,.3,1);
  --ease-in: cubic-bezier(.7,0,.84,0);
  --t-fast:  140ms; --t-mid: 280ms; --t-slow: 520ms;

  --noise-opacity: .062;   /* widoczne ale czytelne — grubsze ziarno potrzebuje nieco więcej opacity */
  font-size: clamp(16.5px, .5vw + 14.9px, 17.5px);  /* +1.5pt vs poprzednie 15-16px */
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;  /* zapobiega auto-powiększaniu tekstu na iOS przy rotacji */
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body); font-weight: 400;
  color: var(--text-light); background: var(--bg-outer);
  min-height: 100vh; overflow-x: hidden;
  line-height: 1.6;
  /* iOS Safari — poprawne renderowanie safe area (notch/home indicator) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-font-smoothing: antialiased;    /* lepsze renderowanie czcionek na macOS/iOS */
  -moz-osx-font-smoothing: grayscale;
}

/* Safari — input/button reset */
input, button, textarea, select { font-family: inherit; }
/* iOS — usuwa niebieskie podświetlenie przy tapnięciu */
button, a { -webkit-tap-highlight-color: transparent; }


/* Warstwa 1: gradient — zewnętrzne najciemniejsze, centrum jaśniejsze */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(
    ellipse 90% 80% at 50% 42%,
    var(--bg-center) 0%,    /* centrum #18243A */
    var(--bg-mid)    45%,   /* przejście #0F1626 */
    var(--bg-outer)  100%   /* krawędzie #06090F */
  );
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--noise-opacity);
  /* baseFrequency 0.55 — grubsze, wyraźniejsze ziarno; numOctaves 2 — miękkie */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  /* screen — rozjaśnia zamiast zaciemniać, zachowuje czytelność tekstu */
  mix-blend-mode: screen;
}
#page-wrapper { position: relative; z-index: 2; }

/* ─── SKIP LINK ──────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--accent); color: #fff;
  padding: .45rem 1rem; border-radius: var(--r-sm);
  font-size: clamp(.82rem, 1.2vw, .9rem);
  transition: top var(--t-fast);
}
.skip-link:focus { top: .75rem; }

/* ─── PRELOADER ──────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9000;
  background: #06090F;   /* jawna wartość — nie var() żeby działało zanim CSS custom props się załadują */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  animation: preloaderOut .5s ease-in 0.9s forwards;
}
@keyframes preloaderOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}
#preloader.done { display: none !important; pointer-events: none !important; }
.preloader__logo {
  font-family: var(--font-display); font-size: clamp(1.1rem,2vw,1.4rem);
  font-weight: 300; letter-spacing: .28em; color: var(--text-muted); opacity: .55;
}
.preloader__spinner {
  width: 30px; height: 30px; border: 1.5px solid var(--text-muted);
  border-top-color: var(--accent-light); border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOP BAR ────────────────────────────────────────────────── */
.top-bar {
  position: sticky; top: 0; z-index: 200;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .55rem var(--sp-md);
  background: rgba(6,6,14,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(110,99,176,.10);
  /* Safari sticky fix */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.top-bar__side { min-width: 0; }
.top-bar__center {
  display: flex; flex-direction: column; align-items: center;
  gap: .05rem; position: relative;
}
.top-bar__brand {
  font-family: var(--font-display);
  font-size: clamp(.82rem, 1.3vw, 1rem);
  letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none;
  /* Złoty gradient — delikatny metaliczny połysk */
  background: linear-gradient(
    135deg,
    #c8a84b 0%,
    #f0d080 30%,
    #e8c060 55%,
    #b89040 75%,
    #d4aa55 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .82;
  transition: opacity var(--t-fast);
}
.top-bar__brand:hover { opacity: 1; }

/* Przycisk Menu */
.menu-button {
  display: flex; align-items: center; gap: .45rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(.85rem, 1.2vw, 1rem);
  font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-light); padding: .25rem .6rem;
  transition: color var(--t-fast);
}
.menu-button:hover,
.menu-button[aria-expanded="true"] { color: var(--accent-light); }

/* Ornamenty */
.menu-ornament {
  display: inline-flex; align-items: center; gap: 1px;
  color: var(--ornament); opacity: .5;
  font-size: .65rem; line-height: 1; user-select: none;
  transition: opacity var(--t-fast);
}
.menu-button:hover .menu-ornament,
.menu-button[aria-expanded="true"] .menu-ornament { opacity: .9; }
.menu-ornament--left::before  { content: '❧'; }
.menu-ornament--left::after   { content: '─'; opacity: .55; font-size: .5rem; }
.menu-ornament--right::before { content: '─'; opacity: .55; font-size: .5rem; }
.menu-ornament--right::after  { content: '❧'; display: inline-block; transform: scaleX(-1); }

/* ─── MENU DROPDOWN ──────────────────────────────────────────── */
.menu-dropdown {
  position: absolute; top: calc(100% + 5px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(10,10,24,.97); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(110,99,176,.14); border-radius: var(--r-md);
  padding: .55rem .8rem; z-index: 300;
  box-shadow: 0 14px 40px rgba(0,0,0,.65);
  opacity: 0; visibility: hidden; pointer-events: none; white-space: nowrap;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility var(--t-mid);
}
.menu-dropdown::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg); width: 8px; height: 8px;
  background: rgba(10,10,24,.97);
  border-left: 1px solid rgba(110,99,176,.14); border-top: 1px solid rgba(110,99,176,.14);
}
.menu-dropdown.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* Linki w jednym rzędzie */
.menu-dropdown__nav { list-style: none; display: flex; align-items: flex-start; gap: 0; }
.menu-dropdown__item { position: relative; }
.menu-dropdown__item + .menu-dropdown__item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(110,99,176,.15);
}
.menu-dropdown__link {
  display: block; padding: .5rem 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300; letter-spacing: .08em; color: var(--text-light);
  text-decoration: none; opacity: .85;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.menu-dropdown__link:hover { opacity: 1; color: var(--accent-light); }

/* Stagger wejście */
.menu-dropdown.open .menu-dropdown__item { animation: dropIn var(--t-mid) var(--ease) both; }
.menu-dropdown.open .menu-dropdown__item:nth-child(1) { animation-delay: 20ms; }
.menu-dropdown.open .menu-dropdown__item:nth-child(2) { animation-delay: 55ms; }
.menu-dropdown.open .menu-dropdown__item:nth-child(3) { animation-delay: 90ms; }
.menu-dropdown.open .menu-dropdown__item:nth-child(4) { animation-delay: 125ms; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Submenu "Oferta" */
.menu-dropdown__sub {
  list-style: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(10,10,24,.97); border: 1px solid rgba(110,99,176,.12);
  border-radius: var(--r-sm); padding: .5rem 0 .35rem; min-width: 195px;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast), visibility var(--t-fast);
}
.menu-dropdown__item--has-sub::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.menu-dropdown__item--has-sub:hover .menu-dropdown__sub,
.menu-dropdown__item--has-sub:focus-within .menu-dropdown__sub,
.menu-dropdown__sub:hover { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-dropdown__sub li a {
  display: block; padding: .35rem 1.2rem;
  font-family: var(--font-body);
  font-size: clamp(.82rem, 1.1vw, .9rem);
  color: var(--text-muted); text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.menu-dropdown__sub li a:hover { color: var(--accent-light); padding-left: 1.5rem; }

/* ─── TOP BAR CONTROLS ───────────────────────────────────────── */
.top-bar__controls { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.lang-switcher, .currency-switcher { display: flex; align-items: center; gap: .18rem; }
.lang-btn, .currency-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(.75rem, 1vw, .85rem);
  font-weight: 400; letter-spacing: .05em; color: var(--text-muted);
  text-decoration: none; padding: .22rem .3rem; border-radius: 3px;
  transition: color var(--t-fast); white-space: nowrap;
}
.lang-btn:hover, .currency-btn:hover { color: var(--text-light); }
.lang-btn.active, .currency-btn.active { color: var(--accent-light); font-weight: 500; }
.controls-separator { color: var(--text-muted); opacity: .28; font-size: .72rem; }

/* ─── BREADCRUMBS ────────────────────────────────────────────── */
.breadcrumbs {
  padding: .45rem var(--sp-md);
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  font-size: clamp(.72rem, 1vw, .8rem); color: var(--text-muted); letter-spacing: .04em;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--text-light); }
.breadcrumbs__sep { opacity: .28; }
.breadcrumbs__current { color: var(--text-light); opacity: .7; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  /* Zmniejszone padding-top — treść bliżej menu */
  padding: var(--sp-md) var(--sp-md) var(--sp-sm);
  min-height: 28vh; position: relative;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.12; letter-spacing: .02em;
  color: var(--text-light); margin-bottom: .55rem;
}
.hero__title .typed-cursor {
  display: inline-block; width: 2px; height: .82em;
  background: var(--accent-light); vertical-align: middle;
  margin-left: 2px; animation: blink .9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  font-weight: 400; color: var(--text-light); opacity: .72; /* jaśniejszy niż text-muted */
  letter-spacing: .03em;
  margin-bottom: 2rem; line-height: 1.68; max-width: 540px;
}
.hero__skip {
  position: absolute; top: 50%; right: var(--sp-md);
  background: none; border: none; cursor: pointer;
  font-size: clamp(.65rem, .9vw, .72rem); color: var(--text-muted);
  letter-spacing: .1em; text-transform: uppercase; opacity: .32; transition: opacity var(--t-fast);
}
.hero__skip:hover { opacity: .8; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-body);
  font-size: clamp(.8rem, 1.1vw, .9rem);
  font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: .7rem 1.6rem;
  border-radius: var(--r-sm); border: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 3px 14px rgba(110,99,176,.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(110,99,176,.42); }
.btn--outline { background: transparent; color: var(--text-light); border: 1px solid rgba(110,99,176,.28); }
.btn--outline:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-light); }

/* ─── KAFELKI ────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1rem; padding: 0 var(--sp-md) var(--sp-lg);
  max-width: 680px; margin: 0 auto;
}

.kafel {
  /* Kolor wg spec + delikatny gradient pionowy (góra jaśniej, dół ciemniej) */
  background: linear-gradient(
    180deg,
    #2d3d62 0%,      /* #273556 + ~8% jaśniejszy */
    #273556 60%,     /* kafel-bg z spec */
    #212e4a 100%     /* #273556 − ~8% ciemniejszy */
  );
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem 1.35rem;
  min-height: 165px;
  text-decoration: none;
  color: var(--kafel-title);  /* domyślny kolor tekstu = tytuł */
  position: relative;
  /* Brak border — tylko cień i glow wg spec */
  box-shadow:
    /* Cień — lekko niebieskawy, miękki */
    0 8px 32px rgba(6, 12, 30, 0.65),
    0 2px 8px  rgba(6, 12, 30, 0.45),
    /* Glow — przesunięty w dół-lewo, nieregularny */
    -8px 12px 55px var(--glow-primary),
     4px  8px 40px var(--glow-secondary);
  opacity: 0;
}

/* Animacja wlatywania — kierunki z rogów */
.kafel:nth-child(1) { transform: translate(-55px,-35px) rotate(-2.5deg); }
.kafel:nth-child(2) { transform: translate( 55px,-35px) rotate( 2.5deg); }
.kafel:nth-child(3) { transform: translate(-55px, 35px) rotate( 2deg);   }
.kafel:nth-child(4) { transform: translate( 55px, 35px) rotate(-2deg);   }

.kafel.visible {
  opacity: 1; transform: translate(0,0) rotate(0deg);
  transition:
    opacity .52s var(--ease),
    transform .52s var(--ease),
    box-shadow var(--t-mid) var(--ease),
    background var(--t-mid);
}
.kafel:nth-child(1).visible { transition-delay:   0ms; }
.kafel:nth-child(2).visible { transition-delay:  95ms; }
.kafel:nth-child(3).visible { transition-delay: 190ms; }
.kafel:nth-child(4).visible { transition-delay: 285ms; }

/* Hover — rozjaśnienie + mocniejszy glow + uniesienie */
.kafel:hover {
  background: linear-gradient(
    180deg,
    #364870 0%,      /* #2F3F66 + ~8% jaśniejszy */
    #2F3F66 60%,     /* kafel-bg-hover z spec */
    #283759 100%     /* #2F3F66 − ~8% ciemniejszy */
  );
  transform: translateY(-5px) scale(1.016);
  box-shadow:
    0 14px 40px rgba(6, 12, 30, 0.70),
    0  4px 12px rgba(6, 12, 30, 0.50),
    -10px 16px 65px var(--glow-hover-p),
      6px 10px 50px var(--glow-hover-s);
}

/* Tekst w kafelkach — kolory wg spec */
.kafel__icon {
  width: 28px; height: 28px; margin-bottom: .85rem;
  color: var(--kafel-icon); opacity: .82;  /* ikona = glow color */
}
.kafel__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--kafel-title);   /* #F2F6FF — natychmiast czytelny */
  margin-bottom: .4rem; line-height: 1.15;
}
.kafel__desc {
  font-family: var(--font-body);
  font-size: clamp(.84rem, 1.15vw, .94rem);
  font-weight: 400;
  color: var(--kafel-desc);    /* #C2CCE0 — czytelny bez wysiłku */
  line-height: 1.58;
}
.kafel__arrow {
  position: absolute; bottom: 1rem; right: 1.1rem;
  width: 14px; height: 14px;
  color: var(--kafel-icon); opacity: .32;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.kafel:hover .kafel__arrow { opacity: .85; transform: translate(2px,-2px); }

/* ─── SECTION TITLE + DIVIDER ────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300; color: var(--text-light); text-align: center;
  margin-bottom: .5rem; letter-spacing: .05em;
}
.section-title--dark { color: var(--kafel-title); }
.divider { width: 34px; height: 1px; background: var(--accent); opacity: .35; margin: .6rem auto 1.6rem; }

/* ─── SECTION ISLAND — fioletowy wariant kafelka ────────────── */
/*
 * Ten sam styl glow i nasycenie co kafelki główne,
 * ale paleta przesunięta na fiolet: #2A2456 base, #332D6A hover
 */
.section-island {
  background: linear-gradient(
    180deg,
    #302865 0%,
    #2A2456 60%,
    #221e47 100%
  );
  border-radius: var(--r-lg);
  padding: var(--sp-md); margin: 0 auto var(--sp-md); max-width: 760px;
  color: var(--kafel-desc);
  box-shadow:
    0 8px 32px rgba(6,8,24,.65),
    0 2px 8px  rgba(6,8,24,.45),
    -6px 10px 60px var(--glow-violet),
     5px  6px 45px var(--glow-violet-2);
  transition: box-shadow var(--t-mid);
}
.section-island:hover {
  box-shadow:
    0 10px 36px rgba(6,8,24,.70),
    0 3px 10px  rgba(6,8,24,.50),
    -8px 14px 75px var(--glow-violet-h),
     7px  8px 55px var(--glow-violet-h2);
}
.section-island h2, .section-island h3 {
  font-family: var(--font-display); font-weight: 300;
  color: var(--kafel-title);  /* #F2F6FF */
}
.section-island h2 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin-bottom: .5rem; }
.section-island h3 { font-size: clamp(.95rem, 1.4vw, 1.1rem); margin-bottom: .3rem; }
.section-island p  {
  font-size: clamp(.86rem, 1.2vw, .96rem); font-weight: 400;
  line-height: 1.72; color: var(--kafel-desc); margin-bottom: .65rem;
}

/* ─── PROCESS STEPS ──────────────────────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; margin-top: 1.4rem; }
@media (max-width:600px) { .process-steps { grid-template-columns:1fr; } }
.process-step__num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 300;
  color: var(--kafel-icon); opacity: .5; line-height: 1; margin-bottom: .4rem;
}
.process-step h3 {
  font-size: clamp(.92rem, 1.3vw, 1.05rem);
  font-weight: 600; color: var(--kafel-title); margin-bottom: .28rem;
}
.process-step p {
  font-size: clamp(.84rem, 1.15vw, .94rem);
  font-weight: 400; color: var(--kafel-desc); line-height: 1.6;
}

/* ─── VIDEO GALLERY ──────────────────────────────────────────── */
.video-gallery { max-width: 760px; margin: 0 auto; }
.video-gallery__player {
  position: relative; max-height: 360px; aspect-ratio: 16/9;
  background: #08091a; border-radius: var(--r-md); overflow: hidden; cursor: pointer; margin-bottom: .7rem;
}
.video-gallery__thumb-placeholder { width:100%; height:100%; object-fit:cover; display:block; }
.video-gallery__play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); transition: background var(--t-fast);
}
.video-gallery__play-btn:hover { background: rgba(0,0,0,.18); }
.video-gallery__play-icon {
  width: 52px; height: 52px; background: rgba(255,255,255,.88);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-fast);
}
.video-gallery__play-btn:hover .video-gallery__play-icon { transform: scale(1.08); }
.video-gallery__iframe { position: absolute; inset: 0; width:100%; height:100%; border:none; display:none; }
.video-gallery__iframe.active { display: block; }
.video-gallery__thumbnails {
  display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.video-thumb {
  flex-shrink: 0; width: 108px; height: 62px; border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; border: 2px solid transparent; background: none; padding: 0;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.video-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.video-thumb--active { border-color: var(--accent); transform: scale(1.04); }

/* ─── PROJEKTY ───────────────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 1.1rem; padding: 0 var(--sp-md) var(--sp-lg); max-width: 1100px; margin: 0 auto;
}
/* Project-card = taki sam styl jak kafelki usług na stronie głównej */
.project-card {
  background: linear-gradient(180deg, #2d3d62 0%, #273556 60%, #212e4a 100%);
  border-radius: var(--r-md); overflow: hidden;
  text-decoration: none; color: var(--kafel-title);
  box-shadow:
    0 8px 32px rgba(6,12,30,.65),
    0 2px 8px  rgba(6,12,30,.45),
    -8px 12px 60px var(--glow-primary),
     4px  8px 45px var(--glow-secondary);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid), background var(--t-mid);
  opacity: 0; transform: translateY(20px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover {
  background: linear-gradient(180deg, #364870 0%, #2F3F66 60%, #283759 100%);
  transform: translateY(-5px);
  box-shadow:
    0 14px 40px rgba(6,12,30,.70),
    0  4px 12px rgba(6,12,30,.50),
    -10px 16px 75px var(--glow-hover-p),
      6px 10px 55px var(--glow-hover-s);
}
/* Obraz górny — ciemniejszy overlay dla spójności */
.project-card__img {
  width:100%; height:160px; object-fit:cover; display:block;
  background: #1e2a45;
  opacity: .88;
}
.project-card__body { padding: 1.1rem 1.3rem 1.3rem; }
.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem,1.5vw,1.15rem); font-weight: 600;
  color: var(--kafel-title); margin-bottom: .28rem;
}
.project-card__meta  {
  font-size: clamp(.72rem,.95vw,.8rem);
  color: var(--kafel-meta); letter-spacing: .07em; margin-bottom: .5rem;
}
.project-card__desc  {
  font-size: clamp(.8rem,1.1vw,.88rem);
  color: var(--kafel-desc); line-height: 1.55; font-weight: 400;
}

/* ─── KONTAKT ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
@media (max-width:640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info__item {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
  font-size: clamp(.86rem, 1.25vw, .96rem); font-weight: 400;
  color: var(--kafel-desc);
}
.contact-info__item a {
  color: var(--kafel-title); text-decoration: none; font-weight: 500;
  transition: color var(--t-fast);
}
.contact-info__item a:hover { color: var(--kafel-icon); }
.contact-info__icon { width: 17px; height: 17px; color: var(--kafel-icon); flex-shrink: 0; }

/* ─── FORMULARZ ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: clamp(.76rem,1vw,.84rem); font-weight: 500;
  letter-spacing: .06em; color: var(--kafel-meta); margin-bottom: .32rem; text-transform: uppercase;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(124,140,255,.2); border-radius: var(--r-sm);
  padding: .65rem .85rem; font-family: var(--font-body);
  font-size: clamp(.86rem,1.2vw,.96rem); font-weight: 400;
  color: var(--kafel-title); outline: none; -webkit-appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 44px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--kafel-meta); opacity: .7; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--kafel-icon);
  box-shadow: 0 0 0 2px rgba(124,140,255,.18);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group select option { background: #2a2456; color: var(--kafel-title); }
.form__honeypot { display: none !important; }

/* ─── CENY ───────────────────────────────────────────────────── */
.prices-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr));
  gap: .9rem; margin-top: 1.3rem;
}
/* Price-card — ciemniejszy wariant wewnątrz section-island */
.price-card {
  background: rgba(0,0,0,.22);
  border-radius: var(--r-md); padding: 1.1rem;
  border: 1px solid rgba(124,140,255,.12);
}
.price-card__label  {
  font-size: clamp(.72rem,.95vw,.82rem);
  color: var(--kafel-meta); margin-bottom: .35rem;
}
.price-card__value  {
  font-family: var(--font-display);
  font-size: clamp(1.3rem,2.2vw,1.6rem); font-weight: 300;
  color: var(--kafel-title);
}
.price-card__approx {
  /* font-size: clamp(.65rem,.9vw,.72rem); */
  font-size: clamp(.45rem,.7vw,.52rem);
  color: var(--kafel-meta); margin-top: .22rem;
}
.price-approx-note {
  display: none; text-align: center;
  /* font-size: clamp(.7rem,.95vw,.78rem); */
  font-size: clamp(.5rem,.75vw,.58rem);
  color: var(--kafel-meta); margin-bottom: .9rem;
}

/* ─── STOPKA ─────────────────────────────────────────────────── */
footer { position: relative; z-index: 2; text-align: center; padding: var(--sp-lg) var(--sp-md); border-top: 1px solid rgba(110,99,176,.08); }
.footer__copy {
  font-family: var(--font-display);
  font-size: clamp(.84rem,1.2vw,.96rem); font-weight: 300;
  letter-spacing: .12em; color: var(--text-light); opacity: .62; margin-bottom: .6rem;
  /* Flex żeby | był dokładnie na środku */
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.footer__sep {
  /* Separator bez dodatkowego letter-spacing — czysto centralny */
  letter-spacing: 0; padding: 0 .5em; opacity: .45;
}
.footer__links { display: flex; justify-content: center; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a {
  font-size: clamp(.76rem,1vw,.84rem); font-weight: 400; letter-spacing: .07em;
  color: var(--text-muted); text-decoration: none; opacity: .7;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.footer__links a:hover { opacity: 1; color: var(--text-light); }

/* ─── STATYCZNA STRONA ───────────────────────────────────────── */
.static-page { max-width: 680px; margin: 0 auto; padding: var(--sp-lg) var(--sp-md); }
.static-page h1 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2rem); font-weight: 300; margin-bottom: 1.3rem; color: var(--text-light); }
.static-page h2 { font-family: var(--font-display); font-size: clamp(1rem,1.6vw,1.2rem); font-weight: 400; margin: 1.3rem 0 .4rem; color: var(--text-light); }
.static-page p  { font-size: clamp(.84rem,1.2vw,.94rem); line-height: 1.75; color: var(--text-muted); margin-bottom: .65rem; }

/* ─── NAGŁÓWEK PODSTRONY USŁUGI ──────────────────────────────── */
.service-header { padding: var(--sp-lg) var(--sp-md) 0; max-width: 760px; margin: 0 auto; }
.service-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300; color: var(--text-light);
  margin-bottom: .5rem; line-height: 1.08;
  text-shadow: 0 0 40px rgba(155,144,204,.22);
}
.service-header p {
  font-size: clamp(.92rem, 1.5vw, 1.06rem);
  font-weight: 400; color: var(--text-light); opacity: .7; /* jaśniejszy niż text-muted */
  line-height: 1.75; max-width: 540px; margin-bottom: var(--sp-md);
}

/* ─── REVEAL ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── UTILITY ────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-md); }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSYWNOŚĆ
   ═══════════════════════════════════════════════════════════════ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .services-grid { max-width: 100%; }
}

/* Małe tablety (≤ 768px) — top-bar bez lewej kolumny, kontrolki w jednej linii */
@media (max-width: 768px) {
  .top-bar {
    padding: .4rem var(--sp-sm);
    grid-template-columns: 0 auto 1fr;
  }
  .top-bar__side { display: none; }
  .top-bar__controls {
    gap: .25rem;
    flex-wrap: nowrap;
    overflow: visible;
    justify-content: flex-end;
  }
  .hero { min-height: 28vh; padding-top: var(--sp-lg); }
  .services-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .section-island { margin-left: var(--sp-md); margin-right: var(--sp-md); }
  .process-steps { grid-template-columns: 1fr; gap: 1rem; }

  @media (hover: none) {
    .kafel:hover        { transform: none; box-shadow: 0 6px 22px rgba(0,0,0,.62), 0 0 26px var(--glow-base); }
    .btn--primary:hover { transform: none; }
    .btn--outline:hover { transform: none; }
  }
}

/* Telefony pionowo (≤ 520px) — top-bar 2 wiersze */
@media (max-width: 520px) {
  /* Top-bar przechodzi na flex column — branding nad kontrolkami */
  .top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .35rem var(--sp-sm) .4rem;
    grid-template-columns: unset;   /* reset grida */
  }
  .top-bar__side   { display: none; }
  .top-bar__center { width: 100%; justify-content: center; }
  .top-bar__controls {
    width: 100%;
    justify-content: center;
    gap: .18rem;
    flex-wrap: nowrap;
    overflow: visible;
  }

  /* Mniejsze przyciski żeby wszystko mieściło się w jednym rzędzie */
  .lang-btn, .currency-btn {
    padding: .12rem .2rem;
    font-size: .66rem;
    min-height: 28px;
    min-width: 0;
  }
  .a11y-pct { font-size: .6rem; min-width: 2.2em; text-align: center; }
  .controls-separator { font-size: .52rem; }

  /* Menu dropdown */
  .menu-dropdown {
    position: fixed;
    top: 72px;
    left: 50% !important;
    transform: translateX(-50%) translateY(-8px) !important;
    width: 92vw; max-width: 340px;
    padding: .6rem .4rem;
    white-space: normal;
  }
  .menu-dropdown.open { transform: translateX(-50%) translateY(0) !important; }
  .menu-dropdown::before { display: none; }
  .menu-dropdown__nav { flex-direction: column; gap: 0; }
  .menu-dropdown__item + .menu-dropdown__item::before { display: none; }
  .menu-dropdown__link {
    padding: .65rem 1rem; font-size: 1.1rem;
    border-bottom: 1px solid rgba(110,99,176,.08);
  }
  .menu-dropdown__sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; background: transparent; border: none;
    box-shadow: none; padding: 0 0 .4rem 1rem; min-width: auto;
  }
  .menu-dropdown__item--has-sub::after { display: none; }
  .menu-dropdown__sub li a { font-size: .95rem; padding: .3rem .8rem; }

  /* Kafelki — 1 kolumna */
  .services-grid { grid-template-columns: 1fr; max-width: 400px; }

  /* Sekcje */
  .section-island { margin-left: var(--sp-sm); margin-right: var(--sp-sm); }

  /* CTA przyciski */
  .btn { padding: .82rem 1.8rem; font-size: .86rem; min-height: 48px; }

  /* Video thumbnails */
  .video-thumb { width: 86px; height: 50px; }

  /* Projekty — 1 kolumna */
  .projects-grid { grid-template-columns: 1fr; }

  /* Breadcrumbs */
  .breadcrumbs { font-size: .78rem; }
}

/* Bardzo małe (≤ 380px) — ekstra kompresja */
@media (max-width: 380px) {
  .lang-btn, .currency-btn {
    padding: .1rem .15rem;
    font-size: .6rem;
  }
  .a11y-pct { min-width: 1.9em; }
}

/* ─── DOSTĘPNOŚĆ — INLINE ────────────────────────────────────── */
/* Przyciski A−, A+, ☀ w tym samym stylu co lang-btn */
.a11y-inline {
  display: flex; align-items: center; gap: .18rem;
}
/* Procent czcionki — styl jak controls-separator ale trochę jaśniejszy */
.a11y-pct {
  font-size: .68rem; color: var(--text-muted); opacity: .55;
  min-width: 2.8em; text-align: center; pointer-events: none;
}
/* Przycisk ☀ — bez dodatkowego stylu, dziedziczy lang-btn */
.a11y-sun-btn { letter-spacing: 0; }

/* Wrapper dla ☀ i panelu */
.a11y-wrapper { position: relative; display: flex; align-items: center; }

/* Panel jasności — wysuwa się pod ☀ */
.a11y-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: rgba(10,10,28,.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(110,99,176,.18);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  z-index: 400;
  box-shadow: 0 12px 36px rgba(0,0,0,.65);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease),
              visibility var(--t-mid);
}
.a11y-panel.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.a11y-panel__label {
  font-family: var(--font-body); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); opacity: .6;
  margin-bottom: .5rem; display: block;
}
.a11y-panel__row {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .8rem;
}
.a11y-panel__row:last-child { margin-bottom: 0; }
.a11y-panel__sep {
  height: 1px; background: rgba(110,99,176,.12); margin: .7rem 0;
}

/* Suwak jasności */
.a11y-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: linear-gradient(to right,
    rgba(255,255,255,.15) 0%,      /* lewo = ciemniej */
    rgba(124,140,255,.35) 50%,     /* środek = neutralne */
    rgba(255,240,180,.35) 100%     /* prawo = jaśniej */
  );
  border-radius: 2px; outline: none; cursor: pointer; margin-top: .3rem;
}
.a11y-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-light); cursor: pointer;
  box-shadow: 0 0 6px rgba(124,140,255,.5);
}
.a11y-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-light); cursor: pointer; border: none;
}

/* Przełącznik gestów (toggle switch) */
.a11y-toggle-switch {
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center;
}
.a11y-toggle-switch__track {
  display: block; width: 34px; height: 18px;
  background: rgba(124,140,255,.25);
  border: 1px solid rgba(124,140,255,.35);
  border-radius: 9px; position: relative;
  transition: background var(--t-fast);
}
.a11y-toggle-switch[aria-pressed="true"] .a11y-toggle-switch__track {
  background: rgba(124,140,255,.5);
  border-color: rgba(124,140,255,.7);
}
.a11y-toggle-switch__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-muted);
  transition: left var(--t-fast), background var(--t-fast);
}
.a11y-toggle-switch[aria-pressed="true"] .a11y-toggle-switch__thumb {
  left: 18px; background: var(--accent-light);
}

/* Hint pod przełącznikiem */
.a11y-hint {
  font-size: .62rem; color: var(--text-muted); opacity: .5;
  line-height: 1.4; margin-top: .3rem; margin-bottom: 0;
}

/* Elementy widoczne tylko na touch — ukryte domyślnie */
.a11y-touch-only { display: none; }

/* Overlay jasności — nakrywa całą stronę */
#brightness-overlay {
  position: fixed; inset: 0; z-index: 7500;
  pointer-events: none;
  opacity: 0;             /* domyślnie niewidoczny — JS ustawia opacity i background */
  transition: background .2s, opacity .2s;
}

/* Na mobile panel po lewej stronie */
@media (max-width: 480px) {
  .a11y-panel { right: auto; left: 50%; transform: translateX(-50%) translateY(-4px); width: 200px; }
  .a11y-panel.open { transform: translateX(-50%) translateY(0); }
  /* Pokaż elementy touch-only */
  .a11y-touch-only { display: flex; }
  .a11y-hint.a11y-touch-only { display: block; }
}

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, calc(100vw - 2 * var(--sp-md)));
  z-index: 8000;
  background: linear-gradient(160deg, #1e1a3a 0%, #16142e 100%);
  border: 1px solid rgba(124,140,255,.22);
  border-radius: var(--r-lg);
  box-shadow:
    0 16px 48px rgba(0,0,0,.72),
    0 0 60px rgba(124,140,255,.12);
  animation: cookieSlideIn .42s var(--ease) both;
}
@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner--hidden { display: none !important; }
.cookie-banner__inner { padding: var(--sp-md); }

.cookie-banner__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--kafel-title); margin-bottom: .45rem; letter-spacing: .04em;
}
.cookie-banner__intro {
  font-size: clamp(.76rem, 1.1vw, .84rem); font-weight: 400;
  color: var(--kafel-desc); line-height: 1.65; margin-bottom: .85rem;
}

/* Details / summary */
.cookie-details { margin-bottom: .85rem; }
.cookie-details__summary {
  font-size: .74rem; color: var(--accent-light); cursor: pointer;
  letter-spacing: .06em; list-style: none;
  display: inline-flex; align-items: center; gap: .28rem;
  user-select: none; transition: opacity var(--t-fast);
}
.cookie-details__summary::-webkit-details-marker { display: none; }
.cookie-details__summary:hover { opacity: .72; }
.cookie-details__summary::after {
  content: '▾'; font-size: .62rem; transition: transform var(--t-fast);
  display: inline-block;
}
.cookie-details[open] .cookie-details__summary::after { transform: rotate(180deg); }
.cookie-details__body { margin-top: .7rem; display: flex; flex-direction: column; gap: .7rem; }

/* Grupy */
.cookie-group {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,140,255,.10);
  border-radius: var(--r-md); padding: .7rem .85rem;
}
/* Grupa informacyjna (Google Fonts) — lekko inna ramka */
.cookie-group--info {
  border-color: rgba(200,180,100,.12);
  background: rgba(200,180,60,.03);
}
.cookie-group__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .3rem; gap: .5rem;
}
.cookie-group__name {
  font-size: .78rem; font-weight: 500;
  color: var(--kafel-title); letter-spacing: .03em; flex: 1;
}
.cookie-group__desc {
  font-size: .72rem; color: var(--kafel-desc); line-height: 1.55; margin-bottom: .5rem;
}
.cookie-group__link a {
  font-size: .66rem; color: var(--accent-light); text-decoration: none; opacity: .75;
  transition: opacity var(--t-fast);
}
.cookie-group__link a:hover { opacity: 1; }

/* Odznaki */
.cookie-badge--always {
  font-size: .68rem; color: #6dbf7e; opacity: .85; flex-shrink: 0;
  letter-spacing: .04em;
}
.cookie-badge--info {
  font-size: .82rem; color: #c8a84b; opacity: .75; flex-shrink: 0;
}

/* Tabela */
.cookie-table {
  width: 100%; border-collapse: collapse;
  font-size: .67rem; color: var(--kafel-meta); margin-bottom: .5rem;
}
.cookie-table th {
  text-align: left; font-weight: 500; color: var(--kafel-desc);
  padding: .22rem .38rem; border-bottom: 1px solid rgba(124,140,255,.10);
  font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
}
.cookie-table td { padding: .2rem .38rem; vertical-align: top; }
.cookie-table td code {
  font-family: monospace; font-size: .88em;
  color: var(--accent-light); opacity: .85;
}
.cookie-table tr:nth-child(even) td { background: rgba(255,255,255,.025); }

/* Toggle YouTube */
.cookie-toggle { cursor: pointer; display: flex; align-items: center; flex-shrink: 0; }
.cookie-toggle__input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle__track {
  display: block; width: 38px; height: 21px;
  background: rgba(124,140,255,.15);
  border: 1px solid rgba(124,140,255,.28);
  border-radius: 11px; position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.cookie-toggle__input:checked ~ .cookie-toggle__track {
  background: rgba(109,190,126,.35);
  border-color: rgba(109,190,126,.6);
}
.cookie-toggle__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--text-muted);
  transition: left var(--t-fast), background var(--t-fast);
  pointer-events: none;
}
.cookie-toggle__input:checked ~ .cookie-toggle__track .cookie-toggle__thumb {
  left: 20px; background: #6dbf7e;
}

/* Przyciski */
.cookie-banner__actions {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-top: .1rem; pointer-events: auto;
}
.cookie-btn {
  font-family: var(--font-body); font-size: .73rem; font-weight: 400;
  letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
  border-radius: var(--r-sm); padding: .55rem 1.1rem;
  transition: opacity var(--t-fast), transform var(--t-fast);
  text-decoration: none; white-space: nowrap; border: none;
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  pointer-events: auto; position: relative; z-index: 1;
}
.cookie-btn:hover { opacity: .82; transform: translateY(-1px); }
.cookie-btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(110,99,176,.35);
}
.cookie-btn__sub {
  font-size: .58rem; opacity: .72; text-transform: none; letter-spacing: .03em;
  font-weight: 300;
}
.cookie-btn--secondary {
  background: transparent; color: var(--kafel-desc);
  border: 1px solid rgba(124,140,255,.25);
}
.cookie-btn--secondary:hover { border-color: rgba(124,140,255,.5); color: var(--kafel-title); }
.cookie-btn--link {
  background: none; border: none; color: var(--text-muted);
  font-size: .72rem; padding: .45rem .5rem; opacity: .7;
  text-transform: none; letter-spacing: .04em; cursor: pointer;
  pointer-events: auto;   /* wyraźnie — żeby nie dziedziczyć none z nadrzędnego */
  position: relative; z-index: 1;
}
.cookie-btn--link:hover { opacity: 1; color: var(--text-light); transform: none; }

/* Mobile */
@media (max-width: 540px) {
  .cookie-banner {
    bottom: 0; width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .cookie-banner__actions { flex-direction: column; align-items: stretch; }
  .cookie-btn { text-align: center; }
  .cookie-table { font-size: .61rem; }
  .cookie-table th { font-size: .58rem; }
}

/* ─── GALERIA PROJEKTÓW ─────────────────────────────────────── */
.proj-gallery { display: flex; flex-direction: column; gap: 1.1rem; }

.proj-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  min-width: 0;          /* zapobiega wychodzeniu poza grid */
  background: linear-gradient(180deg, #2d3d62 0%, #273556 60%, #212e4a 100%);
  border-radius: var(--r-md);
  padding: 1rem;
  box-shadow:
    0 8px 32px rgba(6,12,30,.65),
    0 2px 8px  rgba(6,12,30,.45),
    -8px 12px 60px var(--glow-primary),
     4px  8px 45px var(--glow-secondary);
  transition: box-shadow var(--t-mid);
}
.proj-item:hover {
  box-shadow:
    0 12px 40px rgba(6,12,30,.72),
    -10px 14px 70px var(--glow-hover-p),
     6px  10px 55px var(--glow-hover-s);
}

/* Lewa kolumna — zdjęcia */
.proj-item__images {
  display: flex; flex-direction: column; gap: .45rem;
  min-width: 0; overflow: hidden;   /* kluczowe — nie wychodzi poza 200px */
}

/* Główna miniatura */
.proj-item__main-wrap {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  aspect-ratio: 4/3; cursor: zoom-in; background: rgba(0,0,0,.3);
  width: 100%;    /* 100% kolumny, nie 100% ekranu */
}
.proj-item__main-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-mid) var(--ease);
}
.proj-item__main-wrap:hover .proj-item__main-img { transform: scale(1.05); }
.proj-item__main-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,12,30,.4) 0%, transparent 55%);
  pointer-events: none;
}
.proj-item__zoom {
  position: absolute; bottom: .4rem; right: .45rem;
  width: 18px; height: 18px; opacity: .65;
  color: var(--kafel-title); pointer-events: none;
}

/* Miniatury */
.proj-item__thumbs {
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.proj-item__thumb {
  width: 46px; height: 34px; object-fit: cover;
  border-radius: 3px; cursor: zoom-in; opacity: .65;
  border: 2px solid transparent; flex-shrink: 0;
  transition: opacity var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.proj-item__thumb:hover    { opacity: 1; transform: scale(1.07); }
.proj-item__thumb.thumb-active { opacity: 1; border-color: var(--accent-light); }

/* Prawa kolumna — info */
.proj-item__info {
  display: flex; flex-direction: column; gap: .55rem;
  min-width: 0;   /* nie wychodzi poza grid */
}
.proj-item__title {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.15rem); font-weight: 600;
  color: var(--kafel-title); line-height: 1.2;
}
.proj-item__tags {
  display: flex; flex-wrap: wrap; gap: .28rem;
}
.proj-item__tag {
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--kafel-icon); background: rgba(124,140,255,.12);
  border: 1px solid rgba(124,140,255,.22);
  border-radius: 3px; padding: .1rem .4rem;
}
.proj-item__desc {
  font-size: clamp(.78rem,1.1vw,.86rem); font-weight: 400;
  color: var(--kafel-desc); line-height: 1.62; flex: 1;
}
.proj-item__meta {
  display: flex; flex-direction: column; gap: .3rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(124,140,255,.10);
}
.proj-item__meta-row {
  display: flex; align-items: baseline; gap: .45rem;
  font-size: .73rem; color: var(--kafel-meta);
  flex-wrap: wrap;
}
.proj-item__meta-label {
  font-weight: 500; color: var(--kafel-desc);
  min-width: 4.5rem; flex-shrink: 0;
}
.proj-item__meta-link {
  color: var(--accent-light); text-decoration: none;
  transition: opacity var(--t-fast);
}
.proj-item__meta-link:hover { opacity: .72; }

/* Mobile — jedna kolumna */
@media (max-width: 600px) {
  .proj-item { grid-template-columns: 1fr; }
  .proj-item__main-wrap { aspect-ratio: 16/10; }
}

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 8500;
  background: rgba(4,4,14,.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }

.lightbox__img-wrap {
  position: relative; max-width: 92vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain; border-radius: var(--r-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(124,140,255,.15); border: 1px solid rgba(124,140,255,.25);
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--kafel-title);
  transition: background var(--t-fast);
  z-index: 1;
}
.lightbox__btn:hover { background: rgba(124,140,255,.32); }
.lightbox__btn--prev { left: clamp(.5rem, 3vw, 2rem); }
.lightbox__btn--next { right: clamp(.5rem, 3vw, 2rem); }
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.08); border: none;
  border-radius: 50%; width: 38px; height: 38px;
  cursor: pointer; color: var(--kafel-title); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast); z-index: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.18); }
.lightbox__counter {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  font-size: .72rem; color: var(--kafel-meta); letter-spacing: .1em;
}


/* ─── FORMULARZ KONTAKTOWY ───────────────────────────────────── */
.cf-required { color: #e8a0a0; font-weight: 400; }

/* ─── CAPTCHA ────────────────────────────────────────────────── */
.sr-cap {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(124,140,255,.22);
  border-radius: var(--r-md);
  padding: 1.1rem 1.1rem .85rem;
  position: relative;
}
.sr-cap--err {
  border-color: rgba(210,60,60,.55);
  box-shadow: 0 0 0 2px rgba(210,60,60,.12);
}

/* Pytanie */
.sr-cap__q {
  font-size: .95rem;
  font-weight: 500;
  color: var(--kafel-title);
  line-height: 1.4;
  margin-bottom: .85rem;
  padding-right: 7rem;   /* miejsce na "Inne pytanie" */
}

/* Siatka 2×2 */
.sr-cap__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

/* Każdy przycisk */
.sr-cap__btn {
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(124,140,255,.2);
  border-radius: var(--r-sm);
  color: var(--kafel-desc);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.3;
  min-height: 54px;
  padding: .7rem 1rem;
  text-align: center;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  word-break: break-word;
}
.sr-cap__btn:hover {
  background: rgba(124,140,255,.15);
  border-color: rgba(124,140,255,.5);
  color: var(--kafel-title);
}
.sr-cap__btn:active { transform: scale(.97); }

/* Zaznaczony */
.sr-cap__btn.selected {
  background: rgba(124,140,255,.28);
  border-color: var(--accent-light);
  color: var(--kafel-title);
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(124,140,255,.18);
}

/* "Inne pytanie" — link-button w prawym górnym rogu */
.sr-cap__refresh {
  position: absolute;
  top: .85rem; right: .85rem;
  background: none;
  border: none;
  color: var(--kafel-meta);
  cursor: pointer;
  display: flex; align-items: center; gap: .3rem;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .04em;
  opacity: .6;
  padding: .2rem .3rem;
  transition: opacity var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.sr-cap__refresh:hover {
  color: var(--accent-light);
  opacity: 1;
}

/* Mobile */
@media (max-width: 520px) {
  .sr-cap__btn { min-height: 58px; font-size: 1rem; }
  .sr-cap__q { font-size: .9rem; padding-right: 0; margin-bottom: 1rem; }
  .sr-cap__refresh { position: static; margin-top: .7rem; }
}
@media (max-width: 380px) {
  .sr-cap__grid { grid-template-columns: 1fr; }
  .sr-cap__btn { min-height: 50px; }
}
.cf-input--error {
  border-color: rgba(210,60,60,.55) !important;
  box-shadow: 0 0 0 2px rgba(210,60,60,.15) !important;
}
.cf-field-error {
  font-size: .72rem; color: #e8a0a0;
  margin-top: .28rem; line-height: 1.4;
}
.cf-msg {
  padding: .85rem 1rem; border-radius: var(--r-sm); margin-bottom: 1.1rem;
  font-size: .86rem; font-weight: 400; line-height: 1.5;
}
.cf-msg--success {
  background: rgba(80,180,80,.12); border: 1px solid rgba(80,180,80,.3);
  color: #9de0a0;
}
.cf-msg--error {
  background: rgba(210,60,60,.12); border: 1px solid rgba(210,60,60,.3);
  color: #e8a0a0;
}

.cf-group { margin-bottom: 1.1rem; }
.cf-label {
  display: block; font-size: .72rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--kafel-meta); margin-bottom: .5rem;
}
.cf-topics { display: flex; flex-wrap: wrap; gap: .4rem; }
.cf-topic-chip { display: inline-flex; cursor: pointer; }
.cf-topic-chip input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.cf-topic-chip span {
  display: inline-block; padding: .38rem .8rem;
  font-size: .76rem; font-weight: 400; color: var(--kafel-meta);
  background: rgba(255,255,255,.05); border: 1px solid rgba(124,140,255,.18);
  border-radius: 20px; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  user-select: none;
}
.cf-topic-chip:hover span { color: var(--kafel-desc); border-color: rgba(124,140,255,.38); }
.cf-topic-chip input[type="radio"]:checked + span {
  background: rgba(124,140,255,.22); border-color: var(--accent-light); color: var(--kafel-title);
}
.cf-topic-chip input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--accent-light); outline-offset: 2px;
}
.cf-input {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(124,140,255,.2); border-radius: var(--r-sm);
  padding: .65rem .85rem; font-family: var(--font-body);
  font-size: clamp(.84rem,1.2vw,.94rem); font-weight: 400;
  color: var(--kafel-title); outline: none; -webkit-appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast); min-height: 44px;
}
.cf-input::placeholder { color: var(--kafel-meta); opacity: .65; }
.cf-input:focus { border-color: var(--accent-light); box-shadow: 0 0 0 2px rgba(124,140,255,.18); }
.cf-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.cf-checkbox-label {
  display: inline-flex; align-items: center; gap: .55rem;
  cursor: pointer; font-size: .84rem; color: var(--kafel-desc); user-select: none;
}
.cf-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.cf-checkbox-custom {
  width: 18px; height: 18px; flex-shrink: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(124,140,255,.25);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.cf-checkbox-custom::after {
  content: ''; width: 5px; height: 9px;
  border-right: 2px solid var(--accent-light); border-bottom: 2px solid var(--accent-light);
  transform: rotate(45deg) translate(-1px,-1px); opacity: 0; transition: opacity var(--t-fast);
}
.cf-checkbox:checked + .cf-checkbox-custom { background: rgba(124,140,255,.22); border-color: var(--accent-light); }
.cf-checkbox:checked + .cf-checkbox-custom::after { opacity: 1; }
.cf-checkbox:focus-visible + .cf-checkbox-custom { outline: 2px solid var(--accent-light); outline-offset: 2px; }


/* ─── GALERIA PROJEKTU (single.php) ─────────────────────────── */
.proj-single-gallery { position: relative; }

.proj-single-gallery__main {
  position: relative; cursor: zoom-in; overflow: hidden;
  border-radius: var(--r-md); margin-bottom: .6rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.55), 0 0 32px rgba(110,99,176,.15);
}
.proj-single-gallery__hero-img {
  width: 100%; display: block;
  aspect-ratio: 16/9; object-fit: cover;
  transition: transform var(--t-mid) var(--ease);
}
.proj-single-gallery__main:hover .proj-single-gallery__hero-img {
  transform: scale(1.02);
}
.proj-single-gallery__zoom {
  position: absolute; bottom: .75rem; right: .75rem;
  width: 34px; height: 34px;
  background: rgba(6,6,14,.65); backdrop-filter: blur(6px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--kafel-title); opacity: .75; pointer-events: none;
  transition: opacity var(--t-fast);
}
.proj-single-gallery__main:hover .proj-single-gallery__zoom { opacity: 1; }

.proj-single-gallery__thumbs {
  display: flex; gap: .45rem; flex-wrap: wrap;
}
.proj-single-gallery__thumb {
  height: 64px; width: auto; max-width: 120px;
  object-fit: cover; border-radius: var(--r-sm);
  cursor: pointer; opacity: .6;
  border: 2px solid transparent;
  transition: opacity var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.proj-single-gallery__thumb:hover    { opacity: 1; transform: scale(1.05); }
.proj-single-gallery__thumb.active   { opacity: 1; border-color: var(--accent-light); }

@media (max-width: 520px) {
  .proj-single-gallery__thumb { height: 52px; }
  .proj-single-gallery__hero-img { aspect-ratio: 4/3; }
}

@media print {
  body::before, body::after { display: none; }
  .top-bar, #preloader { display: none; }
  body { background: #fff; color: #000; }
}
