:root {
  --blue: #1a73d4;
  --red: #e3151f;
  --yellow: #f6b40e;
  --green: #1f9a3a;
  --text: #4a4f57;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #fff;
}

body {
  color: var(--text);
  font-family: "Segoe UI", "Open Sans", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3vh 16px;
  text-align: center;
}

/* Logo se přizpůsobí výšce i šířce okna, celá stránka se vejde bez scrollování */
.logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 820px);
  max-height: 62vh;
  max-height: 62dvh;
  mix-blend-mode: multiply; /* případný ne-čistě bílý podklad JPG splyne s bílou */
  animation: fade-in 1s ease-out both;
}

.headline {
  margin: 1.5vh 0 0;
  color: var(--blue);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  animation: fade-in 1s 0.25s ease-out both;
}

.stripe {
  display: flex;
  gap: 6px;
  margin: 2.2vh 0;
  animation: fade-in 1s 0.4s ease-out both;
}
.stripe span {
  width: 28px;
  height: 4px;
  border-radius: 2px;
}
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--yellow); }
.stripe span:nth-child(3) { background: var(--green); }
.stripe span:nth-child(4) { background: var(--blue); }

.contact {
  margin: 0;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  animation: fade-in 1s 0.55s ease-out both;
}

.contact a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(26, 115, 212, 0.25);
  transition: border-color 0.2s;
}
.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .headline, .stripe, .contact { animation: none; }
}

/* Na šířku na nízkých displejích (telefon na ležato) */
@media (max-height: 480px) and (orientation: landscape) {
  .logo { max-height: 55vh; }
  .headline { font-size: 1.4rem; }
}
