/* Hero главной — Figma node 177:1198 */

.home-hero {
  position: relative;
  padding: 8px 0 28px;
}

.home-hero[hidden] {
  display: none !important;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 1100px;
}

.home-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.home-hero__title {
  margin: 0;
  font: 800 clamp(36px, 4.8vw, 52px) / 1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-hero__lead {
  margin: 0;
  max-width: 570px;
  font: 500 20px/1.4 "Raleway", var(--font);
  color: var(--text-tertiary);
}

.home-hero__search.gallery-search {
  max-width: 570px;
  width: 100%;
}

.home-hero__search .gallery-search__control {
  min-height: 48px;
  border-radius: 52px;
  background: var(--bg-lower);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
}

.home-hero__search .gallery-search__control:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-subtle));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.home-hero__search .gallery-search__control input {
  height: 48px;
  font-size: 15px;
}

.home-hero__search-clear {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 4px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.home-hero__search-clear.is-visible {
  display: grid;
}

.home-hero__search-clear:hover {
  color: var(--text-primary);
  background: var(--control-tertiary);
}

.home-hero__intro .home-hero__brands {
  margin-top: 4px;
}

.home-hero__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.home-hero__brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px 12px 12px;
  border: 1px solid color-mix(in srgb, #bcc3d0 50%, transparent);
  border-radius: 52px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.home-hero__brand-pill:hover {
  border-color: color-mix(in srgb, var(--text-tertiary) 70%, transparent);
  background: color-mix(in srgb, var(--control-tertiary) 55%, transparent);
}

.home-hero__brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-lower);
}

.home-hero__brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__brand-icon.is-fallback {
  font: 600 18px/1 var(--font);
  color: var(--text-secondary);
}

.home-hero__brand-name {
  font: 600 24px/1.33 var(--font);
  white-space: nowrap;
}

.home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.home-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.home-hero__stat strong {
  font: 900 32px/1.25 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-hero__stat span {
  font: 400 20px/1.4 "Raleway", var(--font);
  color: var(--text-tertiary);
}

.home-hero__stat-divider {
  width: 1px;
  height: 34px;
  background: color-mix(in srgb, var(--text-tertiary) 45%, transparent);
  flex-shrink: 0;
}

body.is-home-page .figma-search-section {
  padding-top: 12px;
  gap: 20px;
}

@media (max-width: 768px) {
  .home-hero__content {
    gap: 32px;
  }

  .home-hero__lead {
    font-size: 17px;
    line-height: 1.45;
  }

  .home-hero__brand-name {
    font-size: 18px;
  }

  .home-hero__brand-pill {
    padding: 10px 18px 10px 10px;
    gap: 12px;
  }

  .home-hero__brand-icon {
    width: 36px;
    height: 36px;
  }

  .home-hero__stats {
    gap: 24px 32px;
  }

  .home-hero__stat strong {
    font-size: 26px;
  }

  .home-hero__stat span {
    font-size: 16px;
  }

  .home-hero__stat-divider {
    display: none;
  }
}
