/* Stránka Úvod */

.page-uvod .hero {
  min-height: clamp(300px, 32vw, 330px);
  padding-bottom: 40px;
}

.page-uvod .hero__content {
  padding-bottom: 40px;
}

/* ---------- Pět pilířů péče (překrývá spodek hero) ---------- */
.pillars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: -56px;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 108px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--color-green-dark);
  font-size: 0.98rem;
  line-height: 1.2;
  background: rgba(253, 249, 239, 0.94);
  transition: transform 0.2s ease;
}

.pillar:hover {
  transform: translateY(-2px);
}

.pillar img {
  width: 48px;
  height: 48px;
}

/* ---------- Medailonek ---------- */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: center;
  margin-top: 24px;
}

.intro__photo {
  width: 100%;
  aspect-ratio: 348 / 236;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.intro__text {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.intro__text h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
}

.intro__text .btn {
  margin-top: 10px;
}

.intro__enso {
  position: absolute;
  right: -40px;
  top: 50%;
  width: 230px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.9;
}

/* ---------- Kroky první návštěvy ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  text-align: center;
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -22px;
  width: 22px;
  height: 22px;
  background: url("../../img/icons/sipka-zlata.svg") center / contain no-repeat;
}

.step__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #f3e6c6 0%, #efdfba 100%);
}

.step__icon img {
  width: 42px;
  height: 42px;
}

.step__number {
  position: absolute;
  top: -4px;
  left: -10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-green-dark);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}

.step h3 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.step p {
  max-width: 230px;
  margin-inline: auto;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--color-text-soft);
}

/* ---------- Náhledy služeb ---------- */
.service-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.service-preview:hover {
  transform: translateY(-2px);
}

.service-preview img {
  width: 100%;
  aspect-ratio: 229 / 89;
  object-fit: cover;
}

.service-preview__name {
  padding: 12px 10px 2px;
  color: var(--color-green-dark);
  font-size: 1.05rem;
}

.service-preview__note {
  padding: 0 10px 14px;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* ---------- Responzivita ---------- */
@media (max-width: 1000px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps,
  .service-previews {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .step:nth-child(odd)::before {
    display: none;
  }

  .intro__enso {
    display: none;
  }
}

@media (max-width: 900px) {
  .page-uvod .hero {
    padding-bottom: 0;
  }

  .pillars {
    margin-top: -24px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro__text {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars li:last-child {
    grid-column: 1 / -1;
  }

  .steps,
  .service-previews {
    grid-template-columns: 1fr;
  }

  .step::before {
    display: none;
  }
}
