/* ==========================================================================
   Cristian Vondra — finanční poradce (Benefitas)
   ========================================================================== */

:root {
  --petrol: #213540;
  --petrol-deep: #16262e;
  --deep: #070c0c;
  --ink: #071f21;
  --cream: #fbf9f5;
  --cream-2: #efebe6;
  --paper: #ffffff;
  --text-on-dark: #eeebe6;
  --text-on-dark-soft: rgba(239, 235, 230, 0.72);
  --muted: #55605e;
  --accent: #20d93a;
  --accent-bright: #3cff67;
  --accent-dark: #14962a;
  --accent-border: rgba(32, 217, 58, 0.3);
  --line-dark: rgba(239, 235, 230, 0.14);
  --line-light: rgba(7, 31, 33, 0.1);
  --radius-lg: 2.5rem;
  --radius-md: 1.875rem;
  --radius-sm: 1.125rem;
  --shadow: 0 18px 50px rgba(7, 12, 12, 0.12);
  --font-head: "ClashDisplay", "Clash Display", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--petrol);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.container--narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

/* ===== Tlačítka ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 18px rgba(32, 217, 58, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-dark);
}

.btn--ghost:hover {
  background: rgba(239, 235, 230, 0.08);
  border-color: var(--accent-border);
  box-shadow: none;
}

.btn--small { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

.header__cta { display: none; }

.btn--full { width: 100%; }

/* ===== Hlavička ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-dark);
  padding: 0.6rem 0;
}

/* blur je na pseudo-elementu: backdrop-filter přímo na .header by změnil
   ukotvení fixed menu uvnitř hlavičky */
.header.is-scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(22, 38, 46, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-on-dark);
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--deep);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}

.logo__text small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-on-dark-soft);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--accent-bright); }

.nav a.btn { color: var(--ink); }
.nav a.btn:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(32, 217, 58, 0.13), transparent 60%),
    linear-gradient(180deg, var(--petrol-deep) 0%, var(--petrol) 70%, var(--petrol) 100%);
  color: var(--text-on-dark);
  padding: 10rem 0 5rem;
}

.hero__growth {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__growth-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.35;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw-growth 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero__growth-dot {
  fill: var(--accent-bright);
  opacity: 0;
  animation: dot-pulse 2.5s ease-in-out 2.6s infinite;
}

@keyframes draw-growth {
  to { stroke-dashoffset: 0; }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.4; r: 4; }
  50% { opacity: 1; r: 6; }
}

.hero__bars {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  padding-inline: 4vw;
  pointer-events: none;
}

.hero__bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, rgba(32, 217, 58, 0.18), rgba(32, 217, 58, 0));
  border-radius: 8px 8px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: bar-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 90ms + 0.3s);
}

@keyframes bar-rise {
  to { transform: scaleY(1); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.6rem;
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-on-dark-soft);
  max-width: 34rem;
  margin: 1.5rem 0 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-on-dark-soft);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.hero__card {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(239, 235, 230, 0.1), rgba(7, 12, 12, 0.5));
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 2rem;
}

.portrait span {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
}

.portrait p {
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
}

.hero__badge {
  position: absolute;
  left: -1.5rem;
  bottom: 1.8rem;
  background: var(--deep);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.hero__badge strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent-bright);
  line-height: 1.1;
}

.hero__badge span {
  font-size: 0.8rem;
  color: var(--text-on-dark-soft);
}

/* ===== Statistiky v hero ===== */
.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4.5rem;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat {
  background: rgba(22, 38, 46, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--accent-bright);
  line-height: 1.15;
}

.stat > span {
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
}

/* ===== Partneři ===== */
.partners {
  background: var(--deep);
  padding: 2.4rem 0;
  color: var(--text-on-dark);
}

.partners__label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-bottom: 1.4rem;
}

.partners__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.partners__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.partners__track span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  color: rgba(239, 235, 230, 0.45);
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Sekce ===== */
.section { padding: 6rem 0; }

.section--cream {
  background: var(--cream);
  color: var(--ink);
}

.section--dark {
  background: var(--petrol);
  color: var(--text-on-dark);
}

.section--contact { background: var(--petrol-deep); }

.section__head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}

.section--dark .section__eyebrow { color: var(--accent); }

.section__lead {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--dark .section__lead { color: var(--text-on-dark-soft); }

/* ===== Karty služeb ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent-border);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(32, 217, 58, 0.12);
  color: var(--accent-dark);
  margin-bottom: 1.4rem;
}

.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 0.7rem; }

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== O mně ===== */
#o-mne {
  position: relative;
  overflow: hidden;
}

.about__chart {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  opacity: 0.16;
}

.about__chart path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.portrait--large { max-width: 420px; }

.about__content h2 { margin-bottom: 1.3rem; }

.about__content p {
  color: var(--text-on-dark-soft);
  margin-bottom: 1.1rem;
}

.about__content a:not(.btn) {
  color: var(--accent-bright);
  text-decoration: none;
}

.about__content a:not(.btn):hover { text-decoration: underline; }

.about__list {
  list-style: none;
  margin: 1.6rem 0 2.2rem;
  display: grid;
  gap: 0.8rem;
}

.about__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-on-dark);
  font-size: 0.98rem;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(32, 217, 58, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320d93a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ===== Kroky spolupráce ===== */
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}

.section__head--split > div { max-width: 640px; }

.steps__house {
  width: 220px;
  margin-right: 2rem;
}

.steps__house path {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps__house path.accent { stroke: var(--accent-dark); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
}

.step__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-dark);
  margin-bottom: 1.2rem;
}

.step h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }

.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ===== Reference ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.testimonial {
  background: rgba(7, 12, 12, 0.45);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.testimonial p {
  color: var(--text-on-dark);
  font-size: 0.98rem;
  flex: 1;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
}

.testimonial footer strong { font-size: 0.95rem; }

.testimonial footer span {
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  gap: 0.9rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 0 1.5rem;
  transition: border-color 0.25s;
}

.faq details[open] { border-color: var(--accent-border); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 1.25rem 0;
}

.faq summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
  transition: background 0.3s;
}

.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; }

.faq details[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.faq details p {
  padding: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ===== Kontakt ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h2 { margin-bottom: 1.2rem; }

.contact__info > p {
  color: var(--text-on-dark-soft);
  max-width: 30rem;
}

.contact__list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1rem;
}

.contact__list a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.contact__list a:hover { color: var(--accent-bright); }

.contact__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(32, 217, 58, 0.12);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  flex-shrink: 0;
}

.contact__icon svg { width: 20px; height: 20px; }

.contact__hands {
  width: 210px;
  margin-top: 2.8rem;
}

.contact__hands path {
  fill: none;
  stroke: var(--text-on-dark-soft);
  stroke-width: 0.32;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__hands path.accent { stroke: var(--accent); }

.contact__form {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow);
}

.contact__form h3 {
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact__form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__form textarea { resize: vertical; }

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 217, 58, 0.18);
}

.contact__form .btn { margin-top: 0.4rem; }

.form__note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.form__success {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(32, 217, 58, 0.14);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.form__error {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 112, 112, 0.12);
  border: 1px solid rgba(255, 112, 112, 0.35);
  color: #c04545;
  font-weight: 700;
  font-size: 0.9rem;
}

.form__error a { color: inherit; }

/* ===== Patička ===== */
.footer {
  background: var(--deep);
  color: var(--text-on-dark-soft);
  padding: 3.5rem 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.logo--footer { margin-bottom: 1.2rem; }

.footer__note {
  max-width: 34rem;
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer__note a {
  color: var(--accent);
  text-decoration: none;
}

.footer__note a:hover { text-decoration: underline; }

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__nav a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer__nav a:hover { color: var(--accent-bright); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.4rem 0;
  font-size: 0.8rem;
}

/* ===== Právní podstránky ===== */
.header--solid {
  position: sticky;
  background: var(--petrol-deep);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header__back {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.header__back:hover { color: var(--accent-bright); }

.legal { padding-top: 4rem; min-height: 60vh; }

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.4rem 0 0.6rem;
}

.legal__updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  margin: 1.6rem 0 0.5rem;
}

.legal p, .legal li {
  color: var(--muted);
  font-size: 0.97rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin: 0.6rem 0 1rem;
  display: grid;
  gap: 0.4rem;
}

.legal a:not(.btn) { color: var(--accent-dark); }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

.legal table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.legal th, .legal td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.legal th {
  background: var(--petrol);
  color: var(--text-on-dark);
  font-weight: 600;
}

.legal tr:last-child td { border-bottom: 0; }

/* ===== Cookie lišta ===== */
.cookiebar {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 430px;
  margin-left: auto;
  background: var(--deep);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  color: var(--text-on-dark);
  box-shadow: 0 18px 50px rgba(7, 12, 12, 0.5);
}

.cookiebar h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cookiebar p {
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
  margin-bottom: 1.1rem;
}

.cookiebar p a { color: var(--accent); }

.cookiebar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookiebar .btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
}

.footer__links a {
  color: inherit;
  text-decoration: none;
}

.footer__links a:hover { color: var(--accent-bright); }

/* ===== Animace při scrollu ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__growth-path { animation: none; stroke-dashoffset: 0; }
  .hero__growth-dot { animation: none; opacity: 0.8; }
  .hero__bars span { animation: none; transform: none; }
  .partners__track { animation: none; }
  .card, .btn { transition: none; }
}

/* ===== Responzivita ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .hero__inner { gap: 2.5rem; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    background: var(--deep);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 90;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav a { font-size: 1.25rem; color: var(--text-on-dark); }

  .nav-toggle { display: flex; position: relative; z-index: 95; }

  .header__cta { display: inline-flex; margin-left: auto; }

  .hero { padding-top: 8rem; }

  .hero__inner { grid-template-columns: 1fr; }

  .hero__card { justify-self: center; max-width: 340px; }

  .hero__badge { left: -0.6rem; }

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

  .about { grid-template-columns: 1fr; gap: 2.5rem; }

  .section__head--split { grid-template-columns: 1fr; gap: 2rem; }

  .steps__house { width: 170px; margin-right: 0; }

  .contact__hands { width: 200px; }

  .about__chart { width: 100%; right: 0; opacity: 0.14; }

  .portrait--large { margin-inline: auto; }

  .contact { grid-template-columns: 1fr; gap: 3rem; }

  .section { padding: 4.5rem 0; }
}

@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .hero__actions .btn { width: 100%; }

  .logo__text { display: none; }

  .header__cta { padding: 0.55rem 1rem; font-size: 0.85rem; }

  .footer__inner { flex-direction: column; gap: 2rem; }
}
