.home-hero {
  position: relative;
  background: #233833 url('../img/bg_home-1600.webp') center / cover;
  color: #fff;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #152c26f5, #19312ad6 39%, #1c352e1a 89%);
  pointer-events: none;
}

.home-hero__body {
  position: relative;
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
  padding-block: clamp(36px, 6vw, 82px);
}

.home-hero h1 {
  max-width: 675px;
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 5.1vw, 70px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.042em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.home-hero__intro {
  max-width: 56ch;
  margin: 14px 0 0;
  color: inherit;
  font-size: clamp(1rem, 1.56vw, 1.2rem);
  line-height: 1.5;
}

.home-hero .search_group {
  max-width: 580px;
  margin: 24px 0 0;
}

.home-hero .hero-search-form .search-wrap {
  gap: 4px;
  padding: 4px;
  border: 1px solid #ddd4ca;
  border-radius: 10px;
  color: var(--black, #212121);
}

.home-hero .search-wrap > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.home-hero .hero-search-form .search-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 6px;
}

.home-hero .search-input::placeholder {
  color: #6e6964;
}

.home-hero__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 13px;
  border: 0;
  border-radius: 6px;
  background: #f0eeeb;
  color: #293b34;
  font-weight: 650;
}

.home-hero__search-submit:hover {
  background: #e5e8e3;
}

.home-hero .hero-search-form :is(input, button):focus-visible {
  outline: 2px solid #8c382b;
  outline-offset: 0;
}

.home-hero__topics,
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero__topics {
  margin-top: 12px;
}

.home-hero__topics a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 11px;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  color: #fff;
  font-size: .83rem;
  text-decoration: none;
}

.home-hero__actions {
  margin-top: 22px;
}

.home-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--main, #fc7361);
  border-radius: 8px;
  background: var(--main, #fc7361);
  color: #212121;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.22;
}

.home-hero__explore:hover {
  border-color: #ff9788;
  background: #ff9788;
}

.home-hero__actions .home-hero__creator {
  border-color: #ffffffa3;
  background: transparent;
  color: #fff;
}

.home-hero__topics a:hover,
.home-hero__actions .home-hero__creator:hover {
  border-color: #fff;
  background: #ffffff30;
}

.home-hero :is(.home-hero__topics, .home-hero__actions) a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .home-hero {
    background-image: url('../img/bg_home-960.webp');
  }
}

@media (max-width: 680px) {
  .home-hero::before {
    background: linear-gradient(90deg, #152c26ed, #19312a9c 72%, #1c352e4f);
  }

  .home-hero h1 {
    text-wrap: wrap;
  }

  .home-hero__actions a {
    flex: 1 1 180px;
  }
}

@media (max-width: 600px) {
  .home-hero__body {
    width: calc(100% - 32px);
  }
}

@media (max-width: 480px) {
  .home-hero__search-submit {
    padding-inline: 10px;
  }

  .home-hero__search-submit span {
    display: none;
  }
}

@media (max-width: 370px) {
  .home-hero .hero-search-form .search-input {
    font-size: .85rem;
  }
}

@media (max-width: 350px) {
  .home-hero__topics {
    gap: 6px;
  }

  .home-hero__topics a {
    padding-inline: 7px;
    font-size: .75rem;
  }
}
