/* Písma stažená z Google Fonts (SIL OFL) a načítaná z vlastního webu */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../assets/fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../assets/fonts/Poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../../assets/fonts/Poppins-SemiBold.woff") format("woff"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../assets/fonts/DMMono-Regular.woff") format("woff"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../assets/fonts/DMMono-Medium.woff") format("woff"); }
@font-face { font-family: "DM Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("../../assets/fonts/DMMono-Italic.woff") format("woff"); }

/* =========================================================
   WebPilot — hero sekce
   ========================================================= */

:root {
  /* Barvy */
  --bg: #F9F7EC;              /* shodné s referencí i s pozadím obrázku → bezešvé napojení */
  --surface: rgba(255, 255, 255, .1);
  --ink: #232323;
  --ink-soft: #4a4a46;
  --ink-muted: #8a877c;
  --line: rgba(35, 35, 35, .08);
  --black: #0b0b0b;
  --accent: #1d2bd8;          /* modrá z obrázku — focus stavy */

  /* Typografie */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 72px;

  /* Pohyb */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--black); color: #fff; font-size: 14px;
  transform: translateY(-150%); transition: transform .2s var(--ease-soft);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   NAVIGACE — plovoucí „pilulka“
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
  animation: nav-in .9s var(--ease-out) .1s backwards; /* bez „forwards“, jinak by animace izolovala lištu od obsahu pod ní a backdrop-filter by nerozmazával */
}
.nav__bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--container) + 40px);
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 20px 0 24px;
  /* „Sklo“ jako na referenci: obsah pod lištou je při scrollu vidět rozmazaně */
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 15px;
  background-color: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 20px 20px 32px rgba(0, 0, 0, .03),
    inset -20px -20px 32px rgba(255, 255, 255, .08),
    inset -1px -1px 0 rgba(255, 255, 255, .64),
    0 8px 24px -12px rgba(0, 0, 0, .12);
}
/* Bílá vrstva jako na referenci: v klidu 45 %, při scrollu se zeslabí na 10 %,
   takže obsah pod lištou prosvítá rozmazaně (JS přepíná .is-scrolling) */
.nav__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: rgba(255, 255, 255, .45);
  pointer-events: none;
  transition: background-color .45s var(--ease-soft);
}
.nav.is-scrolling .nav__bar::before {
  background-color: rgba(255, 255, 255, .34); /* lišta zůstane dobře vidět, text pod ní je rozmazaný */
  transition-duration: .25s;
}

.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand img { width: auto; height: 22px; }

.nav__menu { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 8px; }
.nav__cta { margin-left: 8px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0);
  /* jemné „pérování“ jako na referenci (lehký přešvih) */
  transition: background-color .35s cubic-bezier(.34, 1.3, .64, 1);
}
.nav__link:focus-visible { background-color: rgba(255, 255, 255, .52); }
/* Hover jen na zařízeních s myší — na dotyku by stav „zůstal viset“ */
@media (hover: hover) {
  .nav__link:hover { background-color: rgba(255, 255, 255, .52); }
}

/* Hamburger (mobil) */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -8px;
  border-radius: 10px;
  touch-action: manipulation;
}
.nav__toggle-line {
  position: absolute; left: 12px; right: 12px;
  height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.nav__toggle-line:nth-of-type(2) { transform: translateY(-4px); }
.nav__toggle-line:nth-of-type(3) { transform: translateY(4px); }
.nav.is-open .nav__toggle-line:nth-of-type(2) { transform: rotate(45deg); }
.nav.is-open .nav__toggle-line:nth-of-type(3) { transform: rotate(-45deg); }

@media (max-width: 1039px) {
  .nav { padding-top: 12px; }
  .nav__bar { height: 58px; padding: 0 14px 0 18px; }
  .nav__brand img { height: 19px; }
  .nav__toggle { display: block; }

  .nav__menu {
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    padding: 8px;
    border-radius: 14px;
    background: rgba(249, 247, 236, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgba(35, 30, 10, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s var(--ease-soft), transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .nav.is-open .nav__menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s var(--ease-soft), transform .35s var(--ease-out), visibility 0s;
  }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__cta { width: 100%; min-height: 52px; margin: 8px 0 0; }
  .nav__link { min-height: 52px; padding: 0 16px; font-size: 17px; border-radius: 10px; }
  .nav__link:active { background-color: rgba(35, 35, 35, .05); }
  @media (hover: hover) {
    .nav__link:hover { background-color: rgba(35, 35, 35, .05); }
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding-top: calc(16px + var(--nav-h) + clamp(72px, 22vh, 230px));
  padding-bottom: clamp(28px, 4.5vh, 44px);
}
.hero__content { max-width: 780px; }

.hero__title {
  font-size: clamp(2.5rem, 1.35rem + 3.6vw, 4rem); /* 40 → 64 px */
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
}
.hero__lead {
  max-width: 600px; /* 3 řádky, nezasahuje do obrázku */
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Tlačítko ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  touch-action: manipulation;
  /* jako na referenci: černá → tmavě šedá s lehkým dopružením */
  transition: background-color .3s cubic-bezier(.34, 1.3, .64, 1);
}
.btn:focus-visible { background-color: #484848; }
.btn:active { background-color: #484848; }

/* Sekundární tlačítko — obrys, po najetí se vyplní jemným bílým pozadím */
.btn--ghost {
  background-color: rgba(255, 255, 255, 0);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(35, 35, 35, .22);
  transition: background-color .3s cubic-bezier(.34, 1.3, .64, 1), box-shadow .3s var(--ease-soft);
}
.btn--ghost:focus-visible,
.btn--ghost:active {
  background-color: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px rgba(35, 35, 35, .4);
}
@media (hover: hover) {
  .btn:hover { background-color: #484848; }
  .btn--ghost:hover {
    background-color: rgba(255, 255, 255, .6);
    box-shadow: inset 0 0 0 1px rgba(35, 35, 35, .4);
  }
}

/* ---------- Obrázek ---------- */
.hero__visual {
  position: absolute;
  z-index: 1;
  right: -5vw;
  bottom: -9vh;
  width: min(64vw, 1060px);
  pointer-events: none;
  will-change: transform;
}
.hero__img {
  width: 100%;
  /* Měkké napojení horní a levé hrany na pozadí */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%), linear-gradient(to bottom, transparent 0, #000 6%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%), linear-gradient(to bottom, transparent 0, #000 6%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* ---------- Pruh klientů ---------- */
.clients {
  position: relative;
  max-width: 560px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 70%, transparent 100%);
}
.clients__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
@media (hover: hover) {
  .clients:hover .clients__track { animation-play-state: paused; }
}
.clients__list { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.client {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 56px;
  opacity: .82;
  transition: opacity .3s var(--ease-soft);
}
@media (hover: hover) {
  .client:hover { opacity: 1; }
}
.client img { width: auto; height: var(--h, 32px); max-width: none; }

/* ---------- Responsivita hero ---------- */
/* Tablety: obrázek menší a pruh klientů užší, aby loga neležela přes kvádry */
@media (max-width: 1024px) {
  .hero__visual { width: 74vw; right: -12vw; bottom: -6vh; }
  .clients { max-width: min(560px, 44vw); }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero__inner {
    order: 1;
    gap: 0;
    padding-top: calc(12px + 58px + 40px);
    padding-bottom: 8px;
  }

  /* Nadpis vždy na dva řádky: 30 px (320) → 38 px (414+) */
  .hero__title { font-size: clamp(1.875rem, 9.4vw, 2.375rem); line-height: 1.1; }
  .hero__lead { max-width: 34em; margin-top: 16px; line-height: 1.6; }
  .hero__actions { flex-direction: column; gap: 10px; margin-top: 24px; }
  .btn { width: 100%; min-height: 52px; padding: 0 16px; }

  /* Pruh klientů přes celou šířku, menší loga, prolnutí na obou stranách */
  .clients {
    max-width: none;
    margin: 32px calc(var(--gutter) * -1) 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  .clients__track { animation-duration: 26s; }
  .clients__list { gap: 32px; padding-right: 32px; }
  .client { height: 48px; }
  .client img { height: calc(var(--h, 32px) * .8); }

  /* Obrázek v toku pod textem, přesahuje vpravo; bez parallaxu */
  .hero__visual {
    position: relative;
    order: 2;
    width: 112vw;
    right: auto; bottom: auto;
    margin: -2vw 0 -6vw 2vw;
    will-change: auto;
  }
}

/* Malé telefony: zkrácený podnadpis (druhá věta skrytá) */
@media (max-width: 480px) {
  .hero__lead-more { display: none; }
}

/* Telefon na šířku a jiné nízké obrazovky: kompaktní dvousloupcové rozvržení */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { flex-direction: row; min-height: auto; }
  .hero__inner {
    order: 1;
    gap: 28px;
    padding-top: calc(12px + 58px + 28px);
    padding-bottom: 16px;
  }
  .hero__content { max-width: 60vw; }
  .hero__title { font-size: clamp(1.875rem, 4.4vw, 2.5rem); }
  .hero__lead { max-width: none; margin-top: 12px; font-size: 15px; }
  .hero__lead-more { display: none; }
  .hero__actions { flex-direction: row; margin-top: 20px; }
  .btn { width: auto; min-height: 48px; padding: 0 18px; font-size: 14px; }
  .clients { max-width: 50vw; margin: 0; }
  .hero__visual {
    position: absolute;
    order: 0;
    width: 42vw;
    right: -4vw; bottom: -4vw; left: auto;
    margin: 0;
  }
}

/* Nízké, široké obrazovky (notebooky) */
@media (min-width: 768px) and (max-height: 720px) and (min-height: 501px) {
  .hero__inner { padding-top: calc(16px + var(--nav-h) + 48px); }
}

/* =========================================================
   MISE — černá sekce s terminálem
   ========================================================= */
.mission {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: 160px var(--gutter) 0;
}
.mission__head { text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.mission__title {
  margin: 28px auto 0;
  max-width: 900px;
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3rem); /* 28 → 48 px */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* Okno terminálu — spodní hrana navazuje na konec sekce */
.term {
  max-width: 900px;
  height: 490px;
  margin: 112px auto 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #131313;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}
.term__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  background: #232323;
}
.term__dots { position: absolute; left: 12px; display: flex; gap: 8px; }
.term__dots i { width: 12px; height: 12px; border-radius: 50%; background: #d83b3b; }
.term__dots i:nth-child(2) { background: #e2c423; }
.term__dots i:nth-child(3) { background: #03ca0b; }
.term__title { font-size: 16px; line-height: 12px; color: #b2b2b2; }

.term__body {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: .02em;
}
.term__line { margin: 0 0 8px; white-space: pre-wrap; }
/* Visící odsazení: zalomené řádky začínají pod textem, ne pod „>“ */
.term__line { padding-left: 2ch; text-indent: -2ch; }
.term__progress { text-indent: 0; }
.term__line--done { margin-top: 30px; padding-left: 34px; text-indent: -34px; white-space: normal; }
.term__icon { display: inline-block; width: 22px; height: 22px; margin-right: 4px; vertical-align: -4px; color: #ffb21e; }
/* Ukazatel průběhu kreslený v CSS (stejná šířka v každém písmu); --p = 0…1 */
.term__fill {
  display: inline-block;
  width: 10ch;
  height: .95em;
  margin: 0 .15em;
  vertical-align: -.12em;
  background: linear-gradient(#fff, #fff) 0 0 / calc(var(--p, 1) * 100%) 100% no-repeat;
  transition: background-size .12s linear;
}
.term__pct { display: inline-block; min-width: 4ch; }

/* Blikající kurzor na právě psaném řádku */
.term__cursor {
  display: inline-block;
  width: .6em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: #fff;
  animation: blink 1s steps(1) infinite;
}

@media (max-width: 767px) {
  .mission { padding-top: 96px; }
  .mission__title { margin-top: 20px; line-height: 1.1; }
  .term { height: 420px; margin-top: 64px; }
  .term__title { font-size: 14px; }
  .term__body { padding: 14px 12px; font-size: 13px; line-height: 21px; letter-spacing: 0; }
  .term__line { margin-bottom: 10px; }
  /* Ukazatel průběhu na vlastním řádku, odsazený pod text */
  .term__progress { display: block; }
  .term__line--done { margin-top: 22px; padding-left: 26px; text-indent: -26px; }
  .term__icon { width: 18px; height: 18px; margin-right: 0; vertical-align: -3px; }
}

/* =========================================================
   SLUŽBY — tři „skleněné“ karty
   ========================================================= */
.services { padding: 160px var(--gutter) 106px; }
.services__head { max-width: 900px; margin: 0 auto; text-align: center; }
.section-title {
  margin-top: 28px;
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3rem); /* 28 → 48 px */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.services__lead { margin-top: 24px; font-size: 16px; line-height: 24px; color: var(--ink); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  max-width: 1128px;
  margin: 48px auto 0;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .72);
  background-color: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 20px 20px 32px rgba(0, 0, 0, .03),
    inset -20px -20px 32px rgba(255, 255, 255, .08),
    inset -1px -1px 0 rgba(255, 255, 255, .64),
    2px 2px 16px rgba(0, 0, 0, .02);
}
.service__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
}
.service__icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.service__icon svg {
  position: relative;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}
.service__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 16px; color: var(--ink); }
.service__text { margin-top: 12px; font-size: 16px; line-height: 24px; color: #484848; }

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; max-width: 640px; gap: 16px; }
  .service { gap: 32px; }
}
@media (max-width: 767px) {
  .services { padding: 96px var(--gutter) 72px; }
  .section-title { margin-top: 20px; line-height: 1.1; }
  .services__lead { margin-top: 18px; }
  .services__grid { margin-top: 36px; }
  .service { gap: 24px; padding: 20px 18px; }
  .service__text { line-height: 1.6; }
}

/* =========================================================
   RECENZE — posuvník skleněných karet
   ========================================================= */
.reviews { padding: 112px 0 122px; overflow: hidden; }
.reviews__head { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.reviews__carousel { margin-top: 96px; }

/* Okno posuvníku = šířka obsahu; karty za okraji zůstávají vidět (sekce ořezává až okraj stránky) */
.reviews__viewport {
  --gap: 20px;
  --per: 2; /* kolik karet je vidět vedle sebe */
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 8px var(--gutter) 16px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.reviews__viewport.is-dragging { cursor: grabbing; }
.reviews__viewport:focus-visible { outline-offset: 4px; border-radius: 15px; }
.reviews__track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  will-change: transform;
}
.reviews__track.is-animating { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }

.review {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  padding: 20px;
  scroll-snap-align: center;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .72);
  background-color: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 20px 20px 32px rgba(0, 0, 0, .03),
    inset -20px -20px 32px rgba(255, 255, 255, .08),
    inset -1px -1px 0 rgba(255, 255, 255, .64),
    2px 2px 16px rgba(0, 0, 0, .02);
}
.review__quote { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink); }
.review__author { display: flex; align-items: center; gap: 8px; }
.review__author img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review__author p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--ink);
}

/* Tečky stránek */
.reviews__dots { display: flex; justify-content: center; gap: 0; margin-top: 40px; }
.reviews__dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  touch-action: manipulation;
}
.reviews__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(35, 35, 35, .18);
  transition: background-color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.reviews__dot[aria-current="true"]::before { background: var(--ink); transform: scale(1.1); }
@media (hover: hover) {
  .reviews__dot:hover::before { background: rgba(35, 35, 35, .45); }
}

/* Tablet a mobil: jedna karta, sousední vykukují po stranách */
@media (max-width: 900px) {
  .reviews__viewport { --per: 1; max-width: 600px; padding-inline: 48px; }
}
@media (max-width: 767px) {
  .reviews { padding: 88px 0 88px; }
  .reviews__carousel { margin-top: 48px; }
  /* výška posuvníku se přizpůsobí zobrazené kartě (JS nastaví height), delší sousedky se ořízne */
  .reviews__viewport { --gap: 12px; padding-inline: 28px; overflow: visible clip; }
  .reviews__track { align-items: flex-start; transition: height .5s var(--ease-soft); }
  .reviews__track.is-animating { transition: transform .7s cubic-bezier(.22, 1, .36, 1), height .5s var(--ease-soft); }
  .review { gap: 40px; padding: 20px 18px; }
  .review__quote { font-size: 15px; line-height: 1.6; }
  .reviews__dots { margin-top: 24px; }
}

/* =========================================================
   O MNĚ — černá sekce, loga klientů v rámečcích, kvádr zespodu
   ========================================================= */
.about {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: 128px var(--gutter) 0;
}
.about__head { max-width: 900px; margin: 0 auto; text-align: center; }

/* Portrét s barevným prstencem v barvách kvádrů */
.about__person { margin: 0 0 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.about__photo {
  display: block;
  width: 192px;
  height: 192px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #1d2bd8, #ffcc00, #ff4d17, #1d2bd8);
}
.about__photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #000;
  object-fit: cover;
}
.about__person figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  text-transform: uppercase;
}
.about__person figcaption span { color: #8a8a8a; }
.section-title--light { color: #fff; }
.about .section-title { max-width: 640px; margin-inline: auto; } /* dva řádky jako na referenci */
.about__lead {
  max-width: 670px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 24px;
  color: #b2b2b2;
}
.about__actions { margin-top: 24px; }

/* Bílé tlačítko na tmavém pozadí */
.btn--light { background-color: #fff; color: #000; }
.btn--light:focus-visible, .btn--light:active { background-color: #e6e4da; }
@media (hover: hover) {
  .btn--light:hover { background-color: #e6e4da; }
}

.about__logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  max-width: 1128px;
  margin: 48px auto 0;
}
.about__logos li {
  position: relative;
  z-index: 2;
  background-color: #000;
  display: grid;
  place-items: center;
  height: 105px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: border-color .3s var(--ease-soft), background-color .3s var(--ease-soft);
}
.about__logos img { width: auto; height: var(--h, 32px); max-width: 80%; object-fit: contain; }
@media (hover: hover) {
  .about__logos li:hover { border-color: rgba(255, 255, 255, .45); background-color: #080808; }
}

/* Kvádr vykukující zespodu se žlutou září nad horní hranou */
.about__visual {
  position: relative;
  width: min(720px, 92vw);
  margin: calc(min(720px, 92vw) * -.025) auto 0; /* špička schovaná pod prostřední dlaždicí */
  aspect-ratio: 1793 / 576;
}
.about__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  z-index: 3; /* nad dlaždicemi, aby záře prosvítala přes spodek prostřední dlaždice */
  width: 34%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 40, .5), rgba(255, 196, 40, 0));
  filter: blur(24px);
  mix-blend-mode: screen; /* záře přes černé pozadí obrázku */
  pointer-events: none;
}
.about__visual img { position: relative; display: block; width: 100%; height: 100%; }
/* Rámeček zůstává na místě (spolehlivě se spustí i na konci stránky),
   vyjíždí jen obrázek zpoza spodní hrany sekce */
.js .about__visual[data-inview] { opacity: 1; transform: none; }
.js .about__visual img {
  opacity: 0;
  transform: translate3d(0, 55%, 0);
  transition: opacity 1s var(--ease-soft) .15s, transform 1.6s var(--ease-out) .15s;
}
.js .about__visual.is-inview img { opacity: 1; transform: none; }
.js .about__visual::before { opacity: 0; transition: opacity 1.2s var(--ease-soft) .7s; }
.js .about__visual.is-inview::before { opacity: 1; }

@media (max-width: 1024px) {
}
@media (max-width: 767px) {
  .about { padding-top: 80px; }
  .about__person { margin-bottom: 32px; }
  .about__photo { width: 144px; height: 144px; }
  .about__lead { margin-top: 18px; }
  .about__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
  .about__logos li { height: 84px; }
  .about__logos li:last-child { grid-column: 1 / -1; }
  .about__logos img { height: calc(var(--h, 32px) * .85); }
  .about__actions .btn { width: 100%; min-height: 52px; }
}

/* =========================================================
   PROČ WEBPILOT — ilustrace vlevo, akordeon výhod vpravo
   ========================================================= */
.why { padding: 160px var(--gutter); }
.why__inner {
  display: grid;
  grid-template-columns: 392px minmax(0, 549px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  max-width: 1102px;
  margin: 0 auto;
}
.why__visual .plane-art { display: block; width: 100%; height: auto; border-radius: 8px; }

/* Přílet vlaštovky: přiletí zleva zdola, za ní se „vykreslí“ dráha letu, pak se rozsvítí záře
   a vlaštovka se jemně vznáší. Spouští se třídou .is-inview na .why__visual. */
.plane-art__plane,
.plane-art__float,
.plane-art__trail-reveal { transform-box: fill-box; }
.plane-art__plane { transform-origin: 50% 50%; }
.plane-art__trail-reveal { transform-origin: 0 50%; }
.plane-art__float { transform-origin: 50% 50%; }

.js .why__visual .plane-art__plane { opacity: 0; transform: translate(-210px, 170px) rotate(-16deg) scale(.55); }
.js .why__visual .plane-art__trail-reveal { transform: scaleX(0); }
.js .why__visual .plane-art__glow { opacity: 0; }

.js .why__visual.is-inview .plane-art__plane {
  opacity: 1;
  transform: none;
  transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .35s, opacity .45s var(--ease-soft) .35s;
}
.js .why__visual.is-inview .plane-art__trail-reveal {
  transform: none;
  transition: transform 1.4s cubic-bezier(.22, .9, .3, 1) .55s;
}
.js .why__visual.is-inview .plane-art__glow { opacity: 1; transition: opacity 1.2s var(--ease-soft) 1.3s; }
.js .why__visual.is-inview .plane-art__float { animation: plane-float 5.5s ease-in-out 2s infinite; }

@keyframes plane-float {
  0%, 100% { transform: none; }
  50% { transform: translate(3px, -7px) rotate(-1.5deg); }
}
.why__title { max-width: 516px; text-align: left; }

.accordion { margin-top: 80px; display: flex; flex-direction: column; gap: 2px; }
.accordion__heading { margin: 0; font: inherit; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  text-align: left;
  font-size: 20px;
  font-weight: 400;
  line-height: 23px;
  color: #000;
  touch-action: manipulation;
}
.accordion__icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease-out);
}
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }
/* Plynulé rozbalení přes grid-template-rows 0fr → 1fr (bez měření výšky v JS) */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  margin: 3px 0 14px;
  font-size: 16px;
  line-height: 24px;
  color: #484848;
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition: opacity .3s var(--ease-soft), transform .45s var(--ease-out);
}
.accordion__item.is-open .accordion__panel p { opacity: 1; transform: none; transition-delay: .08s; }
@media (hover: hover) {
  .accordion__trigger:hover { color: #484848; }
}

@media (max-width: 900px) {
  .why__inner { grid-template-columns: 1fr; gap: 56px; max-width: 600px; }
  .why__visual { width: min(392px, 100%); margin: 0 auto; }
}
@media (max-width: 767px) {
  .why { padding: 96px var(--gutter); }
  .accordion { margin-top: 40px; }
  .accordion__trigger { font-size: 18px; line-height: 1.3; }
}

/* =========================================================
   CENÍK — skleněné karty, prostřední zvýrazněná černě
   ========================================================= */
.pricing { padding: 160px var(--gutter) 106px; }
.pricing__head { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing__lead { max-width: 640px; margin: 24px auto 0; font-size: 16px; line-height: 24px; color: var(--ink); }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 19px;
  max-width: 1128px;
  margin: 64px auto 0;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .72);
  background-color: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 20px 20px 32px rgba(0, 0, 0, .03),
    inset -20px -20px 32px rgba(255, 255, 255, .08),
    inset -1px -1px 0 rgba(255, 255, 255, .64),
    2px 2px 16px rgba(0, 0, 0, .02);
}
.plan__name { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.plan__desc { margin-top: 12px; font-size: 16px; line-height: 24px; color: #484848; }
.plan__price {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(35, 35, 35, .1);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan__features { display: grid; gap: 10px; margin: 24px 0 32px; font-size: 16px; line-height: 22px; color: var(--ink); }
.plan__features li { position: relative; padding-left: 28px; }
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__btn { width: 100%; margin-top: auto; }

/* Nejčastěji volená — černá karta jako černé sekce webu */
.plan--featured {
  border-color: #000;
  background: #000;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .55);
  color: #fff;
}
.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .plan__features { color: #fff; }
.plan--featured .plan__desc { color: #b2b2b2; }
.plan--featured .plan__price { border-top-color: rgba(255, 255, 255, .16); }
.plan--featured .plan__features li::before { background: #ffcc00; }
.plan__badge {
  position: absolute;
  top: -13px;
  left: 24px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: linear-gradient(100deg, #1d2bd8, #ff4d17 60%, #ffcc00);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

@media (max-width: 1024px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 560px; gap: 28px; }
}
@media (max-width: 767px) {
  .pricing { padding: 96px var(--gutter) 72px; }
  .pricing__lead { margin-top: 18px; }
  .pricing__grid { margin-top: 44px; }
  .plan { padding: 26px 20px 20px; }
  .plan__price { font-size: 36px; }
  .plan__btn { min-height: 52px; }
}

/* =========================================================
   STRÁNKA PORTFOLIO — modrý úvod + dlaždice případových studií
   ========================================================= */
.nav__link.is-current { background-color: #fff; } /* aktuální stránka: bílá „pilulka“ jako na referenci */

.pf-hero {
  position: relative;
  overflow: hidden;
  min-height: 695px;
  padding: 240px var(--gutter) 160px;
  background: #042cc0;
  color: #fff;
}
.pf-hero__inner { position: relative; z-index: 1; max-width: 1128px; margin: 0 auto; }
.pf-hero__title {
  max-width: 830px;
  margin: 24px 0 0;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); /* 36 → 64 px */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
}
.pf-hero__cube { position: absolute; right: -8vw; bottom: -30%; width: min(60vw, 840px); pointer-events: none; }
.pf-hero__cube img { display: block; width: 100%; height: auto; transform: scaleX(-1); }

.cases { position: relative; z-index: 2; padding: 0 var(--gutter) 160px; margin-top: -113px; }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 554px));
  justify-content: center;
  gap: 78px 20px;
  max-width: 1128px;
  margin: 0 auto;
}
.case { display: block; }
.case__link {
  display: grid;
  grid-template-rows: 64px 1fr auto; /* pruh pro logo → texty u všech dlaždic na stejné čáře */
  gap: 32px;
  height: 100%;
  min-height: 352px;
  padding: 80px;
  border-radius: 32px;
  border: 1px solid #b2b2b2;
  background: #f9f7ec;
  transition: border-color .35s var(--ease-soft), transform .5s var(--ease-out);
}
.case__logo { display: block; align-self: center; width: auto; height: var(--h, 32px); max-width: 100%; object-fit: contain; object-position: left center; }
.case__text { margin: 0; align-self: end; max-width: 394px; font-size: 16px; line-height: 24px; color: #484848; }
.case__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--ink);
}
.case__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.case__body { display: flex; flex-direction: column; }
@media (hover: hover) {
  .case__link:hover { border-color: #232323; }
  .case__link:hover .case__cta svg { transform: translateX(5px); }
}
.case__link:focus-visible { border-color: #232323; outline-offset: 4px; }

@media (max-width: 1024px) {
  .cases__grid { grid-template-columns: minmax(0, 554px); gap: 24px; }
  .pf-hero__cube { width: 80vw; right: -20vw; }
}
@media (max-width: 767px) {
  .pf-hero { min-height: 0; padding: 150px var(--gutter) 150px; }
  .pf-hero__cube { width: 120vw; right: -35vw; bottom: -18%; opacity: .9; }
  .cases { padding-bottom: 96px; margin-top: -72px; }
  .case__link { padding: 40px 28px; min-height: 0; gap: 32px; border-radius: 24px; }
}

/* =========================================================
   PRO KOHO — modrá sekce
   ========================================================= */
.audience {
  position: relative;
  overflow: hidden;
  min-height: 718px;
  padding: 160px var(--gutter) 160px;
  background: #042cc0; /* shodné s pozadím fotky */
  color: #fff;
}
.audience__visual {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(44vw, 640px);
  pointer-events: none;
}
.audience__visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.js .audience__visual[data-inview] { transform: translate3d(-60px, 0, 0); transition-duration: 1.2s, 1.8s; }
.audience__list { position: relative; display: flex; flex-direction: column; align-items: center; gap: 110px; }
.audience__item { max-width: 680px; text-align: center; }
.audience__title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.2vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.audience__who {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}
.audience__text { max-width: 440px; margin: 24px auto 0; font-size: 16px; line-height: 24px; }
/* Psací kurzor za vypisovaným slovem */
.audience__who.is-typing::after {
  content: "";
  display: inline-block;
  width: .08em;
  height: .9em;
  margin-left: .06em;
  vertical-align: -.08em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}

/* =========================================================
   KONTAKT — závěrečná výzva
   ========================================================= */
.cta { padding: 160px var(--gutter) 0; text-align: center; }
.cta .section-title { max-width: 900px; margin: 0 auto; }
.cta__actions { margin-top: 32px; }

/* =========================================================
   PATIČKA
   ========================================================= */
.footer { padding-top: 160px; overflow: hidden; }
.footer__inner { max-width: 1128px; margin: 0 auto; padding: 0 var(--gutter); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  font-size: 16px;
  line-height: 24px;
}
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.footer__links a { color: rgba(35, 36, 38, 1); transition: color .4s var(--ease-soft); }
.footer__links a:focus-visible { color: rgba(35, 36, 38, .64); }
@media (hover: hover) {
  .footer__links a:hover { color: rgba(35, 36, 38, .64); }
}
.footer__sep { width: 1px; height: 18px; background: rgba(35, 35, 35, .35); }
.footer__logo { display: block; margin: 120px 0 64px; }
.footer__logo img { display: block; width: 100%; height: auto; }

.footer__band-img { display: block; width: 100%; height: auto; }
.footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: 18px max(var(--gutter), calc((100% - 1128px) / 2));
  background: #000;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
}
.footer__bottom p { margin: 0; }

@media (max-width: 767px) {
  .audience { min-height: 0; padding: 96px var(--gutter) 340px; }
  .audience__list { gap: 72px; }
  .audience__visual { inset: auto 0 0 0; width: 100%; height: 320px; }
  .audience__visual img { object-position: 0 100%; }
  .cta { padding-top: 96px; }
  .cta .btn { width: 100%; min-height: 52px; }
  .footer { padding-top: 96px; }
  .footer__links { flex-direction: column; gap: 14px; }
  .footer__nav { flex-direction: column; align-items: center; gap: 10px; }
  .footer__sep { width: 32px; height: 1px; }
  .footer__logo { margin: 64px 0 40px; }
  .footer__bottom { flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; gap: 6px; padding: 16px var(--gutter); font-size: 12px; }
}

/* Kotvy: plynulé posouvání a odsazení pod plovoucí lištu */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================
   ANIMACE
   ========================================================= */

/* Nadpis sekce — slova naskakují postupně (JS rozdělí text na .word) */
.js [data-split] .word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .4em, 0);
  transition: opacity .6s var(--ease-soft), transform .8s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + .1s);
}
.js [data-split].is-inview .word { opacity: 1; transform: none; }

/* Prvky odhalované při scrollu (JS přidá .is-inview). Bez JS jsou vidět hned. */
.js [data-inview] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .9s var(--ease-soft) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.js .term[data-inview] { transform: translate3d(0, 100px, 0); }
.js [data-inview].is-inview { opacity: 1; transform: none; }

/* Nadpis — řádky vyjíždějí zpod masky */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__inner {
  display: block;
  animation: line-up 1.1s var(--ease-out) both;
}
.line:nth-child(1) .line__inner { animation-delay: .25s; }
.line:nth-child(2) .line__inner { animation-delay: .36s; }

/* Ostatní prvky — jemný fade-up */
.reveal { animation: fade-up 1s var(--ease-out) var(--d, 0s) both; }

/* Obrázek — „vyrůstá“ zespodu, spustí se až po načtení (JS přidá .is-ready) */
.js .hero__img { opacity: 0; transform: translate3d(0, 14%, 0) scale(1.03); }
.js .hero__img.is-ready {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease-soft), transform 1.6s var(--ease-out);
}

@keyframes line-up   { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes fade-up   { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes nav-in    { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }
@keyframes marquee   { to { transform: translate3d(-50%, 0, 0); } }
@keyframes blink     { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .clients__track { animation: none; }
  .js .hero__img { opacity: 1; transform: none; }
  .js [data-inview], .js [data-split] .word, .js .about__visual img, .js .about__visual::before { opacity: 1; transform: none; }
  .js .why__visual .plane-art__plane, .js .why__visual .plane-art__trail-reveal, .js .why__visual .plane-art__glow { opacity: 1; transform: none; }
  .js .why__visual .plane-art__float { animation: none; }
  .term__cursor { display: none; }
}

/* =========================================================
   PŘÍPADOVÁ STUDIE — podstránka portfolia
   ========================================================= */
.case-hero { padding: 200px var(--gutter) 120px; max-width: 1128px; margin: 0 auto; }
.case-back { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; }
.case-hero__logo { display: block; width: auto; height: 40px; margin: 40px 0 0; }
.case-hero__title { margin: 40px 0 0; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -.025em; }
.case-meta { display: flex; flex-wrap: wrap; gap: 32px; margin: 56px 0 0; font-size: 16px; line-height: 24px; }
.case-meta dt { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; color: #8a8a8a; }
.case-meta dd { margin: 4px 0 0; }
.case-meta a { text-decoration: underline; text-underline-offset: 4px; }
.case-quote { padding: 0 var(--gutter) 120px; }
.case-quote blockquote { max-width: 760px; margin: 0 auto; padding: 56px; border-radius: 32px; border: 1px solid #b2b2b2; background: #f9f7ec; }
.case-quote p { margin: 0; font-size: 20px; line-height: 32px; }
.case-quote footer { margin-top: 32px; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; }
.case-quote footer span { display: block; margin-top: 4px; color: #8a8a8a; }
.case-body { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 120px; display: grid; gap: 64px; }
.case-block h2 { margin: 0 0 16px; font-size: 28px; font-weight: 600; line-height: 1.2; }
.case-block p { margin: 0; font-size: 16px; line-height: 24px; color: #484848; }
.case-todo { font-family: var(--font-mono); color: #8a8a8a !important; border: 1px dashed #b2b2b2; padding: 16px; border-radius: 12px; }
.case-next { padding: 0 var(--gutter) 160px; text-align: center; }
@media (max-width: 767px) {
  .case-hero { padding-top: 150px; }
  .case-quote blockquote { padding: 32px 24px; }
  .case-quote p { font-size: 17px; line-height: 26px; }
}

/* =========================================================
   PLOVOUCÍ KONTAKT (WhatsApp) + COOKIE LIŠTA
   ========================================================= */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #000;
  color: #f9f7ec;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 20px 40px -18px rgba(0, 0, 0, .55);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease-soft);
}
.wa-fab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wa-fab svg path:last-child { stroke-width: 2.4; }
.wa-fab:hover { transform: translateY(-2px); background: #484848; }
.wa-fab:focus-visible { outline: 2px solid #232323; outline-offset: 4px; }
@media (max-width: 767px) {
  .wa-fab span { display: none; }
  .wa-fab { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
}

.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(249, 247, 236, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -24px rgba(35, 30, 10, .4);
  display: grid;
  gap: 16px;
  transform: translateY(140%);
  transition: transform .6s var(--ease-out);
}
.cookie.is-visible { transform: none; }
.cookie.is-hidden { display: none; }
.cookie p { margin: 0; font-size: 14px; line-height: 22px; color: #484848; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; color: #232323; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
.cookie__actions .btn--ghost { background: transparent; }
@media (max-width: 767px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

/* Údaje u CTA a sekce rychlosti */
.cta__note { max-width: 560px; margin: 20px auto 0; font-size: 16px; line-height: 24px; color: #484848; text-align: center; }
.speed { padding: 160px var(--gutter); background: #000; color: #fff; text-align: center; }
.speed__inner { max-width: 880px; margin: 0 auto; }
.speed .section-title { color: #fff; }
.speed__lead { max-width: 600px; margin: 24px auto 0; font-size: 18px; line-height: 28px; color: #b2b2b2; }
.speed__score { margin: 56px auto 0; display: inline-grid; justify-items: center; gap: 12px; padding: 40px 56px; border-radius: 24px; border: 1px solid rgba(255,255,255,.2); }
.speed__num { font-size: clamp(4rem, 2.4rem + 6vw, 7rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; background: linear-gradient(100deg, #1d2bd8, #ff4d17 55%, #ffcc00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.speed__label { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; color: #b2b2b2; }
