/* Cozy Wool final hotfixes loaded after all template styles. */

/* Catalog section count is service-only: do not show "20 товаров" / "4 товара". */
.codex-bitrix .codex-catalog-hero #found-count,
.codex-bitrix .codex-catalog-hero .codex-hidden-count {
  display: none !important;
}

.codex-bitrix .codex-catalog-hero .catalog-meta:has(#found-count:only-child),
.codex-bitrix .codex-catalog-hero .catalog-meta:empty {
  display: none !important;
}

/* Home hero video: keep the important bottom of the shot visible on odd desktop ratios. */
.codex-bitrix.codex-index .hero {
  background-color: #f4f1ea !important;
  background-image:
    radial-gradient(circle at 10% 16%, rgba(255,255,255,.78) 0, rgba(255,255,255,0) 34%),
    linear-gradient(90deg, #f4f1ea 0%, #f4f1ea 55%, #eee9df 100%) !important;
  overflow: hidden !important;
}

.codex-bitrix.codex-index .hero-video {
  object-fit: contain !important;
  object-position: right bottom !important;
  background: #f4f1ea !important;
  pointer-events: none !important;
}

.codex-bitrix.codex-index .hero.hero-video-fallback .hero-video {
  opacity: 0 !important;
}

@media (min-width: 769px) {
  .codex-bitrix.codex-index .hero {
    min-height: min(820px, calc(100svh - 106px)) !important;
    padding-top: clamp(42px, 5vh, 70px) !important;
    padding-bottom: clamp(44px, 5.5vh, 76px) !important;
  }
}

@media (max-width: 768px) {
  .codex-bitrix.codex-index .hero-video {
    object-fit: cover !important;
    object-position: 72% bottom !important;
  }
}
.codex-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 560px) {
  .codex-search-form {
    grid-template-columns: 1fr;
  }
}
