/* === ZÁKLAD === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Cormorant Garamond', serif;
  color: #111;
  background: #fff;
  text-align: center;
  line-height: 1.55;
  overflow-x: hidden; /* zabrání horizontálnímu scrollu */
}

/* === CELÁ STRÁNKA === */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* === HORNÍ TEXT NAD OBRÁZKEM === */
.intro {
  padding: 6vh 1rem 2vh;
  text-align: center;
  max-width: min(800px, 95%);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.intro h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.thanks {
  font-size: clamp(1.25rem, 4.6vw, 2.1rem);
  margin: 0.3rem 0;
  font-weight: 800;
}

.note {
  font-size: clamp(1rem, 3.4vw, 1.4rem);
  max-width: 90%;
  margin: 0 auto 1rem;
  word-break: break-word;
}

/* === QR kód – škáluje podle zařízení === */
.qr {
  display: block;
  margin: 1rem auto 0;
  width: clamp(120px, 28vw, 160px);
  height: auto;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  background: #fff;
}

/* === SILUETA – přes celou šířku displeje === */
.silhouette {
  width: 100%;
  min-height: 45vh;              /* ✅ přidá reálnou výšku, aby se obrázek vykreslil */
  background: url("img/siluetaN.png?v=13") no-repeat center center;
background-size: contain;
background-color: #fff;
  margin-top: 0.5rem;
}

/* === Fallback pro prohlížeče bez aspect-ratio === */
@supports not (aspect-ratio: 1 / 1) {
  .silhouette {
    height: auto;
  }
}

/* === SPODNÍ TEXT POD OBRÁZKEM === */
.footer {
  padding: 2vh 1rem 6vh;
  font-size: clamp(1rem, 3.1vw, 1.25rem);
  color: #111;
  width: 100%;
  text-align: center;
}

.footer p {
  margin: 0 auto;
  font-weight: 600;
  max-width: 90%;
  word-wrap: break-word;
}

/* === RESPONSIVITA === */
@media (max-width: 700px) {
  .intro {
    padding: 5vh 1rem 1.25rem;
  }
  .note {
    margin-bottom: 0.9rem;
  }
  .silhouette {
    background-size: cover; /* aby se na menších displejích neztratil vrch/dolní okraj */
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .intro {
    padding-top: 4.5vh;
  }
  .intro h1 {
    font-size: clamp(1.9rem, 8.2vw, 3rem);
  }
  .thanks {
    font-size: clamp(1.1rem, 5.2vw, 1.6rem);
  }
  .note {
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
    max-width: 92vw;
  }
  .qr {
    width: clamp(120px, 34vw, 150px);
  }
  .footer {
    padding-bottom: 5vh;
  }
}

/* === PREFERUJ MÉNĚ POHYBU === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
