/* ==========================================================================
   KeyCode – styles
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #05070d;
  --bg-2: #080c17;
  --surface: rgba(140, 170, 255, 0.035);
  --surface-2: rgba(140, 170, 255, 0.07);
  --border: rgba(140, 170, 255, 0.12);
  --border-strong: rgba(140, 170, 255, 0.24);
  --text: #e9eef8;
  --muted: #98a3ba;
  --blue: #2f7bff;
  --blue-2: #66a6ff;
  --blue-deep: #1d5fe6;
  --glow: rgba(47, 123, 255, 0.45);
  --cyan: #22d3ee;
  --violet: #7b61ff;
  --ok: #4ade80;
  --err: #ff7a8a;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --z-header: 100;
  --z-progress: 110;
  --z-toast: 200;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--font-mono); font-size: .85em; padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
}
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 64px); } }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.grad {
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 50%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; touch-action: manipulation;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--blue-deep); color: #fff; box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: #2a6cf5; box-shadow: 0 14px 40px -10px rgba(47,123,255,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--blue-2); background: rgba(47,123,255,.08); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn.is-soon { cursor: default; opacity: .7; }
.btn.is-soon:hover { border-color: var(--border-strong); background: rgba(255,255,255,.02); }
.btn.is-soon:hover .ic { transform: none; }

/* ---------- Progress & header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--glow); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.nav-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; position: relative; z-index: 2; }
.brand img { height: 30px; width: auto; }
.header-cta { position: relative; z-index: 2; }
@media (max-width: 520px) { .header-cta { display: none; } }

.menu-btn {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px 10px 18px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); cursor: pointer;
  font: 700 .82rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  transition: border-color .25s, background-color .25s;
}
.menu-btn:hover { border-color: var(--blue-2); background: rgba(47,123,255,.1); }
.menu-btn-lines { display: grid; gap: 5px; width: 18px; }
.menu-btn-lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* full-screen menu */
.menu { position: fixed; inset: 0; z-index: calc(var(--z-header) - 1); visibility: hidden; pointer-events: none; }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu-bg {
  position: absolute; inset: 0; background: #04060c;
  clip-path: circle(0% at calc(100% - 60px) 36px); transition: clip-path .7s cubic-bezier(.77,0,.18,1);
}
.menu-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 10%, rgba(47,123,255,.35), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(123,97,255,.22), transparent 70%); }
.menu.is-open .menu-bg { clip-path: circle(150% at calc(100% - 60px) 36px); }
.menu-inner { position: relative; height: 100%; display: grid; align-content: safe center; gap: 40px; padding: calc(var(--header-h) + 24px) 0 32px; overflow-y: auto; }
@media (min-width: 900px) { .menu-inner { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.menu-nav { display: grid; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 6px 0; text-decoration: none; color: var(--text);
  font: 700 clamp(1.6rem, min(5.6vh, 8.5vw), 4.2rem)/1.08 var(--font-display); letter-spacing: -0.03em;
  opacity: 0; transform: translateY(40px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .25s;
}
.menu-nav a span { font: 500 .8rem var(--font-mono); color: var(--blue-2); letter-spacing: .1em; transform: translateY(-1.4em); }
.menu-nav a:hover { color: var(--blue-2); }
.menu-nav a:hover::after { content: "→"; font-size: .6em; margin-left: 4px; }
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open .menu-nav a:nth-child(1) { transition-delay: .18s; } .menu.is-open .menu-nav a:nth-child(2) { transition-delay: .22s; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: .26s; } .menu.is-open .menu-nav a:nth-child(4) { transition-delay: .30s; }
.menu.is-open .menu-nav a:nth-child(5) { transition-delay: .34s; } .menu.is-open .menu-nav a:nth-child(6) { transition-delay: .38s; }
.menu.is-open .menu-nav a:nth-child(7) { transition-delay: .42s; } .menu.is-open .menu-nav a:nth-child(8) { transition-delay: .46s; }
.menu-side { display: grid; gap: 12px; justify-items: start; opacity: 0; transition: opacity .5s .5s; }
.menu.is-open .menu-side { opacity: 1; }
.menu-side-label { font: 600 .78rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu-mail { font: 700 clamp(1.15rem, 2.4vw, 1.6rem) var(--font-display); color: var(--text); text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 4px; overflow-wrap: anywhere; }
.menu-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; min-height: 44px; }
.menu-ig:hover { color: var(--text); }
.menu-note { display: inline-flex; align-items: center; gap: 10px; color: #c9d8ff; font-weight: 600; font-size: .9rem; margin-top: 12px; }
body.menu-open { overflow: hidden; }

/* custom cursor (jen myš) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor-dot { width: 6px; height: 6px; background: #fff; translate: var(--dx, -100px) var(--dy, -100px); }
  .cursor-ring {
    width: 38px; height: 38px; border: 1.5px solid rgba(102,166,255,.7); translate: var(--rx, -100px) var(--ry, -100px);
    transition: width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s, opacity .3s;
  }
  .cursor.is-hover .cursor-ring { width: 64px; height: 64px; background: rgba(47,123,255,.14); border-color: rgba(102,166,255,.9); }
  .cursor.is-down .cursor-ring { width: 30px; height: 30px; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Split headings ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .1em; margin: -.14em 0 -.1em; }
.split .wi { display: inline-block; transform: translateY(125%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.split.is-in .wi { transform: none; }
.split .grad .wi, .split.grad .wi {
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 50%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.split .grad { background: none; color: inherit; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 32px) 0 96px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140,170,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .9; }
.a1 { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -12vw; top: -10vw; background: radial-gradient(circle, rgba(29,95,230,.55), transparent 65%); animation: drift1 18s ease-in-out infinite; }
.a2 { width: 46vw; height: 46vw; max-width: 600px; max-height: 600px; left: -14vw; bottom: -18vw; background: radial-gradient(circle, rgba(123,97,255,.35), transparent 65%); animation: drift2 22s ease-in-out infinite; }
.a3 { width: 36vw; height: 36vw; max-width: 460px; max-height: 460px; left: 38%; top: 30%; background: radial-gradient(circle, rgba(34,211,238,.16), transparent 65%); animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw, 5vw) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7vw, -4vw) scale(.92); } }

.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 32px; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(47,123,255,.08);
  font-size: .85rem; font-weight: 600; color: #c9d8ff;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.hero-title { font-size: clamp(3.4rem, 10.5vw, 7.4rem); font-weight: 800; margin: 26px 0 26px; letter-spacing: -0.045em; line-height: .96; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ic { width: 18px; height: 18px; color: var(--blue-2); }

/* hero: 3D klávesnice */
.kb-stage { position: relative; height: clamp(320px, 42vw, 540px); display: grid; place-items: center; perspective: 1400px; }
@media (max-width: 1023px) { .kb-stage { order: -1; height: clamp(250px, 66vw, 420px); } }
.kb-float { animation: kb-float 7s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes kb-float { 50% { transform: translateY(-14px); } }
.kb {
  --k: clamp(56px, 7.2vw, 94px); --tx: 0deg; --ty: 0deg;
  transform-style: preserve-3d;
  transform: rotateX(calc(34deg + var(--tx))) rotateY(var(--ty)) rotateZ(-10deg);
  transition: transform .6s var(--ease);
}
@media (max-width: 1023px) { .kb { --k: clamp(52px, 15vw, 84px); } }
.kb-plate {
  position: relative; transform-style: preserve-3d;
  padding: calc(var(--k) * .62) calc(var(--k) * .28) calc(var(--k) * .3);
  border-radius: calc(var(--k) * .34);
  background: linear-gradient(160deg, #1c2540 0%, #0c1122 65%);
  border: 1px solid rgba(140,170,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 calc(var(--k) * .2) 0 #060912, 0 calc(var(--k) * .6) calc(var(--k) * 1.1) rgba(0,0,0,.7);
}
.kb-plate::after {
  content: ""; position: absolute; inset: 6%; z-index: -1; border-radius: inherit;
  background: radial-gradient(closest-side, rgba(47,123,255,.6), transparent); filter: blur(34px);
  transform: translateZ(-60px);
}
.kb-badge {
  position: absolute; left: calc(var(--k) * .3); right: calc(var(--k) * .3); top: calc(var(--k) * .17);
  display: flex; align-items: center; gap: 8px; height: calc(var(--k) * .28);
  font: 700 calc(var(--k) * .15) var(--font-mono); letter-spacing: .12em; color: #7c88a6;
}
.kb-badge img { height: 100%; width: auto; }
.kb-led { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.kb-keys { display: grid; grid-template-columns: repeat(4, var(--k)); gap: calc(var(--k) * .14); }

.kb .key {
  --h: calc(var(--k) * .13);
  position: relative; width: var(--k); height: var(--k); padding: calc(var(--k) * .13) calc(var(--k) * .16);
  display: flex; align-items: flex-start; justify-content: flex-start;
  font: 700 calc(var(--k) * .27) var(--font-mono); color: #dbe6ff; text-decoration: none; cursor: pointer;
  border-radius: calc(var(--k) * .18); border: 1px solid rgba(140,170,255,.2);
  background: linear-gradient(180deg, #232d4b, #121a30);
  box-shadow: 0 var(--h) 0 #070a14, 0 calc(var(--h) + 10px) 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .09s, box-shadow .09s, background .25s, color .25s, border-color .25s;
  touch-action: manipulation;
}
.kb .key::before {
  content: ""; position: absolute; inset: 12% 11% 20%; border-radius: calc(var(--k) * .12); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 70%);
}
.kb .key.is-wave, .kb .key.is-lit {
  color: #fff; border-color: var(--blue-2); background: linear-gradient(180deg, #2c62e0, #173a91);
  box-shadow: 0 var(--h) 0 #0b1f55, 0 0 36px rgba(47,123,255,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.kb .key.is-down {
  transform: translateY(calc(var(--h) - 2px));
  box-shadow: 0 2px 0 #070a14, 0 4px 10px rgba(0,0,0,.5), 0 0 34px rgba(47,123,255,.7);
  color: #fff; border-color: var(--blue-2);
}
.kb .key-enter { font-size: calc(var(--k) * .16); letter-spacing: .04em; color: #fff; border-color: rgba(102,166,255,.6); background: linear-gradient(180deg, #2a6cf5, #1a49b8); box-shadow: 0 var(--h) 0 #0b1f55, 0 calc(var(--h) + 10px) 24px rgba(29,95,230,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.kb .key-enter .ic { position: absolute; right: 14%; bottom: 20%; width: 34%; height: 34%; }
.kb .key-enter:hover { background: linear-gradient(180deg, #3a7bff, #1f55d0); }
.hero.is-unlocked .kb-plate { animation: kb-flash 1.2s var(--ease); }
@keyframes kb-flash { 30% { border-color: var(--blue-2); box-shadow: 0 0 0 1px var(--blue-2), 0 0 80px rgba(47,123,255,.8); } }

.scribble {
  position: absolute; right: 4%; bottom: 4%; display: flex; flex-direction: column-reverse; align-items: flex-start;
  font: 600 clamp(1.15rem, 1.8vw, 1.45rem)/1 "Caveat", cursive; color: #a9c4ff; transform: rotate(-6deg); pointer-events: none;
}
.scribble-arrow { width: 64px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); margin: 0 0 4px -8px; }
@media (max-width: 1023px) { .scribble { right: 0; bottom: -2px; } .scribble-arrow { display: none; } }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-desktop { display: none; } }

.scroll-down {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text); border: 1px solid var(--border-strong); background: rgba(255,255,255,.03);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-down:hover { border-color: var(--blue-2); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 1023px) { .scroll-down { display: none; } }

/* ---------- Live: editor + preview ---------- */
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3247; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }

.live { position: relative; }
.live .editor { width: 100%; }
.live .preview { width: 88%; margin: -60px 0 0 auto; }
@media (min-width: 760px) {
  .live { min-height: 470px; }
  .live .editor { width: 62%; }
  .live .preview { position: absolute; right: 0; top: 60px; width: 48%; margin: 0; }
}
.editor {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  background: rgba(10, 14, 26, .92); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.editor-bar, .preview-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.editor-file { font: 500 .78rem var(--font-mono); color: var(--muted); }
.editor-status { margin-left: auto; white-space: nowrap; font: 500 .72rem var(--font-mono); color: var(--blue-2); display: inline-flex; align-items: center; gap: 6px; }
.editor-status.is-done { color: var(--ok); }
.editor-code { margin: 0; padding: 16px 16px 20px; min-height: 360px; font: 400 .82rem/1.75 var(--font-mono); color: #c7d2e8; white-space: pre-wrap; word-break: break-word; counter-reset: ln; }
.editor-code .ln { display: block; padding-left: 2.4em; position: relative; }
.editor-code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 1.6em; text-align: right; color: #3b4560; }
.editor-code .caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: -2px; background: var(--blue-2); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tok-tag { color: #6fb0ff; } .tok-attr { color: #c39bff; } .tok-str { color: #8be3a8; } .tok-prop { color: #ffb86b; } .tok-txt { color: #e9eef8; }

.preview {
  position: relative; z-index: 2; border-radius: 14px; overflow: hidden; background: #f7f8fb; color: #10131c;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  --brand: #94a3b8;
}
.preview-bar { background: #e9ecf3; border-bottom-color: #dde1ea; padding: 9px 12px; }
.preview-bar .dots i { width: 8px; height: 8px; }
.preview-url { flex: 1; font: 500 .68rem var(--font-mono); color: #5b6478; background: #fff; border-radius: 6px; padding: 4px 8px; text-align: center; }
.preview-body { padding: 16px 18px 20px; min-height: 270px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.pv-logo { font: 800 .86rem var(--font-display); color: var(--brand); transition: color .6s; }
.pv-nav { display: inline-flex; gap: 6px; }
.pv-nav i { width: 22px; height: 6px; border-radius: 3px; background: #cfd5e1; }
.pv-hero { margin-top: 28px; display: grid; gap: 10px; justify-items: start; }
.pv-title { font: 800 1.3rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.pv-sub { font-size: .8rem; color: #5b6478; }
.pv-cta { font: 700 .74rem var(--font-body); color: #fff; background: var(--brand); padding: 8px 14px; border-radius: 999px; transition: background-color .6s; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.pv-cards i { height: 50px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 14%, #eef1f6); transition: background-color .6s; }
.preview [data-pv], .preview [data-pv-nav], .pv-cards { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease-spring); }
.preview .is-on { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 600 clamp(1.1rem, 2.4vw, 1.5rem) var(--font-display); color: #c3cde3; white-space: nowrap; letter-spacing: -0.01em; }
.marquee-track .ic { color: var(--blue); width: 16px; height: 16px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* posun přesně o jednu kopii (o třetinu délky + jednu mezeru) */
@keyframes marquee { to { transform: translateX(calc((-100% - 28px) / 3)); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.55fr 1fr; align-items: end; gap: 48px; } }
.eyebrow { font: 600 .78rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.section-note { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }

/* cards with spotlight */
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: clamp(24px, 3vw, 32px); overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .35s var(--ease), background-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(47,123,255,.16), transparent 65%);
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(47,123,255,.12); border: 1px solid rgba(47,123,255,.3); color: var(--blue-2);
  box-shadow: 0 0 24px -6px var(--glow);
}
.card-icon .ic { width: 22px; height: 22px; }

.services { display: grid; gap: 16px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.service { display: flex; flex-direction: column; }
.service:hover { transform: translateY(-4px); }
.service-num { position: absolute; top: 26px; right: 28px; font: 700 .85rem var(--font-mono); color: #3a4867; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #c9d2e4; font-size: .95rem; }
.ticks .ic { width: 18px; height: 18px; color: var(--blue-2); margin-top: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-weight: 700; text-decoration: none; min-height: 44px; }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Before / After ---------- */
.ba {
  --pos: 50%;
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong);
  height: clamp(400px, 52vw, 640px); user-select: none; -webkit-user-select: none;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
}
.ba-pane { position: absolute; inset: 0; }
.ba-after { z-index: 0; }
.ba-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle, .ba-label { z-index: 2; }
.ba-range { z-index: 3; }

.ba-after { background: radial-gradient(ellipse at 80% 0%, #3b2a1a 0%, #17110c 55%), #17110c; color: #f6efe6; padding: clamp(18px, 3vw, 36px) clamp(18px, 4vw, 48px); display: flex; flex-direction: column; font-family: var(--font-body); }
.ba-after-nav { display: flex; align-items: center; gap: 16px; font-size: clamp(.7rem, 1.2vw, .9rem); }
.ba-after-nav b { font-family: var(--font-display); }
.ba-after-nav span { margin-left: auto; color: #c9b9a6; }
.ba-after-nav em { font-style: normal; background: #e3a35f; color: #1a120b; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.ba-after-main { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; padding: 16px 0; }
.ba-after-hero { max-width: 560px; }
.ba-after-photo {
  position: relative; height: 85%; min-height: 140px; border-radius: 18px; overflow: hidden; border: 1px solid #5a4632;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,214,160,.35), transparent 55%),
    repeating-linear-gradient(90deg, #7a5233 0 34px, #6b4629 34px 36px, #8a5e3b 36px 74px, #6b4629 74px 76px),
    #7a5233;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.ba-after-photo::before { content: ""; position: absolute; left: 0; right: 0; top: 38%; height: 10%; background: linear-gradient(180deg, #d9c2a3, #b89b78); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.ba-after-photo::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(0,0,0,.06) 22px 23px); }
.ba-after-photo span { position: absolute; left: 12px; bottom: 12px; z-index: 1; font: 600 clamp(.6rem, 1vw, .78rem) var(--font-body); background: rgba(23,17,12,.8); color: #f6efe6; padding: 6px 10px; border-radius: 8px; }
@media (max-width: 640px) { .ba-after-main { grid-template-columns: 1fr; } .ba-after-photo { height: 120px; min-height: 0; } }
.ba-after-eyebrow { color: #e3a35f; font: 600 clamp(.62rem, 1vw, .78rem) var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.ba-after-title { font: 700 clamp(1.3rem, 3.6vw, 2.8rem)/1.08 var(--font-display); letter-spacing: -0.03em; margin: 10px 0 12px; }
.ba-after-text { color: #c9b9a6; font-size: clamp(.75rem, 1.3vw, 1rem); max-width: 44ch; }
.ba-after-btns { display: flex; gap: 10px; margin-top: 18px; font-size: clamp(.68rem, 1.1vw, .88rem); }
.ba-after-btns em { font-style: normal; background: #e3a35f; color: #1a120b; font-weight: 700; padding: 9px 16px; border-radius: 10px; }
.ba-after-btns i { font-style: normal; border: 1px solid #5a4632; padding: 9px 16px; border-radius: 10px; }
.ba-after-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ba-after-cards span { border-radius: 12px; padding: clamp(10px, 2vw, 22px) 12px 10px; font: 600 clamp(.66rem, 1.1vw, .85rem) var(--font-display); background: linear-gradient(160deg, #4a3522, #2a1e14); border: 1px solid #4b3826; }

.ba-before { background: #f3efd8; color: #000080; font-family: "Times New Roman", Times, serif; padding: 0; overflow: hidden; }
.old-marquee { background: #ff0; color: #f00; font: bold 13px "Comic Sans MS", "Comic Sans", cursive; padding: 4px 0; overflow: hidden; white-space: nowrap; border-bottom: 3px ridge #c0c0c0; }
.old-marquee span { display: inline-block; padding-left: 100%; animation: oldmarquee 14s linear infinite; }
@keyframes oldmarquee { to { transform: translateX(-100%); } }
.old-title { text-align: center; font: bold clamp(1.2rem, 3.4vw, 2.4rem) "Times New Roman", serif; color: #800000; margin: 14px 0 8px; text-shadow: 2px 2px 0 #c0c0c0; }
.old-table { margin: 0 auto; border-collapse: separate; border: 2px outset #c0c0c0; background: #c0c0c0; font-size: clamp(.7rem, 1.3vw, .95rem); }
.old-table td { border: 2px outset #e0e0e0; padding: 3px 10px; color: #0000ee; }
.old-body { display: flex; gap: 16px; padding: 18px clamp(14px, 4vw, 48px); align-items: flex-start; font-size: clamp(.78rem, 1.4vw, 1.05rem); color: #000; }
.old-img { flex: none; width: clamp(80px, 16vw, 180px); aspect-ratio: 4/3; border: 3px inset #999; background: repeating-linear-gradient(45deg, #ccc 0 6px, #ddd 6px 12px); display: grid; place-items: center; font: 11px Arial, sans-serif; color: #666; }
.old-blink { color: #f00; font-weight: bold; margin-top: 10px; animation: blink 1s steps(1) infinite; }
.old-links { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; color: #0000ee; }
.old-construction { margin: 18px auto 0; width: fit-content; padding: 4px 14px; font: bold clamp(.65rem, 1.1vw, .85rem) Arial, sans-serif; color: #000; background: repeating-linear-gradient(-45deg, #ffd400 0 12px, #111 12px 24px); text-shadow: 0 0 3px #ffd400, 0 0 3px #ffd400, 0 0 3px #ffd400; }
.old-counter { position: absolute; bottom: 44px; left: 0; right: 0; text-align: center; font: clamp(.62rem, 1vw, .78rem) Arial, sans-serif; color: #444; }
.old-counter b { background: #000; color: #0f0; font-family: "Courier New", monospace; padding: 0 4px; }

.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(47,123,255,.9); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-deep); color: #fff; border: 3px solid #fff; box-shadow: 0 8px 30px rgba(0,0,0,.5), 0 0 0 6px rgba(47,123,255,.25); transition: transform .2s var(--ease-spring); }
.ba:hover .ba-handle span, .ba-range:focus-visible ~ .ba-handle span { transform: scale(1.08); }
.ba-label { position: absolute; bottom: 14px; font: 700 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; padding: 6px 10px; border-radius: 8px; background: rgba(5,7,13,.75); color: #fff; pointer-events: none; }
.ba-label-l { left: 14px; } .ba-label-r { right: 14px; }
.ba.is-hinting .ba-before { transition: clip-path .45s var(--ease); }
.ba.is-hinting .ba-handle { transition: left .45s var(--ease); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:has(.ba-range:focus-visible) { outline: 2px solid var(--blue-2); outline-offset: 4px; }
@media (max-width: 640px) { .ba { aspect-ratio: auto; height: 520px; } .ba-after-cards { display: none; } .ba-after-nav span { display: none; } .ba-after-nav em { margin-left: auto; } }

.ba-layout { display: grid; gap: 20px; }
@media (min-width: 1000px) { .ba-layout { grid-template-columns: 1fr 300px; align-items: stretch; } }
.ba-browser { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: #0d1220; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.ba-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ba-url { flex: 1; max-width: 320px; margin-inline: auto; text-align: center; font: 500 .74rem var(--font-mono); color: var(--muted); background: rgba(255,255,255,.04); border-radius: 6px; padding: 4px 8px; }
.ba-browser .ba { border: 0; border-radius: 0; box-shadow: none; height: clamp(400px, 38vw, 540px); }
@media (max-width: 640px) { .ba-browser .ba { height: 520px; } }
.ba-panel { display: flex; flex-direction: column; gap: 22px; }
.ba-panel-label { font: 600 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ba-meter p { display: flex; justify-content: space-between; align-items: baseline; color: #c9d6f0; font-weight: 600; margin-bottom: 10px; }
.ba-meter b { font: 800 1.7rem var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.ba-meter-track { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.ba-meter-track span { display: block; height: 100%; width: calc(var(--p, .5) * 100%); border-radius: inherit; background: linear-gradient(90deg, #ff7a8a, #febc2e 50%, var(--ok)); background-size: calc(100% / var(--p, .5)) 100%; transition: width .15s; }
.ba-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ba-checks li { display: flex; gap: 12px; align-items: center; color: #6f7a93; font-weight: 500; transition: color .3s; }
.ba-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); color: transparent; transform: scale(.85); transition: transform .35s var(--ease-spring), background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.ba-tick .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.ba-checks li.is-on { color: var(--text); }
.ba-checks li.is-on .ba-tick { background: var(--ok); border-color: var(--ok); color: #05210f; transform: scale(1); box-shadow: 0 0 16px rgba(74,222,128,.45); }
.ba-panel-hint { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--blue-2); font-weight: 600; font-size: .92rem; }
.ba-panel-hint .ic { width: 18px; height: 18px; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-big { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } .bento-big { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; } }
.chat { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.msg-in { background: var(--surface-2); color: #d5dcec !important; border-bottom-left-radius: 4px; }
.msg-out { justify-self: end; background: var(--blue-deep); color: #fff !important; border-bottom-right-radius: 4px; display: inline-flex; gap: 6px; align-items: center; }
.msg-out .ic { width: 16px; height: 16px; }

/* ---------- Case study ---------- */
.case { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .case { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 600 .74rem var(--font-mono); color: #c9d8ff; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: rgba(47,123,255,.06); }
.case-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.case-copy > p { color: var(--muted); font-size: 1.05rem; }
.case-copy .btn { margin-top: 32px; }

.case-visual { position: relative; padding-bottom: 40px; padding-right: clamp(40px, 9vw, 90px); }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: #0d1220; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(47,123,255,.35); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.browser-url { flex: 1; text-align: center; font: 500 .72rem var(--font-mono); color: var(--muted); background: rgba(255,255,255,.04); border-radius: 6px; padding: 4px 8px; max-width: 280px; margin-inline: auto; }
.browser-screen { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; container-type: size; cursor: ns-resize; }
.browser-screen img { width: 100%; transition: transform 9s cubic-bezier(.45,.05,.55,.95); }
.browser-screen:hover img, .browser-screen:focus-visible img, .browser-screen.is-auto img { transform: translateY(calc(-100% + 100cqh)); }
.phone {
  position: absolute; right: 0; bottom: 0; width: clamp(120px, 24%, 190px); border-radius: 26px; padding: 7px;
  background: #0b0f1b; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.9), 0 0 40px -10px rgba(47,123,255,.4);
  transform: rotate(4deg); transition: transform .5s var(--ease-spring);
}
.phone img { border-radius: 20px; }
.case-visual:hover .phone { transform: rotate(0) translateY(-6px); }

.next-slot {
  margin-top: 56px; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--radius);
  border: 1.5px dashed var(--border-strong); text-decoration: none; color: var(--text);
  transition: border-color .3s, background-color .3s;
}
.next-slot:hover { border-color: var(--blue-2); background: rgba(47,123,255,.05); }
.next-slot strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 2px; }
.next-slot > span:nth-child(2) > span { color: var(--muted); font-size: .95rem; }
.next-plus { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--blue-2); color: var(--blue-2); transition: transform .5s var(--ease-spring); }
.next-slot:hover .next-plus { transform: rotate(90deg); }
.next-arrow { margin-left: auto; color: var(--blue-2); transition: transform .25s var(--ease); }
.next-slot:hover .next-arrow { transform: translateX(4px); }
@media (max-width: 560px) { .next-arrow { display: none; } .next-slot { padding: 20px; } }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 20px; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1.5fr 1fr; grid-template-areas: "pk total" "opt total"; } .calc-packages { grid-area: pk; } .calc-options { grid-area: opt; } .calc-total { grid-area: total; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-legend { font: 600 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding: 0; }
.calc-hint { text-transform: none; letter-spacing: 0; color: #6f7a93; font-family: var(--font-body); font-weight: 500; }
.calc-packages { display: grid; gap: 12px; }
@media (min-width: 640px) { .calc-packages { grid-template-columns: repeat(3, 1fr); } .calc-packages .calc-legend { grid-column: 1 / -1; } }
.pkg { position: relative; cursor: pointer; }
.pkg input, .extra input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-body {
  display: grid; gap: 4px; height: 100%; padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.pkg-body .ic { color: var(--blue-2); margin-bottom: 10px; width: 24px; height: 24px; }
.pkg-name { font: 700 1.05rem var(--font-display); }
.pkg-desc { color: var(--muted); font-size: .9rem; }
.pkg-price { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.pkg-price b { font: 700 1.25rem var(--font-display); color: var(--text); }
.pkg:hover .pkg-body { border-color: var(--border-strong); }
.pkg input:checked + .pkg-body { border-color: var(--blue); background: rgba(47,123,255,.1); box-shadow: 0 0 0 1px var(--blue), 0 16px 40px -20px var(--glow); }
.pkg input:focus-visible + .pkg-body { outline: 2px solid var(--blue-2); outline-offset: 3px; }

.calc-options { display: grid; gap: 28px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.calc-pages { transition: opacity .3s; }
.calc-pages.is-disabled { opacity: .4; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; }
.step-btn { width: 52px; height: 48px; background: transparent; border: 0; cursor: pointer; font-size: 1.3rem; color: var(--text); transition: background-color .2s; touch-action: manipulation; }
.step-btn:hover:not(:disabled) { background: rgba(47,123,255,.12); }
.step-btn:disabled { cursor: not-allowed; opacity: .4; }
.step-val { min-width: 48px; text-align: center; font: 700 1.1rem var(--font-mono); }
.extras { display: grid; gap: 10px; }
@media (min-width: 560px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); transition: border-color .2s, background-color .2s;
}
.extra::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); transition: background-color .2s, border-color .2s; background: center / 14px no-repeat; }
.extra:has(input:checked) { border-color: var(--blue); background: rgba(47,123,255,.08); }
.extra:has(input:checked)::before { background-color: var(--blue); border-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.extra:has(input:focus-visible) { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.extra span { font-weight: 600; font-size: .95rem; }
.extra-sub { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.extra em { margin-left: auto; font-style: normal; font: 500 .8rem var(--font-mono); color: var(--muted); white-space: nowrap; }
.included { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.included .ic { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }

.calc-total {
  position: relative; padding: 32px 28px; border-radius: var(--radius); overflow: hidden; align-self: stretch;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(47,123,255,.35), transparent 60%), #0b1224;
  border: 1px solid rgba(47,123,255,.4);
}
@media (min-width: 1000px) { .calc-total { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.calc-summary { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.calc-summary li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(169,196,255,.18); font-size: .92rem; color: #c9d6f0; }
.calc-summary li span:last-child { font: 500 .82rem var(--font-mono); color: #a9c4ff; white-space: nowrap; }
.calc-total-label { margin-top: 24px; font: 600 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #a9c4ff; }
.calc-total-num { font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-total-num .from, .calc-total-num .cur { font-size: .45em; font-weight: 600; color: #a9c4ff; letter-spacing: 0; }
.calc-total-note { color: #b4c0d8; font-size: .9rem; margin-bottom: 12px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; position: relative; --fill: 0; }
.steps::before, .steps::after { content: ""; position: absolute; border-radius: 2px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps::before { left: 28px; right: 28px; top: 27px; height: 2px; background: var(--border); }
  .steps::after { left: 28px; right: 28px; top: 27px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: 0 50%; transform: scaleX(var(--fill)); box-shadow: 0 0 12px var(--glow); }
}
@media (max-width: 899px) {
  .steps { padding-left: 72px; }
  .steps::before { left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--border); }
  .steps::after { left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--blue-2)); transform-origin: 50% 0; transform: scaleY(var(--fill)); }
  .step-dot { position: absolute; left: -72px; top: 0; }
}
.step { position: relative; }
.step-dot {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--bg-2); border: 1.5px solid var(--border-strong); color: var(--muted); transition: border-color .4s, color .4s, box-shadow .4s, background-color .4s;
}
.step.is-reached .step-dot { border-color: var(--blue); color: #fff; background: var(--blue-deep); box-shadow: 0 0 0 6px rgba(47,123,255,.15), 0 0 30px -4px var(--glow); }
.step-num { font: 600 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--blue-2); margin-bottom: 6px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p:not(.step-num) { color: var(--muted); font-size: .96rem; }
@media (max-width: 899px) { .step-dot { margin-bottom: 0; } .step-num { padding-top: 4px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-grid .section-note { margin-top: 18px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .25s, background-color .25s; }
.faq details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 18px 22px;
  font: 600 1.05rem var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { position: relative; flex: none; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform .3s var(--ease), background-color .3s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--text); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] .faq-ic { background: var(--blue-deep); border-color: var(--blue); transform: rotate(180deg); }
.faq details[open] .faq-ic::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; border-top: 1px solid var(--border); }
.contact-glow { position: absolute; width: 900px; height: 600px; left: 50%; bottom: -320px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(47,123,255,.35), transparent 65%); filter: blur(20px); pointer-events: none; }
.contact-grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact-copy h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 20px; }
.contact-links { display: grid; gap: 12px; margin-top: 36px; max-width: 440px; }
.contact-link {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.contact-link:hover { border-color: var(--blue-2); background: rgba(47,123,255,.06); transform: translateY(-2px); }
.contact-link strong { display: block; font-weight: 700; }
.cl-sub { color: var(--muted); font-size: .85rem; }
.cl-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,123,255,.12); color: var(--blue-2); flex: none; }
.cl-copy { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
.contact-mark { width: 120px; margin-top: 56px; opacity: .9; filter: drop-shadow(0 0 30px rgba(47,123,255,.5)); animation: float-mark 6s ease-in-out infinite; }
@keyframes float-mark { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (max-width: 959px) { .contact-mark { display: none; } }

.form { display: grid; gap: 20px; background: rgba(10,14,26,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.form::before { display: none; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.req { color: var(--blue-2); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; font: 400 1rem var(--font-body); color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #66718a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.2); background: rgba(47,123,255,.04); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.err { color: var(--err); font-size: .85rem; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .92rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.chip:hover span { color: var(--text); border-color: var(--blue-2); }
.chip input:checked + span { background: var(--blue-deep); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: .95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); } .form-status.bad { color: var(--err); }
.form-legal { color: #6f7a93; font-size: .82rem; margin-top: -8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 10px 0; }
.footer-nav a:hover { color: var(--text); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-contact a:hover { color: var(--text); }
.footer-contact .ic { width: 18px; height: 18px; color: var(--blue-2); }
.footer-copy { margin-left: auto; color: #6f7a93; font-size: .85rem; }
@media (max-width: 720px) { .footer-copy { margin-left: 0; width: 100%; } }

/* ---------- Toast / easter egg ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); max-width: calc(100% - 32px);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease-spring), opacity .3s;
  padding: 14px 20px; border-radius: 14px; background: #0f1830; border: 1px solid var(--blue); color: var(--text);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8), 0 0 40px -10px var(--glow); font-weight: 600; text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .browser-screen img { transform: none !important; }
}
