/* ═══════════════════════════════════════════════════════════
   Benešovi Finance — světlý, vzdušný, lidský (inspirace: stabilita)
   Palette: teplá slonovina / hluboká zeleň textu / brandová zeleň
   Type: Manrope (základ) · Fraunces (serif akcenty) · Caveat (ruční popisky)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #FBFAF7;
  --bg-soft: #F2F5EE;
  --card: #FFFFFF;
  --ink: #1B2A20;
  --muted: #5F6E63;
  --green: #3E9553;
  --green-deep: #256B38;
  --green-soft: #6FBF80;
  --green-pale: #E3F0E3;
  --line: rgba(27, 42, 32, 0.1);
  --shadow: 0 20px 50px rgba(27, 42, 32, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
  --container: min(1160px, calc(100vw - clamp(2rem, 6vw, 6rem)));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: #fff; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: var(--container); margin-inline: auto; position: relative; }

/* ── Typo helpers ─────────────────────────────── */
.accent { color: var(--green); }
.accent em { font-style: normal; color: var(--green-deep); }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
}
.eyebrow-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  flex: none;
}

.section-title {
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
}
.section-lead {
  max-width: 34rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ── Bubliny (jemná dekorace) ─────────────────── */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--green-pale);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.bubble-1 { width: 130px; height: 130px; top: 16%; right: 4%; }
.bubble-2 { width: 70px; height: 70px; bottom: 12%; left: 42%; }
.bubble-3 { width: 110px; height: 110px; top: 8%; right: 8%; }
.bubble-4 { width: 90px; height: 90px; top: 12%; right: 12%; }
.bubble-5 { width: 120px; height: 120px; bottom: 8%; right: 6%; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(62, 149, 83, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(62, 149, 83, 0.45); }

.btn-outline {
  border-color: rgba(27, 42, 32, 0.18);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-pale); }

.btn-small { padding: 0.6rem 1.25rem; font-size: 0.88rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Preloader ─────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
}
.preloader-inner { text-align: center; }
.preloader-tree { width: 96px; height: 96px; }
.preloader-tree .pt-ring,
.preloader-tree .pt-branch {
  stroke: var(--green); stroke-width: 4.5; stroke-linecap: round; fill: none;
}
.preloader-tree .pt-leaf { fill: var(--green); opacity: 0; }
.preloader-word {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  opacity: 0;
}

/* ── Growth rail (podpis) ─────────────────────── */
.growth-rail {
  position: fixed;
  top: 0; bottom: 0; left: clamp(6px, 1.6vw, 22px);
  width: 40px;
  z-index: 30;
  pointer-events: none;
}
.growth-rail svg { width: 100%; height: 100%; overflow: visible; }
#growthPath {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.5;
}
.growth-node {
  position: absolute;
  left: 50%;
  width: 9px; height: 9px;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  transform: translateX(-50%) rotate(-45deg) scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.growth-node.is-on { transform: translateX(-50%) rotate(-45deg) scale(1); }
.growth-node[data-node="0"] { top: 24%; }
.growth-node[data-node="1"] { top: 44%; }
.growth-node[data-node="2"] { top: 64%; }
.growth-node[data-node="3"] { top: 84%; }

@media (max-width: 900px) { .growth-rail { display: none; } }

/* ── Header ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.4rem, 4vw, 3.2rem);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(27, 42, 32, 0.07);
  padding-block: 0.65rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--green); font-weight: 600; margin-left: 0.28rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark circle, .brand-mark path { stroke: var(--green); stroke-width: 6; fill: none; stroke-linecap: round; }

.site-nav { display: flex; gap: 1.8rem; }
.site-nav a {
  font-size: 0.93rem; font-weight: 600; color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px; background: var(--green); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .site-nav { display: none; } }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
}
.hero-leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 620;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }

.hero-lead { max-width: 31rem; color: var(--muted); font-size: 1.1rem; margin-bottom: 1.8rem; }

.hero-checks { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.hero-checks li { display: flex; align-items: center; gap: 0.7rem; font-size: 1rem; }
.hero-checks strong { font-weight: 700; }
.hero-checks i,
.checks-light i {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
}
.hero-checks i::after,
.checks-light i::after {
  content: "";
  position: absolute; left: 7px; top: 5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}

.hero-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hero-note { font-size: 0.85rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-photo img { width: 100%; height: auto; }

.hero-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.12rem;
  box-shadow: 0 16px 36px rgba(27, 42, 32, 0.14);
  z-index: 3;
}
.chip-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.chip-value { font-family: var(--serif); font-weight: 620; font-size: 1.08rem; color: var(--green-deep); }
.chip-duo .chip-value { font-size: 0.98rem; }
.chip-bonus { top: 6%; right: -3%; }
.chip-duo { bottom: 7%; left: -4%; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; max-width: 520px; }
  .chip-bonus { right: 0; }
  .chip-duo { left: 0; }
}

/* ── Marquee ─────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--muted);
}
.marquee-track i { color: var(--green); font-style: normal; font-size: 0.7rem; }

/* ── Rytmus sekcí ─────────────────────────────── */
.talk, .reframe, .paths, .numbers, .process, .contact {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

/* ── Rozhovor / video ─────────────────────────── */
.talk-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.talk-copy > p { color: var(--muted); max-width: 33rem; }
.talk-copy blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--green);
  padding-left: 1.3rem;
  margin: 1.8rem 0;
}
.talk-facts { display: grid; gap: 1rem; }
.talk-facts div { display: flex; flex-direction: column; gap: 0.05rem; }
.talk-facts strong { font-size: 1rem; }
.talk-facts span { color: var(--muted); font-size: 0.92rem; }

.talk-player { position: relative; display: flex; justify-content: center; }
.scribble {
  position: absolute;
  top: -2.6rem; left: 4%;
  display: flex; align-items: flex-start; gap: 0.3rem;
  z-index: 4;
  transform: rotate(-6deg);
}
.scribble span {
  font-family: var(--hand);
  font-size: 1.7rem;
  color: var(--green-deep);
  white-space: nowrap;
}
.scribble svg { width: 54px; height: 44px; margin-top: 1.2rem; }
.scribble svg path { stroke: var(--green-deep); }

.player {
  position: relative;
  width: clamp(260px, 26vw, 340px);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #0c120e;
  box-shadow: var(--shadow);
}
.player video { width: 100%; height: 100%; object-fit: cover; }
.player-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(20, 32, 24, 0.18);
  border: none; cursor: pointer;
  transition: opacity 0.3s;
}
.player-play span {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  transition: transform 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.player-play span::after {
  content: "";
  position: absolute; left: 56%; top: 50%;
  transform: translate(-50%, -50%);
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.player-play:hover span { transform: scale(1.08); }
.player.is-playing .player-play { opacity: 0; pointer-events: none; }

.player-chapters {
  position: absolute;
  top: 0.9rem; left: 0.9rem; right: 0.9rem;
  display: flex; gap: 0.5rem;
  z-index: 3;
}
.chapter {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.6rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(12, 18, 14, 0.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.3s;
}
.chapter.is-active { background: var(--green); }
.player figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(10, 16, 12, 0.8));
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

@media (max-width: 980px) {
  .talk-grid { grid-template-columns: 1fr; }
  .talk-player { order: 2; margin-top: 2.5rem; }
}

/* ── Reframe karty ─────────────────────────────── */
.reframe { padding-top: clamp(2rem, 5vw, 3.5rem); }
.reframe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}
.card {
  border-radius: 24px;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
}
.card h2 {
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.card-light {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card-sub { color: var(--muted); margin-bottom: 1.4rem; }
.friction li {
  padding: 0.75rem 0 0.75rem 1.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
  position: relative;
}
.friction li:last-child { border-bottom: none; }
.friction li::before {
  content: "×";
  position: absolute; left: 0.2rem; top: 0.7rem;
  color: #C96B5C;
  font-weight: 700;
}
.card-note { margin-top: 1.2rem; color: var(--muted); font-style: italic; font-size: 0.95rem; }

.card-green {
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.card-green h2 { color: #fff; }
.card-green > p { opacity: 0.92; margin-bottom: 1rem; }
.checks-light { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.4rem; }
.checks-light li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.checks-light i { background: rgba(255, 255, 255, 0.22); }
.card-close { margin-top: auto; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

@media (max-width: 860px) { .reframe-grid { grid-template-columns: 1fr; } }

/* ── Tři cesty ─────────────────────────────── */
.paths { background: var(--bg-soft); }
.path-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.path-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(27, 42, 32, 0.05);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
}
.path-card:hover {
  transform: translateY(-8px);
  border-color: rgba(62, 149, 83, 0.4);
  box-shadow: 0 26px 60px rgba(27, 42, 32, 0.12);
}
.path-card header { display: flex; align-items: center; justify-content: space-between; }
.path-index {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.5rem;
  color: var(--green);
}
.path-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-deep);
  background: var(--green-pale);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.path-card h3 {
  font-family: var(--serif);
  font-weight: 580;
  font-size: 1.55rem;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.path-card > p { color: var(--muted); font-size: 0.97rem; }
.path-card ul { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.path-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.94rem;
}
.path-card ul i {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  margin-top: 0.12rem;
}
.path-card ul i::after {
  content: "";
  position: absolute; left: 6.5px; top: 4.5px;
  width: 4.5px; height: 8px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}
.path-card .btn { margin-top: 1.1rem; align-self: flex-start; }

@media (max-width: 980px) { .path-list { grid-template-columns: 1fr; max-width: 560px; } }

/* ── Čísla ─────────────────────────────── */
.number-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 2.4rem;
}
.number-cell {
  padding: 2.1rem 1.6rem 2.1rem 0;
  border-bottom: 1px solid var(--line);
}
.number-cell + .number-cell { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.number-value {
  display: block;
  font-family: var(--serif);
  font-weight: 620;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--green-deep);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.number-label { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 980px) {
  .number-grid { grid-template-columns: 1fr 1fr; }
  .number-cell:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 560px) {
  .number-grid { grid-template-columns: 1fr; }
  .number-cell + .number-cell { border-left: none; padding-left: 0; }
}

/* ── Postup ─────────────────────────────── */
.process { background: var(--bg-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 2.8rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: 0 10px 30px rgba(27, 42, 32, 0.05);
}
.step-num {
  display: block;
  font-family: var(--serif);
  font-weight: 620;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.step h3 { font-weight: 800; font-size: 1.08rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── Kontakt ─────────────────────────────── */
.contact-title {
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  text-align: center;
  margin-bottom: 0.9rem;
}
.contact-sub { text-align: center; color: var(--muted); max-width: 34rem; margin: 0 auto 3rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-card label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.86rem; font-weight: 700; color: var(--ink);
  flex: 1;
}
.form-card label small { font-weight: 400; color: var(--muted); margin-left: 0.3rem; }
.form-card input[type="text"],
.form-card input[type="tel"],
.form-card input[type="email"],
.form-card select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-card input:focus, .form-card select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 149, 83, 0.15);
}
.form-row { display: flex; gap: 1rem; }
@media (max-width: 560px) { .form-row { flex-direction: column; } }

.consent { flex-direction: row !important; align-items: flex-start; gap: 0.7rem !important; font-weight: 400 !important; cursor: pointer; }
.consent input { margin-top: 0.28rem; accent-color: var(--green); width: 16px; height: 16px; }
.consent span { font-size: 0.84rem; line-height: 1.5; color: var(--muted); }

.form-privacy { font-size: 0.78rem; color: var(--muted); text-align: center; }

.form-success {
  position: absolute; inset: 0;
  background: var(--card);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.form-card.is-sent .form-success { opacity: 1; pointer-events: auto; }
.form-success svg { width: 64px; height: 64px; margin-bottom: 0.8rem; }
.form-success circle { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.form-success path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.form-card.is-sent .form-success circle { animation: draw 0.7s 0.15s forwards ease-out; }
.form-card.is-sent .form-success path { animation: draw 0.45s 0.7s forwards ease-out; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success strong { font-size: 1.15rem; }
.form-success span { color: var(--muted); font-size: 0.92rem; }

.contact-visual { position: relative; text-align: center; }
.contact-cutout {
  max-height: 440px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(27, 42, 32, 0.18));
}
.contact-note {
  margin: -0.5rem auto 0;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.2rem;
  position: relative;
  z-index: 2;
}
.contact-note span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-visual { display: flex; flex-direction: column-reverse; gap: 1.5rem; align-items: center; }
  .contact-cutout { max-height: 320px; }
}

/* ── Patička ─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.8rem 0 2.4rem;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-inner p { color: var(--muted); font-size: 0.9rem; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner nav a { font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: color 0.25s; }
.footer-inner nav a:hover { color: var(--green-deep); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ── Reveal výchozí stav (JS přepisuje) ─────────── */
.reveal, .reveal-hero { will-change: transform, opacity; }

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════ V3 — Three.js vrstva ═══════════ */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.site-header, main, .site-footer, .preloader, .growth-rail, .grain { position: relative; z-index: 2; }
.site-header { position: fixed; }
.preloader { position: fixed; z-index: 200; }
.growth-rail { position: fixed; }

/* 2D lístky nahrazuje 3D scéna */
.has-3d .hero-leaves { display: none; }

/* Sekce pouštějí 3D scénu skrz — jemné scrimy kvůli čitelnosti */
.has-3d .hero { background: transparent; }
.has-3d .talk, .has-3d .reframe, .has-3d .numbers, .has-3d .contact {
  background: rgba(251, 250, 247, 0.72);
}
.has-3d .paths, .has-3d .process {
  background: rgba(242, 245, 238, 0.78);
}
.has-3d .marquee { background: rgba(242, 245, 238, 0.85); }
.has-3d .site-footer { background: var(--bg-soft); }

/* Hero vizuál bez fotky — prostor pro 3D strom + plovoucí chipy */
.hero-visual-3d { min-height: 460px; }
.hero-visual-3d .chip-bonus { top: 16%; right: 6%; }
.hero-visual-3d .chip-duo { bottom: 16%; left: 10%; }

@media (max-width: 900px) {
  #bg3d { display: none; }
  .hero-visual-3d { min-height: 200px; }
}

/* Mobil: 3D scéna je vypnutá, hero drží fotka */
.hero-photo-mobile { display: none; }
@media (max-width: 900px) {
  .hero-photo-mobile { display: block; }
  .hero-visual-3d { min-height: 0; }
}

/* Korekce: hlavička musí zůstat nad obsahem */
.site-header { z-index: 100; }

/* Čitelnost hero textu nad částicemi */
.has-3d .hero-copy { position: relative; }
.has-3d .hero-copy::before {
  content: "";
  position: absolute;
  inset: -2.5rem -3.5rem;
  background: radial-gradient(ellipse, rgba(251, 250, 247, 0.9) 45%, rgba(251, 250, 247, 0) 78%);
  z-index: -1;
}

/* ═══ Korekce fontu: titulky v Plus Jakarta Sans (místo serifu Fraunces) ═══ */
:root { --serif: "Plus Jakarta Sans", "Segoe UI", sans-serif; }
.hero-title, .section-title, .contact-title, .card h2 { font-weight: 800; letter-spacing: -0.025em; }
.step-num, .path-index, .number-value, .chip-value { font-weight: 800; }
.marquee-track span, .talk-copy blockquote, .card-close, .card-note, .preloader-word { font-style: normal; }
.talk-copy blockquote { font-weight: 600; }

/* ═══ V4: bez videí, nativní scroll, Richard v kontaktu ═══ */
[id] { scroll-margin-top: 84px; }
.talk-grid { grid-template-columns: 1fr; max-width: 46rem; }
.contact-cutouts { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.contact-cutout { max-height: 420px; }
.contact-cutout-richard { margin-left: -2.5rem; max-height: 440px; }
@media (max-width: 980px) { .contact-cutout, .contact-cutout-richard { max-height: 300px; } }
.talk-grid { margin-inline: auto; }

/* ═══ Skutečné logo (logo2.jpg s průhledností) ═══ */
img.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.preloader-logo { width: 96px; height: 96px; object-fit: contain; opacity: 0; }

/* Plování chipů — CSS animace na GPU (plynulé i při zátěži) */
.hero-chip { animation: chip-float 4.5s ease-in-out infinite alternate; will-change: transform; }
.chip-duo { animation-duration: 5.5s; animation-delay: 0.7s; }
@keyframes chip-float {
  from { transform: translateY(-9px); }
  to { transform: translateY(9px); }
}

/* Mobil: odlehčené 3D pozadí je povolené (scéna sama sníží počet částic) */
@media (max-width: 900px) {
  #bg3d { display: block; }
}

/* Ostrý formulář — chybová hláška */
.form-error { color: #B4544A; font-size: 0.88rem; text-align: center; font-weight: 600; }

/* ═══ Korekce: oříznuté dolní dotahy (y, j, g) v hero titulku ═══ */
.hero-title .line { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* ═══ Korekce: bublina „Přestupní bonus" dál od obličeje ═══ */
.chip-bonus { top: -3.5%; right: -5%; }
@media (max-width: 980px) {
  .chip-bonus { top: 10px; left: 10px; right: auto; }
}

/* Mobil: bublina bonusu ve střední/spodní části fotky vpravo (přání uživatele) */
@media (max-width: 980px) {
  .chip-bonus { top: auto; bottom: 30%; left: auto; right: 10px; }
}
