/* =====================================================================
   COBRA TechnologY — style główny
   Kolory i odstępy ustawiasz w :root. Motyw strony produktu zmienia
   klasa na <body>: theme-cobra (niebieski) lub theme-spy (zielony).
   ===================================================================== */

:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --surface: #0e1629;
  --surface-2: #121c33;
  --line: rgba(148, 178, 255, 0.10);
  --line-2: rgba(148, 178, 255, 0.18);
  --text: #e8eefc;
  --text-2: #a9b6d3;
  --text-3: #6f7d9c;

  --cobra: #3b82f6;
  --cobra-2: #7cb3ff;
  --spy: #10b981;
  --spy-2: #4ade9f;
  --warn: #f87171;

  --accent: var(--cobra);
  --accent-2: var(--cobra-2);
  --accent-rgb: 59, 130, 246;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-h: 72px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body.theme-spy {
  --accent: var(--spy);
  --accent-2: var(--spy-2);
  --accent-rgb: 16, 185, 129;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 70px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; }
p { -webkit-hyphens: auto; hyphens: auto; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.brand-spy strong { font-weight: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  background: var(--accent); color: #fff;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: 0 8px 28px -10px rgba(var(--accent-rgb), .7);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(var(--accent-rgb), .85); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-cobra { --accent: var(--cobra); --accent-rgb: 59,130,246; }
.btn-spy { --accent: var(--spy); --accent-rgb: 16,185,129; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body:not(.home) .site-header {
  background: rgba(6, 10, 20, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark { width: auto; height: 44px; flex-shrink: 0; object-fit: contain; }
.brand em { font-style: normal; color: var(--text-2); font-weight: 500; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a9b6d3' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 30px 8px 14px; font-size: .85rem; cursor: pointer; color: var(--text-2);
}
.lang-select option { background: var(--surface); color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Slider (strona główna) ---------- */
.slider { position: relative; height: min(100vh, 860px); min-height: 600px; overflow: hidden; background: #03060d; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.06); }
.slide.is-active .slide-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.slide-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3,6,13,.94) 0%, rgba(3,6,13,.78) 38%, rgba(3,6,13,.15) 72%, rgba(3,6,13,.3) 100%),
    linear-gradient(0deg, rgba(6,10,20,1) 0%, rgba(6,10,20,0) 28%);
}
.slide[data-theme="spy"] .slide-shade { background:
    linear-gradient(90deg, rgba(2,10,8,.94) 0%, rgba(2,12,10,.78) 38%, rgba(3,6,13,.15) 72%, rgba(3,6,13,.3) 100%),
    linear-gradient(0deg, rgba(6,10,20,1) 0%, rgba(6,10,20,0) 28%); }
.slide-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.slide-content > * { max-width: 600px; }
.slide .eyebrow, .slide h1, .slide p, .slide .slide-actions { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.slide.is-active h1 { opacity: 1; transform: none; transition-delay: .4s; }
.slide.is-active p { opacity: 1; transform: none; transition-delay: .55s; }
.slide.is-active .slide-actions { opacity: 1; transform: none; transition-delay: .7s; }
.slide h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin: 18px 0 20px; text-wrap: balance; }
.slide h1 em { font-style: normal; color: var(--accent-2); }
.slide[data-theme="spy"] { --accent: var(--spy); --accent-2: var(--spy-2); --accent-rgb: 16,185,129; }
.slide p { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 520px; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.slider-ui { position: absolute; left: 0; right: 0; bottom: 104px; z-index: 5; }
.slider-ui .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.slider-dots { display: flex; gap: 10px; }
.slider-dot { position: relative; width: 56px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.slider-dot::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; }
.slider-dot.is-active::after { animation: dotfill var(--slide-time, 7000ms) linear forwards; }
.slider.is-paused .slider-dot.is-active::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.slider-arrows { display: flex; gap: 10px; }
.slider-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; background: rgba(6,10,20,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.slider-arrow:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.slider-arrow svg { width: 20px; height: 20px; }
.slide-count { font-family: var(--font-mono); font-size: .8rem; color: var(--text-3); margin-right: 8px; align-self: center; }

/* ---------- Etykiety, nagłówki sekcji ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 18px; text-wrap: balance; }
.section-head h2 em { font-style: normal; color: var(--accent-2); }
.section-head p { color: var(--text-2); font-size: 1.08rem; }

/* ---------- Pasek liczb ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-n { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.stat-n small { font-size: .55em; color: var(--accent-2); margin-left: 2px; }
.stat-n.stat-word { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.35; }
.stat-l { margin-top: 10px; font-size: .85rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.stats-overlap { margin-top: -70px; position: relative; z-index: 6; }

/* ---------- Karty produktów (home) ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-card {
  --accent: var(--cobra); --accent-2: var(--cobra-2); --accent-rgb: 59,130,246;
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), 0) 45%), var(--surface);
  border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr;
  transition: transform .35s var(--ease), border-color .35s;
}
.product-card.spy { --accent: var(--spy); --accent-2: var(--spy-2); --accent-rgb: 16,185,129; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .45); }
.product-media { aspect-ratio: 900/507; overflow: hidden; background: #050a12; }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 34px 34px 36px; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.85rem; margin: 14px 0 12px; }
.product-body > p { color: var(--text-2); margin-bottom: 22px; }
.product-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Listy z ptaszkiem ---------- */
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 11px;
  border: 1px solid rgba(var(--accent-rgb), .5);
}
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 14px 30px; }

/* ---------- Karty funkcji ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.card:hover { border-color: rgba(var(--accent-rgb), .4); transform: translateY(-3px); background: var(--surface-2); }
.card h3, .card h4 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .97rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent-2);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .tag {
  display: inline-block; margin-top: 18px; padding: 7px 12px; border-radius: 8px;
  font-size: .8rem; font-weight: 600; color: var(--c, var(--accent-2));
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
}
.card.accent-top::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--c, var(--accent)), transparent); border-radius: 2px; }

/* ---------- Blok tekst + obraz ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.device-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #e9eaee; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02);
}
.device-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.device-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; }
.device-frame.natural img { aspect-ratio: auto; }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 10% 0 -6% 10%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .35), transparent); filter: blur(30px); z-index: -1; }

/* ---------- Szerokie zdjęcie ---------- */
.banner { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.banner img { width: 100%; aspect-ratio: 21/8; object-fit: cover; }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.step-num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-2); letter-spacing: .1em; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.step-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .5), transparent); }
.step h4 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 650; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: .95rem; }

/* ---------- Nagłówek podstrony ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 90px) 0 80px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(var(--accent-rgb), .22), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(var(--accent-rgb), .10), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent);
  mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); margin: 20px 0 22px; text-wrap: balance; }
.page-hero h1 em { font-style: normal; color: var(--accent-2); }
.page-hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 620px; }
.page-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.page-hero .device-frame img { aspect-ratio: 4/5; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text-2); }
.chip b { color: var(--text); font-weight: 600; }

/* ---------- Zakładki w podstronach ---------- */
.tabs-bar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(6, 10, 20, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; position: relative; padding: 11px 18px; border-radius: 10px;
  font-size: .92rem; font-weight: 550; color: var(--text-3); transition: color .2s, background .2s;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab[aria-selected="true"] { color: var(--text); background: rgba(var(--accent-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); }
.tab-panel { animation: panelIn .5s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tab-next { margin-top: 60px; display: flex; justify-content: flex-end; }

/* ---------- Pastylki źródeł ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills .pill { padding: 9px 16px; border-radius: 999px; font-size: .88rem; border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .08); color: var(--text); }

/* ---------- Wyróżnione bloki ---------- */
.callout { padding: 38px 40px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), transparent 60%), var(--surface); }
.callout h3 { font-size: 1.6rem; margin-bottom: 12px; }
.callout > p { color: var(--text-2); max-width: 760px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 28px; }
.mini-grid div { font-size: .88rem; color: var(--text-2); padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.mini-grid div::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.notice { padding: 14px 16px; border-radius: 10px; font-size: .88rem; line-height: 1.6; margin-top: 12px; background: color-mix(in srgb, var(--c, var(--accent)) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 25%, transparent); color: var(--text-2); }
.notice strong { color: var(--text); }
.detect-list { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.detect-list li { font-size: .86rem; padding: 9px 12px; border-radius: 8px; background: rgba(255,255,255,.03); color: var(--text-2); border-left: 2px solid var(--c, var(--accent)); }
.detect-list li.hi { color: var(--text); background: color-mix(in srgb, var(--c, var(--accent)) 10%, transparent); font-weight: 550; }

/* ---------- Platformy ---------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.platform { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.platform svg { width: 30px; height: 30px; margin-bottom: 16px; }
.platform h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; margin-bottom: 4px; }
.platform p { font-size: .88rem; color: var(--text-3); }
.ios-box { margin-top: 26px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); }
.ios-box > div { padding: 34px 36px; }
.ios-box > div:first-child { background: var(--surface); }
.ios-box > div:last-child { background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04)); border-left: 1px solid var(--line); }
.ios-box h4 { font-size: 1.25rem; margin-bottom: 12px; }
.ios-box p { color: var(--text-2); font-size: .96rem; }
.ios-box .howto { color: var(--accent-2); font-weight: 650; margin-bottom: 12px; font-size: .96rem; }

/* ---------- Pasek wideo ---------- */
.video-cta { display: flex; align-items: center; gap: 28px; padding: 30px 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); }
.video-cta .play { flex-shrink: 0; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), .16); color: var(--accent-2); border: 1px solid rgba(var(--accent-rgb), .4); position: relative; }
.video-cta .play::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .25); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.video-cta .play svg { width: 26px; height: 26px; }
.video-cta h4 { font-size: 1.25rem; margin-bottom: 6px; }
.video-cta p { color: var(--text-2); font-size: .96rem; }
.video-cta .btn { margin-left: auto; }

/* ---------- Duże wezwanie do działania ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 76px 60px; text-align: center; border: 1px solid rgba(var(--accent-rgb), .35);
  background: radial-gradient(80% 120% at 50% 0%, rgba(var(--accent-rgb), .35), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; text-wrap: balance; }
.cta-band p { color: var(--text-2); max-width: 600px; margin: 0 auto 34px; font-size: 1.08rem; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.email-link { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.contact-card.cobra { --accent: var(--cobra); --accent-2: var(--cobra-2); --accent-rgb: 59,130,246; border-top: 2px solid var(--cobra); }
.contact-card.spy { --accent: var(--spy); --accent-2: var(--spy-2); --accent-rgb: 16,185,129; border-top: 2px solid var(--spy); }
.contact-card h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.contact-card p { color: var(--text-2); font-size: .95rem; margin-bottom: 20px; }
.form { padding: 38px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 550; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s; font-size: .95rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.form-note { font-size: .82rem; color: var(--text-3); }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 34px; margin-top: 110px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: var(--text-3); font-size: .92rem; max-width: 340px; margin-top: 16px; }
.footer-grid h5 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-2); font-size: .94rem; transition: color .2s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: .85rem; color: var(--text-3); flex-wrap: wrap; }

/* ---------- Animacje przy przewijaniu ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s !important; } .reveal-d2 { transition-delay: .16s !important; } .reveal-d3 { transition-delay: .24s !important; }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .page-hero-grid { gap: 48px; }
}
@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-tools .btn { display: none; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 14px 20px 24px; background: rgba(6,10,20,.97); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 16px; font-size: 1.02rem; border-radius: 12px; }
  .nav-tools { margin-left: auto; }
  .site-header { background: rgba(6,10,20,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .products, .split, .page-hero-grid, .contact-grid, .ios-box { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .ios-box > div:last-child { border-left: 0; border-top: 1px solid var(--line); }
  .page-hero-grid .device-frame { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
  .video-cta { flex-wrap: wrap; }
  .video-cta .btn { margin-left: 0; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .steps, .platforms, .check-list.cols-2, .form-row { grid-template-columns: 1fr; }
  .slider { min-height: 640px; }
  .slide-bg { object-position: 78% center; }
  .slide-shade { background: linear-gradient(0deg, rgba(3,6,13,.98) 10%, rgba(3,6,13,.7) 55%, rgba(3,6,13,.35) 100%) !important; }
  .slide-content { justify-content: flex-end; padding-bottom: 120px; }
  .slider-arrows { display: none; }
  .slider-ui { bottom: 40px; }
  .slider-dot { width: 38px; }
  .stats-overlap { margin-top: 30px; }
  .product-body, .form, .callout, .ios-box > div { padding: 26px 22px; }
  .cta-band { padding: 54px 22px; }
  .brand-text em { display: none; }
  .lang-btn { padding: 8px 11px; gap: 6px; }
  .brand-mark { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Formularz: komunikaty i antyspam (wersja PHP) ---------- */
.form-status { padding: 16px 18px; border-radius: 12px; font-size: .95rem; line-height: 1.55; border: 1px solid; }
.form-status.is-ok { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .45); color: #a7f3d0; }
.form-status.is-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); color: #fecaca; }
.form-status a { color: #fff; text-decoration: underline; }
.form-debug { margin-top: 12px; padding: 12px; border-radius: 8px; background: rgba(0,0,0,.35); color: var(--text-2); font: .78rem/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }

/* ---------- Wybór języka (przycisk z listą) ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 650; letter-spacing: .03em; color: #fff;
  background: rgba(var(--accent-rgb), .16);
  border: 1px solid rgba(var(--accent-rgb), .6);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.lang-btn:hover, .lang.is-open .lang-btn { background: rgba(var(--accent-rgb), .28); border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.lang-btn svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }
.lang-btn .lang-chev { width: 14px; height: 14px; color: var(--text-2); transition: transform .2s; }
.lang.is-open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  list-style: none; min-width: 200px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: .95rem; color: var(--text-2); text-align: left; transition: background .15s, color .15s;
}
.lang-menu button b { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; min-width: 28px; padding: 3px 0; text-align: center; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--text-2); }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(255,255,255,.06); color: var(--text); outline: none; }
.lang-menu button[aria-selected="true"] { color: #fff; background: rgba(var(--accent-rgb), .16); }
.lang-menu button[aria-selected="true"] b { background: var(--accent); color: #fff; }
.lang-menu button[aria-selected="true"]::after { content: ""; margin-left: auto; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center / contain; }
