/* Hero: фон, заголовок, бейдж, список, CTA, нижняя полоса */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(92vh, 980px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/bg.jpg") center 42% / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      180deg,
      rgba(0, 12, 28, 0.72) 0%,
      rgba(0, 20, 45, 0.25) 28%,
      rgba(0, 30, 55, 0.12) 48%,
      rgba(0, 25, 50, 0.45) 72%,
      rgba(0, 18, 42, 0.88) 100%
    ),
    radial-gradient(
      120% 80% at 90% 75%,
      rgba(0, 80, 140, 0.35) 0%,
      transparent 55%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) 1.25rem clamp(1.25rem, 3vw, 2rem);
  gap: clamp(1.5rem, 4vh, 3rem);
}

.hero__intro {
  max-width: 52rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 120, 40, 0.95),
    0 0 28px rgba(255, 90, 0, 0.75), 0 0 52px rgba(255, 60, 0, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.85);
}

.hero__badge {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1.85rem 0.55rem 1.65rem;
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--hero-blue-deep);
  border: 2px solid var(--hero-yellow-bright);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
}

.hero__benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero__benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.1vw, 1.125rem);
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.hero__check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  color: var(--hero-check-green);
  filter: drop-shadow(0 0 6px rgba(57, 224, 109, 0.65));
}

.hero__contact {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.35rem 1.25rem 1.15rem;
}

.hero__contact::before {
  content: "";
  position: absolute;
  inset: -12% -18% -8% -8%;
  z-index: -1;
  background: radial-gradient(
      ellipse 120% 90% at 85% 60%,
      rgba(0, 174, 239, 0.42) 0%,
      rgba(0, 120, 200, 0.18) 45%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 80% 70% at 20% 80%,
      rgba(0, 80, 160, 0.28) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  letter-spacing: 0.03em;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  transition: color 0.2s ease;
}

.hero__phone:hover {
  color: var(--hero-yellow-bright);
}

.hero__phone-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--hero-yellow-bright);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(0.8rem, 1.75vw, 0.95rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: #0a1628;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    #fff3a1 0%,
    var(--hero-yellow-bright) 38%,
    #ffb020 100%
  );
  box-shadow: 0 4px 0 #b87400, 0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero__cta::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 3px;
  height: 42%;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #b87400, 0 14px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero__cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #b87400, 0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero__strip {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.9vw, 1rem);
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  color: var(--hero-yellow-bright);
  background: rgba(0, 18, 48, 0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 210, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .hero__bg {
    background-image: url("../img/bg-mob.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* Лёгкое затемнение фона для читаемости текста на ярком фото */
  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 10, 24, 0.28) 0%,
        rgba(0, 10, 24, 0.18) 45%,
        rgba(0, 10, 24, 0.26) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 12, 28, 0.72) 0%,
        rgba(0, 20, 45, 0.25) 28%,
        rgba(0, 30, 55, 0.12) 48%,
        rgba(0, 25, 50, 0.45) 72%,
        rgba(0, 18, 42, 0.88) 100%
      ),
      radial-gradient(
        120% 80% at 90% 75%,
        rgba(0, 80, 140, 0.35) 0%,
        transparent 55%
      );
  }

  .hero__row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero__contact {
    justify-self: stretch;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__title {
    text-shadow: 0 0 10px rgba(255, 120, 40, 0.9),
      0 0 24px rgba(255, 90, 0, 0.55), 0 3px 10px rgba(0, 0, 0, 0.85);
    font-size: 37px;
  }
  .hero{
    min-height: auto;
  }
}
