/* ============================================================
   KRE ADVISORY · Design System v4 (KRE rebrand)
   Palette "Uhlová & lesní" · Avenir Bold uppercase headlines
   Used by index (snap-scroll + chevron wipes) and inner pages.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&display=swap');

:root{
  /* palette */
  --green: #2F5D50;
  --green-deep: #244A40;
  --paper: #F7F5F2;
  --paper-2: #D9D4CC;
  --ink: #2F3437;
  --muted: #5F676C;
  --accent: #A8B0B6;
  --line: rgba(47,52,55,0.14);

  /* fonts */
  --headline: 'Avenir Next', 'Avenir', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', 'Playfair Display', serif;

  /* legacy tokens (some old HTML still references them) — remap to palette */
  --bg-900: var(--paper);
  --bg-800: var(--paper-2);
  --text-100: var(--ink);
  --text-200: var(--ink);
  --text-300: var(--muted);
  --sky: var(--green);

  --ease: cubic-bezier(.6,.05,.05,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
html, body{
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg{ display:block; max-width:100%; }

/* ─── Skip to content (a11y) ─── */
.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--green); color: var(--paper);
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  border-radius: 0;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ─── Partner / collaboration links ─── */
.value-list a{ text-decoration: underline; text-decoration-color: rgba(47,93,80,.35); text-underline-offset: 3px; transition: text-decoration-color .2s ease, color .2s ease; }
.value-list a:hover{ text-decoration-color: var(--green); color: var(--green); }

/* ─── Legal / policy pages ─── */
.legal-prose{ max-width: 780px; }
.legal-prose h2{ font-family: var(--headline); font-weight: 700; text-transform: none; letter-spacing: normal; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 44px 0 14px; }
.legal-prose > h2:first-child, .legal-prose > *:first-child{ margin-top: 0; }
.legal-prose p{ margin-bottom: 16px; color: var(--muted); line-height: 1.75; }
.legal-prose a{ color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose strong{ color: var(--ink); font-weight: 600; }
.legal-prose ul{ list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-prose li{ position: relative; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.legal-prose li::before{ content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); }
.legal-prose .legal-box{ background: var(--paper-2); border-left: 3px solid var(--green); padding: 20px 24px; margin: 0 0 20px; }
.legal-prose .legal-box p{ margin-bottom: 6px; }
.legal-prose .legal-meta{ margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ─── Contact form (bot-protected) ─── */
.contact-form{ display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.contact-form .form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px){ .contact-form .form-row{ grid-template-columns: 1fr; } }
.contact-form .form-field{ display: flex; flex-direction: column; gap: 7px; }
.contact-form label{ font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.contact-form label .opt{ text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea{
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 13px 15px; width: 100%; transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus{ outline: none; border-color: var(--green); }
.contact-form textarea{ resize: vertical; min-height: 120px; }
.contact-form .form-consent{ flex-direction: row; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.5; }
.contact-form .form-consent input{ width: auto; margin-top: 2px; }
.contact-form .form-consent a{ color: var(--green); text-decoration: underline; }
.contact-form button[type=submit]{ align-self: flex-start; }
.contact-form .hp-field{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: 0; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; border:0; background:none; cursor:pointer; color:inherit; }
ul{ list-style:none; }

/* ─── Layout ─── */
.container{
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
@media (max-width: 720px){ .container{ padding: 0 22px; } }

/* ─── Headline utilities ─── */
.serif{ font-family: var(--headline); font-style: normal; font-weight: inherit; }
.section-overline{
  display: inline-block;
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.label-chip{
  --lc-w: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 24px;
  border: 0; border-radius: 0;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(247,245,242,0.6);
  backdrop-filter: blur(8px);
  clip-path: polygon(
    0% 0%,
    calc(100% - var(--lc-w)) 0%,
    100% 50%,
    calc(100% - var(--lc-w)) 100%,
    0% 100%,
    var(--lc-w) 50%
  );
  filter: drop-shadow(0 0 0.5px rgba(47,52,55,0.3));
}

h1, h2, h3, h4{
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.05;
}
h1{ font-size: clamp(40px, 6.4vw, 96px); letter-spacing: -0.025em; }
h2{ font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -0.015em; }
h3{ font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.005em; }
h4{ font-size: clamp(14px, 1.2vw, 17px); letter-spacing: 0; }

p{ font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ─── Buttons — brand chevron pill shape ──────────────────────────
   Mirrors elements/button/1x/Artboard 1.png: chevron point on the
   right edge, chevron notch cut into the left edge. Applied via
   clip-path so the visible button matches the brand silhouette. */
.btn{
  --chev-w: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--body);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--green); color: var(--paper);
  border: 0; border-radius: 0;
  clip-path: polygon(
    0% 0%,
    calc(100% - var(--chev-w)) 0%,
    100% 50%,
    calc(100% - var(--chev-w)) 100%,
    0% 100%,
    var(--chev-w) 50%
  );
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover{ background: var(--green-deep); transform: translateY(-2px); }
.btn-primary{ background: var(--green); color: var(--paper); }
.btn-primary:hover{ background: var(--green-deep); }
.btn-sky{ background: var(--ink); color: var(--paper); }
.btn-sky:hover{ background: var(--green); }
/* Ghost (over dark bg): translucent fill, brand chevron preserved */
.btn-glass{ background: rgba(247,245,242,0.14); color: var(--paper); }
.btn-glass:hover{ background: var(--paper); color: var(--green); }
/* Inline text-link variant — no chevron shape */
.btn-ghost{
  background: transparent; color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  clip-path: none;
  letter-spacing: .14em;
}
.btn-ghost:hover{ gap: 14px; background: transparent; transform: none; color: var(--green); border-color: var(--green); }
.btn-sm{ --chev-w: 16px; padding: 10px 28px; font-size: 11px; }
.btn-lg{ --chev-w: 22px; padding: 16px 36px; font-size: 13px; }
.btn svg{ flex: 0 0 auto; }

/* ─── KRE LOGO (chevron + KRE letterforms) ─── */
.logo-fill    { fill: var(--green); transition: fill .4s var(--ease); }
.logo-knockout{ fill: var(--paper); transition: fill .4s var(--ease); }

.logo{ display: inline-flex; align-items: center; }
.logo svg{ width: 100%; height: 100%; display: block; }
.logo-text{ display: none; } /* hide legacy text — logo SVG carries the wordmark */

.site-header .logo{ width: 46px; height: 46px; }

/* ─── Header / Nav ─── */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), color .4s var(--ease), opacity .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Hidden while intro overlay is playing */
.intro-playing .site-header{
  opacity: 0;
  pointer-events: none;
}
.site-header.scrolled{
  background: rgba(247,245,242,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.site-header.on-dark{ color: var(--paper); }
.site-header.on-dark.scrolled{ background: rgba(36,74,64,0.78); border-color: rgba(255,255,255,0.12); }
.site-header.on-dark .main-nav a{ color: var(--paper); }
.site-header.on-dark .main-nav a::after{ background: var(--paper); }
.site-header.on-dark .lang-toggle button{ color: var(--paper); }
.site-header.on-dark .btn-primary{ background: var(--paper); color: var(--green); border-color: var(--paper); }
.site-header.on-dark .btn-primary:hover{ background: var(--paper-2); border-color: var(--paper-2); }
.site-header.on-dark .logo-fill{ fill: var(--paper); }
.site-header.on-dark .logo-knockout{ fill: var(--green); }
.site-header.on-dark .menu-toggle span{ background: var(--paper); }

.header-inner{
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.main-nav{
  display: flex; align-items: center; gap: 32px;
}
.main-nav a{
  position: relative;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  font-weight: 500;
  transition: color .3s var(--ease);
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--green);
  transition: width .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after{ width: 100%; }
.main-nav a.active{ color: var(--green); }

.nav-dropdown{ position: relative; }
.nav-dropdown > a{ cursor: pointer; }
.dropdown-menu{
  position: absolute; top: 100%; left: -16px; padding-top: 14px;
  min-width: 280px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
  z-index: 10;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu{ opacity: 1; visibility: visible; }
.dropdown-menu a{
  display: flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-size: 13px; letter-spacing: .04em; text-transform: none;
  color: var(--ink);
  font-weight: 500;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.dropdown-menu a::after{ display: none; }
.dropdown-menu a:last-child{ border-bottom: 0; }
.dropdown-menu a:hover{ background: var(--paper-2); color: var(--green); }
.dropdown-menu a svg{ color: var(--green); }
/* Fix: dropdown links must stay dark even when the header is over a dark hero */
.site-header.on-dark .dropdown-menu a{ color: var(--ink); }
.site-header.on-dark .dropdown-menu a:hover{ color: var(--green); }

.header-right{ display: flex; align-items: center; gap: 18px; }
.lang-toggle{
  display: inline-flex; align-items: center; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; letter-spacing: .12em;
}
.lang-toggle button{
  padding: 5px 11px; border-radius: 999px;
  font-weight: 500; color: var(--muted);
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang-toggle button.active{ background: var(--green); color: var(--paper); }

.menu-toggle{ display: none; flex-direction: column; gap: 4px; padding: 6px; }
.menu-toggle span{ width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
@media (max-width: 980px){
  .main-nav{ display: none; }
  .header-right .lang-toggle{ display: none; }
  .menu-toggle{ display: flex; }
}

.mobile-nav{
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 380px);
  background: var(--paper);
  padding: 100px 28px 40px;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  z-index: 90;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-nav.open{ transform: translateX(0); }
.mobile-nav a{
  font-family: var(--headline); font-weight: 700;
  font-size: 16px; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a[style]{ font-family: var(--body); font-weight: 500; text-transform: none; border: 0; }
.mobile-nav-bottom{
  margin-top: auto; padding-top: 24px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}

/* ─── Snap-scroll homepage shell ─── */
.snap-host{ scroll-snap-type: y proximity; }
.screen{
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; align-items: center;
  padding: 110px 0 60px;
}
.screen .container{ position: relative; z-index: 2; width: 100%; }

.bg-paper{ background: var(--paper); }
.bg-paper-2{ background: var(--paper); }
.bg-green{ background: var(--green); color: var(--paper); }
.bg-ink{ background: var(--ink); color: var(--paper); }

/* ─── Chevron wipe — brand artboard PNGs ──────────────────────────
   The .chev-fill div renders the actual brand artboard PNG (1920×1080,
   green chevron art on white) as background. Each direction maps to
   one artboard:
     • left   → Artboard 2 (right-arrow chevron)
     • right  → Artboard 3 (left-bulk chevron)
     • top    → Artboard 5 (pyramid)
     • bottom → Artboard 1 (inverted pyramid)
   At progress=1 the PNG fully covers the section; during scroll it
   slides in from the matching direction. */
[data-dir]{ position: relative; }
[data-dir] > .chev-bg{
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  overflow: hidden;
}
[data-dir] > .chev-bg .chev-fill{
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  will-change: transform;
  transform: translate(var(--tx, 0%), var(--ty, 0%));
}
/* Wipe-through: chevron enters one side of the viewport, crosses
   the centre at progress≈0.5, and exits the opposite side by
   progress=1 — so the section's content lands on a clean,
   single-colour background once you've stopped scrolling. */
[data-dir="left"] > .chev-bg .chev-fill{
  background-image: url('../elements/1x/Artboard 2.png');
  --tx: calc((var(--progress, 0) * 2 - 1) * 110%);
}
[data-dir="right"] > .chev-bg .chev-fill{
  background-image: url('../elements/1x/Artboard 3.png');
  --tx: calc((1 - var(--progress, 0) * 2) * 110%);
}
[data-dir="top"] > .chev-bg .chev-fill{
  background-image: url('../elements/1x/Artboard 5.png');
  --ty: calc((var(--progress, 0) * 2 - 1) * 110%);
}
[data-dir="bottom"] > .chev-bg .chev-fill{
  background-image: url('../elements/1x/Artboard 1.png');
  --ty: calc((1 - var(--progress, 0) * 2) * 110%);
}
/* Lift content above the wipe layer */
[data-dir] > .container{ position: relative; z-index: 2; }
/* Content fade-in is reserved for snap-scroll homepage where each section
   is full viewport. On inner pages content stays visible — the wipe
   plays in the background as you scroll past. */
.snap-host [data-dir] > .container{
  opacity: clamp(0, calc((var(--progress, 0) - 0.6) / 0.4), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--progress, 0) - 0.6) / 0.4), 1)) * 22px));
  transition: none;
}

/* ─── Hero (homepage) ─── */
.hero{ position: relative; min-height: 100vh; display: flex; align-items: center; padding: 110px 0 80px; overflow: hidden; }
.hero-bg-img,
.hero-bg-gradient,
.hero-grid-lines,
.hero-glow,
.hero-glow-2{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-img{
  background-position: center; background-size: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero-bg-gradient{
  z-index: 1;
  background: linear-gradient(135deg, rgba(47,93,80,0.55) 0%, rgba(47,52,55,0.88) 100%);
}
.hero-grid-lines{ display: none; }
.hero-glow, .hero-glow-2{ display: none; }

.hero .container{ position: relative; z-index: 2; color: var(--paper); }
.hero-content{ max-width: 880px; }
.hero h1{
  color: var(--paper);
  font-size: clamp(44px, 8vw, 132px);
  margin-top: 22px;
  margin-bottom: 28px;
}
.hero h1 .serif{ color: var(--paper-2); text-transform: uppercase; }
.hero .label-chip{
  background: rgba(247,245,242,0.08);
  color: var(--paper-2);
  filter: drop-shadow(0 0 0.5px rgba(247,245,242,0.3));
}
.hero-sub{
  color: rgba(247,245,242,0.86);
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.55;
  max-width: 560px; margin-bottom: 36px;
}
.hero-buttons{ display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-top: 1px solid rgba(247,245,242,0.18); padding-top: 28px; max-width: 760px;
}
@media (max-width: 720px){ .hero-stats{ grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.hero-stat{ display: flex; flex-direction: column; gap: 4px; color: var(--paper); }
.hero-stat .number{ font-family: var(--headline); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.01em; }
.hero-stat .label{ font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0.7; }

/* Floating property card (hero) */
.hero-float-card{
  position: absolute; right: 48px; bottom: 80px; z-index: 3;
  width: 320px;
  animation: hero-text-in 1s var(--ease) .8s both;
}
@media (max-width: 1180px){ .hero-float-card{ display: none; } }
.hero-prop-card{
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--ink);
}
.prop-card-img{ width: 100%; height: 160px; object-fit: cover; display: block; }
.prop-card-body{ padding: 18px 20px 20px; }
.prop-card-tag{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.prop-card-tag svg{ width: 14px; height: 14px; }
.prop-card-title{
  font-family: var(--headline); font-weight: 700; text-transform: uppercase;
  font-size: 15px; line-height: 1.2; letter-spacing: 0;
  margin-bottom: 14px;
}
.prop-card-stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.prop-card-stat .v{ display: block; font-family: var(--headline); font-weight: 700; font-size: 16px; color: var(--ink); }
.prop-card-stat .k{ font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.scroll-indicator{
  position: absolute; left: 50%; bottom: 28px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(247,245,242,0.6);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  animation: hero-text-in 1s var(--ease) 1.2s both;
}
.scroll-line{ width: 1px; height: 36px; background: rgba(247,245,242,0.4); animation: scroll-pulse 2.4s infinite ease-in-out; }
@keyframes scroll-pulse{ 0%,100%{ transform: scaleY(1); transform-origin: top; } 50%{ transform: scaleY(0.3); transform-origin: top; } }
@keyframes hero-text-in{ from{ opacity: 0; transform: translateY(24px); } to{ opacity: 1; transform: translateY(0); } }

/* ─── Page hero (inner pages) ─── */
.page-hero{
  position: relative; padding: 180px 0 100px; min-height: 380px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.page-hero-bg, .page-hero-overlay{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero-bg{ background-position: center; background-size: cover; filter: saturate(0.85); }
.page-hero-overlay{ z-index: 1; background: linear-gradient(135deg, rgba(47,93,80,0.6) 0%, rgba(47,52,55,0.92) 100%); }
.page-hero .container{ position: relative; z-index: 2; color: var(--paper); }
.page-hero h1{ color: var(--paper); font-size: clamp(36px, 5.6vw, 84px); }
.page-hero h1 .serif{ color: var(--paper-2); text-transform: uppercase; }

.breadcrumbs{ display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,245,242,0.7); margin-bottom: 18px; }
.breadcrumbs a:hover{ color: var(--paper); }
.breadcrumbs .sep{ opacity: 0.5; }
.page-hero .section-overline{ color: rgba(247,245,242,0.7); }

.page-hero-inner{ max-width: 880px; }

/* ─── Marquee ─── */
.marquee-section{
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marquee-track{
  display: flex; gap: 60px; align-items: center;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
}
.marquee-item{
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper-2);
}
.mi-dot{ width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ─── Stats section ─── */
.stats-section{ padding: 80px 0; background: var(--paper); }
.stats-section.compact{ padding: 60px 0; }
.stats-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 42px;
  border-top: 1px solid var(--line); padding-top: 38px;
}
@media (max-width: 880px){ .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat-cell{ display: flex; flex-direction: column; gap: 10px; }
.stat-number{
  font-family: var(--headline); font-weight: 700;
  font-size: clamp(40px, 5vw, 80px); line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}
.stat-label{ font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ─── Dark "Záruka odbornosti" stats variant ─── */
.stats-section.dark{ background: var(--ink); }
.stats-section.dark .stats-head{ margin-bottom: 30px; }
.stats-section.dark .stats-head .section-overline{ color: rgba(247,245,242,.55); }
.stats-section.dark .stats-grid{ border-top-color: rgba(247,245,242,.16); }
.stats-section.dark .stat-number{ color: var(--paper); }
.stats-section.dark .stat-label{ color: rgba(247,245,242,.55); }

/* ─── Services section ─── */
.services-section{ padding: 90px 0; background: var(--paper); }
.services-header{
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 50px; flex-wrap: wrap;
}
.services-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.service-tile{
  position: relative;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), color .35s var(--ease);
  display: flex; flex-direction: column;
  min-height: 280px;
}
.service-tile:nth-child(3n){ border-right: 0; }
.service-tile.feature{
  grid-column: span 2; grid-row: span 2;
  padding: 0;
  display: grid; grid-template-rows: 1fr; grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 380px;
}
.service-tile.feature .s-img{ width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.service-tile.feature > div{ padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.service-tile:hover{ background: var(--green); color: var(--paper); }
.service-tile:hover .s-num,
.service-tile:hover .s-title,
.service-tile:hover .s-desc,
.service-tile:hover .s-arrow{ color: var(--paper); }
.service-tile:hover .s-arrow{ border-color: var(--paper); }
.s-num{
  font-family: var(--headline); font-weight: 700;
  font-size: 13px; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 18px;
  transition: color .35s var(--ease);
}
.s-title{
  font-family: var(--headline); font-weight: 700; text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 24px); line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  color: var(--ink);
  transition: color .35s var(--ease);
}
.s-desc{
  font-size: 14px; line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color .35s var(--ease);
}
.s-arrow{
  margin-top: auto;
  display: inline-block;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  width: max-content;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.s-icon{ width: 36px; height: 36px; color: var(--green); margin-bottom: 18px; }
.s-icon svg{ width: 100%; height: 100%; }
@media (max-width: 980px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-tile.feature{ grid-column: span 2; grid-template-columns: 1fr; }
  .service-tile.feature .s-img{ min-height: 220px; }
  .service-tile:nth-child(3n){ border-right: 1px solid var(--line); }
  .service-tile:nth-child(2n){ border-right: 0; }
}
@media (max-width: 640px){
  .services-grid{ grid-template-columns: 1fr; }
  .service-tile{ border-right: 0; }
}

/* ─── Approach section ─── */
.approach-section{ padding: 100px 0; background: var(--green); color: var(--paper); }
.approach-section h2, .approach-section .approach-step h4{ color: var(--paper); }
.approach-section .section-overline{ color: rgba(247,245,242,0.7); }
.approach-grid{
  display: grid; grid-template-columns: 1fr 0.95fr; gap: 60px;
  align-items: center;
}
@media (max-width: 980px){ .approach-grid{ grid-template-columns: 1fr; gap: 40px; } }
.approach-steps{
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(247,245,242,0.18);
}
.approach-step{
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(247,245,242,0.18);
}
.step-num{
  font-family: var(--headline); font-weight: 700;
  font-size: 13px; letter-spacing: .14em;
  color: var(--paper-2);
}
.step-body h4{ margin-bottom: 6px; }
.step-body p{ color: rgba(247,245,242,0.78); font-size: 14px; line-height: 1.55; }

.approach-visual{
  position: relative;
  aspect-ratio: 4/5; max-width: 480px; margin-left: auto;
  overflow: visible;
}
.approach-img-main{
  width: 100%; height: 100%; object-fit: cover;
}
.approach-img-accent{
  position: absolute; right: -28px; bottom: -28px;
  width: 55%; aspect-ratio: 4/3; object-fit: cover;
  border: 6px solid var(--green);
}
.approach-badge{
  position: absolute; top: -18px; left: -18px;
  background: var(--paper); color: var(--ink);
  padding: 14px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.ab-val{ font-family: var(--headline); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.ab-key{ font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ─── Parallax divider quote ─── */
.parallax-divider{
  position: relative; min-height: 360px;
  overflow: hidden;
  display: flex; align-items: center;
}
.parallax-divider-bg{
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  filter: saturate(0.7);
}
.parallax-divider-overlay{
  position: relative; z-index: 1; width: 100%;
  background: linear-gradient(135deg, rgba(47,93,80,0.7) 0%, rgba(47,52,55,0.85) 100%);
  padding: 80px 0;
}
.parallax-divider-text{ text-align: center; max-width: 880px; margin: 0 auto; padding: 0 24px; color: var(--paper); }
.parallax-divider-text h2{ color: var(--paper); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; text-transform: none; font-weight: 400; font-style: italic; font-family: var(--serif); letter-spacing: 0; }

/* ─── Clients section ─── */
.clients-section{ padding: 90px 0; background: var(--paper); }
.clients-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px){ .clients-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .clients-grid{ grid-template-columns: 1fr; } }
.client-tile{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 26px;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.client-tile:hover{ background: var(--paper-2); border-color: var(--paper-2); }
.ct-icon{ width: 42px; height: 42px; color: var(--green); margin-bottom: 22px; }
.ct-icon svg{ width: 100%; height: 100%; }
.ct-title{
  font-family: var(--headline); font-weight: 700; text-transform: uppercase;
  font-size: 15px; letter-spacing: 0; line-height: 1.15;
  margin-bottom: 12px; color: var(--ink);
}
.ct-desc{ font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ─── Testimonials ─── */
.testimonials-section{ padding: 90px 0; background: var(--paper); }
.testimonials-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px){ .testimonials-grid{ grid-template-columns: 1fr; } }
.testimonial-card{
  background: var(--paper); border: 1px solid var(--line);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 18px;
}
.t-stars{ display: flex; gap: 4px; color: var(--green); }
.t-stars svg{ width: 16px; height: 16px; fill: var(--green); stroke: var(--green); }
.t-text{ font-size: 15px; line-height: 1.65; color: var(--ink); flex: 1; }
.t-author{ border-top: 1px solid var(--line); padding-top: 16px; }
.t-name{ font-family: var(--headline); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0; color: var(--ink); margin-bottom: 4px; }
.t-role{ font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ─── Blog cards ─── */
.blog-section{ padding: 90px 0; background: var(--paper); }
.blog-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px){ .blog-grid{ grid-template-columns: 1fr; } }
.blog-card{ background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease); overflow: hidden; }
.blog-card:hover{ transform: translateY(-4px); }
.bc-img{ width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.bc-img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .bc-img img{ transform: scale(1.06); }
.bc-body{ padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bc-tag{ font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.bc-title{ font-family: var(--headline); font-weight: 700; text-transform: uppercase; font-size: 17px; line-height: 1.2; color: var(--ink); }
.bc-title a{ color: inherit; }
.bc-excerpt{ font-size: 14px; line-height: 1.55; color: var(--muted); }
.bc-meta{ margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bc-meta a{ color: var(--green); font-weight: 600; }

/* ─── CTA ─── */
.cta-section{ position: relative; padding: 110px 0; overflow: hidden; }
.cta-bg, .cta-overlay, .cta-glow{ position: absolute; inset: 0; z-index: 0; }
.cta-bg{ background-position: center; background-size: cover; filter: saturate(0.7); }
.cta-overlay{ z-index: 1; background: linear-gradient(135deg, rgba(47,93,80,0.85) 0%, rgba(36,74,64,0.95) 100%); }
.cta-glow{ display: none; }
.cta-section .container{ position: relative; z-index: 2; color: var(--paper); }
.cta-inner{ max-width: 880px; margin: 0 auto; text-align: center; }
.cta-inner h2{ color: var(--paper); margin-bottom: 22px; }
.cta-inner p{ color: rgba(247,245,242,0.86); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; max-width: 620px; margin: 0 auto 36px; }
.cta-buttons{ display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

/* ─── Glass / detail card (used on inner pages) ─── */
.glass-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 26px;
}
.detail-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 980px){ .detail-grid{ grid-template-columns: 1fr; gap: 40px; } }

/* ─── Footer ─── */
.site-footer{
  background: var(--ink); color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 56px; }
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap: 40px; } }
.site-footer .logo{ width: 84px; height: 84px; margin-bottom: 22px; display: block; }
.site-footer .logo .logo-fill{ fill: var(--paper); }
.site-footer .logo .logo-knockout{ fill: var(--ink); }
.footer-tagline{ color: rgba(247,245,242,0.72); font-size: 14px; line-height: 1.55; max-width: 320px; margin-bottom: 22px; }
.footer-social{ display: flex; gap: 12px; }
.footer-social a{
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247,245,242,0.2);
  font-size: 14px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover{ background: var(--paper); color: var(--green); border-color: var(--paper); }
.footer-col h4{
  color: var(--accent); margin-bottom: 18px;
  font-size: 11px; letter-spacing: .18em; font-weight: 500;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ font-size: 14px; color: rgba(247,245,242,0.85); transition: color .25s var(--ease); }
.footer-col a:hover{ color: var(--paper-2); }
.footer-col address{ font-style: normal; color: rgba(247,245,242,0.85); font-size: 14px; line-height: 1.7; }
.footer-col address a{ display: inline; color: rgba(247,245,242,0.85); }
.footer-col address a:hover{ color: var(--paper-2); }
.footer-bottom{
  border-top: 1px solid rgba(247,245,242,0.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247,245,242,0.55);
}
.footer-bottom a{ color: rgba(247,245,242,0.55); margin-left: 14px; transition: color .25s var(--ease); }
.footer-bottom a:hover{ color: var(--paper); }

/* ─── Forms (kontakt) ─── */
.contact-form{ display: grid; gap: 18px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px){ .form-row{ grid-template-columns: 1fr; } }
.form-field label{
  display: block;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select{
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--body); font-size: 15px;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus{ outline: none; border-color: var(--green); }
.form-field input.error,
.form-field textarea.error,
.form-field select.error{ border-color: #C14B3F; }
.field-error{ display: block; min-height: 16px; font-size: 11px; color: #C14B3F; margin-top: 6px; }
.contact-form textarea{ min-height: 140px; resize: vertical; }
.form-success{
  display: none;
  padding: 24px;
  background: var(--green); color: var(--paper);
  border-left: 3px solid var(--paper-2);
  font-size: 14px;
}

/* ─── Accordion (used on inner pages) ─── */
.accordion-item{ border-bottom: 1px solid var(--line); }
.accordion-btn{
  width: 100%; text-align: left;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--headline); font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 1.3vw, 17px); letter-spacing: 0;
  color: var(--ink);
}
/* Single toggle indicator only — the .accordion-chevron span (+ → ×) is the
   one indicator. The old ::after "+" was removed so rows show ONE plus, not two. */
.accordion-content{
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.accordion-item.open .accordion-content{ max-height: 1000px; }
.accordion-content > *{ padding-bottom: 22px; }

/* ─── Reveal animations ─── */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; }

/* ─── Cursor — disabled in new design ─── */
.cursor-dot,
.cursor-ring{ display: none !important; }

/* ─── Section intro on inner pages ─── */
.section{ padding: 90px 0; }
.section.alt{ background: var(--paper); }
.section-head{ max-width: 760px; margin-bottom: 50px; }
.section-head h2{ margin-bottom: 14px; }
.section-head p{ color: var(--muted); }

/* ─── Generic grid utilities used in inner pages ─── */
.grid-cards{ display: grid; gap: 24px; }
.grid-cards.cols-2{ grid-template-columns: repeat(2, 1fr); }
.grid-cards.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid-cards.cols-4{ grid-template-columns: repeat(4, 1fr); }
.grid-cards.auto{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 980px){ .grid-cards.cols-3, .grid-cards.cols-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .grid-cards.cols-2, .grid-cards.cols-3, .grid-cards.cols-4{ grid-template-columns: 1fr; } }

/* ─── Photo card ─── */
.photo-card{ position: relative; overflow: hidden; aspect-ratio: 4/5; }
.photo-card img{ width: 100%; height: 100%; object-fit: cover; }

/* ─── Service sub-nav (sub-pages) ─── */
.service-subnav{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 78px; z-index: 40;
}
.service-subnav-inner{
  display: flex; gap: 4px; overflow-x: auto;
  padding: 12px 0;
}
.subnav-link{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.subnav-link:hover{ color: var(--ink); }
.subnav-link.active{ background: var(--green); color: var(--paper); border-color: var(--green); }
.subnav-link svg, .subnav-link .icon-sm svg{ width: 14px; height: 14px; }
.icon-sm{ display: inline-flex; align-items: center; }

/* ─── Detail page (sub-page) layout ─── */
.detail-grid.with-sidebar{
  grid-template-columns: 1.7fr 1fr;
  align-items: start;
}
@media (max-width: 980px){ .detail-grid.with-sidebar{ grid-template-columns: 1fr; } }

.lead-text{
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7;
  border-left: 2px solid var(--green);
  padding-left: 22px;
  color: var(--ink);
  margin-bottom: 36px;
}
.lead-text strong{ font-weight: 600; color: var(--ink); }

.content-h2{
  font-family: var(--headline); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 50px 0 22px;
}
.content-h2:first-of-type{ margin-top: 0; }

.use-cases-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 44px; }
@media (max-width: 720px){ .use-cases-grid{ grid-template-columns: 1fr; } }
.use-case-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
}
.use-case-card .card-icon{ width: 30px; height: 30px; color: var(--green); margin-bottom: 14px; }
.use-case-card h3{
  font-size: 15px; letter-spacing: 0; margin-bottom: 8px;
  color: var(--ink);
}
.use-case-card p{ font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Timeline (process steps) */
.timeline{ position: relative; padding-left: 18px; }
.timeline::before{
  content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px;
  width: 1px; background: var(--line);
}
.timeline-step{
  position: relative;
  display: grid; grid-template-columns: 36px 1fr; gap: 16px;
  padding: 14px 0;
}
.timeline-dot{
  width: 36px; height: 36px;
  background: var(--green); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--headline); font-weight: 700; font-size: 14px;
  position: relative; z-index: 1;
  margin-left: -18px;
}
.timeline-body h4{ margin-bottom: 6px; }
.timeline-body p{ font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Accordion body inside sub-pages */
.accordion-body{ padding: 0; overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.accordion-item.open .accordion-body{ max-height: 2400px; }

/* ─── Oceňování: guarantee callout, value groups, rich FAQ ─── */
.callout{ background: var(--paper-2); border-left: 3px solid var(--green); padding: 22px 26px; margin: 0 0 44px; }
.callout .section-overline{ margin-bottom: 8px; }
.callout p{ font-size: 14px; line-height: 1.65; color: var(--ink); margin: 0; }

.value-list{ display: flex; flex-direction: column; gap: 10px; }
.value-list li{ position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.value-list li::before{ content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); }

.accordion-body ul{ list-style: none; margin: 0; padding: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.accordion-body li{ position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.accordion-body li::before{ content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--green); transform: rotate(45deg); }
.accordion-body li strong{ color: var(--ink); font-weight: 600; }
.accordion-body .faq-rich{ padding: 18px 0 24px; }
.accordion-body .faq-rich p{ padding: 0; margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.accordion-body .faq-rich p:last-child{ margin-bottom: 0; }
.accordion-body .faq-rich p.faq-sub{ font-family: var(--headline); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0; color: var(--ink); margin: 14px 0 4px; }
.accordion-body .faq-rich p.faq-sub:first-child{ margin-top: 0; }
.accordion-body hr{ border: 0; border-top: 1px solid var(--line); margin: 0; }
.accordion-body p{ padding: 18px 0 24px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.accordion-body p strong{ color: var(--ink); font-weight: 600; }
.accordion-chevron{
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 400; color: var(--green); font-size: 22px;
  transition: transform .3s var(--ease);
}
.accordion-item.open .accordion-chevron{ transform: rotate(45deg); }

/* Sub-page sidebar */
.sidebar-sticky{ position: sticky; top: 140px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 980px){ .sidebar-sticky{ position: static; } }
.sidebar-cta-card{
  background: var(--green); color: var(--paper);
  padding: 26px 24px;
}
.sidebar-cta-card h3{
  color: var(--paper);
  font-size: 17px; letter-spacing: 0; margin-bottom: 12px;
}
.sidebar-cta-card p{ color: rgba(247,245,242,0.85); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.sidebar-checklist{ list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-checklist li{
  position: relative; padding-left: 22px;
  font-size: 13px; color: rgba(247,245,242,0.92);
}
.sidebar-checklist li::before{
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--paper-2); font-weight: 700;
}
.sidebar-cta-card .btn{
  background: var(--paper); color: var(--green); border-color: var(--paper);
  width: 100%; justify-content: center;
}
.sidebar-cta-card .btn:hover{ background: var(--paper-2); border-color: var(--paper-2); color: var(--green-deep); }

.quick-facts-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 22px 16px;
}
.quick-facts-card h4{ margin-bottom: 16px; color: var(--ink); }
.fact-row{
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.fact-row:first-of-type{ border-top: 0; }
.fact-label{ font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.fact-value{ font-family: var(--headline); font-weight: 700; font-size: 13px; color: var(--ink); }

/* Related services grid (sub-page footer) */
.related-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 980px){ .related-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .related-grid{ grid-template-columns: 1fr; } }
.related-link{
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--headline); font-weight: 700;
  font-size: 14px; letter-spacing: 0;
  color: var(--ink);
  text-transform: uppercase;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.related-link:hover{ background: var(--green); color: var(--paper); border-color: var(--green); }
.rel-icon{ width: 24px; height: 24px; flex: 0 0 auto; color: var(--green); transition: color .25s var(--ease); }
.related-link:hover .rel-icon{ color: var(--paper); }

.page-hero-icon{
  width: 42px; height: 42px;
  color: var(--paper-2);
  margin-bottom: 18px;
}

/* ─── Welcome Screen ─── */
#welcome-screen{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
#welcome-screen.fade-out{ opacity: 0; }
#welcome-screen.intro-done{ display: none; }

.welcome-logo{
  width: clamp(140px, 20vw, 260px);
  height: clamp(140px, 20vw, 260px);
  display: block;
  margin-bottom: 20px;
}
.welcome-logo .logo-fill    { fill: var(--paper); }
.welcome-logo .logo-knockout{ fill: var(--green-deep); }
.welcome-text{
  font-family: var(--headline);
  font-size: clamp(14px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1;
  margin: 0;
}
.welcome-scroll{
  position: absolute;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
  animation: welcomeBounce 1.6s ease-in-out infinite;
}
@keyframes welcomeBounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce){
  #welcome-screen{ display: none; }
}

/* ─── Intro Overlay ─── */
#intro-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}
#intro-overlay.intro-done{ display: none; }

.intro-panel{
  position: absolute;
  inset: 0;
  background: transparent;
  will-change: transform;
}
.intro-left  { z-index: 1; }
.intro-right { z-index: 2; }

.intro-panel img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce){
  #intro-overlay{ display: none; }
}
.page-hero-icon svg{ width: 100%; height: 100%; }

/* ─── Etický kodex — expandable principle cards ─── */
.kodex-hint{
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: -28px 0 30px;
}
.kodex-card{
  padding: 0;
  transition: border-color .3s var(--ease);
}
.kodex-card[open]{ border-color: var(--green); }
.kodex-summary{
  list-style: none;
  cursor: pointer;
  position: relative;
  display: block;
  padding: 28px 26px;
  transition: background .25s var(--ease);
}
.kodex-summary::-webkit-details-marker{ display: none; }
.kodex-summary:hover{ background: rgba(47,93,80,0.035); }
.kodex-summary:focus-visible{ outline: 2px solid var(--green); outline-offset: -3px; }
.kodex-card .s-num{ display: block; margin-bottom: 14px; }
.kodex-title{ margin: 0 0 16px; padding-right: 28px; }
.kodex-tags{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.kodex-tags li{
  font-family: var(--body);
  font-size: 12px; line-height: 1.3; letter-spacing: .01em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 11px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.kodex-card[open] .kodex-tags li{ border-color: rgba(47,93,80,0.28); color: var(--ink); }
.kodex-toggle{
  position: absolute; top: 25px; right: 22px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green);
  font-family: var(--headline); font-weight: 300; font-size: 26px; line-height: 1;
  transition: transform .35s var(--ease);
}
.kodex-card[open] .kodex-toggle{ transform: rotate(135deg); }
.kodex-body{ padding: 0 26px; }
.kodex-body p{
  margin: 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px; line-height: 1.72;
}
.kodex-card[open] .kodex-body{ animation: kodexReveal .42s var(--ease); }
@keyframes kodexReveal{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   MICRO-INTERACTIONS — subtle motion polish
   ═══════════════════════════════════════════════════════════ */

/* — Boxes: gentle lift + soft shadow + green border tint on hover — */
.glass-card{ transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.glass-card:hover{ transform: translateY(-5px); box-shadow: 0 24px 48px -30px rgba(47,52,55,.45); border-color: rgba(47,93,80,.32); }

.use-case-card{ transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.use-case-card:hover{ transform: translateY(-5px); box-shadow: 0 22px 44px -30px rgba(47,52,55,.4); border-color: rgba(47,93,80,.32); }

/* — Stat cells: lift + number turns green (white on the dark band) — */
.stat-cell{ transition: transform .38s var(--ease); }
.stat-cell:hover{ transform: translateY(-4px); }
.stat-number{ transition: color .38s var(--ease); }
.stat-cell:hover .stat-number{ color: var(--green); }
.stats-section.dark .stat-cell:hover .stat-number{ color: #fff; }

/* — Icons: react to their card, gentle scale + deepen — */
.s-icon, .card-icon{ transition: transform .4s var(--ease), color .32s var(--ease); }
.glass-card:hover .s-icon, .glass-card:hover .card-icon,
.use-case-card:hover .card-icon{ transform: translateY(-3px) scale(1.12); color: var(--green-deep); }

/* — Buttons: keep the lift, add a soft glow; settle on press — */
.btn:hover{ box-shadow: 0 14px 30px -16px rgba(47,93,80,.6); }
.btn:active{ transform: translateY(0); box-shadow: none; }

/* — Arrow labels slide on hover — */
.s-arrow{ transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.service-tile:hover .s-arrow, .glass-card:hover .s-arrow{ transform: translateX(5px); }

/* — Feature image: slow cinematic zoom — */
.service-tile.feature .s-img{ transition: transform .7s var(--ease), opacity .4s var(--ease); }
.service-tile.feature:hover .s-img{ transform: scale(1.05); opacity: .6; }

/* — Photo cards: image breathes inside its frame — */
.photo-card img{ transition: transform .6s var(--ease); }
.glass-card:hover .photo-card img{ transform: scale(1.045); }

/* — Headlines: wipe in from the left as the section reveals — */
.section-head h2, .content-h2{ clip-path: inset(0 -3% -12% 0); transition: clip-path .85s var(--ease) .15s; }
.section-head.reveal:not(.visible) h2, .content-h2.reveal:not(.visible){ clip-path: inset(0 100% -12% 0); }

/* — Respect reduced-motion: neutralise all of the above — */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .glass-card, .use-case-card, .stat-cell, .stat-number, .s-icon, .card-icon,
  .s-arrow, .service-tile.feature .s-img, .photo-card img{ transition:none; }
  .glass-card:hover, .use-case-card:hover, .stat-cell:hover{ transform:none; box-shadow:none; }
  .glass-card:hover .s-icon, .glass-card:hover .card-icon, .use-case-card:hover .card-icon,
  .service-tile:hover .s-arrow, .glass-card:hover .s-arrow,
  .service-tile.feature:hover .s-img, .glass-card:hover .photo-card img{ transform:none; }
  .section-head h2, .content-h2{ transition:none; clip-path:none; }
}
