.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  width: var(--container);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px) 0 42px;
}

.hero::before {
  position: absolute;
  inset: 7% auto auto -7%;
  width: 170px;
  height: 170px;
  border: 14px solid rgba(255, 95, 158, 0.2);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  right: 39%;
  bottom: 15%;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(36, 33, 48, 0.11) 2px, transparent 2px),
    linear-gradient(rgba(36, 33, 48, 0.11) 2px, transparent 2px),
    rgba(255, 255, 255, 0.55);
  background-size: 28px 28px;
  box-shadow: var(--shadow-soft);
  transform: rotate(8deg);
  content: "";
}

.hero__content,
.hero__mascot {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #4f3a00;
  font-weight: 900;
  background: rgba(255, 183, 3, 0.34);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Baloo 2", Arial, sans-serif;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.93;
}

.hero__text {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 700;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 30px;
}

.stat-pill {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(36, 33, 48, 0.08);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(36, 33, 48, 0.08);
}

.stat-pill strong,
.stat-pill span {
  display: block;
}

.stat-pill strong {
  color: var(--color-primary-dark);
  font-family: "Baloo 2", Arial, sans-serif;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1;
}

.stat-pill span {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.18;
}

.hero__mascot {
  display: grid;
  justify-items: center;
  align-self: center;
}

.hero__mascot img {
  width: min(100%, 390px);
  filter: drop-shadow(0 26px 24px rgba(36, 33, 48, 0.18));
  animation: floatMascot 4.5s ease-in-out infinite;
}

.mascot-bubble {
  width: min(100%, 310px);
  margin-top: -8px;
  padding: 14px 16px;
  border: 3px solid rgba(36, 33, 48, 0.1);
  border-radius: 24px 24px 24px 8px;
  color: var(--color-ink);
  font-weight: 900;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.welcome-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: var(--container);
  margin: -12px auto 44px;
}

.welcome-strip__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(36, 33, 48, 0.08);
}

.welcome-strip__item span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-family: "Baloo 2", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--color-accent);
}

.welcome-strip__item:nth-child(2) span {
  background: var(--color-pink);
}

.welcome-strip__item:nth-child(3) span {
  background: var(--color-primary);
}

.welcome-strip__item p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 900;
  line-height: 1.28;
}

@keyframes floatMascot {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__text,
  .hero__stats {
    margin-right: auto;
    margin-left: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__mascot {
    order: -1;
  }

  .hero__mascot img {
    width: min(78vw, 320px);
  }

  .hero::after {
    right: 7%;
    bottom: 38%;
    width: 82px;
    height: 82px;
    background-size: 22px 22px;
  }

  .welcome-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    width: min(100% - 24px, 540px);
    gap: 18px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.7rem);
  }

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

  .stat-pill {
    min-height: 70px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .welcome-strip {
    width: min(100% - 24px, 540px);
    margin-bottom: 26px;
  }
}
