.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  padding-top: 78px;
  background: #dfeef8;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.02) 62%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0) 50%,
      rgba(6, 18, 32, 0.14)
    );
}

.hero-content {
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100svh - 252px);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-panel {
  width: min(500px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 28px 70px rgba(16, 49, 78, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(20px) saturate(150%);
}

.hero-kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #0f2638;
  background: rgba(255, 255, 255, 0.32);
  font:
    700 12px/1 Inter,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-panel h1 {
  margin: 0;
  color: #0b1d2d;
  font-family: Manrope, Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(255, 255, 255, 0.22);
}

.hero-panel h1 span {
  color: #007bed;
}

.hero-panel > p:not(.hero-kicker) {
  max-width: 410px;
  margin: 18px 0 26px;
  color: #173047;
  font:
    500 16px/1.65 Inter,
    Arial,
    sans-serif;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  gap: 13px;
  border-radius: 8px;
  font:
    700 14px/1 Inter,
    Arial,
    sans-serif;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

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

.hero .btn-primary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: #007bed;
  box-shadow: 0 18px 42px rgba(0, 80, 160, 0.24);
}

.hero .btn-primary:hover {
  background: #006ad0;
}

.hero .btn-ghost {
  color: #0b1d2d;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.24);
}

.hero .btn-ghost:hover {
  color: #007bed;
  background: rgba(255, 255, 255, 0.42);
}

.hero .btn i {
  font-size: 13px;
}

.hero-metrics {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.92);
}

.hero-metrics article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-inline: 28px;
}

.hero-metrics article:first-child {
  padding-left: 0;
}

.hero-metrics article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-metrics article > i {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 16px;
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font:
    700 14px/1.45 Inter,
    Arial,
    sans-serif;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.hero-metrics span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font:
    500 13px/1.45 Inter,
    Arial,
    sans-serif;
}

@keyframes heroDrift {
  from {
    transform: scale(1) translateX(0);
  }

  to {
    transform: scale(1.018) translateX(-4px);
  }
}

@media (min-width: 1600px) {
  .hero-content,
  .hero-metrics {
    width: min(1400px, calc(100% - 64px));
  }

  .hero-panel h1 {
    font-size: 60px;
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 620px;
  }

  .hero-panel h1 {
    font-size: 44px;
  }

  .hero-image img {
    object-position: center;
  }

  .hero-metrics article {
    padding-inline: 18px;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 70px;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.1) 42%,
        rgba(6, 18, 32, 0.18)
      ),
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.02)
      );
  }

  .hero-content {
    width: min(100% - 36px, 560px);
    min-height: 590px;
    align-items: flex-end;
  }

  .hero-panel {
    padding: 24px;
    margin-bottom: 28px;
  }

  .hero-panel h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero-panel > p:not(.hero-kicker) {
    margin-block: 17px 22px;
    font-size: 15px;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero .btn {
    min-height: 50px;
    padding-inline: 18px;
  }

  .hero-metrics {
    width: min(100% - 36px, 560px);
    padding-block: 18px 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-metrics article {
    padding: 0;
  }

  .hero-metrics article + article {
    border-left: 0;
  }
}

@media (max-width: 460px) {
  .hero-content {
    min-height: 620px;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-kicker {
    font-size: 11px;
  }

  .hero-panel h1 {
    font-size: 31px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
