/* Баннер с формой: слайдер слева, форма справа */
.hero { padding: 4px 0 32px; }
.hero-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 430px;
  border-radius: 16px;
  overflow: hidden;
  background: #dfe9f1;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.hero-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.hero-track.is-dragging { transition: none; }
.hero-slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; pointer-events: none; }
.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  cursor: default;
  transition: background .25s ease, width .25s ease;
}
.hero-dots button.is-active { width: 22px; border-radius: 4px; background: #fff; }

.hero-form {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 16px;
  background: #1b7fbf;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
}
.hero-form h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: #fff; text-align: left; }
.hero-form__lead { margin: 10px 0 22px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.hero-form__input {
  width: 100%;
  height: 54px;
  margin: 0 0 6px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 400 16px 'Open Sans', Arial, sans-serif;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.hero-form__input::placeholder { color: rgba(255, 255, 255, .7); }
.hero-form__input:focus { outline: none; border-bottom-color: #fff; }
.hero-form__agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .85); cursor: default; }
.hero-form__agree input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #fff; }
.hero-form__agree a { color: #fff; text-decoration: underline; }
.hero-form__btn {
  align-self: stretch;
  margin-top: auto;
  padding: 15px 26px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #1c2733;
  font: 600 15px 'Open Sans', Arial, sans-serif;
  cursor: default;
  transition: background .2s ease;
}
.hero-form__btn:hover { background: #eaf5fc; }
.hero-form__agree + .hero-form__btn { margin-top: 28px; }
.hero-form, .hero-form * { -webkit-tap-highlight-color: transparent; }
.hero-form__input { cursor: text; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-slider { min-height: 0; aspect-ratio: 16 / 9; }
  .hero-form { padding: 22px 20px; }
  .hero-form h2 { font-size: 22px; }
  .hero-form__btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

/* затемнение и текст акции на слайдах */
.hero-slide { position: relative; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 28, .72) 0%, rgba(8, 18, 28, .48) 45%, rgba(8, 18, 28, .12) 100%),
    linear-gradient(180deg, rgba(8, 18, 28, .4) 0%, rgba(8, 18, 28, 0) 55%);
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  left: 44px;
  top: 44px;
  z-index: 1;
  max-width: 520px;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1b7fbf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: none;
}
.hero-caption__title { font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.hero-caption p { margin: 14px 0 0; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .92); }

@media (max-width: 1000px) {
  .hero-caption { left: 24px; right: 24px; top: 24px; max-width: none; }
  .hero-caption__title { font-size: 28px; }
  .hero-caption p { font-size: 15px; margin-top: 8px; }
}
@media (max-width: 480px) {
  .hero-slider { aspect-ratio: 4 / 3; }
  .hero-caption { left: 16px; right: 16px; top: 16px; }
  .hero-badge { margin-bottom: 8px; padding: 4px 11px; font-size: 11px; }
  .hero-caption__title { font-size: 21px; }
  .hero-caption p { display: none; }
}

/* введённый текст всегда чисто белый; автозаполнение браузера не красит поля в серый */
.hero-form__input:not(:placeholder-shown) { color: #fff; -webkit-text-fill-color: #fff; border-bottom-color: #fff; }
.hero-form__input:-webkit-autofill,
.hero-form__input:-webkit-autofill:hover,
.hero-form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #1b7fbf inset;
  -webkit-box-shadow: 0 0 0 1000px #1b7fbf inset;
  transition: background-color 9999s ease-out;
}
.hero-form__input:invalid:not(:placeholder-shown):not(:focus) { border-bottom-color: #ffb4b4; }
