section#lab-home-hero.lab-hero {
  --hero-navy: #0b2345;
  --hero-blue: #086fbb;
  --hero-accent: #126fea;
  --hero-copy: #33465c;
  --hero-border: #c5d8e8;
  --hero-yellow: #ffd000;
  --hero-yellow-hover: #f0c100;

  position: relative;
  isolation: isolate;
  padding-block: 40px;
  background: linear-gradient(110deg, #fbfdff 0%, #f2f9fe 56%, #e6f5ff 100%);
  color: var(--hero-navy);
  overflow: hidden;
  font-family: inherit;
}

section#lab-home-hero.lab-hero, section#lab-home-hero.lab-hero * { box-sizing: border-box; }

section#lab-home-hero.lab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('hero-circuit-pattern.svg');
  background-size: cover;
  background-position: center;
  opacity: .5; /* предполагается уже полупрозрачный SVG */
  pointer-events: none;
}

#lab-home-hero .lab-hero__container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
}

#lab-home-hero .lab-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

#lab-home-hero .lab-hero__media, #lab-home-hero .lead-card { min-width: 0; }

#lab-home-hero .lab-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--hero-accent);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .015em;
}

#lab-home-hero .lab-hero__title {
  margin: 0;
  max-width: 740px;
  color: var(--hero-navy);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.07;
  overflow-wrap: break-word;
}

#lab-home-hero .lab-hero__title::after {
  content: none;
}

#lab-home-hero .lab-hero__subtitle {
  margin: 12px 0 26px;
  color: #264c78;
  font-size: 20px;
  line-height: 1.4;
}

#lab-home-hero .hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #b9d9ed;
  border-radius: 16px;
  background: #063e78;
  box-shadow: 0 10px 24px rgb(11 72 119 / 11%);
}

#lab-home-hero .hero-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#lab-home-hero .hero-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid #167ace;
  border-radius: 50%;
  background: #0c4384;
  box-shadow: 0 8px 16px rgb(0 37 84 / 22%);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background-color 160ms ease, scale 160ms ease;
}

#lab-home-hero .hero-video__play svg { width: 27px; height: 27px; fill: currentColor; }
#lab-home-hero .hero-video__play:hover { background: #1263b2; scale: 1.04; }
#lab-home-hero .hero-video__play:focus-visible { outline: 3px solid #ffcf00; outline-offset: 4px; }
#lab-home-hero .hero-video__play[hidden] { display: none; }

#lab-home-hero .lab-hero__video-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  color: var(--hero-navy);
  font-size: 16px;
  line-height: 1.35;
}
#lab-home-hero .lab-hero__video-caption svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--hero-blue); }

#lab-home-hero .lead-card {
  padding: 30px 32px 32px;
  border: 1px solid rgb(93 169 223 / 28%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 32px rgb(14 73 119 / 10%);
}

#lab-home-hero .lead-card__title {
  position: relative;
  margin: 0;
  padding-left: 0;
  color: var(--hero-navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

#lab-home-hero .lead-card__title::before {
  content: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 34px;
  border-radius: 3px;
  background: var(--hero-accent);
}

#lab-home-hero .lead-card__subtitle {
  margin: 12px 0 26px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #454b54;
  text-align: left;
}

#lab-home-hero .lead-form { display: grid; gap: 16px; }

#lab-home-hero .lead-form__field { position: relative; }

#lab-home-hero .lead-form__field input,
#lab-home-hero .lead-form__field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 16px 12px 56px;
  border: 1px solid var(--hero-border);
  border-radius: 10px !important;
  background: #fff;
  color: var(--hero-navy);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#lab-home-hero .lead-form__field input::placeholder,
#lab-home-hero .lead-form__field textarea::placeholder { color: #6c7787; opacity: 1; }

#lab-home-hero .lead-form__field input:focus,
#lab-home-hero .lead-form__field textarea:focus {
  outline: none;
  border-color: var(--hero-accent);
  box-shadow: 0 0 0 3px rgb(18 111 234 / 13%);
}

#lab-home-hero .lead-form__field [aria-invalid="true"] {
  border-color: #b52b37;
}

#lab-home-hero .lead-form__field textarea {
  min-height: 116px;
  resize: vertical;
}

#lab-home-hero .lead-form__field-icon {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 20px;
  height: 20px;
  color: #5b6b7d;
  pointer-events: none;
}

#lab-home-hero .lead-form__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#lab-home-hero .lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  color: var(--hero-navy);
  font-size: 14px;
  line-height: 1.4;
}

#lab-home-hero .lead-form__consent input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--hero-accent);
  cursor: pointer;
}

#lab-home-hero .lead-form__consent a { color: #075bc0; text-decoration: underline; }
#lab-home-hero .lead-form__consent a:focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 3px; }

#lab-home-hero .lead-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 64px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--hero-yellow);
  color: var(--hero-navy);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease;
}

#lab-home-hero .lead-form__submit svg { width: 24px; height: 24px; flex: 0 0 24px; }
#lab-home-hero .lead-form__submit:hover { background: var(--hero-yellow-hover); }
#lab-home-hero .lead-form__submit:focus-visible { outline: 3px solid var(--hero-accent); outline-offset: 3px; }
#lab-home-hero .lead-form__submit:disabled { cursor: wait; opacity: .74; }

#lab-home-hero .lead-form__status {
  color: #087448;
  font-size: 14px;
  line-height: 1.4;
}
#lab-home-hero .lead-form__status:empty { display: none; }
#lab-home-hero .lead-form__status.is-error { color: #b52b37; }

@media (max-width: 1199px) and (min-width: 992px) {
  #lab-home-hero .lab-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
  #lab-home-hero .lab-hero__title { font-size: 40px; }
  #lab-home-hero .lead-card { padding: 24px; }
  #lab-home-hero .lead-card__title { font-size: 24px; }
}

@media (max-width: 991px) {
  section#lab-home-hero.lab-hero { padding-block: 36px; }
  #lab-home-hero .lab-hero__container { width: min(calc(100% - 40px), 760px); }
  #lab-home-hero .lab-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #lab-home-hero .lab-hero__title { font-size: 38px; }
  #lab-home-hero .lead-card { width: min(100%, 600px); }
}

@media (max-width: 767px) {
  #lab-home-hero .lab-hero__title { font-size: 32px; }
  #lab-home-hero .lab-hero__eyebrow { font-size: 15px; }
  #lab-home-hero .lab-hero__subtitle { font-size: 17px; }
  #lab-home-hero .lead-card { padding: 20px; }
  #lab-home-hero .lead-card__title { font-size: 23px; }
  #lab-home-hero .hero-video__play { width: 64px; height: 64px; }
}

@media (max-width: 479px) {
  section#lab-home-hero.lab-hero { padding-block: 28px 36px; }
  section#lab-home-hero.lab-hero::before { display: none; }
  #lab-home-hero .lab-hero__container { width: calc(100% - 32px); }
  #lab-home-hero .lab-hero__title { font-size: 30px; }
  #lab-home-hero .lab-hero__eyebrow { font-size: 14px; }
  #lab-home-hero .lab-hero__subtitle { font-size: 16px; }
  #lab-home-hero .hero-video { border-radius: 12px; }
  #lab-home-hero .hero-video__play { width: 58px; height: 58px; }
  #lab-home-hero .lead-card { padding: 16px; border-radius: 16px; }
  #lab-home-hero .lead-card__title { font-size: 22px; }
  #lab-home-hero .lead-card__subtitle { font-size: 15px; }
  #lab-home-hero .lead-form__submit { min-height: 56px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #lab-home-hero .hero-video__play,
  #lab-home-hero .lead-form__field input,
  #lab-home-hero .lead-form__field textarea,
  #lab-home-hero .lead-form__submit { transition: none; }
  #lab-home-hero .hero-video__play:hover { scale: 1; }
}


section#lab-home-hero.lab-hero { margin: 0; border: 0; }
#lab-home-hero .hero-video__poster { display: block; width: 100%; height: 100%; }
#lab-home-hero .hero-video__poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
#lab-home-hero .hero-video__poster[hidden], #lab-home-hero .hero-video__play[hidden], #lab-home-hero [hidden] { display: none; }
#lab-home-hero .hero-video iframe { display: block; border: 0; width: 100%; height: 100%; }
#lab-home-hero .hero-video__status { position: absolute; inset: auto 10px 10px; padding: 8px 12px; border-radius: 8px; background: #fff; color: #0b2345; font-size: 14px; line-height: 1.4; }
#lab-home-hero .hero-video__fallback { margin: 10px 0 0; color: #086fbb; font-size: 14px; }
#lab-home-hero .hero-video__fallback a { color: inherit; text-decoration: underline; }
#lab-home-hero .lead-form { margin: 0; padding: 0; }
#lab-home-hero .lead-form .wpcf7-form-control-wrap { display: block; width: 100%; }
#lab-home-hero .lead-form__field input, #lab-home-hero .lead-form__field textarea { height: auto; }
#lab-home-hero .lead-form__field-icon { z-index: 1; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#lab-home-hero .lead-form__field-icon svg { display: block; width: 20px; height: 20px; }
#lab-home-hero .lead-form__error { display: block; color: #b52b37; font-size: 13px; line-height: 1.4; margin-top: 5px; }
#lab-home-hero .lead-form__error:empty { display: none; }
#lab-home-hero .lead-form__consent .wpcf7-form-control-wrap { flex: 0 0 22px; width: 22px; }
#lab-home-hero .lead-form__consent .wpcf7-list-item { margin: 0; }
#lab-home-hero .lead-form__consent label { margin: 0; padding: 0; font: inherit; }
#lab-home-hero .lead-form__consent-copy { min-width: 0; }
#lab-home-hero .lead-form__submit svg { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
#lab-home-hero .lead-form__submit span { min-width: 0; }
#lab-home-hero .lead-form__nojs { font-size: 14px; line-height: 1.5; }
#lab-home-hero .wpcf7-response-output, #lab-home-hero .wpcf7-spinner { display: none; }


/* Homepage form: original blue background and aligned desktop columns. */
section#lab-home-hero.lab-hero .lead-card {
  padding: 24px;
  background: #005b96;
  border-color: #005b96;
  color: #fff;
}
section#lab-home-hero.lab-hero .lead-card__title,
section#lab-home-hero.lab-hero .lead-card__subtitle,
section#lab-home-hero.lab-hero .lead-form__consent,
section#lab-home-hero.lab-hero .lead-form__consent a {
  color: #fff;
}
section#lab-home-hero.lab-hero .lead-card__subtitle {
  margin-bottom: 18px;
}
section#lab-home-hero.lab-hero .lead-form { gap: 12px; }
section#lab-home-hero.lab-hero .lead-form__field input,
section#lab-home-hero.lab-hero .lead-form__field textarea {
  min-height: 44px;
  padding-block: 10px;
}
section#lab-home-hero.lab-hero .lead-form__field textarea { min-height: 96px; }
section#lab-home-hero.lab-hero .lead-form__field-icon { top: 12px; }
section#lab-home-hero.lab-hero .lead-form__submit { min-height: 52px; }
section#lab-home-hero.lab-hero .lead-form__error,
section#lab-home-hero.lab-hero .lead-form__status.is-error { color: #fff0b3; }
section#lab-home-hero.lab-hero .lead-form__status { color: #fff; }
section#lab-home-hero.lab-hero .lead-form__consent a:focus-visible,
section#lab-home-hero.lab-hero .lead-form__submit:focus-visible {
  outline-color: #fff;
}

@media (min-width: 992px) {
  section#lab-home-hero.lab-hero .lab-hero__grid { align-items: stretch; }
  section#lab-home-hero.lab-hero .lab-hero__media,
  section#lab-home-hero.lab-hero .lead-card {
    display: flex;
    flex-direction: column;
  }
  section#lab-home-hero.lab-hero .hero-video { flex: 0 0 auto; margin-top: auto; }
  section#lab-home-hero.lab-hero .lead-card > .wpcf7 { margin-top: auto; }
}

@media (max-width: 767px) {
  section#lab-home-hero.lab-hero .lead-card { padding: 20px; }
}
@media (max-width: 479px) {
  section#lab-home-hero.lab-hero .lead-card { padding: 16px; }
}
