/* ==========================================================================
   simoradigital.sk – dizajnovy system
   Tmavy zaklad, aby fotky v portfoliu vynikli. Ziadne externe CDN (GDPR).
   ========================================================================== */

/* --- 1. Tokeny ----------------------------------------------------------- */
:root {
  /* Farby */
  --bg:            #0a0a0c;
  --bg-deep:       #060608;
  --surface:       #131319;
  --surface-2:     #1c1c24;
  --fg:            #f4f3f1;
  --muted:         #a3a3b0;
  --muted-2:       #6f6f7d;
  /* Znacka: fialova z loga #4421FD.
     --brand  = plne vyplne (biely text na nej ma kontrast 7,3:1)
     --accent = text a linky na tmavom pozadi (kontrast 6,4:1) */
  --brand:         #4421fd;
  --brand-hover:   #5b3cfd;
  --accent:        #9481f9;
  --accent-soft:   #ad9efa;
  --accent-fg:     #ffffff;
  --accent-dim:    rgba(68, 33, 253, .18);
  --border:        rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .20);
  --success:       #3ddc97;
  --danger:        #ff5c5c;

  /* Typografia – systemove fonty: nulovy prenos, ziadne CDN, GDPR bez rizika */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluidna typografia */
  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + .72vw, 1.95rem);
  --step-3:  clamp(1.75rem, 1.48rem + 1.32vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.62rem + 2.35vw, 3.5rem);
  --step-5:  clamp(2.5rem, 1.68rem + 4vw, 4.75rem);

  /* Odstupy – 8px scale */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Radiusy a tiene */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.75);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 720px;
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }

h1, h2, h3, h4 {
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brand); color: var(--accent-fg); }

/* --- 3. Layout ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { background: var(--bg-deep); }
.section--surface { background: var(--surface); }

.skip-link {
  position: absolute;
  left: var(--sp-4); top: var(--sp-4);
  transform: translateY(-200%);
  background: var(--brand); color: var(--accent-fg);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  font-weight: 600; z-index: 200;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.flow > * + * { margin-top: var(--sp-5); }

/* --- 4. Typograficke pomocky --------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 620;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }
.accent { color: var(--accent); }

.section-head { max-width: 68ch; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: var(--sp-4); }

/* --- 5. Tlacidla --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: .8em 1.5em;
  background: transparent;   /* inak <button> zdedi sede systemove pozadie */
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-weight: 620;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--accent-fg); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { border-color: var(--border-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); background: rgba(255,255,255,.05); }
.btn--sm { padding: .55em 1.1em; font-size: var(--step--1); }
.btn--lg { padding: .95em 2em; font-size: var(--step-1); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--accent);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- 6. Header ----------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,10,12,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: var(--sp-5);
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.footer .logo img { height: 34px; }
@media (max-width: 420px) { .logo img { height: 25px; } }

.nav { margin-left: auto; }
.nav__list {
  display: flex; align-items: center; gap: var(--sp-1);
  list-style: none; padding: 0; margin: 0;
}
.nav__link {
  display: inline-block;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 520;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--fg); background: rgba(255,255,255,.06); }

/* Rozbalovacie menu Sluzby – bez JS, cez details */
.nav__drop { position: relative; }
.nav__drop > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35em;
  padding: .5rem .7rem; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 520; color: var(--muted);
}
.nav__drop > summary::-webkit-details-marker { display: none; }
.nav__drop > summary::after {
  content: ""; width: .4em; height: .4em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.nav__drop > summary:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.nav__drop[open] > summary { color: var(--fg); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 260px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  list-style: none; margin: 0;
}
.nav__panel a {
  display: block; padding: .55rem .75rem; border-radius: var(--r-sm);
  font-size: .93rem; color: var(--muted); text-decoration: none;
}
.nav__panel a:hover { background: rgba(255,255,255,.07); color: var(--fg); }
.nav__panel a small { display: block; color: var(--muted-2); font-size: .78rem; }

.header__cta { flex-shrink: 0; }
.nav > .btn { display: none; }          /* CTA v nav je len pre mobilne menu */
@media (max-width: 940px) { .nav > .btn { display: inline-flex; } }

/* Mobilne menu – cistý CSS cez checkbox */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-burger span {
  position: relative; display: block; width: 18px; height: 1.5px; background: var(--fg);
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--fg);
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-toggle:checked ~ .header .nav-burger span { background: transparent; }
.nav-toggle:checked ~ .header .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .header .nav-burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 940px) {
  /* backdrop-filter na mobiloch sposoboval trhanie pri scrolle */
  .header { background: rgba(10, 10, 12, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-4) var(--sp-5) var(--sp-7);
    margin-left: 0;
    display: none;
  }
  .nav-toggle:checked ~ .header .nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__drop > summary {
    padding: .85rem .25rem; font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav__drop > summary { justify-content: space-between; }
  .nav__panel {
    position: static; transform: none; box-shadow: none;
    background: transparent; border: none; padding: 0 0 var(--sp-3) var(--sp-4);
  }
  .nav__panel a { padding: .6rem .25rem; }
  .nav .btn { margin-top: var(--sp-5); width: 100%; }
}

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 70vmax;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-dim), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 { max-width: 16ch; }
.hero__lead { margin-top: var(--sp-5); max-width: 54ch; font-size: var(--step-1); color: var(--muted); }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__meta {
  margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  font-size: var(--step--1); color: var(--muted-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .4em; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero--page { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.hero--page h1 { font-size: var(--step-4); max-width: 20ch; }

/* --- 8. Karty ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card--link { text-decoration: none; display: block; }
.card--link:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--muted); }
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--accent-dim); color: var(--accent);
  font-weight: 700; font-size: .92rem;
}

.tick-list { list-style: none; padding: 0; }
.tick-list li {
  position: relative; padding-left: 1.65em;
  color: var(--muted);
}
.tick-list li + li { margin-top: var(--sp-2); }
.tick-list li::before {
  content: ""; position: absolute; left: .1em; top: .55em;
  width: .55em; height: .3em;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.cross-list { list-style: none; padding: 0; }
.cross-list li { position: relative; padding-left: 1.65em; color: var(--muted); }
.cross-list li + li { margin-top: var(--sp-2); }
.cross-list li::before {
  content: "×"; position: absolute; left: .25em; top: -.05em;
  color: var(--danger); font-size: 1.25em; line-height: 1.4;
}

/* --- 9. Pas dovery ------------------------------------------------------- */
.logobar { border-block: 1px solid var(--border); padding-block: var(--sp-6); }
.logobar__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-5) var(--sp-8);
}
.logobar__item {
  font-weight: 640; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--muted); text-decoration: none;
  opacity: .75; transition: opacity .2s var(--ease), color .2s var(--ease);
}
.logobar__item:hover { opacity: 1; color: var(--fg); }
.logobar__note { margin-top: var(--sp-5); text-align: center; font-size: var(--step--1); color: var(--muted-2); }

/* --- 10. Citaty problemov ------------------------------------------------ */
.quote-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.quote {
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-5);
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: -.015em;
}
.quote cite { display: block; margin-top: var(--sp-3); font-size: var(--step--1); font-style: normal; color: var(--muted-2); }

/* --- 11. Diagram "jedno fotenie" ---------------------------------------- */
.fanout { display: grid; gap: var(--sp-5); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 800px) { .fanout { grid-template-columns: minmax(200px, 260px) 1fr; gap: var(--sp-7); } }
.fanout__source {
  background: var(--brand); color: var(--accent-fg);
  border-radius: var(--r-lg); padding: var(--sp-5);
  text-align: center; font-weight: 680; font-size: var(--step-1);
  letter-spacing: -.02em;
}
.fanout__source small { display: block; font-weight: 500; font-size: var(--step--1); opacity: .78; margin-top: var(--sp-1); }
.fanout__targets { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fanout__target {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4);
  font-weight: 600; font-size: .95rem;
}
.fanout__target small { display: block; font-weight: 400; color: var(--muted-2); font-size: .8rem; margin-top: 2px; }

/* --- 12. Kroky ----------------------------------------------------------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); counter-reset: step; }
.steps li { position: relative; padding-top: var(--sp-5); border-top: 1px solid var(--border); counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  position: absolute; top: calc(-1 * var(--sp-1) - 10px); left: 0;
  background: var(--bg); padding-right: var(--sp-3);
  font-size: var(--step--1); font-weight: 700; color: var(--accent);
  letter-spacing: .08em;
}
.section--alt .steps li::before { background: var(--bg-deep); }
.steps h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.steps p { color: var(--muted); font-size: .96rem; }
.steps time { display: block; margin-top: var(--sp-3); font-size: var(--step--1); color: var(--muted-2); }

/* --- 13. Projektove karty ------------------------------------------------ */
.project-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.project-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.project-card__media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.project-card__media img, .project-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.project-card__tag { font-size: var(--step--1); color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.project-card h3 { font-size: var(--step-1); }
.project-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.project-card__foot { display: flex; align-items: center; gap: .4em; color: var(--accent); font-weight: 600; font-size: .93rem; }
.project-card__foot::after { content: "→"; }

/* --- 14. Metriky --------------------------------------------------------- */
.metrics { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.metric {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.metric__value {
  display: block; font-size: var(--step-4); font-weight: 700;
  letter-spacing: -.035em; line-height: 1; color: var(--accent);
}
.metric__label { display: block; margin-top: var(--sp-3); font-weight: 600; font-size: .98rem; }
.metric__note { display: block; margin-top: var(--sp-1); font-size: var(--step--1); color: var(--muted-2); }

/* --- 15. Cenník ---------------------------------------------------------- */
.pricing { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-5);
  height: 100%;
}
.plan--featured { border-color: var(--brand); background: linear-gradient(180deg, var(--accent-dim), transparent 45%), var(--surface); }
.plan__badge {
  position: absolute; top: -11px; left: var(--sp-5);
  background: var(--brand); color: var(--accent-fg);
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .3em .8em; border-radius: var(--r-full);
}
.plan h3 { font-size: var(--step-2); }
.plan__price { font-size: var(--step-2); font-weight: 700; letter-spacing: -.03em; }
.plan__price small { display: block; font-size: var(--step--1); font-weight: 500; color: var(--muted-2); letter-spacing: 0; margin-top: var(--sp-1); }
.plan .tick-list { flex: 1; }
.plan .btn { margin-top: auto; }

.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.price-table caption { text-align: left; color: var(--muted-2); font-size: var(--step--1); padding-bottom: var(--sp-3); }
.price-table th, .price-table td { padding: var(--sp-4) var(--sp-3); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table th { font-weight: 620; }
.price-table thead th { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 620; }
.price-table td:last-child { text-align: right; white-space: nowrap; color: var(--accent); font-weight: 620; }
.price-table tbody tr:hover { background: rgba(255,255,255,.025); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- 16. Referencia / testimonial --------------------------------------- */
.testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-6);
}
.testimonial blockquote { font-size: var(--step-1); line-height: 1.5; letter-spacing: -.015em; }
.testimonial figcaption { margin-top: var(--sp-5); display: flex; align-items: center; gap: var(--sp-3); font-size: .93rem; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--muted-2); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 700; color: var(--accent);
}

/* --- 17. FAQ ------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-weight: 620; font-size: var(--step-1); letter-spacing: -.015em;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "+"; flex-shrink: 0;
  font-size: 1.4em; line-height: 1; font-weight: 400; color: var(--accent);
  transition: transform .2s var(--ease);
}
.faq__item[open] > summary::after { transform: rotate(45deg); }
.faq__item > summary:hover { color: var(--accent); }
.faq__answer { padding-bottom: var(--sp-5); max-width: 68ch; color: var(--muted); }
.faq__answer > * + * { margin-top: var(--sp-3); }

/* --- 18. Portfolio mriezka + lightbox ------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter {
  padding: .5em 1.1em; border-radius: var(--r-full);
  border: 1px solid var(--border); background: none; color: var(--muted);
  font-size: .93rem; font-weight: 560; cursor: pointer;
  transition: all .16s var(--ease);
}
.filter:hover { border-color: var(--border-strong); color: var(--fg); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--accent-fg); }

.media-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
}
.media-item { margin: 0; }
.media-item[hidden] { display: none; }
.media-item__btn {
  position: relative; display: block; width: 100%; padding: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.media-item--tall .media-item__btn { aspect-ratio: 3 / 4; }
.media-item__btn img, .media-item__btn svg { width: 100%; height: 100%; object-fit: cover; }
.media-item__btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.72));
  opacity: 0; transition: opacity .2s var(--ease);
}
.media-item__btn:hover::after, .media-item__btn:focus-visible::after { opacity: 1; }
.media-item__cap {
  position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  z-index: 1; text-align: left;
  transform: translateY(6px); opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.media-item__btn:hover .media-item__cap, .media-item__btn:focus-visible .media-item__cap { opacity: 1; transform: none; }
.media-item__cap strong { display: block; font-size: .95rem; }
.media-item__cap span { font-size: .8rem; color: rgba(255,255,255,.7); }
.media-item__type {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 1;
  background: rgba(10,10,12,.8); backdrop-filter: blur(6px);
  padding: .25em .7em; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 620; letter-spacing: .06em; text-transform: uppercase;
}
.media-item--video .media-item__btn { cursor: pointer; }
.play-badge {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
}
.play-badge span {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand); color: var(--accent-fg);
  display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; place-items: center;
  background: rgba(4,4,6,.94);
  padding: var(--sp-5);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); max-height: 88dvh; display: flex; flex-direction: column; gap: var(--sp-4); }
.lightbox__stage {
  flex: 1; min-height: 0;
  display: grid; place-items: center;
  background: var(--surface); border-radius: var(--r-md); overflow: hidden;
}
.lightbox__stage img, .lightbox__stage svg { max-height: 76dvh; width: auto; object-fit: contain; }
.lightbox__stage iframe { width: min(1000px, 90vw); aspect-ratio: 16/9; height: auto; border: 0; }
.lightbox__stage.is-vertical { background: #fff; }
.lightbox__stage.is-vertical iframe {
  aspect-ratio: auto;
  width: min(400px, 92vw);
  /* IG embed = video (sirka x 16/9) + hlavicka a lista ~200px */
  height: min(88dvh, calc(min(400px, 92vw) * 1.778 + 200px));
}
.lightbox__caption { text-align: center; font-size: .95rem; color: var(--muted); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: var(--fg); font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.16); }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__nav--prev { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-4); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__nav--prev { left: var(--sp-3); }
  .lightbox__nav--next { right: var(--sp-3); }
}

/* Zastupny vizual (placeholder) – jasne oznaceny */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; gap: var(--sp-2);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 12px, transparent 12px 24px),
    var(--surface-2);
  color: var(--muted-2); text-align: center; padding: var(--sp-4);
}
.ph strong { font-size: .8rem; font-weight: 640; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); opacity: .8; }
.ph span { font-size: .82rem; max-width: 24ch; }

/* --- 19. LiteVideo ------------------------------------------------------- */
.lite-video {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; padding: 0;
}
.lite-video img, .lite-video .ph { width: 100%; height: 100%; object-fit: cover; }
.lite-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite-video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.25);
}
.lite-video__play span {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--brand); color: var(--accent-fg);
  display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,.55);
  transition: transform .18s var(--ease);
}
.lite-video:hover .lite-video__play span { transform: scale(1.08); }
.lite-video.is-playing .lite-video__play { display: none; }

/* --- 20. CTA pas --------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1rem + 4vw, 3.5rem);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%;
  background: radial-gradient(ellipse at 50% 100%, var(--accent-dim), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-top: var(--sp-4); color: var(--muted); max-width: 52ch; margin-inline: auto; }
.cta-band__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* --- 21. Formular -------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label, .fieldset__legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: var(--step--1); color: var(--muted-2); }
.req { color: var(--accent); }

.input, .textarea, .select {
  width: 100%;
  padding: .75rem .9rem;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.error-msg { font-size: var(--step--1); color: var(--danger); min-height: 0; }
.error-msg:empty { display: none; }

fieldset { border: 0; padding: 0; margin: 0; }
.fieldset__legend { display: block; margin-bottom: var(--sp-3); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: .5em 1.05em;
  border: 1px solid var(--border-strong); border-radius: var(--r-full);
  font-size: .93rem; cursor: pointer; color: var(--muted);
  transition: all .16s var(--ease);
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--accent-fg); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip span:hover { border-color: var(--fg); color: var(--fg); }
.chip input:checked + span:hover { color: var(--accent-fg); }

.check { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.check input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.check label { font-weight: 400; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.check a { color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: var(--sp-5); border-radius: var(--r-lg);
  border: 1px solid var(--success); background: rgba(61,220,151,.08);
}
.form-status h3 { color: var(--success); font-size: var(--step-1); margin-bottom: var(--sp-2); }
.form-status--error { border-color: var(--danger); background: rgba(255,92,92,.08); }
.form-status--error h3 { color: var(--danger); }
[hidden] { display: none !important; }

/* --- 22. Prose (blog, pravne texty) ------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-6); }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--muted); }
.prose li + li { margin-top: var(--sp-2); }
.prose a { color: var(--accent); }
.prose strong { color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: var(--sp-3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { font-weight: 620; }
.prose td { color: var(--muted); }
.prose blockquote {
  border-left: 2px solid var(--accent); padding-left: var(--sp-5);
  color: var(--muted); font-size: var(--step-1);
}
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: .15em .4em; border-radius: var(--r-sm); }
.todo {
  display: inline-block; background: var(--accent-dim); color: var(--accent-soft);
  border: 1px dashed var(--accent); border-radius: var(--r-sm);
  padding: .05em .5em; font-size: .85em; font-weight: 620;
  font-family: var(--font-mono);
}

/* --- 23. Drobceky -------------------------------------------------------- */
.crumbs { font-size: var(--step--1); color: var(--muted-2); padding-top: var(--sp-5); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: var(--border-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current="page"] { color: var(--muted); }

/* --- 24. Meta panel projektu -------------------------------------------- */
.meta-list { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.meta-list dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 620; }
.meta-list dd { margin: var(--sp-1) 0 0; font-weight: 560; }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill {
  font-size: var(--step--1); padding: .3em .85em;
  border: 1px solid var(--border); border-radius: var(--r-full); color: var(--muted);
}

/* --- 25. Footer ---------------------------------------------------------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-4); }
.footer__grid { display: grid; gap: var(--sp-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer h2 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 620; margin-bottom: var(--sp-4); }
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: var(--sp-2); }
.footer a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer a:hover { color: var(--fg); }
.footer__brand p { color: var(--muted); font-size: .95rem; margin-top: var(--sp-3); max-width: 32ch; }
.footer__legal {
  margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); justify-content: space-between;
  font-size: var(--step--1); color: var(--muted-2);
}
.footer__legal p { max-width: 60ch; }

/* --- 26. Cookie banner --------------------------------------------------- */
.cookie {
  position: fixed; z-index: 250;
  left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  max-width: 520px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
}
.cookie[hidden] { display: none !important; }
.cookie h2 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.cookie p { font-size: .92rem; color: var(--muted); }
.cookie p a { color: var(--accent); }
.cookie__actions { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__prefs { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); border-top: 1px solid var(--border); padding-top: var(--sp-5); }
.cookie__row { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.cookie__row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.cookie__row strong { display: block; font-size: .93rem; }
.cookie__row span { font-size: .85rem; color: var(--muted-2); }

/* --- 27. Styleguide ------------------------------------------------------ */
.swatches { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.swatch { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.swatch__chip { height: 76px; }
.swatch__meta { padding: var(--sp-3); font-size: .82rem; }
.swatch__meta code { display: block; color: var(--muted-2); font-family: var(--font-mono); font-size: .78rem; }

/* --- 28. Utility --------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--border); border: 0; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

/* --- 29. Doplnky --------------------------------------------------------- */
.nav__drop > summary.is-active { color: var(--fg); }
.nav__drop > summary.is-active::before {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px;
  background: var(--accent); border-radius: 2px;
}
@media (max-width: 940px) { .nav__drop > summary.is-active::before { display: none; } }

/* Kontakt: formular + bocny panel */
.contact-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
}

/* --- 30. WhatsApp widget --------------------------------------------------- */
.wa { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 240; }
.wa__fab {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  transition: transform .18s var(--ease);
}
.wa__fab:hover { transform: scale(1.06); }
.wa__fab svg { width: 30px; height: 30px; fill: #fff; }
.wa__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(330px, calc(100vw - 2 * var(--sp-4)));
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wa__head {
  display: flex; align-items: center; gap: var(--sp-3);
  background: #1faa55; color: #fff; padding: var(--sp-4);
}
.wa__head .avatar { background: #fff; color: #1faa55; border: none; font-size: .9rem; }
.wa__head strong { display: block; line-height: 1.2; }
.wa__head span { font-size: .78rem; opacity: .9; }
.wa__close {
  margin-left: auto; background: none; border: none; color: #fff;
  font-size: 1.1rem; cursor: pointer; padding: var(--sp-2); line-height: 1;
}
.wa__body { padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.wa__msg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: var(--sp-3) var(--sp-4); font-size: .93rem; color: var(--fg);
}
.wa__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.wa__chips a {
  font-size: .85rem; text-decoration: none; color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--r-full);
  padding: .35em .9em;
}
.wa__chips a:hover { border-color: var(--accent); color: var(--accent); }
.wa__form { display: flex; gap: var(--sp-2); }
.wa__form input {
  flex: 1; min-width: 0;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--r-full);
  padding: .6em 1em; font-size: .92rem;
}
.wa__form input:focus { outline: 2px solid #25d366; outline-offset: 1px; border-color: transparent; }
.wa__form button {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: #25d366; border: none; cursor: pointer;
  display: grid; place-items: center;
}
.wa__form button svg { width: 18px; height: 18px; fill: #fff; }
.wa__note { font-size: .72rem; color: var(--muted-2); text-align: center; }
@media (max-width: 640px) { .wa__fab { width: 52px; height: 52px; } }

/* --- 31. Spat hore --------------------------------------------------------- */
.to-top {
  position: fixed; right: var(--sp-4); bottom: calc(var(--sp-4) + 74px); z-index: 235;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .to-top { bottom: calc(var(--sp-4) + 66px); } }

/* --- 32. Ikony ------------------------------------------------------------- */
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--accent-dim); color: var(--accent);
}
.fanout__target .ico { width: 19px; height: 19px; color: var(--accent); display: block; margin-bottom: var(--sp-2); }

/* --- 33. Doplnkova sluzba --------------------------------------------------- */
.badge-extra {
  display: inline-block; margin-bottom: var(--sp-3);
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border-radius: var(--r-full); padding: .3em .85em;
}
