/* ================================================================
   0. VLASTNÍ FONTY (self-hosted, dřív Google Fonts)
   Proměnné fonty – každá váha níž odkazuje na stejný soubor (prohlížeč si
   z něj vezme správnou váhu), přesně jak to dělá i samotný Google Fonts.
   Dva rozsahy na rodinu: latin (základ) + latin-ext (čárky/háčky: ě š č ř
   ž ď ť ň a další znaky mimo základní latinku – bez nich by čeština padala
   do systémového náhradního fontu).
   ================================================================ */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================================================
   1. DESIGN TOKENY
   ================================================================ */
:root {

  --clr-ivory:      #FAF5ED;
  --clr-sage:       #7A8B76;
  --clr-beige:      #BCA891;
  --clr-greige:     #BCB6B0;
  --clr-brass:      #CDA659;
  --clr-terracotta: #A65E44; /* terakota */
  --clr-blush:      #EAD3D0;
  --clr-charcoal:   #3C3D3B;

  --clr-card:       #FFFFFF;
  --clr-cream:      #FCF8F1;
  --clr-ivory-2:    #F4ECDD;
  --clr-sage-600:   #63745E;
  --clr-sage-800:   #414D3C;
  --clr-sage-900:   #333D2F;
  --clr-sage-950:   #232B20; /* extra tmava zelena pro zapati */
  --clr-terra-deep: #8E4A32;
  --clr-brass-deep: #A9822F;
  --clr-line:       #EBE2D2;

  --clr-primary:    var(--clr-terracotta); /* barva CTA */
  --clr-primary-dk: var(--clr-terra-deep);
  --clr-secondary:  var(--clr-sage);
  --clr-accent:     var(--clr-brass);
  --clr-bg:         var(--clr-cream);
  --clr-text:       var(--clr-charcoal);
  --clr-muted:      #6E6A61;

  --space-1:  0.25rem; --space-2:  0.5rem;  --space-3:  0.75rem;
  --space-4:  1rem;    --space-6:  1.5rem;  --space-8:  2rem;
  --space-12: 3rem;    --space-16: 4rem;    --space-20: 5rem;
  --space-24: 6rem;

  /* --- Typografie --- */
  --font-head:    "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-ui:   "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-base: clamp(0.95rem, 0.85rem + 0.6vw, 1.1rem);
  --lh-body: 1.7;
  --lh-head: 1.2;
  --lh-h1: 1.05;
  --lh-h2: 1.1;

  --fs-h4-min: 1.15rem; --fs-h4-max: 1.4rem;  --fs-h4-slope: calc(1.05rem + 0.5vw);
  --fs-h3-min: 1.35rem; --fs-h3-max: 1.75rem; --fs-h3-slope: calc(1.2rem + 0.8vw);
  --fs-h2-min: 2.1rem;  --fs-h2-max: 3.4rem;  --fs-h2-slope: calc(1.5rem + 2.6vw);
  --fs-h1-min: 2.6rem;  --fs-h1-max: 4.6rem;  --fs-h1-slope: calc(1.5rem + 4vw);

  /* --- Layout --- */
  --container-w: 85%;
  --container-max: 1200px;
  --prose-max: 60ch;

  --radius-sm: 10px;  --radius: 20px;  --radius-lg: 32px;  --radius-full: 999px;

  --shadow-sm: 0 2px 6px rgba(60, 61, 59, .05);
  --shadow:    0 10px 30px rgba(65, 77, 60, .09);
  --shadow-lg: 0 20px 50px rgba(65, 77, 60, .14);

  --transition: 240ms cubic-bezier(.4, 0, .2, 1);
  --header-h: 55px; /* fallback, script.js dopočítá skutečnou výšku hlavičky */

  --ornament: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MCAyNCI+PHBhdGggZD0iTTQgMTMgQyA0IDcgMTIgNyAxMiAxMiBDIDEyIDE2IDcgMTYgOCAxMiBDIDE2IDYgMjQgMTggMzIgMTIgQyA0MCA2IDQ4IDE4IDU2IDEyIEMgNjAgOSA2NiA5IDY2IDEzIEMgNjYgMTcgNjAgMTcgNjAgMTIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxLjciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==");

  --shape-tvar: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgMjQwIj4KICA8cGF0aCBkPSJNIDIyNCwxMjAgQyAyMjQsMTI0LjUgMjIxLjgsMTI5IDIxOS4xLDEzMy4xIEMgMjE2LjUsMTM3LjEgMjEzLjgsMTQwLjggMjEyLjcsMTQ0LjggQyAyMTEuNiwxNDguOSAyMTIuMSwxNTMuNCAyMTIuNCwxNTguMyBDIDIxMi43LDE2My4xIDIxMi4zLDE2OC4xIDIxMC4xLDE3MiBDIDIwNy44LDE3NS45IDIwMy43LDE3OC43IDE5OS4zLDE4MC45IEMgMTk1LDE4My4xIDE5MC44LDE4NC45IDE4Ny45LDE4Ny45IEMgMTg0LjksMTkwLjggMTgzLjEsMTk1IDE4MC45LDE5OS4zIEMgMTc4LjcsMjAzLjcgMTc1LjksMjA3LjggMTcyLDIxMC4xIEMgMTY4LjEsMjEyLjMgMTYzLjEsMjEyLjcgMTU4LjMsMjEyLjQgQyAxNTMuNCwyMTIuMSAxNDguOSwyMTEuNiAxNDQuOCwyMTIuNyBDIDE0MC44LDIxMy44IDEzNy4xLDIxNi41IDEzMy4xLDIxOS4xIEMgMTI5LDIyMS44IDEyNC41LDIyNCAxMjAsMjI0IEMgMTE1LjUsMjI0IDExMSwyMjEuOCAxMDYuOSwyMTkuMSBDIDEwMi45LDIxNi41IDk5LjIsMjEzLjggOTUuMiwyMTIuNyBDIDkxLjEsMjExLjYgODYuNiwyMTIuMSA4MS43LDIxMi40IEMgNzYuOSwyMTIuNyA3MS45LDIxMi4zIDY4LDIxMC4xIEMgNjQuMSwyMDcuOCA2MS4zLDIwMy43IDU5LjEsMTk5LjMgQyA1Ni45LDE5NSA1NS4xLDE5MC44IDUyLjEsMTg3LjkgQyA0OS4yLDE4NC45IDQ1LDE4My4xIDQwLjcsMTgwLjkgQyAzNi4zLDE3OC43IDMyLjIsMTc1LjkgMjkuOSwxNzIgQyAyNy43LDE2OC4xIDI3LjMsMTYzLjEgMjcuNiwxNTguMyBDIDI3LjksMTUzLjQgMjguNCwxNDguOSAyNy4zLDE0NC44IEMgMjYuMiwxNDAuOCAyMy41LDEzNy4xIDIwLjksMTMzLjEgQyAxOC4yLDEyOSAxNiwxMjQuNSAxNiwxMjAgQyAxNiwxMTUuNSAxOC4yLDExMSAyMC45LDEwNi45IEMgMjMuNSwxMDIuOSAyNi4yLDk5LjIgMjcuMyw5NS4yIEMgMjguNCw5MS4xIDI3LjksODYuNiAyNy42LDgxLjcgQyAyNy4zLDc2LjkgMjcuNyw3MS45IDI5LjksNjggQyAzMi4yLDY0LjEgMzYuMyw2MS4zIDQwLjcsNTkuMSBDIDQ1LDU2LjkgNDkuMiw1NS4xIDUyLjEsNTIuMSBDIDU1LjEsNDkuMiA1Ni45LDQ1IDU5LjEsNDAuNyBDIDYxLjMsMzYuMyA2NC4xLDMyLjIgNjgsMjkuOSBDIDcxLjksMjcuNyA3Ni45LDI3LjMgODEuNywyNy42IEMgODYuNiwyNy45IDkxLjEsMjguNCA5NS4yLDI3LjMgQyA5OS4yLDI2LjIgMTAyLjksMjMuNSAxMDYuOSwyMC45IEMgMTExLDE4LjIgMTE1LjUsMTYgMTIwLDE2IEMgMTI0LjUsMTYgMTI5LDE4LjIgMTMzLjEsMjAuOSBDIDEzNy4xLDIzLjUgMTQwLjgsMjYuMiAxNDQuOCwyNy4zIEMgMTQ4LjksMjguNCAxNTMuNCwyNy45IDE1OC4zLDI3LjYgQyAxNjMuMSwyNy4zIDE2OC4xLDI3LjcgMTcyLDI5LjkgQyAxNzUuOSwzMi4yIDE3OC43LDM2LjMgMTgwLjksNDAuNyBDIDE4My4xLDQ1IDE4NC45LDQ5LjIgMTg3LjksNTIuMSBDIDE5MC44LDU1LjEgMTk1LDU2LjkgMTk5LjMsNTkuMSBDIDIwMy43LDYxLjMgMjA3LjgsNjQuMSAyMTAuMSw2OCBDIDIxMi4zLDcxLjkgMjEyLjcsNzYuOSAyMTIuNCw4MS43IEMgMjEyLjEsODYuNiAyMTEuNiw5MS4xIDIxMi43LDk1LjIgQyAyMTMuOCw5OS4yIDIxNi41LDEwMi45IDIxOS4xLDEwNi45IEMgMjIxLjgsMTExIDIyNCwxMTUuNSAyMjQsMTIwIFoiCiAgICAgICAgZmlsbD0iIzAwMDAwMCIvPgo8L3N2Zz4K");

  /* --- Konsolidovano z rozptylenych :root bloku --- */
  --font-pricing-offer: var(--font-head);
  --space-eyebrow-title: var(--space-6);
  --transition-cta-color: 340ms ease;
  --transition-cta-fill: 460ms cubic-bezier(.4, 0, .2, 1);
  --transition-cta-border: 300ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--clr-sage-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: var(--space-2); z-index: 200;
  background: var(--clr-charcoal); color: var(--clr-ivory);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-4); }

/* ================================================================
   3. TYPOGRAFIE
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: var(--lh-head);
  font-weight: 400;
  color: var(--clr-charcoal);
  text-wrap: balance;
}
h1 { font-size: clamp(var(--fs-h1-min), var(--fs-h1-slope), var(--fs-h1-max)); font-weight: 300; letter-spacing: -0.02em; line-height: var(--lh-h1); }
h2 { font-size: clamp(var(--fs-h2-min), var(--fs-h2-slope), var(--fs-h2-max)); font-weight: 300; letter-spacing: -0.015em; line-height: var(--lh-h2); }
h3 { font-size: clamp(var(--fs-h3-min), var(--fs-h3-slope), var(--fs-h3-max)); font-weight: 300; letter-spacing: -0.01em; }
h4 { font-size: clamp(var(--fs-h4-min), var(--fs-h4-slope), var(--fs-h4-max)); font-weight: 300; }
h1, h2, h3, h4, h5, h6, p, li, a { overflow-wrap: break-word; }
p { max-width: var(--prose-max); }
strong { font-weight: 600; color: inherit; }

.u-accent { color: var(--clr-terracotta); }
/* Text jen pro odečítače obrazovky (vizuálně skrytý, ale čitelný asistivní technologií). */
.u-sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ================================================================
   4. LAYOUT
   ================================================================ */
.container { width: var(--container-w); max-width: var(--container-max); margin-inline: auto; }

.section { padding-block: var(--space-24); }
@media (max-width: 700px) {
  .section, .cta { padding-block: var(--space-12); }
}
.section--alt  { background: var(--clr-ivory-2); }

.section--sage {
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--clr-sage) 55%, var(--clr-sage-800)) 0%, transparent 60%),
    linear-gradient(160deg, var(--clr-sage-800), var(--clr-sage-900));
  color: color-mix(in srgb, var(--clr-ivory) 92%, transparent);
}
.section--sage h2, .section--sage h3 { color: var(--clr-ivory); }

.section__head { max-width: 34rem; margin-bottom: var(--space-16); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-ui);
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 600; line-height: 1;
  color: var(--clr-brass-deep);
  background: color-mix(in srgb, var(--clr-brass) 14%, var(--clr-cream));
  border: 1px solid color-mix(in srgb, var(--clr-brass) 38%, transparent);

  padding: calc(var(--space-2) + 1px) var(--space-4) calc(var(--space-2) - 1px);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section__eyebrow::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
  background-color: var(--clr-brass);
  -webkit-mask: var(--shape-tvar) center / contain no-repeat;
          mask: var(--shape-tvar) center / contain no-repeat;
}

.section--sage .section__eyebrow {
  color: var(--clr-ivory);
  background: color-mix(in srgb, #fff 12%, transparent);
  border-color: color-mix(in srgb, #fff 22%, transparent);
}
.section--sage .section__eyebrow::before { background-color: var(--clr-brass); }

.cta__eyebrow {
  color: var(--clr-ivory);
  background: color-mix(in srgb, #fff 14%, transparent);
  border-color: color-mix(in srgb, #fff 24%, transparent);
}

.section__title {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 300;
  margin-bottom: var(--space-6);
}
.section__title::after {
  content: ""; display: block;
  width: 72px; height: 3px; border-radius: var(--radius-full);
  background: var(--clr-brass);
  margin-top: var(--space-6);
}
.section__head--center .section__title::after { margin-inline: auto; }
.section--sage .section__title::after { background: color-mix(in srgb, var(--clr-brass) 85%, #fff); }
.section__intro { color: var(--clr-muted); font-size: clamp(0.95rem, 0.85rem + 0.6vw, 1.1rem); max-width: 42ch; }
.section--sage .section__intro { color: color-mix(in srgb, var(--clr-ivory) 80%, transparent); }
.section__head--center .section__intro { margin-inline: auto; }

:where(section[id]) { scroll-margin-top: 92px; }

/* ================================================================
   5. KOMPONENTY
   ================================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui); font-weight: 600; font-size: clamp(0.85rem, 0.78rem + 0.4vw, 1rem);
  border: 2px solid transparent; border-radius: var(--radius-full);
  transition: color 340ms ease, box-shadow 460ms cubic-bezier(.4, 0, .2, 1),
              border-color 300ms ease, background-color var(--transition), transform 150ms ease;
}

.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--clr-brass); color: var(--clr-charcoal);
  box-shadow: var(--shadow-sm), inset 0 0 0 0 var(--clr-primary);
}
.btn--primary:hover {
  color: var(--clr-ivory); border-color: var(--clr-primary);
  box-shadow: var(--shadow), inset 0 -4em 0 0 var(--clr-primary);
}

.btn--ghost {
  background: transparent; color: var(--clr-charcoal); border-color: var(--clr-line);
  box-shadow: inset 0 0 0 0 var(--clr-primary);
}
.btn--ghost:hover {
  color: var(--clr-ivory); border-color: var(--clr-primary);
  box-shadow: inset 0 -4em 0 0 var(--clr-primary);
}

.btn--block { display: flex; width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--clr-ivory-2);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--clr-ivory-2) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--clr-line);
}

.nav { position: relative; display: grid; grid-template-columns: 1fr 108px 1fr; align-items: center; gap: var(--space-4); padding-block: var(--space-3); }
.nav__list { display: none; gap: var(--space-6); align-items: center; }
.nav__list--left { grid-column: 1; justify-content: flex-end; }
.nav__list--right { grid-column: 3; justify-content: flex-start; }

.nav__link {
  position: relative; font-family: var(--font-ui); font-weight: 500;
  color: var(--clr-charcoal); padding: var(--space-2) 0; transition: color var(--transition);
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 50px; height: 15px;
  transform: translateX(-50%);
  background-color: var(--clr-primary);
  -webkit-mask: var(--ornament) center / contain no-repeat;
          mask: var(--ornament) center / contain no-repeat;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 160ms ease, clip-path 620ms ease;
}
.nav__link:hover { color: var(--clr-primary); }
.nav__link:hover::after, .nav__link.is-active::after {
  opacity: 1; clip-path: inset(0 0 0 0);
}

.nav__logo {
  position: absolute; z-index: 3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 108px; height: 48px;
}
.nav__logo img {
  position: absolute; left: 50%; top: -4px;
  transform: translateX(-50%);
  width: 108px; height: 108px;
  transition: transform var(--transition), width var(--transition), height var(--transition), top var(--transition);
}

/* Zmenšené logo po odscrollování – také celočíselně (dřívější 60px × scale 1.04 = 62,4px). */
.site-header.is-scrolled .nav__logo img { width: 62px; height: 62px; top: -7px; left: -1px; }

.nav__toggle {
  grid-column: 3; justify-self: end; display: inline-flex; flex-direction: column;
  justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: none;
}
.nav__toggle-bar { height: 2px; width: 100%; background: var(--clr-charcoal); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
  border-top: 1px solid var(--clr-line); background: var(--clr-cream);
  box-shadow: 0 16px 24px -12px color-mix(in srgb, var(--clr-charcoal) 18%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition);
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity var(--transition), transform var(--transition);
}
.mobile-menu__list {
  display: flex; flex-direction: column; gap: var(--space-1);
  width: var(--container-w); max-width: var(--container-max); margin-inline: auto; padding-block: var(--space-4);
}
.mobile-menu__list a { display: block; font-family: var(--font-ui); font-weight: 500; padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm); }
.mobile-menu__list a:hover { background: var(--clr-ivory-2); }

.card {
  background: var(--clr-card);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero {
  position: relative; overflow: hidden;
  /* Symetricky – hero má pevnou výšku a obsah je centrovaný přes align-items,
     takže nesymetrický padding (dřív 80px/96px) obsah viditelně posouval nahoru. */
  padding-block: var(--space-20);
  background:
    radial-gradient(70% 80% at 88% 6%, color-mix(in srgb, var(--clr-brass) 24%, transparent) 0%, transparent 55%),
    radial-gradient(85% 90% at 100% 100%, color-mix(in srgb, var(--clr-sage) 55%, transparent) 0%, transparent 55%),
    linear-gradient(158deg, var(--clr-sage-800), var(--clr-sage-900));
  color: color-mix(in srgb, var(--clr-ivory) 90%, transparent);
  /* Force the gradient onto a single GPU-composited layer — on very large (4K+) elements,
     Chromium/Edge can rasterize big gradients in tiles and leave a visible seam at the tile edge. */
  transform: translateZ(0);
}
@media (max-width: 700px) {
  .hero { padding-block: var(--space-12); }
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--space-16); align-items: center; }
.hero__content, .hero__media { min-width: 0; }
@media (max-width: 700px) {
  .hero__inner { gap: var(--space-4); }
  .hero__media { display: none; }
}
/* Tablet na výšku: velká ilustrace, polovina přesahuje mimo viewport jako na desktopu. */
@media (min-width: 701px) and (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { max-width: 60%; position: relative; z-index: 1; }
  .hero__title { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.2rem); }
}
/* Small tablet portrait only: the title corridor needs a bit more room to avoid one-word lines. */
@media (min-width: 701px) and (max-width: 800px) {
  .hero__content { max-width: 74%; }
}

.hero__title { color: var(--clr-ivory); margin-bottom: var(--space-6); }
.hero__title .u-accent { color: var(--clr-brass); }
.hero__lead { font-size: clamp(1rem, 0.85rem + 0.8vw, 1.2rem); color: color-mix(in srgb, var(--clr-ivory) 82%, transparent); margin-bottom: var(--space-8); max-width: 46ch; }
@media (min-width: 701px) and (max-width: 899px) {
  .hero__lead { max-width: 51vw; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
@media (max-width: 700px) {
  .hero__title { font-size: clamp(2.1rem, 1.5rem + 4vw, 2.6rem); }
  .btn { padding: var(--space-2) var(--space-4); }
}

.hero .btn--ghost { color: var(--clr-ivory); border-color: color-mix(in srgb, #fff 35%, transparent); }
.hero .btn--ghost:hover {
  color: var(--clr-ivory); border-color: var(--clr-primary);
  box-shadow: inset 0 -4em 0 0 var(--clr-primary);
}

.hero__media { position: relative; aspect-ratio: 1; }
@media (min-width: 701px) and (max-width: 899px) {
  .hero__media {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 0;
    width: 95vw;
    max-width: 980px;
    transform: translate(50%, -50%);
  }
}
.hero__illu {
  position: absolute; z-index: 1; inset: 0; margin: auto;
  width: 66%; height: auto;

  filter: invert(38%) sepia(50%) saturate(560%) hue-rotate(337deg) brightness(92%) contrast(90%)
          drop-shadow(.7px .7px 0 rgba(250, 245, 237, .78));
}

.coverflow__card .pillar__title {
  margin: 0 calc(-1 * var(--space-6));
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(150deg, var(--clr-sage), var(--clr-sage-800));
  color: var(--clr-ivory);
}

.coverflow__illu {
  display: block; width: 132px; height: 132px;
  margin: 0 auto var(--space-6);
}
.coverflow__illu img {
  width: 100%; height: 100%; object-fit: contain;
  filter: invert(38%) sepia(50%) saturate(560%) hue-rotate(337deg) brightness(92%) contrast(100%)
          drop-shadow(.28px 0 0 var(--clr-terracotta)) drop-shadow(-.28px 0 0 var(--clr-terracotta))
          drop-shadow(0 .28px 0 var(--clr-terracotta)) drop-shadow(0 -.28px 0 var(--clr-terracotta));
}

.coverflow {
  --cf-card-w: 300px;
  --cf-gap: 250px;
  --cf-depth: 170px;
  --cf-angle: 40deg;
  --cf-far-gap: 85px;
  --cf-far-depth: 260px;
  --cf-far-angle: 52deg;
  --cf-max: 2;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  user-select: none;
}
.coverflow__stage {
  position: relative; grid-column: 2;
  height: 540px;
  perspective: 1500px;
  touch-action: pan-y;
}
.coverflow__card {
  position: absolute; top: 50%; left: 50%;
  width: var(--cf-card-w); min-height: 440px;
  padding: var(--space-8) var(--space-6);
  border: 0;
  display: flex; flex-direction: column; text-align: center;
  transform: translate(-50%, -50%);
  transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .4s ease, box-shadow .4s ease;
  cursor: pointer;
  backface-visibility: hidden;
}
.coverflow__card p {
  display: grid;
  flex: 0 0 10rem;
  place-content: center;
  max-width: none;
  margin: 0;
  color: var(--clr-muted);
}
.coverflow__card.is-active { cursor: default; box-shadow: var(--shadow-lg); }
.coverflow__card.is-active:hover {
  cursor: grab;
  box-shadow: 0 20px 50px rgba(65, 77, 60, .34), 0 6px 16px rgba(65, 77, 60, .12);
}
.coverflow__card.is-active:active { cursor: grabbing; }

.coverflow:not(.is-ready) .coverflow__stage {
  height: auto; display: flex; gap: var(--space-6);
  overflow-x: auto; padding-bottom: var(--space-4); perspective: none;
}
.coverflow:not(.is-ready) .coverflow__card { position: static; transform: none; flex: 0 0 280px; }
.coverflow:not(.is-ready) .coverflow__nav,
.coverflow:not(.is-ready) .coverflow__dots { display: none; }

.coverflow__nav {
  width: 48px; height: 48px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--clr-terracotta); color: var(--clr-ivory);
  border: 1px solid var(--clr-terracotta); box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
  z-index: 5;
}
.coverflow__nav--prev { grid-column: 1; }
.coverflow__nav--next { grid-column: 3; }
.coverflow__nav:hover { background: var(--clr-terracotta); color: var(--clr-ivory); border-color: var(--clr-terracotta); }
@media (prefers-reduced-motion: no-preference) {
  .coverflow__nav--prev:hover i { animation: coverflow-chevron-prev .32s ease-in-out infinite alternate; }
  .coverflow__nav--next:hover i { animation: coverflow-chevron-next .32s ease-in-out infinite alternate; }
}
@keyframes coverflow-chevron-prev { to { transform: translateX(-4px); } }
@keyframes coverflow-chevron-next { to { transform: translateX(4px); } }
.coverflow__nav:active { transform: scale(.94); }

@media (min-width: 701px) {
  .coverflow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .coverflow__nav--prev, .coverflow__nav--next { grid-column: auto; }
  .coverflow__nav--prev { left: max(0px, calc(50% - 27rem)); }
  .coverflow__nav--next { right: max(0px, calc(50% - 27rem)); }
  .coverflow__nav:active { transform: translateY(-50%) scale(.94); }
}

.coverflow__dots { grid-column: 2; grid-row: 2; display: flex; justify-content: center; gap: var(--space-2); margin-top: 0; }
.coverflow__dot {
  width: 9px; height: 9px; border-radius: var(--radius-full);
  background: var(--clr-line); border: none; padding: 0; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.coverflow__dot.is-active { background: var(--clr-terracotta); transform: scale(1.3); }

@media (max-width: 700px) {
  .coverflow { --cf-card-w: min(76vw, 300px); --cf-gap: 60px; --cf-depth: 130px; --cf-angle: 46deg; --cf-max: 1; }
  .coverflow__stage { height: 450px; }
  .coverflow__card { min-height: 420px; }
  .coverflow__illu { width: 108px; height: 108px; }
  .coverflow__nav { width: 42px; height: 42px; }
}
@media (min-width: 701px) and (max-width: 899px) {
  .coverflow__stage { height: 500px; }
}

/* ---------- 5.6 Checklist ---------- */
.checklist { display: grid; gap: var(--space-3); }
.checklist li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: clamp(0.92rem, 0.85rem + 0.4vw, 1.02rem); }
.checklist i {
  color: var(--clr-ivory); background: var(--clr-sage);
  width: 24px; height: 24px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; flex-shrink: 0; margin-top: 4px;
}
.checklist--compact li { font-size: clamp(0.88rem, 0.8rem + 0.4vw, 0.96rem); }
.checklist--compact i { width: 20px; height: 20px; font-size: .58rem; }

.spoluprace { display: grid; gap: var(--space-12); align-items: start; }
.spoluprace .section__eyebrow { margin-bottom: var(--space-4); }

.orbit { margin-top: var(--space-4); }

.orbit__ring {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
  max-width: 460px; margin-inline: auto;
}
.orbit__item {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--clr-ivory);
  background: color-mix(in srgb, var(--clr-ivory) 8%, transparent);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  transform: scale(1);
  transition: transform 320ms ease, background 320ms ease, border-color 320ms ease;
}
@media (max-width: 739px) {
  .orbit__item.is-active {
    transform: scale(1.06);
    background: color-mix(in srgb, var(--clr-ivory) 14%, transparent);
    border-color: color-mix(in srgb, var(--clr-brass) 60%, transparent);
  }
}
.orbit__item i {
  color: var(--clr-sage-900); background: var(--clr-brass);
  width: 22px; height: 22px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .62rem; flex-shrink: 0;
}

@keyframes orbit-spin { from { offset-distance: 0%; } to { offset-distance: 100%; } }

@media (min-width: 1000px) {
  .spoluprace {
    grid-template-columns: 0.82fr 1.18fr;
    gap: var(--space-16);
    align-items: center;
  }
}

/* Orbita je vidět, ale ještě není vedle úvodu (jednosloupcově) – úvod na střed. */
@media (min-width: 740px) and (max-width: 999px) {
  .spoluprace__intro { text-align: center; }
  #co-ziskate .spoluprace__intro .section__eyebrow { margin-inline: auto; }
  #co-ziskate .spoluprace__intro .section__title::after { margin-inline: auto; }
  #co-ziskate .spoluprace__intro .section__intro { margin-inline: auto; }
  .spoluprace__actions { justify-content: center; }
  #co-ziskate .spoluprace { gap: var(--space-24); }
  #co-ziskate .orbit { margin-top: 0; }
}

/* Rotující orbita: od tabletu výš, ať ji tablety nedostávají jako statický seznam. */
@media (min-width: 740px) {
  .orbit {
    position: relative; width: min(100%, 450px); aspect-ratio: 1;
    margin: 0 auto;
  }

  .orbit::before {
    content: ""; position: absolute; inset: 5%;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, #fff 16%, transparent);
  }

  .orbit__ring { position: absolute; inset: 0; display: block; max-width: none; margin: 0; }

  .orbit__item {
    position: absolute; top: 0; left: 0;
    width: max-content; max-width: 138px;
    gap: .45em; padding: .5em .8em;
    border-radius: var(--radius-full);
    font-size: .8rem; line-height: 1.2;
    backdrop-filter: blur(2px);
    offset-path: circle(46% at 50% 50%);
    offset-rotate: 0deg;
    /* Pozastaveno, dokud sekce nevjede do viewportu (viz .orbit.is-visible níž) –
       ať běh animace nezatěžuje hlavní vlákno hned od načtení stránky, když orbitu
       nikdo nevidí. Paused animace se v prohlížeči nepočítá po snímcích. */
    animation: orbit-spin 52s linear infinite paused;
  }
  .orbit__item:nth-child(1) { animation-delay:   0s; }
  .orbit__item:nth-child(2) { animation-delay:  -6.5s; }
  .orbit__item:nth-child(3) { animation-delay: -13s; }
  .orbit__item:nth-child(4) { animation-delay: -19.5s; }
  .orbit__item:nth-child(5) { animation-delay: -26s; }
  .orbit__item:nth-child(6) { animation-delay: -32.5s; }
  .orbit__item:nth-child(7) { animation-delay: -39s; }
  .orbit__item:nth-child(8) { animation-delay: -45.5s; }
  /* Spustí rotaci až ve chvíli, kdy sekce vjede do viewportu (třídu is-visible
     přidává stejný IntersectionObserver, co odhaluje ostatní .reveal prvky). */
  .orbit.is-visible .orbit__item { animation-play-state: running; }
  .orbit:hover .orbit__item { animation-play-state: paused; }
}

.note {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-12); padding: var(--space-6) var(--space-8);
  background: color-mix(in srgb, var(--clr-terracotta) 12%, var(--clr-cream));
  border: 1px solid color-mix(in srgb, var(--clr-terracotta) 30%, transparent);
  border-left: 4px solid var(--clr-terracotta); border-radius: var(--radius);
}
.note i { font-size: 1.6rem; color: var(--clr-terra-deep); flex-shrink: 0; }
.note p { max-width: none; margin: 0; }

.pricing { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: var(--space-12) var(--space-8); }
.price-card--featured {
  background:
    radial-gradient(60% 65% at 96% 4%, color-mix(in srgb, var(--clr-brass) 26%, transparent) 0%, transparent 65%),
    radial-gradient(75% 90% at 100% 100%, color-mix(in srgb, var(--clr-sage) 55%, var(--clr-sage-600)) 0%, transparent 70%),
    linear-gradient(150deg, var(--clr-sage-800), var(--clr-sage-600));
  border: none; color: color-mix(in srgb, var(--clr-ivory) 90%, transparent);
  box-shadow: var(--shadow-lg);
}
.price-card--featured .price-card__name,
.price-card--featured .price-card__now,
.price-card--featured .price-card__period,
.price-card--featured .price-card__desc { color: var(--clr-ivory); }
.price-card--featured .price-card__old { color: color-mix(in srgb, var(--clr-ivory) 70%, transparent); }

.price-card--featured .checklist li { color: var(--clr-ivory); }

.price-card__badge {
  position: absolute; top: calc(-1 * var(--space-3)); right: var(--space-8);
  background: var(--clr-terracotta); color: var(--clr-ivory);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700;
  padding: var(--space-1) var(--space-4); border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.price-card__name { margin-bottom: var(--space-4); }
.price-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.price-card__old { color: var(--clr-muted); font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.05rem); }
.price-card__now { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 2rem + 1.5vw, 3rem); color: var(--clr-terra-deep); line-height: 1; }
.price-card__period { color: var(--clr-muted); }
.price-card__desc { color: var(--clr-muted); margin-bottom: var(--space-6); }
.price-card .checklist { margin-bottom: var(--space-8); }
.price-card .btn { margin-top: auto; }

.about { display: grid; gap: var(--space-16); align-items: center; }
@media (max-width: 899px) {
  .about { gap: var(--space-6); }
  .about__media { order: 2; width: 100%; }
  .about__text { order: 1; }
  #kdo-jsem { padding-bottom: var(--space-12); }
}
.about__media { position: relative; display: flex; justify-content: center; }
.about__media::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: min(340px, 78%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--clr-sage) 24%, transparent), transparent 70%);
}
.about__media img {
  position: relative; width: min(440px, 96%); margin-inline: auto; border-radius: var(--radius-full);
  filter: drop-shadow(0 18px 34px rgba(65, 77, 60, .18));
}
.about__text p { color: var(--clr-muted); margin-bottom: var(--space-4); }
.about__text p:first-of-type { color: var(--clr-charcoal); font-size: clamp(1rem, 0.9rem + 0.6vw, 1.15rem); }
.about__text .btn { margin-top: var(--space-4); }

/* ---------- 5.10 CTA / Kontakt ---------- */
.cta {
  padding-block: var(--space-24);
  background:
    radial-gradient(80% 130% at 100% 0%, color-mix(in srgb, var(--clr-brass) 38%, transparent), transparent 62%),
    linear-gradient(160deg, var(--clr-terra-deep), color-mix(in srgb, var(--clr-terra-deep) 80%, #000));
  color: var(--clr-ivory); scroll-margin-top: 92px;
}
.cta__inner { text-align: center; max-width: 720px; }

.cta .btn--primary:hover {
  color: var(--clr-ivory); border-color: var(--clr-sage-900);
  box-shadow: var(--shadow), inset 0 -4em 0 0 var(--clr-sage-900);
}
.cta__title { color: var(--clr-ivory); margin-bottom: var(--space-4); }
.cta__lead { color: color-mix(in srgb, var(--clr-ivory) 84%, transparent); font-size: clamp(1rem, 0.9rem + 0.6vw, 1.15rem); margin-inline: auto; margin-bottom: var(--space-8); }

.footer { background: var(--clr-sage-950); color: color-mix(in srgb, var(--clr-ivory) 78%, transparent); padding-top: var(--space-20); }
@media (max-width: 700px) {
  .footer { padding-top: var(--space-8); }
  .footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer__inner { text-align: center; justify-items: center; }
  .footer__contact ul { justify-items: center; }
}
.footer__inner { display: grid; grid-template-columns: 1fr; gap: var(--space-8); padding-bottom: var(--space-16); }
.footer__brand img { width: 60px; height: 60px; border-radius: var(--radius-full); margin-bottom: var(--space-4); }
.footer__brand-logo { display: inline-block; }
.footer__brand-logo.reveal { transform: translateX(-90px) rotate(-320deg); }
.footer__brand-logo.reveal.is-visible { transform: none; }
.footer__tagline { color: color-mix(in srgb, var(--clr-ivory) 70%, transparent); font-size: clamp(0.87rem, 0.8rem + 0.4vw, 0.95rem); }
.footer__heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clr-brass); margin-bottom: var(--space-4); }
.footer__contact ul { display: grid; gap: var(--space-2); }
.footer__contact a { color: color-mix(in srgb, var(--clr-ivory) 72%, transparent); font-size: clamp(0.87rem, 0.8rem + 0.4vw, 0.95rem); display: inline-flex; align-items: center; gap: var(--space-2); transition: color var(--transition); }
.footer__contact a:hover { color: var(--clr-terracotta); }
.footer__legal p { color: color-mix(in srgb, var(--clr-ivory) 62%, transparent); font-size: clamp(0.85rem, 0.78rem + 0.35vw, 0.92rem); line-height: 1.9; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
  padding-block: var(--space-6); border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.85rem); color: color-mix(in srgb, var(--clr-ivory) 60%, transparent);
}
.footer__bottom p { max-width: none; }
.footer__bottom i { color: var(--clr-terracotta); }

/* ================================================================
   6. ANIMACE (reveal on scroll)
   ================================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 640ms ease, transform 640ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }

@media (min-width: 600px) {

  .pricing { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
/* Tablet footer: drop the logo/claim block so contact + billing info sit as a clean 2-column row. */
@media (min-width: 600px) and (max-width: 899px) {
  .footer__brand { display: none; }
}

@media (min-width: 900px) {
  .nav__list { display: flex; }
  .nav__toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero { height: calc(100vh - var(--header-h)); display: grid; align-items: center; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-20); }
  .hero__title { font-size: clamp(2.8rem, calc(1.55rem + 3.5vw), 4.1rem); }

  .hero__media {
    position: absolute; z-index: 0; margin: 0;
    top: 57%; left: 79.4%; right: auto;
    width: min(50vw, 720px);
    transform: translate(-50%, -50%);
  }
  .hero__illu {
    inset: auto; margin: 0;
    left: 50%; top: 47%;
    transform: translate(-50%, -50%);
    width: 76%;
  }
  .about { grid-template-columns: 0.85fr 1.15fr; }

}

@media (min-width: 1600px) {
  :root { --container-max: 1360px; }
  body { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }

  .orbit__item { animation: none !important; }
  .orbit__item:nth-child(1) { offset-distance: 0%; }
  .orbit__item:nth-child(2) { offset-distance: 12.5%; }
  .orbit__item:nth-child(3) { offset-distance: 25%; }
  .orbit__item:nth-child(4) { offset-distance: 37.5%; }
  .orbit__item:nth-child(5) { offset-distance: 50%; }
  .orbit__item:nth-child(6) { offset-distance: 62.5%; }
  .orbit__item:nth-child(7) { offset-distance: 75%; }
  .orbit__item:nth-child(8) { offset-distance: 87.5%; }
}

.section--reasons .section__head { margin-bottom: var(--space-6); }

.section--reasons {
  position: relative;
  overflow: hidden;
}
.section--reasons::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("obrazky/obrys-vlnovka.svg");
  background-repeat: repeat;
  background-size: 82px 82px;
  opacity: .18;
  pointer-events: none;
}
/* Optional scattered fills above the repeated outline pattern. */
.section--reasons::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg");
  background-repeat: no-repeat;
  background-position:
    82px 164px, 410px 492px, 820px 738px, 1230px 328px,
    1640px 574px, 246px 984px, 656px 1148px, 1066px 902px,
    1476px 1066px, 1804px 820px, 1148px 164px, 984px 1312px;
  background-size: 82px 82px;
  opacity: .18;
  pointer-events: none;
}.section--reasons .container { position: relative; z-index: 1; }

/* Střed postupu: statický odznak místo rotujícího obrysu. */
.orbit__center-illu {
  display: none;
}
@media (min-width: 740px) {
  .orbit__center-illu {
    display: block;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 12rem;
    transform: translate(-50%, -50%);
    animation: none !important;
    pointer-events: none;
  }
}
.orbit__center-illu img {
  display: block;
  width: 100%;
  height: auto;
  animation: none !important;
}.orbit__center-illu img {
  filter: invert(38%) sepia(50%) saturate(560%) hue-rotate(337deg) brightness(92%) contrast(90%)
          drop-shadow(.7px .7px 0 rgba(250, 245, 237, .78));
}
/* Interactive consultation timeline */

.timeline__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  max-width: 62rem;
  min-height: 20rem;
  margin: clamp(1.5rem, 3vw, 2.75rem) auto 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--clr-card);
  box-shadow: var(--shadow);
}

.timeline__panel {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
}

.timeline__panel[hidden] {
  display: none;
}

.timeline__panel.is-active {
  animation: timeline-panel-in .32s ease both;
}

.timeline__panel h3 {
  margin-bottom: var(--space-4);
  color: var(--clr-sage-800);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.04;
}

.timeline__panel > p:last-child {
  max-width: 34rem;
  color: var(--clr-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.timeline__illustration {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 15rem);
  padding: 1.5rem;
}

.timeline__illustration::before {
  content: "";
  position: absolute;
  inset: .55rem;
  border-radius: 50%;
  background: rgba(205, 166, 89, .13);
  filter: blur(8px);
}

.timeline__illustration img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: invert(38%) sepia(50%) saturate(560%) hue-rotate(337deg) brightness(92%) contrast(90%) drop-shadow(.7px .7px 0 rgba(250, 245, 237, .78));
}

@keyframes timeline-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {

  .timeline__content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .timeline__panel {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__panel.is-active {
    transition: none;
    animation: none;
  }
}
/* Keep every timeline step readable while scrolling. */

.timeline__illustration {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 5vw, 4rem);
  z-index: 0;
  width: min(17rem, 30%);
  padding: 0;
  transform: translateY(-50%);
  opacity: .12;
  pointer-events: none;
}

.timeline__illustration::before {
  inset: -1rem;
}

.timeline__panel,
.timeline__panel[hidden] {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 44rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.35rem) clamp(1.5rem, 4vw, 3.25rem);
}

.timeline__panel + .timeline__panel {
  border-top: 1px solid rgba(167, 91, 57, .16);
}

.timeline__panel > p:last-child {
  max-width: 38rem;
}

@media (max-width: 700px) {

}
/* Vertical consultation timeline */
.timeline {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.timeline__content {
  display: block;
  max-width: 54rem;
  min-height: 0;
  margin-top: 0;
  padding: var(--space-4) 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  counter-reset: consultation-step;
}

.timeline__content::after {
  content: "";
  position: absolute;
  top: 2.55rem;
  bottom: 2.55rem;
  left: 1.42rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--clr-terracotta) 0 7px, transparent 7px 13px);
  opacity: .52;
}

.timeline__illustration {
  top: auto;
  right: -5.5rem;
  bottom: 2rem;
  width: 15rem;
  transform: none;
  opacity: .09;
}

.timeline__panel,
.timeline__panel[hidden] {
  display: block;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.8rem) clamp(5rem, 10vw, 7.25rem);
  border: 0;
  background: transparent;
  box-shadow: none;
  counter-increment: consultation-step;
  transition: background .22s ease, box-shadow .22s ease;
}

.timeline__panel::before {
  content: counter(consultation-step, decimal-leading-zero);
  position: absolute;
  top: clamp(1.2rem, 2.8vw, 1.8rem);
  left: 0;
  z-index: 1;
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  border: 1px solid var(--clr-terracotta);
  border-radius: 50%;
  background: var(--clr-ivory);
  color: var(--clr-terra-deep);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(64, 74, 57, .08);
}

.timeline__panel.is-active {
  background: transparent;
  box-shadow: none;
}

.timeline__panel:hover,
.timeline__panel:focus-visible {
  background: linear-gradient(90deg, rgba(205, 166, 89, .13), transparent 82%);
  box-shadow: inset 3px 0 0 var(--clr-terracotta);
  outline: none;
}

@media (max-width: 700px) {

  .timeline__illustration {
    display: none;
  }

  .timeline__panel::before {
    top: 1.25rem;
    width: 2.45rem;
    height: 2.45rem;
    font-size: .83rem;
  }
}
/* Refined vertical timeline */
.timeline__content {
  max-width: 48rem;
  margin-inline: auto;
  padding: var(--space-3) 0;
}

.timeline__content::before,
.timeline__illustration {
  display: none;
}

.timeline__panel::before {
  top: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-color: rgba(167, 91, 57, .72);
  background: var(--clr-card);
  color: var(--clr-terra-deep);
  font-size: .83rem;
  box-shadow: none;
}

.timeline__panel:hover::before,
.timeline__panel:focus-visible::before {
  background: var(--clr-terracotta);
  color: var(--clr-card);
  box-shadow: 0 6px 16px rgba(167, 91, 57, .18);
}

.timeline__panel h3 {
  margin-bottom: .55rem;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.12;
}

.timeline__panel > p:last-child {
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  line-height: 1.65;
}

@media (max-width: 700px) {

  .timeline__panel,
  .timeline__panel[hidden] {
    padding: 1.1rem 0 2rem 4.25rem;
  }

  .timeline__panel::before {
    top: 1.1rem;
    width: 2.2rem;
    height: 2.2rem;
  }
}
/* Milestone card version of the vertical timeline */
.timeline__content {
  max-width: 54rem;
  padding: var(--space-4) 0 var(--space-4) 3.5rem;
}

.timeline__content::after {
  top: 3rem;
  bottom: 3rem;
  left: 1.32rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-terracotta), var(--clr-brass), var(--clr-terracotta));
  opacity: .52;
}

.timeline__panel,
.timeline__panel[hidden] {
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.35rem, 4vw, 2.65rem) clamp(1.55rem, 3vw, 2rem) clamp(1.35rem, 4vw, 2.65rem);
  border: 1px solid rgba(167, 91, 57, .14);
  border-radius: var(--radius-lg);
  background: var(--clr-card);
  box-shadow: 0 11px 28px rgba(64, 74, 57, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.timeline__panel + .timeline__panel {
  margin-top: 1rem;
  border: 1px solid rgba(167, 91, 57, .14);
}

.timeline__panel:nth-of-type(even) {
  margin-left: clamp(1.25rem, 5vw, 3rem);
}

.timeline__panel::before {
  top: 50%;
  left: -4.82rem;
  z-index: 2;
  width: 2.65rem;
  height: 2.65rem;
  transform: translateY(-50%);
  border: 1px solid var(--clr-terracotta);
  background: var(--clr-card);
  color: var(--clr-terra-deep);
  box-shadow: 0 6px 16px rgba(64, 74, 57, .08);
}

.timeline__panel:nth-of-type(even)::before {
  left: calc(-4.82rem - clamp(1.25rem, 5vw, 3rem));
}

.timeline__panel:nth-of-type(4n + 1)::before,
.timeline__panel:nth-of-type(4n)::before {
  background: var(--clr-terracotta);
  color: var(--clr-card);
  box-shadow: 0 8px 18px rgba(167, 91, 57, .22);
}

.timeline__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -2rem;
  width: 10rem;
  height: 10rem;
  transform: translateY(-50%) rotate(15deg);
  background: url("obrazky/obrys-vlnovka.svg") center / contain no-repeat;
  opacity: .16;
  pointer-events: none;
}

.timeline__panel:nth-of-type(even)::after {
  right: auto;
  left: -3rem;
  transform: translateY(-50%) rotate(-15deg);
}

.timeline__panel h3,
.timeline__panel p {
  position: relative;
  z-index: 1;
}

.timeline__panel h3 {
  margin-bottom: .55rem;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
}

.timeline__panel:hover,
.timeline__panel:focus-visible,
.timeline__panel.is-active {
  transform: translateY(-2px);
  border-color: rgba(167, 91, 57, .32);
  background: var(--clr-card);
  box-shadow: 0 16px 34px rgba(64, 74, 57, .12);
}

@media (max-width: 700px) {
  .timeline__content {
    padding: var(--space-2) 0 var(--space-2) 3.25rem;
  }

  .timeline__content::after {
    top: 2.5rem;
    bottom: 2.5rem;
    left: 1.15rem;
  }

  .timeline__panel,
  .timeline__panel[hidden],
  .timeline__panel:nth-of-type(even) {
    margin-left: 0;
    padding: var(--space-4);
  }

  .timeline__panel + .timeline__panel {
    margin-top: var(--space-4);
  }

  .timeline__panel::before,
  .timeline__panel:nth-of-type(even)::before {
    left: -3.2rem;
    width: 2.3rem;
    height: 2.3rem;
  }

  .timeline__panel:nth-of-type(even)::after {
    right: -3rem;
    left: auto;
  }
}
.timeline__panel::after { z-index: 0; }
/* Scroll-reactive timeline accents */
.timeline__content {
  --timeline-progress: 0;
}

.timeline__content::after {
  z-index: 0;
  background: rgba(61, 76, 57, .2);
  opacity: 1;
}

.timeline__content::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 3rem;
  right: auto;
  bottom: 3rem;
  left: 1.22rem;
  display: block;
  width: 4px;
  height: auto;
  transform: scaleY(var(--timeline-progress));
  transform-origin: top;
  border-radius: var(--radius-full);
  background: linear-gradient(to bottom, var(--clr-sage-800), var(--clr-brass), var(--clr-terracotta), var(--clr-sage-800));
  opacity: .9;
  transition: transform .12s linear;
  pointer-events: none;
}

.timeline__panel {
  border-color: rgba(61, 76, 57, .14);
}

.timeline__panel:nth-of-type(4n + 1),
.timeline__panel:nth-of-type(4n) {
  background: linear-gradient(135deg, var(--clr-card), rgba(61, 76, 57, .055));
}

.timeline__panel:nth-of-type(4n + 2) {
  background: linear-gradient(135deg, var(--clr-card), rgba(167, 91, 57, .045));
}

.timeline__panel:nth-of-type(4n + 1)::before,
.timeline__panel:nth-of-type(4n)::before {
  border-color: var(--clr-sage-800);
  background: var(--clr-card);
  color: var(--clr-sage-800);
}

.timeline__panel:nth-of-type(4n + 2)::before {
  border-color: var(--clr-terracotta);
  background: var(--clr-card);
  color: var(--clr-terra-deep);
}

.timeline__panel:nth-of-type(4n + 3)::before {
  border-color: var(--clr-brass);
  background: var(--clr-card);
  color: var(--clr-terra-deep);
}

.timeline__panel.is-in-view {
  border-color: rgba(61, 76, 57, .27);
  box-shadow: 0 15px 32px rgba(64, 74, 57, .1);
}

.timeline__panel.is-in-view:nth-of-type(4n + 1)::before,
.timeline__panel.is-in-view:nth-of-type(4n)::before {
  background: var(--clr-sage-800);
  color: var(--clr-card);
  box-shadow: 0 8px 18px rgba(61, 76, 57, .2);
}

.timeline__panel.is-in-view:nth-of-type(4n + 2)::before {
  background: var(--clr-terracotta);
  color: var(--clr-card);
}

.timeline__panel.is-in-view:nth-of-type(4n + 3)::before {
  background: var(--clr-brass);
  color: var(--clr-sage-800);
}

.timeline__panel.is-in-view h3 {
  color: var(--clr-sage-800);
}

.timeline__panel:nth-of-type(4n + 2).is-in-view h3 {
  color: var(--clr-terra-deep);
}

.timeline__panel:hover,
.timeline__panel:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(61, 76, 57, .38);
  box-shadow: 0 18px 38px rgba(64, 74, 57, .14);
}

@media (max-width: 700px) {
  .timeline__content::before {
    top: 2.5rem;
    bottom: 2.5rem;
    left: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__content::before,
  .timeline__panel {
    transition: none;
  }
}
/* Timeline marker visibility and green palette correction */
.timeline__panel,
.timeline__panel[hidden] {
  overflow: visible;
}

@media (min-width: 701px) {
  .timeline__panel::before {
    left: -3.62rem;
  }

  .timeline__panel:nth-of-type(even)::before {
    left: calc(-3.62rem - clamp(1.25rem, 5vw, 3rem));
  }
}
.timeline__content::before,
.timeline__content::after {
  top: var(--timeline-line-start, 3rem);
  bottom: auto;
  height: var(--timeline-line-height, calc(100% - 6rem));
}
/* Unified sage milestones with a rainbow progress line only */
.timeline__panel::before {
  content: counter(consultation-step);
  border-color: var(--clr-sage-800);
  background: var(--clr-sage-800);
  color: var(--clr-card);
  box-shadow: 0 7px 16px rgba(61, 76, 57, .18);
}

.timeline__panel:nth-of-type(4n + 1)::before,
.timeline__panel:nth-of-type(4n)::before,
.timeline__panel:nth-of-type(4n + 2)::before,
.timeline__panel:nth-of-type(4n + 3)::before,
.timeline__panel.is-in-view:nth-of-type(4n + 1)::before,
.timeline__panel.is-in-view:nth-of-type(4n)::before,
.timeline__panel.is-in-view:nth-of-type(4n + 2)::before,
.timeline__panel.is-in-view:nth-of-type(4n + 3)::before {
  border-color: var(--clr-sage-800);
  background: var(--clr-sage-800);
  color: var(--clr-card);
}

.timeline__panel,
.timeline__panel:nth-of-type(4n + 1),
.timeline__panel:nth-of-type(4n),
.timeline__panel:nth-of-type(4n + 2) {
  border-color: rgba(61, 76, 57, .18);
  background: linear-gradient(135deg, var(--clr-card), rgba(122, 139, 118, .09));
}

.timeline__panel h3,
.timeline__panel.is-in-view h3,
.timeline__panel:nth-of-type(4n + 2).is-in-view h3 {
  color: var(--clr-sage-800);
}

.timeline__panel:hover,
.timeline__panel:focus-visible,
.timeline__panel.is-active {
  border-color: rgba(61, 76, 57, .38);
  background: linear-gradient(135deg, var(--clr-card), rgba(122, 139, 118, .13));
}

.timeline__panel:hover::before,
.timeline__panel:focus-visible::before {
  background: var(--clr-sage-800);
  color: var(--clr-card);
}

.timeline__panel::after,
.timeline__panel:nth-of-type(even)::after {
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  border-radius: inherit;
  background-size: 10rem 10rem;
  background-repeat: no-repeat;
  opacity: .17;
}

.timeline__panel::after {
  background-position: right -4rem top -3rem;
}

.timeline__panel:nth-of-type(even)::after {
  background-position: left -4rem bottom -3rem;
}
/* Current timeline milestone */
.timeline__panel:hover,
.timeline__panel:focus-visible,
.timeline__panel.is-active {
  transform: none;
}

.timeline__panel.is-current,
.timeline__panel.is-current:hover,
.timeline__panel.is-current:focus-visible {
  z-index: 3;
  transform: scale(1.025);
  border-color: var(--clr-terracotta);
  background: linear-gradient(135deg, var(--clr-card), rgba(166, 94, 68, .11));
  box-shadow: 0 22px 44px rgba(64, 74, 57, .18), 0 8px 20px rgba(166, 94, 68, .13);
}

.timeline__panel.is-current h3 {
  color: var(--clr-terra-deep);
}

.timeline__panel.is-current::before {
  border-color: var(--clr-sage-800);
  background: var(--clr-sage-800);
  color: var(--clr-card);
  box-shadow: 0 8px 20px rgba(61, 76, 57, .26);
}

@media (prefers-reduced-motion: reduce) {
  .timeline__panel.is-current,
  .timeline__panel.is-current:hover,
  .timeline__panel.is-current:focus-visible {
    transform: none;
  }
}
#postup .section__head {
  margin-inline: auto;
  text-align: center;
}

#postup .section__intro {
  margin-inline: auto;
}
#postup .note {
  width: min(100%, 58rem);
  margin-right: auto;
  margin-left: auto;
  border-color: rgba(61, 76, 57, .38);
  background: linear-gradient(135deg, rgba(122, 139, 118, .16), rgba(250, 245, 237, .74));
}

#postup .note > i {
  color: var(--clr-sage-800);
}

#postup .note p {
  flex: 1 1 28rem;
}

.note__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1rem;
  border-radius: var(--radius-full);
  background: var(--clr-sage-800);
  color: var(--clr-card);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.note__cta:hover,
.note__cta:focus-visible {
  background: var(--clr-sage-600);
  color: var(--clr-card);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(61, 76, 57, .2);
}

@media (max-width: 700px) {
  #postup .note {
    align-items: flex-start;
  }

  .note__cta {
    width: 100%;
    justify-content: center;
  }
}
#postup .note {
  flex-wrap: wrap;
}
.timeline__panel.is-current,
.timeline__panel.is-current:hover,
.timeline__panel.is-current:focus-visible {
  transform: none;
  box-shadow: 0 0 0 4px rgba(166, 94, 68, .14), 0 22px 44px rgba(64, 74, 57, .18), 0 8px 20px rgba(166, 94, 68, .13);
}
/* Keep timeline markers fixed while only the card scales. */
.timeline__panel,
.timeline__panel[hidden],
.timeline__panel:nth-of-type(4n + 1),
.timeline__panel:nth-of-type(4n),
.timeline__panel:nth-of-type(4n + 2),
.timeline__panel.is-current,
.timeline__panel.is-current:hover,
.timeline__panel.is-current:focus-visible {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.timeline__panel::before,
.timeline__panel::after {
  content: none;
}

.timeline__marker {
  position: absolute;
  top: 50%;
  left: -3.62rem;
  z-index: 4;
  width: 2.65rem;
  height: 2.65rem;
  transform: translateY(-50%);
}

.timeline__marker::before {
  content: counter(consultation-step);
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid var(--clr-sage-800);
  border-radius: 50%;
  background: var(--clr-sage-800);
  color: var(--clr-card);
  box-shadow: 0 7px 16px rgba(61, 76, 57, .18);
  font-family: var(--font-head);
  font-size: .83rem;
  font-weight: 700;
}

.timeline__panel:nth-of-type(even) .timeline__marker {
  left: calc(-3.62rem - clamp(1.25rem, 5vw, 3rem));
}

.timeline__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.35rem, 4vw, 2.65rem);
  border: 1px solid rgba(61, 76, 57, .18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--clr-card), rgba(122, 139, 118, .09));
  box-shadow: 0 11px 28px rgba(64, 74, 57, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.timeline__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("obrazky/obrys-vlnovka.svg");
  background-repeat: no-repeat;
  background-size: 10rem 10rem;
  background-position: right -4rem top -3rem;
  opacity: .17;
  pointer-events: none;
}

.timeline__panel:nth-of-type(even) .timeline__card::after {
  background-position: left -4rem bottom -3rem;
}

.timeline__card h3,
.timeline__card p {
  position: relative;
  z-index: 1;
}

.timeline__panel.is-current .timeline__card {
  transform: scale(1.025);
  transform-origin: left center;
  border-width: 2px;
  border-color: var(--clr-terracotta);
  background: linear-gradient(135deg, var(--clr-card), rgba(166, 94, 68, .11));
  box-shadow: 0 0 0 4px rgba(166, 94, 68, .14), 0 22px 44px rgba(64, 74, 57, .18), 0 8px 20px rgba(166, 94, 68, .13);
}

.timeline__panel.is-current .timeline__card h3 {
  color: var(--clr-terra-deep);
}

.timeline__card:hover {
  transform: none;
}

.timeline__panel.is-current .timeline__card:hover,
.timeline__panel.is-current:focus-visible .timeline__card {
  transform: scale(1.025);
}

@media (max-width: 700px) {
  .timeline__marker,
  .timeline__panel:nth-of-type(even) .timeline__marker {
    left: -3.2rem;
    width: 2.3rem;
    height: 2.3rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .timeline__panel.is-current .timeline__card,
  .timeline__panel.is-current .timeline__card:hover,
  .timeline__panel.is-current:focus-visible .timeline__card {
    transform: none;
  }
}
/* Prevent the legacy reached-state from flashing behind the scalable card. */
.timeline__panel.is-in-view,
.timeline__panel.is-in-view:hover,
.timeline__panel.is-in-view:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
/* Smooth the full active-card transition as one visual change. */
.timeline__card {
  box-shadow: 0 0 0 0 rgba(166, 94, 68, 0), 0 11px 28px rgba(64, 74, 57, .07), 0 0 0 0 rgba(166, 94, 68, 0);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), box-shadow .34s ease, border-color .34s ease, background .34s ease;
}

.timeline__card h3 {
  transition: color .34s ease;
}
.timeline__card {
  transition-duration: 1.1s, .45s, .45s, .45s;
}
/* Final isolated timeline system: outer milestone never transforms. */
#postup .timeline {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

#postup .timeline__content {
  position: relative;
  max-width: 54rem;
  min-height: 0;
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-4) 3.5rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  counter-reset: consultation-step;
  --timeline-progress: 0;
}

#postup .timeline__content::after,
#postup .timeline__content::before {
  content: "";
  position: absolute;
  right: auto;
  bottom: auto;
  left: 1.08rem;
  height: var(--timeline-line-height, calc(100% - 6rem));
  border-radius: var(--radius-full);
  pointer-events: none;
}

#postup .timeline__content::after {
  z-index: 0;
  top: var(--timeline-line-start, 3rem);
  width: 2px;
  background: rgba(61, 76, 57, .22);
}

#postup .timeline__content::before {
  z-index: 1;
  top: var(--timeline-line-start, 3rem);
  display: block;
  width: 4px;
  transform: scaleY(var(--timeline-progress));
  transform-origin: top;
  background: linear-gradient(to bottom, var(--clr-brass), var(--clr-brass-deep));
  transition: transform .12s linear;
}

#postup .timeline__illustration {
  display: none;
}

#postup .timeline__panel,
#postup .timeline__panel[hidden],
#postup .timeline__panel:nth-of-type(4n + 1),
#postup .timeline__panel:nth-of-type(4n),
#postup .timeline__panel:nth-of-type(4n + 2),
#postup .timeline__panel.is-in-view,
#postup .timeline__panel.is-current {
  position: relative;
  z-index: 2;
  display: block;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  counter-increment: consultation-step;
}

#postup .timeline__panel + .timeline__panel {
  margin-top: 1rem;
}

#postup .timeline__panel:nth-of-type(even) {
  margin-left: clamp(1.25rem, 5vw, 3rem);
}

#postup .timeline__panel::before,
#postup .timeline__panel::after {
  content: none;
}

#postup .timeline__marker {
  position: absolute;
  top: 50%;
  left: -3.62rem;
  z-index: 4;
  width: 2.65rem;
  height: 2.65rem;
  transform: translateY(-50%);
}

#postup .timeline__panel:nth-of-type(even) .timeline__marker {
  left: calc(-3.62rem - clamp(1.25rem, 5vw, 3rem));
}

#postup .timeline__marker::before {
  content: counter(consultation-step);
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid var(--clr-sage-800);
  border-radius: 50%;
  background: var(--clr-sage-800);
  color: var(--clr-card);
  box-shadow: 0 7px 16px rgba(61, 76, 57, .18);
  font-family: var(--font-head);
  font-size: .83rem;
  font-weight: 700;
}

#postup .timeline__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.35rem, 4vw, 2.65rem);
  border: 1px solid rgba(61, 76, 57, .18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--clr-card), rgba(122, 139, 118, .09));
  box-shadow: 0 0 0 0 rgba(166, 94, 68, 0), 0 11px 28px rgba(64, 74, 57, .07), 0 0 0 0 rgba(166, 94, 68, 0);
  transform: scale(1);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, border-color .45s ease, background .45s ease;
}

#postup .timeline__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: url("obrazky/obrys-vlnovka.svg") right -4rem top -3rem / 10rem 10rem no-repeat;
  opacity: .17;
  pointer-events: none;
}

#postup .timeline__panel:nth-of-type(even) .timeline__card::after {
  background-position: left -4rem bottom -3rem;
}

#postup .timeline__card h3,
#postup .timeline__card p {
  position: relative;
  z-index: 1;
}

#postup .timeline__card h3 {
  margin-bottom: .55rem;
  color: var(--clr-sage-800);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.12;
  transition: color .45s ease;
}

#postup .timeline__card p {
  max-width: 38rem;
  color: var(--clr-muted);
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  line-height: 1.65;
}

#postup .timeline__card:hover {
  transform: scale(1);
}

#postup .timeline__panel.is-current .timeline__card,
#postup .timeline__panel.is-current .timeline__card:hover {
  transform: scale(1.025);
  border-width: 2px;
  border-color: var(--clr-terracotta);
  background: linear-gradient(135deg, var(--clr-card), rgba(166, 94, 68, .11));
  box-shadow: 0 0 0 4px rgba(166, 94, 68, .14), 0 22px 44px rgba(64, 74, 57, .18), 0 8px 20px rgba(166, 94, 68, .13);
}

#postup .timeline__panel.is-current .timeline__card h3 {
  color: var(--clr-terra-deep);
}

@media (max-width: 700px) {
  #postup .timeline__content {
    padding: var(--space-2) 0 var(--space-2) 3.25rem;
  }

  #postup .timeline__content::after,
  #postup .timeline__content::before {
    left: 1.075rem;
  }

  #postup .timeline__panel:nth-of-type(even) {
    margin-left: 0;
  }

  #postup .timeline__marker,
  #postup .timeline__panel:nth-of-type(even) .timeline__marker {
    left: -3.2rem;
    width: 2.3rem;
    height: 2.3rem;
  }

  #postup .timeline__card {
    padding: var(--space-4);
  }
  #postup .timeline__card h3 {
    font-size: clamp(1.2rem, 1rem + 2vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  #postup .timeline__content::before,
  #postup .timeline__card,
  #postup .timeline__card h3 {
    transition: none;
  }

  #postup .timeline__panel.is-current .timeline__card,
  #postup .timeline__panel.is-current .timeline__card:hover {
    transform: none;
  }
}
#postup .timeline__card {
  transition-duration: .5s, .32s, .32s, .32s;
}
/* Reuse the "Proč já" outline pattern behind the timeline. */
#postup {
  position: relative;
  overflow: hidden;
}

#postup::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("obrazky/obrys-vlnovka.svg") repeat;
  background-size: 82px 82px;
  opacity: .18;
  pointer-events: none;
}

#postup::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg");
  background-repeat: no-repeat;
  background-position:
    82px 164px, 410px 492px, 820px 738px, 1230px 328px,
    1640px 574px, 246px 984px, 656px 1148px, 1066px 902px,
    1476px 1066px, 1804px 820px, 1148px 164px, 984px 1312px;
  background-size: 82px 82px;
  opacity: .18;
  pointer-events: none;
}

#postup .container {
  position: relative;
  z-index: 1;
}
#postup .timeline__card,
#postup .timeline__panel.is-current .timeline__card,
#postup .timeline__panel.is-current .timeline__card:hover {
  background: var(--clr-card);
}

#postup .timeline__card::after,
#postup .timeline__panel:nth-of-type(even) .timeline__card::after {
  content: none;
}
#postup::after {
  background-position:
    246px 82px, 656px 328px, 1066px 164px, 1476px 492px,
    1886px 246px, 82px 738px, 492px 984px, 902px 820px,
    1312px 1148px, 1722px 902px, 328px 1394px, 1148px 1560px;
}
/* Featured-pricing green for the consultation note. */
#postup .note {
  border-color: transparent;
  background: linear-gradient(90deg, var(--clr-sage-800), var(--clr-sage));
  color: var(--clr-ivory);
  box-shadow: var(--shadow-lg);
}

#postup .note > i,
#postup .note p {
  color: var(--clr-ivory);
}

#postup .note .note__cta.btn {
  flex: 0 0 auto;
  background: var(--clr-brass);
  color: var(--clr-charcoal);
  transform: none;
  white-space: nowrap;
}

#postup .note .note__cta.btn:hover,
#postup .note .note__cta.btn:focus-visible {
  color: var(--clr-ivory);
  border-color: var(--clr-primary);
  background: var(--clr-brass);
  transform: none;
  box-shadow: var(--shadow), inset 0 -4em 0 0 var(--clr-primary);
}
#postup .note {
  width: min(100%, 54rem);
}
/* Give the reasons pattern the same receding-plane feel as the coverflow. */
.section--reasons {
  perspective: 1000px;
}

/* Perspective is compensated by depth, keeping the pattern close to its original scale. */

/* Strong cobblestone-path perspective: original scale at the horizon, larger toward the viewer. */
.section--reasons::before,
.section--reasons::after {
  inset: -14% -7% -10%;
  transform: perspective(2400px) rotateX(54deg) translateZ(-1000px) scale(1.25);
  transform-origin: 50% 0%;
}

.section--reasons::before,
.section--reasons::after {
  transform: perspective(2800px) rotateX(62deg) translateZ(-1250px) scale(1.5, .68);
}
/* Perspective ground shadow under the coverflow */
.section--reasons .coverflow__stage {
  isolation: isolate;
}
.section--reasons .coverflow__stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 4.4rem;
  width: min(40rem, 96%);
  height: 8rem;
  transform: translateX(-50%) perspective(760px) rotateX(64deg) scaleX(1.16);
  transform-origin: center bottom;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(65, 77, 60, .34) 0%, rgba(65, 77, 60, .16) 42%, rgba(65, 77, 60, 0) 74%);
  filter: blur(8px);
  opacity: .82;
  pointer-events: none;
}
.section--reasons .coverflow__card {
  z-index: 1;
}
@media (max-width: 700px) {
  .section--reasons .coverflow__stage::after {
    bottom: 3.1rem;
    width: 90%;
    height: 5rem;
    filter: blur(6px);
  }
}
/* Pricing header illustration */
#cenik .container {
  position: relative;
}

@media (max-width: 700px) {

}

/* Match the hero illustration: terracotta line with a light offset edge. */

/* Featured pricing checklist: terracotta outline and check only. */
.price-card--featured .checklist i {
  background: transparent;
  border: 1.5px solid var(--clr-terracotta);
  color: var(--clr-terracotta);
}
.price-card--featured .checklist i {
  background: var(--clr-ivory);
}
#cenik .price-card:not(.price-card--featured) .price-card__now {
  color: var(--clr-terracotta);
}
@media (max-width: 700px) {
  #cenik .price-card:not(.price-card--featured) .btn--ghost {
    background: var(--clr-brass);
    color: var(--clr-charcoal);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
  }
}

#cenik .price-card--featured .price-card__now {
  color: var(--clr-ivory);
}
#cenik .price-card--featured .checklist i {
  border-width: 2px;
  font-size: .72rem;
  font-weight: 900;
}
/* Keep the About eyebrow from inheriting the intro paragraph styling. */
#kdo-jsem .about__text .section__eyebrow {
  font-size: .72rem;
  color: var(--clr-brass-deep);
  line-height: 1;
  margin-bottom: var(--space-4);
}
/* Compensate for the ornamental SVG's asymmetric viewbox. */
.nav__link::after {
  transform: translateX(calc(-50% + 2px));
}
/* Back-to-top control */
.scroll-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 20;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1.5px solid var(--clr-terracotta);
  border-radius: var(--radius-full);
  background: var(--clr-ivory);
  color: var(--clr-terracotta);
  box-shadow: 0 .5rem 1.5rem rgba(65, 77, 60, .14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(.8rem) scale(.94);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.scroll-top i { font-size: .9rem; }
.scroll-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--clr-terracotta);
  color: var(--clr-ivory);
  box-shadow: 0 .75rem 1.75rem rgba(166, 94, 68, .28);
  transform: translateY(-.15rem) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-top:hover i { animation: scroll-top-chevron .32s ease-in-out infinite alternate; }
}
@keyframes scroll-top-chevron { to { transform: translateY(-4px); } }
/* Resting carousel controls match the back-to-top control. */
.coverflow__nav {
  background: var(--clr-ivory);
  color: var(--clr-terracotta);
  border: 1.5px solid var(--clr-terracotta);
  box-shadow: 0 .5rem 1.5rem rgba(65, 77, 60, .14);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.coverflow__illu img {
  filter: invert(38%) sepia(50%) saturate(560%) hue-rotate(337deg) brightness(92%) contrast(100%)
    drop-shadow(.15px 0 0 var(--clr-terracotta)) drop-shadow(-.15px 0 0 var(--clr-terracotta))
    drop-shadow(0 .15px 0 var(--clr-terracotta)) drop-shadow(0 -.15px 0 var(--clr-terracotta));
}
#postup .section__title::after {
  margin-inline: auto;
}
/* Contact: calm green close with direct contact options. */
#kontakt.cta {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24);
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--clr-sage) 55%, var(--clr-sage-800)) 0%, transparent 60%),
    linear-gradient(160deg, var(--clr-sage-800), var(--clr-sage-900));
}
@media (max-width: 700px) {
  #kontakt.cta { padding-block: var(--space-12); }
}
#kontakt .cta__inner {
  max-width: 54rem;
}
#kontakt .cta__eyebrow {
  border-color: color-mix(in srgb, var(--clr-ivory) 32%, transparent);
  color: var(--clr-ivory);
  background: color-mix(in srgb, var(--clr-ivory) 8%, transparent);
}
#kontakt .cta__eyebrow::before {
  background: var(--clr-brass);
}
#kontakt .cta__lead {
  max-width: 39rem;
  margin-bottom: var(--space-8);
}
#kontakt .cta__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 42rem;
  margin-inline: auto;
}
#kontakt .cta__contact-card {
  display: flex;
  min-height: 8rem;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--clr-ivory) 28%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--clr-ivory) 6%, transparent);
  color: var(--clr-ivory);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1.25rem 2.5rem color-mix(in srgb, var(--clr-sage-900) 14%, transparent);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  container-type: inline-size;
}
#kontakt .cta__contact-card > i {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--clr-brass);
  color: var(--clr-sage-800);
  font-size: 1.05rem;
}
#kontakt .cta__contact-card span {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
#kontakt .cta__contact-card strong {
  font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.03rem);
  font-weight: 700;
}
#kontakt .cta__contact-card small {
  color: color-mix(in srgb, var(--clr-ivory) 78%, transparent);
  font-size: clamp(0.83rem, 0.77rem + 0.35vw, 0.9rem);
}
/* The card can only ever be this narrow in the 2- and 3-column layouts (601px+).
   A <wbr> after the e-mail's "@" gives it a clean fallback break point, so the
   font only needs a modest trim here instead of shrinking to stay unwrapped. */
@container (max-width: 340px) {
  #kontakt .cta__contact-card small {
    font-size: 0.8rem;
  }
}
#kontakt .cta__contact-card:hover,
#kontakt .cta__contact-card:focus-visible {
  border-color: color-mix(in srgb, var(--clr-brass) 70%, var(--clr-ivory));
  background: color-mix(in srgb, var(--clr-ivory) 15%, transparent);
  box-shadow: 0 1.25rem 2.5rem color-mix(in srgb, var(--clr-sage-900) 24%, transparent);
}
#kontakt .cta__contact-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--clr-brass) 72%, transparent);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  #kontakt .cta__contacts { grid-template-columns: 1fr; gap: var(--space-3); }
  #kontakt .cta__contact-card {
    min-height: 0;
    gap: var(--space-3);
    padding: var(--space-3);
  }
  #kontakt .cta__contact-card > i {
    width: 2.2rem;
    height: 2.2rem;
    font-size: .85rem;
  }
}
/* Two-column range: the lone third card drops to its own row, center it. */
@media (min-width: 601px) and (max-width: 767px) {
  #kontakt .cta__contact-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - var(--space-4) / 2);
    margin-inline: auto;
  }
}
#kontakt .cta__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}
#kontakt .cta__eyebrow,
#kontakt .cta__title,
#kontakt .cta__lead {
  margin-block: 0;
}
#kontakt .cta__lead {
  margin-inline: auto;
}
#kontakt .cta__contacts {
  margin: var(--space-2) auto 0;
}
/* Contact cards: valid spacing tokens and enough room for their content. */
#kontakt .cta__contacts {
  width: 100%;
  max-width: 48rem;
}
#kontakt .cta__contact-card {
  min-height: calc(var(--space-12) + var(--space-16));
  padding: var(--space-6);
}
@media (max-width: 600px) {
  #kontakt .cta__contact-card {
    min-height: 0;
    padding: var(--space-3);
  }
}
#kontakt .cta__contact-card small {
  overflow-wrap: anywhere;
}
/* Contact-card hover uses the primary CTA fill treatment. */

/* Match the actual primary CTA token and fill animation. */
#kontakt .cta__contact-card {
  box-shadow: 0 1.25rem 2.5rem color-mix(in srgb, var(--clr-sage-900) 14%, transparent), inset 0 0 0 0 var(--clr-primary);
}
#kontakt .cta__contact-card:hover {
  color: var(--clr-ivory);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow), inset 0 -10em 0 0 var(--clr-primary);
}
#kontakt .cta__accent {
  color: var(--clr-brass);
}
.scroll-top:hover,
.scroll-top:focus-visible {
  box-shadow: none;
}
.scroll-top {
  border: 1px solid color-mix(in srgb, var(--clr-terracotta) 82%, transparent);
  background: color-mix(in srgb, var(--clr-ivory) 68%, transparent);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--clr-brass);
  outline-offset: 3px;
}
.scroll-top {
  border-width: 2px;
}
.scroll-top,
.scroll-top:hover,
.scroll-top:focus-visible {
  box-shadow: none;
}
/* Keep the circular border on whole pixels once the control is visible. */
.scroll-top.is-visible,
.scroll-top:hover,
.scroll-top:focus-visible {
  transform: none;
}
.scroll-top {
  border-color: var(--clr-terracotta);
}

.footer__tagline {
  max-width: 32ch;
}
.footer__brand img {
  width: var(--space-24);
  height: var(--space-24);
}
/* Avoid transform-based rasterisation of the navigation logo at rest. */
.nav__logo {
  width: 108px;
  transition: width var(--transition), left var(--transition), transform var(--transition);
}
.nav__logo img {
  left: 0;
  transform: none;
}

.site-header.is-scrolled .nav__logo {
  width: 60px;
}
@media (max-width: 899px) {
  .site-header.is-scrolled .nav__logo {
    left: 0;
    transform: translateY(-50%);
  }
}
/* Logo v klidu NESMÍ mít transform. Hlavička je position:sticky, takže logo leží
   v kompozitní vrstvě – ta se vyrastruje v rozměru z layoutu (108px) a scale(1.04)
   ji pak jen roztáhne na GPU, což logo rozmazává. Zvětšení je proto zapečené přímo
   do celočíselné šířky/výšky, aby se obrázek rastroval rovnou ve finální velikosti. */
.nav__logo img {
  left: -2px;
  top: -6px;
  width: 112px;
  height: 112px;
  /* Globální reset má img{max-width:100%}, což by 112px oříznulo na šířku rodiče (108px). */
  max-width: none;
  transform: none;
}

/* Transform jen při najetí myší – tam je krátkodobé přerastrování v pořádku. */
.nav__logo:hover img {
  transform: rotate(-4deg) scale(1.04);
}
/* Mirrored perspective plane at the top of the reasons section. */
.section--reasons__top-pattern {
  position: absolute;
  z-index: 0;
  top: -14%;
  right: -7%;
  left: -7%;
  height: 56%;
  pointer-events: none;
  background: url("obrazky/obrys-vlnovka.svg") repeat;
  background-size: 82px 82px;
  opacity: .18;
  transform: perspective(2800px) rotateX(-62deg) translateZ(-1250px) scale(1.5, .68);
  transform-origin: 50% 100%;
}
.section--reasons__top-pattern::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg");
  background-repeat: no-repeat;
  background-position: 82px 164px, 410px 492px, 820px 238px, 1230px 328px, 246px 84px, 656px 348px;
  background-size: 82px 82px;
}

/* Match the lower plane's true perspective and proportions. */

/* Inverted plane stays in the visible half of the section. */

/* Top mirrored plane: keep it inside the clipped section instead of using the lower plane's depth. */
.section--reasons__top-pattern {
  top: 0;
  height: 34rem;
  z-index: 0;
  opacity: .24;
  transform: perspective(2800px) rotateX(-52deg) scale(1.34, .95);
  transform-origin: 50% 0%;
  backface-visibility: visible;
}
/* Let the upper pattern recede smoothly instead of ending in a visible horizontal crop. */
.section--reasons__top-pattern {
  height: 100%;
  opacity: .2;
  transform: perspective(2800px) rotateX(-52deg) scale(1.34, .95);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 72%);
}
/* Keep the filled background shape clear of the reasons heading. */

/* The shape under the heading belongs to the main plane, not the mirrored copy. */

/* Keep the heading area quiet: fills stay in the lower/main plane only. */

/* Restore the scattered fills; only the one behind the heading moves away. */
.section--reasons__top-pattern::after {
  display: block;
  background-position: 154px 92px, 574px 246px, 1510px 360px, 1378px 386px, 328px 448px, 824px 522px;
}
/* Filled shapes use the exact 82px tile grid of the outline pattern. */

.section--reasons::after {
  background-position:
    82px 164px, 410px 492px, 820px 738px, 1722px 410px,
    1640px 574px, 246px 984px, 656px 1148px, 1066px 902px,
    1476px 1066px, 1804px 820px, 1640px 246px, 984px 1312px;
}
/* A new, well-spaced scatter — all positions remain on the 82px grid. */

/* Bring back a fuller, evenly spaced scatter in the visible part of the upper plane. */

/* Extend the visible upper plane and populate it with a fuller, non-overlapping grid scatter. */
.section--reasons__top-pattern {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.section--reasons__top-pattern::after {
  background-image:
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg"),
    url("obrazky/obrys-vlnovka-vypln.svg"), url("obrazky/obrys-vlnovka-vypln.svg");
  background-position:
    328px 82px, 574px 246px, 738px 492px, 410px 656px, 656px 820px, 246px 984px,
    1312px 82px, 1476px 246px, 1640px 492px, 1394px 656px, 1558px 820px, 1722px 984px;
}
/* Nudge the upper-right fill one grid cell to the side. */

/* Move the same fill one more grid cell right and one cell up. */
.section--reasons__top-pattern::after {
  background-position:
    328px 82px, 574px 246px, 738px 492px, 410px 656px, 656px 820px, 246px 984px,
    1312px 82px, 1640px 164px, 1640px 492px, 1394px 656px, 1558px 820px, 1722px 984px;
}
/* Pricing offer sticker — the brand shape carries the introductory offer. */

@media (max-width: 700px) {

}
/* Reliable SVG-based pricing sticker (the image supplies the exact brand silhouette). */

/* Pricing offer: a terracotta tab that slides in from the page edge. */
#cenik {
  position: relative;
  overflow: hidden;
}
#cenik .pricing__offer-panel {
  position: absolute;
  z-index: 2;
  top: var(--space-8);
  right: calc((100vw - 100%) / -2 - var(--space-2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-2);
  width: min(32rem, 36vw);
  aspect-ratio: 3.6;
  margin: 0;
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-20);
  background: radial-gradient(ellipse at 44% 50%,
    var(--clr-terracotta) 0 62%,
    color-mix(in srgb, var(--clr-terracotta) 72%, var(--clr-terra-deep)) 82%,
    var(--clr-terra-deep) 100%);
  border: 1px solid color-mix(in srgb, var(--clr-ivory) 24%, transparent);
  border-radius: 14% 0 0 14% / 50% 0 0 50%;
  color: var(--clr-ivory);
  text-align: left;
  box-shadow: none;
  opacity: 0;
  transform: translateX(110%);
  transition: transform 800ms cubic-bezier(.22, .8, .25, 1), opacity 260ms ease;
}
#cenik .pricing__offer-panel.is-visible {
  opacity: 1;
  transform: translateX(0);
}
#cenik .pricing__offer-panel p {
  margin: 0;
  width: 100%;
  max-width: none;
  font-family: var(--font-pricing-offer);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-size: var(--fs-h4-min);
}
@media (min-width: 701px) and (max-width: 899px) {
  #cenik .pricing__offer-panel {
    padding: var(--space-3) var(--space-8) var(--space-3) var(--space-8);
    align-items: flex-end;
    text-align: right;
  }
  #cenik .pricing__offer-panel p {
    font-size: 1rem;
  }
}
@media (max-width: 700px) {
  #cenik .section__head {
    margin-bottom: var(--space-12);
  }
  #cenik .pricing__offer-panel {
    position: relative;
    top: auto;
    right: auto;
    width: min(26rem, 96vw);
    margin: 0 0 var(--space-12) auto;
    padding: var(--space-4) var(--space-6) var(--space-4) var(--space-8);
    aspect-ratio: 3.2;
    border-radius: 16% 0 0 16% / 50% 0 0 50%;
    align-items: flex-end;
    text-align: right;
  }
  #cenik .pricing__offer-panel p {
    font-size: 0.95rem;
  }
}
/* ---------- 15.6 Reasons pattern: centered coordinate system ---------- */
@media (min-aspect-ratio: 16 / 9) {
  /* The repeated grid and its filled cells share the same centered 1920px reference plane. */
  .section--reasons::before,
  .section--reasons__top-pattern {
    background-position: calc(50% - 1053.4px) 0;
  }

  .section--reasons::after {
    background-position:
      calc(50% - 971.4px) 164px, calc(50% - 643.4px) 492px,
      calc(50% - 233.4px) 738px, calc(50% + 668.6px) 410px,
      calc(50% + 586.6px) 574px, calc(50% - 807.4px) 984px,
      calc(50% - 397.4px) 1148px, calc(50% + 12.6px) 902px,
      calc(50% + 422.6px) 1066px, calc(50% + 750.6px) 820px,
      calc(50% + 586.6px) 246px, calc(50% - 69.4px) 1312px;
  }

  .section--reasons__top-pattern::after {
    background-position:
      calc(50% - 725.4px) 82px, calc(50% - 479.4px) 246px,
      calc(50% - 315.4px) 492px, calc(50% - 643.4px) 656px,
      calc(50% - 397.4px) 820px, calc(50% - 807.4px) 984px,
      calc(50% + 258.6px) 82px, calc(50% + 586.6px) 164px,
      calc(50% + 586.6px) 492px, calc(50% + 340.6px) 656px,
      calc(50% + 504.6px) 820px, calc(50% + 668.6px) 984px;
  }
}
/* ---------- 15.7 Hero illustration: right anchored ---------- */
@media (min-width: 900px) {
  .hero__media {
    left: auto;
    right: calc((min(85vw, var(--container-max)) - 100vw) / 2 - var(--space-24) - var(--space-4));
    transform: translateY(-50%);
  }

  .hero__illu {
    left: auto;
    right: 0;
    width: 130%;
    max-width: none;
    transform: translateY(-50%);
  }
}

/* Laptops: nudge the illustration a bit further right and slightly smaller,
   giving the text a little more breathing room. */
@media (min-width: 900px) and (max-width: 1440px) {
  .hero__media {
    right: calc((min(85vw, var(--container-max)) - 100vw) / 2 - var(--space-24) - var(--space-4) - 48px);
    width: min(46vw, 640px);
  }
}

/* Hero illustration: ultrawide anchor */
/* Keep the illustration at the right edge of a centered 16:9 reference canvas without constraining the page itself. */
@media (min-width: 1900px) and (min-aspect-ratio: 21 / 9) {
  .hero__media {
    right: calc(50% - 88.888889vh - var(--space-24) - var(--space-4));
  }
}

/* 4K+ monitors only: keep the illustration at the same proportional spot as a typical
   resolution instead of bleeding to the real screen edge (looks too far away/disconnected).
   Výška hero sekce je tu navíc omezena na 1000px, ať se na hodně vysokém displeji
   nenatahuje do zbytečně velké prázdné plochy – na běžných discích (900–3799px) je
   beze stropu, roste přesně na 100 % dostupné výšky pod hlavičkou. */
@media (min-width: 3800px) {
  .hero { height: min(calc(100vh - var(--header-h)), 1000px); }
  .hero__media {
    left: 79.4%;
    right: auto;
    transform: translate(-50%, -50%);
  }
  .hero__illu {
    left: 50%;
    right: auto;
    width: 130%;
    max-width: 100%;
    transform: translate(-50%, -50%);
  }
}

/* Pricing offer: ultrawide anchor (also applied to 4K+ monitors, regardless of aspect ratio) */
@media (min-width: 1900px) and (min-aspect-ratio: 21 / 9), (min-width: 3800px) {
  #cenik .pricing__offer-panel {
    right: 0;
    align-items: center;
    padding: var(--space-6) var(--space-12);
    border-radius: var(--radius-full);
    text-align: center;
  }

  #cenik .pricing__offer-panel p {
    max-width: 34ch;
    text-align: center;
  }
}
/* ---------- 15.8 Process pattern: centered coordinate system ---------- */
@media (min-aspect-ratio: 16 / 9) {
  #postup::before {
    background-position: calc(50% - 960px) 0;
  }

  #postup::after {
    background-position:
      calc(50% - 714px) 82px, calc(50% - 304px) 328px,
      calc(50% + 106px) 164px, calc(50% + 516px) 492px,
      calc(50% + 926px) 246px, calc(50% - 878px) 738px,
      calc(50% - 468px) 984px, calc(50% - 58px) 820px,
      calc(50% + 352px) 1148px, calc(50% + 762px) 902px,
      calc(50% - 632px) 1394px, calc(50% + 188px) 1560px;
  }
}

/* CTA hover fill: retain the rounded inset sweep and seal its perimeter. */
.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow:
    var(--shadow),
    inset 0 -4em 0 0 var(--clr-primary),
    inset 0 0 0 3px var(--clr-primary);
}
/* Shared rhythm between an eyebrow label and its heading. */
.section__eyebrow,
.spoluprace .section__eyebrow,
#kdo-jsem .about__text .section__eyebrow {
  margin-bottom: var(--space-eyebrow-title);
}
/* An eyebrow must be a block participant for its vertical rhythm to apply. */
.section__eyebrow {
  display: flex;
  width: fit-content;
}

.section__head--center .section__eyebrow,
#postup .section__head .section__eyebrow,
.cta__inner .section__eyebrow {
  margin-inline: auto;
}
/* Explicit, shared label-to-heading spacing. */
.section__eyebrow {
  margin-bottom: 0;
}

/* Final shared label-to-heading rhythm; keeps section variants from overriding it. */
.section__eyebrow,
.spoluprace .section__eyebrow,
#kdo-jsem .about__text .section__eyebrow {
  margin: 0;
}

.section__eyebrow + .section__title,
.cta__eyebrow + .cta__title {
  margin-top: var(--space-eyebrow-title);
}
/* Secondary CTA: keep the same rounded fill without a residual outline. */
.btn--ghost:hover,
.btn--ghost:focus-visible {
  box-shadow:
    inset 0 -4em 0 0 var(--clr-primary),
    inset 0 0 0 3px var(--clr-primary);
}
/* Shared CTA cadence: the consultation note and contact links move with the primary buttons. */
#postup .note .note__cta.btn,
#kontakt .cta__contact-card {
  transition:
    color var(--transition-cta-color),
    box-shadow var(--transition-cta-fill),
    border-color var(--transition-cta-border),
    background-color var(--transition),
    transform 150ms ease;
}
/* Co získáte: reuse the hero CTA pair on the sage surface. */
.spoluprace__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.section--sage .spoluprace__actions .btn--ghost {
  color: var(--clr-ivory);
  border-color: color-mix(in srgb, var(--clr-ivory) 38%, transparent);
}

.section--sage .spoluprace__actions .btn--ghost:hover,
.section--sage .spoluprace__actions .btn--ghost:focus-visible {
  color: var(--clr-ivory);
  border-color: var(--clr-primary);
}

@media (max-width: 600px) {
  .spoluprace__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .spoluprace__actions .btn { width: 100%; }
}
/* Secondary CTA arrows use the same quick lateral pulse as the coverflow controls. */
@media (prefers-reduced-motion: no-preference) {
  .hero__actions .btn--ghost:hover i,
  .spoluprace__actions .btn--ghost:hover i {
    animation: coverflow-chevron-next .32s ease-in-out infinite alternate;
  }
}
/* Contact methods: keep three compact cards low and give them the full section width. */
@media (min-width: 768px) {
  #kontakt .cta__inner {
    /* The contact grid must never be wider than its centred parent. */
    width: min(64rem, calc(100vw - var(--space-12)));
    max-width: none;
    margin-inline: auto;
  }
  #kontakt .cta__contacts {
    width: 100%;
    max-width: none;
    margin: var(--space-2) 0 0;
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #kontakt .cta__contact-card {
    min-height: calc(var(--space-12) + var(--space-16));
    padding: var(--space-4);
  }
}
/* Footer after removing navigation: distribute the three remaining columns. */
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1.5fr 1fr 1.4fr; }
}
/* Footer credit: PAKOŇ mark on the existing brand-green footer surface. */
.footer__credit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  text-align: right;
}

.footer__credit span {
  white-space: nowrap;
}

.footer__credit a {
  display: block;
  line-height: 0;
  transform: translateY(-.25rem);
  transition: transform var(--transition);
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
  transform: translateY(-.25rem) scale(1.05);
}

.footer__credit picture,
.footer__credit img {
  display: block;
}

.footer__credit img {
  width: clamp(4.5rem, 6vw, 6.5rem);
  height: auto;
}

@media (max-width: 700px) {
  .footer__bottom {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  .footer__credit {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}