/* ===== CFG TECH — page styles (loads after cfg-base.css + cfgtech-brand.css) =====
   Preset A: tmavý hero/horní sekce → světlé sekce (případovky, kontakt). */

html,
body {
  overflow-x: hidden;
}

/* menší svislé mezery mezi sekcemi (jen cfgtech, přebíjí --py z cfg-base) */
:root {
  --py: 100px;
}

@media (max-width: 1024px) {
  :root { --py: 76px; }
}

@media (max-width: 640px) {
  :root { --py: 56px; }
}

/* kotvy (#kontakt, #konzultace, #produkty…) nesmí zmizet pod fixní navigací */
section[id],
[id] {
  scroll-margin-top: 100px;
}

body {
  background: var(--brand-bg);
  color: var(--brand-text-on-dark);
  font-family: var(--f-body);
}

/* ---------- A11y základ ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--ct-r) 0;
  font-family: var(--f-ui);
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reveal on scroll — výchozí stav viditelný; JS přidá .reveal až po inicializaci
   (data-reveal hook), takže bez JS zůstává vše čitelné. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1),
              transform .65s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* produkty pod sebou — výraznější vstup při scrollu */
.ct-products .reveal {
  transform: translateY(28px);
  transition-duration: .75s;
}

.ct-products .reveal.is-visible {
  transform: none;
}

/* jemný stagger u ostatních mřížek (když se zobrazí najednou) */
.ct-stack .reveal:nth-child(1),
.ct-cards .reveal:nth-child(1) { transition-delay: 0ms; }
.ct-stack .reveal:nth-child(2),
.ct-cards .reveal:nth-child(2) { transition-delay: 55ms; }
.ct-stack .reveal:nth-child(3),
.ct-cards .reveal:nth-child(3) { transition-delay: 110ms; }
.ct-stack .reveal:nth-child(4),
.ct-cards .reveal:nth-child(4) { transition-delay: 165ms; }
.ct-stack .reveal:nth-child(5) { transition-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ct-products .reveal,
  .ct-stack .reveal,
  .ct-cards .reveal {
    transform: none;
    transition-delay: 0ms;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Vstupní animace textu (každé načtení stránky) ===== */
@keyframes ctFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ctAppear {
  to {
    opacity: 1;
  }
}

@keyframes ctDash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ctFlow {
  to {
    /* perioda dasharray 7+9 = 16 → offset musí být násobek, jinak tok „cuká“ */
    stroke-dashoffset: -32;
  }
}

@keyframes ctPulse {

  0%,
  100% {
    opacity: .25;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(1.12);
  }
}

.ct-hero h1,
.ct-hero__sub,
.ct-hero__ctas,
.ct-hero__trust {
  animation: ctFadeUp .6s ease both;
}

.ct-hero__sub {
  animation-delay: .12s;
}

.ct-hero__ctas {
  animation-delay: .22s;
}

.ct-hero__trust {
  animation-delay: .34s;
}

.ct-pagehero .ct-kicker {
  animation: ctFadeUp .5s ease both;
}

.ct-pagehero h1 {
  animation: ctFadeUp .6s ease .08s both;
}

.ct-pagehero__sub {
  animation: ctFadeUp .6s ease .18s both;
}

@media (prefers-reduced-motion: reduce) {

  .ct-hero h1,
  .ct-hero__sub,
  .ct-hero__ctas,
  .ct-hero__trust,
  .ct-pagehero .ct-kicker,
  .ct-pagehero h1,
  .ct-pagehero__sub {
    animation: none !important;
  }
}

/* ===== Tlačítka ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: var(--ct-r);
  border: none;
  min-height: 52px;
  letter-spacing: -.2px;
  transition: transform .15s, box-shadow .2s, opacity .2s, background .2s;
}

/* press feedback (i pro .btn--* varianty přes základní .btn) */
.btn:active { transform: scale(.97); transition: transform var(--dur-fast) var(--ease-out) }

.btn--primary {
  background: var(--brand-accent);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(61, 123, 255, .4);
}

.btn--gradient {
  background: var(--ct-grad-btn);
  color: #fff;
}

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--ct-glow);
  filter: brightness(1.06);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-text-on-dark);
  border: 1.5px solid rgba(var(--brand-text-on-dark-rgb), .28);
}

.btn--ghost:hover {
  border-color: rgba(var(--brand-text-on-dark-rgb), .7);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--divider-dark);
}

.btn--ghost-dark:hover {
  border-color: var(--text-dark);
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* monospace pill pro technické tagy a čísla */
.ct-mono {
  font-family: var(--f-mono);
  font-feature-settings: "tnum" 1;
}

.ct-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.2px;
  color: var(--ct-accent-dark);
  background: var(--ct-grad-soft);
  border: 1px solid rgba(61, 123, 255, .25);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

/* ===== NAV (tmavý) — doplňky k cfg-base ===== */
.nav {
  border-bottom: 1px solid rgba(var(--brand-text-on-dark-rgb), .08);
  transition: height .25s, background .25s, backdrop-filter .25s;
}

.nav.is-scrolled {
  height: 68px;
  background: rgba(14, 17, 22, .82);
  backdrop-filter: saturate(140%) blur(12px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-shrink: 0;
}

.nav__logo img {
  width: 140px;
  height: auto;
  /* logo je černé na průhledném → na tmavém navu invertujeme na bílou.
     Po dodání bílého SVG (sekce 23 zadání) filtr odstranit. */
  filter: brightness(0) invert(1);
}

.nav__cfg-badge {
  font-size: 9px;
  gap: 2px;
  padding-left: 16px;
  margin-left: 0;
}

.nav__cfg-badge img {
  width: 44px;
}

.nav__links {
  gap: 24px;
}

.nav__item {
  font-size: 14.5px;
  white-space: nowrap;
  color: var(--brand-text-on-dark);
}

.nav__cta {
  padding: 10px 18px;
  border-radius: var(--ct-r);
  background: var(--ct-grad-btn);
  color: #fff;
  transition: transform .15s, box-shadow .2s, filter .2s, opacity .2s;
}

.nav__cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: var(--ct-glow);
  filter: brightness(1.06);
}

/* press feedback */
.nav__cta:active { transform: scale(.97); transition: transform var(--dur-fast) var(--ease-out) }

/* přepínač motivu */
.nav__theme {
  width: 40px;
  height: 40px;
  border-radius: var(--ct-r);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .22);
  background: transparent;
  color: var(--brand-text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}

.nav__theme:hover {
  border-color: rgba(var(--brand-text-on-dark-rgb), .5);
}

.nav__theme .icon {
  width: 18px;
  height: 18px;
}

.nav__theme .ic-sun,
.nav__theme .ic-moon {
  display: inline-flex;
}

.nav__theme .ic-moon {
  display: none;
}

html[data-theme="light"] .nav__theme .ic-sun {
  display: none;
}

html[data-theme="light"] .nav__theme .ic-moon {
  display: inline-flex;
}

.nav__lang {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: rgba(var(--brand-text-on-dark-rgb), .7);
  padding: 6px 10px;
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .25);
  border-radius: var(--r-pill);
  transition: opacity .2s;
}

.nav__lang:hover {
  opacity: .7;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--brand-text-on-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .nav__links {
    gap: 16px;
  }

  .nav__item {
    font-size: 13.5px;
  }

  .nav__cta {
    padding: 9px 14px;
  }

  .nav__logo img {
    width: 120px;
  }
}

@media (max-width: 1024px) {
  .nav__links {
    position: fixed;
    inset: 88px 0 0 0;
    background: var(--brand-darker);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    z-index: 99;
  }

  .nav.is-open .nav__links {
    transform: none;
  }

  .nav__links .nav__item {
    display: flex;
    padding: 16px 4px;
    min-height: 48px;
    border-bottom: 1px solid rgba(var(--brand-text-on-dark-rgb), .12);
    font-size: 18px;
  }

  .nav__links .nav__cta {
    margin-top: 20px;
    justify-content: center;
    text-align: center;
    padding: 16px 20px;
    font-size: 16px;
    border-bottom: none;
  }

  .nav__links .nav__cfg-badge {
    border-left: none;
    padding: 24px 4px 0;
    margin: 8px 0 0;
  }

  .nav__links .nav__lang {
    align-self: flex-start;
    margin-top: 20px;
  }

  .nav__links .nav__theme {
    align-self: flex-start;
    margin-top: 20px;
    width: 44px;
    height: 44px;
  }

  .nav__burger {
    display: flex;
  }

  .nav.is-open .nav__burger span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .nav.is-open .nav__burger span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav__burger span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .nav__links .nav__item:not(.nav__cta) {
    display: flex;
  }

  .nav__brand {
    gap: 10px;
  }

  .nav__logo img {
    width: 112px;
  }

  /* na úzkém displeji stačí logo CFG Tech; badge skupiny je ve footeru */
  .nav__cfg-badge {
    display: none;
  }
}

/* ===== HERO (tmavý, datové toky) ===== */
.ct-hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(61, 123, 255, .22), transparent 60%),
    radial-gradient(800px 500px at 8% 12%, rgba(34, 211, 238, .12), transparent 55%),
    var(--brand-bg);
  padding: calc(88px + 84px) var(--px) 96px;
  position: relative;
  overflow: hidden;
}

.ct-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ct-hero h1 {
  font-family: var(--f-head);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: var(--brand-text-on-dark);
}

.ct-hero h1 em {
  font-style: normal;
  background: var(--ct-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ct-hero__sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.6;
  color: rgba(var(--brand-text-on-dark-rgb), .78);
  max-width: 560px;
}

.ct-hero__ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ct-hero__trust {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: rgba(var(--brand-text-on-dark-rgb), .7);
}

.ct-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-hero__trust b {
  color: var(--brand-text-on-dark);
  font-weight: 600;
}

.ct-hero__trust span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ct-cyan);
  box-shadow: 0 0 10px var(--ct-cyan);
}

.ct-hero__art {
  min-width: 0;
}

.ct-hero__art svg {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 28px rgba(61, 123, 255, .18));
}

/* spoje: základní linka se nakreslí, gradientová vrstva teče */
.ct-hero__art .ct-edge {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: ctDash 1.4s ease forwards .2s;
}

.ct-hero__art .ct-flow {
  stroke-dasharray: 7 9;
  animation: ctFlow 1.6s linear infinite;
  will-change: stroke-dashoffset;
}

/* putující datové pakety podél spojů */
.ct-hero__art .ct-packet {
  fill: #22d3ee;
  offset-rotate: 0deg;
  animation: ctTravel 3.2s linear infinite;
}

@keyframes ctTravel {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* prohlížeče bez offset-path: pakety skryjeme (spoje stále tečou) */
@supports not (offset-path: path('M0 0 L1 1')) {
  .ct-hero__art .ct-packet {
    display: none;
  }
}

/* pulzující kruhy jádra */
.ct-hero__art .ct-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ctRing 3.4s ease-in-out infinite;
}

.ct-hero__art .ct-ring--2 {
  animation-delay: .9s;
}

@keyframes ctRing {

  0%,
  100% {
    transform: scale(.92);
    opacity: .2;
  }

  50% {
    transform: scale(1.06);
    opacity: .55;
  }
}

/* satelity: jednorázový nájezd — bez kontinuálního plování (texty zůstávají klidné) */
.ct-hero__art .ct-sat {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ctAppear .5s ease both;
}

/* satelitní labely — silnější typografie + vertikální střed boxu */
.ct-hero__art .ct-sat text {
  letter-spacing: .02em;
  dominant-baseline: central;
}

.ct-hero__art .ct-sat--1 { animation-delay: .5s; }
.ct-hero__art .ct-sat--2 { animation-delay: .65s; }
.ct-hero__art .ct-sat--3 { animation-delay: .8s; }
.ct-hero__art .ct-sat--4 { animation-delay: .95s; }
.ct-hero__art .ct-sat--5 { animation-delay: 1.1s; }
.ct-hero__art .ct-sat--6 { animation-delay: 1.25s; }
.ct-hero__art .ct-sat--7 { animation-delay: 1.4s; }
.ct-hero__art .ct-sat--8 { animation-delay: 1.55s; }
.ct-hero__art .ct-sat--9 { animation-delay: 1.5s; }
.ct-hero__art .ct-sat--10 { animation-delay: 1.65s; }
.ct-hero__art .ct-sat--11 { animation-delay: 1.75s; }
.ct-hero__art .ct-sat--12 { animation-delay: 1.85s; }

/* AWS/cloud paket: oranžový místo azurového */
.ct-hero__art .ct-packet--aws {
  fill: #ff9d2e;
}

/* stack/frameworky paket: fialový */
.ct-hero__art .ct-packet--fw {
  fill: #a78bfa;
}


@media (prefers-reduced-motion: reduce) {

  .ct-hero__art .ct-edge,
  .ct-hero__art .ct-flow,
  .ct-hero__art .ct-packet,
  .ct-hero__art .ct-ring,
  .ct-hero__art .ct-sat {
    animation: none !important;
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .ct-hero__art .ct-packet {
    display: none;
  }
}

@media (max-width: 1024px) {
  .ct-hero {
    padding-top: calc(88px + 56px);
    padding-bottom: 72px;
  }

  .ct-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ct-hero__art {
    max-width: 420px;
    margin: 0 auto;
  }

  .ct-hero__art svg {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ct-hero {
    padding-top: calc(88px + 28px);
    padding-bottom: 48px;
  }

  .ct-hero h1 {
    font-size: clamp(30px, 8.8vw, 40px);
    letter-spacing: -1px;
    line-height: 1.12;
  }

  .ct-hero__sub {
    margin-top: 16px;
    font-size: 15.5px;
  }

  .ct-hero__ctas {
    margin-top: 24px;
    flex-direction: column;
  }

  .ct-hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .ct-hero__inner {
    gap: 0;
  }

  /* hub animace na telefonu zbytečná — jen text + CTA */
  .ct-hero__art {
    display: none;
  }
}

/* ===== ŽIVÁ ČÍSLA (počítadla / social proof) ===== */
.ct-numbers {
  position: relative;
  background:
    radial-gradient(900px 280px at 50% 0%, rgba(61, 123, 255, .12), transparent 70%),
    var(--brand-darker);
  padding: 40px var(--px);
  border-top: 1px solid rgba(var(--brand-text-on-dark-rgb), .08);
  border-bottom: 1px solid rgba(var(--brand-text-on-dark-rgb), .08);
}

.ct-numbers__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  align-items: start;
}

.ct-num {
  position: relative;
  text-align: center;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* svislé oddělovače mezi čísly */
.ct-num + .ct-num::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--brand-text-on-dark-rgb), .18) 20%,
    rgba(var(--brand-text-on-dark-rgb), .18) 80%,
    transparent
  );
}

.ct-num__val {
  font-family: var(--f-head);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* gradient jen na číselném spanu — ne na wrapperu (.ct-num__val) */
  color: #fff;
}

/* číslo — silný gradient (ne mdlá šedá); pouze textový uzel s data-count */
.ct-num__val [data-count] {
  background: var(--ct-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ct-num__val .ct-num__unit {
  font-size: .5em;
  letter-spacing: 0;
}

/* akcentní podtržení pod číslem */
.ct-num__val::after {
  content: "";
  display: block;
  width: 2.4em;
  max-width: 64px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--ct-grad);
  box-shadow: 0 0 14px rgba(61, 123, 255, .35);
}

.ct-num__label {
  display: block;
  margin-top: 10px;
  max-width: 18ch;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(var(--brand-text-on-dark-rgb), .82);
}

@media (max-width: 1024px) {
  .ct-numbers {
    padding: 32px var(--px);
  }

  .ct-numbers__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .ct-num {
    padding: 4px 8px;
  }

  .ct-num__label {
    font-size: 13.5px;
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  .ct-numbers {
    padding: 28px var(--px);
  }

  .ct-numbers__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 420px;
  }

  .ct-num {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 0;
    align-items: center;
    text-align: left;
    padding: 8px 0;
  }

  .ct-num + .ct-num::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(var(--brand-text-on-dark-rgb), .14) 15%,
      rgba(var(--brand-text-on-dark-rgb), .14) 85%,
      transparent
    );
  }

  .ct-num__val {
    grid-row: 1 / 3;
    font-size: 40px;
    letter-spacing: -1.5px;
    align-items: flex-start;
    font-variant-numeric: tabular-nums;
  }

  .ct-num__val::after {
    margin-top: 10px;
    width: 36px;
    max-width: none;
  }

  .ct-num__label {
    grid-column: 2;
    margin-top: 0;
    max-width: none;
    font-size: 14.5px;
    line-height: 1.35;
  }
}

/* ===== SECTION SHELL ===== */
.ct-section {
  padding: var(--py) var(--px);
  background: var(--bg-white);
  color: var(--text-body);
}

.ct-section--surface {
  background: var(--ct-atm-quiet);
}

.ct-section--dark {
  background: var(--brand-bg);
  color: var(--brand-text-on-dark);
}

.ct-section--darker {
  background: var(--brand-darker);
  color: var(--brand-text-on-dark);
}

.ct-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ct-kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--ct-accent-dark);
  margin-bottom: 16px;
}

.ct-kicker::before {
  content: "// ";
  opacity: .6;
}

/* světlý kicker na tmavém — AA (≥4.5:1), včetně "// " bez snížené opacity */
.ct-pagehero .ct-kicker,
.ct-section--dark .ct-kicker,
.ct-section--darker .ct-kicker {
  color: #a8c5ff;
}

.ct-pagehero .ct-kicker::before,
.ct-section--dark .ct-kicker::before,
.ct-section--darker .ct-kicker::before {
  opacity: 1;
}

.ct-h2 {
  font-family: var(--f-head);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-dark);
  max-width: 760px;
}

.ct-section--dark .ct-h2,
.ct-section--darker .ct-h2 {
  color: var(--brand-text-on-dark);
}

.ct-lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 660px;
}

.ct-section--dark .ct-lead,
.ct-section--darker .ct-lead {
  color: rgba(var(--brand-text-on-dark-rgb), .78);
}

.ct-section__head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== PRODUKTY (karty na tmavém — glow) ===== */
.ct-products {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ct-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #141922;
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .14);
  border-radius: 14px;
  padding: 30px 28px;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}

.ct-products .ct-product:nth-child(even) {
  background: #10151d;
}

.ct-product__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ct-grad-soft);
  border: 1px solid rgba(61, 123, 255, .3);
  color: #7aa6ff;
}

.ct-product__logo .icon {
  width: 26px;
  height: 26px;
}

/* varianta s reálným logem produktu (bílá ploška — čitelná na tmavém i světlém);
   všechna loga jednotně široká (width:100px), výška dle poměru stran (height:auto) */
.ct-product__logo--plate {
  width: auto;
  height: 60px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid rgba(14, 17, 22, .08);
  align-self: flex-start;
}

.ct-product__logo--plate img {
  width: 100px;
  height: auto;
  max-height: 48px;
  display: block;
}

/* textový wordmark pro platformu bez obrázkového loga (Robusta) — stejná šířka jako ostatní loga */
.ct-product__logo--wordmark span {
  display: block;
  width: 100px;
  text-align: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.4px;
  line-height: 1;
  color: var(--brand-accent);
}

.ct-product h3 {
  font-family: var(--f-head);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.4px;
  color: var(--brand-text-on-dark);
}

.ct-product p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(var(--brand-text-on-dark-rgb), .72);
}

.ct-product__for {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: rgba(var(--brand-text-on-dark-rgb), .68);
}

.ct-product__for b {
  color: var(--ct-cyan);
  font-weight: 500;
}

.ct-product__link {
  position: static;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-end;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  color: #9bc0ff;
  transition: gap .22s ease, color .22s ease;
}

.ct-product__link-text {
  position: relative;
  padding-bottom: 3px;
}

/* jemné podtržení domény — jen při hoveru */
.ct-product__link-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}

.ct-product__link .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .85;
  transition: transform .22s ease, opacity .22s ease;
}

/* celá karta klikatelná — bez viditelného CTA tlačítka */
.ct-product__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ct-product:has(.ct-product__link) {
  cursor: pointer;
}

.ct-product:has(.ct-product__link):hover {
  transform: translateY(-3px);
  border-color: rgba(61, 123, 255, .45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
  background: #171d28;
}

.ct-products .ct-product:nth-child(even):has(.ct-product__link):hover {
  background: #151b25;
}

.ct-product:has(.ct-product__link):hover .ct-product__link,
.ct-product__link:hover {
  gap: 14px;
  color: #c5daff;
}

.ct-product:has(.ct-product__link):hover .ct-product__link-text::after,
.ct-product__link:hover .ct-product__link-text::after {
  opacity: 1;
  transform: scaleX(1);
}

.ct-product:has(.ct-product__link):hover .ct-product__link .icon,
.ct-product__link:hover .icon {
  opacity: 1;
  transform: translateX(3px);
}

.ct-products__note {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(var(--brand-text-on-dark-rgb), .68);
  max-width: 720px;
}

/* Produkty pod sebou — plná šířka, logo | text | odkaz vpravo */
.ct-products--rows {
  grid-template-columns: 1fr;
  gap: 18px;
}

.ct-products--rows .ct-product {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
}

.ct-products--rows .ct-product__logo--plate {
  align-self: center;
  flex: 0 0 auto;
  height: 72px;
  padding: 0 24px;
}

.ct-products--rows .ct-product__logo--plate img {
  width: 132px;
  max-height: 52px;
}

.ct-products--rows .ct-product__logo--wordmark span {
  width: 132px;
  font-size: 26px;
}

.ct-products--rows .ct-product__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-products--rows .ct-product__link {
  margin-top: 0;
  align-self: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Homepage: produkty ve dvou sloupcích (detailní karty, větší loga) */
.ct-products--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ct-products--two .ct-product {
  gap: 20px;
  padding: 34px 30px;
}

.ct-products--two .ct-product__logo--plate {
  height: 80px;
  padding: 0 28px;
}

.ct-products--two .ct-product__logo--plate img {
  width: 150px;
  max-height: 60px;
}

.ct-products--two .ct-product__logo--wordmark span {
  width: 150px;
  font-size: 30px;
}

.ct-products--two .ct-product__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.ct-products--two .ct-product__link {
  align-self: flex-end;
}

.ct-products--two .ct-product p {
  font-size: 15.5px;
}

@media (max-width: 760px) {
  .ct-products--rows .ct-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }

  .ct-products--rows .ct-product__link {
    align-self: flex-end;
  }

  .ct-products--two {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ct-products--two .ct-product {
    padding: 24px 20px;
    gap: 16px;
  }

  .ct-products--two .ct-product__logo--plate {
    height: 64px;
    padding: 0 20px;
  }

  .ct-products--two .ct-product__logo--plate img {
    width: 128px;
    max-height: 48px;
  }

  .ct-products--two .ct-product__logo--wordmark span {
    width: 128px;
    font-size: 26px;
  }
}

/* ===== TECHNOLOGIE (stack karty, tmavé) ===== */
.ct-stack {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ct-stack__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .14);
  border-radius: 14px;
  padding: 28px;
  box-shadow: none;
}

.ct-stack__card--wide {
  grid-column: 1 / -1;
}

.ct-stack__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ct-stack__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ct-grad-soft);
  border: 1px solid rgba(61, 123, 255, .3);
  color: #7aa6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-stack__icon .icon {
  width: 24px;
  height: 24px;
}

.ct-stack__head h3 {
  font-family: var(--f-head);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--brand-text-on-dark);
}

.ct-stack__card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(var(--brand-text-on-dark-rgb), .72);
}

.ct-stack__chips {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-stack__chips span {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: #7aa6ff;
  background: rgba(61, 123, 255, .1);
  border: 1px solid rgba(61, 123, 255, .3);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ct-stack na světlém — jednotné karty (bez barevného střídání) */
.ct-section--surface .ct-stack__card,
.ct-section--surface .ct-stack__card:nth-child(even):not(.ct-stack__card--wide),
.ct-section--surface .ct-stack__card--wide {
  background: var(--bg-white);
  border-color: var(--divider-dark);
  box-shadow: 0 8px 24px rgba(14, 17, 22, .04);
}

.ct-section--surface .ct-stack__icon {
  color: var(--ct-accent-dark);
}

.ct-section--surface .ct-stack__head h3 {
  color: var(--text-dark);
}

.ct-section--surface .ct-stack__card p {
  color: var(--text-body);
}

.ct-section--surface .ct-stack__chips span {
  color: var(--ct-accent-dark);
}

@media (max-width: 760px) {
  .ct-stack {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 16px;
  }

  .ct-stack__card {
    padding: 22px 18px;
  }

  .ct-stack__card--wide {
    grid-column: auto;
  }

  .ct-stack__chips span {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* interní systém (Robusta) — širší karta pod produkty */
.ct-internal {
  margin-top: 24px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .18);
  border-radius: 14px;
  padding: 30px 32px;
}

.ct-internal__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ct-grad-soft);
  border: 1px solid rgba(61, 123, 255, .3);
  color: #7aa6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-internal__icon .icon {
  width: 26px;
  height: 26px;
}

.ct-internal__tag {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: #7aa6ff;
}

.ct-internal h3 {
  font-family: var(--f-head);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.4px;
  color: var(--brand-text-on-dark);
  margin: 4px 0 8px;
}

.ct-internal p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(var(--brand-text-on-dark-rgb), .72);
  max-width: 800px;
}

@media (max-width: 640px) {
  .ct-internal {
    flex-direction: column;
    gap: 14px;
    padding: 22px 18px;
  }
}

@media (max-width: 1024px) {
  .ct-products {
    grid-template-columns: 1fr;
  }
}

/* ===== SLUŽBY (karty, světlé) ===== */
.ct-cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.ct-card {
  background: var(--bg-white);
  border: 1px solid var(--divider-dark);
  border-radius: var(--ct-r);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(14, 17, 22, .04);
}

/* tmavé sekce: jemný border, bez modrého glow mezi kartami */
.ct-section--dark .ct-card,
.ct-section--darker .ct-card {
  background: #171d28;
  border-color: rgba(var(--brand-text-on-dark-rgb), .14);
  box-shadow: none;
}

.ct-section--dark .ct-card:nth-child(even),
.ct-section--darker .ct-card:nth-child(even) {
  background: #171d28;
}

.ct-section--dark .ct-card h3,
.ct-section--darker .ct-card h3 {
  color: var(--brand-text-on-dark);
}

.ct-section--dark .ct-card p,
.ct-section--darker .ct-card p {
  color: rgba(var(--brand-text-on-dark-rgb), .72);
}

.ct-section--dark .ct-card__eg,
.ct-section--darker .ct-card__eg {
  color: rgba(var(--brand-text-on-dark-rgb), .68);
  border-top-color: rgba(var(--brand-text-on-dark-rgb), .16);
}

.ct-section--dark .ct-card__icon,
.ct-section--darker .ct-card__icon {
  color: #7aa6ff;
}

.ct-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ct-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ct-accent-dark);
}

.ct-card h3 {
  font-family: var(--f-head);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--text-dark);
}

.ct-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

.ct-card__eg {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  border-top: 1px dashed var(--divider-dark);
  padding-top: 12px;
}

@media (max-width: 760px) {
  .ct-cards {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 14px;
  }

  .ct-card {
    padding: 24px 20px;
  }
}

/* ===== VÝZVY → ŘEŠENÍ (před / po) ===== */
.ct-vs {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
}

.ct-vs__col {
  border-radius: 14px;
  padding: 32px 30px;
}

.ct-vs__col--before {
  background: rgba(var(--brand-text-on-dark-rgb), .04);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .1);
}

.ct-vs__col--after {
  background: var(--ct-grad-soft);
  border: 1px solid rgba(61, 123, 255, .35);
}

.ct-vs__label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .5px;
  margin-bottom: 18px;
}

.ct-vs__col--before .ct-vs__label {
  color: rgba(var(--brand-text-on-dark-rgb), .68);
}

.ct-vs__col--after .ct-vs__label {
  color: #7aa6ff;
}

.ct-vs__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 15.5px;
  line-height: 1.5;
}

.ct-vs__col--before .ct-vs__list li {
  color: rgba(var(--brand-text-on-dark-rgb), .7);
}

.ct-vs__col--after .ct-vs__list li {
  color: var(--brand-text-on-dark);
}

.ct-vs__list .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex-shrink: 0;
}

.ct-vs__col--before .ct-vs__list .icon {
  color: rgba(var(--brand-text-on-dark-rgb), .65);
}

.ct-vs__col--after .ct-vs__list .icon {
  color: var(--ct-cyan);
}

.ct-vs__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7aa6ff;
}

.ct-vs__arrow .icon {
  width: 34px;
  height: 34px;
}

@media (max-width: 1024px) {
  .ct-vs {
    grid-template-columns: 1fr;
  }

  .ct-vs__arrow {
    transform: rotate(90deg);
  }
}

/* ===== PŘÍPADOVÉ STUDIE ===== */
.ct-cases {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ct-case {
  background: var(--bg-white);
  border: 1px solid var(--divider-dark);
  border-radius: 14px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-case__metric {
  font-family: var(--f-mono);
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  background: var(--ct-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ct-case__metric-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -6px;
}

.ct-case h3 {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.ct-case__row {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-body);
}

.ct-case__row b {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ct-accent-dark);
  display: block;
  margin-bottom: 3px;
}

@media (max-width: 1024px) {
  .ct-cases {
    grid-template-columns: 1fr;
  }
}

/* ===== PRO KOHO (oborové segmenty) ===== */
.ct-segments {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ct-segment {
  background: var(--bg-white);
  border: 1px solid var(--divider-dark);
  border-radius: var(--ct-r);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-segment__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--ct-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ct-accent-dark);
}

.ct-segment h3 {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
}

.ct-segment p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .ct-segments {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ct-segments {
    grid-template-columns: 1fr;
  }
}

/* ===== KALKULAČKA ÚSPORY ===== */
.ct-calc {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .12);
}

.ct-calc__controls {
  background: rgba(255, 255, 255, .03);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.ct-calc__group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-text-on-dark);
  margin-bottom: 14px;
}

.ct-calc__value-input {
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 700;
  color: #7aa6ff;
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .2);
  border-radius: 8px;
  padding: 7px 12px;
  width: 92px;
  text-align: right;
  background: rgba(0, 0, 0, .25);
}

input[type="range"].ct-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #3d7bff var(--fill, 50%), rgba(255, 255, 255, .14) var(--fill, 50%));
  touch-action: pan-y;
}

input[type="range"].ct-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ct-grad);
  border: 4px solid #0e1116;
  box-shadow: 0 2px 12px rgba(61, 123, 255, .6);
  cursor: grab;
}

input[type="range"].ct-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3d7bff;
  border: 4px solid #0e1116;
  cursor: grab;
}

.ct-range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(var(--brand-text-on-dark-rgb), .68);
}

.ct-calc__result {
  background: var(--brand-darker);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.ct-calc__result-label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(var(--brand-text-on-dark-rgb), .68);
}

.ct-calc__result-value {
  font-family: var(--f-mono);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--brand-text-on-dark);
}

.ct-calc__result-value em {
  font-style: normal;
  background: var(--ct-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ct-calc__params {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(var(--brand-text-on-dark-rgb), .72);
}

.ct-calc__disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(var(--brand-text-on-dark-rgb), .65);
}

.ct-calc__result .btn {
  align-self: flex-start;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .ct-calc {
    grid-template-columns: 1fr;
  }

  .ct-calc__result .btn {
    align-self: stretch;
  }
}

/* ===== KROKY (proces) ===== */
.ct-steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.ct-step {
  background: var(--bg-white);
  border: 1px solid var(--divider-dark);
  border-radius: var(--ct-r);
  padding: 30px 26px;
}

.ct-section--dark .ct-step,
.ct-section--darker .ct-step {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(var(--brand-text-on-dark-rgb), .12);
}

.ct-step__num {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ct-accent-dark);
}

.ct-section--dark .ct-step__num,
.ct-section--darker .ct-step__num {
  color: #7aa6ff;
}

.ct-step h3 {
  margin-top: 14px;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.ct-section--dark .ct-step h3,
.ct-section--darker .ct-step h3 {
  color: var(--brand-text-on-dark);
}

.ct-step p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

.ct-section--dark .ct-step p,
.ct-section--darker .ct-step p {
  color: rgba(var(--brand-text-on-dark-rgb), .72);
}

@media (max-width: 1024px) {
  .ct-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ct-steps {
    grid-template-columns: 1fr;
  }
}

/* ===== SKUPINA CFG ===== */
.ct-group {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ct-group__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ct-group__chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-text-on-dark);
  background: rgba(var(--brand-text-on-dark-rgb), .05);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .14);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  transition: border-color .2s, transform .15s;
}

.ct-group__chip:hover {
  border-color: rgba(61, 123, 255, .5);
  transform: translateY(-2px);
}

.ct-group__text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(var(--brand-text-on-dark-rgb), .8);
  max-width: 680px;
}

.ct-group__text a {
  color: #7aa6ff;
  font-weight: 600;
  text-decoration: underline;
}

/* ===== KARIÉRA ===== */
.ct-career {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ct-career__point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ct-career__point .icon {
  width: 22px;
  height: 22px;
  color: var(--ct-cyan);
  margin-top: 2px;
}

.ct-career__point h3 {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-text-on-dark);
}

.ct-career__point p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(var(--brand-text-on-dark-rgb), .7);
}

@media (max-width: 1024px) {
  .ct-career {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ===== PRE-FOOTER: konzultace + lead formulář (tmavý jako hero) ===== */
.ct-precta {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(61, 123, 255, .22), transparent 60%),
    radial-gradient(800px 500px at 8% 12%, rgba(34, 211, 238, .12), transparent 55%),
    var(--brand-bg);
  padding: var(--py) var(--px);
  border-top: 1px solid rgba(var(--brand-text-on-dark-rgb), .08);
  overflow: hidden;
}

.ct-precta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 520px);
  gap: 48px 56px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.ct-precta__copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ct-precta .ct-kicker {
  color: #a8c5ff;
}

.ct-precta .ct-kicker::before {
  opacity: 1;
  color: #a8c5ff;
}

.ct-precta h2 {
  font-family: var(--f-head);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--brand-text-on-dark);
}

.ct-precta h2 em {
  font-style: normal;
  background: var(--ct-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ct-precta__text {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(var(--brand-text-on-dark-rgb), .78);
  max-width: 480px;
}

.ct-precta__points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-precta__points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .1);
  border-radius: 14px;
  box-shadow: none;
}

.ct-precta__points li strong {
  display: block;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-text-on-dark);
  letter-spacing: -.2px;
  margin-bottom: 2px;
}

.ct-precta__points li div > span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(var(--brand-text-on-dark-rgb), .68);
}

.ct-precta__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 123, 255, .16);
  border: 1px solid rgba(91, 154, 255, .35);
  color: #8eb6ff;
}

.ct-precta__check .icon {
  width: 16px;
  height: 16px;
}

.ct-precta__meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ct-precta__meta-item {
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .1);
  text-align: center;
}

.ct-precta__meta-val {
  display: block;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.4px;
  background: var(--ct-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ct-precta__meta-lab {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(var(--brand-text-on-dark-rgb), .62);
}

.ct-precta__direct {
  margin-top: auto;
  padding-top: 28px;
}

.ct-precta__direct-label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(var(--brand-text-on-dark-rgb), .62);
  margin-bottom: 10px;
}

.ct-precta__direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.ct-precta__direct-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-text-on-dark);
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(91, 154, 255, .45);
  transition: color .18s, border-color .18s;
}

.ct-precta__direct-links a:hover {
  color: #a8c5ff;
  border-bottom-color: #a8c5ff;
}

.ct-precta__direct-links .icon {
  width: 16px;
  height: 16px;
  color: #8eb6ff;
}

.ct-precta__form-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .12);
  border-radius: 18px;
  padding: clamp(28px, 3.2vw, 40px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: fit-content;
  align-self: stretch;
}

.ct-precta__form-title {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.4px;
  color: var(--brand-text-on-dark);
  margin-bottom: 22px;
}

.ct-precta__form-sub {
  font-size: 14.5px;
  color: rgba(var(--brand-text-on-dark-rgb), .68);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* moderní formulář — filled inputs, čistý focus (tmavá karta) */
.ct-precta .footer__form {
  gap: 14px;
}

.ct-precta .footer__field {
  gap: 6px;
}

.ct-precta .footer__field label {
  color: rgba(var(--brand-text-on-dark-rgb), .72);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
}

.ct-precta .footer__field label .muted {
  color: rgba(var(--brand-text-on-dark-rgb), .48);
  font-weight: 400;
}

.ct-precta .footer__field input,
.ct-precta .footer__field textarea {
  color: var(--brand-text-on-dark);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .12);
  background: rgba(0, 0, 0, .28);
  font-size: 15.5px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.ct-precta .footer__field input::placeholder,
.ct-precta .footer__field textarea::placeholder {
  color: rgba(var(--brand-text-on-dark-rgb), .42);
}

.ct-precta .footer__field input:hover,
.ct-precta .footer__field textarea:hover {
  background: rgba(0, 0, 0, .36);
  border-color: rgba(var(--brand-text-on-dark-rgb), .2);
}

.ct-precta .footer__field input:focus,
.ct-precta .footer__field textarea:focus {
  border-color: rgba(91, 154, 255, .55);
  background: rgba(0, 0, 0, .4);
  box-shadow: 0 0 0 3px rgba(61, 123, 255, .22);
  outline: none;
}

.ct-precta .footer__field.has-error input,
.ct-precta .footer__field.has-error textarea {
  border-color: #f08078 !important;
}

.ct-precta .footer__gdpr {
  margin-top: 4px;
  align-items: flex-start;
  gap: 10px;
}

.ct-precta .footer__gdpr input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  accent-color: #5b9aff;
}

.ct-precta .footer__gdpr label {
  color: rgba(var(--brand-text-on-dark-rgb), .78);
  font-size: 13.5px;
  line-height: 1.45;
}

.ct-precta .footer__gdpr a {
  color: #a8c5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-precta .footer__gdpr.has-error label,
.ct-precta .footer__gdpr.has-error label a {
  color: #f08078;
}

.ct-precta .footer__gdpr.has-error input {
  outline-color: #f08078;
}

.ct-precta .form-error {
  color: #f08078;
}

.ct-precta .form-status--success {
  background: rgba(82, 199, 110, .14);
  border-color: rgba(82, 199, 110, .3);
  color: #86ddb4;
}

.ct-precta .form-status--error {
  background: rgba(240, 128, 120, .12);
  border-color: rgba(240, 128, 120, .28);
  color: #f08078;
}

.ct-precta .footer__submit {
  align-self: stretch;
  text-align: center;
  justify-content: center;
  display: flex;
  margin-top: 8px;
  background: var(--ct-grad-btn);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 22px;
  letter-spacing: -.1px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .28);
  transition: transform .18s, box-shadow .18s, filter .18s;
}

.ct-precta .footer__submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .35);
  transform: translateY(-1px);
}

/* press feedback */
.footer__submit:active { transform: scale(.97); transition: transform var(--dur-fast) var(--ease-out) }

@media (max-width: 1024px) {
  .ct-precta__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ct-precta__direct {
    margin-top: 24px;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .ct-precta__text {
    font-size: 15px;
  }

  .ct-precta__points {
    margin-top: 20px;
    gap: 10px;
  }

  .ct-precta__points li {
    padding: 12px 14px;
  }

  .ct-precta__meta {
    margin-top: 20px;
    gap: 8px;
  }

  .ct-precta__meta-val {
    font-size: 16px;
  }

  .ct-precta__meta-lab {
    font-size: 11.5px;
  }

  .ct-precta__form-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .ct-precta__form-title {
    font-size: 20px;
  }

  .ct-precta .footer__form-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===== FORM stavy / honeypot ===== */
.form-error {
  display: none;
  font-size: 13px;
  color: var(--ct-error);
}

.footer__field.has-error input,
.footer__field.has-error textarea,
.footer__gdpr.has-error input {
  border-color: var(--ct-error) !important;
}

/* GDPR: jen červené označení checkboxu + labelu, bez textové hlášky */
.footer__gdpr .form-error {
  display: none !important;
}

.footer__gdpr.has-error label,
.footer__gdpr.has-error label a {
  color: var(--ct-error);
}

.footer__gdpr.has-error input {
  outline: 2px solid var(--ct-error);
  outline-offset: 2px;
}

.footer__field.has-error .form-error {
  display: block;
}

.form-status {
  display: none;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 500;
  border-radius: var(--ct-r);
  padding: 14px 16px;
  border: 1px solid transparent;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: rgba(21, 128, 61, .14);
  border-color: rgba(21, 128, 61, .28);
  color: var(--ct-success);
}

.form-status--error {
  background: rgba(192, 57, 43, .12);
  border-color: rgba(192, 57, 43, .28);
  color: var(--ct-error);
}

.form-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__submit[disabled] {
  opacity: .6;
  cursor: wait;
}

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

/* ===== COOKIE BAR ===== */
.ct-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 200;
  background: var(--brand-darker);
  color: var(--brand-text-on-dark);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  border: 1px solid rgba(var(--brand-text-on-dark-rgb), .12);
  max-width: 560px;
  margin: 0 auto;
  display: none;
}

.ct-cookies.is-visible {
  display: block;
}

.ct-cookies h2 {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ct-cookies p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(var(--brand-text-on-dark-rgb), .75);
}

.ct-cookies p a {
  text-decoration: underline;
  color: #7aa6ff;
}

.ct-cookies__cats {
  margin: 14px 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.ct-cookies.show-settings .ct-cookies__cats {
  display: flex;
}

.ct-cookies__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.ct-cookies__cat input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-accent);
}

.ct-cookies__btns {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-cookies__btns .btn {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 14.5px;
  flex: 1 1 auto;
}

.btn--cookie-ghost {
  background: transparent;
  color: var(--brand-text-on-dark);
  border: 1.5px solid rgba(var(--brand-text-on-dark-rgb), .3);
}

.btn--cookie-ghost:hover {
  border-color: rgba(var(--brand-text-on-dark-rgb), .7);
}

/* ===== SUBPAGE HERO (tmavý) ===== */
.ct-pagehero {
  background:
    radial-gradient(900px 420px at 82% -20%, rgba(61, 123, 255, .2), transparent 60%),
    var(--brand-bg);
  padding: calc(88px + 76px) var(--px) 84px;
}

.ct-pagehero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ct-pagehero .ct-kicker {
  margin-bottom: 20px;
}

.ct-pagehero h1 {
  font-family: var(--f-head);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -1.6px;
  color: var(--brand-text-on-dark);
  line-height: 1.04;
  max-width: 880px;
}

.ct-pagehero h1 em {
  font-style: normal;
  background: var(--ct-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ct-pagehero__sub {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(var(--brand-text-on-dark-rgb), .88);
  max-width: 660px;
}

/* ===== PROSE (podstránky) ===== */
.ct-prose {
  max-width: 780px;
}

.ct-prose h2 {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.5px;
  color: var(--text-dark);
  margin: 48px 0 16px;
}

.ct-prose h2:first-child {
  margin-top: 0;
}

.ct-prose h3 {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 32px 0 12px;
}

.ct-prose p,
.ct-prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 14px;
}

.ct-prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.ct-prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.ct-prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ct-accent-dark);
  font-family: var(--f-mono);
}

.ct-prose a {
  color: var(--ct-accent-dark);
  text-decoration: underline;
}

.ct-prose strong {
  color: var(--text-dark);
}

.ct-prose ol {
  list-style: lower-roman;
  padding-left: 1.5em;
  margin: 0 0 16px;
}

.ct-prose ol li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.ct-prose__meta {
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--ct-atm-quiet);
  border: 1px solid var(--divider-dark);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.ct-prose__meta strong {
  display: inline;
}

.ct-prose__lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 20px;
}

/* O nás — podnadpis nad kartami "Proč jsme jiní" */
.ct-about-subhead {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.5px;
  color: var(--text-dark);
}

.ct-section--dark .ct-about-subhead,
.ct-section--darker .ct-about-subhead {
  color: var(--brand-text-on-dark);
}

.ct-cards--about {
  margin-top: 28px;
}

/* timeline (proces) */
.ct-timeline {
  margin: 32px 0;
  border-left: 2px solid rgba(61, 123, 255, .35);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ct-timeline__item {
  position: relative;
}

.ct-timeline__item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ct-grad);
}

.ct-timeline__when {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ct-accent-dark);
}

.ct-timeline__item h3 {
  margin: 6px 0;
}

.ct-timeline__item p {
  margin-bottom: 0;
}

/* ===== FAQ ===== */
.ct-faq {
  margin-top: 8px;
  max-width: 820px;
}

.ct-faq details {
  border-bottom: 1px solid var(--divider-dark);
}

.ct-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  min-height: 48px;
  font-family: var(--f-head);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.ct-faq summary::-webkit-details-marker {
  display: none;
}

.ct-faq summary .icon {
  width: 20px;
  height: 20px;
  color: var(--ct-accent-dark);
  transition: transform .25s;
}

.ct-faq details[open] summary .icon {
  transform: rotate(180deg);
}

.ct-faq__answer {
  padding: 0 4px 24px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 720px;
}

.ct-faq__answer a {
  color: var(--ct-accent-dark);
  text-decoration: underline;
}

/* ===== CTA band ===== */
.ct-cta-band {
  margin-top: 64px;
  background: var(--ct-grad-btn);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
}

.ct-cta-band h2 {
  font-family: var(--f-head);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -.5px;
}

.ct-cta-band p {
  margin-top: 8px;
  font-size: 15px;
  opacity: .92;
}

.ct-cta-band .btn {
  background: #fff;
  color: var(--ct-accent-dark);
  flex-shrink: 0;
}

.ct-cta-band .btn:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

@media (max-width: 1024px) {
  .ct-cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .ct-cta-band .btn {
    width: 100%;
  }
}

/* ===== KONTAKT ===== */
.ct-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
  align-items: stretch;
}

.ct-contact-card {
  background: #fff;
  border: 1px solid var(--divider-dark);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(14, 17, 22, .04);
}

.ct-contact-card h3 {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.ct-contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-body);
}

.ct-contact-row .icon {
  color: var(--ct-accent-dark);
  margin-top: 2px;
  width: 20px;
  height: 20px;
}

.ct-contact-row a {
  color: var(--text-dark);
  font-weight: 600;
}

.ct-contact-row a:hover {
  text-decoration: underline;
  color: var(--ct-accent-dark);
}

.ct-contact-legal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--divider-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.ct-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 14px;
  border: 1px solid var(--divider-dark);
}

@media (max-width: 1024px) {
  .ct-contact-grid {
    grid-template-columns: 1fr;
  }

  .ct-map {
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .ct-contact-card {
    padding: 24px 18px;
  }

  .ct-contact-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .ct-contact-row {
    font-size: 14.5px;
    padding: 10px 0;
    gap: 12px;
  }

  .ct-contact-row span {
    overflow-wrap: anywhere;
  }

  .ct-map {
    min-height: 240px;
    border-radius: 12px;
  }
}

/* ===== Thank-you ===== */
.ct-thanks {
  min-height: 56vh;
  display: flex;
  align-items: center;
}

/* ===== FOOTER (tmavý) ===== */
.ct-footer {
  background: var(--brand-darker);
  border-top: 1px solid rgba(var(--brand-text-on-dark-rgb), .08);
  padding: 56px var(--px) 24px;
}

.ct-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.ct-footer__brand>img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.ct-footer__brand p {
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(var(--brand-text-on-dark-rgb), .7);
  max-width: 290px;
}

.ct-footer .footer__cfg-badge {
  color: rgba(var(--brand-text-on-dark-rgb), .7);
}

.ct-footer .footer__cfg-badge img {
  width: 44px;
  height: auto;
}

.ct-footer .footer__nav-heading {
  color: var(--brand-text-on-dark);
}

.ct-footer .footer__nav-group {
  gap: 14px;
}

.ct-footer .footer__nav-list {
  gap: 8px;
}

.ct-footer .footer__addr-block {
  gap: 8px;
}

.ct-footer .footer__nav-list li,
.ct-footer .footer__nav-list a,
.ct-footer .footer__addr-block address,
.ct-footer .footer__addr-block p {
  color: rgba(var(--brand-text-on-dark-rgb), .8);
}

.ct-footer .footer__addr-block address,
.ct-footer .footer__addr-block p {
  margin: 0;
  line-height: 1.45;
  font-size: 13.5px;
}

.ct-footer .footer__addr-name {
  color: var(--brand-text-on-dark);
  margin-bottom: 2px;
}

.ct-footer__bottom {
  max-width: var(--max-w);
  margin: 36px auto 0;
  border-top: 1px solid rgba(var(--brand-text-on-dark-rgb), .1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(var(--brand-text-on-dark-rgb), .7);
}

.ct-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.ct-footer__bottom a {
  color: rgba(var(--brand-text-on-dark-rgb), .7);
}

.ct-footer__bottom a:hover {
  text-decoration: underline;
  color: var(--brand-text-on-dark);
}

@media (max-width: 1024px) {
  .ct-footer {
    padding: 56px var(--px) 24px;
  }

  .ct-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .ct-footer {
    padding: 44px var(--px) 20px;
  }

  .ct-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ct-footer__brand p {
    max-width: none;
  }

  .ct-footer__bottom {
    margin-top: 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== MODAL ===== */
.ct-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ct-modal[hidden] {
  display: none;
}

.ct-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.ct-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border-radius: 16px;
  animation: ctFadeUp .3s ease both;
}

.ct-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .1);
  color: var(--brand-text-on-dark);
  font-size: 18px;
  line-height: 1;
}

.ct-modal__close:hover {
  background: rgba(255, 255, 255, .18);
}

body.modal-open {
  overflow: hidden;
}

/* Honeypot: display:none na inputu brání autofillu prohlížeče (off-screen ho nezastaví),
   ale HTTP boti pole stejně vyplní → past zůstává funkční. */
input[name="website"]{display:none!important}

/* Dotyk: zrušení „přišpendleného" hover-liftu po tapnutí (bez hoveru) */
@media (hover: none) {
  .btn--primary:hover,
  .btn--gradient:hover,
  .btn--ghost:hover,
  .btn--ghost-dark:hover,
  .ct-product:has(.ct-product__link):hover,
  .ct-product__link:hover,
  .ct-group__chip:hover { transform: none; filter: none; box-shadow: none; }
}

/* ===== Mobilní doladění (typografie, spacing, tap targets) ===== */
@media (max-width: 640px) {
  section[id],
  [id] {
    scroll-margin-top: 80px;
  }

  .ct-section__head {
    margin-bottom: 0;
  }

  .ct-h2 {
    font-size: clamp(26px, 7.5vw, 34px);
    letter-spacing: -.6px;
  }

  .ct-lead {
    font-size: 15.5px;
  }

  .ct-products,
  .ct-vs,
  .ct-steps,
  .ct-cases,
  .ct-segments {
    margin-top: 36px;
  }

  .ct-product {
    padding: 22px 18px;
  }

  .ct-product__link {
    min-height: 44px;
    align-items: center;
  }

  .ct-vs__col {
    padding: 24px 18px;
  }

  .ct-step {
    padding: 22px 18px;
  }

  .ct-case {
    padding: 24px 18px;
  }

  .ct-faq details summary {
    min-height: 52px;
    padding-block: 16px;
  }

  .ct-faq__answer {
    font-size: 15px;
    padding-bottom: 18px;
  }

  .ct-cta-band {
    margin-top: 40px;
    padding: 24px 18px;
    gap: 20px;
  }

  #o-nas .btn {
    width: 100%;
    justify-content: center;
  }
}