/* Mikrostránka Karel – styly podle design systému „Karela Software“ (tokens.json).
   Jedno světlé téma: krémový podklad, ink text, pastelové karty, rozmazané bloby a sklo. */

/* Písma hostovaná u nás (kvůli GDPR ne z Google Fonts), licence OFL v fonts/.
   Inter je variabilní – jeden soubor na sadu znaků pokryje řezy 400–700. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Delicious Handrawn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/delicious-handrawn-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Delicious Handrawn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/delicious-handrawn-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Barvy */
  --surface: #fff9ef;
  --surface-white: #ffffff;
  --ink: #001f41;
  --plum: #401b58;
  --on-plum: #ffffff;
  --blue: #2260ef;
  --periwinkle: #6c8be9;
  --amber: #ffc107;
  --tint-cyan: #caf2f8;
  --tint-yellow: #ffd678;
  --tint-lavender: #ebd7fd;
  --tint-peach: #ffdccd;
  --blob-lilac: #e1a2ff;
  --blob-blue: #6e8ee9;
  --mint: #72c9ae;
  --orange: #e16232;
  --step-1: #db71c8; --step-1-dot-from: #d865c6; --step-1-dot-to: #e49bd0;
  --step-2: #ddbd58; --step-2-dot-from: #e8c874; --step-2-dot-to: #f4df9e;
  --step-3: #aba5f0; --step-3-dot-from: #938cf3; --step-3-dot-to: #d2cefe;
  --step-4: #d3939b; --step-4-dot-from: #cf8592; --step-4-dot-to: #f2c8cc;
  --step-5: #ac6fe2; --step-5-dot-from: #8734d3; --step-5-dot-to: #ebd7fd;
  --line: rgb(0 31 65 / 0.15);
  --muted: #5b6577;
  --success: #1f9d55;
  --success-tint: #dcf5e6;
  --error: #c62828;
  --error-tint: #fdecea;
  --footer-bg: #2b2d33;
  --footer-ink: #f1eff5;
  --footer-muted: #a7a9b2;
  --footer-line: rgb(255 255 255 / 0.12);

  /* Písmo */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Delicious Handrawn", "Comic Sans MS", cursive;
  --fs-display: clamp(2.25rem, 1.1rem + 3.6vw, 3.75rem);

  /* Rozestupy */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 43px;
  --space-6: 56px;
  --space-7: 88px;
  --space-8: 140px;
  --container: 1420px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-gap: clamp(88px, 9vw, var(--space-8));

  /* Rohy */
  --radius-sm: 20px;
  --radius-badge: 30px;
  --radius-md: 32px;
  --radius-lg: 50px;
  --radius-xl: 100px;
  --radius-pill: 300px;

  /* Hloubka */
  --glow-amber: 0 4px 80px rgba(255, 193, 7, 0.3);
  --blur-blob: 150px;
  --blur-glass-lg: 30px;
  --blur-glass-sm: 15px;
  --opacity-blob: 0.5;
}

/* ---------- Základ ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
}

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

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--plum); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, p { margin: 0; }

.page { overflow-x: clip; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: calc(var(--section-gap) / 2);
}

.section > .container { position: relative; z-index: 1; }

.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;
}

/* SVG sprite s ikonami (v bloku hlavicka-webu) a ikony z něj */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.check { width: 1em; height: 1em; flex: none; }

/* ---------- Typografie ---------- */

.display {
  font-size: var(--fs-display);
  line-height: 1;
  font-weight: 700;
  max-width: 645px;
  text-wrap: balance;
}

.kicker {
  margin-bottom: var(--space-3);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
}

.lead {
  margin-top: var(--space-3);
  max-width: 862px;
}

.body-sm { font-size: 16px; line-height: 23px; }

.section-head { margin-bottom: var(--space-6); }
.section-head.is-center { text-align: center; }
.section-head.is-center .display,
.section-head.is-center .lead { margin-inline: auto; }

.hand {
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
}

/* ---------- Tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 49px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 500 20px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { height: 41px; font-size: 14px; }
.btn .arrow { width: 20px; height: 20px; flex: none; }
.btn-sm .arrow { width: 12px; height: 12px; }

.btn-primary { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-plum); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--plum); padding-inline: 0; }
.btn-ghost:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Štítek ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 35px;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-white);
  font-size: 12px;
  line-height: 1.2;
}
.tag-icon { font-size: 20px; line-height: 1; }

/* ---------- Bloby a tvary na pozadí ---------- */

.blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  opacity: var(--opacity-blob);
  filter: blur(var(--blur-blob));
  pointer-events: none;
}
.blob-lilac { background: var(--blob-lilac); }
.blob-yellow { background: var(--tint-yellow); }
.blob-blue { background: var(--blob-blue); }

.backdrop-shape {
  position: absolute;
  z-index: 0;
  opacity: var(--opacity-blob);
  pointer-events: none;
}

/* ---------- Navigace ---------- */

/* Horní lišta: telefon a přihlášení do aplikace, viditelné i na mobilu. */
.topbar {
  position: relative;
  z-index: 21;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-4);
  min-height: 40px;
}
.topbar a { text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }
.topbar-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700 !important; white-space: nowrap; }
.topbar-phone .icon { width: 15px; height: 15px; color: var(--plum); }
.topbar-login { color: var(--plum); }

.nav { position: relative; z-index: 20; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--space-7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.brand:hover { color: var(--ink); }
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand-sub { font-size: 0.64em; font-weight: 500; color: var(--muted); }

.brand-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--periwinkle);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: translateY(11%); }

.nav-menu {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2vw, 36px);
  flex: 1;
}
.nav-menu a {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu a:hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu se šesti položkami a CTA se do řádku vejde až od 1280 px — pod tím hamburger. */
@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(var(--space-7) - 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    gap: 0;
    padding: var(--space-2);
    border: 5px solid var(--surface-white);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 0.85);
    -webkit-backdrop-filter: blur(var(--blur-glass-sm));
    backdrop-filter: blur(var(--blur-glass-sm));
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: var(--space-2); }
  .nav-menu .nav-menu-cta { display: inline-flex; align-self: flex-start; max-width: 100%; height: auto; min-height: 41px; margin: var(--space-1) 0 var(--space-1); padding: 10px 22px; white-space: normal; line-height: 1.25; }
}
@media (min-width: 1280px) {
  .nav-menu .nav-menu-cta { display: none; }
}
@media (max-width: 599px) {
  .topbar-inner { justify-content: space-between; gap: var(--space-2); }
  .nav-inner { height: 72px; }
  .nav-menu { top: 64px; }
  .brand-sub { font-size: 0.6em; }
}

/* ---------- Hero ---------- */

.hero { padding-top: var(--space-4); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy .display { max-width: 680px; font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem); line-height: 1.06; }
.hero-copy .lead { max-width: 600px; }

/* Tři hlavní body jako výrazné pilulky — hned po přečtení nadpisu. */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 2px solid var(--surface-white);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.85);
  box-shadow: 0 6px 24px rgb(64 27 88 / 0.1);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}
.hero-points .check {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--success);
  color: var(--surface-white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
}

/* Ručně psané „ZDARMA“ se šipkou pod hlavním tlačítkem — mimo tok, aby tlačítka zůstala v jednom řádku. */
.cta-free { position: relative; }
.free-note {
  position: absolute;
  top: 100%;
  left: 58%;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 4px;
  pointer-events: none;
}
.free-note img { width: 41px; height: 41px; transform: rotate(-75deg); margin-top: -6px; }
.free-note .hand { padding-top: 14px; font-size: 22px; color: var(--plum); }

.hero-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 58px;
  font-size: 17px;
  line-height: 1.3;
}
.hero-phone .icon { width: 18px; height: 18px; color: var(--plum); }
.hero-phone a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero-phone a:hover { text-decoration: underline; }

/* Obě tlačítka v jednom řádku: na užších dvousloupcových šířkách menší písmo. */
@media (min-width: 1100px) {
  .hero-actions { flex-wrap: nowrap; gap: var(--space-3); }
  .hero-actions .btn { font-size: 18px; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .hero-actions .btn { font-size: 16px; padding-inline: 22px; }
  .hero-actions .btn-ghost { padding-inline: 0; }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 700 / 780;
  margin-left: auto;
}
.hero-art > * { position: absolute; }

.hero-art .shape-blue { top: 0; right: 0; width: 80%; }
.hero-art .shape-amber {
  left: 0;
  bottom: 2%;
  width: 84%;
  filter: drop-shadow(var(--glow-amber));
}

/* Karel s notebookem: velký, aby šla přečíst karta produktu na obrazovce.
   Dole ho ořízne obrys amber tvaru, horní část (hlava, notebook) z něj vystupuje. */
.hero-mascot {
  left: -10%;
  bottom: 2%;
  width: 122%; /* přesah do stran, aby palice ani notebook nebyly useknuté */
  height: 100%;
  -webkit-mask: url(img/hero-blob-amber.svg) left 26.3% bottom / 68.9% auto no-repeat, linear-gradient(#000 0 0) top / 100% 74% no-repeat;
  mask: url(img/hero-blob-amber.svg) left 26.3% bottom / 68.9% auto no-repeat, linear-gradient(#000 0 0) top / 100% 74% no-repeat;
}
.hero-mascot img {
  position: absolute;
  left: 47.7%;
  top: 0;
  height: 146%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.dot { border-radius: 50%; }
.dot-mint-lg { width: 24px; height: 24px; background: var(--mint); top: 14%; left: 6%; }
.dot-mint-sm { width: 16px; height: 16px; background: var(--mint); bottom: 18%; right: 4%; }
.dot-orange { width: 35px; height: 35px; background: var(--orange); top: 42%; left: 0; }
.dot-white { background: linear-gradient(180deg, var(--surface-white), rgb(255 255 255 / 0)); }
.dot-white-1 { width: 56px; height: 56px; top: 30%; right: 1%; }

.hero-badge {
  left: 4%;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 10px 12px;
  border: 3px solid var(--surface-white);
  border-radius: var(--radius-badge);
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: blur(var(--blur-glass-sm));
  backdrop-filter: blur(var(--blur-glass-sm));
}
.hero-badge img { width: 60px; height: 60px; }
.hero-badge strong { display: block; font-size: 18px; line-height: 23px; }
.hero-badge span { display: block; font-size: 16px; line-height: 23px; }

@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 600px; margin-inline: auto; }
  .hero-phone { margin-top: var(--space-3); }
}
@media (max-width: 699px) {
  .hero-points li { font-size: 16px; padding: 7px 16px 7px 7px; }
  .hero-points .check { width: 26px; height: 26px; padding: 6px; }
  .hero-actions .btn { white-space: normal; height: auto; min-height: 49px; padding-block: 12px; line-height: 1.2; }
}
@media (max-width: 599px) {
  .hero-badge { padding: 6px 16px 6px 8px; }
  .hero-badge img { width: 44px; height: 44px; }
  .hero-badge strong { font-size: 16px; line-height: 20px; }
  .hero-badge span { font-size: 14px; line-height: 20px; }
}

/* ---------- Co pro vás Karel udělá: tónované karty ---------- */

/* Tři karty vedle sebe, pod nimi široká karta s pravidly a vedle ní Karel s ukázkou
   upozornění. Karty jsou díky display: contents přímo buňkami mřížky .why-grid. */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
  align-items: stretch;
}
.tinted-cards { display: contents; }
.card-tinted.card-rules { grid-column: span 2; }
.why-grid .why-mascot { align-self: end; }

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px var(--space-4);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.65);
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
}
.rules-list .check {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 5px;
  border-radius: 50%;
  background: var(--success);
  color: var(--surface-white);
}
.rules-more { margin-top: var(--space-3); font-size: 26px; line-height: 1.2; color: var(--plum); }

.card-tinted {
  position: relative;
  margin-top: 78px;
  padding: 87px var(--space-5) var(--space-5);
  border-radius: var(--radius-md);
}
.card-tinted.is-cyan { background: var(--tint-cyan); }
.card-tinted.is-yellow { background: var(--tint-yellow); }
.card-tinted.is-lavender { background: var(--tint-lavender); }
.card-tinted.is-peach { background: var(--tint-peach); }

.card-illo {
  position: absolute;
  top: -78px;
  left: 30px;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.card-title {
  margin-bottom: var(--space-2);
  font-size: 25px;
  line-height: 30px;
  font-weight: 700;
}

.why-mascot {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}
.why-mascot .backdrop-shape { width: 150%; max-width: none; top: 18%; left: -25%; }
.why-mascot .mascot { position: relative; width: 100%; height: auto; }

/* Ukázka upozornění z aplikace vedle Karla s telefonem. */
.app-notice {
  position: absolute;
  left: -16%;
  bottom: 4%;
  z-index: 1;
  width: 310px;
  padding: 16px 18px 18px;
  border: 1px solid rgb(0 31 65 / 0.08);
  border-radius: 22px;
  background: var(--surface-white);
  box-shadow: 0 18px 50px rgb(0 31 65 / 0.18), 0 2px 6px rgb(0 31 65 / 0.08);
  font-size: 15px;
  line-height: 1.35;
}
.app-notice-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.app-notice-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--periwinkle); overflow: hidden; flex: none; }
.app-notice-icon img { width: 100%; height: 100%; object-fit: cover; transform: translateY(11%); }
.app-notice-time { margin-left: auto; color: var(--muted); font-size: 13px; }
.app-notice-product { margin-top: 12px; font-size: 17px; font-weight: 700; }
.app-notice-prices { margin-top: 8px; display: grid; gap: 4px; }
.app-notice-prices p { display: flex; justify-content: space-between; gap: 12px; }
.app-notice-prices span { color: var(--muted); }
.app-notice-prices s { color: var(--muted); }
.app-notice-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--success);
  color: var(--surface-white);
  font-weight: 500;
}
.app-notice-result .check { width: 16px; height: 16px; }
.app-notice-note { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* Užší displeje: dvě karty vedle sebe, pravidla přes celou šířku, Karel s upozorněním pod nimi. */
@media (max-width: 1099px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid .card-tinted.is-lavender,
  .why-grid .card-tinted.card-rules,
  .why-grid .why-mascot { grid-column: 1 / -1; }
  .why-mascot {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 340px);
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    max-width: none;
  }
  .why-mascot .backdrop-shape { display: none; }
  .app-notice { position: relative; left: auto; bottom: auto; width: auto; }
}
@media (max-width: 699px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .card-tinted { padding: 80px var(--space-4) var(--space-4); }
  .card-illo { width: 130px; height: 130px; top: -64px; }
  .rules-list { grid-template-columns: 1fr; }
  .rules-list li { font-size: 16px; line-height: 23px; padding: 12px 14px; }
}
@media (max-width: 599px) {
  .why-mascot { grid-template-columns: minmax(0, 1fr); }
  .why-mascot .mascot { display: none; }
}

/* ---------- Pro koho: skleněné karty ---------- */

.glass-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.card-glass {
  position: relative;
  min-height: 462px;
  padding: 242px 48px 48px;
  border: 5px solid var(--surface-white);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(var(--blur-glass-lg));
  backdrop-filter: blur(var(--blur-glass-lg));
}
.card-glass .card-illo {
  top: 56px;
  left: 50%;
  width: 178px;
  height: 157px;
  transform: translateX(-50%);
}

@media (max-width: 1099px) {
  .glass-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
}
@media (max-width: 699px) {
  .glass-cards { grid-template-columns: 1fr; }
  .card-glass { min-height: 0; padding: 200px var(--space-4) var(--space-4); border-radius: var(--radius-md); }
  .card-glass .card-illo { top: 32px; }
}

/* ---------- Jak to funguje: kroky na lince ---------- */

/* Boxy střídavě nad a pod linkou; řádky sdílené přes subgrid, takže linka drží výšku i při delším textu. */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto 65px auto;
  column-gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.step {
  position: relative;
  display: grid;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
}

.step::before {
  content: "";
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  height: 5px;
  margin-inline: calc(var(--space-2) / -2);
  background: var(--tint-lavender);
}
.step:first-child::before { margin-left: 0; border-radius: 5px 0 0 5px; }
.step:last-child::before { margin-right: 0; border-radius: 0 5px 5px 0; }

.step-dot {
  position: relative;
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--dot-from), var(--dot-to));
}

.step-body {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 280px;
  padding-bottom: var(--space-3);
}
.step:nth-child(even) .step-body { grid-row: 3; align-self: start; padding: var(--space-3) 0 0; }

.step-num {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 -22px 25px;
  font-size: 90px;
  line-height: 1;
  font-weight: 700;
  color: var(--step-color);
}

.step-box {
  max-width: 280px;
  padding: 29px 25px 25px;
  border: 3px solid var(--surface-white);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.7);
  -webkit-backdrop-filter: blur(var(--blur-glass-sm));
  backdrop-filter: blur(var(--blur-glass-sm));
}
.step-title { font-size: 18px; line-height: 23px; font-weight: 700; }
.step-text { margin-top: var(--space-1); font-size: 16px; line-height: 23px; }

.step-1 { --step-color: var(--step-1); --dot-from: var(--step-1-dot-from); --dot-to: var(--step-1-dot-to); }
.step-2 { --step-color: var(--step-2); --dot-from: var(--step-2-dot-from); --dot-to: var(--step-2-dot-to); }
.step-3 { --step-color: var(--step-3); --dot-from: var(--step-3-dot-from); --dot-to: var(--step-3-dot-to); }
.step-4 { --step-color: var(--step-4); --dot-from: var(--step-4-dot-from); --dot-to: var(--step-4-dot-to); }
.step-5 { --step-color: var(--step-5); --dot-from: var(--step-5-dot-from); --dot-to: var(--step-5-dot-to); }

.steps-wrap { position: relative; }
.steps-wrap .backdrop-shape { width: 38%; max-width: 540px; top: -6%; right: -6%; }
.steps-wrap > :not(.backdrop-shape) { position: relative; }
.steps-wrap .section-head .display { max-width: 860px; }

/* Osobní přístup pod kroky nastavení */
.personal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 980px;
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--tint-peach);
}
.personal-illo { width: 120px; height: 120px; flex: none; object-fit: contain; }
.personal .card-title { margin-bottom: var(--space-1); }
.personal a { font-weight: 700; white-space: nowrap; }

/* Na užších displejích kroky pod sebou, linka svisle vlevo. */
@media (max-width: 1099px) {
  .steps { grid-template-columns: 1fr; grid-template-rows: none; gap: var(--space-4); padding-left: 88px; }
  .steps::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 5px; border-radius: 5px; background: var(--tint-lavender); }
  .step { display: block; grid-row: auto; }
  .step::before { display: none; }
  .step-dot { position: absolute; left: -88px; top: 60px; }
  .step-body,
  .step:nth-child(even) .step-body { justify-self: start; max-width: 520px; padding: 0; }
  .step-box { max-width: none; }
  .steps-wrap .backdrop-shape { width: 80%; top: 20%; }
}
@media (max-width: 599px) {
  .steps { padding-left: 56px; }
  .steps::before { left: 18px; }
  .step-dot { left: -56px; width: 41px; height: 41px; top: 66px; }
  .step-num { font-size: 72px; margin: 0 0 -18px 16px; }
  .personal { flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-4) var(--space-3); }
  .personal-illo { width: 88px; height: 88px; }
}

/* ---------- Ceník ---------- */

.calc {
  max-width: 1000px;
  margin: 0 auto var(--space-6);
  padding: var(--space-5);
  border: 5px solid var(--surface-white);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(var(--blur-glass-lg));
  backdrop-filter: blur(var(--blur-glass-lg));
}

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-6);
}

.calc label { display: block; margin-bottom: var(--space-1); font-weight: 500; }
.calc label output { font-weight: 700; }
.calc input[type="range"] { width: 100%; accent-color: var(--plum); }

.calc-result {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  text-align: center;
}
.calc-result p + p { margin-top: var(--space-1); }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier {
  height: 100%;
  padding: var(--space-5);
  border: 5px solid var(--surface-white);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(var(--blur-glass-lg));
  backdrop-filter: blur(var(--blur-glass-lg));
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tier.is-recommended { background: var(--tint-yellow); border-color: var(--tint-yellow); }
.tier-name { font-size: 25px; line-height: 30px; font-weight: 700; }
.tier-price { margin-top: var(--space-2); font-weight: 700; }
.tier-limit { margin-top: var(--space-1); font-size: 16px; line-height: 23px; }
.tier-flag { display: none; margin-top: var(--space-2); font-size: 13px; line-height: 1; font-weight: 700; }
.tier.is-recommended .tier-flag { display: block; }

.pricing-note { margin-top: var(--space-4); text-align: center; }

@media (max-width: 799px) {
  .calc { padding: var(--space-4) var(--space-3); border-radius: var(--radius-md); }
  .calc-inputs { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ---------- Reference ---------- */

/* Karty z dynamického bloku 'reference' (app/templates/CmsReferences.latte); .testimonial
   bez loga používá i citace v případové studii (.case-quote). Po třech v řádku, neúplný
   řádek na střed. */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}
.testimonials > .testimonial { flex: 0 1 calc((100% - 2 * var(--space-4)) / 3); }
/* bez viditelné reference blok vypíše jen tuto značku — sekce s nadpisem se schová */
.section:has(.references-none) { display: none; }
.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border: 5px solid var(--surface-white);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.6);
  -webkit-backdrop-filter: blur(var(--blur-glass-sm));
  backdrop-filter: blur(var(--blur-glass-sm));
}
/* logo zákazníka: šedé, barevné při najetí / fokusu v kartě (přechod vypíná prefers-reduced-motion na konci souboru) */
.testimonial-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: 48px;
  margin-bottom: var(--space-3);
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.testimonial:hover .testimonial-logo,
.testimonial:focus-within .testimonial-logo { filter: none; opacity: 1; }
.testimonial blockquote { flex: 1; margin: 0; }
.testimonial blockquote p { font-size: 20px; line-height: 30px; font-weight: 500; }
.testimonial figcaption {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 23px;
  color: var(--muted);
}
.testimonial figcaption strong { color: var(--ink); }

@media (max-width: 1099px) {
  .testimonials { max-width: 720px; margin-inline: auto; gap: var(--space-2); }
  .testimonials > .testimonial { flex-basis: 100%; }
}
@media (max-width: 599px) {
  .testimonial-logo { height: 40px; }
  .testimonial { padding: var(--space-4) var(--space-3) var(--space-3); }
  .testimonial blockquote p { font-size: 18px; line-height: 27px; }
}

/* PŘECHODNĚ: textové logotypy natvrdo v publikované verzi stránky index (ul.logos).
   Smazat, až bude na webu publikovaná úvodka s blokem 'reference'. */
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
}
.logo {
  color: #7d8494;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}
.logo img { height: 44px; width: auto; filter: grayscale(1); opacity: 0.7; }
.logo-neptun { letter-spacing: 0.08em; font-weight: 600; }
.logo-stavmi { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.logo-elva { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.logo-jikov { font-size: 22px; font-weight: 700; }
.logo-jikov span { font-weight: 400; font-style: italic; }
.logo-niu { font-size: 32px; font-weight: 800; letter-spacing: 0.04em; }
.logo-niu span { font-size: 0.55em; font-weight: 500; letter-spacing: 0; }
@media (max-width: 599px) {
  .logos { gap: var(--space-2) var(--space-4); }
  .logo { font-size: 24px; }
  .logo-elva { font-size: 27px; }
  .logo-jikov { font-size: 18px; }
  .logo-niu { font-size: 26px; }
}

/* ---------- Čísla: Karel aktuálně hlídá ---------- */

.stats {
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--plum);
  color: var(--on-plum);
}
.stats::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--blob-lilac);
  opacity: 0.25;
  filter: blur(80px);
  pointer-events: none;
}
.stats-title { position: relative; font-size: 25px; line-height: 30px; font-weight: 700; color: var(--tint-yellow); }
.stats-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat + .stat { padding-left: var(--space-4); border-left: 1px solid rgb(255 255 255 / 0.2); }
.stat-num {
  font-size: clamp(2.25rem, 0.9rem + 2.5vw, 3.5rem);
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-label { font-size: 18px; line-height: 25px; color: rgb(255 255 255 / 0.8); }

@media (max-width: 1099px) {
  .stats { padding: var(--space-5); }
  .stats-list { grid-template-columns: 1fr; gap: var(--space-3); }
  .stat + .stat { padding: var(--space-3) 0 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.2); }
}
@media (max-width: 599px) {
  .stats { padding: var(--space-4) var(--space-3); border-radius: var(--radius-md); }
  .stat-num { font-size: 2.25rem; white-space: normal; }
}

/* ---------- Poptávka ---------- */

.inquiry-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-6) var(--space-6) 0;
  border-radius: var(--radius-xl);
  background: var(--tint-yellow);
}
.inquiry-copy { padding-bottom: var(--space-6); }
.inquiry-copy .lead { margin-bottom: var(--space-4); }

.inquiry-aside { display: flex; flex-direction: column; align-items: flex-start; padding-top: var(--space-2); }
.inquiry-aside-title { font-family: var(--font-hand); font-size: 30px; line-height: 1.1; color: var(--plum); }
.inquiry-phone {
  margin-top: var(--space-1);
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.inquiry-mail { margin-top: var(--space-1); font-size: 20px; font-weight: 500; }
.inquiry-phone:hover, .inquiry-mail:hover { text-decoration: underline; }
.inquiry-mascot { width: 100%; max-width: 460px; height: auto; margin-top: auto; padding-top: var(--space-4); align-self: center; }

@media (max-width: 1099px) {
  .inquiry-card { grid-template-columns: 1fr; padding: var(--space-5) var(--space-5) 0; border-radius: var(--radius-lg); gap: 0; }
  .inquiry-copy { padding-bottom: var(--space-4); }
  .inquiry-mascot { max-width: 360px; }
}
@media (max-width: 599px) {
  .inquiry-card { padding: var(--space-4) var(--space-2) 0; border-radius: var(--radius-md); }
  .inquiry-copy .display, .inquiry-copy .lead, .inquiry-aside { padding-inline: var(--space-1); }
}

/* Formulář z dynamického bloku 'poptavka' (app/templates/CmsInquiryForm.latte). */
.inquiry {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-white);
  box-shadow: 0 12px 40px rgb(64 27 88 / 0.08);
}
.inquiry [hidden] { display: none !important; }
.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-3);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: 15px; line-height: 20px; font-weight: 700; }
.field-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.4 var(--font-sans);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
textarea.field-input { min-height: 110px; resize: vertical; }
.field-input::placeholder { color: #8a92a1; }
.field-input:hover { border-color: rgb(0 31 65 / 0.3); }
.field-input:focus { outline: none; border-color: var(--plum); background: var(--surface-white); box-shadow: 0 0 0 4px rgb(64 27 88 / 0.12); }
.field-input:focus-visible { outline: none; border-radius: 14px; }
.field-input[aria-invalid="true"],
.field.has-error .field-input { border-color: var(--error); background: var(--error-tint); }
.field-error { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }

/* Past na roboty — pole mimo obrazovku, člověk ho nevidí ani nevyplní. */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.inquiry-hint { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--muted); }
.inquiry-error {
  margin-top: var(--space-2);
  padding: 12px 16px;
  border-left: 4px solid var(--error);
  border-radius: 10px;
  background: var(--error-tint);
  color: var(--error);
  font-size: 16px;
  line-height: 23px;
  font-weight: 500;
}
.inquiry-submit { margin-top: var(--space-3); max-width: 100%; }
.inquiry-submit:disabled { opacity: 0.6; cursor: progress; }
.inquiry-consent { margin-top: var(--space-2); font-size: 13px; line-height: 19px; color: var(--muted); }
.inquiry-consent a { color: inherit; }

.inquiry-done {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--success-tint);
  border-left: 6px solid var(--success);
}
.inquiry-done strong { display: block; font-size: 22px; line-height: 28px; }
.inquiry-done p { margin-top: var(--space-1); font-size: 17px; line-height: 25px; }

@media (max-width: 699px) {
  .inquiry { padding: var(--space-3) var(--space-2); }
  .inquiry-grid { grid-template-columns: 1fr; }
  .inquiry-submit { width: 100%; justify-content: center; white-space: normal; height: auto; min-height: 49px; padding-block: 12px; font-size: 17px; line-height: 1.25; text-align: center; }
}

/* ---------- Výpis případových studií (dynamický blok 'pripadove-studie') ---------- */

.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-4);
}
.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 5px solid var(--surface-white);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.6);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.case-card:hover { color: var(--ink); background: var(--surface-white); border-color: var(--tint-lavender); }
.case-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint-lavender); }
.case-card-title { margin: var(--space-3) var(--space-4) 0; font-size: 25px; line-height: 30px; font-weight: 700; }
.case-card-text { margin: var(--space-1) var(--space-4) 0; font-size: 17px; line-height: 25px; }
.case-card-more { margin: auto var(--space-4) var(--space-3); padding-top: var(--space-2); font-size: 16px; font-weight: 700; color: var(--plum); }
.case-card:hover .case-card-more { text-decoration: underline; }
.case-empty {
  padding: var(--space-5);
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 20px;
}

/* ---------- Podstránky ---------- */

.subpage { padding-top: var(--space-5); }
.subpage-head { margin-bottom: var(--space-6); }
.subpage-head .lead { max-width: 720px; }
.display-sm { font-size: clamp(2rem, 1.2rem + 2vw, 2.75rem); line-height: 1.05; max-width: 760px; }
.subpage-section { margin-top: var(--section-gap); scroll-margin-top: var(--space-4); }
.subpage-form { max-width: 880px; margin-top: var(--space-4); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.contact-card {
  padding: var(--space-4);
  border: 5px solid var(--surface-white);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.6);
  -webkit-backdrop-filter: blur(var(--blur-glass-sm));
  backdrop-filter: blur(var(--blur-glass-sm));
}
.contact-card.is-main { background: var(--tint-yellow); border-color: var(--tint-yellow); }
.contact-title { margin-bottom: var(--space-2); font-size: 18px; line-height: 23px; font-weight: 700; color: var(--muted); }
.contact-card.is-main .contact-title { color: var(--plum); }
.contact-big {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-big .icon { width: 0.8em; height: 0.8em; color: var(--plum); }
.contact-big:hover { text-decoration: underline; }
.contact-card .body-sm { margin-top: var(--space-2); }
.contact-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.contact-links a { font-weight: 500; }

.subpage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--tint-yellow);
}
.subpage-cta-title { font-size: 25px; line-height: 30px; font-weight: 700; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.about-copy .display { margin-bottom: var(--space-3); }
.about-copy .lead { margin-bottom: var(--space-3); }
.about-copy p + p { margin-top: var(--space-2); }
.about-copy > p { max-width: 760px; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); }
.about-card {
  padding: var(--space-5);
  border: 5px solid var(--surface-white);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.6);
  -webkit-backdrop-filter: blur(var(--blur-glass-lg));
  backdrop-filter: blur(var(--blur-glass-lg));
}
.about-logo { width: 170px; height: auto; }
.about-facts { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.about-facts li { display: flex; flex-direction: column; padding-top: var(--space-2); border-top: 1px solid var(--line); }
.about-facts strong { font-size: 25px; line-height: 30px; }
.about-facts span { font-size: 16px; line-height: 23px; color: var(--muted); }
.about-photo { margin: var(--space-7) 0 0; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.about-photo figcaption { margin-top: var(--space-1); font-size: 14px; color: var(--muted); }

.case-study { max-width: 862px; }
.case-back { margin-bottom: var(--space-3); font-size: 16px; font-weight: 500; }
.case-study h2 { margin: var(--space-6) 0 var(--space-2); font-size: 30px; line-height: 36px; font-weight: 700; }
.case-study p + p { margin-top: var(--space-2); }
.case-study ul:not(.case-results) { margin: var(--space-2) 0 0; padding-left: 1.5em; }
.case-study li { margin-bottom: var(--space-1); }
.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
}
.case-facts div { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.7); }
.case-facts dt { font-size: 14px; line-height: 20px; color: var(--muted); }
.case-facts dd { margin: 0; font-weight: 700; }
.case-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
}
.case-results li { display: flex; flex-direction: column; margin: 0; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--tint-cyan); }
.case-results strong { font-size: 34px; line-height: 1.1; }
.case-results span { margin-top: 4px; font-size: 16px; line-height: 23px; }
.case-quote { margin-top: var(--space-5); background: var(--tint-lavender); border-color: var(--tint-lavender); }

.thanks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-6);
  align-items: center;
  max-width: 1160px;
  margin-inline: auto;
}
.thanks-mascot { width: 100%; max-width: 460px; height: auto; justify-self: center; }

@media (max-width: 1099px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card.is-main { grid-column: 1 / -1; }
  .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .thanks { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .thanks-mascot { max-width: 320px; }
}
@media (max-width: 699px) {
  .contact-grid { grid-template-columns: 1fr; }
  .case-facts, .case-results { grid-template-columns: 1fr; }
  .subpage-cta { padding: var(--space-4) var(--space-3); border-radius: var(--radius-md); }
  .subpage-cta .btn, .about-actions .btn { white-space: normal; height: auto; min-height: 49px; padding-block: 12px; line-height: 1.2; }
  .about-card { padding: var(--space-4) var(--space-3); border-radius: var(--radius-md); }
}

/* ---------- Pata (blok paticka-webu) ---------- */

.footer {
  position: relative;
  margin-top: calc(var(--section-gap) / 2);
  padding-block: var(--space-6) var(--space-3);
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: 15px;
  line-height: 22px;
}
.footer a { color: var(--footer-ink); text-decoration: none; }
.footer a:hover { color: var(--surface-white); text-decoration: underline; }
.footer a:focus-visible { outline-color: var(--tint-yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.footer .brand { font-size: 22px; color: var(--surface-white); }
.footer .brand:hover { text-decoration: none; }
.footer .brand-sub { color: var(--footer-muted); }
.footer-about p { margin-top: var(--space-2); max-width: 340px; color: var(--footer-muted); }
.footer-about p a { color: var(--footer-ink); text-decoration: underline; }

.footer-title { margin-bottom: 12px; font-weight: 700; color: var(--surface-white); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-reach { display: flex; flex-direction: column; gap: 8px; }
.footer-reach-link { font-weight: 700; white-space: nowrap; }

.footnote {
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  border-top: 1px solid var(--footer-line);
  font-size: 13px;
  line-height: 18px;
  color: var(--footer-muted);
}

@media (max-width: 1099px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .footer { padding-top: var(--space-5); }
  .footer-grid { gap: var(--space-3) var(--space-2); }
}

/* ---------- Právní stránky ---------- */

.legal { max-width: 862px; }
.legal h1 { margin-bottom: var(--space-4); }
.legal h2 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 25px;
  line-height: 30px;
  font-weight: 700;
}
.legal ol, .legal ul { margin: 0; padding-left: 1.5em; }
.legal ol { list-style: decimal; }
.legal ol ol { list-style-type: lower-alpha; }
.legal ul { list-style: disc; }
.legal li { margin-bottom: var(--space-1); }
.legal li > ol, .legal li > ul { margin-top: var(--space-1); }
.legal p + p { margin-top: var(--space-2); }

@media (max-width: 599px) {
  body { font-size: 18px; line-height: 28px; }
  .display { line-height: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
