:root {
  --bg: #fdfaf5;
  --bg-accent: #f6f0e8;
  --text-main: #202430;
  --text-soft: #555b69;
  --accent: #f1b648;
  --accent-soft: #ffdca0;
  --border-soft: #e6ddcf;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-soft: 220ms ease-out;
}

/* Reset-ish */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "San Francisco", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Jemné akvarelové fleky v pozadí */

.bg-layer {
  position: fixed;
  inset: -20%;
  background-repeat: no-repeat;
  background-size: 60% 60%;
  opacity: 0.5;
  pointer-events: none;
  z-index: -2;
  filter: blur(0.3px);
  animation: bgDrift 42s ease-in-out infinite alternate;
}

.bg-layer--one {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(252, 226, 178, 0.65) 0, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(200, 229, 240, 0.6) 0, transparent 55%);
}

.bg-layer--two {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(234, 210, 255, 0.4) 0, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(227, 245, 219, 0.55) 0, transparent 55%);
  opacity: 0.45;
  animation-duration: 55s;
}

@keyframes bgDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(8px, -6px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-6px, 10px, 0) scale(1.01);
  }
}

/* Header + logo */

.site-header {
  position: relative;
  z-index: 2;
  padding: 18px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 56px; /* větší logo i na mobilu */
  width: auto;
  opacity: 0;
  transform: translateX(-32px);
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.16));
  transition:
    opacity 480ms ease-out,
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.logo--visible {
  opacity: 1;
  transform: translateX(0);
}

.logo-link:hover .logo {
  transform: translateX(1px) translateY(-1px);
}

@media (min-width: 900px) {
  .logo {
    height: 88px; /* velké logo na desktopu */
  }
}

/* Page wrapper */

.page {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.7vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.hero p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.hero p strong {
  color: var(--text-main);
}

.hero-list {
  padding-left: 1.2rem;
  margin: 4px 0 16px;
  color: var(--text-soft);
}

.hero-list li {
  margin-bottom: 4px;
}

.hero-contact {
  margin: 22px 0 10px;
}

.hero-contact-label {
  margin: 0 0 4px;
  font-weight: 500;
  color: var(--text-main);
}

.hero-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, #ffffff, #fff8eb);
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition:
    transform var(--transition-soft),
    box-shadow var(--transition-soft),
    background 180ms ease-out;
}

.hero-contact-link::after {
  content: "→";
  font-size: 0.9rem;
  transform: translateX(0);
  transition: transform var(--transition-soft);
}

.hero-contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #ffffff, #fff2d5);
}

.hero-contact-link:hover::after {
  transform: translateX(3px);
}

.hero-footnote {
  font-size: 0.92rem;
  color: #7c808d;
  margin-top: 10px;
}

/* Hero vizuální část */

.hero-visual {
  position: relative;
  min-height: 260px;
}

/* Akvarelový list – měkké pozadí na pravé straně */

.hero-illustration {
  position: absolute;
  top: -40px;
  right: -90px;
  width: 520px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.leaf-hero {
  width: 100%;
  height: auto;
  opacity: 0.32; /* jemné, pastelové */
  transform: rotate(-6deg);
  filter: blur(0.6px) drop-shadow(0 18px 42px rgba(15, 23, 42, 0.09));
  mix-blend-mode: multiply; /* přirozené spojení s pozadím */
  transform-origin: center;
  animation: leafSlowFloat 28s ease-in-out infinite alternate;
}

@keyframes leafSlowFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  50% {
    transform: translate3d(-8px, -12px, 0) rotate(-4deg);
  }
  100% {
    transform: translate3d(6px, 9px, 0) rotate(-7deg);
  }
}

/* karta v popředí */

.hero-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(235, 223, 206, 0.9);
  padding: 18px 18px 16px;
  max-width: 320px;
  margin-left: auto;
  backdrop-filter: blur(7px);
  overflow: hidden;
}

.hero-card-accent {
  position: absolute;
  inset: -18%;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(255, 228, 193, 0.9) 0, transparent 55%),
    radial-gradient(circle at 85% 120%, rgba(200, 227, 252, 0.65) 0, transparent 55%);
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-card-body {
  position: relative;
  z-index: 1;
}

.hero-card-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6c6f78;
}

.hero-card-text {
  margin: 0;
  font-size: 0.95rem;
  color: #343844;
}

/* Jemný štítek */

.hero-pill {
  position: absolute;
  font-size: 0.84rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(224, 203, 170, 0.9);
  background: rgba(255, 252, 245, 0.9);
  color: #474a55;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-pill--clarity {
  bottom: 6%;
  left: 6%;
}

/* Scroll animace – default hidden */

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease-out,
    transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #7c808d;
  padding: 8px 16px 18px;
}

/* Responsivita */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-visual {
    order: -1;
    min-height: 210px;
  }

  .hero-card {
    margin-left: 0;
    max-width: 100%;
  }

  .hero-illustration {
    top: -10px;
    right: -40px;
    width: 340px;
  }

  .leaf-hero {
    max-height: 300px;
    filter: blur(0.5px) drop-shadow(0 10px 24px rgba(15, 23, 42, 0.12));
  }

  .hero-pill--clarity {
    bottom: 4%;
    left: 4%;
  }

  .page {
    padding-top: 24px;
  }
}
