.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, calc(39 * var(--u)), 64px) 0 clamp(56px, calc(82 * var(--u)), 96px);
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, calc(60 * var(--u)), 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Строки обрезаем сами: верх первой — по заглавным, низ последней — по базовой линии.
   Между строками полный шаг 60 px, как в макете; поле снизу держит хвост «р» внутри обрезки */
.hero__title {
  text-box: none;
}

.hero__line {
  display: block;
  margin-bottom: -0.22em;
  padding-bottom: 0.22em;
  overflow: hidden;
  text-box: none;
}

.hero__line:first-child {
  text-box: trim-start cap alphabetic;
}

.hero__line:last-child {
  text-box: trim-end cap alphabetic;
}

.hero__word {
  display: inline-block;
  animation: hero-rise 1.1s var(--ease-out) both;
}

.hero__line + .hero__line .hero__word {
  animation-delay: 0.12s;
}

.hero__lead {
  margin-top: calc(23 * var(--u));
  font-size: clamp(17px, calc(22 * var(--u)), 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  animation: hero-fade 1s var(--ease-out) 0.3s both;
}

.hero__power {
  position: relative;
  display: block;
  width: 85.8%;
  max-width: 560px;
  margin-top: calc(32 * var(--u));
  aspect-ratio: 755 / 744;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  animation: hero-pop 1.2s var(--ease-back) 0.2s both;
}

.hero__power-image,
.hero__power-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__power-image {
  animation: hero-float 6s var(--ease-in-out) infinite;
  transition: scale 0.45s var(--ease-back), filter 0.45s ease;
}

.hero__power-glow {
  filter: blur(calc(38 * var(--u)));
  opacity: 0.4;
  transform: translateY(9%) scale(0.9);
  animation: hero-glow 6s var(--ease-in-out) infinite;
}

@media (hover: hover) {
  .hero__power:hover .hero__power-image {
    scale: 1.035;
    filter: saturate(1.15);
  }
}

.hero__power:active .hero__power-image {
  scale: 0.95;
}

.hero__offer {
  margin-top: calc(48 * var(--u));
  animation: hero-fade 1s var(--ease-out) 0.45s both;
}

.hero__offer-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(25px, calc(32 * var(--u)), 46px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--color-bg);
  -webkit-text-stroke: 0.31em var(--color-pink);
  paint-order: stroke fill;
  animation: hero-wiggle 5s var(--ease-in-out) 1.6s infinite;
}

.hero__offer-note {
  margin-top: calc(18 * var(--u));
  font-size: var(--fs-body);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--color-ink-40);
}

@keyframes hero-rise {
  from {
    transform: translateY(105%) rotate(4deg);
  }

  to {
    transform: none;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-pop {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-25deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  50% {
    transform: translateY(-3.5%) rotate(4deg);
  }
}

@keyframes hero-glow {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(9%) scale(0.9);
  }

  50% {
    opacity: 0.55;
    transform: translateY(12%) scale(0.86);
  }
}

@keyframes hero-wiggle {
  0%,
  80%,
  100% {
    transform: none;
  }

  84% {
    transform: rotate(-3deg) scale(1.06);
  }

  88% {
    transform: rotate(2.5deg) scale(1.06);
  }

  92% {
    transform: rotate(-1deg) scale(1.02);
  }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "content power"
      "offer power";
    align-content: center;
    align-items: center;
    column-gap: clamp(24px, 4cqi, 72px);
    padding: clamp(48px, 5cqi, 80px) clamp(40px, 6cqi, 96px);
    text-align: left;
  }

  .hero__content {
    grid-area: content;
    align-self: end;
  }

  .hero__title {
    font-size: clamp(52px, 6cqi, 100px);
  }

  .hero__lead {
    margin-top: 24px;
    font-size: clamp(20px, 1.7vw, 28px);
  }

  .hero__power {
    grid-area: power;
    justify-self: center;
    width: min(100%, 540px);
    margin-top: 0;
  }

  .hero__offer {
    grid-area: offer;
    align-self: start;
    margin-top: 40px;
  }

  .hero__offer-title {
    font-size: clamp(30px, 2.8vw, 44px);
    transform-origin: 0 50%;
  }

  .hero__offer-note {
    margin-top: 24px;
    font-size: clamp(15px, 1.2vw, 19px);
  }
}
