/* ==========================================================================
   Vladimír Závodník — Finanční poradce
   Dark mode navy + zlatá
   ========================================================================== */

:root {
  /* Primární — tmavá navy */
  --brand-primary: #1B2745;
  --brand-primary-hover: #25335A;
  --brand-primary-soft: rgba(201, 168, 76, 0.10);

  /* Akcentová — zlatá */
  --brand-accent: #C9A84C;
  --brand-accent-hover: #DDBE66;

  /* Text */
  --brand-text: #ECE9E2;
  --brand-text-muted: #9BA3BD;

  /* Povrchy (celý web je dark mode) */
  --brand-bg: #0E1526;
  --brand-surface: #1A2440;
  --brand-surface-2: #212C4D;
  --brand-border: rgba(255, 255, 255, 0.10);

  /* Typografie */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --section-pad: 112px;
  --header-h: 76px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.25s ease;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--brand-text);
}

p { margin: 0; }

section { padding: var(--section-pad) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--brand-accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); }
.section-head p {
  margin-top: 16px;
  color: var(--brand-text-muted);
  font-size: 17px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-accent {
  background: var(--brand-accent);
  color: #1B2745;
}
.btn-accent:hover { background: var(--brand-accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--brand-text);
  border-color: var(--brand-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); }

/* Světlé tlačítko na tmavém pozadí (vše je tu tmavé) */
.btn-outline-light {
  background: transparent;
  color: var(--brand-text);
  border-color: rgba(236,233,226,.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,.06); border-color: var(--brand-text); }

/* Tmavé tlačítko pro výjimečně světlé plochy */
.btn-outline-dark {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-border);
}
.btn-outline-dark:hover { background: var(--brand-primary-soft); border-color: var(--brand-primary); }

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition),
              border-color var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(15, 21, 38, 0.65);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 36px rgba(0,0,0,.30);
}

.header.scrolled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--brand-text);
}
.logo-text span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brand-text);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--brand-accent); }

.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--brand-text);
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-dropdown-btn:hover { color: var(--brand-accent); }
.nav-dropdown-btn i { font-size: 16px; transition: transform var(--transition); }
.nav-dropdown-btn[aria-expanded="true"] i { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--brand-text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--brand-accent); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--brand-text);
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
}

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

.hero {
  background: linear-gradient(160deg, var(--brand-primary) 0%, #15203D 60%, var(--brand-bg) 100%);
  padding: 64px 0 var(--section-pad);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow { color: var(--brand-accent); }
.hero-eyebrow::before { content: none; }

.hero h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  color: #fff;
}

.hero-desc {
  margin-top: 22px;
  font-size: 18px;
  color: var(--brand-text-muted);
  max-width: 540px;
}

.hero-photo-mobile { display: none; }

.hero-ctas {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-ctas .btn-ghost i { font-size: 18px; }

.hero-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.95);
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(150deg, var(--brand-surface) 0%, var(--brand-surface-2) 100%);
  color: var(--brand-text-muted);
  text-align: center;
  padding: 24px;
}
.hero-photo-placeholder i { font-size: 48px; color: var(--brand-accent); }
.hero-photo-placeholder span { font-size: 14px; }

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--brand-surface); }

.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 64px;
}

.about-heading h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  position: sticky;
  top: 120px;
}

.about-body p { color: var(--brand-text-muted); margin-bottom: 20px; }
.about-body p:last-of-type { margin-bottom: 0; }

.about-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat {
  padding-left: 18px;
  border-left: 2px solid var(--brand-accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.about-stats.in-view .stat { opacity: 1; transform: translateY(0); }
.about-stats.in-view .stat:nth-child(2) { transition-delay: .06s; }
.about-stats.in-view .stat:nth-child(3) { transition-delay: .12s; }
.about-stats.in-view .stat:nth-child(4) { transition-delay: .18s; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  color: var(--brand-accent);
}
.stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--brand-text-muted);
}

/* ==========================================================================
   Cards grid (Služby / Proč já)
   ========================================================================== */

.cards-grid, .why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card, .why-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition);
}
.cards-grid.in-view .card,
.why-grid.in-view .why-card { opacity: 1; transform: translateY(0); }
.cards-grid.in-view .card:nth-child(2),
.why-grid.in-view .why-card:nth-child(2) { transition-delay: .08s; }
.cards-grid.in-view .card:nth-child(3),
.why-grid.in-view .why-card:nth-child(3) { transition-delay: .16s; }
.cards-grid.in-view .card:nth-child(4),
.why-grid.in-view .why-card:nth-child(4) { transition-delay: .24s; }

.card {
  padding-top: 28px;
  border-top: 2px solid var(--brand-border);
}
.card:hover { border-top-color: var(--brand-accent); }

.card-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--brand-accent);
  margin-bottom: 16px;
  line-height: 1;
}

.why-icon {
  display: flex;
  color: var(--brand-accent);
  font-size: 30px;
  margin-bottom: 18px;
}

.card h3, .why-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.card p, .why-card p {
  color: var(--brand-text-muted);
  font-size: 15px;
}

/* Sections backgrounds */
.section-bg { background: var(--brand-bg); }
.section-surface { background: var(--brand-surface); }
.section-primary { background: var(--brand-primary); }

/* ==========================================================================
   CTA teaser
   ========================================================================== */

.calc-teaser {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, var(--brand-surface) 55%);
}

#reference {
  background: linear-gradient(225deg, rgba(201, 168, 76, 0.10) 0%, var(--brand-surface) 55%);
}

.calc-teaser { border-top: 1px solid var(--brand-border); border-bottom: 1px solid var(--brand-border); }

.calc-teaser .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.calc-teaser-icon {
  display: flex;
  align-items: flex-start;
  color: var(--brand-accent);
  font-size: 48px;
  line-height: 1;
}

.calc-teaser-content h2 { font-size: clamp(24px, 3vw, 32px); }
.calc-teaser-content p { margin-top: 12px; color: var(--brand-text-muted); max-width: 560px; }

.teaser-btns { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }

.teaser-perks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
}
.perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-text-muted);
}
.perk i { color: var(--brand-accent); font-size: 18px; }

/* ==========================================================================
   Process steps
   ========================================================================== */

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

.step {
  position: relative;
  padding-top: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.steps.in-view .step { opacity: 1; transform: translateY(0); }
.steps.in-view .step:nth-child(2) { transition-delay: .06s; }
.steps.in-view .step:nth-child(3) { transition-delay: .12s; }
.steps.in-view .step:nth-child(4) { transition-delay: .18s; }

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 24px;
  height: 2px;
  background: var(--brand-border);
  transition: background var(--transition);
}
.step:hover::before, .step:first-child::before { background: var(--brand-accent); }

.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--brand-text-muted); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-carousel { width: 100%; }

.google-reviews-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-text);
  transition: color var(--transition);
}
.google-reviews-link:hover { color: var(--brand-accent); }
.testimonials-viewport { overflow: hidden; }

.testimonials {
  display: flex;
  gap: 48px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.6s ease;
}
.testimonials.in-view { opacity: 1; }

@media (max-width: 960px) {
  .testimonials { gap: 0; }
}

.testimonial {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  flex-shrink: 0;
}

.testimonial p {
  font-size: 15.5px;
  color: var(--brand-text);
  border-left: 2px solid var(--brand-accent);
  padding-left: 16px;
  margin-bottom: 20px;
}

.testimonial-author { display: flex; flex-direction: column; }
.testimonial-author strong { font-size: 14.5px; }
.testimonial-author span { font-size: 13px; color: var(--brand-text-muted); }

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.testimonials-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brand-border);
  background: transparent;
  color: var(--brand-text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.testimonials-btn:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

.testimonials-dots { display: flex; gap: 8px; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--brand-border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.dot.active { background: var(--brand-accent); transform: scale(1.2); }

/* ==========================================================================
   Credentials / Trust
   ========================================================================== */

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.credential {
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.credentials-grid.in-view .credential { opacity: 1; transform: translateY(0); }
.credentials-grid.in-view .credential:nth-child(2) { transition-delay: .06s; }
.credentials-grid.in-view .credential:nth-child(3) { transition-delay: .12s; }
.credentials-grid.in-view .credential:nth-child(4) { transition-delay: .18s; }

.credential + .credential { border-left: 1px solid var(--brand-border); }

.credential i {
  font-size: 32px;
  color: var(--brand-accent);
  margin-bottom: 16px;
}
.credential h3 { font-size: 16px; margin-bottom: 8px; }
.credential p { font-size: 13.5px; color: var(--brand-text-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--brand-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-text);
  padding: 24px 0;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--brand-accent);
  transition: transform var(--transition);
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translateX(-50%) rotate(90deg) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 0 24px;
  color: var(--brand-text-muted);
  font-size: 15px;
  max-width: 680px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--brand-primary); }

.contact .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-info h2 { font-size: clamp(28px, 3.5vw, 40px); color: #fff; }
.contact-info > p { margin-top: 16px; color: var(--brand-text-muted); max-width: 440px; }

.contact-details {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}
.contact-details i {
  font-size: 20px;
  color: var(--brand-accent);
  margin-top: 2px;
}
.contact-details a { transition: color var(--transition); }
.contact-details a:hover { color: var(--brand-accent); }

.contact-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .55;
  margin-bottom: 2px;
  font-style: normal;
}

.contact-map {
  margin-top: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--brand-border);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  filter: invert(92%) hue-rotate(180deg) brightness(0.97) contrast(0.95);
}

.contact-form-wrap {
  scroll-margin-top: 100px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--brand-text);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  color: var(--brand-text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
}
.form-row textarea { resize: vertical; min-height: 110px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--brand-text-muted);
}
.form-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-accent); flex-shrink: 0; }
.form-checkbox a { color: var(--brand-accent); }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-submit { margin-top: 24px; }
.form-submit .btn { width: 100%; }

.form-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form-message.success { background: rgba(95, 168, 118, .12); border: 1px solid rgba(95, 168, 118, .35); color: #9ad6ae; }
.form-message.error { background: rgba(224, 90, 90, .12); border: 1px solid rgba(224, 90, 90, .35); color: #f0a3a3; }

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

.footer {
  background: #0A0F1E;
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--brand-text-muted);
  font-size: 14px;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-social { display: flex; gap: 10px; }
.footer-social a,
.contact-social a {
  width: 44px; height: 44px;
  border-radius: 11px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}
.footer-social a:hover,
.contact-social a:hover { transform: scale(1.08); opacity: .9; }

.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-accent);
  margin-bottom: 20px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a, .footer ul span, .footer ul li { font-size: 14.5px; color: var(--brand-text-muted); }
.footer ul a:hover { color: var(--brand-accent); }
.footer ul li { display: flex; align-items: flex-start; gap: 10px; }
.footer ul li i { color: var(--brand-accent); font-size: 17px; margin-top: 2px; }

.footer-partners {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--brand-border);
}
.footer-partners-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-text-muted);
  opacity: .7;
  margin-bottom: 18px;
}
.footer-partners-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-partners-logos a {
  display: flex;
  align-items: center;
  height: 28px;
  transition: opacity var(--transition);
}
.footer-partners-logos a.has-bg {
  height: 40px;
  padding: 8px 18px;
  background: #fff;
  border-radius: var(--radius-sm);
}
.footer-partners-logos a:hover { opacity: .8; }
.footer-partners-logos img {
  height: 100%;
  width: auto;
  display: block;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--brand-border);
}
.footer-legal {
  font-size: 12.5px;
  color: var(--brand-text-muted);
  opacity: .75;
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 20px;
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--brand-text-muted);
}
.footer-bottom-row a { transition: color var(--transition); }
.footer-bottom-row a:hover { color: var(--brand-accent); }
.footer-bottom-links { display: flex; gap: 24px; }

.footer-credit {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--brand-border);
  text-align: center;
  font-size: 12.5px;
  color: var(--brand-text-muted);
  opacity: .75;
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   Sticky call bar
   ========================================================================== */

.sticky-call { display: none; }

@media (max-width: 960px) {
  .sticky-call {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 85;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom)) 16px;
    background: rgba(10, 15, 30, 0.97);
    backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid var(--brand-border);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 10px;
  }
  .sticky-call.visible { transform: translateY(0); }
  .sticky-call .btn { flex: 1; padding: 13px; font-size: 14px; }
  body.has-sticky-call .back-to-top { bottom: 84px; right: 16px; }
}

/* ==========================================================================
   404 page
   ========================================================================== */

.error-section {
  background: var(--brand-primary);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.error-section .container { text-align: center; }
.error-code {
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.06);
  letter-spacing: -4px;
  margin-bottom: -24px;
  display: block;
}
.error-section h1 { color: #fff; margin-bottom: 16px; }
.error-section p { color: var(--brand-text-muted); margin-bottom: 32px; }
.error-section .container > div:last-child { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer-minimal {
  background: #0A0F1E;
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--brand-text-muted);
}

/* ==========================================================================
   Hypoteční kalkulačka
   ========================================================================== */

.page-header {
  background: var(--brand-primary);
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 56px;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 16px; }
.page-header p {
  color: var(--brand-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.calculator-section { background: var(--brand-bg); }
.calculator-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .stat, .card, .why-card, .step, .credential, .testimonials {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: block; }

  .nav.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--brand-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 28px;
    overflow-y: auto;
  }
  .nav.mobile-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }
  .nav.mobile-open .nav-links a { font-size: 18px; }
  .nav.mobile-open .nav-dropdown { width: 100%; }
  .nav.mobile-open .nav-dropdown-btn { font-size: 18px; }
  .nav.mobile-open .nav-dropdown-menu {
    position: static;
    transform: none;
    left: 0;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
  }
  .nav.mobile-open .nav-dropdown-menu.open { display: block; }
  .nav.mobile-open .header-cta { width: 100%; }
  .nav.mobile-open .header-cta .btn { width: 100%; }
}

@media (max-width: 960px) {
  :root { --section-pad: 72px; }

  .hero { padding: 40px 0 var(--section-pad); }
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero-photo { display: none; }
  .hero-desc { display: none; }
  .hero-photo-mobile {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--brand-border);
  }
  .hero-photo-mobile img,
  .hero-photo-mobile .hero-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .hero-ctas { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .hero-ctas .btn { width: 100%; }

  .teaser-btns { flex-direction: column; align-items: stretch; }
  .teaser-btns .btn { width: 100%; }

  .about .container { grid-template-columns: 1fr; gap: 32px; }
  .about-heading h2 { position: static; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .cards-grid, .why-grid { grid-template-columns: 1fr; }

  .calc-teaser .container { grid-template-columns: 1fr; text-align: left; }

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

  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .credential + .credential { border-left: none; }

  .contact .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }

  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }

  .cards-grid,
  .why-grid,
  .steps,
  .credentials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 0 20px;
    scrollbar-width: none;
  }
  .cards-grid::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar,
  .steps::-webkit-scrollbar,
  .credentials-grid::-webkit-scrollbar { display: none; }

  .card, .why-card, .step, .credential {
    flex: 0 0 83%;
    min-width: 0;
    scroll-snap-align: start;
  }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
