/* =============================================================
   Triste media - firemná prezentácia
   Dizajnový jazyk: Apple Liquid Glass · koncept "Layers of craft"
   Žiadne externé závislosti. Light + Dark. Mobile-first.
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
  /* Type — systémový SF Pro stack, 0 sieťových závislostí */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code",
    Menlo, Consolas, monospace;

  /* Type scale (1.20 minor third, base 16px) */
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.85rem;
  --fs-2xl: 2.4rem;
  --fs-3xl: clamp(2.6rem, 6vw, 4.4rem);

  /* Spacing — 4 / 8 grid */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 280ms;

  /* Z layers */
  --z-nav: 100;
  --z-modal: 1000;

  /* ---- LIGHT THEME (default) ---- */
  --bg: #f4f6f9;
  --bg-2: #eaedf3;
  --fg: #0b0e14;
  --fg-muted: #5a6373;
  --fg-faint: #8a92a1;

  --surface: rgba(255, 255, 255, 0.66);
  --surface-solid: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.85);
  --hairline: rgba(11, 14, 20, 0.1);
  --hairline-strong: rgba(11, 14, 20, 0.16);

  --accent-a: #4b5bff; /* indigo */
  --accent-b: #19b6e8; /* cyan   */
  --accent-ink: #2b34c9; /* text-safe accent on light */
  --on-accent: #ffffff;

  --grad-aurora: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  --grad-text: linear-gradient(120deg, #3340e6 0%, #1f8fd0 60%, #16b6e8 100%);

  /* Glass shadow & sheen */
  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.06),
    0 2px 8px rgba(11, 14, 20, 0.05);
  --shadow-md: 0 6px 20px rgba(11, 14, 20, 0.08),
    0 2px 6px rgba(11, 14, 20, 0.05);
  --shadow-lg: 0 24px 60px rgba(11, 14, 20, 0.14),
    0 8px 20px rgba(11, 14, 20, 0.08);
  --shadow-accent: 0 12px 34px rgba(75, 91, 255, 0.32);
  --sheen: rgba(255, 255, 255, 0.55);

  --blur: 18px;

  /* Ambient aurora tint (behind hero only) */
  --aurora-1: rgba(75, 91, 255, 0.22);
  --aurora-2: rgba(25, 182, 232, 0.2);
}

[data-theme="dark"] {
  --bg: #0a0c11;
  --bg-2: #0e1218;
  --fg: #eef1f6;
  --fg-muted: #9aa4b4;
  --fg-faint: #6b7585;

  --surface: rgba(22, 26, 34, 0.55);
  --surface-solid: #14181f;
  --surface-strong: rgba(26, 31, 40, 0.8);
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.2);

  --accent-a: #6e79ff;
  --accent-b: #37c7f2;
  --accent-ink: #aeb6ff;
  --on-accent: #0a0c11;

  --grad-text: linear-gradient(120deg, #8e97ff 0%, #5cc8f5 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 12px 34px rgba(110, 121, 255, 0.4);
  --sheen: rgba(255, 255, 255, 0.14);

  --aurora-1: rgba(110, 121, 255, 0.28);
  --aurora-2: rgba(55, 199, 242, 0.22);
}

/* Auto dark for users without manual toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c11;
    --bg-2: #0e1218;
    --fg: #eef1f6;
    --fg-muted: #9aa4b4;
    --fg-faint: #6b7585;
    --surface: rgba(22, 26, 34, 0.55);
    --surface-solid: #14181f;
    --surface-strong: rgba(26, 31, 40, 0.8);
    --hairline: rgba(255, 255, 255, 0.12);
    --hairline-strong: rgba(255, 255, 255, 0.2);
    --accent-a: #6e79ff;
    --accent-b: #37c7f2;
    --accent-ink: #aeb6ff;
    --on-accent: #0a0c11;
    --grad-text: linear-gradient(120deg, #8e97ff 0%, #5cc8f5 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 12px 34px rgba(110, 121, 255, 0.4);
    --sheen: rgba(255, 255, 255, 0.14);
    --aurora-1: rgba(110, 121, 255, 0.28);
    --aurora-2: rgba(55, 199, 242, 0.22);
  }
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

/* Ambient page background — tichý, NIE sklenený */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}
body::after {
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 90vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      42% 55% at 22% 18%,
      var(--aurora-1) 0%,
      transparent 70%
    ),
    radial-gradient(40% 50% at 82% 8%, var(--aurora-2) 0%, transparent 70%);
  filter: blur(10px);
  opacity: 0.9;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--accent-a);
  color: #fff;
}

/* -------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section {
  padding-block: var(--sp-9);
  position: relative;
}

.section--tight {
  padding-block: var(--sp-8);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-aurora);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--surface-solid);
  color: var(--fg);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  z-index: var(--z-modal);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* -------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.h-display {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.h-section {
  font-size: clamp(1.9rem, 3.6vw, var(--fs-2xl));
  margin-bottom: var(--sp-4);
}

.lead {
  font-size: var(--fs-md);
  color: var(--fg-muted);
  line-height: 1.6;
}

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted {
  color: var(--fg-muted);
}

/* -------------------------------------------------------------
   5. GLASS SURFACE (the core material)
   ------------------------------------------------------------- */
.glass {
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
/* top sheen highlight — light catching the glass edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sheen) 30%,
    var(--sheen) 70%,
    transparent
  );
  opacity: 0.9;
}

/* Fallback when backdrop-filter unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--surface-strong);
  }
}

/* -------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.78rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  min-height: 46px;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--grad-aurora);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(75, 91, 255, 0.42);
}

.btn-ghost {
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--fg);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent-a);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

/* -------------------------------------------------------------
   7. NAVIGATION
   ------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-bottom-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--grad-aurora);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-accent);
}
.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--fg);
  background: var(--hairline);
}
.nav-links a.active {
  color: var(--fg);
  background: var(--hairline);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--fg);
  transition: border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.theme-toggle:hover {
  border-color: var(--accent-a);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

.nav-cta {
  display: none;
}

/* Prepínač jazyka SK / EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 0 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang-opt:hover {
  color: var(--fg);
}
.lang-opt.is-active {
  background: var(--grad-aurora);
  color: #fff;
}

.nav-burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--fg);
}
.nav-burger svg {
  width: 22px;
  height: 22px;
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: calc(var(--z-nav) - 1);
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease), visibility var(--dur);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.mobile-menu a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--fg);
}
.mobile-menu a:hover {
  background: var(--hairline);
}
.mobile-menu .btn {
  margin-top: var(--sp-3);
}

@media (min-width: 940px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-burger {
    display: none;
  }
}

/* -------------------------------------------------------------
   8. HERO  — signature: layered glass stack
   ------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + var(--sp-8));
  padding-bottom: var(--sp-9);
  position: relative;
}
.hero-grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: var(--sp-5);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.hero h1 {
  margin-bottom: var(--sp-5);
}
.hero .lead {
  max-width: 540px;
  margin-bottom: var(--sp-6);
  font-size: var(--fs-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline);
}
.trust-item .num {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.trust-item .lbl {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

/* The layered stack visual */
.hero-visual {
  position: relative;
  height: 440px;
  perspective: 1400px;
}
.layer {
  position: absolute;
  left: 50%;
  width: min(380px, 84%);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  transform-style: preserve-3d;
  will-change: transform;
}
.layer-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.layer-ic {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad-aurora);
  color: #fff;
}
.layer-ic svg {
  width: 20px;
  height: 20px;
}
.layer-title {
  font-weight: 600;
  font-size: var(--fs-base);
}
.layer-sub {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.layer-bars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--hairline-strong);
}
.bar.accent {
  background: var(--grad-aurora);
  opacity: 0.9;
}
.bar.w-90 { width: 90%; }
.bar.w-70 { width: 70%; }
.bar.w-50 { width: 50%; }
.bar.w-40 { width: 40%; }

.layer-3 {
  top: 8px;
  transform: translateX(-50%) translateX(-58px) translateY(0) rotate(-3deg);
  opacity: 0.92;
}
.layer-2 {
  top: 120px;
  transform: translateX(-50%) translateX(0) rotate(1.5deg);
}
.layer-1 {
  top: 232px;
  transform: translateX(-50%) translateX(58px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* -------------------------------------------------------------
   9. SERVICES
   ------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.svc-card {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--hairline-strong);
}
.svc-ic {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent-a) 14%, transparent);
}
.svc-ic svg {
  width: 26px;
  height: 26px;
}
.svc-card h3 {
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
}
.svc-card p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   10. PROCESS — numbered sequence (numbering carries meaning)
   ------------------------------------------------------------- */
.process {
  position: relative;
}
.proc-track {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) {
  .proc-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .proc-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proc-step {
  padding: var(--sp-5);
  position: relative;
}
.proc-num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.proc-num::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: var(--fs-lg);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proc-step h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}
.proc-step p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

/* -------------------------------------------------------------
   11. TECH STACK
   ------------------------------------------------------------- */
.stack-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stack-cat {
  padding: var(--sp-5);
}
.stack-cat-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.stack-cat-head .svc-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
}
.stack-cat-head .svc-ic svg {
  width: 22px;
  height: 22px;
}
.stack-cat h3 {
  font-size: var(--fs-base);
  font-weight: 600;
}
.stack-cat p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.6;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.pill {
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--hairline);
  border: 1px solid var(--hairline);
  color: var(--fg);
}

/* -------------------------------------------------------------
   12. PORTFOLIO
   ------------------------------------------------------------- */
.work-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.work-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.work-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-a) 22%, var(--bg-2)),
    color-mix(in srgb, var(--accent-b) 22%, var(--bg-2))
  );
}
.work-thumb svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.9;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 30% 20%,
    rgba(255, 255, 255, 0.25),
    transparent 70%
  );
}
.work-body {
  padding: var(--sp-5);
}
.work-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.work-body h3 {
  font-size: var(--fs-md);
  margin: var(--sp-2) 0;
}
.work-body p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.work-result {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg);
}
.work-result svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--accent-ink);
}

/* -------------------------------------------------------------
   13. ABOUT + VALUES
   ------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}
@media (min-width: 920px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.about-text p {
  color: var(--fg-muted);
  margin-bottom: var(--sp-4);
  max-width: 56ch;
}
.values {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}
.value {
  padding: var(--sp-4);
}
.value h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.value h4 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-ink);
  flex: none;
}
.value p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

/* -------------------------------------------------------------
   14. WHY US
   ------------------------------------------------------------- */
.why-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.why-card {
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.why-ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--grad-aurora);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.why-ic svg {
  width: 22px;
  height: 22px;
}
.why-card h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}
.why-card p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

/* -------------------------------------------------------------
   15. TESTIMONIALS
   ------------------------------------------------------------- */
.quote-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* dvojica referencií - vyvážene a na stred */
  .quote-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-inline: auto;
  }
}
.quote {
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.quote-mark {
  font-size: 3rem;
  line-height: 0.6;
  font-weight: 700;
  color: var(--accent-a);
  opacity: 0.5;
  font-family: Georgia, serif;
}
.quote p {
  font-size: var(--fs-base);
  flex: 1;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: #fff;
  background: var(--grad-aurora);
}
.quote-author .name {
  font-weight: 600;
  font-size: var(--fs-sm);
}
.quote-author .role {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

/* -------------------------------------------------------------
   16. CONTACT
   ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-panel {
  padding: var(--sp-6);
}
.contact-panel h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.contact-panel > .muted {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
}

.field {
  margin-bottom: var(--sp-4);
}
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}
.field label .req {
  color: var(--accent-ink);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--fg);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: var(--surface-strong);
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-a);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-a) 18%, transparent);
}
.field-row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-note {
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  margin-top: var(--sp-3);
}
/* Honeypot proti spamu - skryté pred ľuďmi aj asistenčnými technológiami */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: color-mix(in srgb, #2ecc71 16%, transparent);
  color: var(--fg);
  border: 1px solid color-mix(in srgb, #2ecc71 40%, transparent);
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.error {
  background: color-mix(in srgb, var(--color-destructive, #dc2626) 12%, transparent);
  border-color: color-mix(in srgb, #dc2626 40%, transparent);
}

/* Company info block — the Apple-critical data */
.company-info {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.info-row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.info-ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-a) 14%, transparent);
  color: var(--accent-ink);
}
.info-ic svg {
  width: 22px;
  height: 22px;
}
.info-row .label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 2px;
}
.info-row .val {
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.5;
}
.info-row a.val:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}
.legal-ids {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}
.legal-ids .val {
  font-weight: 600;
}

/* -------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------- */
.footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer-top {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-7);
}
@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}
.footer-brand p {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  max-width: 38ch;
  margin-top: var(--sp-3);
}
.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-col a,
.footer-col span {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover {
  color: var(--fg);
}
.socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.social {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--fg);
  transition: border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social:hover {
  border-color: var(--accent-a);
  color: var(--accent-ink);
  transform: translateY(-2px);
}
.social svg {
  width: 19px;
  height: 19px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* -------------------------------------------------------------
   18. SCROLL REVEAL ANIMATION
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* -------------------------------------------------------------
   15b. FAQ (AEO) - natívny <details> akordeón, bez JS
   ------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.faq-item {
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--accent-ink);
}
/* +/- ikona z čistého CSS */
.faq-ic {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
}
.faq-ic::before,
.faq-ic::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-a);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq-ic::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-ic::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-a {
  padding: 0 var(--sp-5) var(--sp-5);
}
.faq-a p {
  color: var(--fg-muted);
  font-size: var(--fs-base);
  line-height: 1.7;
  max-width: 64ch;
}
.faq-item[open] summary {
  color: var(--accent-ink);
}

/* -------------------------------------------------------------
   19b. LEGAL / DOC PAGES (ochrana údajov, cookies)
   ------------------------------------------------------------- */
.doc-header {
  border-bottom: 1px solid var(--hairline);
}
.doc-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--nav-h);
}
.doc-page {
  padding-block: var(--sp-8) var(--sp-9);
}
.doc {
  max-width: 800px;
  margin-inline: auto;
}
.doc h1 {
  font-size: clamp(1.9rem, 4vw, var(--fs-2xl));
  margin-bottom: var(--sp-3);
}
.doc .updated {
  color: var(--fg-faint);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-7);
}
.prose h2 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: var(--fs-md);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.prose p,
.prose li {
  color: var(--fg-muted);
  line-height: 1.7;
}
.prose p {
  margin-bottom: var(--sp-4);
}
.prose ul {
  list-style: none;
  margin-bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.prose ul li {
  position: relative;
  padding-left: 1.4em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-aurora);
}
.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose strong {
  color: var(--fg);
  font-weight: 600;
}
.prose .info-block {
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.prose .info-block p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   19. REDUCED MOTION
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
