.hh-popout-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  pointer-events: none;
  background: rgb(3 8 18 / 72%);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity .38s ease, visibility .38s ease;
}

.hh-popout-overlay.is-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.hh-popout-card {
  position: relative;
  display: grid;
  width: min(514px, calc(100vw - 32px));
  min-height: min(514px, calc(100dvh - 36px));
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  color: #fff;
  background: var(--hh-popout-surface, #0d2f25);
  box-shadow: 0 32px 88px rgb(0 0 0 / 52%), inset 0 0 86px rgb(255 255 255 / 7%);
  transform: scale(.78);
  transition: transform .42s cubic-bezier(.22, 1.16, .42, 1);
}

.hh-popout-overlay.is-visible .hh-popout-card { transform: scale(1); }

.hh-popout-card::before,
.hh-popout-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  pointer-events: none;
}

.hh-popout-card::before { inset: 8%; }
.hh-popout-card::after { inset: 15%; border-style: dashed; opacity: .52; }

.hh-popout-close {
  position: absolute;
  top: 15%;
  right: 16%;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 16%);
  cursor: pointer;
  font: 400 26px/1 Arial, sans-serif;
}

.hh-popout-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72%;
  justify-items: center;
  text-align: center;
}

.hh-popout-kicker {
  margin: 0 0 8px;
  color: var(--hh-popout-accent, #45e09d);
  font: 900 italic clamp(33px, 8vw, 58px)/.92 "Arial Narrow", "PingFang SC", sans-serif;
  letter-spacing: -.09em;
  text-shadow: 0 8px 28px rgb(0 0 0 / 26%);
}

.hh-popout-title {
  margin: 0;
  font: 700 clamp(21px, 5vw, 31px)/1.32 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.035em;
}

.hh-popout-copy {
  margin: 12px 0 21px;
  color: var(--hh-popout-accent, #45e09d);
  font: 800 clamp(16px, 3.5vw, 22px)/1.35 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hh-popout-primary,
.hh-popout-dismiss {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  font: 800 15px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hh-popout-primary {
  min-width: 174px;
  border: 0;
  color: var(--hh-popout-ink, #073425);
  background: var(--hh-popout-accent, #45e09d);
  box-shadow: 0 10px 26px rgb(0 0 0 / 24%);
}

.hh-popout-dismiss {
  margin-top: 15px;
  border: 1px solid rgb(255 255 255 / 30%);
  color: #fff;
  background: rgb(255 255 255 / 7%);
}

.hh-popout-contacts[hidden],
.hh-popout-offer[hidden] { display: none; }

.hh-popout-contact-grid {
  display: grid;
  grid-template-columns: repeat(var(--hh-contact-count, 1), minmax(0, 1fr));
  width: min(336px, 100%);
  gap: 12px;
}

.hh-popout-contact {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: #fff;
  font: 800 13px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hh-popout-contact img {
  display: block;
  width: min(152px, 100%);
  aspect-ratio: 1;
  border: 7px solid #fff;
  border-radius: 16px;
  background: #fff;
  object-fit: cover;
}

.hh-popout-primary:active,
.hh-popout-dismiss:active,
.hh-popout-close:active { transform: scale(.97); }

.hh-popout-close:focus-visible,
.hh-popout-primary:focus-visible,
.hh-popout-dismiss:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 520px) {
  .hh-popout-card { width: min(440px, calc(100vw - 22px)); min-height: min(440px, calc(100dvh - 22px)); }
  .hh-popout-close { top: 13%; right: 13%; }
  .hh-popout-contact img { width: min(128px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hh-popout-overlay,
  .hh-popout-card { transition: none; }
}
