/* v3 hero. Figma: Hero section 10986:6911 (1440), mobile 11295:9974 (430) */
.v3-hero {
  --v3-hero-header: var(--v3-header-offset, 0px);   /* header height when it overlays the hero (fixed/absolute), 0 when it is in the flow. Figma: the 62px header overlaps the hero */
  --v3-hero-lines: var(--v3-frame-line);
  padding-top: calc(var(--v3-hero-header) + 80px);
  padding-bottom: 91px;
  background: var(--v3-bg-light);
  overflow: hidden;
  isolation: isolate;
}
/* dashed guide lines: outer pair below 1440, the full Figma svg from 1440 */
.v3-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, var(--v3-gray-50) 0 3px, transparent 3px 5px) var(--v3-hero-lines) 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--v3-gray-50) 0 3px, transparent 3px 5px) calc(100% - var(--v3-hero-lines)) 0 / 1px 100% no-repeat;
}
@media (min-width: 1440px) {
  .v3-hero::before {
    background: url("../../../images/v3/hero/decorative-lines.svg") center calc(var(--v3-hero-header) - 62px) / 1440px 720px no-repeat;
  }
}
.v3-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 256px;
}

.v3-hero__grid {
  display: grid;
  grid-template-columns: 332px minmax(0, 1fr) 320px;
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: 57px;
}

/* ---- advantages ---- */
.v3-hero__advantages {
  grid-column: 1;
  grid-row: 1;
  margin-top: 66px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.3;
  color: var(--v3-gray-300);
}
.v3-hero__advantages li {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 20px;
}
.v3-hero__advantages li::before {
  content: "";
  flex: none;
  width: 1px;
  height: 20px;
  background: var(--v3-primary);
}
.v3-hero__advantages strong { font-weight: 700; }

/* ---- content ---- */
.v3-hero__content {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 608px;
  min-width: 0;
}
.v3-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--v3-primary-10);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.v3-hero__badge::before,
.v3-hero__label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--v3-primary);
}
.v3-hero__title { margin-bottom: -4px; }          /* 24px badge gap, 20px to the text */
.v3-hero__accent { color: var(--v3-primary); }
.v3-hero__text {
  max-width: 535px;
  color: var(--v3-gray-200);
  font-weight: 500;
  line-height: var(--v3-lh-body-m);
}
.v3-hero__text strong { display: block; color: var(--v3-dark); font-weight: 700; }   /* Figma desktop breaks before the bold sentence, mobile keeps it inline */

/* ---- photo ---- */
.v3-hero__photo {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin-top: 66px;
  align-self: start;
  position: relative;
  aspect-ratio: 320 / 416;
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  background: var(--v3-gray-50);
}
.v3-hero__picture { display: contents; }
.v3-hero__img {
  position: absolute;
  top: -2.4%;
  left: -5.625%;
  width: 110.94%;
  max-width: none;
  height: auto;
}

/* ---- partners marquee ---- */
.v3-hero__partners {
  grid-column: 1 / span 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 332px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}
.v3-hero__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.v3-hero__marquee {
  max-width: 656px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 152px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 152px), transparent 100%);
}
.v3-hero__track {
  display: flex;
  width: max-content;
  animation: v3-hero-marquee var(--v3-hero-marquee-duration, 16s) linear infinite;
}
.v3-hero__marquee:hover .v3-hero__track { animation-play-state: paused; }
.v3-hero__logos {
  flex: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0 40px 0 0;
  list-style: none;
}
.v3-hero__logos li { display: flex; flex: none; align-items: center; height: 37px; }
.v3-hero__logos img { max-width: none; height: auto; }
@keyframes v3-hero-marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 1280px) {
  .v3-hero__grid { grid-template-columns: 210px minmax(0, 1fr) minmax(240px, 300px); column-gap: 32px; }
  .v3-hero__partners { grid-template-columns: 210px minmax(0, 1fr); column-gap: 32px; }
  .v3-hero__title { font-size: clamp(36px, 3.4vw, 48px); }
}

@media (max-width: 1024px) {
  .v3-hero { padding-bottom: 72px; }
  .v3-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); column-gap: 32px; row-gap: 40px; }
  .v3-hero__advantages { display: none; }
  .v3-hero__content { grid-column: 1; }
  .v3-hero__photo { grid-column: 2; margin-top: 0; }
  .v3-hero__partners { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; }
}

@media (max-width: 768px) {
  .v3-hero {
    --v3-hero-header: var(--v3-header-offset, 0px);
    padding-top: calc(var(--v3-hero-header) + 41px);
    padding-bottom: 48px;
  }
  .v3-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .v3-hero__content { grid-column: 1; gap: 24px; max-width: none; }
  .v3-hero__text strong { display: inline; }
  .v3-hero__badge { font-size: 14px; font-weight: 600; }
  .v3-hero__title { font-size: 32px; margin-block: -8px -4px; }   /* 16px badge gap, 20px to the text */
  .v3-hero__cta { width: 100%; }
  .v3-hero__photo { grid-column: 1; grid-row: 2; aspect-ratio: 390 / 242; }
  .v3-hero__img { inset: 0; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
  .v3-hero__partners { grid-column: 1; grid-row: 3; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .v3-hero__marquee {
    max-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55px, #000 calc(100% - 55px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 55px, #000 calc(100% - 55px), transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-hero__track { animation: none; }
}
