/* ============================================================
   Saroli & Partneři — hlavní stylesheet
   Barvy webu upravíte zde v proměnných níže (:root).
   ============================================================ */

:root {
  /* --- Barvy značky (snadno upravitelné) --- */
  --ink: #1a1a41;          /* tmavá námořnická z loga SAROLI */
  --ink-soft: #26265c;
  --paper: #fbfbfe;        /* čistě světlé pozadí */
  --mist: #f1f0f8;         /* jemný fialkový tón sekcí */
  --brass: #563495;        /* fialová z loga SAROLI */
  --brass-soft: #a492c6;
  --text: #222239;
  --text-muted: #585875;
  --line: #e1e2ee;
  --white: #ffffff;

  /* --- Typografie --- */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 26, 65, 0.08);
  --shadow-lg: 0 22px 50px rgba(26, 26, 65, 0.16);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typografie ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}

.lead {
  font-size: 1.14rem;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ---------- Hlavička ---------- */

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

.nav {
  display: flex;
  align-items: center;
  height: 74px;
  gap: 0;
}
.nav .nav-links { margin-left: 32px; }

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.brand-logo { height: 46px; width: auto; }
.brand-sep {
  width: 1px;
  height: 28px;
  background: var(--line);
  flex: none;
  margin: 0 12px 0 14px;
}
.brand-assetio {
  height: 20px;
  width: auto;
  opacity: 0.85;
  margin-right: auto;
}
.brand.has-logo .brand-text { display: none; }
.brand small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--brass); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--brass); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--brass); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { background: var(--brass-soft); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, #14142f 0%, var(--ink) 50%, #241c50 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(86, 52, 149, 0.45), transparent 65%),
    radial-gradient(600px 500px at 10% 90%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  max-width: none;
  padding-left: clamp(24px, 5vw, 84px);
  padding-right: clamp(24px, 5vw, 84px);
  padding-top: clamp(70px, 10vw, 120px);
  padding-bottom: clamp(70px, 10vw, 120px);
}
.hero h1 { color: var(--white); max-width: 17ch; }
.hero h1 em {
  font-style: italic;
  color: var(--brass-soft);
}
.hero .lead {
  color: rgba(255, 255, 255, 0.78);
  margin: 26px 0 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  background: linear-gradient(90deg,
    rgba(20, 19, 48, 0.94) 0%,
    rgba(22, 21, 55, 0.86) 34%,
    rgba(26, 26, 65, 0.45) 58%,
    rgba(26, 26, 65, 0.08) 80%,
    rgba(26, 26, 65, 0.2) 100%);
}
.hero-copy { max-width: 580px; }
@media (max-width: 900px) {
  /* Na mobilu bez fotky na pozadí — čisté tmavé hero, tým je hned v další sekci */
  .hero .hero-bg { display: none; }
  .hero::after {
    background:
      radial-gradient(420px 300px at 90% 8%, rgba(86, 52, 149, 0.5), transparent 70%),
      radial-gradient(360px 320px at 0% 100%, rgba(122, 100, 210, 0.25), transparent 65%);
  }
  .hero .container {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .motto { gap: 8px; padding-top: 24px; margin-top: 40px; }
}

/* Kdo jsme — fotka vždy celá */
.intro-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Hero rozdělený na text + interaktivní widget */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}
.hero-grid h1 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); }

.wealth-widget {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 26px 26px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(10, 10, 30, 0.45);
}
.ww-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ww-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.ww-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(86, 52, 149, 0.45);
  border: 1px solid rgba(164, 146, 198, 0.6);
  color: #d9cdf2;
  white-space: nowrap;
}
.ww-value span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--white);
  line-height: 1.1;
}
.ww-value small {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
#ww-chart {
  width: 100%;
  height: 150px;
  margin-top: 12px;
  display: block;
}
.ww-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 10px 0 16px;
}
.ww-legend .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
}
.dot-grow { background: #b9a5e3; }
.dot-flat { background: rgba(255, 255, 255, 0.4); }

.wealth-widget .calc-label label { color: rgba(255, 255, 255, 0.85); }
.wealth-widget .calc-label output { color: #d9cdf2; }
.wealth-widget input[type="range"] {
  background: linear-gradient(to right, #8a63d2 var(--fill, 50%), rgba(255, 255, 255, 0.18) var(--fill, 50%));
}
.wealth-widget input[type="range"]::-webkit-slider-thumb {
  background: var(--white);
  border: 3px solid #563495;
}
.wealth-widget input[type="range"]::-moz-range-thumb {
  background: var(--white);
  border: 3px solid #563495;
}
.ww-link {
  display: inline-block;
  margin-top: 16px;
  color: #d9cdf2;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color .2s;
}
.ww-link:hover { color: var(--white); }

/* ---------- Triptych — karty přes fotky přírody (inspirace Sušánka) ---------- */

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.tri-col { position: relative; padding-top: 34px; }
.tri-img {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.tri-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tri-card {
  position: relative;
  margin: 0 26px 44px 0;
  min-height: 380px;
  padding: 34px 30px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(26, 26, 65, 0.28);
  transition: transform .3s;
}
.tri-col:hover .tri-card { transform: translateY(-6px); }
.tri-col:nth-child(2) { transform: translateY(26px); }
.tri-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 44px 0 auto;
}
.tri-card p { font-size: 0.96rem; line-height: 1.6; margin-top: 22px; }
.tri-star {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 30px;
  height: 30px;
}
.tri-card-ink { background: var(--ink); color: rgba(255,255,255,0.85); }
.tri-card-ink h3 { color: var(--white); }
.tri-card-ink .tri-star { color: var(--brass-soft); }
.tri-card-violet { background: var(--brass); color: rgba(255,255,255,0.88); }
.tri-card-violet h3 { color: var(--white); }
.tri-card-violet .tri-star { color: rgba(255,255,255,0.7); }
.tri-card-light { background: #f4f1fa; color: var(--text-muted); }
.tri-card-light h3 { color: var(--ink); }
.tri-card-light .tri-star { color: var(--brass); }

/* ---------- Strom bohatství ---------- */

.tree-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.tree-result { margin-top: 26px; }
.tree-result span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--ink);
  line-height: 1.1;
}
.tree-result small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.tree-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.tree-visual { display: grid; place-items: center; }
#wealth-tree { width: min(100%, 420px); height: auto; }

.t-ground {
  stroke: var(--brass-soft);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1s ease .1s;
}
.t-b {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.3s ease;
}
.t-b:nth-child(2) { transition-delay: .35s; stroke-width: 5; }
.t-b:nth-child(3) { transition-delay: .45s; stroke-width: 5; }
.t-b:nth-child(4) { transition-delay: .55s; stroke-width: 5.5; }
.t-b:nth-child(5) { transition-delay: .7s; stroke-width: 4; }
.t-b:nth-child(6) { transition-delay: .8s; stroke-width: 4; }
.t-b:nth-child(7) { transition-delay: .9s; stroke-width: 3.5; }

.t-crown circle {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform .9s cubic-bezier(.34, 1.4, .5, 1);
}
.t-crown-1 circle { fill: #563495; opacity: 0.9; }
.t-crown-2 circle { fill: #7a5cb8; opacity: 0.85; }
.t-crown-3 circle { fill: #a492c6; opacity: 0.85; }

.tree-grown .t-ground { stroke-dashoffset: 0; }
.tree-grown .t-b { stroke-dashoffset: 0; }

.t-coin {
  fill: var(--brass-soft);
  opacity: 0;
}
.tree-grown .t-coin {
  animation: coin-fall 3.2s ease-in infinite 1.6s;
}
@keyframes coin-fall {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(300px); }
}

@media (prefers-reduced-motion: reduce) {
  .t-ground, .t-b { stroke-dashoffset: 0 !important; transition: none; }
  .t-crown circle { transition: none; }
  .tree-grown .t-coin { animation: none; opacity: 0; }
}

/* Široká varianta fotky v sekci Kdo jsme — celá fotka bez ořezu */
.intro-photo-wide { aspect-ratio: auto; background: #f2f1f5; }
.intro-photo-wide img { position: static; height: auto; }
.intro-photo-wide .initials { display: none; }

/* ---------- Video pás ---------- */
.video-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}
.vb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(20, 20, 47, 0.78) 0%, rgba(26, 26, 65, 0.6) 50%, rgba(36, 28, 80, 0.75) 100%);
}
.vb-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(70px, 10vw, 120px);
  padding-bottom: clamp(70px, 10vw, 120px);
}
.vb-content .eyebrow { justify-content: center; }
.vb-content .eyebrow::before { background: var(--brass-soft); }
.vb-content h2 { color: var(--white); max-width: 22ch; margin: 0 auto; }

/* Fotka ve služebním bloku */
.service-photo {
  margin-top: 22px;
  border-radius: var(--radius);
  max-width: 620px;
  box-shadow: var(--shadow);
}

/* ---------- Saroli Sport pás ---------- */
.sport-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.sport-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sport-photo img { width: 100%; height: auto; display: block; }

/* Motto jako podpis značky */
.motto {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: clamp(46px, 7vw, 76px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.motto span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.motto span + span::before {
  content: "·";
  color: var(--brass);
  font-style: normal;
  font-size: 1.4em;
}

/* Vnitřní hero (podstránky) */
.page-hero {
  background: linear-gradient(160deg, #16163a 0%, var(--ink) 55%, #241c50 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 88% 30%, rgba(86, 52, 149, 0.4), transparent 65%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 8vw, 90px);
  padding-bottom: clamp(56px, 8vw, 90px);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-hero .lead { color: rgba(255,255,255,0.78); margin-top: 20px; }
.page-hero .eyebrow { color: var(--brass-soft); }
.page-hero .eyebrow::before { background: var(--brass-soft); }

/* ---------- Sekce ---------- */

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: linear-gradient(160deg, #16163a 0%, var(--ink) 45%, #251c52 100%); color: var(--white); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .lead { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(38px, 5vw, 56px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Karty ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--mist);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.card .icon svg { width: 26px; height: 26px; }
a.card { text-decoration: none; display: block; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brass);
}

/* Detailní služby */
.service-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--mist);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.service-block .icon svg { width: 28px; height: 28px; }
.service-block h3 { margin-bottom: 10px; }
.service-block p { color: var(--text-muted); max-width: 68ch; }
.service-block ul {
  margin: 14px 0 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.service-block li { margin-bottom: 6px; }

/* ---------- Kdo jsme (úvodní blok) ---------- */

.intro-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}
.intro-photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 55%, #563495 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}
.intro-photo .initials {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--brass-soft);
}
.intro-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fact-list {
  list-style: none;
  margin-top: 26px;
}
.fact-list li {
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  position: relative;
  font-size: 0.98rem;
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--brass);
  border-bottom: 2.5px solid var(--brass);
  transform: rotate(-45deg);
}
.fact-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Kroky spolupráce ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brass-soft);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; color: var(--text-muted); }

/* ---------- Tým ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.member {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.member-photo {
  aspect-ratio: 4 / 4.4;
  position: relative;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-soft) 55%, #563495 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.member-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.member-photo .initials {
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  color: var(--brass-soft);
  opacity: 0.9;
}

.member-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.member-body h3 { font-size: 1.15rem; }
.member-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 6px 0 14px;
}
.member-body p { font-size: 0.93rem; color: var(--text-muted); }
.member-motto {
  margin-top: 14px;
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Kontakty u členů týmu */
.member-contact {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
  word-break: break-word;
}
.member-contact a:hover { color: var(--brass); }
.member-contact svg { width: 17px; height: 17px; flex: none; color: var(--brass); }

/* ---------- Hodnoty (tmavé pásmo) ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brass-soft);
  margin-bottom: 10px;
}
.value p { color: rgba(255,255,255,0.75); font-size: 0.97rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  padding: 22px 60px 22px 26px;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brass);
  transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Kalkulačky ---------- */

.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}
.calc-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.calc-field { margin-bottom: 26px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.calc-label output {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brass);
  white-space: nowrap;
}
input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brass) var(--fill, 50%), var(--mist) var(--fill, 50%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: grab;
}

.calc-results {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 32px;
  position: sticky;
  top: 100px;
}
.calc-results h3 {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.result-main {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--brass-soft);
  margin: 10px 0 4px;
  line-height: 1.1;
}
.result-main small { font-size: 0.45em; color: rgba(255,255,255,0.6); font-family: var(--font-body); font-weight: 500; }
.result-rows { margin-top: 26px; border-top: 1px solid rgba(255,255,255,0.15); }
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.result-row span:first-child { color: rgba(255,255,255,0.65); }
.result-row strong { font-weight: 600; white-space: nowrap; }
.calc-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}
.calc-cta { margin-top: 24px; }

/* ---------- Formuláře ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

label.f-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(86, 52, 149, 0.15);
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- Kontakt ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.contact-list { list-style: none; margin-top: 28px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--mist);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.contact-list .icon svg { width: 21px; height: 21px; }
.contact-list strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--brass); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 22px; }

/* ---------- CTA pásmo ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 24ch; margin: 0 auto 16px; }
.cta-band .lead { margin: 0 auto 34px; }

/* ---------- Patička ---------- */
.footer-assetio {
  margin-top: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-assetio img { height: 24px; width: auto; margin-top: 10px; opacity: 0.9; }

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 34px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand-logo { height: 46px; width: auto; }
.site-footer .brand small { color: var(--brass-soft); }
.site-footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Animace při scrollu ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Responzivita ---------- */

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; gap: 26px; }
  .calc-layout, .contact-layout, .hero-grid, .intro-layout, .tree-layout, .sport-layout { grid-template-columns: 1fr; }
  .sport-layout .sport-photo { order: 2; }
  .triptych { grid-template-columns: 1fr; gap: 26px; }
  .tri-col:nth-child(2) { transform: none; }
  .tri-card { min-height: 0; margin-right: 34px; }
  .tri-card h3 { margin-top: 30px; }
  .calc-results { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: block; margin-left: auto; }
  .brand-sep, .brand-assetio { display: none; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; justify-content: center; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; justify-content: center; display: inline-flex; }

  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  #wealth-tree { width: min(100%, 320px); }
  .tri-card { padding: 28px 22px; }
  .calc-panel, .calc-results, .form-card { padding: 26px 22px; }
  .hero-grid { gap: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .motto { flex-direction: column; gap: 10px; }
  .motto span + span::before { content: none; }
}
