:root {
  --green-deep: #146b35;
  --green: #1f8a45;
  --green-mid: #2ea655;
  --green-lime: #8fce4a;
  --ink: #1a3d26;
  --muted: #4a6b56;
  --bg: #e7f3eb;
  --line: rgba(31, 138, 69, 0.2);
  --font-display: "Montserrat", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --content-width: min(420px, 92vw);
  /* Vizuální mezera logo↔text (včetně okraje v PNG) = tlačítko↔údaje */
  --stack-gap: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.5;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.glow-a {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  top: -12%;
  left: -8%;
  background: rgba(143, 206, 74, 0.35);
}

.glow-b {
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  right: -10%;
  bottom: -14%;
  background: rgba(31, 138, 69, 0.22);
  animation-delay: -4s;
  animation-duration: 15s;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: clamp(1.5rem, 6vh, 4rem) 1rem 1rem;
}

.hero {
  width: var(--content-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.logo {
  /* Logo není souměrné (šipka vpravo) — jemný posun doprava pro optický střed */
  width: 92%;
  max-width: 92%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  left: calc(3% - 15px);
  animation:
    rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both,
    logo-float 5.5s ease-in-out 1s infinite;
}

.headline {
  margin: 0.35rem 0 0;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--green-deep);
  text-align: center;
  text-wrap: balance;
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.lead {
  margin: 0.4rem auto 0;
  width: 100%;
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  text-wrap: pretty;
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

.cta {
  margin-top: clamp(0.85rem, 2vh, 1.35rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-deep) 72%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(20, 107, 53, 0.22);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 280ms both;
}

.cta-arrow {
  transition: transform 220ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 32px rgba(20, 107, 53, 0.28);
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

.cta:focus-visible {
  outline: 3px solid var(--green-lime);
  outline-offset: 3px;
}

.details {
  width: min(920px, 100%);
  flex: 0 0 auto;
  margin: var(--stack-gap) auto 0;
  padding: 0.65rem clamp(0.85rem, 2vw, 1.35rem) clamp(0.7rem, 1.6vh, 1.1rem);
  border-top: 2px solid var(--green-mid);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.28)
  );
  backdrop-filter: blur(10px);
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}

.details-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
}

.details-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.detail-item {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  text-align: center;
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(380ms + var(--i) * 80ms);
}

.details-list dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.details-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.details-list a {
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 107, 53, 0.35);
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.details-list a:hover {
  color: var(--green-mid);
  border-bottom-color: var(--green-lime);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(20px, 14px) scale(1.06);
  }
}

@media (min-width: 960px) {
  :root {
    --content-width: min(520px, 46vw);
  }
}

@media (max-width: 700px) {
  .details-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 720px) {
  :root {
    --content-width: min(360px, 88vw);
  }

  .lead {
    display: none;
  }

  .headline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
