/* =========================================================
   SPRAVION Webcare – styles.css
   ========================================================= */

/* ---------- Písma (lokálně, s podporou české diakritiky) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Proměnné ---------- */
:root {
  --bg: #0B0B1A;
  --bg-2: #121228;
  --bg-3: #1A1A36;
  --violet: #7B2FF7;
  --violet-light: #B48CFF;
  --teal: #00E5D4;
  --pink: #FF3D7F;
  --lime: #F5FF4F;
  --text: #F3F3FB;
  --muted: #B4B4D0;
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --error: #FF8FB3;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* jemný grain / noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: url("/img/noise.svg");
  background-size: 200px;
  opacity: .07;
  mix-blend-mode: overlay;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--lime); }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  padding: .75rem 1.1rem; border-radius: 10px;
  background: var(--lime); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* ---------- Gradientní text ---------- */
.gradient-text {
  background: linear-gradient(100deg, var(--violet-light) 0%, var(--pink) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.gradient-text--lime { background-image: linear-gradient(100deg, var(--teal) 0%, var(--lime) 100%); }
.gradient-text--hot  { background-image: linear-gradient(100deg, var(--pink) 0%, #FF9B5C 55%, var(--lime) 100%); }

/* ---------- Tlačítka ---------- */
.btn {
  --glow: rgba(0, 229, 212, .45);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-icon { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary {
  color: var(--bg);
  background: linear-gradient(120deg, var(--teal), var(--lime));
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-primary:hover, .btn-primary:focus-visible {
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -6px var(--glow), 0 0 0 4px rgba(245, 255, 79, .14);
}
.btn-ghost {
  --glow: rgba(255, 61, 127, .4);
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  color: var(--text);
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--glow);
}
.btn-lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .94rem; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 26, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: 42px; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; }
.brand-text small { font-size: .74rem; letter-spacing: .32em; color: var(--teal); margin-top: .28rem; font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav ul a {
  position: relative;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: .4rem 0;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  border-radius: 2px;
}
.main-nav ul a:hover::after, .main-nav ul a[aria-current="location"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--glass);
  cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--text); transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1.25px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; transform: none; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.5rem 1.25rem 2rem;
    background: rgba(11, 11, 26, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility 0s .3s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open {
    transform: none; opacity: 1; visibility: visible;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: .9rem .25rem; font-size: 1.2rem; font-family: var(--font-head); border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-cta { align-self: flex-start; }
  .site-header.menu-open { background: rgba(11, 11, 26, .97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob {
  position: absolute;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; min-width: 280px; min-height: 280px;
  filter: blur(70px);
  opacity: .62;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  will-change: transform, border-radius;
  animation: morph 18s ease-in-out infinite alternate, drift 26s ease-in-out infinite alternate;
}
.blob-1 { background: radial-gradient(circle at 30% 30%, var(--violet), transparent 70%); top: -12%; right: -8%; }
.blob-2 { background: radial-gradient(circle at 60% 40%, var(--pink), transparent 70%); bottom: -20%; right: 18%; opacity: .45; animation-duration: 22s, 30s; animation-delay: -6s, -4s; }
.blob-3 { background: radial-gradient(circle at 50% 50%, var(--teal), transparent 70%); top: 20%; left: -18%; opacity: .32; animation-duration: 20s, 34s; animation-delay: -10s, -12s; }

@keyframes morph {
  0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50%  { border-radius: 63% 37% 38% 62% / 58% 63% 37% 42%; }
  100% { border-radius: 37% 63% 52% 48% / 36% 52% 48% 64%; }
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0) scale(1); }
  50%  { transform: translate3d(-6%, 8%, 0) rotate(40deg) scale(1.08); }
  100% { transform: translate3d(5%, -4%, 0) rotate(80deg) scale(.95); }
}
.hero-geo { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; margin-bottom: 1.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .9rem; font-weight: 500; color: var(--text);
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(245, 255, 79, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 255, 79, .6); }
  70% { box-shadow: 0 0 0 12px rgba(245, 255, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 255, 79, 0); }
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}
.hero-title .line { display: block; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 40rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-tags li {
  padding: .35rem .85rem; border-radius: 999px; font-size: .88rem;
  color: var(--text); border: 1px dashed rgba(255, 255, 255, .28);
}

.hero-art { position: relative; }
.network { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(123, 47, 247, .35)); }
.spin-slow { transform-origin: 260px 260px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow { stroke-dasharray: 6 8; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.node { transform-box: fill-box; transform-origin: center; animation: bob 4s ease-in-out infinite; }
.node-d1 { animation-delay: -1s; }
.node-d2 { animation-delay: -2s; }
.node-d3 { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px) scale(1.12); } }
.glow-pulse { transform-box: fill-box; transform-origin: center; animation: glowp 3s ease-in-out infinite; }
@keyframes glowp { 50% { transform: scale(1.4); opacity: .4; } }
.code-window { transform-box: fill-box; transform-origin: center; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.wave { stroke-dasharray: 12 10; animation: flow 3s linear infinite; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin-inline: auto; order: -1; }
  .hero { padding-top: calc(var(--header-h) + 2rem); }
}
@media (max-width: 520px) {
  .hero-art { max-width: 260px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(123, 47, 247, .25), rgba(255, 61, 127, .2), rgba(0, 229, 212, .2));
  padding: 1rem 0;
  transform: rotate(-1.2deg) scale(1.02);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem);
  white-space: nowrap; padding-inline: 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem;
}
.ticker-track span::after { content: "✦"; color: var(--lime); font-size: .9em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sekce ---------- */
.section { position: relative; isolation: isolate; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--lime)); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
.section-lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 40rem; }

/* ---------- Glass karty ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 50px -30px rgba(0, 0, 0, .8);
}
.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tilt:hover::before { opacity: 1; }

/* ---------- Služby ---------- */
.services::before {
  content: ""; position: absolute; top: 10%; right: -10%; width: 520px; height: 520px; z-index: -1;
  background: radial-gradient(circle, rgba(123, 47, 247, .25), transparent 65%);
  filter: blur(40px);
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { padding: 2rem 1.6rem 1.7rem; display: flex; flex-direction: column; }
.card[data-accent="violet"] { --accent: var(--violet-light); --accent-glow: rgba(123, 47, 247, .55); }
.card[data-accent="teal"]   { --accent: var(--teal); --accent-glow: rgba(0, 229, 212, .45); }
.card[data-accent="pink"]   { --accent: var(--pink); --accent-glow: rgba(255, 61, 127, .5); }
.card[data-accent="lime"]   { --accent: var(--lime); --accent-glow: rgba(245, 255, 79, .35); }
.card:hover, .card:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px -20px var(--accent-glow), 0 0 0 1px var(--accent);
}
.card-icon {
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 30px -6px var(--accent-glow);
}
.card-icon svg { width: 36px; height: 36px; }
.card h3 { font-size: 1.4rem; }
.card > p { color: var(--muted); font-size: 1rem; }
.checklist { margin: .4rem 0 1.6rem; display: grid; gap: .55rem; font-size: .96rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .85rem; height: .5rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.card-link {
  margin-top: auto; font-family: var(--font-head); font-weight: 700; text-decoration: none;
  color: var(--accent); display: inline-flex; gap: .4rem; align-items: center;
}
.card-link span { transition: transform .25s var(--ease); }
.card-link:hover { color: var(--text); }
.card-link:hover span { transform: translateX(4px); }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cards { grid-template-columns: 1fr; } }

/* ---------- Jak pracujeme ---------- */
.process { background: linear-gradient(180deg, transparent, rgba(123, 47, 247, .08) 40%, transparent); overflow: hidden; }
.process-deco { position: absolute; left: 0; right: 0; top: 52%; width: 100%; height: 200px; z-index: -1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--teal), var(--lime));
  opacity: .6;
}
.step { position: relative; padding: 0 .4rem; }
.step-num {
  position: relative; display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--bg);
  background: var(--teal);
  box-shadow: 0 0 0 8px var(--bg), 0 0 40px -4px rgba(0, 229, 212, .7);
}
.step:nth-child(1) .step-num { background: var(--violet-light); box-shadow: 0 0 0 8px var(--bg), 0 0 40px -4px rgba(123, 47, 247, .8); }
.step:nth-child(2) .step-num { background: var(--pink); box-shadow: 0 0 0 8px var(--bg), 0 0 40px -4px rgba(255, 61, 127, .8); }
.step:nth-child(4) .step-num { background: var(--lime); box-shadow: 0 0 0 8px var(--bg), 0 0 40px -4px rgba(245, 255, 79, .6); }
.step h3 { font-size: 1.45rem; }
.step p { color: var(--muted); }
.step:not(:last-child) h3::after { content: " →"; color: var(--muted); font-weight: 400; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
  .step:not(:last-child) h3::after { content: ""; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 5.5rem; min-height: 68px; }
  .step-num { position: absolute; left: 0; top: 0; }
}

/* ---------- Proč SPRAVION ---------- */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.why-art { width: 100%; max-width: 300px; margin-top: 2.5rem; }
.why-list { display: grid; gap: 1.1rem; }
.why-item { display: flex; gap: 1.25rem; padding: 1.6rem 1.6rem; }
.why-item:hover { border-color: rgba(255, 255, 255, .35); box-shadow: 0 20px 50px -24px rgba(255, 61, 127, .55); }
.why-item h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.why-item p { color: var(--muted); margin: 0; font-size: 1rem; }
.why-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  color: var(--bg);
}
.why-icon svg { width: 28px; height: 28px; }
.why-icon--pink { background: var(--pink); box-shadow: 0 0 28px -4px rgba(255, 61, 127, .7); }
.why-icon--teal { background: var(--teal); box-shadow: 0 0 28px -4px rgba(0, 229, 212, .7); }
.why-icon--lime { background: var(--lime); box-shadow: 0 0 28px -4px rgba(245, 255, 79, .6); }
.why-icon--violet { background: var(--violet-light); box-shadow: 0 0 28px -4px rgba(123, 47, 247, .8); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .why-art { display: none; }
}
@media (max-width: 460px) { .why-item { flex-direction: column; } }

/* ---------- Kontakt ---------- */
.contact { overflow: hidden; }
.contact-blob {
  position: absolute; left: -10%; bottom: -10%; width: 600px; height: 600px; z-index: -1;
  background: radial-gradient(circle, rgba(255, 61, 127, .28), transparent 65%);
  filter: blur(40px);
}
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.contact-form { padding: clamp(1.4rem, 3vw, 2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .96rem; margin-bottom: .45rem; }
.req { color: var(--pink); }
.optional { color: var(--muted); font-weight: 400; font-size: .88rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(11, 11, 26, .55);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #9A9ABD; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 229, 212, .22);
  background: rgba(11, 11, 26, .8);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(255, 143, 179, .2); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 9px; height: 9px; pointer-events: none;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: translateY(-70%) rotate(45deg);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--text); }
.field-error { color: var(--error); font-size: .9rem; font-weight: 500; margin: .4rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-error::before { content: "⚠ "; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; }
.field-check input {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; margin: .1rem 0 0; border-radius: 7px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .45); background: rgba(11, 11, 26, .55);
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.field-check input::after {
  content: ""; width: 7px; height: 12px; border: solid var(--bg); border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .15s;
}
.field-check input:checked { background: var(--teal); border-color: var(--teal); }
.field-check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.field-check input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.field-check label { font-weight: 400; font-size: .95rem; margin: 0; cursor: pointer; }
.field-check .field-error { grid-column: 2; }

.form-summary {
  padding: 1rem 1.2rem; margin-bottom: 1.4rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--error); background: rgba(255, 61, 127, .1);
}
.form-summary p { margin: 0 0 .3rem; font-weight: 700; }
.form-summary ul { list-style: disc; padding-left: 1.2rem; }
.form-summary a { color: var(--text); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .6rem; }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { display: grid; gap: 1.1rem; }
.info-card { padding: 1.5rem 1.6rem; }
.info-card h3 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: .7rem; }
.info-card address { font-size: 1.1rem; margin-bottom: .8rem; }
.email-line { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); word-break: break-all; }
.email-link { color: var(--text); text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.email-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.map-link { font-weight: 600; display: inline-flex; gap: .35rem; }

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Patička ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), #08081a);
  padding: 4rem 0 1.5rem;
  font-size: .95rem;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--teal), var(--lime));
}
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr .9fr; gap: 2.5rem; }
.footer-brand p { color: var(--muted); margin-top: 1rem; }
.footer-title { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.footer-legal p { color: var(--muted); line-height: 1.8; }
.footer-legal strong { color: var(--text); }
.footer-nav ul { display: grid; gap: .55rem; }
.footer-nav a, .footer-brand a:not(.brand) { color: var(--text); }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Cookie lišta ---------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 720px; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap;
  padding: 1rem 1.2rem 1rem 1.4rem;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(18, 18, 40, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  font-size: .95rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 320px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 95;
  transform: translate(-50%, 150%);
  padding: .8rem 1.3rem; border-radius: 999px;
  background: var(--lime); color: var(--bg); font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(245, 255, 79, .5);
  transition: transform .35s var(--ease);
  pointer-events: none;
}
.toast:empty { visibility: hidden; }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(28px); }
.reveal.is-pending.is-visible { opacity: 1; transform: none; }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tilt.reveal { transition: opacity .8s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tilt.reveal.is-pending { transform: perspective(900px) translateY(28px); }
.tilt.reveal.is-pending.is-visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- Podstránky ---------- */
.page-hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 2rem; overflow: hidden; isolation: isolate; }
.page-hero .blob { opacity: .4; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.prose { max-width: 50rem; padding-bottom: 5rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.6rem; }
.prose p, .prose li { color: #D6D6EA; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4rem; }
.prose .glass { padding: 1.4rem 1.6rem; margin: 1.2rem 0; }

.center-page {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid; place-items: center; text-align: center;
  position: relative; overflow: hidden; isolation: isolate; padding: 3rem 0;
}
.center-page .bigcode {
  font-family: var(--font-head); font-weight: 700; line-height: .9;
  font-size: clamp(7rem, 26vw, 16rem); letter-spacing: -.06em; margin-bottom: 1rem;
}
.center-page p { color: var(--muted); max-width: 34rem; margin-inline: auto; font-size: 1.12rem; }
.center-page .hero-actions { justify-content: center; margin-top: 2rem; }
.check-badge {
  width: 110px; height: 110px; margin: 0 auto 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  box-shadow: 0 0 60px -6px rgba(0, 229, 212, .7);
}
.check-badge svg { width: 52px; height: 52px; }

/* ---------- Omezení animací ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .blob, .ticker-track, .spin-slow, .flow, .node, .glow-pulse, .code-window, .wave, .pulse-dot { animation: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
}

/* sekce s programovým fokusem bez rámečku */
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
