:root {
  --color-bg-start: #8a9ca8;
  --color-bg-end: #bcc7cd;
  --color-page: #f4f4f4;
  --band-height: 10rem;
  --color-surface: #ffffff;
  --color-heading: #94533d;
  --color-text: #2a4a5f;
  --color-text-muted: #5a6670;
  --color-accent: #94533d;
  --color-accent-hover: #7a4331;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  /* the full-width band (100vw) would otherwise cause horizontal scroll when a vertical scrollbar is present */
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: calc(var(--band-height) / 2 + 1rem) 1rem 1.5rem;
  gap: 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-page);
  text-align: center;
}

.presmerovani {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 32rem;
  padding: 2.5rem 2rem;
  background: var(--color-surface);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(42, 74, 95, 0.25);
}

.presmerovani::before {
  content: "";
  position: absolute;
  top: calc(var(--band-height) / -2);
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: var(--band-height);
  background: linear-gradient(180deg, var(--color-bg-start), var(--color-bg-end));
  transform: translateX(-50%);
}

.presmerovani .presmerovani__nazev {
  display: flex;
  flex-direction: column;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.presmerovani__nazev strong {
  /*color: var(--color-heading);*/
  font-size: 1.15rem;
}

.presmerovani h1 {
  /* negative bottom margin shrinks the flex gap only between h1 and the following text */
  margin: 1rem 0 -0.5rem;
  color: var(--color-heading);
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  line-height: 1.25;
}

.presmerovani p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.presmerovani__btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  background: var(--color-accent);
  border-radius: 0.375rem;
}

.presmerovani__btn:hover {
  background: var(--color-accent-hover);
}

.presmerovani__btn:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

.presmerovani .presmerovani__odpocet {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.presmerovani__paticka {
  color: var(--color-text);
  font-size: 0.875rem;
}
