/* v3 advertising. Figma: Advertising Bold 11783:20859 (1440), mobile 11803:25751 (430) */
.v3-adv {
  --v3-adv-lines: calc(var(--v3-gutter) - 12px);
  --v3-adv-car-top: 0px;
  background: var(--v3-white);
  overflow: hidden;
  isolation: isolate;
}
.v3-adv::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-adv-lines) 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--v3-gray-50) 0 3px, transparent 3px 5px) calc(100% - var(--v3-adv-lines)) 0 / 1px 100% no-repeat;
}
@media (min-width: 1440px) {
  .v3-adv::before { background: url("../../../images/v3/advertising/decorative-lines.svg") center top / 1440px 100% no-repeat; }
}
.v3-adv::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;
}

/* ---- top: header + car ---- */
.v3-adv__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 727px);
  align-items: start;
}
.v3-adv__header { display: flex; flex-direction: column; gap: 24px; max-width: 457px; }
.v3-adv__label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-bottom: 16px;     /* 40px label-to-title gap with the 24px flex gap */
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.v3-adv__label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--v3-primary);
}
.v3-adv__accent { display: block; color: var(--v3-primary); }
.v3-adv__text { color: var(--v3-gray-200); font-weight: 500; line-height: var(--v3-lh-body-m); }

.v3-adv__visual {
  position: relative;
  container-type: inline-size;
  margin-top: 12px;
  aspect-ratio: 727 / 291;
}
.v3-adv__visual img {
  position: absolute;
  top: var(--v3-adv-car-top);
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
}
.v3-adv__car-shadow { mix-blend-mode: multiply; }
.v3-adv__ghost { position: absolute; inset: 0; margin: 0; color: rgba(211, 211, 211, 0.5); white-space: nowrap; pointer-events: none; }
.v3-adv__ghost-value {
  position: absolute;
  left: 7%;
  top: -1.2cqw;
  font-size: 18.02cqw;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.v3-adv__ghost-label {
  position: absolute;
  left: 8.1%;
  top: -1.65cqw;
  font-size: 2.86cqw;
  font-weight: 500;
  line-height: 1.3;
}

/* ---- income cards ---- */
.v3-adv__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.v3-adv__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  border-radius: var(--v3-radius-md);
  background: var(--v3-white);
}
.v3-adv__tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--v3-primary-10);
  color: var(--v3-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.v3-adv__trips { font-weight: 700; line-height: var(--v3-lh-body-m); }
.v3-adv__hours { color: var(--v3-gray-200); line-height: var(--v3-lh-body-m); }
.v3-adv__card-info { display: flex; flex-direction: column; gap: 4px; }
.v3-adv__price { display: flex; align-items: flex-end; gap: 8px; color: var(--v3-dark); font-weight: 500; line-height: var(--v3-lh-body-m); }
.v3-adv__price strong { color: var(--v3-primary); white-space: nowrap; }
.v3-adv__price span { max-width: 85px; padding-bottom: 4px; }

/* ---- bottom: text + Bitrix24 form ---- */
.v3-adv__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 652px);
  align-items: start;
  margin-top: 80px;
}
.v3-adv__form-text { display: flex; flex-direction: column; gap: 24px; max-width: 400px; font-weight: 500; line-height: var(--v3-lh-body-m); color: var(--v3-gray-200); }
.v3-adv__form-title { max-width: 358px; color: var(--v3-dark); }

.v3-adv__form { min-width: 0; }
/* Bitrix24 inline form (rendered by the CDN loader): light theme close to the Figma form (copied from css/v3/parts/footer.css) */
.v3-adv__form .b24-form-wrapper { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
.v3-adv__form .b24-form-padding-side { padding-inline: 0 !important; }
.v3-adv__form .b24-form-control-container { border-radius: var(--v3-radius-md) !important; }
/* Figma: 2 columns (name | phone, e-mail | city), consent full width; one column on phones */
.v3-adv__form form > div:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.v3-adv__form .b24-form-field-list { order: 4; }
.v3-adv__form .b24-form-field-bool { order: 5; grid-column: 1 / -1; }
@media (max-width: 480px) { .v3-adv__form form > div:first-child { grid-template-columns: minmax(0, 1fr); } }
.v3-adv__form .b24-form-btn {
  min-height: 52px;
  border-radius: var(--v3-radius-md) !important;
  background: var(--v3-dark) !important;
  color: var(--v3-white) !important;
  font-family: var(--v3-font);
  font-size: 16px;
  font-weight: 600;
  text-transform: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.v3-adv__form .b24-form-btn:hover { background: var(--v3-primary) !important; box-shadow: var(--v3-shadow-glow); }

@media (min-width: 1281px) {
  .v3-adv__visual { margin-inline: 12px -12px; }   /* Figma: the car spans x 663..1390 */
}

@media (max-width: 1024px) {
  .v3-adv__top { grid-template-columns: minmax(0, 1fr) minmax(0, 52%); column-gap: 24px; }
  .v3-adv__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .v3-adv__bottom { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 56px; }
}

@media (max-width: 768px) {
  .v3-adv { --v3-adv-lines: 16px; --v3-adv-car-top: 6.92cqw; }
  .v3-adv__top { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .v3-adv__header { max-width: none; }
  .v3-adv__accent { display: inline; }
  .v3-adv__label { margin-bottom: -16px; }       /* 8px label-to-title gap */
  .v3-adv__visual { margin-top: 0; aspect-ratio: 390 / 183; }
  .v3-adv__ghost-value { left: 0; top: 0.56cqw; font-size: 24.5cqw; }
  .v3-adv__ghost-label { left: 1.5cqw; top: 0; font-size: 3.89cqw; }
  .v3-adv__ghost { color: rgba(0, 0, 0, 0.1); }
  .v3-adv__ghost-label { color: rgba(0, 0, 0, 0.15); }
  .v3-adv__cards { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 36px; }
  .v3-adv__card { gap: 20px; padding: 20px; }
  .v3-adv__card--hide-mobile { display: none; }
  .v3-adv__bottom { row-gap: 42px; margin-top: 42px; }
  .v3-adv__form-text { gap: 20px; max-width: none; }
  .v3-adv__form-title { max-width: none; }
}

/* ---- variant bottom=button_desktop (home): Figma 12066:9544 button on the right above 769px, the form block below (mobile layout) ---- */
.v3-adv__cta { display: none; }
@media (min-width: 769px) {
  .v3-adv__bottom--button { display: flex; justify-content: flex-end; margin-top: 42px; }
  .v3-adv__bottom--button .v3-adv__form-text,
  .v3-adv__bottom--button .v3-adv__form { display: none; }
  .v3-adv__bottom--button .v3-adv__cta { display: inline-flex; width: 320px; }
}
