/* 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(--text-primary) 10%, transparent);
}

.home-hero__search .gallery-search__control:focus-within {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, 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: 6px;
  align-items: flex-start;
}

.home-hero__brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding: 6px 14px 6px 6px;
  border: 1px solid color-mix(in srgb, #bcc3d0 15%, transparent);
  border-radius: 24px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
  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: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-lower);
}

.home-hero__brand-icon img,
.home-hero__brand-icon .company-icon__img {
  display: block;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: cover;
  border-radius: inherit;
}

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

.home-hero__brand-name {
  font: 600 12px/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-search .figma-search-section {
  padding-top: 8px;
  padding-bottom: 12px;
  gap: 0;
}

body.is-home-search #app {
  padding-top: 4px;
}

body.is-home-search .catalog-section--scenario-screens {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.is-home-search .catalog-section__head--scenario {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
}

body.is-home-search .catalog-section__head--scenario .catalog-section__meta {
  margin: 0;
  font: 500 14px/20px var(--font);
  color: var(--text-tertiary);
}

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

body.is-sites-page .figma-search-section {
  display: none !important;
}

body.is-sites-page #app {
  padding-top: 8px;
}

.figma-cards--sites {
  gap: 28px 20px;
}

@media (min-width: 640px) {
  .figma-cards--sites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .figma-cards--sites {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .figma-cards--sites {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .figma-cards--sites {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

body.is-sites-page .company-card--sites .gallery-card__preview,
body.is-sites-page .company-card--sites .app-card__preview {
  aspect-ratio: 16 / 10;
}

.web-preview-mockup {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border-radius: inherit;
  background: var(--bg-lower);
  pointer-events: none;
}

.web-preview-mockup__screen {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--bg-lower);
}

.web-preview-mockup__screen .media-shimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-lower);
}

.web-preview-mockup__screen .media-shimmer > img,
.web-preview-mockup__screen .media-shimmer > video,
.web-preview-mockup__screen img,
.web-preview-mockup__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

body.is-sites-page .company-card--sites .gallery-card__carousel {
  scroll-snap-type: none;
}

@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: 11px;
  }

  .home-hero__brand-pill {
    height: 42px;
    min-height: 42px;
    padding: 5px 12px 5px 5px;
    gap: 6px;
  }

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

  .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;
  }
}
