.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 70svh;
  display: flex;
  align-items: flex-start;
  padding: 170px 0 40px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.42)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(29, 78, 216, 0.18));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 24%);
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: block;
}

.home-hero-inner {
  width: 100%;
  max-width: none;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.home-hero-title {
  color: #fff;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.3vw, 3.85rem);
  line-height: 1.06;
  max-width: 100%;
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-align: center;
}

.home-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.72;
  max-width: 620px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero-search-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.hero-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hero-search-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--text);
}

.hero-search-form input:focus {
  box-shadow: none;
}

.hero-search-btn {
  min-width: 126px;
  flex-shrink: 0;
}

.home-stations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.home-stations-main {
  min-width: 0;
}

.home-stations-layout > .stations-sidebar {
  min-width: 0;
}

.home-station-favorite-form {
  margin: 0;
  display: inline-flex;
}

.home-station-favorite-btn {
  border: 0;
  cursor: pointer;
}

.home-station-favorite-btn.is-active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(255, 255, 255, 0.96);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.home-station-favorite-btn.is-active:hover {
  background: linear-gradient(135deg, #f05252 0%, #c81e1e 100%);
  border-color: #ffffff;
  color: #ffffff;
}

.hero-inline-ad {
  margin-top: 22px;
}

.hero-inline-ad .site-ad-block {
  margin: 0;
}

.hero-inline-ad .site-ad-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .home-stations-layout {
    grid-template-columns: 1fr;
  }

  .home-stations-layout > .stations-sidebar {
    order: 2;
  }
}

@media (max-width: 1200px) {
  .home-hero-title {
    white-space: normal;
    font-size: clamp(2rem, 5vw, 3.2rem);
  }
}

@media (max-width: 991px) {
  .home-hero {
    min-height: auto;
    padding: 126px 0 34px;
  }

  .home-hero-title {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: auto;
    padding: 180px 0 28px;
  }

  .home-hero-inner {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero-badge {
    display: flex;
    width: fit-content;
    margin: 0 auto 12px;
  }

  .home-hero-title {
    max-width: 100%;
    margin: 0 auto 12px;
    white-space: normal;
    font-size: clamp(1.82rem, 8vw, 2.45rem);
    line-height: 1.1;
  }

  .home-hero-subtitle {
    max-width: 620px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-search-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-search-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
  }

  .hero-search-btn {
    width: 100%;
    min-width: 0;
  }
}