/**
 * Hero - układ Medpro (grid 80px/90px, btns gap 25px)
 */

.hero {
  padding: 8px 0 0;
  position: relative;
  overflow: hidden;
  background: var(--color-hero-bg);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--color-hero-bg);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  column-gap: 56px;
  row-gap: 40px;
  max-width: 1285px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  padding-bottom: 40px;
}

.hero-top-line {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.hero-heading {
  font-size: clamp(1.9rem, 3.1vw + 1.15rem, 3.45rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-black);
  margin: 0 0 16px;
  max-width: 620px;
}

.hero-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 22px;
  max-width: 560px;
}

/* Układ Medpro: przycisk + "Na wizytę" + telefon w rzędzie, gap 25px */
.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 25px;
  flex-wrap: nowrap;
}

.hero-cta-btn {
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: var(--font-size-base);
  font-weight: 700;
}

.hero-appointment {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-bottom: 2px;
}

.hero-appointment-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
}

.hero-phone-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero-phone-link:hover {
  color: var(--color-action);
}

.hero-phone-link .icon-phone {
  flex-shrink: 0;
  color: var(--color-brand);
  transition: color var(--transition-fast);
}

/* Hero visual - image + floating callout */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 470px;
  align-self: end;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-circle {
  position: absolute;
  top: 44px;
  right: 8px;
  width: 395px;
  height: 395px;
  border-radius: 50%;
  background: rgba(0, 91, 83, 0.05);
  z-index: 0;
}

.hero-image {
  width: 100%;
  max-width: 465px;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-callout {
  position: absolute;
  background: var(--color-white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(11, 16, 56, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-black);
  z-index: 2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  animation: callout-enter 0.6s cubic-bezier(.4,0,.2,1) var(--callout-delay, 0.3s) forwards,
             callout-float 4s ease-in-out var(--float-delay, 0s) infinite;
  animation-delay: var(--callout-delay, 0.3s), calc(var(--callout-delay, 0.3s) + 0.6s);
}

.hero-callout--0 {
  bottom: 20px;
  right: -20px;
}

.hero-callout--1 {
  top: 30px;
  left: -30px;
}

.hero-callout--2 {
  top: 50%;
  right: -40px;
  transform: translateY(20px);
}

.hero-callout--3 {
  bottom: 12%;
  left: -35px;
}

.hero-callout--4 {
  bottom: 30%;
  left: -55px;
}

@keyframes callout-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes callout-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-callout-icon {
  flex-shrink: 0;
  color: var(--color-action);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-callout-icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 991px) {
  .hero {
    padding: 8px 0 0;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
  }

  .hero-image-wrap {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-circle {
    width: 300px;
    height: 300px;
    top: 34px;
    right: 50%;
    transform: translateX(50%);
  }

  .hero-callout--0 {
    bottom: 10px;
    right: 0;
    left: auto;
    top: auto;
  }

  .hero-callout--1 {
    top: 20px;
    left: 0;
    right: auto;
  }

  .hero-callout--2 {
    top: 45%;
    right: -10px;
    left: auto;
  }

  .hero-callout--3 {
    bottom: 8%;
    left: -5px;
    right: auto;
  }

  .hero-callout--4 {
    bottom: 25%;
    left: -15px;
    right: auto;
  }
}
