/* it.dna.com.pl - one-pager "diagnostyka" */
:root {
  --bg: #0B1424;
  --panel: #060D18;
  --teal: #5DCAA5;
  --blue: #85B7EB;
  --text: #E6F1FB;
  --muted: #9FB3CC;
  --dim: #7E93AE;
  --faint: #5A6F8C;
  --line: rgba(133, 183, 235, 0.14);
  --line2: rgba(133, 183, 235, 0.22);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--teal); color: #06121F; }
input::placeholder, textarea::placeholder { color: var(--faint); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px clamp(20px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(6, 13, 24, 0.9);
  border-bottom-color: rgba(133, 183, 235, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.logo-lockup img { height: 36px; width: auto; display: block; }
.logo-lockup span {
  font-family: var(--sans); font-size: 7px; font-weight: 600;
  letter-spacing: 0.3em; text-indent: 0.3em; color: var(--text); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.nav-cta {
  font-family: var(--mono); font-size: 13px; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 6px; padding: 9px 18px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--teal); color: #06121F; }
.nav-links a.lang {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
  border: 1px solid var(--line2); border-radius: 4px; padding: 6px 10px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a.lang:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-block; font-family: var(--mono); font-size: 15px; font-weight: 500;
  text-decoration: none; border-radius: 6px; padding: 15px 30px; cursor: pointer;
  border: 1px solid var(--teal); background: transparent; color: var(--teal);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn:hover { background: var(--teal); color: #06121F; }
.btn-solid { background: var(--teal); color: #06121F; }
.btn-solid:hover { background: transparent; color: var(--teal); }
.btn-ghost { border-color: rgba(133, 183, 235, 0.45); color: var(--blue); }
.btn-ghost:hover { background: rgba(133, 183, 235, 0.1); border-color: var(--blue); color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  padding: 130px clamp(20px, 5vw, 64px) 70px;
}
.hero-grid, .hero-spot { position: absolute; inset: 0; pointer-events: none; background-size: 36px 36px; }
.hero-grid {
  background-image:
    linear-gradient(rgba(133, 183, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 183, 235, 0.07) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 35%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 35%, black 40%, transparent 80%);
}
.hero-spot {
  opacity: 0; transition: opacity 0.35s ease;
  background-image:
    linear-gradient(rgba(93, 202, 165, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 202, 165, 1) 1px, transparent 1px);
  filter: drop-shadow(0 0 18px rgba(93, 202, 165, 0.65)) brightness(1.25);
  mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 40%), black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 40%), black 0%, transparent 100%);
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero-tag {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--teal);
  margin-bottom: 30px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: dotPulse 2.4s ease-in-out infinite; }
.hero h1 {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(29px, 4.5vw, 56px); line-height: 1.22; letter-spacing: -0.015em;
  margin: 0 0 28px; max-width: 980px;
}
.hero h1 .l2 { color: var(--teal); }
.hero h1 span { display: block; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--muted); max-width: 640px; margin: 0 0 36px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- sekcje ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 48px) 0; }
.section:last-of-type { padding-bottom: clamp(80px, 10vw, 140px); }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sec-head .num { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.sec-head .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }
.section h2 { font-weight: 600; font-size: clamp(27px, 3vw, 42px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 44px; max-width: 760px; }
.section h2.tight { margin-bottom: 18px; }
.lead { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 760px; margin: 0 0 48px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cols-wide { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.prose p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose p.first { font-size: 17px; color: #C7D6E8; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- panele / karty ---------- */
.panel { background: var(--panel); border: 1px solid rgba(133, 183, 235, 0.16); border-radius: 10px; padding: clamp(24px, 3vw, 34px); }
.panel .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--teal); margin-bottom: 14px; }
.panel h3 { font-weight: 600; font-size: 21px; margin: 0 0 14px; line-height: 1.3; }
.panel p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.panel .footnote { font-size: 14px; line-height: 1.65; color: var(--dim); margin: 0; border-top: 1px solid rgba(133, 183, 235, 0.12); padding-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips span { font-family: var(--mono); font-size: 12px; color: #C7D6E8; border: 1px solid var(--line2); border-radius: 4px; padding: 6px 11px; }

.points { display: flex; flex-direction: column; gap: 22px; }
.point { display: flex; gap: 16px; align-items: flex-start; }
.point .mark { font-family: var(--mono); font-size: 14px; color: var(--teal); line-height: 1.8; flex-shrink: 0; }
.point p { font-size: 15.5px; line-height: 1.7; color: #C7D6E8; margin: 0; }
.point strong { color: var(--text); font-weight: 600; }
.points .note { font-size: 14.5px; line-height: 1.7; color: var(--dim); margin: 6px 0 0; border-top: 1px solid rgba(133, 183, 235, 0.12); padding-top: 20px; }

.callout { background: var(--panel); border: 1px solid rgba(133, 183, 235, 0.35); border-radius: 10px; padding: clamp(22px, 2.6vw, 30px); margin-top: 6px; }
.callout .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.callout .head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.callout .head span:last-child { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--blue); }
.callout p { font-size: 15px; line-height: 1.7; color: #C7D6E8; margin: 0; }

/* ---------- monitor CRT (zielony fosfor) ---------- */
.crt { --ph: #3CFF6E; --ph-soft: #BDFFD4; --ph-dim: rgba(110, 255, 160, 0.55); --ph-faint: rgba(110, 255, 160, 0.2); filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.55)); }
.crt-body {
  position: relative;
  background: linear-gradient(168deg, #4a5057 0%, #33383e 26%, #212529 62%, #141719 100%);
  border-radius: 28px;
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 2px 0 2px rgba(255, 255, 255, 0.05),
    inset -3px 0 6px rgba(0, 0, 0, 0.35),
    inset 0 -3px 7px rgba(0, 0, 0, 0.55);
}
.crt-body::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.crt-face {
  display: flex; align-items: stretch; gap: clamp(10px, 1.2vw, 16px);
  background: linear-gradient(180deg, #0e1012, #1b1e21 12%, #141719 90%, #232729);
  border-radius: 20px;
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow:
    inset 0 3px 14px rgba(0, 0, 0, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.07);
}
.crt-screen {
  position: relative; overflow: hidden; flex: 1; min-width: 0;
  aspect-ratio: 4 / 3;
  container-type: inline-size;
  border-radius: 36px;
  background: radial-gradient(ellipse 130% 105% at 50% 42%, #0a2212 0%, #06140b 55%, #030a05 100%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.95),
    inset 0 0 26px rgba(40, 255, 120, 0.08),
    inset 0 3px 16px rgba(0, 0, 0, 0.85);
}
.crt-overlay {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 28% at 27% 13%, rgba(220, 255, 235, 0.085), transparent 65%),
    radial-gradient(ellipse 32% 32% at 0% 0%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 32% 32% at 100% 0%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 32% 32% at 0% 100%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 32% 32% at 100% 100%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 135% 115% at 50% 50%, transparent 56%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0px, rgba(0, 0, 0, 0.28) 1px, transparent 1px, transparent 3px);
}
.crt-inner {
  position: relative;
  padding: 5cqw;
  font-family: var(--mono);
  font-size: clamp(9px, 2.9cqw, 14px);
  line-height: 2.05;
  animation: crtFlicker 7s linear infinite;
}
.crt .t-prompt { color: var(--ph); text-shadow: 0 0 8px rgba(60, 255, 110, 0.55); }
.crt .t-label { color: var(--ph-dim); text-shadow: 0 0 6px rgba(60, 255, 110, 0.22); }
.crt .t-ok { color: var(--ph); text-shadow: 0 0 8px rgba(60, 255, 110, 0.55); }
.crt .t-status { color: var(--ph-soft); text-shadow: 0 0 9px rgba(60, 255, 110, 0.6); }
.caret { display: inline-block; width: 0.55em; height: 1.25em; background: var(--teal); vertical-align: middle; animation: caretBlink 1.1s step-end infinite; }
.crt .caret { background: var(--ph); box-shadow: 0 0 9px rgba(60, 255, 110, 0.8); }
.crt-side {
  display: flex; flex-direction: column; align-items: center;
  width: clamp(34px, 3.4vw, 46px); flex-shrink: 0;
  padding: 14px 0 10px; gap: 12px;
}
.crt-side .knob {
  width: 17px; height: 17px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 28%, #4a5158, #15181b 75%);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.85), 0 1px 1px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.crt-side .knob::after {
  content: ''; position: absolute; top: 2px; left: 50%; width: 2px; height: 5px;
  margin-left: -1px; border-radius: 1px; background: rgba(255, 255, 255, 0.25);
}
.crt-side .knob.lg { width: 22px; height: 22px; }
.crt-side .slit { width: 60%; height: 2px; border-radius: 1px; background: rgba(0, 0, 0, 0.55); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07); margin-top: auto; }
.crt-led { width: 7px; height: 7px; border-radius: 50%; background: var(--ph); box-shadow: 0 0 9px rgba(60, 255, 110, 0.95); animation: dotPulse 3.4s ease-in-out infinite; }
.crt-foot {
  width: 88%; height: clamp(20px, 2.2vw, 28px); margin: 0 auto;
  border-radius: 3px 3px 14px 14px;
  background:
    linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(0, 0, 0, 0.45) calc(33.3% - 1px), rgba(0, 0, 0, 0.45) calc(33.3% + 1px), transparent calc(33.3% + 1px)),
    linear-gradient(90deg, transparent calc(66.6% - 1px), rgba(0, 0, 0, 0.45) calc(66.6% - 1px), rgba(0, 0, 0, 0.45) calc(66.6% + 1px), transparent calc(66.6% + 1px)),
    linear-gradient(180deg, #383d43, #1d2125 55%, #0e1113);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.55), inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

/* ---------- wyszukiwarka ---------- */
.searchbox {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line2); border-radius: 999px;
  padding: 12px 20px; margin-bottom: 22px;
}
.search-icon { width: 12px; height: 12px; border: 1.5px solid var(--dim); border-radius: 50%; flex-shrink: 0; position: relative; }
.search-icon::after { content: ''; position: absolute; width: 1.5px; height: 6px; background: var(--dim); bottom: -5px; right: -2px; transform: rotate(-45deg); }
.search-q { font-family: var(--mono); font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; }
.search-q .caret { width: 0.5em; height: 1.1em; background: var(--blue); margin-left: 2px; }
.serp { display: flex; gap: 14px; padding: 22px; padding-top: 0; }
.crt .serp { padding: 0; }
.serp-nums { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.serp-nums span { height: 46px; display: flex; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.serp-rows { position: relative; flex: 1; height: 158px; min-width: 0; }
.serp-row {
  position: absolute; left: 0; right: 0; height: 46px;
  display: flex; align-items: center;
  background: rgba(133, 183, 235, 0.04); border: 1px solid rgba(133, 183, 235, 0.1); border-radius: 8px;
  padding: 0 16px; overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
}
.serp-row .url { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.serp-row .title { font-size: 14px; color: var(--dim); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-row.client { background: var(--bg); border-color: rgba(133, 183, 235, 0.18); }
.serp-row.client .url { color: var(--teal); }
.serp-row.client .title { color: var(--text); font-weight: 600; }
.serp-row.client.lit { border-color: var(--teal); box-shadow: 0 0 0 1px rgba(93, 202, 165, 0.35), 0 14px 40px rgba(93, 202, 165, 0.12); }
.serp-row.client .row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.serp-badge {
  font-family: var(--mono); font-size: 10.5px; color: #06121F; background: var(--teal);
  border-radius: 4px; padding: 2px 8px; opacity: 0; transition: opacity 0.5s;
}
.serp-row.client.lit .serp-badge { opacity: 1; }

/* wyszukiwarka w monitorze CRT - zielony fosfor */
.crt .searchbox { background: rgba(40, 255, 120, 0.035); border-color: var(--ph-faint); margin-bottom: 4cqw; padding: 2.2cqw 4cqw; }
.crt .search-icon { border-color: var(--ph-dim); }
.crt .search-icon::after { background: var(--ph-dim); }
.crt .search-q { color: var(--ph); text-shadow: 0 0 8px rgba(60, 255, 110, 0.45); font-size: clamp(9px, 2.9cqw, 14px); }
.crt .search-q .caret { background: var(--ph); }
.crt .serp { gap: 3cqw; }
.crt .serp-nums { gap: 2cqw; }
.crt .serp-nums span { color: var(--ph-faint); height: 10cqw; font-size: clamp(9px, 2.7cqw, 13px); }
.crt .serp-rows { height: 34cqw; }
.crt .serp-row { background: rgba(40, 255, 120, 0.03); border-color: var(--ph-faint); height: 10cqw; padding: 0 3.4cqw; border-radius: 1.8cqw; }
.crt .serp-row .url { color: var(--ph-dim); font-size: clamp(9px, 2.6cqw, 12.5px); }
.crt .serp-row .title { color: rgba(170, 255, 200, 0.45); }
.crt .serp-row.client { background: rgba(40, 255, 120, 0.07); border-color: rgba(110, 255, 160, 0.4); }
.crt .serp-row.client .url { color: var(--ph); text-shadow: 0 0 7px rgba(60, 255, 110, 0.45); }
.crt .serp-row.client .title { color: var(--ph-soft); text-shadow: 0 0 8px rgba(60, 255, 110, 0.35); }
.crt .serp-row.client.lit { border-color: var(--ph); box-shadow: 0 0 0 1px rgba(60, 255, 110, 0.4), 0 0 28px rgba(60, 255, 110, 0.18); }
.crt .serp-badge { background: var(--ph); color: #03140a; font-size: clamp(8px, 2.2cqw, 10.5px); padding: 0.4cqw 1.7cqw; }

/* ---------- kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { background: var(--panel); border: 1px solid rgba(133, 183, 235, 0.16); border-radius: 10px; padding: clamp(24px, 3vw, 32px); }
.step .kicker { font-family: var(--mono); font-size: 13px; color: var(--teal); margin-bottom: 16px; }
.step h3 { font-weight: 600; font-size: 19px; margin: 0 0 10px; }
.step p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- kontakt ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 7px; }
.form label span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--dim); }
.form input, .form textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line2); border-radius: 6px;
  padding: 12px 14px; outline: none; transition: border-color 0.2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--teal); }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .btn { font-size: 14px; padding: 14px 28px; }
.form-msg { display: none; font-family: var(--mono); font-size: 12.5px; color: var(--teal); }
.form-msg.error { color: var(--blue); }
.honey { display: none; }

.contact-data .entry { padding: 24px 0; border-top: 1px solid rgba(133, 183, 235, 0.12); }
.contact-data .entry:first-child { border-top: none; padding-top: 6px; }
.contact-data .entry:last-child { padding-bottom: 0; }
.contact-data .key { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 8px; }
.contact-data .val, .contact-data a { font-family: var(--mono); font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--text); text-decoration: none; transition: color 0.2s; }
.contact-data a:hover { color: var(--teal); }
.contact-data .addr { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: #C7D6E8; margin: 0; font-weight: 400; }
.contact-data .meta { font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--faint); margin: 0; }

/* ---------- stopka ---------- */
.footer { border-top: 1px solid rgba(133, 183, 235, 0.12); background: var(--panel); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: clamp(36px, 4vw, 56px) clamp(20px, 4vw, 48px);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer .logo-lockup img { height: 44px; }
.footer .logo-lockup span { font-size: 8.5px; }
.footer-text { max-width: 560px; }
.footer-text .desc { font-size: 14px; line-height: 1.7; color: var(--dim); margin: 0 0 10px; }
.footer-text .legal { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--faint); margin: 0; }

/* ---------- animacje ---------- */
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes dotPulse { 0% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }
@keyframes crtFlicker {
  0%, 100% { opacity: 1; }
  3% { opacity: 0.86; }
  5% { opacity: 1; }
  42% { opacity: 0.96; }
  44% { opacity: 1; }
  71% { opacity: 0.92; }
  73% { opacity: 1; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta):not(.lang) { display: none; }
  .hero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .hero-tag .dot { animation: none; }
  .crt-inner, .crt-led { animation: none; }
  .hero-spot { display: none; }
  .serp-row { transition: none; }
}

/* ---------- WordPress: pasek admina ---------- */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* ---------- Contact Form 7: mapowanie na style .form z referencji ---------- */
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; margin: 0; padding: 0; border: 0; }
.form .hidden-fields-container { display: none; }
.form .wpcf7-form-control-wrap { display: contents; }
.form input.wpcf7-submit { font-family: var(--mono); }
.form .wpcf7-spinner { margin: 0; }
.form .wpcf7-response-output {
  display: block; border: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--teal);
}
.form.invalid .wpcf7-response-output,
.form.unaccepted .wpcf7-response-output,
.form.failed .wpcf7-response-output,
.form.spam .wpcf7-response-output,
.form.aborted .wpcf7-response-output { color: var(--blue); }
.form .wpcf7-not-valid-tip { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
.form input.wpcf7-not-valid, .form textarea.wpcf7-not-valid { border-color: var(--blue); }

/* ---------- menu mobilne (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line2); border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--teal); }
.nav-toggle span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav.open {
    background: rgba(6, 13, 24, 0.97);
    border-bottom-color: rgba(133, 183, 235, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 13, 24, 0.97);
    border-bottom: 1px solid rgba(133, 183, 235, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px clamp(20px, 4vw, 48px) 22px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.nav-cta):not(.lang) {
    display: block;
    font-family: var(--mono); font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(133, 183, 235, 0.1);
  }
  .nav-links a.lang { display: none; } /* na mobile przełącznik języka jest na pasku, nie w panelu */
  .nav-links a.nav-cta { text-align: center; padding: 13px 18px; margin-top: 14px; }
}

/* przełącznik języka na pasku obok hamburgera (tylko mobile) */
.nav > a.lang {
  display: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
  border: 1px solid var(--line2); border-radius: 4px; padding: 6px 10px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.nav > a.lang:hover { color: var(--teal); border-color: var(--teal); }
@media (max-width: 640px) {
  .nav > a.lang { display: inline-block; margin-left: auto; }
}
