/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 843px;
  padding: 100px 0 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: 72% 42%;
  will-change: transform;
  animation: hero-heart-beat 2.6s ease-in-out infinite;
}

@keyframes hero-heart-beat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.02);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.012);
  }
  48% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg-image {
    animation: none;
  }
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    64.28deg,
    rgba(253, 41, 27, 0.6) 9.25%,
    rgba(253, 41, 27, 0.195) 45.69%,
    rgba(253, 41, 27, 0) 63.27%
  );
}

.hero__bg-blur {
  position: absolute;
  left: -271px;
  top: 50%;
  transform: translateY(-30%);
  width: 940px;
  height: 463px;
  background: linear-gradient(to bottom, #000, #19485c);
  opacity: 0.56;
  filter: blur(66.5px);
  pointer-events: none;
}

.hero__dots-left,
.hero__dots-right {
  position: absolute;
  width: 701px;
  height: 705px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
}

.hero__dots-left { bottom: -308px; left: -32px; }
.hero__dots-right { top: -166px; right: -270px; }

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: linear-gradient(89.87deg, rgba(255, 255, 255, 0.33) 0%, rgba(255, 255, 255, 0) 91.79%);
  font-size: 14px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__badge img { width: 26px; height: 26px; flex-shrink: 0; }

.hero__badge strong { color: var(--cyan); font-weight: 700; }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--white);
  max-width: 711px;
  margin-bottom: 22px;
}

.hero__line {
  width: 100%;
  max-width: 728px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}

.hero__desc {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--white);
  max-width: 686px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
}

.hero__desc p {
  margin: 0;
}

.hero__desc p + p {
  margin-top: 1em;
}

.hero__desc strong { color: var(--cyan); font-weight: 700; }

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--white);
  border-radius: 8px;
  margin-bottom: 65px;
  max-width: fit-content;
}

.hero__service {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  flex-shrink: 0;
}

.hero__service-icon img { width: 28px; height: 28px; display: block; }

.hero__service-icon--genetic img { transform: rotate(45deg); }

.hero__service-icon--blood { background: #ffe1e1; border-color: #fdb9b9; }
.hero__service-icon--genetic { background: #e8d9ff; border-color: #d3b9fc; }
.hero__service-icon--ct { background: #c2f9fb; border-color: #79eaed; }
.hero__service-icon--doctor { background: #ffe7cd; border-color: #f1c495; }

.hero__service-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.hero__service-label span { display: inline; }

.hero__videos-wrap {
  position: relative;
  z-index: 4;
  max-width: 830px;
}

.hero__videos {
  display: flex;
  gap: 12px;
  overflow: visible;
  padding-bottom: 4px;
}

.hero__videos::-webkit-scrollbar { display: none; }

.hero__video {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 105px;
  border: 1px solid var(--white);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hero__video > * {
  pointer-events: none;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 87, 90, 0.36);
}

.hero__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 41px;
  height: 41px;
}

.hero__video-dots {
  display: none;
  gap: 5px;
  justify-content: center;
  margin-top: 20px;
}

.hero__video-dots span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: #e8e8e8;
}

.hero__video-dots span.is-active {
  width: 16px;
  background: var(--red);
}

.hero__apps {
  position: absolute;
  right: 0px;
  bottom: 0px;
  z-index: 3;
  pointer-events: none;
}

.hero__apps img { width: 130px; height: auto; }

/* ─── Video modal ─── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.75);
}

.video-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  z-index: 1;
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 2;
}

.video-modal__close img {
  width: 100%;
  height: 100%;
}

.video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.is-video-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .video-modal__close {
    top: -40px;
    right: 4px;
  }

  .hero {
    min-height: 668px;
    padding: 27px 0 24px;
    margin-top: 67px;
  }

  .hero__bg-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%),
      linear-gradient(106.95deg, rgba(253, 41, 27, 0.6) 3.25%, rgba(253, 41, 27, 0.195) 39.88%, rgba(253, 41, 27, 0) 57.56%);
  }

  .hero__bg-blur,
  .hero__dots-left,
  .hero__dots-right { display: none; }

  /* Figma mobile crop (3612:592) — positions heart right, keeps text area dark */
  .hero__bg-image {
    width: 296%;
    height: 134%;
    left: -124%;
    top: -34%;
    max-width: none;
    object-fit: cover;
    object-position: 24% top;
    transform-origin: 58% 40%;
  }

  .hero__badge {
    font-size: 10px;
    padding: 3px 8px;
    gap: 4px;
    margin-bottom: 24px;
    background: linear-gradient(89.87deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 92%);
  }

  .hero__badge img { width: 14px; height: 14px; }

  .hero__title {
    font-size: 24px;
    line-height: 1.25;
    max-width: 280px;
    margin-bottom: 14px;
  }

  .hero__line {
    max-width: 100%;
    margin-bottom: 14px;
  }

  .hero__desc {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 36px;
  }

  .hero__services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 4px 0;
    margin-bottom: 50px;
    background: rgba(77, 77, 77, 0.5);
    border-width: 0.68px;
    border-radius: 5px;
  }

  .hero__service {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    text-align: center;
    position: relative;
  }

  .hero__service:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 61px;
    background: rgba(255, 255, 255, 0.35);
  }

  .hero__service-icon {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    border-width: 1.16px;
    padding: 0;
  }

  .hero__service-icon img {
    width: 19px;
    height: 19px;
  }

  .hero__service-label {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    letter-spacing: -0.2px;
  }

  .hero__service-label span { display: block; }

  .hero__videos-wrap {
    max-width: 100%;
    width: 100%;
  }

  .hero__videos {
    gap: 6px;
    padding-bottom: 0;
  }

  .hero__video {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    border-width: 0.5px;
  }

  .hero__video-play {
    width: 22px;
    height: 22px;
  }

  .hero__video-dots { display: none; }

  .hero__apps {
    position: static;
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    width: 100%;
  }

  .hero__apps img { width: 93px; }
}
