/* ==========================================================================
   Dans Development: S3 "Dlaždice" (tiles), chosen by danek 2026-09-23.
   One look, no theme switcher. Sky / white / navy tiles, each carrying one
   message and one big picture of real work. Glass: the nav only.
   Self-hosted Onest (variable 400-700). The homepage uses this file alone;
   the generated pages (landing pages, /soukromi, 404) add css/s3-page.css.

   EXPERIMENT SWITCH (2026-09-23): the still sky tiles drift slowly.
   To turn it off, set  --sky-drift: none;  in :root below. That is the
   whole revert; the sky layer itself stays (it also fixes the Kontakt tile).
   ========================================================================== */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* hue-tinted neutrals: the ground and the ink both lean toward the navy */
  --bg: #eef1f5;
  --ink: #0b1320;
  --ink-2: #3a4556;
  --muted: #5f6b7d;
  --line: #dde3eb;
  --white: #ffffff;
  --navy: #0b1b30;
  --navy-ink: #e8f1fb;
  --navy-muted: #a9bcd3;
  --blue: #1f66e5;          /* white on it: 5.13:1 */
  --blue-hover: #1a57c8;    /* 6.48:1 */
  --blue-on-navy: #8ec0ff;
  --focus: #1f66e5;

  --radius-tile: 28px;
  --gap: 12px;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 104px; --sp-7: 160px;

  --fs-body: 18px;          /* frozen at every width (02-typography) */
  --fs-small: 15px;
  --fs-lead: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.25rem + 2.7vw, 3.5rem);
  --fs-h1: clamp(2.75rem, 1.15rem + 5.2vw, 5.75rem);
  --fs-display: clamp(3.5rem, 17vw, 11rem);   /* the one moment: „Od 12 900 Kč.", wraps after „Od" on phones */

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --spring: cubic-bezier(0.2, 1.2, 0.32, 1);
  --dur: 260ms;
  --nav-h: 60px;

  --sky-drift: s3-drift;    /* EXPERIMENT: `none` = still skies again (see the header) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body); line-height: 1.55; font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nb { white-space: nowrap; }

/* ---------- skip link ---------- */
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 5000; padding: 12px 18px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- nav: the only glass surface on the page ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(250, 251, 253, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(11, 19, 32, .08);
}
.nav-inner { max-width: 1680px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 28px; }
.logo { font-weight: 600; font-size: 15px; letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.logo-thin { font-weight: 400; color: var(--muted); }
.nav-links { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid #cfd6e0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color var(--dur) ease;
}
.nav-tel:hover { border-color: var(--ink); }
.nav-tel-ic { flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background-color var(--dur) ease, transform var(--dur) var(--ease), box-shadow var(--dur) ease;
}
.btn-primary {
  background: var(--blue); color: #fff;
  /* the one element with real depth: shadow tinted with its own colour (01-mindset 12) */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(31,102,229,.28), 0 6px 16px rgba(31,102,229,.30), 0 18px 38px -14px rgba(31,102,229,.55);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.nav-cta .cta-short { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.burger.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--bg); padding: 28px 24px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s var(--ease); }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu a { font-size: 26px; font-weight: 600; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; font-size: 17px; min-height: 52px; border-bottom: 0; }

/* ---------- tiles ---------- */
main { padding-top: var(--nav-h); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: var(--gap); max-width: 1680px; margin: 0 auto; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-tile);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--sp-5) var(--sp-4) 0; min-height: 640px;
}
.tile--full { grid-column: 1 / -1; }
.tile--text { min-height: 0; padding-bottom: var(--sp-5); }
.tile--white { background: var(--white); }
.tile--navy { background: var(--navy); color: var(--navy-ink); }
.tile--sky { color: #fff; background: #3f7fd4; }
/* The sky picture is its own layer (::after) so it can drift without moving the words. It bleeds
   48px past every edge, so the drift never shows a seam. */
.tile--sky::after { content: ""; position: absolute; z-index: -3; inset: -48px; pointer-events: none;
  background: var(--sky) center / cover no-repeat;
  animation: var(--sky-drift) 48s ease-in-out infinite alternate; }
@keyframes s3-drift {
  from { transform: translate3d(-2%, .6%, 0) scale(1.05); }
  to   { transform: translate3d(2%, -.8%, 0) scale(1.1); }
}
/* each sky starts at a different point of the drift, so they do not move in lockstep */
#cenik.tile--sky::after { animation-delay: -17s; animation-direction: alternate-reverse; }
#kontakt.tile--sky::after { animation-delay: -31s; }
/* s3.js pauses the drift of every sky that is off screen, and the hero's while its live clip
   plays over it (the clip already moves) */
.sky-io .tile--sky:not(.is-inview)::after, .tile--hero.is-live::after { animation-play-state: paused; }
html[data-perf="low"] .tile--sky::after { animation: none; }
/* Kontakt: the quiz changes this tile's height on every step (759-1234px on a laptop, 1106-2383px
   on a phone), and `cover` re-zoomed the whole sky each time (danek: "it changes weirdly when I
   click"). Its sky box is a fixed height per width band, taller than the tallest step, so the
   picture never rescales. max(100%, ...) is only a safety net for content nobody measured. */
.tile--contact::after { bottom: auto; height: calc(max(100%, 1360px) + 96px); }
@media (max-width: 900px) { .tile--contact::after { height: calc(max(100%, 1580px) + 96px); } }
@media (max-width: 420px) { .tile--contact::after { height: calc(max(100%, 2480px) + 96px); } }
/* readability is local: a soft shade only where the words sit (08-09 decision) */
.tile--sky::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 30, 62, .40) 0%, rgba(8, 30, 62, .24) 36%, rgba(8, 30, 62, 0) 62%); }
@media (max-width: 900px) {
  /* narrow tiles stack the words deeper into the cloud bank */
  .tile--sky::before { background: linear-gradient(180deg, rgba(8, 30, 62, .46) 0%, rgba(8, 30, 62, .38) 50%, rgba(8, 30, 62, .12) 78%, rgba(8, 30, 62, 0) 100%); }
}
.tile--sky .tile__title, .tile--sky .tile__lead, .tile--sky .tile__eyebrow { text-shadow: 0 1px 14px rgba(8, 30, 62, .35); }
/* tiles whose words run down into the cloud bank need the shade lower too */
.tile--moment::before { background: linear-gradient(180deg, rgba(8, 30, 62, .16) 0%, rgba(8, 30, 62, .26) 45%, rgba(8, 30, 62, .5) 100%); }
.tile--contact::before { background: linear-gradient(180deg, rgba(8, 30, 62, .38) 0%, rgba(8, 30, 62, .26) 40%, rgba(8, 30, 62, .46) 100%); }
.tile--contact .contact-direct, .tile--contact .offer-why, .tile--contact .offer-stack { text-shadow: 0 1px 12px rgba(8, 30, 62, .45); }
/* The hero clip (assets/s3/hero-loop.mp4, built by tools/make-hero-loop.mjs) is a seamless graded
   loop whose first frame IS sky-b.webp. It stays invisible until it is actually playing, then fades
   in over the drifting still, and fades back out when it pauses: never a cut, in or out. */
.tile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: 0; transition: opacity 1.4s ease; }
.tile--hero.is-live .tile__video { opacity: 1; }
.tile__eyebrow { font-size: var(--fs-small); font-weight: 500; letter-spacing: .01em; opacity: .9; }
.tile__title { font-size: var(--fs-h2); line-height: 1.06; font-weight: 600; letter-spacing: -.028em; margin-top: 6px; text-wrap: balance; }
.tile__lead { font-size: var(--fs-lead); line-height: 1.45; margin-top: 12px; max-width: 34em; opacity: .92; text-wrap: balance; }
.tile__links { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; margin-top: var(--sp-3); font-size: 17px; font-weight: 500; }
.tile__link { color: var(--blue); text-decoration: none; }
.tile__link:hover { text-decoration: underline; text-underline-offset: .22em; }
.tile--sky .tile__link, .tile--navy .tile__link { color: #fff; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.tile--navy .tile__link { color: var(--blue-on-navy); }

/* hero */
.tile--hero { min-height: 760px; padding-top: 88px; }
.hero-title { font-size: var(--fs-h1); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; margin-top: 10px; text-wrap: balance; }
.tile--hero .tile__lead { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }

/* devices: they run off the bottom edge of their tile on purpose */
.device { margin-top: auto; padding-top: var(--sp-5); width: 100%; display: flex; justify-content: center; align-items: flex-end; position: relative; }
.browser { width: min(80%, 1040px); background: #fff; border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: 0 1px 0 rgba(11,19,32,.06), 0 30px 60px -30px rgba(11,19,32,.55); transform-origin: 50% 100%; }
.tile--half .browser { width: 90%; }
.bar3 { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 14px; background: #eef2f7; border-bottom: 1px solid #e3e8ef; }
.bar3 i { width: 10px; height: 10px; border-radius: 50%; background: #c9d2de; }
.bar3 .url { margin-left: 12px; font-size: 12px; color: #6b7482; background: #fff; border-radius: 6px; padding: 2px 10px; }
.shot { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 12%; bottom: 0; width: 13%; min-width: 92px; border: 6px solid var(--navy); border-bottom: 0;
  border-radius: 22px 22px 0 0; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -30px rgba(11,19,32,.6); transform-origin: 50% 100%; }
.phone img { width: 100%; height: auto; }
.phone--solo { position: static; width: min(40%, 260px); }

/* the scroll-driven sequence (04-motion): each device grows as its tile scrolls in.
   Native where supported; js/s3.js drives --grow as a fallback. Reduced motion: none. */
@media (prefers-reduced-motion: no-preference) {
  .device > .browser, .device > .phone {
    transform: translateY(calc((1 - var(--grow, 1)) * 40px)) scale(calc(.9 + var(--grow, 1) * .1));
  }
  @supports (animation-timeline: view()) {
    .device > .browser, .device > .phone {
      transform: none;
      animation: s3-grow linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 42%;
    }
  }
}
@keyframes s3-grow {
  from { transform: translateY(40px) scale(.9); }
  to { transform: none; }
}

/* the one moment of scale */
.tile--moment { min-height: 0; padding: var(--sp-6) var(--sp-4); justify-content: center; }
.moment { font-size: var(--fs-display); line-height: .9; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: proportional-nums; } /* tabular made the „1" of „12 900" as wide as a 0 */
.tile--moment .tile__lead { font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); margin-top: var(--sp-3); }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); grid-column: 1 / -1; }
.price { position: relative; background: var(--white); border-radius: var(--radius-tile); padding: var(--sp-4) 40px; display: flex; flex-direction: column; gap: 8px; text-align: left;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.price--rec { background: var(--navy); color: var(--navy-ink); }
.price__who { font-size: 14px; font-weight: 500; color: var(--muted); }
.price--rec .price__who { color: var(--blue-on-navy); }
.price__what { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.015em; }
.price__amt { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.875rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; margin-top: 10px; font-variant-numeric: proportional-nums; white-space: nowrap; }
.price__amt small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.price--rec .price__amt small { color: var(--navy-muted); }
.price ul { margin-top: 14px; display: grid; gap: 8px; font-size: 16px; color: var(--ink-2); }
.price--rec ul { color: var(--navy-muted); }
.price li { padding-left: 20px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.price--rec li::before { background: var(--blue-on-navy); }
.price__go { margin-top: auto; padding-top: 22px; }
.price__go .tile__link { font-weight: 500; }
.price--rec .price__go .tile__link { color: var(--blue-on-navy); }
/* the whole card is the link (the link's ::after covers it) ... */
.price__go .tile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.price :is(.price__who, .price__amt small, ul), .price li::before, .price__go .tile__link { transition: color .35s var(--ease), background-color .35s var(--ease); }
/* ... and it answers: on hover (real pointers only, so a tap never leaves it stuck) or keyboard
   focus the card turns blue and lifts. White on --blue is 5.13:1. */
@media (hover: hover) {
  .price:hover { background: var(--blue); color: #fff; transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(31,102,229,.2), 0 24px 48px -18px rgba(31,102,229,.6); }
  .price:hover :is(.price__who, .price__amt small, ul), .price:hover .price__go .tile__link { color: #fff; }
  .price:hover li::before { background: #fff; }
  .price:hover .price__go .tile__link { text-decoration: underline; text-underline-offset: .22em; }
}
.price:has(.price__go a:focus-visible) { background: var(--blue); color: #fff; transform: translateY(-6px);
  outline: 3px solid var(--navy); outline-offset: 3px; }
.price:has(.price__go a:focus-visible) :is(.price__who, .price__amt small, ul), .price:has(.price__go a:focus-visible) .price__go .tile__link { color: #fff; }
.price:has(.price__go a:focus-visible) li::before { background: #fff; }
.price__go a:focus-visible { outline-color: #fff; }

/* the dense area: what moves the price, straight from /cenik */
.tile--dense { min-height: 0; padding: var(--sp-5) var(--sp-5); align-items: stretch; text-align: left; }
.dense-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.dense-head .tile__title { margin-top: 0; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.dense-head p { color: var(--ink-2); max-width: 36em; }
.dense-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: var(--sp-4); border-top: 1px solid var(--line); }
.dense-grid > div { padding-top: 20px; }
.dense-grid h3 { font-size: 17px; font-weight: 600; }
.dense-grid p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.dense-foot { margin-top: var(--sp-4); padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: var(--ink-2); }
.dense-foot a { color: var(--blue); }

/* ---------- services / why / about / process / faq ---------- */
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; width: 100%; margin-top: var(--sp-5); text-align: left; }
.cols4 > li { border-top: 1px solid var(--line); padding-top: 20px; }
.tile--navy .cols4 > li { border-top-color: rgba(232, 241, 251, .18); }
.cols4 .n { display: block; font-size: 15px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.tile--navy .cols4 .n { color: var(--blue-on-navy); }
.cols4 h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.015em; margin-top: 8px; line-height: 1.2; }
.cols4 p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.tile--navy .cols4 p { color: var(--navy-muted); }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-5); width: 100%; text-align: left; align-items: start; }
.about .tile__title { margin-top: 0; }
.about-body { display: grid; gap: 14px; color: var(--ink-2); }
.about-body strong { color: var(--ink); font-weight: 600; }
.about-trust { display: grid; gap: 8px; margin-top: 10px; }
.about-trust li { padding-left: 26px; position: relative; color: var(--ink); }
.about-trust li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

.faq { width: 100%; max-width: 860px; margin-top: var(--sp-4); text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; font-size: 24px; line-height: 1; color: var(--blue); transition: transform var(--dur) var(--ease); }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.faq details p a { color: var(--blue); }
/* smooth open/close (2026-09-23): the answer's box animates its height from 0 to auto and the text
   fades and settles in. Browsers without ::details-content / interpolate-size simply open
   instantly, as before; the fade still plays. */
.faq { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip;
  transition: height .42s var(--ease), content-visibility .42s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { opacity: 0; translate: 0 -6px; transition: opacity .32s ease, translate .42s var(--ease); }
.faq details[open] p { opacity: 1; translate: 0 0; transition-delay: .06s; }
.faq summary { transition: color var(--dur) ease; }
.faq summary:hover { color: var(--blue); }
/* „Zobrazit více": s3.js hides .faq-more (hidden="until-found" where supported, so find-in-page
   still reaches it; the global [hidden] rule would turn that into display:none, hence the
   override) and the revealed questions settle in one after another */
.faq-more[hidden="until-found"] { display: block !important; }
.faq-more.is-revealed > details { animation: faq-in .5s var(--ease) backwards; }
.faq-more.is-revealed > details:nth-child(2) { animation-delay: .07s; }
.faq-more.is-revealed > details:nth-child(3) { animation-delay: .14s; }
@keyframes faq-in { from { opacity: 0; transform: translateY(10px); } }
.faq-toggle { margin-top: var(--sp-4); min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid #cfd6e0; background: #fff;
  color: var(--blue); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease, transform var(--dur) var(--ease); }
.faq-toggle:hover { border-color: var(--blue); background: #eef4ff; }
.faq-toggle:active { transform: scale(.97); }

/* ---------- contact (the quiz keeps all its behaviour; only the look is S3) ---------- */
.tile--contact { min-height: 0; padding-bottom: var(--sp-5); }
.contact-inner { width: 100%; display: grid; justify-items: center; }
.offer-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 18px; font-size: 16px; }
.offer-stack li { padding-left: 22px; position: relative; }
.offer-stack li::before { content: "✓"; position: absolute; left: 0; font-weight: 600; }
.vacation-note { margin-top: 18px; background: #fff4d6; color: #3d2b00; border-radius: 14px; padding: 12px 18px; max-width: 40em; text-align: left; }
.mockup-flow { width: 100%; max-width: 680px; margin-top: var(--sp-4); background: #fff; color: var(--ink); border-radius: 22px; padding: 28px; text-align: left;
  box-shadow: 0 30px 70px -36px rgba(8, 30, 62, .55); }
.mf-head { display: flex; align-items: center; gap: 14px; }
.mf-progress { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mf-bar { flex: 1; height: 4px; background: #e6ebf2; border-radius: 99px; overflow: hidden; }
.mf-bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(.25); transition: transform .4s var(--ease); }
.mf-steps { margin-top: 22px; }
.mf-q { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.mf-q:focus { outline: none; }
.mf-q-ic { margin-right: 4px; }
.mf-help { margin-top: 6px; color: var(--muted); font-size: 15px; }
.mf-tiles { display: grid; gap: 8px; margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mf-tiles[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-tile { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 52px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #f7f9fc; color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 500;
  transition: border-color var(--dur) ease, background-color var(--dur) ease; }
.mf-tile:hover { border-color: var(--blue); background: #eef4ff; }
.mf-tile-ic { flex: none; font-size: 18px; }
.mf-form { display: grid; gap: 14px; margin-top: 16px; }
.mf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .mf-row { grid-template-columns: minmax(0, 1fr); } }
.mf-field { display: grid; gap: 6px; }
.mf-field > span { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mf-opt { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.mf-field input, .mf-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #cfd6e0; border-radius: 12px; }
.mf-field textarea { min-height: 96px; resize: vertical; }
.mf-field input::placeholder, .mf-field textarea::placeholder { color: rgba(95, 107, 125, .75); opacity: 1; }
.mf-field input:focus-visible, .mf-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue); }
.mf-field small { font-size: 14px; color: var(--muted); }
.mf-field small.is-warn { color: var(--ink); font-weight: 600; }
.mf-invalid input { border-color: #d64545; }
.mf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.mf-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.mf-consent.mf-invalid { color: #b42323; }
.mf-error { background: #fdecec; color: #8a1c1c; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.mf-submit { width: 100%; min-height: 54px; font-size: 17px; }
.mf-submit.is-busy { opacity: .75; cursor: progress; }
.mf-reversal { text-align: center; font-size: 14px; color: var(--muted); }
.mf-gdpr { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mf-gdpr a, .mf-result a { color: var(--blue); }
.mf-result { text-align: center; }
.mf-result p { margin-top: 10px; color: var(--ink-2); }
.mf-suggest, .mf-fix { font: inherit; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.mf-fix { margin-top: 10px; font-size: 15px; }
.mf-turnstile { margin: 4px 0; }
.mf-devnote { display: block; margin-top: 14px; padding: 8px 10px; text-align: left; font: 12px/1.45 ui-monospace, Consolas, monospace;
  background: #141007; color: #ffcf4a; border: 1px dashed #ffcf4a; border-radius: 0; }
.contact-direct { margin-top: var(--sp-3); font-size: 16px; }
.contact-direct a { color: #fff; text-underline-offset: .22em; }
.offer-why { margin-top: 10px; font-size: 15px; max-width: 42em; opacity: .9; }

/* ---------- footer ---------- */
.footer { max-width: 1680px; margin: 0 auto; padding: var(--sp-4) calc(var(--gap) + 28px) var(--sp-5); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer a { color: var(--ink-2); }
.footer-sitemap nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; }

/* ---------- vacation toast ---------- */
.vac-toast { position: fixed; top: calc(var(--nav-h) + 12px); left: 50%; z-index: 300; display: flex; align-items: flex-start; gap: 10px; width: min(560px, calc(100% - 32px));
  background: #fff4d6; color: #3d2b00; border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.45);
  opacity: 0; transform: translate(-50%, -10px); transition: opacity .4s ease, transform .4s var(--ease); }
.vac-toast.in { opacity: 1; transform: translate(-50%, 0); }
.vac-toast-body { font-size: 15px; }
.vac-toast-close { margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; min-width: 32px; min-height: 32px; }

/* ---------- chat (same dialog tree, S3 look) ---------- */
.chat-root { position: fixed; right: 18px; bottom: 18px; z-index: 320; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-root [hidden] { display: none !important; }
.chat-launcher { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blue); color: #fff; display: grid; place-items: center; position: relative;
  box-shadow: 0 12px 30px -10px rgba(31,102,229,.7); transition: transform .2s var(--ease); }
.chat-launcher.is-open { transform: scale(.94); }
.chat-badge { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #e5484d; border: 2px solid #fff; }
.chat-nudge { position: relative; width: min(300px, calc(100vw - 36px)); display: flex; gap: 12px; align-items: flex-start; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 14px 40px 14px 14px; box-shadow: 0 24px 60px -24px rgba(11,19,32,.45); transform-origin: bottom right;
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s ease, transform .35s var(--ease); }
.chat-nudge.in { opacity: 1; transform: none; }
.chat-nudge.is-handoff { transform: translate(12px, 20px) scale(.82); opacity: 0; transition: transform .24s ease, opacity .24s ease; }
.chat-nudge-avatar, .chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex: none; }
.chat-nudge-body strong { display: block; font-size: 15px; }
.chat-nudge-body p { font-size: 15px; color: var(--ink-2); }
.chat-nudge-close, .chat-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.chat-panel { position: relative; width: min(360px, calc(100vw - 36px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(11,19,32,.55);
  transform-origin: bottom right; opacity: 0; transform: scale(.86) translateY(12px);
  transition: opacity .18s ease, transform .24s cubic-bezier(0.4, 0, 0.7, 0.2); }
.chat-panel.is-open { opacity: 1; transform: none; transition: opacity .22s ease, transform .42s cubic-bezier(0.2, 1.22, 0.32, 1); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 48px 14px 16px; background: var(--navy); color: var(--navy-ink); position: relative; }
.chat-head .chat-close { color: var(--navy-muted); top: 50%; transform: translateY(-50%); }
.chat-head-txt strong { display: block; font-size: 15px; }
.chat-head-txt span { font-size: 13px; color: var(--navy-muted); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-m { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.chat-m-bot { background: #eef2f7; align-self: flex-start; border-bottom-left-radius: 6px; }
.chat-m-me { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.chat-m a { color: inherit; }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6b6; animation: chat-dot 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat-opt { border: 1px solid #cfd6e0; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s var(--spring), opacity .18s ease; }
.chat-opt:hover { border-color: var(--blue); color: var(--blue); }

/* chat motion (2026-09-23): bubbles pop out of their corner, words arrive one by one (js/chat.js
   sets the pace), options pop in one after another, and a tapped option presses in, turns blue
   and becomes your bubble while the others step aside. `backwards` fill (never `both`) so a
   finished pop does not pin the transform and block the :active press. */
@keyframes chat-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes chat-word { from { opacity: 0; filter: blur(3px); } }
.chat-m { animation: chat-pop .38s var(--spring) backwards; }
.chat-m-bot { transform-origin: 0 100%; }
.chat-m-me { transform-origin: 100% 100%; }
.chat-m--instant { animation: none; }
.chat-w { animation: chat-word .26s ease backwards; }
.chat-opt { animation: chat-pop .34s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 70ms); transform-origin: 50% 100%; }
.chat-opts--instant .chat-opt { animation: none; }
.chat-opt:active { transform: scale(.94); }
.chat-opt.is-picked { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.04); }
.chat-opt.is-leaving { opacity: 0; transform: scale(.92); pointer-events: none; }
/* 2026-09-30: „Časté otázky" lists whole questions, one per row, in a scrolling area so a long list
   never squeezes the conversation; „← Zpět" / „Začít znovu" are quieter than the real choices */
.chat-opts--list { flex-direction: column; flex-wrap: nowrap; max-height: min(240px, 38vh); overflow-y: auto; overscroll-behavior: contain; }
.chat-opts--list .chat-opt { border-radius: 14px; text-align: left; line-height: 1.35; }
.chat-opts--list .chat-opt--nav { align-self: flex-start; }
.chat-opt--nav { border-color: transparent; background: transparent; color: var(--muted); padding-left: 10px; padding-right: 10px; }
.chat-opt--nav:hover { border-color: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.chat-opts-break { flex-basis: 100%; height: 0; }
.chat-opts--list .chat-opts-break { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .nav-tel { width: 44px; padding: 0; }
  .nav-tel-num { display: none; }
  .price { padding-left: 32px; padding-right: 32px; }
  .dense-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .dense-grid > div:nth-child(n+3) { margin-top: 20px; }
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --radius-tile: 22px; --gap: 10px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 48px 22px 0; }
  .tile--hero { min-height: 0; padding-top: 56px; }
  .tile--text, .tile--contact { padding-bottom: 48px; }
  .tile--moment { padding: 72px 22px; }
  .tile--dense { padding: 44px 24px; }
  .device { padding-top: 40px; }
  .browser, .tile--half .browser { width: 94%; border-radius: 10px 10px 0 0; }
  .bar3 { height: 22px; padding: 0 10px; gap: 5px; }
  .bar3 i { width: 7px; height: 7px; }
  .bar3 .url { display: none; }
  .phone { right: 4%; width: 22%; min-width: 0; border-width: 4px; border-radius: 16px 16px 0 0; }
  .phone--solo { width: min(56%, 240px); }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .mockup-flow { padding: 20px; }
  .mf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* one card per row on a tablet: the name and price on the left, what is in it on the right */
@media (min-width: 641px) and (max-width: 900px) {
  .price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 36px; align-content: start; }
  .price > * { grid-column: 1; }
  .price ul { grid-column: 2; grid-row: 1 / span 4; margin-top: 4px; }
}
/* The links go into the burger below 1024px, not 821: measured 2026-09-23, the homepage nav overflowed
   its bar by up to 109px between 821 and 945px (the CTA slid off the edge) and the landing-page nav
   (longer labels) by 163px. At 1024 both fit exactly. The long CTA label stays until 820. */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-tel { margin-left: auto; }
  .burger { display: flex; }
}
@media (max-width: 820px) {
  .nav-inner { gap: 10px; padding: 0 12px 0 16px; }
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-short { display: inline; }
}
@media (max-width: 640px) {
  .prices, .dense-grid, .cols4 { grid-template-columns: minmax(0, 1fr); }
  .dense-grid > div + div { margin-top: 18px; }
  .price { padding: 32px 24px; }
}
@media (max-width: 560px) { .logo-thin { display: none; } }
@media (max-width: 420px) { .mf-tiles, .mf-tiles[data-cols="2"] { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .device > .browser, .device > .phone { transform: none !important; }
  .tile--sky::after { animation: none; }
  .price:hover, .price:has(.price__go a:focus-visible) { transform: none; }
}

@media print {
  .nav, .chat-root, .vac-toast, .tile__video, .burger, .mobile-menu { display: none !important; }
  main { padding-top: 0; }
  .tile { break-inside: avoid; min-height: 0; color: #000 !important; background: #fff !important; }
  .tile--sky::before, .tile--sky::after { display: none; }
}
