/* =========================================================
   Miroslav Snášel – personal site
   Colours follow ČSOB: navy (Pantone 541) + light blue (Pantone 299)
   ========================================================= */

:root {
  /* brand */
  --navy: #003c71;
  --navy-900: #002a50;
  --blue: #00a3e0;
  --blue-strong: #0071ab;   /* blue that passes 4.5:1 on light bg */
  --sky: #5bc2e7;
  --ice: #e6f5fc;

  /* surfaces & text */
  --bg: #f2f4f7;
  --surface: #ffffff;
  --ink: #0b1f33;
  --muted: #4a5b6e;
  --line: #d9dfe6;

  /* scene accent (changed by JS) */
  --accent: var(--blue);
  --heading: var(--navy);

  /* type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing (8pt) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 24px 60px -24px rgba(0, 42, 80, .35);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 80px;

  /* z-index scale */
  --z-header: 40;
  --z-qr: 30;
  --z-menu: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.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;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: 12px; background: var(--navy); color: #fff;
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--s8); scroll-margin-top: var(--header-h); }

/* ---------- type ---------- */
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-strong); margin-bottom: var(--s2);
}
.eyebrow--light { color: var(--sky); }

.display {
  font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  text-wrap: balance;
}
.display--md { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.display__outline {
  display: block; font-style: italic; color: transparent;
  -webkit-text-stroke: 1.5px var(--muted);
  font-size: .62em; letter-spacing: -.01em; margin-bottom: .12em;
}
@supports not (-webkit-text-stroke: 1px black) {
  .display__outline { color: var(--muted); }
}
.display__solid { display: block; color: var(--heading); }
.display--light .display__outline { -webkit-text-stroke-color: rgba(255,255,255,.75); }
.display--light .display__solid { color: #fff; }

.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 34em; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 .9375rem/1 var(--font); letter-spacing: .01em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease-out), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,60,113,.7); }
.btn--primary:hover { background: var(--blue-strong); }
.btn--ghost { border-color: var(--heading); color: var(--heading); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--heading); }
.btn--white:hover { background: var(--ice); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { min-height: 48px; padding: 0 22px; font-size: .875rem; align-self: flex-start; justify-self: start; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h); padding: 0 clamp(16px, 3vw, 40px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(242,244,247,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { justify-self: start; text-decoration: none; line-height: 1.15; display: grid; }
.brand__name { font-weight: 800; font-size: 1.0625rem; color: var(--heading); letter-spacing: -.01em; }
.brand__role { font-size: .75rem; font-weight: 600; color: var(--muted); }

.menu-btn {
  justify-self: center; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--accent); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(0,60,113,.6);
  transition: background-color .6s var(--ease-out), transform .2s var(--ease-out);
  position: relative; z-index: calc(var(--z-menu) + 1);
}
.menu-btn:hover { transform: scale(1.06); }
.menu-btn__lines { display: grid; gap: 4px; width: 18px; }
.menu-btn__lines span { height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; position: relative; z-index: calc(var(--z-menu) + 1); }
.header-call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-weight: 700; font-size: .875rem; color: var(--heading); text-decoration: none;
  transition: background-color .2s;
}
.header-call:hover { background: rgba(0,60,113,.08); }
.header-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--heading); font: 700 .8125rem var(--font); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang-btn:hover { border-color: var(--heading); }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); overflow-y: auto;
  background: var(--navy); color: #fff;
  display: grid; align-content: center; gap: var(--s6);
  padding: var(--header-h) clamp(16px, 8vw, 120px) var(--s5);
  clip-path: circle(0 at 50% 40px);
  transition: clip-path .6s var(--ease-out);
}
.menu.is-open { clip-path: circle(150% at 50% 40px); }
.menu[hidden] { display: none; }
.menu__list { display: grid; gap: 4px; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 6px 0;
  font-size: clamp(1.6rem, min(4.5vw, 5.2vh), 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  text-decoration: none; color: #fff; transition: color .2s, transform .3s var(--ease-out);
}
.menu__list a:hover { color: var(--sky); transform: translateX(8px); }
.menu__num { font-size: .875rem; font-weight: 700; color: var(--sky); letter-spacing: .05em; }
.menu__contact { display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 600; }
.menu__contact a { color: var(--ice); text-decoration: none; overflow-wrap: anywhere; }
.menu__contact a:hover { text-decoration: underline; }
/* header over the navy overlay */
body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .brand__name, body.menu-open .header-call { color: #fff; }
body.menu-open .brand__role { color: var(--sky); }
body.menu-open .lang-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
body.menu-open { overflow: hidden; }

/* =========================================================
   HERO – scroll story
   Default (no JS / reduced motion): static two-column layout.
   ========================================================= */
.hero { position: relative; }
.hero__stage {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--s5);
  width: min(1200px, 100% - 32px); margin-inline: auto;
  padding-top: var(--header-h); padding-bottom: var(--s5);
}
.hero__intro { display: grid; gap: var(--s3); }
.hero__intro .eyebrow { margin-bottom: 0; }
.hero__visual { position: relative; display: grid; justify-items: center; gap: var(--s2); }
.house { width: min(440px, 80vw, 56vh); height: auto; overflow: visible; }
.house__outline-accent rect { fill: none; stroke: var(--accent); stroke-width: 28; transition: stroke .6s var(--ease-out); }
.house__outline-white rect { fill: none; stroke: #fff; stroke-width: 16; }
.house__ring { fill: none; stroke: var(--accent); stroke-width: 5; stroke-dasharray: 200 80; transform-origin: 334px 92px; transition: stroke .6s var(--ease-out); animation: spin 14s linear infinite; }
.house__dot { fill: var(--accent); transition: fill .6s var(--ease-out); }
.house__dot--sm { opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

.scene { opacity: 0; transition: opacity .7s var(--ease-out); }
.scene.is-active { opacity: 1; }

.hero__caption { display: flex; align-items: baseline; gap: 12px; font-weight: 700; color: var(--heading); min-height: 1.6em; }
.hero__caption-num { font-size: .8125rem; color: var(--blue-strong); letter-spacing: .06em; }
.scroll-hint { display: none; }

/* JS-driven pinned version */
.js .hero { height: 340vh; }
.js .hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0;
  grid-template-columns: 1fr; place-items: center; padding-bottom: 0;
}
.js .hero__intro, .js .hero__visual { grid-area: 1 / 1; }
.js .hero__intro {
  justify-self: start; max-width: 560px;
  opacity: var(--intro-o, 0);
  transform: translate3d(calc((1 - var(--intro-o, 0)) * -60px), 0, 0);
  pointer-events: none;
}
.js .hero.is-revealed .hero__intro { pointer-events: auto; }
.js .hero__visual {
  transform: translate3d(var(--vis-x, 0), var(--vis-y, 0), 0) scale(var(--vis-s, 1)) rotate(var(--vis-r, 0deg));
  will-change: transform;
}
.js .scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  opacity: var(--hint-o, 1); transition: opacity .3s;
}
.scroll-hint__bar { width: 2px; height: 36px; background: linear-gradient(var(--accent), transparent); border-radius: 2px; animation: hint 1.8s var(--ease-out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   PRODUCTS – pinned numbered slides (desktop) / stacked (mobile)
   ========================================================= */
.products { position: relative; scroll-margin-top: 0; }
.products__stage {
  width: min(1200px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--s5);
}
.products__slides { position: relative; }
.slide__meta { display: flex; gap: 14px; align-items: baseline; font-size: .8125rem; font-weight: 700; color: var(--ink); margin-bottom: var(--s3); }
.slide__count { color: var(--blue-strong); letter-spacing: .04em; }
.slide__sub { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 700; color: var(--ink); margin: var(--s3) 0 var(--s2); }
.ticks { display: grid; gap: 10px; margin-bottom: var(--s4); color: var(--muted); }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071ab' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.slide-dots { display: none; }

/* device mock */
.device-wrap { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 560px; }
.device {
  position: relative; width: 280px; height: 560px; border-radius: 44px; padding: 54px 22px 22px;
  background: linear-gradient(160deg, #fdfefe, #e9eef3); border: 10px solid #d5dce4;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.8);
  transform: rotateY(var(--rot-y, -14deg)) rotateX(4deg) rotateZ(var(--rot-z, 2deg));
  transform-style: preserve-3d; will-change: transform;
}
.device__notch { position: absolute; top: 14px; left: 50%; width: 84px; height: 22px; border-radius: 12px; background: #d5dce4; transform: translateX(-50%); }
.device__foot { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .6875rem; font-weight: 600; color: var(--muted); }
.orb {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #a9e2f7, var(--blue) 55%, var(--navy));
  right: 4%; top: 12%; filter: drop-shadow(0 20px 30px rgba(0,60,113,.35));
  transform: translate3d(0, var(--orb-y, 0), 0);
}
.screen { position: absolute; inset: 54px 22px 40px; display: grid; align-content: start; gap: 14px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.screen.is-active { opacity: 1; transform: none; }
.screen__label { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.screen__value { font-size: 1.75rem; font-weight: 800; color: var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.screen__note { font-size: .8125rem; color: var(--muted); margin-top: -8px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 12px; background: var(--ice); border-radius: 16px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px; background: linear-gradient(var(--blue), var(--navy)); transform-origin: bottom; }
.screen.is-active .bars i { animation: grow .8s var(--ease-out) both; }
.screen.is-active .bars i:nth-child(2) { animation-delay: .05s; }
.screen.is-active .bars i:nth-child(3) { animation-delay: .1s; }
.screen.is-active .bars i:nth-child(4) { animation-delay: .15s; }
.screen.is-active .bars i:nth-child(5) { animation-delay: .2s; }
.screen.is-active .bars i:nth-child(6) { animation-delay: .25s; }
@keyframes grow { from { transform: scaleY(0); } }
.chip { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; }
.row { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.row b { color: var(--ink); }
.range { height: 10px; border-radius: 10px; background: var(--ice); position: relative; }
.range span { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--blue); }
.range span::after { content: ""; position: absolute; right: -10px; top: -7px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--navy); }
.checklist, .timeline { display: grid; gap: 10px; margin-top: 8px; }
.checklist li, .timeline li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff;
  font-size: .875rem; font-weight: 600; box-shadow: 0 1px 0 var(--line);
}
.checklist li::before, .timeline li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.checklist li.done::before, .timeline li.done::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.screen__house { width: 140px; justify-self: center; margin: 4px 0; }
.screen__chart { width: 100%; height: auto; background: var(--ice); border-radius: 16px; padding: 12px; }

/* pinned (desktop + JS + motion OK) */
@media (min-width: 900px) {
  .js .products { height: 520vh; }
  .js .products__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; padding-top: var(--header-h); }
  .js .products__slides { min-height: 520px; }
  .js .slide {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(24px);
    transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s .6s;
  }
  .js .slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
  .js .slide-dots { display: flex; gap: 6px; position: absolute; left: 0; bottom: -40px; }
  .js .slide-dots button {
    width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative;
  }
  .js .slide-dots button::before {
    content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; border-radius: 4px;
    background: var(--line); transform: translateY(-50%); transition: background-color .3s;
  }
  .js .slide-dots button.is-active::before { background: var(--navy); }
}

/* stacked fallback (mobile / no JS) */
@media (max-width: 899px) {
  .products { padding-block: var(--s6); }
  .products__stage { grid-template-columns: 1fr; }
  .device-wrap { display: none; }
  .products__slides { display: grid; gap: var(--s3); }
  .slide { background: var(--surface); border-radius: var(--radius-lg); padding: var(--s4) var(--s3); box-shadow: 0 1px 0 var(--line); }
}
html:not(.js) .products__stage { padding-block: var(--s7); }
html:not(.js) .device-wrap { display: none; }
html:not(.js) .products__stage { grid-template-columns: 1fr; }
html:not(.js) .products__slides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); }
html:not(.js) .slide { background: var(--surface); border-radius: var(--radius-lg); padding: var(--s4); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) 1.1fr; gap: var(--s6); align-items: center; }
.about__text { display: grid; gap: var(--s2); color: var(--muted); max-width: 38em; }
.about__text .lead { color: var(--ink); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s6); }
.value {
  background: var(--surface); border-radius: var(--radius-lg); padding: var(--s4);
  box-shadow: 0 1px 0 var(--line); display: grid; gap: 10px; align-content: start;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value h3 { font-size: 1.25rem; font-weight: 800; color: var(--heading); letter-spacing: -.01em; }
.value p { color: var(--muted); }
.value__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); margin-bottom: 8px; }
.value__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   STEPS
   ========================================================= */
.steps { padding-top: 0; }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s5); counter-reset: s; }
.step { position: relative; padding-top: var(--s4); border-top: 2px solid var(--line); display: grid; gap: 10px; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 2px; background: var(--blue); }
.step__num { font-size: 3.5rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue-strong); font-style: italic; }
.step h3 { font-size: 1.375rem; font-weight: 800; color: var(--heading); }
.step p { color: var(--muted); max-width: 26em; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-top: 0; }
.contact__card {
  position: relative; overflow: hidden; border-radius: 40px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #0a5a9c 0%, var(--navy) 45%, var(--navy-900) 100%);
  padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
.contact__card::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 28px solid rgba(0,163,224,.25); right: -120px; bottom: -160px; pointer-events: none;
}
.contact__head { display: grid; gap: var(--s3); align-content: start; position: relative; z-index: 1; }
.contact__head .eyebrow { margin-bottom: 0; }
.contact__phone {
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; text-decoration: none;
  color: #fff; font-variant-numeric: tabular-nums; width: fit-content;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--ease-out);
}
.contact__phone:hover { background-size: 100% 3px; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin: 0; position: relative; z-index: 1; }
.contact__info > div:first-child { grid-column: 1 / -1; }
.contact__info dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.contact__info dd { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: #fff; overflow-wrap: anywhere; }
.contact__info a { color: #fff; text-underline-offset: 3px; }
.link-arrow { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--sky) !important; }
.link-arrow::after { content: " →"; }
.contact__intro { color: rgba(255,255,255,.82); font-size: 1.0625rem; max-width: 30em; }
#kontakt, #zavolat, #napsat { scroll-margin-top: calc(var(--header-h) + 8px); }

.call-card {
  display: grid; gap: 14px; padding: var(--s3); border-radius: 24px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.call-card__label { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.call-card__label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.copy-link {
  margin-left: 8px; padding: 4px 12px; min-height: 32px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--ice); font: 600 .75rem var(--font);
}
.copy-link:hover { border-color: #fff; color: #fff; }

/* ---------- message form ---------- */
.form-panel {
  position: relative; z-index: 1; background: var(--surface); color: var(--ink);
  border-radius: 28px; padding: clamp(22px, 2.6vw, 32px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.form-panel__title { font-size: 1.375rem; font-weight: 800; color: var(--heading); letter-spacing: -.01em; }
.form-panel__hint { font-size: .8125rem; color: var(--muted); margin: 4px 0 var(--s2); }
.req { color: #b42318; font-weight: 700; }
.contact-form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field__opt { font-weight: 500; color: var(--muted); }
.form-panel { container-type: inline-size; }
@container (min-width: 520px) {
  .field--inline { grid-template-columns: auto 1fr; align-items: center; gap: 8px 16px; }
  .field--inline legend { float: left; margin: 0; }
  .field--inline .choice-row { grid-column: 2; }
}
.field > label, .field legend { font-size: .875rem; font-weight: 700; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid #8a9aab; background: #fff; color: var(--ink);
  font: 500 1rem/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003c71' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-strong); box-shadow: 0 0 0 4px rgba(0,163,224,.25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b42318; }
.field__help { font-size: .8125rem; color: var(--muted); }
.field__error { font-size: .8125rem; font-weight: 600; color: #b42318; }
.field__error:empty { display: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #8a9aab; border-radius: 999px; cursor: pointer; font-size: .9375rem; font-weight: 600;
  transition: border-color .2s, background-color .2s;
}
.choice:has(input:checked) { border-color: var(--heading); background: var(--ice); }
.choice input { width: 18px; height: 18px; accent-color: var(--heading); margin: 0; cursor: pointer; }
.choice--consent { border: 0; padding: 0; border-radius: 0; align-items: flex-start; font-size: .875rem; font-weight: 500; color: var(--muted); line-height: 1.45; min-height: 0; }
.choice--consent:has(input:checked) { background: none; }
.choice--consent input { margin-top: 1px; flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-summary { padding: 12px 16px; border-radius: 14px; background: #fef3f2; color: #b42318; font-size: .875rem; font-weight: 600; }
.form-summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.form-summary a { color: inherit; }
.btn--block { width: 100%; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-sending .btn__spinner { display: inline-block; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: .9375rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; border-radius: 14px; background: #ecfdf3; color: #067647; }
.form-status.is-err { padding: 14px 16px; border-radius: 14px; background: #fef3f2; color: #b42318; }
.form-status a { color: inherit; font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .875rem;
  transition: opacity .25s, transform .25s var(--ease-out); pointer-events: none;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding: var(--s6) 0 var(--s7); }
.footer__grid { display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: start; border-top: 1px solid var(--line); padding-top: var(--s5); }
.footer__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer__partner img { width: 160px; height: auto; }
.footer__legal { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.footer__legal strong { color: var(--ink); }
.footer__note { max-width: 60em; margin-top: 8px; font-size: .8125rem; }
.footer__copy { font-size: .8125rem; }

/* =========================================================
   QR corner (Tiqmo-style "download" corner)
   ========================================================= */
.qr-corner {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-qr);
  display: none; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; box-shadow: 0 10px 30px -12px rgba(0,42,80,.35);
  font: 500 .75rem/1.35 var(--font); color: var(--muted); text-align: left;
  border: 0; cursor: zoom-in;
  transition: opacity .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.qr-corner:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(0,42,80,.45); }
.qr-corner strong { color: var(--heading); }
.qr-corner__code { display: block; width: 72px; height: 72px; }
.qr-corner__code svg { width: 100%; height: 100%; }
.qr-corner__zoom {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ice); color: var(--heading); flex: none;
}
.qr-corner__zoom svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* enlarged QR dialog */
.qr-dialog {
  width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  border: 0; border-radius: 32px; padding: 36px 32px 32px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(0,20,40,.5); text-align: center;
  transform-origin: 85% 100%;
}
.qr-dialog[open] { display: grid; justify-items: center; gap: 14px; animation: qr-in .32s var(--ease-out); }
.qr-dialog.is-closing { animation: qr-out .18s ease-in forwards; }
.qr-dialog::backdrop { background: rgba(0,26,52,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qr-dialog .eyebrow { margin: 0; }
.qr-dialog__title { font-size: 1.625rem; font-weight: 800; color: var(--heading); letter-spacing: -.02em; line-height: 1.15; }
.qr-dialog__code { width: min(300px, 100%); aspect-ratio: 1; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.qr-dialog__code svg { width: 100%; height: 100%; display: block; }
.qr-dialog__steps { display: grid; gap: 4px; counter-reset: q; color: var(--muted); font-size: .9375rem; }
.qr-dialog__steps li { counter-increment: q; }
.qr-dialog__steps li::before { content: counter(q) ". "; font-weight: 700; color: var(--blue-strong); }
.qr-dialog__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--heading); cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s;
}
.qr-dialog__close:hover { background: var(--ice); }
.qr-dialog__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@keyframes qr-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes qr-out { to { opacity: 0; transform: translateY(12px) scale(.96); } }
.qr-corner.is-ready { display: flex; }
.qr-corner.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 899px), (hover: none) { .qr-corner.is-ready { display: none; } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .section { padding-block: var(--s7); }
  .header-call span { display: none; }
  .header-call { width: 44px; padding: 0; justify-content: center; }
  .brand__name { font-size: .9375rem; }
  .menu-btn { width: 48px; height: 48px; }

  .hero__stage { grid-template-columns: 1fr; }
  .js .hero { height: 300vh; }
  .js .hero__stage { align-content: center; }
  .js .hero__intro { align-self: end; padding-bottom: var(--s5); transform: translate3d(0, calc((1 - var(--intro-o, 0)) * 40px), 0); }
  .house { width: min(340px, 78vw); }

  .about__grid, .contact__card { grid-template-columns: 1fr; }
  .values, .steps__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__card { border-radius: 28px; padding: 28px 16px; }
  .contact__info { grid-template-columns: 1fr; }
  .form-panel { padding: 24px 18px; }
}
@media (max-width: 420px) {
  .btn-row .btn { flex: 1 1 100%; }
  .brand__role { display: none; }
}

/* =========================================================
   Reduced motion: no pinning, no scroll choreography
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .hero, .js .products { height: auto !important; }
  .js .hero__stage { position: relative; height: auto; min-height: 100vh; grid-template-columns: 1.05fr 1fr; padding-bottom: var(--s5); }
  .js .hero__intro, .js .hero__visual { grid-area: auto; }
  .js .hero__intro { opacity: 1; transform: none; pointer-events: auto; }
  .js .hero__visual { transform: none; }
  .js .scroll-hint { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .products__stage { position: relative; height: auto; padding-block: var(--s7); grid-template-columns: 1fr; }
  .js .products__slides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); min-height: 0; }
  .js .slide { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; background: var(--surface); border-radius: var(--radius-lg); padding: var(--s4); }
  .js .slide-dots, .device-wrap { display: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .js .hero__stage { grid-template-columns: 1fr; }
}

/* contact form: stack paired fields only on narrow phones */
@media (max-width: 559px) {
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .choice-row { flex-wrap: nowrap; }
  .choice-row .choice { flex: 1; justify-content: center; gap: 8px; padding: 0 8px; white-space: nowrap; font-size: .875rem; }
}

/* =========================================================
   LIFE SITUATIONS
   ========================================================= */
.situations { padding-bottom: 0; }
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s5); }
.sit {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 10px;
  background: var(--surface); border-radius: var(--radius-lg); padding: var(--s4);
  box-shadow: 0 1px 0 var(--line); transition: transform .3s var(--ease-out), box-shadow .3s;
}
.sit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sit__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); margin-bottom: 6px; }
.sit:nth-child(even) .sit__icon { background: var(--blue-strong); }
.sit__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sit h3 { font-size: 1.25rem; font-weight: 800; color: var(--heading); letter-spacing: -.01em; line-height: 1.25; }
.sit p { color: var(--muted); }
.sit__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sit__tags span { padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--heading); font-size: .75rem; font-weight: 700; }
.sit__link { font-weight: 700; color: var(--blue-strong); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.sit__link::after { content: " →"; margin-left: 4px; transition: transform .2s; }
.sit__link:hover::after { transform: translateX(4px); }
/* whole card clickable via the link */
.sit__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s6); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__more { margin-top: var(--s3); color: var(--muted); }
.faq__more a { color: var(--blue-strong); font-weight: 700; }
.faq__list { display: grid; gap: 10px; }
.qa { background: var(--surface); border-radius: 20px; box-shadow: 0 1px 0 var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; position: relative; min-height: 64px;
  font-weight: 700; font-size: 1.0625rem; color: var(--heading); border-radius: 20px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003c71' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .3s var(--ease-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { background: rgba(0,163,224,.05); }
.qa p { padding: 0 24px 22px; color: var(--muted); max-width: 60ch; }
.qa[open] p { animation: qa-in .3s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   TIPS
   ========================================================= */
.tips { padding-top: 0; }
.tips__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s3); flex-wrap: wrap; }
.tips__note { color: var(--muted); max-width: 26em; }
.tips__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s5); }
.tip a {
  height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: var(--s4);
  background: var(--surface); border-radius: var(--radius-lg); text-decoration: none; box-shadow: 0 1px 0 var(--line);
  border-top: 4px solid var(--blue); transition: transform .3s var(--ease-out), box-shadow .3s;
}
.tip:nth-child(2) a { border-top-color: var(--heading); }
.tip:nth-child(3) a { border-top-color: var(--blue-strong); }
.tip a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip__tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--heading); font-size: .75rem; font-weight: 700; }
.tip h3 { font-size: 1.25rem; font-weight: 800; color: var(--heading); line-height: 1.25; letter-spacing: -.01em; }
.tip p { color: var(--muted); }
.tip__more { font-weight: 700; color: var(--blue-strong); }
.tip__more > span:first-child::after { content: " →"; }
.tip__lang { font-weight: 500; color: var(--muted); }

/* misc additions */
.field__link { justify-self: start; font-size: .8125rem; color: var(--blue-strong); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; }
.footer__links a { color: var(--heading); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .sit-grid, .tips__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .faq__head { position: static; }
}
@media (max-width: 639px) {
  .sit-grid, .tips__grid { grid-template-columns: 1fr; }
  .qa summary { padding: 18px 56px 18px 18px; font-size: 1rem; }
  .qa p { padding: 0 18px 18px; }
}

/* =========================================================
   SUBPAGES (articles, privacy)
   ========================================================= */
.page-header .header-actions { gap: 12px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--heading); font-weight: 700; font-size: .875rem; text-decoration: none;
}
.back-link:hover { border-color: var(--heading); }
.page-header { background: rgba(242,244,247,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); grid-template-columns: 1fr auto; }
.page-main { padding: calc(var(--header-h) + var(--s6)) 0 var(--s7); }
.prose { width: min(720px, 100% - 32px); margin-inline: auto; }
.prose__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .875rem; margin-bottom: var(--s2); }
.prose h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--heading); margin-bottom: var(--s3); text-wrap: balance; }
.prose .lead { margin-bottom: var(--s4); }
.prose h2 { font-size: 1.5rem; font-weight: 800; color: var(--heading); margin: var(--s5) 0 var(--s2); letter-spacing: -.01em; }
.prose h3 { font-size: 1.125rem; font-weight: 800; color: var(--ink); margin: var(--s4) 0 var(--s1); }
.prose p, .prose li { color: #2d3e50; font-size: 1.0625rem; line-height: 1.7; }
.prose p + p { margin-top: var(--s2); }
.prose ul, .prose ol { margin: var(--s2) 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--blue-strong); font-weight: 600; }
.prose strong { color: var(--ink); }
.callout { margin: var(--s4) 0; padding: var(--s3); border-radius: 20px; background: var(--ice); border-left: 4px solid var(--blue); }
.callout p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s3) 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--heading); font-weight: 700; background: var(--surface); }
.table-wrap { overflow-x: auto; }
.disclaimer { margin-top: var(--s5); font-size: .875rem !important; color: var(--muted) !important; }
.article-cta {
  margin-top: var(--s6); padding: var(--s5) var(--s4); border-radius: 32px; color: #fff; text-align: left;
  background: radial-gradient(120% 120% at 100% 0%, #0a5a9c 0%, var(--navy) 50%, var(--navy-900) 100%);
  display: grid; gap: var(--s2);
}
.article-cta h2 { color: #fff; margin: 0; }
.article-cta p { color: rgba(255,255,255,.85); }
@media (max-width: 559px) {
  .back-link span { display: none; }
  .back-link { width: 44px; padding: 0; justify-content: center; }
}

/* =========================================================
   ANIMATED AVATAR
   ========================================================= */
.avatar { position: relative; margin: 0; justify-self: center; width: min(400px, 100%); }
.avatar__svg { width: 100%; height: auto; overflow: visible; }
.avatar__ring, .avatar__body, .avatar__eye, .avatar__arm, .avatar__head { transform-box: fill-box; }
.avatar__ring { transform-origin: center; animation: spin 30s linear infinite; }
.avatar__body { animation: av-breathe 4.5s ease-in-out infinite; }
.avatar__eye { transform-origin: center; animation: av-blink 5s infinite; }
.avatar__eye:nth-of-type(2) { animation-delay: .02s; }
.avatar__iris { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .25s var(--ease-out); }
.avatar__arm { transform-origin: 30% 95%; transform: rotate(0deg); }
.avatar.is-waving .avatar__arm { animation: av-wave 1.4s ease-in-out; }
.avatar.is-waving .avatar__head { animation: av-tilt 1.4s ease-in-out; transform-origin: 50% 90%; }
.avatar__bubble {
  position: absolute; top: 2%; right: -2%; z-index: 1; padding: 10px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .9375rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: bottom right;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); pointer-events: none;
}
.avatar.is-reacting .avatar__bubble { opacity: 1; transform: none; }
.avatar svg { cursor: pointer; }
.about__promise { padding: var(--s2) var(--s3); border-radius: 16px; background: var(--ice); color: var(--heading) !important; border-left: 4px solid var(--blue); }
.about__text .eyebrow { margin-bottom: 0; }
.about__text .display { margin-bottom: var(--s1); }

@keyframes av-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes av-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes av-wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); }
  45% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-6deg); }
}
@keyframes av-tilt { 0%, 100% { transform: rotate(0deg); } 30%, 70% { transform: rotate(-4deg); } }

@media (max-width: 899px) {
  .about__grid { gap: var(--s4); }
  .avatar { width: min(300px, 80%); }
}

/* =========================================================
   CALLBACK FORM (on the dark contact card)
   ========================================================= */
.callback {
  display: grid; gap: 12px; padding: var(--s3); border-radius: 24px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.callback__hint { color: rgba(255,255,255,.8); font-size: .9375rem; }
.callback__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.field--dark > label, .field--dark .choice--consent { color: #fff !important; }
.field--dark .choice--consent { color: rgba(255,255,255,.85) !important; font-size: .8125rem; }
.field--dark .choice--consent a { color: var(--sky); }
.field--dark input:not([type=checkbox]), .field--dark select { border-color: rgba(255,255,255,.4) !important; }
.field--dark .field__error { color: #fecdca; }
.field--dark .req { color: #fda29b; }
.callback .btn { justify-self: start; }
.callback .btn .btn__spinner { border-color: rgba(0,60,113,.3); border-top-color: var(--heading); }
.callback .form-status.is-ok { background: rgba(236,253,243,.95); }
.callback .form-status.is-err { background: rgba(254,243,242,.95); }

/* =========================================================
   MOBILE QUICK-CONTACT BAR
   ========================================================= */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-header);
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px;
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px -10px rgba(0,42,80,.45);
    transform: translateY(150%); transition: transform .35s var(--ease-out);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; }
  .mobile-bar .btn--ghost { background: #fff; }
  .site-footer { padding-bottom: calc(var(--s7) + 72px); }
  .callback__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* =========================================================
   WHY ČSOB
   ========================================================= */
.why { padding-bottom: 0; }
.why__card {
  border-radius: 40px; color: #fff; padding: clamp(32px, 6vw, 72px);
  background: radial-gradient(110% 140% at 0% 0%, #0a5a9c 0%, var(--navy) 50%, var(--navy-900) 100%);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s5); align-items: center; position: relative; overflow: hidden;
}
.why__card::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; left: -120px; bottom: -180px;
  border: 26px solid rgba(0,163,224,.22); pointer-events: none;
}
.why__head { display: grid; gap: var(--s2); position: relative; }
.why__head .eyebrow { margin: 0; }
.why__lead { color: rgba(255,255,255,.85); font-size: 1.0625rem; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.why__grid li { padding: var(--s3); border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.why__grid p { color: rgba(255,255,255,.82); font-size: .9375rem; }
.why__big { font-size: 1.375rem !important; font-weight: 800; color: #fff !important; margin-bottom: 6px; letter-spacing: -.01em; }

@media (max-width: 899px) {
  .why__card { grid-template-columns: 1fr; }
  .why__card { border-radius: 28px; padding: 28px 18px; }
}
@media (max-width: 559px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CITIES
   ========================================================= */
.cities { margin-top: var(--s6); display: grid; gap: var(--s2); }
.cities__title { font-size: 1.125rem; font-weight: 800; color: var(--heading); }
.cities__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cities__list a {
  display: grid; gap: 2px; padding: 18px 20px; border-radius: 20px; background: var(--surface); text-decoration: none;
  box-shadow: 0 1px 0 var(--line); position: relative; transition: transform .25s var(--ease-out), box-shadow .25s;
}
.cities__list a::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--blue-strong); font-weight: 700; }
.cities__list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cities__list strong { color: var(--heading); font-size: 1.125rem; }
.cities__list span { color: var(--muted); font-size: .875rem; }
.city-services { list-style: none !important; padding: 0 !important; gap: 10px !important; }
.city-services a {
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px; background: var(--surface); text-decoration: none;
  box-shadow: 0 1px 0 var(--line); font-weight: 500 !important;
}
.city-services a:hover { box-shadow: 0 0 0 2px var(--blue); }
.city-services strong { color: var(--heading); }
.city-services span { color: var(--muted); font-size: .9375rem; }
.prose .article-cta .btn { color: var(--heading); }
.prose .article-cta .btn--outline-light { color: #fff; }
@media (max-width: 639px) { .cities__list { grid-template-columns: 1fr; } }

/* =========================================================
   SITE GUIDE (floating avatar)
   ========================================================= */
.guide {
  position: fixed; right: 24px; bottom: 128px; z-index: var(--z-qr);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.guide.is-away { opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; }
.guide__btn {
  width: 84px; height: 84px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  filter: drop-shadow(0 10px 18px rgba(0,42,80,.3)); transition: transform .2s var(--ease-out);
}
.guide__btn:hover { transform: translateY(-3px) scale(1.04); }
.guide__btn[aria-expanded="true"] { transform: scale(.94); }
.guide__avatar, .guide__avatar svg { display: block; width: 100%; height: 100%; }
.guide__avatar .avatar__ring, .guide__avatar > svg > circle:nth-of-type(3) { display: none; }
.guide__bubble {
  position: relative; max-width: 260px; padding: 12px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--navy); color: #fff; font-size: .9375rem; font-weight: 600; line-height: 1.4;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(.92); transform-origin: bottom right;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); pointer-events: none;
}
.guide.is-talking .guide__bubble { opacity: 1; transform: none; }
.guide__menu {
  width: 260px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 50px -16px rgba(0,42,80,.45);
  display: grid; gap: 6px; animation: qr-in .25s var(--ease-out); transform-origin: bottom right;
}
.guide__menu[hidden] { display: none; }
.guide__menu-title { font-weight: 800; color: var(--heading); font-size: 1rem; padding: 2px 6px 6px; }
.guide__menu ul { display: grid; gap: 2px; }
.guide__menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .15s;
}
.guide__menu a::after { content: "→"; margin-left: auto; color: var(--blue-strong); }
.guide__menu a:hover { background: var(--ice); }
.guide__hide {
  margin-top: 6px; min-height: 40px; border: 0; background: none; color: var(--muted); font: 600 .8125rem var(--font);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; padding: 0 12px;
}
.footer__guide { border: 0; background: none; padding: 0; font: 600 1rem var(--font); color: var(--heading); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.guide.is-talking .avatar__arm { animation: av-wave 1.4s ease-in-out; }

@media (max-width: 899px) {
  .guide { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .guide__btn { width: 64px; height: 64px; }
  .guide__bubble { max-width: min(240px, calc(100vw - 40px)); font-size: .875rem; }
  .guide__menu { width: min(260px, calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .guide.is-talking .avatar__arm { animation: none; }
}

/* the spinning avatar ring must never widen the page on phones */
.about { overflow-x: clip; }

/* =========================================================
   AVATAR REACTIONS & IDLE ANIMATIONS
   ========================================================= */
.avatar { cursor: pointer; border-radius: 32px; -webkit-tap-highlight-color: transparent; }
.avatar:focus-visible { outline: 3px solid var(--blue); outline-offset: 8px; }
.avatar__svg { transform-origin: 50% 100%; }
.avatar__hair, .avatar__brows, .avatar__mouth { transform-box: fill-box; }
.avatar__hair { transform-origin: 50% 100%; }
.avatar__brows { transition: transform .25s var(--ease-out); }
.mouth--laugh, .mouth--o { display: none; }

/* hover: curious eyebrows */
.avatar:hover .avatar__brows, .avatar.is-surprised .avatar__brows, .avatar.is-jumping .avatar__brows { transform: translateY(-4px); }

/* jump with squash & stretch */
.avatar.is-jumping .avatar__svg { animation: av-jump 1s cubic-bezier(.3,.7,.4,1); }
.avatar.is-jumping .avatar__hair, .avatar.is-hairbounce .avatar__hair { animation: av-hair .9s ease-out; }
@keyframes av-jump {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(6px) scale(1.05, .94); }
  42% { transform: translateY(-34px) scale(.96, 1.05); }
  68% { transform: translateY(0) scale(1.05, .95); }
  82% { transform: translateY(-8px) scale(1, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes av-hair {
  0%, 100% { transform: translateY(0) scaleY(1); }
  30% { transform: translateY(-5px) scaleY(1.06); }
  55% { transform: translateY(2px) scaleY(.96); }
  78% { transform: translateY(-2px) scaleY(1.02); }
}

/* wink (right eye) and double blink */
.avatar.is-winking .avatar__eye--r { animation: av-wink 1.1s ease-in-out; }
.avatar.is-winking .avatar__eye--l { animation: none; }
.avatar.is-doubleblink .avatar__eye { animation: av-double-blink .7s linear; }
@keyframes av-wink { 0%, 100% { transform: scaleY(1); } 15%, 70% { transform: scaleY(.1); } }
@keyframes av-double-blink { 0%, 40%, 100% { transform: scaleY(1); } 15%, 60% { transform: scaleY(.1); } }

/* laugh: open mouth and a little head shake */
.avatar.is-laughing .mouth--smile, .avatar.is-surprised .mouth--smile { display: none; }
.avatar.is-laughing .mouth--laugh { display: inline; }
.avatar.is-surprised .mouth--o { display: inline; }
.avatar.is-laughing .avatar__head { animation: av-laugh 1.2s ease-in-out; transform-origin: 50% 90%; }
@keyframes av-laugh {
  0%, 100% { transform: rotate(0) translateY(0); }
  15%, 45%, 75% { transform: rotate(-3deg) translateY(-2px); }
  30%, 60%, 90% { transform: rotate(3deg) translateY(0); }
}

/* surprised: a quick pop */
.avatar.is-surprised .avatar__head { animation: av-pop .5s var(--ease-out); transform-origin: 50% 90%; }
@keyframes av-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* love: hearts float up */
.avatar.is-loving .avatar__head { animation: av-tilt 1.6s ease-in-out; transform-origin: 50% 90%; }
.avatar__fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.avatar__heart {
  position: absolute; top: 30%; width: 30px; height: 27px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-9-5.6-9-12A5 5 0 0 1 12 6a5 5 0 0 1 9 3c0 6.4-9 12-9 12z' fill='%2300A3E0'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: av-heart 1.6s var(--ease-out) forwards;
}
.avatar__heart:nth-child(3n) { filter: hue-rotate(160deg) saturate(1.4); }
.avatar__heart:nth-child(3n+1) { width: 20px; height: 18px; }
@keyframes av-heart {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -150px) scale(1.1) rotate(var(--rot)); }
}

/* guide hops when it starts talking */
.guide.is-talking .guide__btn { animation: guide-hop .6s var(--ease-out); }
@keyframes guide-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } 70% { transform: translateY(2px); } }

/* =========================================================
   "PRVNÍ KROKY" PATH & GLOSSARY
   ========================================================= */
.steps-path { list-style: none !important; padding: 0 !important; margin: var(--s4) 0 !important; gap: 0 !important; counter-reset: path; }
.steps-path > li { position: relative; padding: 0 0 var(--s4) 64px; counter-increment: path; }
.steps-path > li::before {
  content: counter(path); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.125rem;
}
.steps-path > li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps-path > li:last-child::after { display: none; }
.steps-path h2 { margin: 6px 0 var(--s1) !important; font-size: 1.375rem !important; }

.gloss-tools { position: sticky; top: var(--header-h); z-index: 5; display: grid; gap: 10px; padding: 12px 0; background: var(--bg); }
.gloss-search {
  width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid #8a9aab; background: #fff;
  font: 500 1rem var(--font); color: var(--ink);
}
.gloss-search:focus { outline: none; border-color: var(--blue-strong); box-shadow: 0 0 0 4px rgba(0,163,224,.25); }
.gloss-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.gloss-letters a {
  display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; background: var(--surface);
  color: var(--heading) !important; font-weight: 800; text-decoration: none; box-shadow: 0 1px 0 var(--line);
}
.gloss-letters a:hover { background: var(--ice); }
.glossary { display: grid; gap: 10px; margin: var(--s3) 0 0; }
.gloss-letter { font-size: 1.75rem; font-weight: 800; color: var(--blue-strong); margin-top: var(--s3); scroll-margin-top: calc(var(--header-h) + 130px); }
.gloss-item { background: var(--surface); border-radius: 18px; padding: 16px 20px; box-shadow: 0 1px 0 var(--line); scroll-margin-top: calc(var(--header-h) + 130px); }
.gloss-item:target { box-shadow: 0 0 0 2px var(--blue); }
.gloss-item dt { font-weight: 800; color: var(--heading); font-size: 1.0625rem; }
.gloss-item dd { margin: 4px 0 0; color: #2d3e50; }
.gloss-empty { margin-top: var(--s3); padding: var(--s3); border-radius: 18px; background: var(--ice); }

/* tips: 2 × 2 with the young-people guide */
.tips__grid { grid-template-columns: repeat(2, 1fr); }
.tip--young a { border-top-color: var(--sky); background: linear-gradient(160deg, #fff 60%, var(--ice)); }
@media (max-width: 639px) { .tips__grid { grid-template-columns: 1fr; } }

/* =========================================================
   WELCOME INTRO (avatar greets, then flies into the guide)
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; cursor: pointer;
  background: rgba(242,244,247,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s var(--ease-out), background-color .6s, backdrop-filter .6s;
}
.intro.is-in { opacity: 1; }
.intro.is-leaving { background: rgba(242,244,247,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); pointer-events: none; }
.intro__figure {
  position: relative; width: min(300px, 62vw); transform-origin: 50% 50%;
  transform: translateY(60px) scale(.5); opacity: 0;
  transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .4s var(--ease-out);
}
.intro.is-in .intro__figure { transform: none; opacity: 1; }
.intro.is-leaving .intro__figure { transition: transform .8s cubic-bezier(.65,0,.35,1); }
.intro__figure svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 100%; }
.intro.is-waving .avatar__arm { animation: av-wave 1.4s ease-in-out 2; }
.intro.is-jumping .intro__figure svg { animation: av-jump 1s cubic-bezier(.3,.7,.4,1); }
.intro.is-jumping .avatar__hair { animation: av-hair .9s ease-out; }
.intro__bubble {
  position: absolute; bottom: calc(100% + 6px); left: 50%; width: max-content; max-width: min(330px, 84vw);
  padding: 14px 20px; border-radius: 20px; background: var(--navy); color: #fff; text-align: center;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.4; box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, 12px) scale(.9); transform-origin: 50% 100%;
  transition: opacity .3s var(--ease-out), transform .4s cubic-bezier(.34,1.56,.64,1);
}
.intro__bubble::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 16px; height: 16px; margin: -9px 0 0 -8px;
  background: var(--navy); transform: rotate(45deg); border-radius: 0 0 4px 0;
}
.intro.is-talking .intro__bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
.intro.is-leaving .intro__bubble { opacity: 0; transition-duration: .2s; }
.intro__skip {
  position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  font-size: .8125rem; font-weight: 600; color: var(--muted); opacity: 0; transition: opacity .4s .6s;
  white-space: nowrap;
}
.intro.is-in .intro__skip { opacity: 1; }
.intro.is-leaving .intro__skip { opacity: 0; transition-delay: 0s; }
.guide.is-waiting { opacity: 0 !important; transform: none !important; pointer-events: none; }

/* =========================================================
   UI REFRESH (inspired by beblessed.io + atuin.media)
   ========================================================= */
:root {
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --gold: #f4c152;
  --glass: rgba(255,255,255,.68);
  --glass-border: rgba(255,255,255,.9);
}

/* soft pastel backdrop instead of flat grey */
body { background: #eef3f9; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 8% 0%, rgba(127,211,242,.35), transparent 70%),
    radial-gradient(50vw 50vh at 100% 35%, rgba(176,186,240,.35), transparent 70%),
    radial-gradient(60vw 50vh at 30% 100%, rgba(0,163,224,.16), transparent 70%),
    #eef3f9;
}

/* headings: serif italic accent + tighter grotesk */
.display__outline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--blue-strong); -webkit-text-stroke: 0; letter-spacing: -.01em; font-size: .7em;
}
.display--light .display__outline { color: var(--sky); -webkit-text-stroke: 0; }
.display__solid { font-weight: 700; letter-spacing: -.04em; }
.step__num { font-family: var(--serif); font-weight: 600; -webkit-text-stroke: 0; color: var(--blue-strong); }

/* a word wrapped in a pill (atuin) */
.pill-word {
  display: inline-block; padding: 0 .26em .06em; margin: 0 .02em; line-height: 1.02;
  border: .045em solid currentColor; border-radius: 999px;
}

/* handwritten notes with arrows (beblessed) */
.handnote {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--blue-strong);
  transform: rotate(-4deg);
}
.handnote svg { width: 64px; height: auto; flex: none; }
.handnote--hero { margin-top: 4px; }
.handnote--sit { position: absolute; right: 0; top: 10px; transform: rotate(5deg); }
.handnote--contact { color: var(--gold); transform: rotate(-5deg); justify-self: start; font-size: 1.75rem; }
.situations .container > .reveal:first-child { position: relative; }

/* frosted glass cards */
.sit, .value, .qa, .tip a, .cities__list a, .rem-form, .slide {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -18px rgba(0,42,80,.35);
}
html.js .slide { background: transparent !important; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 899px) { html.js .slide { background: var(--glass) !important; border: 1px solid var(--glass-border); } }
.tip a { border-top-width: 4px; }

/* buttons: pill with a round arrow (atuin's "+" circle) */
.btn--primary::after, .btn--white::after {
  content: ""; width: 26px; height: 26px; margin-right: -12px; border-radius: 50%; flex: none;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003c71' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s var(--ease-out);
}
.btn--primary:hover::after, .btn--white:hover::after { transform: translateX(3px) rotate(-45deg); }
.mobile-bar .btn::after, .contact-form .btn::after, .callback .btn::after { display: none; }

/* ---------- floating clay objects around the hero ---------- */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floater {
  position: absolute; width: var(--w, 110px);
  transform: translate3d(0, calc(var(--hp, 0) * -140px * var(--speed, 1)), 0) rotate(calc(var(--hp, 0) * 40deg * var(--speed, 1)));
  filter: drop-shadow(0 18px 24px rgba(0,42,80,.18));
}
.floater svg { display: block; width: 100%; height: auto; animation: float 6s ease-in-out infinite; }
.floater--coin { --w: 96px; left: 8%; top: 22%; }
.floater--piggy { --w: 150px; left: 6%; bottom: 14%; }
.floater--key { --w: 130px; right: 6%; top: 16%; }
.floater--umbrella { --w: 110px; right: 4%; bottom: 10%; }
.floater--piggy svg { animation-delay: -2s; }
.floater--key svg { animation-delay: -4s; animation-duration: 7s; }
.floater--umbrella svg { animation-delay: -1s; animation-duration: 8s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.js .hero__intro, .js .hero__visual { position: relative; z-index: 1; }
/* when the intro text slides in, objects on the left step back */
.js .floater--coin, .js .floater--piggy { opacity: calc(1 - var(--intro-o, 0) * .85); }
@media (max-width: 899px) {
  .floater--coin { --w: 64px; left: 4%; top: 14%; }
  .floater--key { --w: 86px; right: 4%; top: 12%; }
  .floater--piggy, .floater--umbrella { display: none; }
}

/* ---------- facts panel with pills (atuin) ---------- */
.facts { padding-block: var(--s6) 0; }
.facts__card {
  background: linear-gradient(135deg, #0a6fc2, var(--blue-strong) 45%, #0b5aa6); color: #fff; border-radius: 40px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px); text-align: center; position: relative; overflow: hidden;
}
.facts__card::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -160px; top: -200px;
  border: 30px solid rgba(255,255,255,.08); pointer-events: none;
}
.facts__title { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; margin-bottom: var(--s4); }
.facts__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(14px, 2vw, 22px); }
.facts__list li { display: grid; justify-items: center; }
.facts__pill {
  display: inline-block; padding: 8px 26px 10px; border-radius: 999px; background: #fff; color: var(--heading);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums;
  transition: transform .3s var(--ease-out), min-width .4s var(--ease-out);
}
.facts__list li:hover .facts__pill { transform: translateY(-4px) rotate(-3deg); }
.facts__cap {
  margin-top: 14px; font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.9);
  transform: rotate(32deg); transform-origin: left top; white-space: nowrap; justify-self: start; margin-left: 50%;
}

/* ---------- "Jak to probíhá": cards stack on top of each other (beblessed) ---------- */
.steps__list { grid-template-columns: 1fr !important; gap: 0 !important; }
.step {
  position: sticky; top: calc(var(--header-h) + 24px + var(--i, 0) * 22px);
  border: 0 !important; padding: clamp(28px, 4vw, 48px) !important; margin-bottom: 28px; min-height: 220px;
  border-radius: 32px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 -10px 40px -20px rgba(0,42,80,.35); display: grid !important; grid-template-columns: auto 1fr; column-gap: var(--s5); align-items: center;
}
.step::before { display: none; }
.step:nth-child(1) { --i: 0; }
.step:nth-child(2) { --i: 1; background: #dff1fb; }
.step:nth-child(3) { --i: 2; background: var(--navy); color: #fff; }
.step:nth-child(3) h3 { color: #fff; }
.step:nth-child(3) p { color: rgba(255,255,255,.85); }
.step:nth-child(3) .step__num { color: var(--sky); }
.step__num { font-size: clamp(4rem, 9vw, 7.5rem) !important; grid-row: span 2; line-height: .9; }
.step h3 { font-size: clamp(1.5rem, 3vw, 2.25rem) !important; letter-spacing: -.02em; align-self: end; }
.step p { align-self: start; font-size: 1.0625rem; max-width: 36em !important; }

@media (max-width: 639px) {
  .step { grid-template-columns: 1fr; min-height: 0; }
  .step__num { grid-row: auto; }
  .facts__list { gap: 18px 14px; }
  .facts__cap { transform: none; margin: 8px 0 0; justify-self: center; text-align: center; white-space: normal; max-width: 9em; }
  .handnote--sit { position: static; margin-top: var(--s2); }
}
@media (prefers-reduced-motion: reduce) {
  .floater svg { animation: none; }
  .step { position: relative; top: auto; }
}

/* hero note sits above the buttons; JS lines the arrow tip up with the call button */
.handnote--hero { transform: none; margin: 0 0 -14px; align-items: flex-start; position: relative; z-index: 2; justify-self: start; width: max-content; max-width: 100%; }
.handnote--hero svg { width: 60px; margin-top: 6px; }
.handnote--hero span { display: inline-block; transform: rotate(-4deg); }

/* =========================================================
   FLOATING OBJECTS THROUGH THE PAGE
   ========================================================= */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.has-deco { position: relative; overflow-x: clip; }
.has-deco > :not(.deco) { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco .floater {
  transform: translate3d(0, calc(var(--sp, 0) * 90px * var(--speed, 1)), 0) rotate(calc(var(--sp, 0) * 16deg * var(--speed, 1)));
  will-change: transform;
}
.deco .floater svg { animation-delay: var(--d, 0s); }
.floater--star { color: var(--sky); filter: none; }
.floater--star.is-gold { color: var(--gold); }
.floater--star svg { animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(45deg); opacity: .6; } }
/* the contact card is a sticky-free block, so let its plane sit above the card edge */
.contact.has-deco { overflow-x: clip; overflow-y: visible; }
.contact .deco { z-index: 2; }
@media (max-width: 899px) {
  .deco .floater { width: calc(var(--w) * .6); }
  .floater--hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .deco .floater { transform: none; }
  .floater--star svg { animation: none; }
}

/* =========================================================
   AVATAR EXTRAS: seasons, thumbs up, easter egg, form buddy
   ========================================================= */
.av-acc, .avatar__thumb { display: none; }
.season-xmas .av-acc--santa,
.season-newyear .av-acc--party,
.season-summer .av-acc--shades { display: inline; }

/* thumbs up replaces the open hand */
.is-thumbs .avatar__hand { display: none; }
.is-thumbs .avatar__thumb { display: inline; }
.is-thumbs .avatar__arm { animation: av-thumb .8s cubic-bezier(.34,1.56,.64,1); }
@keyframes av-thumb { 0% { transform: rotate(18deg) scale(.8); } 100% { transform: rotate(0) scale(1); } }

/* easter egg: backflip + confetti */
.avatar.is-backflip .avatar__svg { animation: av-backflip 1.2s cubic-bezier(.45,0,.3,1); }
@keyframes av-backflip {
  0% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(8px) scale(1.04, .94); }
  60% { transform: translateY(-90px) rotate(-300deg); }
  85% { transform: translateY(0) rotate(-360deg) scale(1.04, .96); }
  100% { transform: translateY(0) rotate(-360deg); }
}
.avatar__confetti {
  position: absolute; top: 40%; left: 50%; width: 10px; height: 14px; border-radius: 3px; opacity: 0;
  animation: av-confetti 1.6s cubic-bezier(.2,.7,.4,1) forwards;
}
@keyframes av-confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* the guide points towards the page while it talks */
.guide.is-talking .avatar__arm { animation: av-point 1.6s ease-in-out; }
@keyframes av-point {
  0%, 100% { transform: rotate(0); }
  25%, 75% { transform: rotate(-38deg); }
  45% { transform: rotate(-30deg); }
  60% { transform: rotate(-40deg); }
}

/* little helper in the contact form */
.form-panel { position: relative; }
.form-buddy { position: absolute; top: -34px; right: 18px; width: 92px; z-index: 3; pointer-events: none; }
.form-buddy svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform .3s var(--ease-out); }
.form-buddy .avatar__ring { display: none; }
.form-buddy.is-watching svg { transform: rotate(-4deg); }
.form-buddy.is-typing .avatar__head { animation: buddy-nod .5s ease-in-out; transform-origin: 50% 90%; transform-box: fill-box; }
@keyframes buddy-nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-5deg) translateY(2px); } }
.form-buddy.is-surprised .mouth--smile { display: none; }
.form-buddy.is-surprised .mouth--o { display: inline; }
.form-buddy.is-surprised .avatar__brows { transform: translateY(-4px); }
.form-buddy.is-happy .mouth--smile { display: none; }
.form-buddy.is-happy .mouth--laugh { display: inline; }
.form-buddy.is-happy svg { animation: av-jump 1s cubic-bezier(.3,.7,.4,1); transform-origin: 50% 100%; }
.form-buddy__bubble {
  position: absolute; right: calc(100% + 4px); top: 18px; width: max-content; max-width: 200px;
  padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--navy); color: #fff; font-size: .8125rem; font-weight: 700;
  opacity: 0; transform: translateX(6px) scale(.9); transform-origin: right bottom; transition: opacity .25s, transform .3s var(--ease-out);
}
.form-buddy.is-talking .form-buddy__bubble { opacity: 1; transform: none; }
.form-panel__title { padding-right: 96px; }
@media (max-width: 559px) {
  .form-buddy { width: 72px; top: -28px; right: 10px; }
  .form-panel__title { padding-right: 70px; }
}

/* =========================================================
   CUSTOM CURSOR, PAGE CURTAIN, BACK TO TOP
   ========================================================= */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type="checkbox"]):not([type="radio"]), .has-cursor textarea { cursor: text !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; opacity: 0;
  transition: opacity .25s; mix-blend-mode: difference;
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.cursor-ring span {
  display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff;
  transition: transform .3s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor-hover .cursor-ring span { transform: scale(1.7); background: rgba(255,255,255,.95); border-color: transparent; }
.cursor-hover .cursor-dot { opacity: 0; }
.cursor-down .cursor-ring span { transform: scale(.8); }
.cursor-hover.cursor-down .cursor-ring span { transform: scale(1.4); }
.cursor-text .cursor-ring, .cursor-text .cursor-dot { opacity: 0 !important; }

.curtain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, #0a5a9c, var(--navy) 55%, var(--navy-900));
  transform: translateY(100%); visibility: hidden;
}
.curtain svg { width: 72px; height: 72px; opacity: 0; transform: scale(.7); transition: opacity .3s .15s, transform .4s .15s var(--ease-out); }
.curtain.is-entering { visibility: visible; transform: none; transition: transform .42s cubic-bezier(.7,0,.3,1); pointer-events: auto; }
.curtain.is-entering svg { opacity: 1; transform: none; }
.curtain.is-covering { visibility: visible; transform: none; transition: none; }
.curtain.is-covering svg { opacity: 1; transform: none; transition: none; }
.curtain.is-leaving { visibility: visible; transform: translateY(-100%); transition: transform .6s cubic-bezier(.7,0,.3,1); }

.to-top {
  position: fixed; left: 24px; bottom: 24px; z-index: var(--z-qr); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--heading); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,42,80,.45);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #fff; transform: translateY(-3px); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-launching svg { animation: house-launch .7s cubic-bezier(.5,0,.3,1); }
@keyframes house-launch { 0% { transform: none; } 30% { transform: translateY(3px) scale(1.1, .9); } 60% { transform: translateY(-40px); opacity: 0; } 61% { transform: translateY(20px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 899px) {
  .to-top { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .to-top--with-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* =========================================================
   REVIEWS (section is hidden until reviews are added)
   ========================================================= */
.reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.review {
  display: grid; gap: 12px; align-content: start; padding: var(--s4); border-radius: var(--radius-lg);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -18px rgba(0,42,80,.35);
}
.review__stars { color: var(--gold); font-size: 1.25rem; letter-spacing: 2px; }
.review blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }
.review__who { color: var(--muted); font-size: .9375rem; }
.review__who strong { color: var(--heading); }

/* performance: let the browser skip rendering far-below sections until they get close */
.faq, .tips, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* =========================================================
   AVATAR: SLEEPY AT NIGHT, DOZES OFF WHEN THE VISITOR IS IDLE
   ========================================================= */
.avatar__zzz { display: none; }
.avatar__zzz text { opacity: 0; animation: zzz 2.6s ease-in-out infinite; transform-box: fill-box; }
.avatar__zzz text:nth-child(2) { animation-delay: .5s; }
.avatar__zzz text:nth-child(3) { animation-delay: 1s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 8px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -16px) scale(1.1); } }

/* night (22:00–5:00): half-closed eyes and a few Zzz */
.time-night .avatar__zzz { display: inline; }
.time-night .avatar__eye { animation: av-blink-sleepy 6s infinite; transform: scaleY(.45); }
@keyframes av-blink-sleepy { 0%, 88%, 100% { transform: scaleY(.45); } 92% { transform: scaleY(.08); } }

/* asleep (no activity for a while) */
.is-asleep .avatar__zzz { display: inline; }
.is-asleep .avatar__eye { animation: none !important; transform: scaleY(.08) !important; }
.is-asleep .avatar__head { transform: rotate(-7deg) translateY(4px); transform-origin: 50% 90%; transform-box: fill-box; transition: transform .8s var(--ease-out); }
.is-asleep .avatar__arm { animation: none !important; transform: rotate(32deg); transition: transform .9s var(--ease-out); }
.is-asleep .avatar__body { animation-duration: 6.5s; }
.is-asleep .avatar__bubble, .is-asleep .guide__bubble { opacity: 0 !important; }

/* woken up: a startled little jump */
.is-startled .mouth--smile { display: none; }
.is-startled .mouth--o { display: inline; }
.is-startled .avatar__brows { transform: translateY(-6px); }
.is-startled svg { animation: av-jump .8s cubic-bezier(.3,.7,.4,1); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .avatar__zzz text { animation: none; opacity: 1; } }

/* =========================================================
   404 PAGE
   ========================================================= */
.page-404 { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding-bottom: var(--s6); }
.nf { width: min(680px, 100% - 32px); text-align: center; display: grid; justify-items: center; gap: var(--s2); }
.nf__avatar { position: relative; width: min(280px, 70vw); }
.nf__avatar .avatar__svg { width: 100%; height: auto; overflow: visible; animation: nf-search 4s ease-in-out infinite; transform-origin: 50% 100%; }
.nf__avatar .avatar__arm { animation: nf-scan 2s ease-in-out infinite; transform-origin: 30% 95%; transform-box: fill-box; }
.nf__avatar .avatar__iris { animation: nf-eyes 4s ease-in-out infinite; }
.nf__q {
  position: absolute; top: -8px; left: 6%; font-family: var(--hand); font-size: 4rem; font-weight: 700; color: var(--blue-strong);
  animation: float 3s ease-in-out infinite;
}
@keyframes nf-search { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes nf-scan { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(14deg); } }
@keyframes nf-eyes { 0%, 100% { transform: translate(-3px, 1px); } 50% { transform: translate(3px, 1px); } }
.nf__code { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(4rem, 14vw, 7rem); line-height: .9; color: var(--blue-strong); margin-top: var(--s2); }
.nf h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; color: var(--heading, var(--navy)); line-height: 1.15; }
.nf h1 span { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--blue-strong); }
.nf .lead { margin-inline: auto; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--s2); }
.nf__links a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 700;
  color: var(--heading, var(--navy)); background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.nf__links a:hover { transform: translateY(-2px); background: #fff; }
.nf__links a.is-primary { background: var(--navy); color: #fff; border-color: var(--heading); }
@media (prefers-reduced-motion: reduce) { .nf__avatar .avatar__svg, .nf__avatar .avatar__arm, .nf__avatar .avatar__iris, .nf__q { animation: none; } }

/* =========================================================
   DIGITAL BUSINESS CARD (vizitka.html)
   ========================================================= */
.page-card { padding-top: calc(var(--header-h) + 100px); }
.vcard {
  width: min(480px, 100% - 32px); margin-inline: auto; padding: 28px 22px 26px; border-radius: 36px; text-align: center;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px -30px rgba(0,42,80,.45); display: grid; gap: 14px;
}
.vcard__avatar { width: 170px; margin: -90px auto 0; }
.vcard__avatar svg { width: 100%; height: auto; overflow: visible; }
.vcard__badge {
  justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: #5b3d06;
  font-weight: 800; font-size: .8125rem; transform: rotate(-3deg); margin-top: -8px;
}
.vcard__name { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--heading, var(--navy)); line-height: 1.1; }
.vcard__role { color: var(--muted); line-height: 1.45; }
.vcard__role strong { color: var(--heading, var(--navy)); }
.vcard__actions { display: grid; gap: 10px; margin-top: 6px; }
.vbtn {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 20px; text-align: left;
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 var(--line);
  transition: transform .15s var(--ease-out), box-shadow .2s;
}
.vbtn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,42,80,.5); }
.vbtn:active { transform: scale(.98); }
.vbtn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--blue-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn span { display: grid; min-width: 0; }
.vbtn strong { font-size: 1.0625rem; color: var(--heading, var(--navy)); }
.vbtn small { font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.vbtn--primary { background: var(--navy); }
.vbtn--primary svg { stroke: var(--sky); }
.vbtn--primary strong, .vbtn--primary small { color: #fff; }
.vcard__block { display: grid; gap: 8px; text-align: left; padding-top: 12px; border-top: 1px solid var(--line); }
.vcard__block h2 { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-strong); }
.vcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vcard__chips span { padding: 5px 11px; border-radius: 999px; background: var(--ice); color: var(--heading); font-size: .8125rem; font-weight: 700; }
.vcard__where { display: grid; gap: 4px; color: var(--muted); }
.vcard__where strong { color: var(--ink); }
.vcard__foot { font-size: .8125rem; color: var(--muted); }
.vcard__foot a { color: var(--blue-strong); }
.page-card + .to-top { display: none; }

/* =========================================================
   "OD SNU K VLASTNÍMU BYDLENÍ" — the house builds itself
   ========================================================= */
.build { position: relative; padding-block: var(--s7); }
.build__stage {
  width: min(1200px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center;
}
.build__text { display: grid; gap: var(--s2); }
.build__text .eyebrow { margin: 0; }
.build__steps { display: grid; gap: 6px; margin-top: var(--s2); }
.build__step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 14px 18px; border-radius: 20px;
  transition: background-color .4s, transform .4s var(--ease-out);
}
.build__step:not(.is-active) h3 { color: var(--muted); }
.build__step:not(.is-active) .build__num { color: var(--muted); }
.build__step.is-active { opacity: 1; background: var(--glass); box-shadow: 0 10px 30px -18px rgba(0,42,80,.35); transform: translateX(6px); }
.build__step.is-done .build__num { color: var(--blue-strong); }
.build__num { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2rem; line-height: 1; color: var(--blue-strong); }
.build__step h3 { font-size: 1.1875rem; font-weight: 800; color: var(--heading, var(--navy)); letter-spacing: -.01em; }
.build__step p { color: var(--muted); font-size: .9375rem; margin-top: 2px; }
.build__visual svg { width: 100%; max-width: 520px; height: auto; display: block; margin-inline: auto; overflow: visible; }

/* parts drop in as their step is reached */
.bp { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .5s var(--ease-out), transform .7s cubic-bezier(.34,1.56,.64,1); }
.js .bp { opacity: 0; transform: translateY(-60px) scale(.9); }
.js .build[data-built="0"] .bp--0,
.js .build[data-built="1"] :is(.bp--0, .bp--1),
.js .build[data-built="2"] :is(.bp--0, .bp--1, .bp--2),
.js .build[data-built="3"] :is(.bp--0, .bp--1, .bp--2, .bp--3),
.js .build[data-built="4"] .bp { opacity: 1; transform: none; }
.bp--3 path:first-child { transform-origin: 50% 100%; }

@media (min-width: 0px) {
  .js .build { height: 460vh; padding: 0; }
  .js .build__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; padding-top: var(--header-h); }
}
@media (max-width: 899px) {
  .build__stage { grid-template-columns: 1fr; gap: var(--s2); }
  .js .build__stage { grid-template-rows: auto 1fr; align-content: center; }
  .js .build__visual { order: -1; }
  .js .build__visual svg { max-width: min(300px, 42vh); }
  .js .build__step:not(.is-active) { display: none; }
  .js .build__step.is-active { transform: none; }
  .build__text .display { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .js .build { height: auto; padding-block: var(--s7); }
  .js .build__stage { position: relative; height: auto; }
  .js .bp { opacity: 1; transform: none; }
  .js .build__step { display: grid !important; opacity: 1; }
}

/* =========================================================
   DARK MODE (follows the visitor's system setting)
   ========================================================= */
/* dark theme: chosen with the header switch, or following the system setting (see the inline script in <head>) */
:root[data-theme="dark"] { color-scheme: dark; --heading: #dceefb; --ink: #e6eef6; --muted: #a9bacb; --line: #27425c; --surface: #10253b; --bg: #081626; --ice: #163652; --blue-strong: #5bc2e7; --glass: rgba(16,37,59,.66); --glass-border: rgba(130,180,220,.16); --shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
[data-theme="dark"] body { background: #081626; }
[data-theme="dark"] body::before { background: radial-gradient(60vw 50vh at 8% 0%, rgba(0,163,224,.18), transparent 70%), radial-gradient(50vw 50vh at 100% 35%, rgba(91,110,200,.16), transparent 70%), radial-gradient(60vw 50vh at 30% 100%, rgba(0,113,171,.18), transparent 70%), #081626; }
/* light "islands" keep their light colours on purpose */
[data-theme="dark"] .device,
[data-theme="dark"] .facts__pill,
[data-theme="dark"] .btn--white,
[data-theme="dark"] .qr-corner,
[data-theme="dark"] .qr-dialog,
[data-theme="dark"] .form-summary,
[data-theme="dark"] .form-status { --heading: #003c71; --ink: #0b1f33; --muted: #4a5b6e; --line: #d9dfe6; --surface: #fff; --ice: #e6f5fc; --blue-strong: #0071ab; }
/* chrome */
[data-theme="dark"] .site-header.is-scrolled,
[data-theme="dark"] .page-header { background: rgba(8,22,38,.82); box-shadow: 0 1px 0 var(--line); }
[data-theme="dark"] .intro { background: rgba(8,22,38,.62); }
[data-theme="dark"] .mobile-bar { background: rgba(16,37,59,.92); }
[data-theme="dark"] .mobile-bar .btn--ghost { background: var(--surface); }
[data-theme="dark"] .to-top:hover,
[data-theme="dark"] .nf__links a:hover { background: var(--surface); }
[data-theme="dark"] .menu { background: #0b1f35; }
/* buttons */
[data-theme="dark"] .btn--primary { background: #0a6fc2; }
[data-theme="dark"] .btn--primary:hover { background: #0a8bd6; }
[data-theme="dark"] .btn--ghost { border-color: var(--heading); }
[data-theme="dark"] .btn--ghost:hover { background: var(--heading); color: #081626; }
[data-theme="dark"] .slide-dots button.is-active::before { background: var(--heading); }
/* surfaces that were hard-coded light */
[data-theme="dark"] .step:nth-child(2) { background: #14324d; }
[data-theme="dark"] .tip--young a { background: var(--glass); }
[data-theme="dark"] .sit__icon,
[data-theme="dark"] .sit:nth-child(even) .sit__icon { background: #0a6fc2; }
[data-theme="dark"] .facts__card { background: linear-gradient(135deg, #0a5aa6, #0b4e8c 45%, #083f73); }
[data-theme="dark"] .why__card,
[data-theme="dark"] .contact__card { box-shadow: 0 0 0 1px rgba(130,180,220,.12); }
[data-theme="dark"] .qa summary::after,
[data-theme="dark"] .ticks li::before { background-color: #cfe8f8; }
[data-theme="dark"] .footer__partner img { background: #fff; padding: 8px 12px; border-radius: 12px; }
/* form fields */
[data-theme="dark"] .field input:not([type=radio]):not([type=checkbox]),
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .gloss-search { background-color: #0b1c2d; border-color: #4a6782; color: var(--ink); }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfe8f8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[data-theme="dark"] .choice { border-color: #4a6782; }
[data-theme="dark"] .choice:has(input:checked) { border-color: var(--heading); }
[data-theme="dark"] .field--dark input:not([type=checkbox]),
[data-theme="dark"] .field--dark select { background-color: rgba(8,22,38,.55); }
/* long-form text */
[data-theme="dark"] .prose p,
[data-theme="dark"] .prose li,
[data-theme="dark"] .gloss-item dd { color: #c8d5e2; }
[data-theme="dark"] .prose strong { color: var(--ink); }
/* avatar bubbles get a hairline so they separate from the dark page */
[data-theme="dark"] .avatar__bubble,
[data-theme="dark"] .guide__bubble,
[data-theme="dark"] .form-buddy__bubble,
[data-theme="dark"] .intro__bubble { box-shadow: 0 0 0 1px rgba(130,180,220,.25), var(--shadow); }

/* =========================================================
   AVATAR HEAD FOLLOWS THE POINTER AND DUCKS WHEN IT GETS CLOSE
   ========================================================= */
.avatar .avatar__head {
  transform-box: fill-box; transform-origin: 50% 90%;
  transform: translate(var(--head-x, 0px), var(--head-y, 0px)) rotate(var(--head-r, 0deg));
  transition: transform .45s var(--ease-out);
}
.avatar.is-ducking .avatar__head { transform: translateY(18px) scale(.93) rotate(calc(var(--head-r, 0deg) * -1)); transition-duration: .18s; }
.avatar.is-ducking .avatar__eye { animation: none; transform: scaleY(.2); }
.avatar.is-ducking .mouth--smile { display: none; }
.avatar.is-ducking .mouth--o { display: inline; }
.avatar.is-ducking .avatar__brows { transform: translateY(5px); }
.avatar.is-ducking .avatar__arm { animation: none; transform: rotate(28deg); transition: transform .2s var(--ease-out); }
.avatar.is-ducking .avatar__hair { animation: av-hair .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .avatar .avatar__head { transform: none; } }
.avatar.is-asleep .avatar__head { transform: rotate(-7deg) translateY(4px); transition-duration: .8s; }

/* =========================================================
   CITY PAGES: the avatar travels with a suitcase
   ========================================================= */
.city-hero { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.city-hero__figure { width: 170px; flex: none; }
.city-hero__figure svg { width: 100%; height: auto; overflow: visible; }
.city-hero__figure.is-travelling svg { animation: walk-bob .55s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.city-hero__figure .avatar__arm { animation: city-wave 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 30% 95%; }
.city-hero__figure .avatar__suitcase { animation: suitcase-swing 1.1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0%; }
@keyframes walk-bob { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes suitcase-swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes city-wave { 0%, 40%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(-14deg); } 16%, 32% { transform: rotate(10deg); } }
.city-hero__side { display: grid; gap: 12px; justify-items: start; }
.city-hero__bubble {
  position: relative; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: var(--navy); color: #fff !important;
  font-weight: 700; font-size: 1rem !important; line-height: 1.4 !important; max-width: 260px; box-shadow: var(--shadow);
}
.city-hero__sign {
  position: relative; padding-left: 10px; font-family: var(--hand); font-weight: 700; font-size: 1.5rem !important; color: #5b3d06 !important;
}
.city-hero__sign span { display: inline-block; padding: 4px 22px 4px 14px; background: var(--gold); clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%); transform: rotate(-3deg); }
.city-hero__sign::before { content: ""; position: absolute; left: 0; top: 4px; bottom: -28px; width: 5px; border-radius: 3px; background: #8A6A4C; }
@media (max-width: 559px) {
  .city-hero { gap: var(--s2); }
  .city-hero__figure { width: 120px; }
  .city-hero__bubble { font-size: .875rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .city-hero__figure svg, .city-hero__figure .avatar__arm, .city-hero__figure .avatar__suitcase { animation: none; }
}

/* =========================================================
   TIP OF THE WEEK
   ========================================================= */
.weekly { padding-top: var(--s6); }
.weekly__card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3);
  padding: clamp(20px, 3vw, 32px); border-radius: 28px; position: relative; overflow: hidden;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -18px rgba(0,42,80,.35);
}
.weekly__card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gold); }
.weekly__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); animation: bulb 3s ease-in-out infinite; }
.weekly__icon svg { width: 30px; height: 30px; fill: none; stroke: #5b3d06; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bulb { 0%, 100% { box-shadow: 0 0 0 0 rgba(244,193,82,.5); } 50% { box-shadow: 0 0 0 12px rgba(244,193,82,0); } }
.weekly__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-strong); }
.weekly__q { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.375rem; letter-spacing: 0; text-transform: none; color: var(--heading); }
.weekly__text { margin-top: 6px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; color: var(--ink); line-height: 1.5; transition: opacity .2s, transform .25s var(--ease-out); }
.weekly__text.is-swapping { opacity: 0; transform: translateY(8px); }
.weekly__next {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--heading); background: transparent; color: var(--heading); font: 700 .875rem var(--font); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.weekly__next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.weekly__next:hover { background: var(--heading); color: var(--bg); }
.weekly__next:hover svg { transform: translateX(3px); }
@media (max-width: 639px) {
  .weekly__card { grid-template-columns: auto 1fr; }
  .weekly__next { grid-column: 1 / -1; justify-self: start; }
  .weekly__icon { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .weekly__icon { animation: none; } }

/* =========================================================
   LIGHT / DARK SWITCH
   ========================================================= */
.theme-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--heading); cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: border-color .2s;
}
.theme-btn:hover { border-color: var(--heading); }
.theme-btn svg {
  position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}
.theme-btn__moon { fill: currentColor !important; stroke: none !important; }
[data-theme="light"] .theme-btn__sun, :root:not([data-theme]) .theme-btn__sun { transform: translateY(24px) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-btn__moon { transform: translateY(-24px) rotate(-90deg); opacity: 0; }
body.menu-open .theme-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
/* smooth colour change when the visitor flips the switch */
.theme-anim, .theme-anim *, .theme-anim *::before { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }
@media (max-width: 420px) { .header-actions { gap: 4px; } .theme-btn, .lang-btn { width: 40px; min-width: 40px; height: 40px; min-height: 40px; } .header-call { width: 40px; } }

/* =========================================================
   PRODUCT PAGES (/sluzby/)
   ========================================================= */
.product-hero { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.product-hero h1 { margin: 0; }
.product-hero__obj { width: 110px; height: auto; flex: none; filter: drop-shadow(0 16px 20px rgba(0,42,80,.2)); animation: float 6s ease-in-out infinite; }
.prose .ticks { list-style: none; padding-left: 0; }
.prose .ticks li { padding-left: 32px; }
.prose .steps-path h3 { margin: 8px 0 4px; font-size: 1.25rem; color: var(--heading); }
.prose .faq__list { margin: var(--s2) 0; }
.prose__meta a { color: var(--blue-strong); font-weight: 600; text-decoration: none; }
.prose__meta a::after { content: " ›"; color: var(--muted); }
.related { margin-top: var(--s4); padding: var(--s2) var(--s3); border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); }
.product-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.product-nav a {
  padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 0 var(--line);
  color: var(--heading) !important; font-weight: 700 !important; font-size: .9375rem; text-decoration: none;
}
.product-nav a:hover { box-shadow: 0 0 0 2px var(--blue); }
.product-nav a[aria-current="page"] { background: var(--navy); color: #fff !important; }
.slide__more { display: inline-block; margin-left: 14px; font-weight: 700; color: var(--blue-strong); text-decoration: none; font-size: .9375rem; }
.slide__more::after { content: " →"; }
.slide__more:hover { text-decoration: underline; }
@media (max-width: 559px) {
  .product-hero { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .product-hero__obj { width: 80px; }
  .slide__more { display: block; margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .product-hero__obj { animation: none; } }

/* =========================================================
   THANK-YOU PAGE
   ========================================================= */
.thanks { text-align: left; }
.thanks__avatar { position: relative; width: 200px; margin: 0 auto var(--s2); }
.thanks__avatar svg { width: 100%; height: auto; overflow: visible; animation: av-jump 1.1s .3s cubic-bezier(.3,.7,.4,1) both; transform-origin: 50% 100%; }
.thanks__avatar .mouth--smile { display: none; }
.thanks__avatar .mouth--laugh { display: inline; }
.thanks__title { text-align: center; }
.thanks > .lead { text-align: center; margin-inline: auto; }
.thanks__back { margin-top: var(--s5); text-align: center; }
.thanks__confetti { position: absolute; inset: 0; pointer-events: none; }
.thanks__confetti i {
  position: absolute; left: 50%; top: 45%; width: 10px; height: 14px; border-radius: 3px; opacity: 0;
  animation: av-confetti 1.8s .5s cubic-bezier(.2,.7,.4,1) forwards;
}
.thanks__confetti i:nth-child(5n+1) { background: #00A3E0; --dx: -120px; --dy: -90px; --rot: 220deg; }
.thanks__confetti i:nth-child(5n+2) { background: #F4C152; --dx: 110px; --dy: -110px; --rot: -260deg; }
.thanks__confetti i:nth-child(5n+3) { background: #F6A3B8; --dx: -150px; --dy: 10px; --rot: 300deg; }
.thanks__confetti i:nth-child(5n+4) { background: #003C71; --dx: 140px; --dy: -20px; --rot: -200deg; }
.thanks__confetti i:nth-child(5n) { background: #5BC2E7; --dx: 20px; --dy: -150px; --rot: 180deg; }
.thanks__confetti i:nth-child(n+6) { --dx: calc(var(--dx, 60px) * .7); animation-delay: .65s; }
@media (prefers-reduced-motion: reduce) { .thanks__avatar svg, .thanks__confetti i { animation: none; } }
.prose .btn--primary { color: #fff; }
