/* =====================================================
   DESIGN TOKENY
   ===================================================== */
:root {
  --bg:         #ECE7E1;
  --blue:       #3E47CD;
  --coral:      #FF695B;

  --font-sans:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Layout helpers */
  --hero-pad:   clamp(1.5rem, 4vw, 3.5rem);
  --card-pad:   clamp(1.5rem, 3vw, 2.75rem);
  --gap:        clamp(1rem, 3vw, 2rem);
}

/* =====================================================
   RESET
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--blue);
  /* Alert bar + hero vyplní celé okno */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--bg);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav__links a {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--bg);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.mobile-nav__links a:hover {
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =====================================================
   PRELOADER — modrá plocha, bílé logo, serif načítání
   ===================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Po načtení — plynule zmizí a přestane blokovat obsah */
.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding: 1.5rem;
  animation: preloader-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes preloader-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Bílé logo — jednobarevné SVG přebarvené filtrem na čistou bílou */
.preloader__logo {
  width: clamp(150px, 26vw, 240px);
  height: auto;
  filter: brightness(0) invert(1);
}

.preloader__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Serif „Načítání" */
.preloader__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.03em;
  color: var(--bg);
  opacity: 0.9;
}

/* Tenká linka + fill (scaleX = GPU, plynulé) */
.preloader__bar {
  position: relative;
  width: clamp(120px, 22vw, 170px);
  height: 2px;
  border-radius: 999px;
  background: rgba(236, 231, 225, 0.22);
  overflow: hidden;
}

.preloader__bar-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg);
  transform-origin: left center;
  transform: scaleX(0);
  animation: preloader-fill 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes preloader-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__inner    { animation: none; }
  .preloader__bar-fill { animation: none; transform: scaleX(1); }
}

/* =====================================================
   REVEAL ANIMACE — page load
   ===================================================== */
@keyframes anim-drop {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes anim-heading {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes anim-text-line {
  from { opacity: 0; filter: blur(6px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0px); transform: translateY(0); }
}

@keyframes anim-btn-rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Loga shora */
.hero__top-bar {
  animation: anim-drop 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
}
.hero__top-bar > a.card__btn {
  animation: anim-drop 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Nadpis */
.card__heading {
  animation: anim-heading 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Řádky těla textu — delay nastaví JS */
.rev-line {
  display: inline;
  animation: anim-text-line 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0.5s) both;
}

/* Button — přijíždí jako poslední */
.card__btn {
  animation: anim-btn-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--btn-delay, 0.9s) both;
}

/* Respektovat prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__top-bar,
  .card__heading,
  .rev-line,
  .card__btn,
  .photo-shadow {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* =====================================================
   ALERT PÁSEK
   ===================================================== */
.alert-bar {
  background: var(--coral);
  color: var(--bg);
  padding: 0.35rem 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}

.alert-bar__text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.7rem, 1.4vw, 0.8125rem);
  letter-spacing: 0.07em;
  display: inline-block;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* =====================================================
   STICKY MENU — frosted, sjede shora při scrollu pod hero
   ===================================================== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(236, 231, 225, 0.6);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(62, 71, 205, 0.08);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sticky-nav.is-visible {
  transform: translateY(0);
}

.sticky-nav img {
  display: block;
  width: auto;
}

.sticky-nav__logo {
  display: block;
  line-height: 0;
}

.sticky-nav__logo img {
  height: clamp(2rem, 3.2vw, 2.75rem);
}

.sticky-nav__party {
  height: clamp(2.5rem, 4vw, 3.5rem);
}

/* Navigace uprostřed sticky menu */
.sticky-nav__menu {
  /* display: flex; is already here */
  align-items: center;
  height: 100%;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.sticky-nav__menu a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--blue);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.sticky-nav__menu a:hover {
  color: var(--coral);
}

/* Hamburger Button */
.hamburger-btn {
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3; /* Ensure it's clickable in the hero__top-bar */
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* In sticky nav, the hamburger is white */
.sticky-nav .hamburger-btn span {
  background-color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-nav {
    transition: none;
  }
}

/* =====================================================
   HERO — CSS GRID (2 × 2)
   ===================================================== */
/*
  Desktop:
    ┌─────────────┬─────────────┐
    │  logo       │  party-logo │
    │             │             │
    │  card       │  photo      │
    └─────────────┴─────────────┘
*/
.hero {
  flex: 1;
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  display: grid;
  /* Size first column by content, preventing it from becoming too wide. */
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top-bar top-bar"
    "card   photo";
  padding: var(--hero-pad);
  gap: var(--gap);
  background: var(--bg);
  position: relative;
  overflow: visible;
  /* Hero vždy vyplní obrazovku (minus alert pásek) — formulář až na scroll */
  min-height: calc(100vh - 2rem);
  min-height: calc(100svh - 2rem);
}

/* Dekorativní stín listů — full-bleed k pravému okraji viewportu.
   Drží se v horní části; spodek plynule mizí, aby nezasahoval do
   fade overlaye pod fotkou (jinak vznikal viditelný obdélník). */
.photo-shadow {
  position: absolute;
  top: -8%;
  right: calc(50% - 50vw);
  width: 100vw;
  height: 90%;
  object-fit: cover;
  object-position: right top;
  opacity: 0.45;
  transform-origin: 60% 30%;
  animation: shadow-sway 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;   /* vlastní GPU vrstva — animace neovlivní sousedy */
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 80%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 80%);
}

@keyframes shadow-sway {
  0%, 100% { transform: rotate(0deg)    scale(1);    }
  35%       { transform: rotate(3.5deg)  scale(1.02); }
  70%       { transform: rotate(-2.5deg) scale(0.99); }
}

/* Grid prvky nad dekorativním stínem */
.hero__logo,
.hero__top-bar, .hero__card {
  position: relative;
  z-index: 1;
}

/* Karta musí být nejvýš — zakrývá foto na mobilu */
.hero__card {
  z-index: 3;
}

/* =====================================================
   TOP BAR — Nav, Logo, CTA
   ===================================================== */
.hero__top-bar {
  grid-area: top-bar;
  display: flex;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.hero__top-bar > .sticky-nav__menu {
  justify-self: start;
}

.hero__top-bar > .card__btn {
  justify-self: end;
}

.hero__top-bar > .hamburger-btn {
  justify-self: start;
}

.hero__top-bar-logo {
  /* Center logo can shrink on mobile if needed */
  min-width: 0;
}

.hero__top-bar-logo img {
  height: clamp(2.5rem, 4vw, 3.5rem);
  width: auto;
}

/* =====================================================
   MODRÁ KARTA — vlevo dole
   ===================================================== */
.hero__card {
  grid-area: card;
  align-self: end;
}

.card {
  background: var(--blue);
  color: var(--bg);
  padding: var(--card-pad);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* Fluid max-width: scales between 480px (30rem) and 520px (32.5rem). */
  max-width: clamp(30rem, 20rem + 10vw, 30rem);
  /* Vlastní GPU vrstva — box se při scrollu nepřekresluje (žádný jitter
     pod proskleným sticky menu) */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.card__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.6875rem, 1vw, 0.8125rem);
  letter-spacing: 0.02em;
  opacity: 0.65;
}

.card__heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.15;
  color: var(--bg);
}

/* „srdc" prefix — Playfair Display */
.card__heading-serif {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* „OVA" — Inter 700, kapitálky */
.card__heading-ova {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.word-rotate {
  display: inline-block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.card__body {
  font-family: var(--font-sans);
  font-weight: 350;
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  line-height: 1.7;
  color: #ffffff;
  opacity: 0.88;
}

.card__subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.875rem, 1.3vw, 0.8rem);
  line-height: 1.7;
  color: #ffffff;
  opacity: 0.88;
}

/* Ruční zalomení jen na širších screenech; na mobilu přirozené zalomení */
.br-desktop {
  display: none;
}

@media (min-width: 601px) {
  .br-desktop {
    display: inline;
  }
}

/* Container for the two buttons in the hero card */
.card__actions {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 1rem;
  margin-top: 0.5rem; /* Add some space above the buttons */
}

/* BUTTON — pill, var(--coral) pozadí, var(--bg) text, Playfair */
.card__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--coral);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.25rem;
  height: 60px;
  padding: 0 2.25rem;
  border-radius: 999px;
  position: relative;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color      0.3s ease;
}

.card__btn:hover {
  background: var(--blue);
  color: #ffffff;
}

.card__btn:focus-visible {
  outline: 3px solid var(--bg);
  outline-offset: 3px;
}

/* SVG stroke — kreslí se dokola při hoveru */
.btn__stroke {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.btn__stroke-rect {
  fill: none;
  stroke: var(--bg);
  stroke-width: 1;
  stroke-dasharray:  var(--btn-perimeter, 0);
  stroke-dashoffset: var(--btn-perimeter, 0);
  transition: stroke-dashoffset 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.card__btn:hover .btn__stroke-rect {
  stroke-dashoffset: 0;
}

/* Slide efekt — dvojitý text, posun nahoru při hoveru */
.card__btn {
  overflow: hidden;
}

.btn__track {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.btn__track span {
  display: flex;
  align-items: center;
  height: 60px;
}

.card__btn:hover .btn__track {
  transform: translateY(-60px);
}

/* Přístupný skrytý text pro screen readery */
.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;
}

/* =====================================================
   PHOTO WRAPPER — wrapper v gridu, shadow + foto uvnitř
   ===================================================== */
.hero-photo {
  grid-area: photo;
  position: relative;
  overflow: visible;   /* glow může přetéct do stran */
  z-index: 2;
  isolation: isolate;  /* vlastní stacking context — shadow-sway ho neovlivní */
  align-self: stretch; /* wrapper roztáhne až k dolnímu okraji hero */
}

/* Fade overlay — spodní část foto splyne s pozadím */
.hero-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    to bottom,
    rgba(236, 231, 225, 0)   0%,
    rgba(236, 231, 225, 0.7) 60%,
    rgba(236, 231, 225, 1)   100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Měkký CSS glow — za postavou, uvnitř wrapperu */
.hero-photo__glow {
  position: absolute;
  left: -15%;
  right: -15%;
  top: 10%;
  bottom: 0;
  background: radial-gradient(ellipse at center,
    rgba(60, 60, 60, 0.32) 0%,
    rgba(60, 60, 60, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Fotka kandidáta nad glowem — bottom-anchored, nad hlavou vždy vzduch */
.hero-photo__img {
  position: absolute;
  bottom: 0;
  height: auto;
  max-height: 100%;   /* desktop: fotka o 30 % větší (94 % × 1.3) */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.hero-photo__name,
.hero-photo__role {
  transition: opacity 0.4s ease;
}

/* Jméno a pozice kandidáta — vpravo, cca 1/3 výšky */
.hero-photo__label {
  position: absolute;
  top: 40%;
  right: 12.5%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
  z-index: 3;  /* nad fade overlayem (::after = 2) */
}

.hero-photo__name {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-align: left;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
}

.hero-photo__role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-align: left;
  font-weight: 400;
  color: var(--blue);
  opacity: 0.65;
  line-height: 1.3;
}

/* Logo koalice vpravo dole ve fotce */
.hero-photo__coalition-logo {
  position: absolute;
  bottom: var(--gap);
  right: var(--gap);
  height: clamp(2.75rem, 4.5vw, 7rem);
  width: auto;
  min-height: 5rem;
  z-index: 3; /* Nad fade overlayem */
  opacity: 0.9;
}

/* =====================================================
   RESPONZIVITA
   ===================================================== */

/* On medium-large screens, move the label below the photo */
@media (max-width: 1300px) {
  .hero-photo__label {
    top: auto;
    bottom: var(--gap);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    align-items: center;
    gap: 0.4rem;
    max-width: 90%;
  }
}


@media (max-width: 1020px) {
   .hero-photo__label {
    display: none;
      }
}

/*
  Tablet ≤ 900px:
    ┌──────────┬──────────┐
    │  logo    │party-logo│
    ├──────────┴──────────┤
    │       photo         │
    ├─────────────────────┤
    │        card         │
    └─────────────────────┘
*/
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "top-bar  top-bar"
      "photo    photo"
      "card  card";
    min-height: 100svh;
    min-height: 100vh;
    padding-bottom: 0;
  }

  /* Stín nepulzuje na mobilu + glow bez blur */
  .photo-shadow {
    animation: none;
    will-change: auto;
  }

  .hero-photo__glow {
    filter: none;
  }

  .card {
    max-width: 100%;
  }

  .hero-photo {
    /* Replicating the responsive pattern from .about-ivan__portrait-wrapper */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 60vh; /* Give it a viewport-based height */
    min-height: 350px; /* Ensure it doesn't get too small on short screens */
  }

  .hero-photo__img {
    position: relative; /* Override absolute positioning from desktop */
    height: 100%;       /* Fill the container height */
    width: auto;
    max-width: 80%;     /* Prevent image from being too wide */
    max-height: none;   /* Remove max-height constraint */
  }

  /* Label — vpravo, pod menu, zalomit na dva řádky */
  .hero-photo__label {
    top: clamp(5.5rem, 18vw, 8rem);
    right: 1.25rem;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: clamp(100px, 30vw, 150px);
  }

  /* Karta — padding od spodního okraje telefonu */
  .card {
    padding-bottom: calc(var(--card-pad) + env(safe-area-inset-bottom, 0.75rem));
  }
}

@media (max-width: 600px) {
  /* Explicitní výška — hero vyplní obrazovku i s další sekcí pod ním.
     Alert (~2rem) + hero = jedna obrazovka bez scrollu. */
  .hero {
    min-height: calc(100svh - 2rem);
    padding: 1.25rem 1.25rem 1.5rem;   /* spodní padding — box dýchá */
    gap: 0.75rem;
  }

  .hero-photo__coalition-logo {
    display: none;
  }

  .card__btn {
    align-self: stretch;
    text-align: center;
  }
}

/* Velmi malé displeje ≤ 380px */
@media (max-width: 380px) {
}

/* Hide some hero photo elements on very small screens to prevent clutter */
@media (max-width: 420px) {
  .hero-photo__label,
  .hero-photo__coalition-logo {
    display: none;
  }
}
/* =====================================================
   ZAPOJTE SE — kontaktní formulář
   ===================================================== */
.signup {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: var(--bg); /* Světlá barva pozadí z fotky */
  overflow: hidden; /* Zamezí nechtěnému horizontálnímu posuvníku */
}

/* Pozadí přes obrázek */
.signup__bg-people {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh; /* Zabezpečí, že obrázek neuskočí moc vysoko */
  object-fit: cover;
  object-position: center bottom;
  z-index: 1; /* Schová obrázek za formulář */
  pointer-events: none; /* Zabezpečí, že obrázek neblokuje klikání */
}

.signup__box {
  position: relative;
  z-index: 10; /* Formulář bude vždy spolehlivě NAD obrázkem */
  background: #F6F2ED; /* Mírně odlišná barva pro kontrast */
  width: 100%;
  /* Fluid max-width: scales between 450px (28.125rem) and 498px (31.125rem). */
  max-width: clamp(28.125rem, 20rem + 10vw, 31.125rem);
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.signup__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: var(--blue);
}

.signup__lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  line-height: 1.6;
  color: var(--blue);
  opacity: 0.85;
  margin-top: 0.85rem;
}

/* ── Formulář ── */
.signup__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  color: #4a4a4a;
}

.field__input {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid #d9d2c8;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: #9a9a9a;
}

.field__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(62, 71, 205, 0.12);
}

.field__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Dvojice e-mail / telefon */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Souhlas ── */
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field-consent__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}

.field-consent__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #4a4a4a;
  cursor: pointer;
}

.field-consent__link {
  color: var(--blue);
  text-decoration: underline;
}

/* ── Submit button — pill, stejný jako hero ── */
.signup__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 1.75rem;
  margin-top: 0.25rem;
  background: var(--coral);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.3s ease,
    color      0.3s ease;
}

.signup__btn:hover {
  background: var(--blue);
  color: #ffffff;
}

.signup__btn:focus-visible {
  outline: 3px solid var(--bg);
  outline-offset: 3px;
}

.signup__btn-label,
.signup__btn-arrow {
  position: relative;
  z-index: 1;
}

.signup__btn-arrow {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.signup__btn:hover .signup__btn-arrow {
  transform: translateX(4px);
}

/* Souhlas checkbox — červené orámování při neplatnosti po odeslání */
.signup__btn .btn__stroke-rect {
  stroke: var(--bg);
}

.signup__btn:hover .btn__stroke-rect {
  stroke-dashoffset: 0;
}

/* Formulář se schová jen když má atribut hidden (přebít display:flex) */
.signup__form[hidden] {
  display: none;
}

/* =====================================================
   BOTTOM SHEET — Apple-style panel zdola (success)
   ===================================================== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skrytý sheet nesmí překrývat stránku (přebít display:flex) */
.sheet[hidden] {
  display: none;
}

/* Ztmavlé pozadí */
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 40, 0.45);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sheet.is-visible .sheet__backdrop {
  opacity: 1;
}

/* Panel — vycentrovaný dialog (desktop) */
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: #F6F2ED;
  border-radius: 28px;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgba(20, 20, 40, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.45s ease;
  will-change: transform, opacity;
}

.sheet.is-visible .sheet__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Grabber (táhlo) dává smysl jen u bottom-sheetu na telefonu */
.sheet__grabber {
  display: none;
}

.sheet__close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
  background: rgba(62, 71, 205, 0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sheet__close:hover {
  background: rgba(62, 71, 205, 0.16);
}

.sheet__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--bg);
  margin-bottom: 1.25rem;
  animation: sheet-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.sheet__icon svg {
  width: 31px;
  height: 31px;
}

@keyframes sheet-pop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.sheet__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--blue);
  line-height: 1.1;
}

.sheet__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--blue);
  opacity: 0.8;
  line-height: 1.6;
  max-width: 420px;
  margin-top: 0.85rem;
}

/* Primární — Přidat další e-mail (konverze) */
.sheet__again {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--bg);
  background: var(--coral);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.25rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.sheet__again:hover {
  background: var(--blue);
}

.sheet__again:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sheet__panel,
  .sheet__backdrop { transition: none; }
  .sheet__icon { animation: none; }
}

/* Telefon — success zpět jako bottom-sheet (vyjede zdola) */
@media (max-width: 600px) {
  .sheet {
    align-items: flex-end;
  }

  .sheet__panel {
    max-width: 640px;
    margin: 0;
    min-height: 52svh;
    max-height: 92svh;
    border-radius: 28px 28px 0 0;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
    box-shadow: 0 -12px 50px rgba(20, 20, 40, 0.25);
    opacity: 1;
    transform: translateY(100%);
  }

  .sheet.is-visible .sheet__panel {
    opacity: 1;
    transform: translateY(0);
  }

  /* Grabber zpět nahoře */
  .sheet__grabber {
    display: block;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    border-radius: 999px;
    background: rgba(62, 71, 205, 0.25);
  }
}

/* Mobil — dvojice pod sebe, sekce scrollovatelná */
@media (max-width: 600px) {
  .signup {
    min-height: 100svh;
    align-items: flex-start;
    padding: 2rem 1.25rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   NAŠE VIZE
   ===================================================== */
.vision {
  display: flex;
  flex-direction: column; /* Stack header and cards vertically */
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--bg);
  gap: clamp(2.5rem, 6vw, 4rem); /* Add space between header and cards */
}

.vision__header {
  width: 100%;
  max-width: 720px; /* Wider for more text content */
  text-align: center;
}

.vision__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.1;
  color: var(--blue);
}

.vision__lead {
  font-family: 'Neue Montreal', var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.3;
  color: var(--blue);
  opacity: 0.85;
  margin-top: 1.5rem;
}

.vision__lead--highlight {
  font-family: var(--font-serif);
  color: var(--coral);
  font-weight: 700;
}

/* Container for the vision cards */
.vision__card-container {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1700px; /* Match the hero section's max-width */
  width: 100%;
}

/* Individual card styling */
.vision__card {
  background-color: #F6F2ED; /* Consistent with signup form background */
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Image container */
.vision__card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.vision__card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Typography */
.vision__card-title {
  font-family: var(--font-serif);
  color: var(--blue);
  font-size: clamp(1.5rem, 1rem + 2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.vision__card-text {
  font-family: var(--font-sans);
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .vision__card-container {
    flex-direction: column;
  }
}

/* =====================================================
   ABOUT IVAN SECTION
   ===================================================== */
.about-ivan {
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  gap: clamp(2rem, 4vw, 3rem);
  overflow: hidden;

}

.about-ivan__title {
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  order: -1;
  text-align: center;
}

.about-ivan__container {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Align items vertically */
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1700px;
  width: 100%;
}

/* Left blue badge block */
.about-ivan__badge {
  background-color: var(--blue);
  color: var(--bg);
  flex: 0 0 22rem; /* Use flex-basis for fixed width on desktop */
  max-width: 22rem; /* Ensure it doesn't grow beyond this */
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;  
  order: 1; /* Default order */
}

.about-ivan__badge-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  opacity: 0.9;
  font-weight: 500;
}

.about-ivan__badge-title {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.about-ivan__badge-quote {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 0.5rem;
}

.about-ivan__badge-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  margin-top: 3.75rem;
  opacity: 0.8;
}

/* Center portrait image styling */
.about-ivan__portrait-wrapper {
  position: relative; /* Changed from absolute */
  flex: 1 1 400px; /* Allow it to grow and shrink */
  max-width: 600px;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  order: 2; /* Center element */
}

.about-ivan__portrait-wrapper img {
  height: 130%; /* Make image taller than its container to "zoom" */
  width: 100%;
  object-fit: cover; /* Fill the container, cropping if necessary */
  object-position: center bottom; /* Align the bottom of the image with the bottom of the container */
}

/* Fade overlay to blend the bottom of the portrait into the background */
.about-ivan__portrait-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(236, 231, 225, 0.8) 50%,
    var(--bg) 100%
  );
  pointer-events: none;
}

/* Glow effect behind the portrait, similar to hero */
.about-ivan__glow {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 15%;
  bottom: 0;
  background: radial-gradient(ellipse at center,
    rgba(60, 60, 60, 0.28) 0%,
    rgba(60, 60, 60, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Right text layout block */
.about-ivan__right-content {
  flex: 0 0 24rem; /* Use flex-basis for fixed width on desktop */
  max-width: 24rem; /* Ensure it doesn't grow beyond this */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  order: 3; /* Right-most element */
}

.about-ivan__main-intro {
  color: var(--blue);
  font-size: 1.125rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem); /* Responsive font size */
  line-height: 1.6;
  font-weight: 550;
  text-align: left;
}

.about-ivan__sub-bio {
  color: var(--blue);
  font-size: 0.875rem;
  font-size: clamp(0.875rem, 2vw, 1rem); /* Responsive font size */
  line-height: 1.8;
  font-weight: 500;
  text-align: left;
}

/* Responsive layout for the "About Ivan" section */
@media (max-width: 1024px) {
  /* On smaller screens, stack badge and text above/below the image */
  .about-ivan__badge { order: 1; }
  .about-ivan__portrait-wrapper { order: 2; }
  .about-ivan__right-content { order: 3; text-align: center; padding:2rem; }
  .about-ivan__glow { display: none; } /* Hide complex effects on mobile */
  .about-ivan__portrait-wrapper::after {
    height: 40%; /* Increase fade effect on mobile */
  }

  /* On smaller screens, hide the text menu and show the hamburger button */
  .sticky-nav__menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .hero__top-bar {
    grid-template-columns: auto 1fr auto; /* Adjust for hamburger */
  }
}

@media (max-width: 600px) {
  .about-ivan__container {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .about-ivan__badge,
  .about-ivan__portrait-wrapper,
  .about-ivan__right-content {
    flex: 0 1 auto;
    max-width: none;
    width: 100%;
  }

  .about-ivan__portrait-wrapper {
    min-height: 0;
  }

  .about-ivan__portrait-wrapper img {
    height: auto;
  }
}

/* =====================================================
   EXPERIENCE SECTION
   ===================================================== */
.experience-section {
  background-color: var(--blue);
  color: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.experience-section__container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.experience-section__content-box {
  flex: 2 1 400px; /* Flex-grow, flex-shrink, and basis */
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align button to the left */
  margin: auto;
  max-width: 36rem;
}


/* Image styling */
.experience-section__image-box img {
  width: 100%;
  height: auto;
  border: 5px solid #ffffff;
  display: block;
  object-fit: cover;
  /* border-radius: 8px;  Optional: add a slight rounding to the image */
}

.experience-section__image-box {
  flex: 1 1 400px; /* Flex-grow, flex-shrink, and basis */
  padding: 2rem;
}

/* Typography & Button */
.experience-section__main-text {
  font-size: 1.125rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  font-weight: 550;
  text-align: left;
  margin-bottom: 1.5rem;
}

.experience-section__sub-text {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.8;
  font-weight: 500;
  text-align: left;
  margin-bottom: 2.25rem;
}

.experience-section__btn {
  display: inline-block;
  background-color: var(--coral);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  margin: auto;
  border-radius: 30px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.experience-section__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =====================================================
   TEAM SECTION
   ===================================================== */
.team-section {
  background-color: var(--bg);
  padding: clamp(4rem, 8vw, 6rem) 0; /* Vertical padding, horizontal handled by container */
  font-family: var(--font-sans);
  overflow: hidden;
}

/* Header */
.team-section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem) auto;
  padding: 0 1.5rem;
}

.team-section__title {
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.team-section__subtitle {
  color: var(--blue);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.9;
}

/* Carousel Wrapper */
.team-section__carousel-wrapper {
  position: relative;
  max-width: 1700px; /* Match other wide sections */
  margin: 0 auto;
}

.team-section__candidates-container {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  /* Padding to ensure cards don't touch the edge */
  padding: 10px clamp(1.5rem, 4vw, 3.5rem) 30px clamp(1.5rem, 4vw, 3.5rem);
  scrollbar-width: none; /* Firefox */
}

.team-section__candidates-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Candidate Card */
.team-section__candidate-card {
  flex: 0 0 clamp(280px, 25vw, 320px); /* Responsive card width */
  background-color: #F6F2ED;
  padding: 30px 24px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  min-height: 520px;
}

.team-section__candidate-card[role="button"] {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden; /* Prevent content from spilling out */
}

.team-section__candidate-card[role="button"]:hover {
  transform: translateY(-5px);
}

.team-section__badge {
  display: block;
  font-size: 0.85rem;
  color: var(--coral);
  margin-bottom: 12px;
  font-weight: 600;
}

.team-section__candidate-name {
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.team-section__candidate-desc {
  color: var(--blue);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 1rem 0 1.5rem 0
}

.team-section__candidate-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-top: auto; /* Push photo to the bottom */
}

.team-section__leader-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%; /* Adjusts focus on portrait */
  object-position: center bottom;
}

.team-section__candidate-photo img {
  width: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  object-position: center 20%; /* Adjusts focus on portrait */
}

/* Active (Blue) Card */
.team-section__candidate-card--active {
  background-color: var(--blue);
  color: var(--bg);
}

.team-section__candidate-card--active .team-section__badge,
.team-section__candidate-card--active .team-section__candidate-name,
.team-section__candidate-card--active .team-section__candidate-desc {
  color: var(--bg);
}

/* Scroll Buttons */
.team-section__scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--coral);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.3s ease;
}

.team-section__scroll-btn:hover {
  transform: translateY(-50%) scale(1.08);
}

.team-section__scroll-btn--prev { left: 20px; }
.team-section__scroll-btn--next { right: 20px; }

.team-section__scroll-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* Hide scroll buttons on large screens where all cards are visible */
@media (min-width: 1701px) {
  .team-section__scroll-btn {
    display: none;
  }
}

/* Responsive adjustments for team cards on mobile */
@media (max-width: 600px) {
  .team-section__candidate-card {
    min-height: 480px; /* Reduce min-height for smaller screens */
    flex: 0 0 75vw; /* Make cards wider on mobile for better readability */
  }
}

/* =====================================================
   TEAM SPOTLIGHT MODAL
   ===================================================== */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.spotlight[hidden] {
  display: none;
}

.spotlight__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spotlight.is-visible .spotlight__backdrop {
  opacity: 1;
}

.spotlight__panel {
  position: relative;
  width: 100%;
  /*max-width: 900px;*/
  max-width: 80rem;
  max-height: 90vh;
  background-color: #F6F2ED;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.spotlight.is-visible .spotlight__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.spotlight__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(62, 71, 205, 0.08);
  border: none;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.spotlight__close:hover {
  background: rgba(62, 71, 205, 0.16);
}

.spotlight__content {
  display: flex;
  max-height: 90vh;
}

.spotlight__photo {
  flex: 0 0 45%;
  background-color: #e0e0e0;
}

.spotlight__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.spotlight__text {
  flex: 1;
  padding: clamp(2rem, 5vw, 3rem);
  overflow-y: auto;
  color: var(--blue);
}

.spotlight__badge { color: var(--coral); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.spotlight__name { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; line-height: 1.1; }
.spotlight__desc {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.spotlight__desc p {
  margin-bottom: 1em;
}

.spotlight__desc p:last-child {
  margin-bottom: 0;
}

.spotlight__desc strong {
  font-weight: 600;
}

.spotlight__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.spotlight__subheading { font-size: 1.2rem; font-weight: 700; margin-top: 2em; margin-bottom: 1em; }

@media (max-width: 768px) {
  .spotlight__content { flex-direction: column; }
  .spotlight__photo {
    flex: 0 0 clamp(200px, 40vh, 280px); /* Use a responsive height */
  }
}

@media (max-height: 670px) and (max-width: 768px) {
  .spotlight__photo { flex-basis: 200px; 
  max-height: 50vh;} /* Further reduce on short screens */
}
/* =====================================================
   MAP SECTION
   ===================================================== */
.map-section {
  position: relative;
  width: 100%;
  height: 650px;
  font-family: var(--font-sans);
}

/* Leaflet Map */
#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* UI Overlay */
.map-section__ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.map-section__tabs,
.map-section__info-card {
  pointer-events: auto;
}

/* Top Tabs */
.map-section__tabs {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2rem);
  left: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  background-color: var(--blue);
  padding: 4px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.map-section__tab-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.map-section__tab-btn.active {
  background-color: var(--coral);
}

/* Info Card */
.map-section__info-card {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2rem);
  left: clamp(1.5rem, 3vw, 2rem);
  width: 320px;
  background-color: var(--blue);
  color: white;
  padding: 30px 25px 20px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.map-section__card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.map-section__card-text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  min-height: 90px;
}

.map-section__card-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-section__nav-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.map-section__nav-arrow--next {
  background-color: var(--coral);
  border-color: var(--coral);
}

.map-section__nav-arrow:hover {
  opacity: 0.85;
}

/* Custom Leaflet Marker Icons */
.map-section__custom-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-section__custom-pin--blue { background-color: var(--blue); }
.map-section__custom-pin--orange { background-color: var(--coral); }

.map-section__custom-pin--avatar {
  width: 40px;
  height: 40px;
  background-color: #000;
  border: 2px solid white;
  border-radius: 50%;
  overflow: hidden;
}

.map-section__custom-pin--avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll hint overlay for mobile */
.map-section__scroll-hint {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000; /* Ensure it's above the map but below the UI */
}

.map-section__scroll-hint.is-visible {
  opacity: 1;
}

/* =====================================================
   INSTAGRAM — carousel posledních postů
   ===================================================== */
.insta {
  background: var(--bg);
  /* Horizontální odsazení na sekci — spolehlivé i pro scroll kontejner */
  padding: clamp(2.5rem, 6vw, 5rem) var(--hero-pad);
}

/* Desktop — grid 4 sloupců, vyplní šířku obsahu (zarovnané na 1700px grid) */
.insta__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 1700px;
  margin-inline: auto;
}

.insta__track::-webkit-scrollbar {
  display: none;           /* WebKit (pro mobilní carousel) */
}

/* Společné rozměry dlaždic — čtverec, ostré rohy */
.insta__cta,
.insta__post {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
}

/* 1. blok — tmavě modrá výzva */
.insta__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--blue);
  color: var(--bg);
  transition: background 0.25s ease;
}

.insta__cta:hover {
  background: #2931A2;
}

.insta__cta-icon {
  width: 34px;
  height: 34px;
  margin-bottom: auto;   /* ikona nahoře, text dole */
}

.insta__cta-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.insta__cta-handle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9375rem;
  opacity: 0.75;
}

/* Post — placeholder / obrázek */
.insta__post {
  position: relative;
  display: block;
  background: #DED7CE;   /* placeholder pozadí, dokud není obrázek */
}

.insta__post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.insta__post:hover img {
  transform: scale(1.05);
}

/* Behold embed — zabírá zbytek gridu vedle CTA bloku (sloupce 2–4) */
.insta__embed {
  grid-column: 2 / -1;
  min-width: 0;
}

/* Mobil — mřížka 2×2 (2 dlaždice na řádek, bez scrollování) */
@media (max-width: 600px) {
  .insta__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: none;
    overflow: visible;
  }

  .insta__cta,
  .insta__post {
    width: auto;   /* šířku řídí grid */
  }

  /* Behold embed (po aktivaci) přes oba sloupce */
  .insta__embed {
    grid-column: 1 / -1;
  }
}

/* =====================================================
   FOOTER — kontakt
   ===================================================== */
.footer {
  background: #2931A2;
  color: var(--bg);
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* ── Kontaktní osoba — nad mailem, s odstupem ── */
.footer__person {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 999px; /* Consistent pill shape */
  backdrop-filter: blur(0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.footer__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  overflow: hidden;
  display: block;
}

.footer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.footer__person-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;   /* "Volejte nebo pište" zarovnané doleva */
}

.footer__person-small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.footer__person-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
}

/* ── Střed: velký kontakt ── */
.footer__contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.footer__contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__info {
  font-family: var(--font-serif);
  font-weight: 400;
  /* Responsive font size: from 1.5rem up to 2.5rem */
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  line-height: 1.1;
  color: var(--bg);
  text-decoration: none;
  max-width: 100%;
  transition: color 0.25s ease;
}

.copy-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--bg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-btn__icon {
  width: 16px;
  height: 16px;
}

/* Tooltip for the copy button */
.copy-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--coral);
  color: var(--bg);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-btn.is-copied::after {
  opacity: 1;
  transform: translate(-50%, -5px); /* Move up slightly when visible */
}


/* Hover — z bílé na oranžovou z identity */
.footer__email:hover,
.footer__phone:hover {
  color: var(--coral);
}

/* ── Instagram ── */
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1rem, 3vw, 1.75rem);
  color: var(--bg);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__social svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.footer__social-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
}

.footer__social:hover {
  color: var(--coral);
}

.footer__social:hover svg {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .footer__email .char,
  .footer__phone .char {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.footer__social:focus-visible {
  outline: 3px solid var(--bg);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer__email:focus-visible,
.footer__phone:focus-visible {
  outline: 3px solid var(--bg);
  outline-offset: 4px;
}

/* ── Spodní lišta ── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__legal {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.7;
  flex: 1;
}

.footer__legal--right {
  text-align: right;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.footer__logo {
  width: auto;
  display: block;
}

.footer__logos > .footer__logo:first-child {
  height: 3.5rem;
}
.footer__logos > .footer__logo:last-child {
  height: 5rem;
}

.footer__logo--white {
  /* Placeholder: přebarvení modrého SVG na bílé, dokud nedodáš bílou variantu */
  filter: brightness(0) invert(1);
}

/* ── Responzivita ── */
@media (max-width: 600px) {
  .footer {
    min-height: 100svh;
    gap: 2.5rem;
    padding: 2rem 1.25rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer__legal,
  .footer__legal--right {
    text-align: center;
    flex: none;
  }

  .footer__logos {
    order: -1;   /* loga nahoře nad legal texty */
  }
}

/* =====================================================
   LEGAL PAGE — zásady zpracování osobních údajů
   ===================================================== */
.legal-page {
  background: var(--bg);
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.legal-page__inner {
  max-width: 720px;
  margin-inline: auto;
}

.legal-page__back {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.25s ease;
}

.legal-page__back:hover {
  color: var(--coral);
}

.legal-page__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--blue);
}

.legal-page__updated {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--blue);
  opacity: 0.6;
  margin-top: 0.75rem;
}

.legal-page__section {
  margin-top: 2.25rem;
}

.legal-page__section h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.125rem, 2.5vw, 1.4rem);
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.legal-page__section p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--blue);
  opacity: 0.85;
}



/* HERO POZNEJTE ME BUTTON */

/* The capsule/pill badge container */
.profile-badge {
  display: inline-flex;
  align-items: center;
  background-color: #242DBC; /* Darker blue, but not as dark as footer */
  padding: 0 1.5rem 0 0.5rem;
  border-radius: 100px; /* Creates the perfect rounded pill shape */
  color: #ffffff;
  box-sizing: border-box;
  height: 60px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.profile-badge:hover {
  background-color: var(--coral);
}

/* Avatar container to ensure a perfect circle */
.avatar-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text layout and typography */
.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subtitle {
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff; /* Slightly lighter/muted text for the subtitle */
  margin-bottom: 6px;
}

.title {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
}
