/* ============================================
   Hero Section — rum-info.ru
   ============================================ */

.hero-section {
  position: relative;
  background: url('../img/hero_bg.jpg') center 75% / cover no-repeat;
  min-height: min(520px, 70vh);
  overflow: hidden;
}

/* Gradient overlay: сильнее слева (текст), мягче справа (фон виден) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 25, 50, 0.78) 0%, rgba(10, 25, 50, 0.5) 50%, rgba(10, 25, 50, 0.25) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
  z-index: 0;
}

/* Layout */
.hero__wrap {
  background-image: none !important;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 180px 0;
  position: relative;
  z-index: 1;
}

/* Left column — text */
.hero__left {
  flex: 1 1 55%;
}

.hero__title {
  font-family: "Roboto", sans-serif;
  font-size: clamp(26px, 2.5vw + 10px, 40px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__desc {
  font-family: "Roboto", sans-serif;
  font-size: clamp(15px, 1.2vw + 6px, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Right column — form card (glassmorphism) */
.hero__right {
  flex: 0 0 auto;
  width: 320px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Form overrides for dark background */
.hero-section .formHeader {
  color: #ffffff;
  font-weight: 500;
}

.hero__right .entrance__form {
  width: 100%;
  margin: 0;
}

.hero-section .formInput {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-section .formInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-section .formButton {
  box-shadow: 0 4px 15px rgba(251, 169, 74, 0.35);
}

.hero-section .indexLogin__reg {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.hero-section .indexLogin__reg:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-section .custom-form__check_label {
  color: rgba(255, 255, 255, 0.8);
}

.hero-section .custom-form__check_toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .hero__wrap {
    gap: 40px;
    padding: 60px 0;
  }
}

@media (max-width: 992px) {
  .hero__wrap {
    gap: 32px;
    padding: 50px 0;
  }
  .hero__right {
    width: 300px;
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    background-position: center center;
  }
  .hero__wrap {
    flex-direction: column;
    text-align: center;
    padding: 40px 0 36px;
    gap: 28px;
  }
  .hero__right {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* iOS fix: fixed attachment не работает на мобильных */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    background-attachment: scroll;
  }
}
