/* ==========================================================================
   JP&Partneři – design tokens
   Koncept: „šedo-zlatá, osobní" – serifová typografie, tichá grafitová
   a papírová paleta, jeden zlatý akcent. Inspirace jansusanka.cz (lidskost)
   + jpmorgan.com/wealth-management (serióznost, přehlednost).
   ========================================================================== */

:root{
  /* barvy – grafit/papír + zlatý akcent */
  --ink:        #1C1B18;
  --ink-2:      #161512;
  --ink-card:   #26241E;
  --paper:      #F6F5F2;
  --white:      #FFFFFF;

  --line:        rgba(28,27,24,.08);
  --line-strong: rgba(28,27,24,.14);
  --line-dark:   rgba(255,255,255,.08);

  --muted:      #6E6A61;
  --muted-2:    #736F66;
  --text-soft:  #3B3830;

  --gold:        #A87F2E;
  --gold-dark:   #8C6A26;
  --gold-bright: #C9A24B;
  --gold-grad-1: #D5AF57;
  --gold-grad-2: #B98D33;

  /* stavy v klientské sekci – tlumená semaforová logika, ne křiklavá */
  --ok:         #2F6B4A;
  --ok-soft:    rgba(47,107,74,.12);
  --wait:       #6E521C;   /* text štítku „řešíme/k dodání" – ztmaveno kvůli AA na papíru */
  --wait-soft:  rgba(140,106,38,.12);
  --neutral:    #605C54;   /* text štítku „ověřuje se/přijde později" – AA i na papíru */
  --neutral-soft: rgba(110,106,97,.10);

  --cream:       #F5F3EE;
  --cream-muted: rgba(245,243,238,.62);
  --cream-faint: rgba(245,243,238,.42);

  /* typografie – 2 fonty, po vzoru Sušánka & partneři (Migra + GeneralSans):
     jeden charakterní serif na nadpisy, jeden sans na vše ostatní včetně
     drobných trackovaných labelů (žádné třetí mono písmo). */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* rytmus */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1240px;
  --pad: clamp(1.25rem, 4vw, 4.375rem);

  --shadow-btn:   0 1px 2px rgba(28,27,24,.25);
  --shadow-btn-hover: 0 14px 32px -8px rgba(28,27,24,.45);
  --shadow-card:  0 24px 48px -20px rgba(28,27,24,.3);
  --shadow-panel: 0 16px 40px -12px rgba(28,27,24,.25);
  --shadow-gold:  0 4px 16px rgba(201,162,75,.35);
  --shadow-gold-hover: 0 12px 32px rgba(201,162,75,.45);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   Reset & základ
   ========================================================================== */

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -.01em;
  overflow-x: hidden;
}

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font: inherit; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }

.wrap{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* skip link */
.skip-link{
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font: 600 .9rem var(--font-body);
  text-decoration: none;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus{ top: 0; }

/* focus stavy – konzistentní přes celý web */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Tlačítka
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2.1rem;
  border-radius: var(--radius-md);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  border: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active{ transform: translateY(0) !important; }

.btn-dark{
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-btn);
}
.btn-dark:hover{ transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }

.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(28,27,24,.3);
}
.btn-outline:hover{ border-color: var(--ink); background: rgba(28,27,24,.04); }

.btn-gold{
  background: linear-gradient(180deg, var(--gold-grad-1), var(--gold-grad-2));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), var(--shadow-gold);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--shadow-gold-hover); }

.btn-ghost-dark{
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245,243,238,.25);
}
.btn-ghost-dark:hover{ border-color: rgba(245,243,238,.6); background: rgba(245,243,238,.06); }

.btn-sm{ padding: .7rem 1.4rem; font-size: .9rem; border-radius: var(--radius-sm); }
.btn[disabled]{ opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* eyebrow / mono label */
.eyebrow{
  display: inline-block;
  font: 500 .68rem var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow.on-dark{ color: var(--gold-bright); }
.eyebrow.on-gold{ color: var(--gold-dark); }

/* ==========================================================================
   Header
   ========================================================================== */

.microbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem var(--pad);
  background: var(--ink);
  color: rgba(255,255,255,.68);
  font: 500 .72rem var(--font-body);
  letter-spacing: .07em;
}
.microbar a{ color: inherit; text-decoration: none; }
.microbar a:hover{ color: var(--gold-bright); }

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,245,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}

.nav{
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-height: 76px;
  padding-block: .5rem;
}

.brand{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.brand em{ font-style: italic; color: var(--gold); }

.nav-links{
  display: flex;
  gap: .35rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links a{
  padding: .5rem .85rem;
  font: 500 .9rem var(--font-body);
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible{ color: var(--ink); }
.nav-links a.is-active{ color: var(--ink); border-bottom-color: var(--gold); }

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: '';
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span{ top: 20px; }
.nav-toggle span::before{ top: -8px; }
.nav-toggle span::after{ top: 8px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.hero::before{
  content: '';
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,127,46,.14), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: stretch;
}

.hero-copy{ padding-bottom: clamp(2rem, 5vw, 4.5rem); }

.hero h1{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.03;
  color: var(--ink);
}
.hero h1 em{ font-style: italic; color: var(--gold); font-weight: 300; }

.hero-lead{
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin-top: 1.5rem;
}

.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }

.hero-stats{
  margin-top: 3rem;
  display: flex;
  gap: 2.75rem;
  flex-wrap: wrap;
}
.hero-stat{ display: flex; flex-direction: column; gap: .3rem; }
.hero-stat .num{
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1;
}
.hero-stat .num em{ font-style: italic; color: var(--gold); }
.hero-stat .label{
  font: 500 .68rem var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-visual{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-portrait{
  /* Kotví se přímo k .hero (position:relative), ne k vlastnímu .85fr sloupci –
     zóna pro foto je pravá polovina sekce (left:50% až right:0), uvnitř ní
     je foto vystředěné, takže má rovnoměrný odstup od textu i od okraje.
     Spodek zůstává na lince .hero-copy (.hero-grid align-items:stretch –
     výšku řádku určuje jen textový sloupec). */
  position: absolute;
  top: 0; left: 50%; right: 0;
  /* spodek fotky dosedá až na spodní hranu hero sekce */
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait-frame{
  position: relative;
  width: clamp(370px, 37.5vw, 810px);
}
.portrait-photo{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 34px rgba(28,27,24,.22));
}
.portrait-card{
  position: absolute;
  bottom: clamp(16px, 3vw, 40px); left: 0;
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-panel);
}
.portrait-card-text{ display: flex; flex-direction: column; }
.portrait-card .name{ font: 400 1.05rem var(--font-display); color: var(--ink); }
.portrait-card .role{
  font: 500 .68rem var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: .25rem;
}
.li-badge{
  flex-shrink: 0;
  box-sizing: content-box;
  display: inline-flex;
  width: 22px;
  height: 22px;
  padding-left: .85rem;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.li-badge:hover,
.li-badge:focus-visible{ color: var(--gold-dark); transform: translateY(-2px); }
.li-badge svg{ width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Sekce – obecné
   ========================================================================== */

.section{ padding-block: clamp(3rem, 7vw, 5rem); }
.section-white{ background: var(--white); border-top: 1px solid var(--line); }
.section-paper{ background: var(--paper); border-top: 1px solid var(--line); }
.section-ink{ background: var(--ink); }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head h2{ max-width: 560px; }
.section-head .desc{ font-size: .95rem; color: var(--muted); line-height: 1.65; max-width: 360px; }

h2.h-display{
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--ink);
}
h2.h-display em{ font-style: italic; color: var(--gold); }
.section-ink h2.h-display{ color: var(--cream); }
.section-ink h2.h-display em{ color: var(--gold-bright); }

/* ==========================================================================
   Tři pilíře / služby
   ========================================================================== */

.pillars{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
}
.pillar{
  padding-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  position: relative;
  scroll-margin-top: 100px;
}
/* vertikální dělítko uprostřed mezery mezi sloupci, ne krabice s rámečkem */
.pillar:not(:first-child)::before{
  content: '';
  position: absolute;
  left: -1.375rem;
  top: 2.25rem;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.pillar-badge{
  position: static;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font: 600 .68rem var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.pillar-badge::before{
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
  margin-right: .55em;
}
.pillar .idx{
  display: block;
  font: 400 4rem/1 var(--font-display);
  font-style: italic;
  color: rgba(28,27,24,.14);
  letter-spacing: -.02em;
  transition: color .35s var(--ease);
}
.pillar:hover .idx{ color: rgba(168,127,46,.55); }
.pillar h3{
  font: 400 1.5rem var(--font-display);
  letter-spacing: -.015em;
  color: var(--ink);
}
.pillar p{ color: var(--muted); font-size: .93rem; line-height: 1.65; }
.pillar .more{
  color: var(--gold-dark);
  font: 600 .88rem var(--font-body);
  text-decoration: none;
  margin-top: .35rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.pillar .more:hover, .pillar:hover .more{ border-color: var(--gold-dark); }

/* ==========================================================================
   Poznejte nás
   ========================================================================== */

.about-grid{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.about-photos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.photo-placeholder{
  aspect-ratio: 3 / 3.8;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  overflow: hidden;
}
.photo-placeholder.p1{ background: linear-gradient(180deg, #DEDACF, #CBC5B5); }
.photo-placeholder.p2{ background: linear-gradient(180deg, #D8D4C8, #C5BFAF); margin-top: 2rem; }
.photo-placeholder img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.photo-placeholder .mono{
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(28,27,24,.16);
}
.photo-placeholder .tag{
  font: 500 .62rem var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(28,27,24,.45);
  border: 1px dashed rgba(28,27,24,.3);
  border-radius: 999px;
  padding: .35rem .8rem;
  text-align: center;
}

blockquote.pull-quote{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 1.75rem 0 0;
}
.quote-attr{ display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.quote-attr .rule{ display: inline-block; width: 64px; height: 2px; background: var(--gold); }
.quote-attr .who{ font: 600 .92rem var(--font-body); color: var(--ink); }
.quote-attr .role{
  font: 500 .7rem var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.about-note{ font-size: .97rem; color: var(--muted); line-height: 1.7; margin-top: 1.5rem; max-width: 520px; }

/* ==========================================================================
   Reference
   ========================================================================== */

.ref-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.ref-card{
  background: var(--ink-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.ref-card:hover{ transform: translateY(-4px); border-color: rgba(201,162,75,.4); }
.ref-card .stars{ color: var(--gold-bright); letter-spacing: .15em; font-size: .9rem; }
.ref-card .figure{
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -.03em;
  line-height: 1;
}
.ref-card .figure-label{
  font: 500 .66rem var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.ref-card p{ font-size: .9rem; color: var(--cream-muted); line-height: 1.65; }
.ref-card .who{ font: 500 .8rem var(--font-body); color: var(--cream-faint); margin-top: auto; }

/* ==========================================================================
   Proč my / hodnoty
   ========================================================================== */

.why-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; }
.why-checks{ margin-top: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.why-checks li{
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font: 500 .9rem var(--font-body);
  color: var(--text-soft);
  line-height: 1.5;
}
.why-checks li::before{ content: '✓'; color: var(--gold); flex-shrink: 0; }

.why-list{ display: flex; flex-direction: column; }
.why-item{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
  position: relative;
}
.why-item:last-child{ padding-bottom: 0; }
/* spojnice mezi kroky, ne opakovaná vodorovná linka */
.why-item::before{
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.why-item:last-child::before{ display: none; }
.why-item .idx{
  width: 56px;
  height: 56px;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(140,106,38,.45);
  background: var(--paper);
  box-shadow: inset 0 0 0 5px rgba(168,127,46,.06), 0 2px 10px rgba(28,27,24,.05);
  font: 400 1.1rem var(--font-display);
  font-style: italic;
  color: var(--gold-dark);
  position: relative;
  z-index: 1;
}
.why-item h3{ font: 400 1.2rem var(--font-display); color: var(--ink); margin-bottom: .35rem; padding-top: .65rem; }
.why-item p{ font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   Partner bar (banky)
   ========================================================================== */

.partner-bar{
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 2.25rem var(--pad);
  text-align: center;
}
.partner-bar .eyebrow{ margin-bottom: 1.25rem; }
.partner-marks{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem 1rem;
}
.partner-marks span{
  font: 600 .82rem var(--font-body);
  color: var(--muted-2);
  padding: .4rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.partner-marks span:hover{ color: var(--ink); border-color: var(--gold); }
.partner-marks img.bank-logo{
  height: 28px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.partner-marks img.bank-logo:hover{ filter: none; opacity: 1; }

/* ==========================================================================
   Lead magnet
   ========================================================================== */

.lead-magnet{
  background: var(--ink-card);
  border-top: 1px solid var(--line-dark);
}
.lead-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  padding-block: 2.5rem;
}
.lead-copy h3{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--cream);
  letter-spacing: -.015em;
}
.lead-copy h3 em{ font-style: italic; color: var(--gold-bright); }
.lead-copy p{ color: var(--cream-muted); font-size: .9rem; margin-top: .4rem; }

.lead-form{ display: flex; gap: .6rem; flex-wrap: wrap; }
.lead-form input[type="email"]{
  min-width: 240px;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245,243,238,.2);
  background: rgba(245,243,238,.06);
  color: var(--cream);
  font: 500 .92rem var(--font-body);
}
.lead-form input[type="email"]::placeholder{ color: var(--cream-faint); }
.lead-form input[type="email"]:focus-visible{ outline-color: var(--gold-bright); }
.form-msg{
  font: 500 .85rem var(--font-body);
  margin-top: .6rem;
  min-height: 1.2em;
}
.form-msg.ok{ color: var(--gold-bright); }
.form-msg.err{ color: #E29A6B; }
.section-white .form-msg.ok,
.section-paper .form-msg.ok{ color: var(--gold-dark); }
.section-white .form-msg.err,
.section-paper .form-msg.err{ color: #B4502A; }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-section{
  position: relative;
  overflow: hidden;
}
.contact-section::before{
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 460px;
  background: radial-gradient(ellipse at center, rgba(201,162,75,.16), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-grid{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
}

.contact-intro h2{ color: var(--cream); }
.contact-lead{
  font-size: 1.02rem;
  color: var(--cream-muted);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 460px;
}
.contact-facts{ display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.contact-facts a,
.contact-facts span{
  display: flex;
  align-items: center;
  gap: .6rem;
  font: 500 .95rem var(--font-body);
  color: var(--cream);
  text-decoration: none;
}
.contact-facts a:hover{ color: var(--gold-bright); }
.contact-facts .fact-label{
  font: 500 .64rem var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  min-width: 92px;
}

.contact-card{
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.4);
}

.field{ margin-bottom: 1.15rem; }
.field label{
  display: block;
  font: 600 .78rem var(--font-body);
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.field .req{ color: var(--gold-dark); }
.field input,
.field select,
.field textarea{
  width: 100%;
  padding: .8rem .95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  font: 500 .95rem var(--font-body);
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible{ border-color: var(--gold); }
.field textarea{ resize: vertical; min-height: 90px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field-check{
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.35rem;
}
.field-check input{ margin-top: .25rem; accent-color: var(--gold); flex-shrink: 0; }
.field-check label{ font-size: .83rem; color: var(--muted); line-height: 1.55; }
.field-check a{ color: var(--gold-dark); text-decoration: underline; }

.field-error{
  display: block;
  font: 500 .78rem var(--font-body);
  color: #B4502A;
  margin-top: .35rem;
  min-height: 1em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{ background: var(--ink-2); padding: 3.5rem var(--pad) 2rem; }
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand{ font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: -.02em; color: var(--cream); text-decoration: none; }
.footer-brand em{ font-style: italic; color: var(--gold-bright); }
.footer-tag{ font: 300 1.05rem var(--font-display); color: rgba(245,243,238,.8); margin-top: .85rem; max-width: 320px; line-height: 1.5; }
.footer-tag em{ font-style: italic; color: var(--gold-bright); }
.footer-col h4{
  font: 500 .7rem var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: .55rem; }
.footer-col a,
.footer-col span{ font-size: .9rem; color: rgba(245,243,238,.6); text-decoration: none; }
.footer-col a:hover{ color: var(--cream); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(245,243,238,.4);
}
.footer-bottom a{ color: rgba(245,243,238,.4); }
.footer-bottom a:hover{ color: var(--cream); }

/* ==========================================================================
   Reveal on scroll – jeden zrežírovaný nástup, ne deset mikrointerakcí
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: none; }
.reveal-1{ transition-delay: .05s; }
.reveal-2{ transition-delay: .15s; }
.reveal-3{ transition-delay: .25s; }

/* ==========================================================================
   Responzivita
   ========================================================================== */

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .hero-portrait{
    position: relative;
    top: auto; bottom: auto; left: auto; right: auto;
    width: 100%;
    justify-content: center;
    height: auto;
  }
  .portrait-frame{ width: min(380px, 82%); }
  .pillars{ grid-template-columns: 1fr; gap: 0; border-top: none; }
  .pillar{ padding-top: 2rem; border-top: 1px solid var(--line-strong); }
  .pillar:first-child{ padding-top: 0; border-top: none; }
  .pillar:not(:first-child)::before{ display: none; }
  .pillar .idx{ font-size: 2.75rem; }
  .about-grid{ grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photos{ max-width: 360px; }
  .ref-grid{ grid-template-columns: 1fr 1fr; }
  .why-grid{ grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px){
  .microbar{ font-size: .64rem; gap: .5rem; }
  .microbar > span:first-child{ display: none; }
  .microbar-right{ width: 100%; justify-content: space-between; }

  .nav{ flex-wrap: wrap; }
  .nav-toggle{ display: block; margin-left: auto; order: 2; }
  .nav-links{
    order: 4;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav-links a{ width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta{ order: 3; }
  .nav.is-open .nav-links{ max-height: 420px; }
  .nav-cta .btn{ padding: .65rem 1.1rem; font-size: .88rem; }

  .ref-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 2rem; }
  .field-row{ grid-template-columns: 1fr; }
  .lead-inner{ flex-direction: column; align-items: flex-start; }
  .lead-form{ width: 100%; }
  .lead-form input[type="email"]{ flex: 1; min-width: 0; }
}

@media (max-width: 400px){
  .hero h1{ font-size: 2.1rem; }
  .hero-stats{ gap: 1.5rem; }
}

/* ==========================================================================
   Podstránky – sdílené komponenty
   ========================================================================== */

/* Hlavička podstránky */
.page-hero{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero .eyebrow{ display: block; margin-bottom: 1rem; }
.page-hero h1{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 18ch;
}
.page-hero h1 em{ font-style: italic; color: var(--gold); }
.page-hero .lead{
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: 1.25rem;
}

/* Aktivní položka navigace na podstránkách */
.nav-links a[aria-current="page"]{ color: var(--ink); }
.nav-links a[aria-current="page"]::after{ opacity: 1; }

/* FAQ – nativní details/summary */
.faq-list{ max-width: 760px; }
.faq-item{
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font: 500 1.02rem var(--font-body);
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '+';
  flex-shrink: 0;
  font: 300 1.5rem var(--font-display);
  color: var(--gold-dark);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item summary:hover{ color: var(--gold-dark); }
.faq-item p{
  padding: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* Srovnávací tabulka banka vs. my */
.compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.compare-col{
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 1.75rem;
  background: var(--white);
}
.compare-col.is-us{
  background: var(--ink-card);
  border-color: transparent;
  color: var(--cream, #F6F5F2);
}
.compare-col h3{
  font: 400 1.35rem var(--font-display);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.compare-col.is-us h3 em{ font-style: italic; color: var(--gold-bright); }
.compare-col ul{ display: flex; flex-direction: column; gap: .8rem; }
.compare-col li{
  display: flex;
  gap: .75rem;
  align-items: baseline;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
}
.compare-col.is-us li{ color: rgba(246,245,242,.82); }
.compare-col li::before{
  content: '✗';
  flex-shrink: 0;
  color: var(--muted-2);
}
.compare-col.is-us li::before{ content: '✓'; color: var(--gold-bright); }

/* Tým */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card{
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}
.team-card .photo{
  aspect-ratio: 3/3.2;
  background: linear-gradient(160deg, #ECEAE4, #DDD9D0);
  position: relative;
  overflow: hidden;
}
.team-card .photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}
.team-card .photo .mono{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 300 3rem var(--font-display);
  color: var(--muted-2);
}
.team-card .body{ padding: 1.25rem 1.4rem 1.5rem; }
.team-card .name{
  font: 400 1.2rem var(--font-display);
  color: var(--ink);
  display: flex; align-items: center; gap: .6rem;
}
.team-card .name .li-badge{
  width: 18px; height: 18px;
  padding-left: .6rem;
  border-left: 1px solid var(--line-strong);
}
.team-card .role{
  font: 500 .68rem var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: .3rem;
}
.team-card .bio{
  margin-top: .75rem;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Recenze – formát rozhovoru */
.review{
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  max-width: 820px;
  box-shadow: var(--shadow-card);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
.review .review-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.review-who{ display: flex; align-items: center; gap: 1rem; }
.review-avatar{
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #F0E9DA, #E4D9C1);
  border: 1px solid rgba(168,127,46,.3);
  color: var(--gold-dark);
  font: 400 1.15rem var(--font-display);
}
.review .client{ display: block; font: 400 1.3rem var(--font-display); color: var(--ink); line-height: 1.15; }
.review-topic{ display: block; font-size: .85rem; color: var(--muted); margin-top: .12rem; }
.review-rating{ display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.review .stars{ color: var(--gold); letter-spacing: .18em; font-size: 1.05rem; }
.review-since{ font-size: .74rem; color: var(--muted-2); }
.review dl{ margin: 0; }
.review dt{
  font: 600 .72rem var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 1.7rem;
}
.review dt:first-of-type{ margin-top: .25rem; }
.review dd{
  margin: .6rem 0 0;
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold);
  color: var(--text-soft);
  line-height: 1.55;
  font: 400 clamp(1.05rem, 1.6vw, 1.2rem) var(--font-display);
  font-style: italic;
}
.review-source{
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted-2);
}
.review-source a{ color: var(--gold-dark); }
@media (max-width: 560px){
  .review-head{ align-items: flex-start; }
  .review-rating{ align-items: flex-start; }
}

/* Kalkulačka */
.section-head.is-stacked{ flex-direction: column; align-items: flex-start; }
.section-head.is-stacked .desc{ max-width: 640px; margin-top: .85rem; }

.calc{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: stretch;
}
.calc-form{
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.calc-form .field{ margin-bottom: 1.1rem; }
.calc-form label{
  display: block;
  font: 500 .82rem var(--font-body);
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.calc-form input[type="number"],
.calc-form input[type="text"]{
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: 500 1rem var(--font-body);
  color: var(--ink);
  background: var(--paper);
}
.calc-form input:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.calc-form .hint{
  font-size: .74rem;
  color: var(--muted-2);
  margin-top: .3rem;
}
.calc-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.calc-check{
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.calc-check input{ width: 18px; height: 18px; accent-color: var(--gold-dark); }
.calc-check label{ margin: 0; font-size: .9rem; color: var(--text-soft); }

.calc-result{
  background: var(--ink-card);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: rgba(246,245,242,.85);
  display: flex;
  flex-direction: column;
  min-height: 340px;
}
/* prázdný stav vertikálně vycentrovat, vyplněný zarovnat nahoru */
.calc-result:has(.calc-empty){ justify-content: center; }
.calc-eyebrow{
  display: block;
  font: 600 .66rem var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.15rem;
}
/* skeleton náhled – signalizuje „tady se objeví výsledek" */
.calc-skeleton{ display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.25rem; }
.calc-skeleton span{
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(246,245,242,.06), rgba(246,245,242,.16), rgba(246,245,242,.06));
  background-size: 200% 100%;
  animation: sk-shimmer 1.6s ease-in-out infinite;
}
.calc-skeleton .sk-lg{ height: 32px; width: 86%; }
.calc-skeleton .sk-md{ height: 16px; width: 52%; margin-bottom: .4rem; }
.calc-skeleton .sk-row{ height: 13px; width: 100%; }
.calc-skeleton .sk-row:nth-of-type(4){ width: 90%; }
.calc-skeleton .sk-row:nth-of-type(5){ width: 74%; }
@keyframes sk-shimmer{ 0%{ background-position: 150% 0; } 100%{ background-position: -150% 0; } }
.calc-result .verdict{
  font: 300 clamp(1.6rem, 2.6vw, 2.2rem) var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #F6F5F2;
}
.calc-result .verdict em{ font-style: italic; color: var(--gold-bright); }
.calc-result .calc-figures{
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(246,245,242,.14);
}
.calc-figure{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: .92rem;
}
.calc-figure .val{
  font: 400 1.15rem var(--font-display);
  color: #F6F5F2;
  white-space: nowrap;
}
.calc-figure.is-limit .val{ color: var(--gold-bright); }
.calc-note{
  margin-top: 1.35rem;
  font-size: .8rem;
  line-height: 1.55;
  color: rgba(246,245,242,.55);
}
.calc-result .btn{ margin-top: 1.35rem; }
.calc-empty{
  color: rgba(246,245,242,.55);
  font-size: .95rem;
  line-height: 1.65;
}

/* Reprezentativní příklad / drobný právní text */
.legal-note{
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 820px;
}
.legal-note strong{ color: var(--text-soft); }

/* CTA pás na konci podstránek */
.cta-band{
  background: var(--ink);
  color: #F6F5F2;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-band .inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2{
  font: 300 clamp(1.7rem, 3vw, 2.4rem) var(--font-display);
  letter-spacing: -.02em;
}
.cta-band h2 em{ font-style: italic; color: var(--gold-bright); }
.cta-band p{ color: rgba(246,245,242,.65); margin-top: .5rem; max-width: 50ch; }

/* Obsahová sekce s textem – právní stránky apod. */
.prose{ max-width: 720px; }
.prose h2{
  font: 400 1.6rem var(--font-display);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 2.25rem 0 .75rem;
}
.prose p, .prose li{ color: var(--muted); line-height: 1.7; margin-bottom: .85rem; }
.prose ul{ list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose a{ color: var(--gold-dark); }

@media (max-width: 980px){
  .compare{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .calc{ grid-template-columns: 1fr; }
  .calc-result{ position: static; }
}
@media (max-width: 640px){
  .team-grid{ grid-template-columns: 1fr; }
  .calc-row{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Recenze klientů (mřížka krátkých hodnocení)
   ========================================================================== */

.quote-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.quote-card{
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.quote-card .stars{ color: var(--gold); letter-spacing: .15em; font-size: .85rem; }
.quote-card blockquote{ margin: 0; color: var(--text-soft); line-height: 1.65; font-size: .95rem; }
.quote-card footer{ margin-top: auto; display: flex; flex-direction: column; gap: .2rem; }
.quote-card .q-who{ font: 400 1.05rem var(--font-display); color: var(--ink); }
.quote-card .q-src{ font-size: .74rem; color: var(--muted-2); }
.quote-note{ margin-top: 1.75rem; font-size: .85rem; color: var(--muted-2); max-width: 72ch; line-height: 1.6; }
.quote-note a{ color: var(--gold-dark); }

/* Konzistentní rytmus mezi bloky (nahrazuje dřívější inline styly) */
.why-grid .desc{
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 56ch;
}
.why-grid .hero-stats{ margin-top: 0; }
.why-grid .pull-quote{ margin-top: 2rem; }
.more-row{ margin-top: 1.5rem; }
.wrap-narrow{ max-width: 820px; }
.ref-more{ margin-top: 2.5rem; color: rgba(246,245,242,.65); line-height: 1.65; }
.ref-more a{ color: var(--gold-bright); }

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

/* ==========================================================================
   AI asistent (chat widget)
   ========================================================================== */

.chat-fab{
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 300;
  width: 58px; height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-grad-1), var(--gold-grad-2));
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), var(--shadow-gold);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chat-fab:hover{ transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--shadow-gold-hover); }
.chat-fab svg{ width: 26px; height: 26px; }

.chat-panel{
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + 70px);
  z-index: 300;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(600px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.chat-panel.is-open{ display: flex; }

.chat-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
}
.chat-head .t{ font: 400 1.1rem var(--font-display); }
.chat-head .t em{ font-style: italic; color: var(--gold-bright); }
.chat-head .s{ font: 500 .62rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); margin-top: .2rem; }
.chat-close{
  background: none; border: none; color: var(--cream-muted);
  font-size: 1.4rem; line-height: 1; padding: .25rem .4rem;
  border-radius: 6px;
}
.chat-close:hover{ color: var(--cream); }

.chat-msgs{
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 220px;
}
.chat-msg{
  max-width: 85%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.chat-msg.from-user{
  align-self: flex-end;
  background: var(--ink);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}
.chat-msg.from-bot{
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  border-bottom-left-radius: 4px;
}
.chat-msg.from-bot a{ color: var(--gold-dark); }
.chat-msg.is-typing{ color: var(--muted-2); font-style: italic; }

.chat-chips{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0 1.1rem .35rem;
  background: var(--paper);
}
.chat-chip{
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--text-soft);
  font: 500 .78rem var(--font-body);
  padding: .4rem .75rem;
  border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chat-chip:hover{ border-color: var(--gold-dark); color: var(--gold-dark); }

.chat-form{
  display: flex;
  gap: .5rem;
  padding: .8rem 1.1rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.chat-form input{
  flex: 1;
  min-width: 0;
  padding: .6rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: 500 .92rem var(--font-body);
  color: var(--ink);
  background: var(--white);
}
.chat-send{
  border: none;
  border-radius: 10px;
  padding: 0 .9rem;
  background: linear-gradient(180deg, var(--gold-grad-1), var(--gold-grad-2));
  color: var(--ink);
  display: flex; align-items: center;
}
.chat-send svg{ width: 18px; height: 18px; }
.chat-send[disabled]{ opacity: .55; cursor: not-allowed; }

.chat-note{
  padding: .5rem 1.1rem .75rem;
  background: var(--paper);
  font-size: .66rem;
  line-height: 1.5;
  color: var(--muted-2);
}
.chat-note a{ color: var(--gold-dark); }

@media (max-width: 480px){
  .chat-panel{
    right: .5rem; left: .5rem;
    width: auto;
    bottom: calc(clamp(1rem, 3vw, 1.75rem) + 66px);
  }
}

/* ==========================================================================
   Klientská sekce
   ========================================================================== */

.microbar-right{ display: flex; align-items: center; gap: 1.4rem; }

/* (komponenty klientské zóny jsou jen ve vývojové verzi jp-partneri.test) */

/* ==========================================================================
   Mobilní doladění (celý web)
   ========================================================================== */

@media (max-width: 980px){
  /* Portrét v hero: bez pevné výšky, ať nic nepřetéká do textu */
  .hero-portrait{ height: auto; margin-bottom: 1.25rem; }
  .portrait-frame{ width: min(380px, 82%); }
  .portrait-card{ bottom: clamp(10px, 3vw, 22px); }
}

@media (max-width: 720px){
  /* iOS Safari zoomuje na pole s písmem menším než 16 px */
  .field input, .field select, .field textarea,
  .calc-form input[type="number"], .calc-form input[type="text"],
  .lead-form input[type="email"]{ font-size: 16px; }

  /* Lehčí stín portrétu: drop-shadow na velkém PNG je na mobilech drahý */
  .portrait-photo{ filter: drop-shadow(0 10px 14px rgba(28,27,24,.18)); }

  .btn{ padding: .9rem 1.6rem; }
  .cta-band .inner{ flex-direction: column; align-items: flex-start; }
  .cta-band .btn{ width: 100%; justify-content: center; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
}

@media (max-width: 560px){
  .why-item{ grid-template-columns: 44px 1fr; gap: 1rem; padding-bottom: 1.75rem; }
  .why-item::before{ left: 21px; top: 46px; }
  .why-item .idx{ width: 44px; height: 44px; font-size: .95rem; }
  .why-item h3{ padding-top: .4rem; }
  .compare-col{ padding: 1.35rem; }
  .quote-card{ padding: 1.35rem 1.4rem; }
  .review{ padding: 1.35rem 1.4rem; }
  .hero-stats{ gap: 1.25rem 2rem; }
  .section-head .desc{ max-width: none; }
  .legal-note{ padding: 1rem 1.15rem; }
}

/* ==========================================================================
   Konverzní prvky (lead-capture v kalkulačce, trust řádek, mobilní CTA)
   ========================================================================== */

/* Trust řádek u CTA a formulářů */
.trust-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.1rem;
  margin-top: 1.75rem;
  font-size: .85rem;
  color: var(--muted);
}
.trust-row .stars{ color: var(--gold); letter-spacing: .1em; }
.trust-row .sep{ color: var(--line-strong); }
.trust-row a{ color: var(--gold-dark); text-decoration: none; }
.trust-row a:hover{ text-decoration: underline; }
.trust-row strong{ color: var(--text-soft); font-weight: 600; }
.section-ink .trust-row{ color: rgba(246,245,242,.7); }
.section-ink .trust-row a{ color: var(--gold-bright); }
.section-ink .trust-row strong{ color: var(--cream); }

/* Lead-capture v kalkulačce */
.calc-lead{
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
  align-items: center;
  background: linear-gradient(180deg, #FBF7EE, var(--paper));
  border: 1px solid rgba(168,127,46,.28);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.calc-lead[hidden]{ display: none; }
.calc-lead-copy h3{
  font: 400 clamp(1.3rem, 2.4vw, 1.7rem) var(--font-display);
  letter-spacing: -.015em;
  color: var(--ink);
}
.calc-lead-copy h3 em{ font-style: italic; color: var(--gold); }
.calc-lead-copy p{ margin-top: .6rem; font-size: .93rem; color: var(--muted); line-height: 1.6; }
.cl-fields{ display: flex; gap: .6rem; flex-wrap: wrap; }
.calc-lead-form input{
  flex: 1 1 130px;
  min-width: 0;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: 500 16px var(--font-body);
  color: var(--ink);
  background: var(--white);
}
.calc-lead-form input:focus-visible{ outline: none; border-color: var(--gold); }
.calc-lead-form .btn{ flex: 1 1 100%; justify-content: center; }
.cl-consent{ display: flex; gap: .5rem; align-items: flex-start; margin-top: .8rem; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.cl-consent input{ margin-top: .15rem; accent-color: var(--gold); flex-shrink: 0; }
.cl-consent a{ color: var(--gold-dark); }
.calc-lead-done{ font: 400 1.1rem var(--font-display); color: var(--gold-dark); }

/* Varianty z kalkulačky */
.variants{
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}
.variants[hidden]{ display: none; }
.variants-head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.variants-head h3{ font: 400 clamp(1.4rem, 2.4vw, 1.9rem) var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.variants .v-sub{ font-size: .9rem; color: var(--muted); margin-top: .35rem; max-width: 56ch; }

.fix-switch{ display: flex; gap: .35rem; flex-wrap: wrap; }
.fix-btn{
  font: 600 .78rem var(--font-body);
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .5rem .9rem;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.fix-btn:hover{ color: var(--ink); border-color: var(--gold); }
.fix-btn.is-active{ background: var(--ink); border-color: var(--ink); color: var(--cream); }

.variants-table{ display: flex; flex-direction: column; }
.v-row{
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.v-row:last-child{ border-bottom: none; }
.v-row.is-best{
  background: linear-gradient(90deg, rgba(168,127,46,.07), transparent 70%);
  border-radius: 12px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: .25rem -1rem;
  border-bottom-color: transparent;
}
.v-bank{
  font: 400 1.2rem var(--font-display);
  color: var(--ink);
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.v-tag{
  font: 600 .6rem var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(168,127,46,.12);
  border-radius: 999px;
  padding: .25rem .55rem;
}
.v-cell{ display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.v-cell .v-l{
  font: 500 .62rem var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.v-cell .v-v{ font: 400 1.15rem var(--font-display); color: var(--ink); white-space: nowrap; }

.variants-safe{
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.variants-safe[hidden]{ display: none; }
.vs-head h4{ font: 400 1.25rem var(--font-display); color: var(--ink); }
.vs-head p{ font-size: .9rem; color: var(--muted); margin-top: .3rem; max-width: 62ch; line-height: 1.6; }
.variants-note{
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted-2);
  line-height: 1.6;
}
.variants .btn{ margin-top: 1.25rem; }

@media (max-width: 720px){
  .v-row{ grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
  .v-bank{ grid-column: 1 / -1; }
  .v-row.is-best{ background: rgba(168,127,46,.06); }
}

/* Mobilní sticky CTA lišta (jen na mobilu) */
.mobile-cta{ display: none; }
@media (max-width: 720px){
  .mobile-cta{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 250;
    display: flex;
    gap: .6rem;
    padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(246,245,242,.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-strong);
  }
  .mobile-cta a{
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem .5rem;
    border-radius: var(--radius-md);
    font: 600 .95rem var(--font-body);
    text-decoration: none;
  }
  .mobile-cta .m-call{ border: 1.5px solid var(--ink); color: var(--ink); background: var(--white); }
  .mobile-cta .m-cta{ background: var(--ink); color: var(--cream); }
  body:has(.mobile-cta){ padding-bottom: 72px; }
  .chat-fab{ bottom: calc(clamp(1rem,3vw,1.75rem) + 62px); }
  .chat-panel{ bottom: calc(clamp(1rem,3vw,1.75rem) + 132px); }
}

@media (max-width: 560px){
  .calc-lead{ grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ==========================================================================
   MOBIL – celkové doladění (má přednost, proto je až na konci)
   ========================================================================== */

@media (max-width: 760px){
  /* --- vzdušnost: méně prázdna, obsah dřív na očích ------------------- */
  .section{ padding-block: clamp(2.5rem, 8vw, 3.5rem); }
  .hero{ padding-top: 1.25rem; }
  .hero-copy{ padding-bottom: 1.5rem; }
  .page-hero{ padding: 2.25rem 0 1.75rem; }

  /* --- hero na mobilu: bez fotky, rovnou k věci ------------------------
     Výřez celé postavy se na malém displeji nepovedl (drobný a s plovoucí
     kartičkou), proto je na mobilu skrytý. Fotka zůstává na desktopu
     a na stránce O nás. */
  .hero-grid{ gap: 1.25rem; }
  .hero-visual{ display: none; }

  .hero h1{ font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.08; }
  .hero-lead{ font-size: 1rem; margin-top: 1rem; }
  .hero-actions{ margin-top: 1.5rem; gap: .6rem; }

  /* --- trust řádek: pod sebou, bez rozsypaných teček ------------------- */
  .trust-row{ flex-direction: column; align-items: flex-start; gap: .35rem; margin-top: 1.25rem; font-size: .82rem; }
  .trust-row .sep{ display: none; }

  /* --- statistiky: čitelné řádky místo rozházených sloupců ------------- */
  .hero-stats{
    display: flex; flex-direction: column; gap: 0;
    margin-top: 1.75rem;
    border-top: 1px solid var(--line-strong);
  }
  .hero-stat{
    flex-direction: row; align-items: baseline; justify-content: space-between;
    gap: 1rem; padding: .7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-stat .num{ font-size: 1.45rem; }
  .hero-stat .label{ font-size: .6rem; text-align: right; }

  /* --- nadpisy sekcí ---------------------------------------------------- */
  h2.h-display{ font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .section-head{ gap: .75rem; }
  .section-head .desc{ font-size: .92rem; }

  /* --- navigace: lehké rozbalovací menu přes celou šířku ---------------- */
  .nav{ min-height: 60px; flex-wrap: wrap; align-items: center; }
  .nav-toggle{ display: block; margin-left: auto; order: 2; padding: .6rem; }
  /* tlačítko v hlavičce je na mobilu zbytečné, stejnou akci nabízí spodní lišta */
  .nav-cta{ display: none; }
  .nav-links{
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav-links a{
    display: block;
    width: 100%;
    text-align: left;
    padding: .95rem .1rem;
    font-size: 1.02rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-links a::after{ display: none; }
  .nav-links a:last-child{ border-bottom: none; }
  .nav.is-open .nav-links{ max-height: 600px; padding-bottom: .35rem; }
  .microbar{ font-size: .66rem; padding-block: .5rem; }

  /* --- karty a panely: méně vnitřního odsazení -------------------------- */
  .pillar{ padding-top: 1.5rem; }
  .pillar .idx{ font-size: 2.25rem; }
  .contact-card, .calc-form, .calc-result, .variants, .review, .login-card{
    padding: 1.25rem 1.15rem;
  }
  .calc{ gap: 1.25rem; }
  .calc-result{ min-height: 0; }

  /* --- varianty: tři údaje vedle sebe, ať se to nerozpadá -------------- */
  .v-row{ grid-template-columns: repeat(3, 1fr); gap: .6rem .75rem; padding: .95rem 0; }
  .v-bank{ grid-column: 1 / -1; font-size: 1.05rem; }
  .v-cell .v-v{ font-size: .98rem; }
  .v-cell .v-l{ font-size: .55rem; letter-spacing: .06em; }
  .variants-head{ flex-direction: column; align-items: flex-start; }
  .fix-btn{ padding: .45rem .7rem; font-size: .74rem; }

  /* --- tabulka srovnání a citace ---------------------------------------- */
  .compare{ gap: 1rem; }
  .quote-card{ padding: 1.15rem 1.2rem; }
  .cta-band .inner{ gap: 1.25rem; }
}

@media (max-width: 380px){
  .hero h1{ font-size: 1.75rem; }
  .v-row{ grid-template-columns: 1fr 1fr; }
  .hero-stat .num{ font-size: 1.3rem; }
}
