/* ==========================================================================
   NYBZ Digital Solutions — Design System
   Hand-written, production-ready CSS. No framework, no CDN, no FOUC.
   Tokens → Reset → Layout → Typography → Components → Sections → Motion
   ========================================================================== */

/* ------------------------------------------------------------------ TOKENS */
:root {
  /* Brand — tóny jsou zvolené tak, aby text splňoval WCAG AA (≥4,5:1) */
  --accent:        #0B7A70;
  --accent-hi:     #0E9184;
  --accent-deep:   #075E56;
  --accent-soft:   rgba(11, 122, 112, .10);
  --accent-line:   rgba(11, 122, 112, .30);
  --accent-fg:     #ffffff;
  --indigo:        #4B5FD6;
  --indigo-soft:   rgba(75, 95, 214, .10);
  --amber:         #C2740A;
  --amber-soft:    rgba(194, 116, 10, .10);
  --rose:          #C2455E;
  --rose-soft:     rgba(194, 69, 94, .09);

  /* Surfaces */
  --bg:            #ffffff;
  --bg-alt:        #F4F7F9;
  --bg-deep:       #08131C;
  --surface:       #ffffff;
  --surface-2:     #F7F9FB;
  --line:          #E4EAF0;
  --line-2:        #CFDAE4;

  /* Text */
  --fg:            #0A1523;
  --fg-2:          #4B5C6E;
  --fg-3:          #61707F;
  --fg-on-deep:    #EAF2F8;

  /* Geometry */
  --r-xs: 8px;  --r-sm: 12px; --r-md: 16px;
  --r-lg: 22px; --r-xl: 30px; --r-full: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(10, 21, 35, .04), 0 2px 8px rgba(10, 21, 35, .04);
  --sh-2: 0 2px 6px rgba(10, 21, 35, .05), 0 12px 32px -12px rgba(10, 21, 35, .14);
  --sh-3: 0 8px 20px -8px rgba(10, 21, 35, .12), 0 32px 70px -28px rgba(10, 21, 35, .28);
  --sh-accent: 0 10px 30px -12px rgba(11, 122, 112, .5);

  /* Type */
  --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 2rem);
  --sec: clamp(4.5rem, 9vw, 8.5rem);
  --maxw: 1280px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

html[data-theme="dark"] {
  --accent:        #21C6B4;
  --accent-hi:     #3DDCC9;
  --accent-deep:   #0FA294;
  --accent-soft:   rgba(33, 198, 180, .12);
  --accent-line:   rgba(33, 198, 180, .30);
  --accent-fg:     #042420;
  --indigo:        #8496F5;
  --indigo-soft:   rgba(132, 150, 245, .12);
  --amber:         #F0A83A;
  --amber-soft:    rgba(240, 168, 58, .12);
  --rose:          #F0728C;
  --rose-soft:     rgba(240, 114, 140, .11);

  --bg:            #060B12;
  --bg-alt:        #0A121C;
  --bg-deep:       #030709;
  --surface:       #0E1825;
  --surface-2:     #121F2F;
  --line:          #1D2B3B;
  --line-2:        #2B3C50;

  --fg:            #E9F1F8;
  --fg-2:          #9BADBF;
  --fg-3:          #7B8B9D;
  --fg-on-deep:    #EAF2F8;

  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 2px 6px rgba(0,0,0,.35), 0 14px 36px -14px rgba(0,0,0,.7);
  --sh-3: 0 10px 26px -10px rgba(0,0,0,.5), 0 40px 80px -30px rgba(0,0,0,.85);
  --sh-accent: 0 10px 34px -12px rgba(33, 198, 180, .45);

  color-scheme: dark;
}

/* ------------------------------------------------------------------- RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-fg); }

/* Skip link */
.skip {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 999; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--accent); color: var(--accent-fg); font-weight: 600;
  transition: top .25s var(--ease);
}
.skip:focus { top: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ------------------------------------------------------------------ LAYOUT */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.container-narrow { max-width: 880px; }
.section { position: relative; padding-block: var(--sec); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--deep { background: var(--bg-deep); color: var(--fg-on-deep); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.wrap    { flex-wrap: wrap; }
.gap-xs  { gap: .5rem; }  .gap-sm { gap: .75rem; }
.gap-md  { gap: 1.25rem; } .gap-lg { gap: 2rem; }
.center  { text-align: center; }
.mx-auto { margin-inline: auto; }

/* -------------------------------------------------------------- TYPOGRAPHY */
/* Velikost je zastropovaná tak, aby se nejdelší řádek nadpisu v heru
   nezalomil uvnitř .line-mask (nejdelší řádek ≈ 9,5em). */
.display-xl { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 4.9vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; }
.display-lg { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.4rem);  line-height: 1.07; letter-spacing: -.03em; }
.display-md { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem);  line-height: 1.15; letter-spacing: -.025em; }
.display-sm { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.3; letter-spacing: -.015em; }

.lead      { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--fg-2); line-height: 1.7; }
.body-sm   { font-size: .9375rem; color: var(--fg-2); line-height: 1.7; }
.body-xs   { font-size: .8125rem; color: var(--fg-3); line-height: 1.6; }
.muted     { color: var(--fg-2); }
.faint     { color: var(--fg-3); }
strong, .strong { font-weight: 650; color: var(--fg); }

.accent-text { color: var(--accent); }

.gtext {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-hi) 42%, var(--indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.underline-mark {
  position: relative; white-space: nowrap;
}
.underline-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .3em;
  background: var(--accent-soft); border-bottom: 2px solid var(--accent); z-index: -1;
  border-radius: 2px;
}

/* Eyebrow / section label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-family: var(--f-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p  { margin-top: 1.25rem; }

/* --------------------------------------------------------------- COMPONENTS */

/* Buttons ------------------------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .625rem; padding: .875rem 1.5rem; border-radius: var(--r-full);
  font-family: var(--f-body); font-weight: 600; font-size: .9375rem; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn i { font-size: 1.1em; transition: transform .3s var(--ease); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-fg); box-shadow: var(--sh-accent);
}
.btn-primary:hover { box-shadow: 0 16px 42px -12px rgba(11,122,112,.65); transform: translateY(-2px); }
.btn-primary:hover i.arrow { transform: translateX(3px); }
html[data-theme="dark"] .btn-primary:hover { box-shadow: 0 16px 44px -12px rgba(33,198,180,.6); }

.btn-outline { border-color: var(--line-2); color: var(--fg); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn-ghost { color: var(--fg-2); padding-inline: 1rem; }
.btn-ghost:hover { color: var(--accent); }

.btn-lg { padding: 1.0625rem 2rem; font-size: 1rem; }
.btn-sm { padding: .625rem 1.125rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* Cards -------------------------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: border-color .35s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
  overflow: hidden; isolation: isolate;
}
.card--pad-lg { padding: clamp(1.75rem, 3.5vw, 3rem); }

/* Mouse-tracked spotlight (set --mx/--my from JS) */
.card--spot::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
  transition: opacity .45s var(--ease);
}
.card--spot:hover::before { opacity: 1; }
.card--spot:hover { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: var(--sh-2); }

.card-ico {
  display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: var(--r-sm); font-size: 1.375rem; margin-bottom: 1.25rem;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
  transition: transform .4s var(--ease);
}
.card:hover .card-ico { transform: scale(1.06) rotate(-3deg); }
.card-ico--indigo { background: var(--indigo-soft); color: var(--indigo); border-color: color-mix(in srgb, var(--indigo) 30%, transparent); }
.card-ico--amber  { background: var(--amber-soft);  color: var(--amber);  border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.card-ico--rose   { background: var(--rose-soft);   color: var(--rose);   border-color: color-mix(in srgb, var(--rose) 30%, transparent); }

.card h3 { font-size: 1.1875rem; margin-bottom: .625rem; letter-spacing: -.02em; }
.card p  { color: var(--fg-2); font-size: .9375rem; line-height: 1.68; }

/* Feature list inside cards */
.tick-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.125rem; }
.tick-list li { display: flex; gap: .625rem; font-size: .875rem; color: var(--fg-2); line-height: 1.55; }
.tick-list i { color: var(--accent); font-size: .95rem; flex-shrink: 0; margin-top: .28em; }

/* Chips / badges ----------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .4375rem;
  padding: .375rem .8125rem; border-radius: var(--r-full);
  font-size: .8125rem; font-weight: 500; color: var(--fg-2);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.chip:hover { border-color: var(--accent-line); color: var(--accent); }
.chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4375rem .875rem .4375rem .6875rem; border-radius: var(--r-full);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-family: var(--f-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0;
  box-shadow: 0 0 0 0 currentColor; animation: pulse-ring 2.4s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Stats -------------------------------------------------------------------- */
.stat-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -.04em;
  display: flex; align-items: baseline; gap: .1em;
}
.stat-unit { font-size: .5em; color: var(--accent); font-weight: 600; }
.stat-label {
  margin-top: .875rem; font-size: .8125rem; color: var(--fg-2); line-height: 1.5;
}

/* Divider ------------------------------------------------------------------ */
.hr { height: 1px; background: var(--line); border: 0; }
.hr-fade { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ----------------------------------------------------------------- HEADER */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 90;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  transition: width .1s linear;
}

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: .625rem;
}
.header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -16px rgba(10,21,35,.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { height: 26px; width: auto; transition: opacity .3s var(--ease); }
html[data-theme="dark"] .brand img { filter: invert(1) brightness(1.9); }
.brand:hover img { opacity: .78; }
.brand-sub {
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-3); padding-left: .75rem;
  border-left: 1px solid var(--line-2); line-height: 1.3;
}
@media (max-width: 520px) { .brand-sub { display: none; } }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  position: relative; padding: .5rem .8125rem; border-radius: var(--r-xs);
  font-size: .9rem; font-weight: 500; color: var(--fg-2);
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: .8125rem; right: .8125rem; bottom: .25rem; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .625rem; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
  color: var(--fg-2); border: 1px solid var(--line); background: var(--surface);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); }
.icon-btn i { font-size: 1.15rem; }

.theme-toggle .ico-sun  { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

@media (max-width: 1020px) { .nav, .header-actions .btn { display: none; } }
.burger { display: none; }
@media (max-width: 1020px) { .burger { display: grid; } }

/* Mobile drawer ------------------------------------------------------------ */
.drawer {
  position: fixed; inset: 0; z-index: 95; visibility: hidden; pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0; background: rgba(6, 11, 18, .55);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s var(--ease);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 88vw);
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .5s var(--ease);
  display: flex; flex-direction: column; padding: 1.25rem var(--gut) 2rem;
  overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer-nav { display: flex; flex-direction: column; gap: .25rem; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9375rem .25rem; font-family: var(--f-display); font-size: 1.375rem; font-weight: 600;
  letter-spacing: -.02em; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(18px);
  transition: color .25s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
.drawer.is-open .drawer-nav a { opacity: 1; transform: translateX(0); }
.drawer-nav a i { color: var(--fg-3); font-size: 1rem; transition: transform .3s var(--ease), color .3s var(--ease); }
.drawer-nav a:hover { color: var(--accent); }
.drawer-nav a:hover i { color: var(--accent); transform: translateX(4px); }
.drawer-foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }

/* ------------------------------------------------------------------- HERO */
.hero {
  position: relative; padding-top: clamp(7rem, 14vw, 10.5rem); padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: .55; pointer-events: none;
}
html[data-theme="dark"] .hero-canvas { opacity: .7; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(90px);
}
.hero-glow--a {
  width: 620px; height: 620px; top: -18%; right: -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%);
}
.hero-glow--b {
  width: 520px; height: 520px; bottom: -22%; left: -12%;
  background: radial-gradient(circle, color-mix(in srgb, var(--indigo) 18%, transparent), transparent 68%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
/* Ukotvení plovoucí karty ke konzoli, ne k celé sekci */
.console-wrap { position: relative; }
@media (max-width: 1020px) { .hero-inner { grid-template-columns: 1fr; } }

.hero h1 { margin-top: 1.5rem; }
.hero .lead { margin-top: 1.75rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }
.hero-assur {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; margin-top: 2.5rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.hero-assur li { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--fg-2); }
.hero-assur i { color: var(--accent); font-size: 1rem; }

/* Line-mask reveal for headline */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.line-mask > span { display: block; }

/* Hero console mock --------------------------------------------------------- */
.console {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.console::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.console-bar {
  display: flex; align-items: center; gap: .75rem; padding: .8125rem 1.125rem;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.console-dots { display: flex; gap: .375rem; }
.console-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.console-title {
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3);
}
.console-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4375rem;
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.console-body { padding: 1.25rem 1.125rem 1.375rem; }

.pipe-row {
  display: flex; align-items: center; gap: .875rem; padding: .75rem .8125rem;
  border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
.pipe-row + .pipe-row { margin-top: .3125rem; }
.pipe-row.is-active { background: var(--accent-soft); border-color: var(--accent-line); }
.pipe-row.is-done .pipe-ico { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.pipe-ico {
  display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 9px; font-size: .875rem; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--fg-3);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.pipe-name { font-size: .875rem; font-weight: 550; letter-spacing: -.01em; }
.pipe-meta { font-family: var(--f-mono); font-size: .6875rem; color: var(--fg-3); margin-top: .1rem; }
.pipe-state {
  margin-left: auto; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3); transition: color .4s var(--ease);
}
.pipe-row.is-done .pipe-state { color: var(--accent); }
.pipe-row.is-active .pipe-state { color: var(--amber); }

.console-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .625rem;
  margin-top: 1.125rem; padding-top: 1.125rem; border-top: 1px solid var(--line);
}
.console-kpi { text-align: center; }
.console-kpi b {
  display: block; font-family: var(--f-display); font-size: 1.375rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--accent);
}
.console-kpi span {
  font-family: var(--f-mono); font-size: .5625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3);
}

.console-float {
  position: absolute; right: -14px; bottom: -22px; z-index: 2;
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
@media (max-width: 520px) { .console-float { right: 8px; bottom: -18px; } }
.console-float i { color: var(--accent); font-size: 1.25rem; }
.console-float b { display: block; font-size: .875rem; letter-spacing: -.01em; }
.console-float span { font-size: .6875rem; color: var(--fg-3); }

/* ---------------------------------------------------------------- MARQUEE */
.marquee {
  position: relative; overflow: hidden; padding-block: 1.5rem;
  border-block: 1px solid var(--line); background: var(--bg-alt);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.marquee-group span {
  font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em;
  color: var(--fg-3); white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee-group span:hover { color: var(--accent); }
.marquee-group i { color: var(--accent-line); font-size: .5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- VISION */
.vision {
  position: relative; background: var(--bg-deep); color: var(--fg-on-deep); overflow: hidden;
}
.vision::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent);
}
.vision::after {
  content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -40%;
  transform: translateX(-50%); border-radius: 50%; filter: blur(120px); opacity: .35;
  background: radial-gradient(circle, rgba(33,198,180,.35), transparent 65%);
}
.vision > .container { position: relative; z-index: 1; }
.vision .eyebrow { color: #3DDCC9; }
.vision-quote {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.55rem, 3.6vw, 2.85rem); line-height: 1.24; letter-spacing: -.028em;
  max-width: 22ch; margin-top: 1.5rem;
}
.vision-quote em { font-style: normal; color: #3DDCC9; }
.vision-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start;
}
@media (max-width: 900px) { .vision-grid { grid-template-columns: 1fr; } }
.principle {
  display: flex; gap: 1.125rem; padding: 1.375rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.principle:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.principle-n {
  font-family: var(--f-mono); font-size: .75rem; color: #3DDCC9;
  padding-top: .25rem; flex-shrink: 0; letter-spacing: .08em;
}
.principle h3 { font-size: 1.0625rem; margin-bottom: .4375rem; color: var(--fg-on-deep); }
.principle p  { font-size: .9375rem; line-height: 1.65; color: rgba(234,242,248,.62); }

/* -------------------------------------------------------------- PAIN CARDS */
.pain {
  display: flex; gap: 1.125rem; padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  transition: border-color .35s var(--ease), transform .4s var(--ease), background-color .35s var(--ease);
}
.pain:hover { border-color: color-mix(in srgb, var(--rose) 34%, transparent); transform: translateY(-3px); }
.pain-ico {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px; background: var(--rose-soft); color: var(--rose); font-size: 1.125rem;
  border: 1px solid color-mix(in srgb, var(--rose) 24%, transparent);
}
.pain h3 { font-size: 1rem; font-weight: 650; font-family: var(--f-body); letter-spacing: -.01em; margin-bottom: .375rem; }
.pain p  { font-size: .875rem; color: var(--fg-2); line-height: 1.62; }

/* --------------------------------------------------------------- SERVICES */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; background: var(--surface); padding: clamp(1.5rem, 2.6vw, 2.125rem);
  transition: background-color .4s var(--ease);
  isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 68%);
  transition: opacity .45s var(--ease);
}
.svc:hover::before { opacity: 1; }
.svc-num {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--f-mono); font-size: .6875rem; color: var(--fg-3); letter-spacing: .1em;
  transition: color .35s var(--ease);
}
.svc:hover .svc-num { color: var(--accent); }
.svc h3 { font-size: 1.1875rem; margin-bottom: .625rem; }
.svc > p { font-size: .9375rem; color: var(--fg-2); line-height: 1.68; }

/* ----------------------------------------------------------------- METHOD */
.method-layout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
@media (max-width: 900px) { .method-layout { grid-template-columns: 1fr; } }
.method-sticky { position: sticky; top: 120px; }
@media (max-width: 900px) { .method-sticky { position: static; } }

.method-rail { display: flex; flex-direction: column; gap: .25rem; margin-top: 2rem; }
.method-rail button {
  display: flex; align-items: center; gap: .875rem; padding: .8125rem .875rem;
  border-radius: var(--r-sm); text-align: left; color: var(--fg-3);
  border: 1px solid transparent;
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.method-rail button:hover { color: var(--fg); }
.method-rail button.is-active {
  color: var(--fg); background: var(--accent-soft); border-color: var(--accent-line);
}
.method-rail em {
  font-family: var(--f-mono); font-style: normal; font-size: .6875rem; letter-spacing: .1em;
  color: var(--fg-3); transition: color .3s var(--ease);
}
.method-rail button.is-active em { color: var(--accent); }
.method-rail span { font-size: .9375rem; font-weight: 550; letter-spacing: -.01em; }

.step {
  position: relative; padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.step + .step { margin-top: 1.25rem; }
.step.is-active { border-color: var(--accent-line); box-shadow: var(--sh-2); }
.step-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .6s var(--ease);
}
.step.is-active .step-bar { transform: scaleY(1); }
.step-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.125rem; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-sm); font-family: var(--f-mono); font-size: .875rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-3);
  transition: all .4s var(--ease);
}
.step.is-active .step-n { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.step h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
.step-time {
  margin-left: auto; font-family: var(--f-mono); font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap;
}
.step > p { color: var(--fg-2); font-size: .9375rem; line-height: 1.7; }
.step-out {
  margin-top: 1.375rem; padding-top: 1.125rem; border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.step-out b {
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); margin-right: .25rem;
}

/* ------------------------------------------------------------- CASE STUDY */
.case {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color .35s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.case + .case { margin-top: 1rem; }
.case:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--sh-2); }
@media (max-width: 820px) { .case { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.case-tag {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .875rem;
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3);
}
.case-tag i { color: var(--accent); font-size: .875rem; }
.case h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); margin-bottom: .625rem; }
.case p { font-size: .9375rem; color: var(--fg-2); line-height: 1.7; max-width: 56ch; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; min-width: 0; }
@media (max-width: 820px) { .case-metrics { border-top: 1px solid var(--line); padding-top: 1.25rem; } }
.case-metric b {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.035em; color: var(--accent); line-height: 1;
}
.case-metric span {
  display: block; margin-top: .4375rem; font-size: .6875rem; letter-spacing: .06em;
  color: var(--fg-3); text-transform: uppercase; white-space: nowrap;
}
/* Na úzkých displejích se tři metriky vedle sebe nevejdou — popisky smí zalomit. */
@media (max-width: 480px) {
  .case-metrics { gap: 1rem 1.25rem; }
  .case-metric { flex: 1 1 8rem; min-width: 0; }
  .case-metric span { white-space: normal; }
}

/* ----------------------------------------------------------------- PRICING */
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.25rem); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .35s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.plan--featured {
  border-color: var(--accent); box-shadow: var(--sh-accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 30%), var(--surface);
}
.plan--featured:hover { border-color: var(--accent); }
.plan-flag {
  position: absolute; top: -11px; left: clamp(1.75rem, 3vw, 2.25rem);
  padding: .25rem .75rem; border-radius: var(--r-full);
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--f-mono); font-size: .5625rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.plan h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.plan-for { font-size: .875rem; color: var(--fg-2); min-height: 2.8em; line-height: 1.6; }
.plan-price {
  margin: 1.375rem 0; padding: 1.125rem 0; border-block: 1px solid var(--line);
}
.plan-price b {
  font-family: var(--f-display); font-size: 1.75rem; font-weight: 700;
  letter-spacing: -.03em; display: block; line-height: 1.15;
}
.plan-price span { font-size: .8125rem; color: var(--fg-3); }
.plan .tick-list { flex: 1; margin-top: 0; }
.plan .btn { margin-top: 1.75rem; }

/* --------------------------------------------------------------- TRUST/FAQ */
.trust {
  display: flex; gap: 1rem; padding: 1.25rem 0;
}
.trust i {
  color: var(--accent); font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem;
}
.trust h3 { font-family: var(--f-body); font-size: .9375rem; font-weight: 650; margin-bottom: .3125rem; letter-spacing: -.01em; }
.trust p  { font-size: .8125rem; color: var(--fg-2); line-height: 1.6; }

.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.375rem .25rem; text-align: left;
  font-family: var(--f-display); font-size: clamp(1rem, 1.7vw, 1.125rem); font-weight: 600;
  letter-spacing: -.015em; color: var(--fg);
  transition: color .25s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q i {
  flex-shrink: 0; font-size: 1.125rem; color: var(--fg-3); margin-top: .1rem;
  transition: transform .4s var(--ease), color .3s var(--ease);
}
.faq[open] .faq-q i, .faq.is-open .faq-q i { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  overflow: hidden; height: 0;
  transition: height .45s var(--ease);
}
.faq-a > div { padding: 0 3rem 1.5rem .25rem; color: var(--fg-2); font-size: .9375rem; line-height: 1.75; }
@media (max-width: 620px) { .faq-a > div { padding-right: 1rem; } }

/* ------------------------------------------------------------- TESTIMONIAL */
.quote-card {
  position: relative; padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--accent-soft), transparent 55%), var(--surface);
  overflow: hidden;
}
.quote-mark {
  position: absolute; top: -2.5rem; right: 1rem; font-size: 14rem; line-height: 1;
  font-family: var(--f-display); color: var(--accent); opacity: .07; pointer-events: none;
}
.quote-card blockquote {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.7vw, 2rem); line-height: 1.36; letter-spacing: -.025em;
  max-width: 26ch;
}
.quote-card blockquote s { color: var(--fg-3); text-decoration-thickness: 2px; }
.quote-by { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.avatar {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  color: #fff; font-family: var(--f-display); font-weight: 700; flex-shrink: 0;
}
.quote-by b { display: block; font-size: .9375rem; }
.quote-by span { font-size: .8125rem; color: var(--fg-3); }

/* ---------------------------------------------------------------- CONTACT */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* minmax(0,…) je nutné: výchozí spodní hranicí 1fr je min-content, takže
   dlouhá položka v <select> jinak roztáhne sloupec nad šířku formuláře. */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4375rem; min-width: 0; }
.field label {
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3);
}
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; padding: .8125rem 1rem; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--fg);
  font-size: .9375rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check {
  display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
  font-size: .8125rem; color: var(--fg-2); line-height: 1.55;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem;
  border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--surface);
  transition: all .25s var(--ease); color: transparent; font-size: .625rem;
}
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px var(--accent-soft); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-msg {
  display: none; align-items: flex-start; gap: .75rem; padding: .875rem 1rem;
  border-radius: var(--r-sm); font-size: .875rem; line-height: 1.55;
}
.form-msg.is-visible { display: flex; }
.form-msg--ok  { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.form-msg--err { background: var(--rose-soft);  border: 1px solid color-mix(in srgb, var(--rose) 30%, transparent); color: var(--rose); }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item i {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 1.0625rem;
}
.contact-item b { display: block; font-size: .8125rem; color: var(--fg-3); font-weight: 500; margin-bottom: .1875rem; }
.contact-item span, .contact-item a { font-size: .9375rem; color: var(--fg); line-height: 1.55; }
.contact-item a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ FOOTER */
.footer {
  background: var(--bg-deep); color: var(--fg-on-deep);
  padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.09);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer img { height: 24px; filter: invert(1) brightness(1.9); }
.footer h4 {
  font-family: var(--f-mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: #3DDCC9; margin-bottom: 1.125rem;
}
.footer p, .footer li, .footer a { font-size: .875rem; color: rgba(234,242,248,.68); line-height: 1.7; }
.footer a { transition: color .25s var(--ease); }
.footer a:hover { color: #3DDCC9; }
.footer li { margin-bottom: .5rem; }
.footer li strong { color: var(--fg-on-deep); font-weight: 600; }
.footer-bottom {
  padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: .75rem; color: rgba(234,242,248,.38);
}
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.12); color: rgba(234,242,248,.6);
  transition: all .25s var(--ease);
}
.footer-social a:hover { border-color: #3DDCC9; color: #3DDCC9; transform: translateY(-2px); }

/* ------------------------------------------------------------------- MODAL */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: var(--gut);
}
.modal.is-open { display: flex; }
.modal-scrim {
  position: absolute; inset: 0; background: rgba(6,11,18,.6);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease);
}
.modal.is-shown .modal-scrim { opacity: 1; }
.modal-panel {
  position: relative; width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--sh-3);
  transform: translateY(18px) scale(.97); opacity: 0;
  transition: transform .4s var(--ease), opacity .35s var(--ease);
}
.modal.is-shown .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: var(--r-full); color: var(--fg-3);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.modal-close:hover { background: var(--surface-2); color: var(--fg); }

.modal-success { display: none; text-align: center; padding-block: 1.5rem; }
.modal-success.is-visible { display: block; }
.success-ico {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 1.5rem;
  border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 2rem;
}

/* ------------------------------------------------------------------ COOKIE */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  padding: 0 var(--gut) var(--gut); pointer-events: none;
  transform: translateY(130%); transition: transform .55s var(--ease);
}
.cookie.is-shown { transform: translateY(0); }
.cookie-inner {
  pointer-events: auto; max-width: 900px; margin-inline: auto;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 1.25rem;
}
.cookie-main { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.cookie-main > div:first-child { flex: 1 1 320px; }
.cookie-main p { font-size: .8125rem; color: var(--fg-2); line-height: 1.6; }
.cookie-main b { display: block; font-size: .875rem; color: var(--fg); margin-bottom: .25rem; font-weight: 650; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-prefs { display: none; margin-top: 1.125rem; padding-top: 1.125rem; border-top: 1px solid var(--line); }
.cookie-prefs.is-open { display: block; }

/* --------------------------------------------------------------- ANIMATION */
/* Skryto jen tehdy, když JS skutečně běží — bez JS je obsah vždy vidět. */
html.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* Dlouhé položky v roletce na úzkém displeji raději oříznout než rozbít layout. */
.field select { text-overflow: ellipsis; }

/* ═══════════════════════════════════════════ MOBILNÍ KOREKCE ZOBRAZENÍ ═══
   Opravy nalezené při kontrole na šířce 375 px. */

/* Mřížka služeb má overflow:hidden kvůli zaobleným rohům (trik s 1px mezerou).
   Reveal animace posouvá kartu o 26 px dolů, takže spodek poslední karty
   byl během náběhu useknutý. Uvnitř této mřížky proto najíždíme jen opacitou. */
html.js .svc-grid [data-reveal] { transform: none; }

/* Na nízkých displejích (iPhone SE apod.) se obsah menu nevešel a spodní
   tlačítka zůstala pod ohybem — na málo výšky ho zhutníme. */
@media (max-height: 720px) {
  .drawer-panel { padding-bottom: 1.125rem; }
  .drawer-head { margin-bottom: 1.125rem; }
  .drawer-nav a { padding: .625rem .25rem; font-size: 1.125rem; }
  .drawer-foot { padding-top: 1.125rem; gap: .5rem; }
}

@media (max-width: 640px) {
  /* Odkazy v patičce jsou samostatná navigace, ne odkazy v běžícím textu —
     potřebují použitelnou tapovací plochu (řádek měl jen 17 px). */
  .footer li { margin-bottom: .125rem; }
  .footer li a { display: inline-block; padding: .5rem 0; line-height: 1.4; }

  /* Verzálky pod 11 px jsou na telefonu špatně čitelné. */
  .footer h4 { font-size: .6875rem; }
  .field label { font-size: .6875rem; letter-spacing: .1em; }
  .plan-flag { font-size: .6875rem; letter-spacing: .12em; }
  .console-kpi span { font-size: .6875rem; letter-spacing: .1em; }
  .step-out b { font-size: .6875rem; letter-spacing: .1em; }
}

/* ------------------------------------------------------------- GAME MODAL */
.game-modal {
  position: fixed; inset: 0; z-index: 100; background: #0B0F16;
  display: block;
}
.game-modal.hidden { display: none; }
.cursor-none { cursor: none; }

/* Utility */
.hidden { display: none !important; }
.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;
}
.nowrap { white-space: nowrap; }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 2rem; } .mt-lg { margin-top: 3rem; }
