/* v3 hero_courier (courier page). Figma: Hero section 12161:26171 (1440, 712 high incl. the 62px header), mobile 12192:31801 (430).
   --u = 1 design px of the 1316px content width: the hero scales as one piece between 1025 and 1440 (clamped to 1440).
   <= 1024 the mobile composition: teal card, then the full-width form card (no art). The frame (dashed lines, partners row + marquee) is shared with hero_home: css/v3/parts/hero-shell.css. */
/* ---- two cards ---- */
.v3-hero-courier__bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}
.v3-hero-courier__copy,
.v3-hero-courier__form-card {
  position: relative;
  min-width: 0;
  min-height: calc(501 * var(--u));
  border-radius: var(--v3-radius-lg);
}

.v3-hero-courier__copy {
  padding: max(24px, calc(42 * var(--u)));
  background: linear-gradient(255.785deg, #4aefee 20.394%, #15c0bf 66.645%), var(--v3-primary);
  color: #f4f6f6;
}
.v3-hero-courier__title {
  max-width: calc(511 * var(--u));
  font-size: max(32px, calc(48 * var(--u)));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.v3-hero-courier__subtitle {
  max-width: calc(360 * var(--u));
  margin-top: 8px;
  font-size: max(20px, calc(30 * var(--u)));
  font-weight: 700;
  line-height: 1.2;
}
.v3-hero-courier__text {
  max-width: calc(406 * var(--u));
  margin-top: calc(32 * var(--u));
  font-size: max(13px, calc(16 * var(--u)));
  font-weight: 500;
  line-height: 1.4;
}

/* ---- dark form card ---- */
.v3-hero-courier__form-card {
  padding: calc(51 * var(--u)) calc(42 * var(--u)) calc(20 * var(--u)) calc(293 * var(--u));
  background: var(--v3-dark);
  color: var(--v3-gray-50);
}
.v3-hero-courier__form-card::before {   /* the shared noise texture */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 1024px;
  opacity: 0.04;
  pointer-events: none;
}
.v3-hero-courier__form-wrap { position: relative; }   /* above the noise */
.v3-hero-courier__form-title {
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.3;
}

/* art (design px: the rider is 610x438 at the card's bottom, 307 left of the card; food above him) */
.v3-hero-courier__rider,
.v3-hero-courier__food { position: absolute; display: block; max-width: none; height: auto; pointer-events: none; }
.v3-hero-courier__rider { left: calc(-307 * var(--u)); bottom: 0; z-index: 1; width: calc(610 * var(--u)); }
.v3-hero-courier__pizza { left: calc(99 * var(--u)); top: calc(29 * var(--u)); z-index: 1; width: calc(180.3 * var(--u)); }
.v3-hero-courier__burger { left: calc(59 * var(--u)); top: calc(33 * var(--u)); z-index: 1; width: calc(79.5 * var(--u)); }

/* Bitrix24 form on the dark card (the shared .v3-b24-dark skin): one column on desktop, teal submit */
@media (min-width: 1025px) {
  .v3-hero-courier__form.v3-b24-dark form > div:first-child { grid-template-columns: minmax(0, 1fr); }
}
.v3-hero-courier__form.v3-b24-dark .b24-form-btn { background: var(--v3-primary) !important; color: var(--v3-white) !important; }
.v3-hero-courier__form.v3-b24-dark .b24-form-btn:hover { background: color-mix(in srgb, var(--v3-primary) 82%, #fff) !important; }

/* ---- <= 1024: mobile composition (Figma 430) ---- */
@media (max-width: 1024px) {
  .v3-hero-courier__bento { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .v3-hero-courier__copy,
  .v3-hero-courier__form-card { min-height: 0; border-radius: var(--v3-radius-md); }
  .v3-hero-courier__copy { padding: 20px; }
  .v3-hero-courier__title { max-width: none; font-size: 32px; }
  .v3-hero-courier__subtitle { max-width: none; margin-top: 8px; font-size: 20px; line-height: 1.3; }
  .v3-hero-courier__text { max-width: none; margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.2; }

  .v3-hero-courier__form-card { padding: 16px; }
  .v3-hero-courier__art,
  .v3-hero-courier__form-title { display: none; }

  .v3-hero-courier .v3-hero-shell__partners { padding-block: 20px 28px; }   /* more air below the logos than on the home hero */
}
