/* === hero_cinematic/hero-cinematic-01-homepage-hero-promo-stack.css === */
/* hero_cinematic.css → hero-cinematic-01-homepage-hero-promo-stack.css */

.homepage-hero-promo-stack {
  position: relative;
  overflow: visible;
  background: var(--z-surface-page);
}

.homepage-hero-stage {
  position: relative;
  overflow: hidden;
  background: var(--z-surface-page);
  min-height: 100vh;
  min-height: 100dvh;
}

body.search-active .homepage-hero-stage {
  overflow: visible;
  z-index: 3;
}

.homepage-hero-stage > .hero-cinematic {
  position: absolute;
  /* Не под белую полоску меню — старт ровно под header */
  top: var(--header-h, 64px);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
}

.homepage-hero-stage > .hero.hero--homepage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
}

.homepage-hero-stage > .hero.hero--homepage .hero-content--homepage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.homepage-hero-promo-stack > .hero-search-results--overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  padding: 0 clamp(14px, 3vw, 24px);
  box-sizing: border-box;
  z-index: 100;
  margin-top: 0;
  pointer-events: auto;
}

.hero-cinematic {
  position: absolute;
  top: var(--header-h, 64px);
  left: 0;
  width: 100%;
  height: auto;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--z-surface-page);
  pointer-events: none;
  contain: layout style paint;
  --hero-flight-duration: 14s;
  --hero-enter-duration: 4.8s;
  /* Слайды и film: фон чуть ниже середины баннеров */
  --hero-film-extend: clamp(72px, 9vw, 110px);
}

.hero-cinematic--film {
  contain: layout style;
  background-color: #0f172a; /* не белый при seek/loop */
}

.hero-cinematic__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 2;
  background-color: #0f172a;
  transition: opacity 0.55s ease;
}

.hero-cinematic__poster--hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-cinematic__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  background-color: #0f172a;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-cinematic__film--visible {
  opacity: 1;
}

.hero-cinematic__film--front {
  z-index: 2;
  opacity: 1;
}

.hero-cinematic__film--back {
  z-index: 1;
  opacity: 0;
}

.hero-cinematic__film--twin {
  /* twin создаётся JS для бесшовного crossfade loop */
}

.hero-cinematic--film .hero-cinematic__film,
.hero-cinematic--film .hero-cinematic__poster {
  filter: brightness(1.04) saturate(1.06) contrast(1.02);
}

.hero-cinematic--film .hero-cinematic__overlay {
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.42) 0%,
    rgba(15, 23, 42, 0.16) 18%,
    rgba(15, 23, 42, 0.06) 38%,
    transparent 58%
  );
}

.hero-cinematic--film .hero-cinematic__shimmer {
  display: none;
}

.hero-cinematic--film .hero-cinematic__layer {
  display: none !important;
}

.hero-cinematic__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--z-surface-page);
  opacity: 0;
}

.hero-cinematic__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.hero-cinematic__media--animating {
  animation-timing-function: linear;
}

.hero-cinematic__media--image {
  object-fit: cover;
  object-position: center center;
  background-color: var(--z-surface-page);
}

div.hero-cinematic__media--image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-cinematic__layer--active {
  opacity: 1;
}

.hero-cinematic__layer--transition {
  will-change: opacity;
  transition: opacity var(--hero-enter-duration) cubic-bezier(0.33, 0, 0.2, 1);
}

.hero-cinematic--crossfading .hero-cinematic__media--animating {
  animation-play-state: paused !important;
}

.hero-cinematic--crossfading .hero-cinematic__layer--transition {
  will-change: opacity;
}

.hero-cinematic__layer--motion-hold .hero-cinematic__media--animating {
  animation-play-state: paused !important;
}

.hero-cinematic--paused .hero-cinematic__media--animating {
  animation-play-state: paused !important;
  will-change: auto;
}

.hero-cinematic--paused .hero-cinematic__layer--transition {
  will-change: auto;
}

.hero-cinematic--lite .hero-cinematic__media--fwd-center,
.hero-cinematic--lite .hero-cinematic__media--fwd-left,
.hero-cinematic--lite .hero-cinematic__media--fwd-right,
.hero-cinematic--lite .hero-cinematic__media--fwd-up,
.hero-cinematic--lite .hero-cinematic__media--fwd-down {
  animation: none !important;
}

@keyframes hero-fwd-center {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(0, -0.2%, 0);
  }
}

@keyframes hero-fwd-left {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(-1.1%, -0.15%, 0);
  }
}

@keyframes hero-fwd-right {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(1.1%, -0.15%, 0);
  }
}

@keyframes hero-fwd-up {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(0, -0.45%, 0);
  }
}

@keyframes hero-fwd-down {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(0, 0.1%, 0);
  }
}

@keyframes hero-fwd-center-lite {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.03) translate3d(0, -0.1%, 0);
  }
}

@keyframes hero-fwd-left-lite {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.03) translate3d(-0.6%, -0.08%, 0);
  }
}

@keyframes hero-fwd-right-lite {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.03) translate3d(0.6%, -0.08%, 0);
  }
}

@keyframes hero-fwd-up-lite {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.03) translate3d(0, -0.25%, 0);
  }
}

@keyframes hero-fwd-down-lite {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.03) translate3d(0, 0.06%, 0);
  }
}

@keyframes hero-fwd-center-v {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.04) translate3d(0, -0.1%, 0);
  }
}

@keyframes hero-fwd-left-v {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.04) translate3d(-0.5%, -0.08%, 0);
  }
}

@keyframes hero-fwd-right-v {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.04) translate3d(0.5%, -0.08%, 0);
  }
}

@keyframes hero-fwd-up-v {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.04) translate3d(0, -0.18%, 0);
  }
}

@keyframes hero-fwd-down-v {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.04) translate3d(0, 0.05%, 0);
  }
}

.hero-cinematic__media--fwd-center,
.hero-cinematic__media--fwd-left,
.hero-cinematic__media--fwd-right,
.hero-cinematic__media--fwd-up,
.hero-cinematic__media--fwd-down {
  animation-duration: var(--hero-flight-duration);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.hero-cinematic--full .hero-cinematic__media--fwd-center {
  animation-name: hero-fwd-center;
}

.hero-cinematic--full .hero-cinematic__media--fwd-left {
  animation-name: hero-fwd-left;
}

.hero-cinematic--full .hero-cinematic__media--fwd-right {
  animation-name: hero-fwd-right;
}

.hero-cinematic--full .hero-cinematic__media--fwd-up {
  animation-name: hero-fwd-up;
}

.hero-cinematic--full .hero-cinematic__media--fwd-down {
  animation-name: hero-fwd-down;
}

.hero-cinematic--balanced .hero-cinematic__media--fwd-center {
  animation-name: hero-fwd-center-lite;
}

.hero-cinematic--balanced .hero-cinematic__media--fwd-left {
  animation-name: hero-fwd-left-lite;
}

.hero-cinematic--balanced .hero-cinematic__media--fwd-right {
  animation-name: hero-fwd-right-lite;
}

.hero-cinematic--balanced .hero-cinematic__media--fwd-up {
  animation-name: hero-fwd-up-lite;
}

.hero-cinematic--balanced .hero-cinematic__media--fwd-down {
  animation-name: hero-fwd-down-lite;
}

.hero-cinematic__layer--has-video .hero-cinematic__media--fwd-center {
  animation-name: hero-fwd-center-v;
}

.hero-cinematic__layer--has-video .hero-cinematic__media--fwd-left {
  animation-name: hero-fwd-left-v;
}

.hero-cinematic__layer--has-video .hero-cinematic__media--fwd-right {
  animation-name: hero-fwd-right-v;
}

.hero-cinematic__layer--has-video .hero-cinematic__media--fwd-up {
  animation-name: hero-fwd-up-v;
}

.hero-cinematic__layer--has-video .hero-cinematic__media--fwd-down {
  animation-name: hero-fwd-down-v;
}

.hero-cinematic__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(15, 23, 42, 0.75) 0%,
      rgba(15, 23, 42, 0.45) 20%,
      rgba(15, 23, 42, 0.25) 45%,
      rgba(15, 23, 42, 0.22) 65%,
      rgba(15, 23, 42, 0.4) 100%
    ),
    radial-gradient(
      ellipse 80% 70% at 50% 40%,
      transparent 30%,
      rgba(15, 23, 42, 0.2) 100%
    );
  pointer-events: none;
}

.hero-cinematic__fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--hero-fade-bottom-height, 16%);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 38%,
    rgba(248, 250, 252, 0.1) 58%,
    rgba(248, 250, 252, 0.38) 74%,
    rgba(248, 250, 252, 0.72) 88%,
    rgba(248, 250, 252, 0.92) 96%,
    var(--z-surface-page) 100%
  );
}

.homepage-hero-promo-stack .hero-cinematic__fade-bottom {
  height: calc(var(--hero-film-extend, 72px) + 12%);
}

.hero-cinematic__shimmer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(
      2px 2px at 20% 30%,
      rgba(255, 255, 255, 0.22) 0%,
      transparent 100%
    ),
    radial-gradient(
      2px 2px at 60% 20%,
      rgba(255, 255, 255, 0.16) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 80% 60%,
      rgba(255, 255, 255, 0.14) 0%,
      transparent 100%
    );
}

.homepage-hero-promo-stack .hero--cinematic {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.hero--cinematic .hero-title,
.hero--cinematic .hero-title--homepage {
  color: var(--z-surface-white) !important;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero--cinematic .hero-subtitle,
.hero--cinematic .hero-subtitle--homepage {
  color: rgba(255, 255, 255, 0.93) !important;
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero--cinematic .hero-stats--homepage .stat-item,
.homepage-hero-promo-stack .hero--cinematic .stat-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(122, 182, 217, 0.12) 0%,
    rgba(73, 98, 117, 0.22) 48%,
    rgba(38, 52, 64, 0.3) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.36) !important;
  border-left-color: rgba(255, 255, 255, 0.28) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.22),
    0 2px 8px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease !important;
}

.hero--cinematic .hero-stats--homepage .stat-item::before,
.homepage-hero-promo-stack .hero--cinematic .stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 22%,
    transparent 38%
  );
  pointer-events: none;
  z-index: 0;
}

/* === hero_cinematic/hero-cinematic-02-hero-cinematic-hero-stats-homepage.css === */
/* hero_cinematic.css → hero-cinematic-02-hero-cinematic-hero-stats-homepage.css */

.hero--cinematic .hero-stats--homepage .stat-item::after,
.homepage-hero-promo-stack .hero--cinematic .stat-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(122, 182, 217, 0.06) 0%,
    transparent 40%,
    rgba(54, 73, 88, 0.05) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero--cinematic .hero-stats--homepage .stat-number,
.hero--cinematic .hero-stats--homepage .stat-label,
.homepage-hero-promo-stack .hero--cinematic .stat-number,
.homepage-hero-promo-stack .hero--cinematic .stat-label {
  position: relative;
  z-index: 1;
}

.hero--cinematic .hero-stats--homepage .stat-item:hover,
.homepage-hero-promo-stack .hero--cinematic .stat-item:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(
    155deg,
    rgba(122, 182, 217, 0.16) 0%,
    rgba(73, 98, 117, 0.26) 48%,
    rgba(38, 52, 64, 0.34) 100%
  ) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.28),
    0 4px 12px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

.hero--cinematic .stat-number {
  color: var(--z-surface-white) !important;
  text-shadow:
    0 1px 2px rgba(15, 23, 42, 0.55),
    0 0 1px rgba(0, 0, 0, 0.4) !important;
}

.hero--cinematic .stat-label {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.5) !important;
  letter-spacing: 0.02em;
}

.hero--cinematic .hero-title,
.hero--cinematic .hero-title.hero-title--homepage {
  color: var(--z-surface-white) !important;
  text-shadow:
    0 2px 4px rgba(15, 23, 42, 0.55),
    0 0 2px rgba(0, 0, 0, 0.3) !important;
}

.hero--cinematic .hero-subtitle,
.hero--cinematic .hero-subtitle.hero-subtitle--homepage {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow:
    0 1px 3px rgba(15, 23, 42, 0.5) !important;
}

.hero--cinematic .popular-carousel {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.homepage-hero-promo-stack .promo-banners-section {
  position: relative;
  z-index: 2;
}

.homepage-hero-promo-stack:has(.hero-cinematic--film) .promo-banners-section {
  z-index: 3;
}

.homepage-hero-promo-stack .promo-banner {
  min-height: clamp(72px, min(12vw, 14vmin), 152px);
  padding: clamp(0.55rem, min(1.6vw, 2vmin), 1.75rem);
}

@media (max-width: 767px) {
  .homepage-hero-promo-stack .promo-banner,
  .homepage-categories-ad-dock .promo-banner,
  .promo-home-cell--1 .promo-banner,
  .promo-home-cell--2 .promo-banner {
    min-height: clamp(100px, 24vw, 132px);
    padding: 12px 18px;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  body:not(.search-active) .homepage-hero-promo-stack {
    --home-promo-bottom-inset: 25px;
    --home-promo-lift: 20px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-bottom: var(--home-promo-bottom-inset);
    overflow: visible;
  }
  body:not(.search-active) .homepage-hero-promo-stack > .homepage-hero-stage {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  /* Под меню + вниз чуть ниже середины первого ряда баннеров */
  body:not(.search-active) .homepage-hero-promo-stack > .homepage-hero-stage > .hero-cinematic {
    top: var(--header-h, 64px);
    bottom: calc(-1 * var(--hero-film-extend, 72px));
    height: auto;
  }
  body:not(.search-active) .homepage-hero-stage > .hero.hero--homepage {
    min-height: 0 !important;
    height: 100%;
  }
  body:not(.search-active) .homepage-hero-promo-stack > .hero-search-flow-spacer {
    flex: 0 0 0;
    height: 0 !important;
  }
  body:not(.search-active) .homepage-hero-promo-stack > .geo-answer-lead-corridor {
    flex: 0 0 auto;
  }
  body:not(.search-active) .homepage-hero-promo-stack > .promo-banners-section {
    flex: 0 0 auto;
    margin-top: calc(-1 * var(--home-promo-lift, 20px)) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  body:not(.search-active) .homepage-hero-promo-stack {
    --home-promo-bottom-inset: 22px;
    --home-promo-lift: 20px;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    padding-bottom: var(--home-promo-bottom-inset);
  }
  body:not(.search-active) .homepage-hero-stage {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  body:not(.search-active) .homepage-hero-promo-stack > .homepage-hero-stage > .hero-cinematic {
    --hero-film-extend: clamp(52px, 16vw, 78px);
    top: var(--header-h, 64px);
    bottom: calc(-1 * var(--hero-film-extend));
    height: auto;
  }
  body:not(.search-active) .homepage-hero-stage > .hero.hero--homepage {
    min-height: 0 !important;
    height: 100%;
  }
  body:not(.search-active) .homepage-hero-promo-stack .promo-home-cell--1 {
    margin-top: calc(-1 * var(--home-promo-lift, 20px)) !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto;
  }
}

.hero-cinematic__dots {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 6px;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.hero-cinematic__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cinematic__dot--active {
  background: rgba(255, 255, 255, 0.9);
  width: 18px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  .homepage-hero-promo-stack {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }
  .homepage-hero-stage {
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .homepage-hero-stage > .hero-cinematic {
    top: var(--header-h, 64px);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
  .homepage-hero-stage > .hero.hero--homepage {
    min-height: 100dvh !important;
  }
  .hero-cinematic__poster,
  .hero-cinematic__film,
  .hero-cinematic__media {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-cinematic__layer {
    inset: -3%;
    width: 106%;
    height: 106%;
  }
  .hero-cinematic__shimmer {
    display: none;
  }
  .hero-cinematic--lite .hero-cinematic__media--animating {
    will-change: auto;
  }
  .hero-cinematic__dots {
    bottom: 22%;
  }
  .hero-cinematic__fade-bottom {
    height: var(--hero-fade-bottom-height-mobile, 20%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinematic__layer {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-cinematic__media--fwd-center,
  .hero-cinematic__media--fwd-left,
  .hero-cinematic__media--fwd-right,
  .hero-cinematic__media--fwd-up,
  .hero-cinematic__media--fwd-down {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-cinematic__shimmer {
    animation: none !important;
    display: none;
  }
}

@media (min-width: 2000px) {
  .hero-cinematic__overlay {
    background:
      linear-gradient(
        to top,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(15, 23, 42, 0.4) 25%,
        rgba(15, 23, 42, 0.22) 50%,
        rgba(15, 23, 42, 0.2) 70%,
        rgba(15, 23, 42, 0.38) 100%
      ),
      radial-gradient(
        ellipse 80% 70% at 50% 40%,
        transparent 35%,
        rgba(15, 23, 42, 0.18) 100%
      );
  }
  .hero-cinematic--film .hero-cinematic__overlay {
    background: linear-gradient(
      to top,
      rgba(15, 23, 42, 0.38) 0%,
      rgba(15, 23, 42, 0.14) 20%,
      transparent 55%
    );
  }
}

.hero--homepage .hero-subtitle.hero-subtitle--homepage,
.hero--cinematic .hero-subtitle.hero-subtitle--homepage {
  white-space: normal !important;
  width: 100% !important;
  max-width: min(850px, 92vw) !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  box-sizing: border-box;
  padding-inline: clamp(0.5rem, 2vw, 1.25rem);
}

.hero--homepage .hero-title.hero-title--homepage,
.hero--cinematic .hero-title.hero-title--homepage {
  white-space: normal !important;
  width: 100% !important;
  max-width: min(920px, 94vw) !important;
  font-size: clamp(1.1rem, min(4.2vw, 5vmin), 3.8rem) !important;
  line-height: 1.15 !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
  padding-inline: clamp(0.5rem, 2vw, 1.25rem);
}

.hero--homepage .hero-subtitle.hero-subtitle--homepage,
.hero--cinematic .hero-subtitle.hero-subtitle--homepage {
  font-size: clamp(0.58rem, min(1.15vw, 2vmin), 1.35rem) !important;
  line-height: 1.35 !important;
}

.homepage-hero-stage > .hero.hero--homepage .hero-content--homepage {
  min-height: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-height: 720px) {
  body:not(.search-active) .homepage-hero-promo-stack > .hero.hero--homepage {
    padding-top: calc(var(--header-h, 64px) + clamp(0.35rem, 1.5vmin, 0.75rem)) !important;
    padding-bottom: clamp(0.35rem, 1.5vmin, 0.75rem) !important;
  }

  body:not(.search-active) .hero.hero--homepage .hero-title--homepage,
  body:not(.search-active) .hero.hero--homepage .hero-subtitle--homepage {
    margin-top: clamp(0.2rem, 0.8vmin, 0.35rem) !important;
  }

  body:not(.search-active) .homepage-hero-promo-stack {
    --home-promo-bottom-inset: clamp(10px, 2vmin, 25px);
    --home-promo-lift: clamp(8px, 2vmin, 20px);
  }
}

/* Пропорционально уменьшаем stats и поиск на главной */
.homepage-hero-promo-stack .hero-stats--homepage .stat-item {
  width: clamp(72px, min(11vw, 14vmin), 216px) !important;
  height: clamp(48px, min(7vw, 9vmin), 126px) !important;
  padding: clamp(0.35rem, min(0.85vw, 1.2vmin), 1.8rem) !important;
}

.homepage-hero-promo-stack .hero-stats--homepage .stat-number {
  font-size: clamp(0.75rem, min(1.2vw, 2.2vmin), 1.8rem) !important;
}

.homepage-hero-promo-stack .hero-stats--homepage .stat-label {
  font-size: clamp(0.5rem, min(0.7vw, 1.4vmin), 0.9rem) !important;
}

.homepage-hero-promo-stack .hero-search--homepage .search-box {
  min-height: clamp(36px, min(3.2vw, 5.5vmin), 52px) !important;
}

.homepage-hero-promo-stack .hero-search--homepage .search-input {
  font-size: clamp(0.8125rem, min(1vw, 2.2vmin), 1.1rem) !important;
}

body:not(.search-active) .homepage-hero-stage > .hero.hero--homepage .hero-content--homepage {
  scale: min(1, calc(100dvh / 780), calc(100dvw / 430));
  transform-origin: center top;
}

.hero--cinematic .hero-search--homepage .search-box,
.homepage-hero-promo-stack .hero--cinematic .hero-search--homepage .search-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(122, 182, 217, 0.12) 0%,
    rgba(73, 98, 117, 0.22) 48%,
    rgba(38, 52, 64, 0.3) 100%
  ) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.36) !important;
  border-left-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.22),
    0 2px 8px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero--cinematic .hero-search--homepage .search-box::before,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .search-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 22%,
    transparent 38%
  );
  pointer-events: none;
  z-index: 0;
}

.hero--cinematic .hero-search--homepage .search-box::after,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .search-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(122, 182, 217, 0.06) 0%,
    transparent 40%,
    rgba(54, 73, 88, 0.05) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero--cinematic .hero-search--homepage .search-box .search-input,
.hero--cinematic .hero-search--homepage .search-box .search-icon-btn,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .search-box
  .search-input,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .search-box
  .search-icon-btn {
  position: relative;
  z-index: 1;
}

.hero--cinematic .hero-search--homepage .z-search-field,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .z-search-field {
  background: transparent !important;
  text-shadow: none;
}

.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:not(:hover):not(:focus-within)
  .z-search-field:placeholder-shown,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .hero-search__bar:not(:hover):not(:focus-within)
  .z-search-field:placeholder-shown {
  color: #ffffff !important;
  caret-color: rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: #ffffff !important;
}

.hero--cinematic .hero-search--homepage .z-search-field::placeholder,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .z-search-field::placeholder,
.hero--cinematic .hero-search--homepage .z-search-field::-webkit-input-placeholder,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .z-search-field::-webkit-input-placeholder {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1;
}

.hero--cinematic .hero-search--homepage .z-search-field:focus,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .z-search-field:focus {
  background: transparent !important;
}

.hero--cinematic .hero-search--homepage .search-icon-btn {
  opacity: 0.92;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  transition:
    opacity 0.38s ease,
    transform 0.38s ease,
    box-shadow 0.38s ease;
}

.hero--cinematic .hero-search--homepage .hero-search__bar:hover .search-box,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .search-box,
body.search-active .hero--cinematic .hero-search--homepage .search-box,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .hero-search__bar:hover
  .search-box,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .search-box,
body.search-active
  .homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .search-box {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.72) !important;
}

/* === hero_cinematic/hero-cinematic-03-hero-cinematic-hero-search-homepage.css === */
/* hero_cinematic.css → hero-cinematic-03-hero-cinematic-hero-search-homepage.css */

.hero--cinematic .hero-search--homepage .hero-search__bar:hover .search-input,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .search-input,
body.search-active .hero--cinematic .hero-search--homepage .search-input,
.hero--cinematic .hero-search--homepage .hero-search__bar:hover .z-search-field,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .z-search-field,
body.search-active .hero--cinematic .hero-search--homepage .z-search-field {
  color: var(--color-dark, #1e293b) !important;
  text-shadow: none;
  caret-color: var(--color-dark, #1e293b);
  -webkit-text-fill-color: var(--color-dark, #1e293b) !important;
}

.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:hover
  .search-input::placeholder,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:hover
  .z-search-field::placeholder,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .search-input::placeholder,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .z-search-field::placeholder,
body.search-active
  .hero--cinematic
  .hero-search--homepage
  .search-input::placeholder,
body.search-active
  .hero--cinematic
  .hero-search--homepage
  .z-search-field::placeholder,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .hero-search__bar:hover
  .z-search-field::placeholder,
.homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .z-search-field::placeholder,
body.search-active
  .homepage-hero-promo-stack
  .hero--cinematic
  .hero-search--homepage
  .z-search-field::placeholder,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:hover
  .z-search-field::-webkit-input-placeholder,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .z-search-field::-webkit-input-placeholder,
body.search-active
  .hero--cinematic
  .hero-search--homepage
  .z-search-field::-webkit-input-placeholder {
  color: var(--z-gray-900, #0f172a) !important;
  -webkit-text-fill-color: var(--z-gray-900, #0f172a) !important;
  opacity: 1;
}

.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:hover
  .search-icon-btn,
.hero--cinematic
  .hero-search--homepage
  .hero-search__bar:focus-within
  .search-icon-btn,
body.search-active .hero--cinematic .hero-search--homepage .search-icon-btn {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(73, 98, 117, 0.35);
}

@media (hover: none) {
  .hero--cinematic .hero-search--homepage .search-box {
    background: linear-gradient(
      155deg,
      rgba(122, 182, 217, 0.12) 0%,
      rgba(73, 98, 117, 0.22) 48%,
      rgba(38, 52, 64, 0.3) 100%
    ) !important;
  }
}

/* === search/search-01-root.css === */
/* search.css → search-01-root.css */

:root {
  --z-card-gap: 0px;
  --z-card-photo-radius: 0;
}

.popular-carousel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  margin-top: 8px;
  overflow: hidden;
  z-index: 99;
}

.popular-carousel--visible {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: carouselFadeIn 0.3s ease;
}

.popular-carousel__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--z-gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 2;
}

.popular-carousel__arrow:hover {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: var(--z-blue-500);
  color: var(--z-blue-600);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  transform: scale(1.08);
}

.popular-carousel__arrow:active {
  transform: scale(0.95);
  box-shadow: none;
}

.popular-carousel__arrow svg {
  width: 14px;
  height: 14px;
}

@keyframes carouselFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popular-carousel__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 6px;
  align-items: center;
}

.popular-carousel__track::-webkit-scrollbar {
  display: none;
}

.popular-carousel__item {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--z-gray-600);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(37, 99, 235, 0.15);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.popular-carousel__item:hover {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: var(--z-blue-500);
  color: var(--z-blue-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.popular-carousel__item:active {
  transform: translateY(0);
  box-shadow: none;
}

.dark .popular-carousel__item {
  color: var(--z-text-dim);
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.25);
}

.dark .popular-carousel__item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--z-blue-500);
  color: #93c5fd;
}

@media (max-width: 560px) {
  .popular-carousel {
    margin-top: 5px;
    max-width: 92%;
  }
  .popular-carousel--visible {
    gap: 3px;
  }
  .popular-carousel__track {
    gap: 5px;
    padding: 2px 0 3px;
  }
  .popular-carousel__item {
    padding: 4px 10px;
    font-size: 0.65rem;
    border-width: 1px;
  }
  .popular-carousel__arrow {
    width: 22px;
    height: 22px;
  }
  .popular-carousel__arrow svg {
    width: 11px;
    height: 11px;
  }
}

.hero-search--with-suggest {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-search__bar {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.search-page .search-box {
  padding: 2px 2px 2px clamp(0.6rem, 1.2vw, 0.9rem);
  min-height: clamp(32px, 3vw, 38px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-page .search-input {
  font-size: 0.85rem !important;
}

.search-page .search-icon-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.hero-filter-chips {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 98;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0 2px;
  justify-content: center;
  animation: chipsSlideIn 0.3s ease;
}

@keyframes chipsSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-filter-chip[data-filter^="sec_"] {
  border-color: rgba(16, 185, 129, 0.25);
  color: #0a7575;
}

.hero-filter-chip[data-filter^="sec_"]:hover {
  border-color: var(--z-green-500);
  color: var(--z-green-700);
  background: rgba(16, 185, 129, 0.08);
}

.hero-filter-chip[data-filter^="sec_"].hero-filter-chip--active {
  background: linear-gradient(135deg, var(--z-green-500), var(--z-green-600));
  border-color: transparent;
  color: var(--z-surface-white);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hero-filter-chip[data-filter="verified"] {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--z-amber-900);
}

.hero-filter-chip[data-filter="verified"]:hover {
  border-color: var(--z-amber-500);
  color: var(--z-amber-800);
  background: rgba(245, 158, 11, 0.08);
}

.hero-filter-chip[data-filter="verified"].hero-filter-chip--active {
  background: linear-gradient(135deg, var(--z-amber-500), var(--z-amber-600));
  border-color: transparent;
  color: var(--z-surface-white);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.hero-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--z-gray-600);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.hero-filter-chip:hover {
  border-color: var(--z-blue-500);
  color: var(--z-blue-600);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.hero-filter-chip--active {
  background: var(--z-action-blue, #1a73e8);
  color: var(--z-surface-white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.hero-filter-chip--active:hover {
  background: var(--z-action-blue-hover, #1765cc);
  color: var(--z-surface-white);
}

.hero-filter-chip--sort {
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--z-amber-900);
}

.hero-filter-chip--sort:hover {
  border-color: var(--z-amber-500);
  color: var(--z-amber-800);
  background: rgba(245, 158, 11, 0.08);
}

.hero-filter-chip--sort.hero-filter-chip--active {
  background: var(--z-brand-saffron, #d69d30);
  color: var(--z-surface-white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.hero-filter-chip--sort.hero-filter-chip--active:hover {
  background: var(--z-brand-saffron-dark, #b8841f);
}

.hero-filter-chip--city {
  border-color: rgba(20, 184, 166, 0.25);
  color: var(--z-teal-700);
}

.hero-filter-chip--city:hover {
  border-color: var(--z-teal-500);
  color: var(--z-teal-600);
  background: rgba(20, 184, 166, 0.08);
}

.hero-filter-chip--city.hero-filter-chip--active {
  background: var(--color-primary, #0a7575);
  color: var(--z-surface-white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.hero-filter-chip--city.hero-filter-chip--active:hover {
  background: var(--color-primary-dark, #047a7c);
}

.hero-filter-chip[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--z-text-dark);
  color: var(--z-gray-100);
  font-size: 0.68rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-filter-chip[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--z-text-dark);
  pointer-events: none;
  z-index: 50;
}

.hero-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  z-index: 100;
}

.hero-search-results--open {
  display: block;
}

.hero-search-results__inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.hero-search-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0 12px 0 0;
  text-decoration: none;
  color: var(--z-gray-800);
  background: var(--z-surface-white);
  border-radius: var(--z-card-radius, 20px);
  border: var(--z-card-gap, 0px) solid var(--z-surface-white);
  box-shadow:
    var(--z-card-outer-ring),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
  max-height: 142px;
}

.hero-search-card__top,
.hero-search-card__bottom {
  display: none;
}

.hero-search-card__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.hero-search-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.hero-search-card__badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
}

.hero-search-card:hover {
  box-shadow:
    var(--z-card-outer-ring-hover),
    0 6px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.hero-search-card--verified {
  box-shadow:
    inset 5px 0 0 var(--z-green-500),
    var(--z-card-outer-ring),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.hero-search-card--verified:hover {
  box-shadow:
    inset 5px 0 0 var(--z-green-500),
    var(--z-card-outer-ring-hover),
    0 6px 24px rgba(37, 99, 235, 0.08);
}

.hero-search-card__verified {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1;
}

.hero-search-card__img {
  flex-shrink: 0;
  width: 134px;
  min-height: 134px;
  align-self: stretch;
  border-radius: var(--z-card-photo-radius, 20px);
  border: none;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-color: var(--z-gray-100);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.hero-search-card__slider {
  background-image: none !important;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

.hero-search-card__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--z-gray-100);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.hero-search-card__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero-search-card__arrow-left,
.hero-search-card__arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: var(--z-surface-white);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hero-search-card__arrow-left {
  left: 6px;
}

.hero-search-card__arrow-right {
  right: 6px;
}

/* === search/search-02-hero-search-card-sliderhover-hero-se.css === */
/* search.css → search-02-hero-search-card-sliderhover-hero-se.css */

.hero-search-card__slider:hover .hero-search-card__arrow-left,
.hero-search-card__slider:hover .hero-search-card__arrow-right {
  opacity: 1;
}

.hero-search-card__arrow-left:hover,
.hero-search-card__arrow-right:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-search-card__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 4px;
}

.hero-search-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s;
}

.hero-search-card__dot--active {
  background: var(--z-surface-white);
}

.hero-search-card__rating-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  bottom: auto;
  right: auto;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--z-surface-white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 4;
}

.hero-search-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  text-align: left;
  padding: 8px 0;
  max-height: 142px;
  box-sizing: border-box;
  position: relative;
}

.hero-search-card__price-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-search-card__price-corner .hero-search-card__price {
  pointer-events: auto;
}

.hero-search-card__top {
  display: none;
}

.hero-search-card__meta {
  display: none;
}

.hero-search-card__rating {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--z-amber-900);
  background: rgba(251, 191, 36, 0.18);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.hero-search-card__title {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--z-gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  margin: 0;
}

.hero-search-card__title mark,
.hero-search-card__desc mark {
  background: rgba(59, 130, 246, 0.25);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: inherit;
  min-width: 0;
}

.hero-search-card__score-inline {
  flex-shrink: 0;
  padding: 1px 7px;
  background: linear-gradient(135deg, var(--z-blue-500), var(--z-blue-600));
  color: var(--z-surface-white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.hero-search-card__desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--z-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-search-card__foot {
  margin-top: auto;
  padding-top: 4px;
  padding-right: 88px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

.hero-search-card__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.hero-search-card__tags-row {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.hero-search-card__tags-row .hero-search-card__chips {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, var(--z-gray-950) 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, var(--z-gray-950) 88%, transparent);
}

.hero-search-card__section {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
  color: var(--z-surface-white);
  border: none;
  letter-spacing: 0.02em;
  background: var(
    --gradient-services,
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%)
  );
}

.hero-search-card__section--apartments {
  background: var(
    --gradient-apartments,
    linear-gradient(135deg, var(--z-brand-tea) 0%, var(--color-primary-light) 100%)
  );
}

.hero-search-card__section--transport {
  background: var(
    --gradient-transport,
    linear-gradient(135deg, var(--z-brand-saffron) 0%, var(--color-error) 100%)
  );
}

.hero-search-card__section--water_transport {
  background: linear-gradient(135deg, var(--z-blue-700) 0%, #0ea5e9 100%);
}

.hero-search-card__section--excursions {
  background: var(
    --gradient-tours,
    linear-gradient(135deg, var(--color-primary-light) 0%, var(--z-brand-tea) 100%)
  );
}

.hero-search-card__section--food {
  background: var(
    --gradient-food,
    linear-gradient(135deg, var(--z-brand-saffron) 0%, var(--z-sl-lotus) 100%)
  );
}

.hero-search-card__section--entertainment {
  background: var(
    --gradient-entertainment,
    linear-gradient(135deg, var(--z-sl-lotus) 0%, var(--color-error) 100%)
  );
}

.hero-search-card__section--shops,
.hero-search-card__section--services {
  background: var(
    --gradient-services,
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%)
  );
}

.hero-search-card__promo {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--z-surface-white);
  background: linear-gradient(135deg, var(--z-indigo-500), #4f46e5);
}

.hero-search-card__location {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--z-text-secondary);
  white-space: nowrap;
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-card__chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.hero-search-card__price-corner .hero-search-card__price,
.hero-search-card__meta .hero-search-card__price {
  font-weight: 800;
  color: #0a7575;
  font-size: 0.8125rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.15;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 8px;
  box-sizing: border-box;
  display: inline-block;
}

.hero-search-card__price--request {
  color: var(--z-text-secondary);
  background: rgba(100, 116, 139, 0.12);
  font-weight: 600;
  font-size: 0.75rem;
}

.hero-search-card__img .hero-search-card__price {
  position: absolute;
  bottom: 8px;
  right: 8px;
  left: auto;
  font-weight: 800;
  color: #ecfdf5;
  font-size: 1rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.15;
  z-index: 5;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  box-sizing: border-box;
}

.hero-search-card__badges--foot {
  display: none;
}

.hero-search-card__tags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.hero-search-card__tag {
  display: inline-block;
  padding: 2px 6px;
  background: linear-gradient(135deg, #faf1eb, #fae8dc);
  color: #BE5103;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
  margin: 0;
  vertical-align: middle;
}

.hero-search-card__tag--more {
  color: #be5103;
}

.hero-search-card__options {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.hero-search-card__opt {
  display: inline-block;
  padding: 2px 7px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #0a7575;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
  margin: 0;
  vertical-align: middle;
}

.hero-search-card__footer {
  display: none;
}

.hero-search-card__arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--z-blue-500), var(--z-blue-600));
  color: var(--z-surface-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  align-self: center;
}

.hero-search-card:hover .hero-search-card__arrow {
  background: linear-gradient(135deg, var(--z-blue-600), var(--z-blue-800));
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.hero-search-card__score {
  display: none;
}

.hero-search-results__summary {
  padding: 8px 14px 6px;
  font-size: 0.8125rem;
  color: var(--z-text-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-search-results__popular-label {
  padding: 10px 14px 6px;
  font-size: 0.8125rem;
  color: var(--z-text-secondary);
}

.hero-search-results__popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 14px 12px;
}

.hero-search-results__popular-btn {
  padding: 6px 12px;
  font-size: 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: var(--z-surface-white);
  color: var(--z-gray-700);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.hero-search-results__popular-btn:hover {
  background: var(--z-gray-100);
  border-color: rgba(0, 0, 0, 0.2);
}

.hero-search-results__suggest {
  padding: 0;
}

.hero-search-results__suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.15s;
}

.hero-search-results__suggest-item:hover {
  background: var(--z-surface-page);
}

.hero-search-results__suggest-title {
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search-results__suggest-cat {
  font-size: 0.75rem;
  color: var(--z-text-secondary);
  margin-left: 8px;
  flex-shrink: 0;
}

.hero-search-results__suggest-all {
  display: block;
  width: 100%;
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--z-blue-600);
  background: var(--z-gray-100);
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.15s;
}

.hero-search-results__suggest-all:hover {
  background: var(--z-border-light);
}

.hero-search-results__suggest-empty {
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--z-text-dim);
}

.hero-search-results__corrected {
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--z-text-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--z-surface-page);
}

.hero-search-results__corrected-btn {
  margin-left: 4px;
  padding: 2px 6px;
  font-size: inherit;
  font-weight: 600;
  color: var(--z-blue-600);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.hero-search-results__corrected-btn:hover {
  color: var(--z-blue-800);
}

.hero-search-results__similar-fallback {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--z-gray-600);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  margin: 0 12px 10px;
}

/* === search/search-03-hero-search-results-empty.css === */
/* search.css → search-03-hero-search-results-empty.css */

.hero-search-results__empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--z-text-secondary);
  font-size: 0.9375rem;
}

.hero-search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 16px;
  gap: 16px;
  animation: searchLoadFadeIn 0.35s ease;
  background: transparent;
}

.zookzy-search-loading-panel {
  padding: 8px 4px 12px;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.zookzy-search-loading-panel--hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(12px, 2.2vw, 18px) 0 clamp(14px, 2.5vw, 20px);
  min-height: 0;
}

.zookzy-search-loading-panel .zookzy-thinking {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  width: 100%;
}

.zookzy-search-loading-panel--hero .zookzy-thinking {
  gap: clamp(14px, 2.5vw, 20px);
}

.zookzy-search-loading-panel .zk-search-radar {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 18px rgba(255, 255, 255, 0.35));
}

.zookzy-search-loading-panel--hero .zk-search-radar {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 8px 28px rgba(255, 255, 255, 0.42));
}

.zookzy-search-loading-panel .zk-radar-ring {
  border-width: 2.5px;
  border-color: rgba(255, 255, 255, 0.88);
}

.zookzy-search-loading-panel--hero .zk-radar-ring {
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.95);
}

.zookzy-search-loading-panel--hero .zk-radar-sweep {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.72) 28deg,
    rgba(255, 255, 255, 0.28) 85deg,
    transparent 115deg
  );
}

.zookzy-search-loading-panel .zk-radar-dot {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: #ffffff;
}

.zookzy-search-loading-panel--hero .zk-radar-dot {
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  background: #ffffff;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(255, 255, 255, 0.55);
}

.zookzy-search-loading-panel .zk-status-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: normal;
  text-align: center;
  max-width: 320px;
  line-height: 1.4;
  color: #ffffff;
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(0, 0, 0, 0.35);
}

.zookzy-search-loading-panel--hero .zk-status-text {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 700;
  color: #ffffff;
  max-width: min(360px, 100%);
  padding: 0 clamp(14px, 3vw, 24px);
  box-sizing: border-box;
}

.zookzy-search-loading-panel .zk-search-status {
  width: 100%;
  align-items: center;
}

.zookzy-search-loading-panel .zk-search-bar {
  width: 200px !important;
  margin: 0 auto;
  height: 4px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.zookzy-search-loading-panel--hero .zk-search-bar {
  width: min(240px, calc(100% - 48px)) !important;
  height: 5px;
  background: rgba(255, 255, 255, 0.38);
}

.zookzy-search-loading-panel .zk-search-fill {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55),
    #ffffff,
    rgba(255, 255, 255, 0.88)
  );
}

.dark .zookzy-search-loading-panel .zk-status-text,
.dark .zookzy-search-loading-panel--hero .zk-status-text {
  color: #ffffff;
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 0, 0, 0.4);
}

.dark .zookzy-search-loading-panel .zk-search-radar,
.dark .zookzy-search-loading-panel--hero .zk-search-radar {
  filter: drop-shadow(0 10px 32px rgba(255, 255, 255, 0.38));
}

.dark .zookzy-search-loading-panel--hero .zk-radar-ring {
  border-color: rgba(255, 255, 255, 0.92);
}

.dark .zookzy-search-loading-panel--hero .zk-radar-dot {
  background: #ffffff;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(255, 255, 255, 0.5);
}

@keyframes searchLoadFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-search-loading__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-subtle), var(--color-primary-light));
  color: var(--color-primary);
  animation: searchIconPulse 1.8s ease-in-out infinite;
}

@keyframes searchIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(73, 98, 117, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(73, 98, 117, 0);
  }
}

.hero-search-loading__icon svg {
  animation: searchIconRotate 2.5s ease-in-out infinite;
}

@keyframes searchIconRotate {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

.hero-search-loading__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.hero-search-loading__dots span {
  display: inline-block;
  animation: dotBounce 1.4s ease-in-out infinite;
  font-weight: 800;
  color: var(--z-sl-lotus);
  font-size: 1.3em;
}

.hero-search-loading__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-search-loading__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.hero-search-loading__bar {
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: var(--color-primary-subtle);
  overflow: hidden;
  position: relative;
}

.hero-search-loading__bar-fill {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary-light),
    var(--z-sl-lotus),
    var(--color-primary),
    transparent
  );
  animation: barSlide 1.5s ease-in-out infinite;
}

@keyframes barSlide {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

.hero-search-results__more {
  display: block;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--z-blue-600);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero-search-results__more:hover:not(:disabled) {
  text-decoration: underline;
  opacity: 0.85;
}

.hero-search-results__more:disabled {
  opacity: 0.5;
  cursor: wait;
}

.dark .hero-search-results__inner {
  background: var(--z-text-dark);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dark .hero-search-card {
  color: var(--z-gray-100);
  background: var(--z-text-dark);
  border: 8px solid var(--z-text-dark);
  box-shadow:
    var(--z-card-outer-ring-dark),
    0 1px 4px rgba(0, 0, 0, 0.2);
}

.dark .hero-search-card:hover {
  box-shadow:
    var(--z-card-outer-ring-dark-hover),
    0 6px 24px rgba(59, 130, 246, 0.15);
}

.dark .hero-search-card--verified {
  box-shadow:
    inset 5px 0 0 var(--z-green-500),
    var(--z-card-outer-ring-dark),
    0 1px 4px rgba(0, 0, 0, 0.2);
}

.dark .hero-search-card--verified:hover {
  box-shadow:
    inset 5px 0 0 var(--z-green-500),
    var(--z-card-outer-ring-dark-hover),
    0 6px 24px rgba(59, 130, 246, 0.15);
}

.dark .hero-search-card__title {
  color: var(--z-gray-100);
}

.dark .hero-search-card__desc {
  color: var(--z-text-dim);
}

.dark .hero-search-card__score-inline {
  background: linear-gradient(135deg, var(--z-blue-600), var(--z-blue-800));
}

.dark .hero-search-card__section {
  color: var(--z-surface-white);
  border: none;
}

.dark .hero-search-card__promo {
  color: var(--z-surface-white);
}

.dark .hero-search-card__location {
  color: var(--z-text-dim);
}

.dark .hero-search-card__meta .hero-search-card__price,
.dark .hero-search-card__price-corner .hero-search-card__price {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
}

.dark .hero-search-card__price--request {
  color: var(--z-text-dim);
  background: rgba(100, 116, 139, 0.2);
}

.dark .hero-search-card__rating {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.15);
}

.dark .hero-search-card__img .hero-search-card__price {
  color: #a7f3d0;
  background: rgba(0, 0, 0, 0.55);
}

.dark .hero-search-card__tag {
  background: linear-gradient(
    135deg,
    #faf1eb,
    #fae8dc
  );
  color: #be5103;
}

.dark .hero-search-card__opt {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.12),
    rgba(16, 185, 129, 0.08)
  );
  color: #6ee7b7;
}

.dark .hero-filter-chip {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--z-text-dim);
}

.dark .hero-filter-chip:hover {
  color: #93c5fd;
  border-color: var(--z-blue-500);
  background: rgba(59, 130, 246, 0.1);
}

.dark .hero-filter-chip--active {
  background: linear-gradient(135deg, var(--z-blue-500), var(--z-blue-600));
  color: var(--z-surface-white);
  border-color: transparent;
}

.dark .hero-filter-chip[data-filter^="sec_"] {
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.dark .hero-filter-chip[data-filter^="sec_"]:hover {
  border-color: var(--z-green-500);
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

.dark .hero-filter-chip[data-filter^="sec_"].hero-filter-chip--active {
  background: linear-gradient(135deg, var(--z-green-500), var(--z-green-600));
  color: var(--z-surface-white);
}

.dark .hero-filter-chip[data-filter="verified"] {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--z-amber-400);
}

.dark .hero-filter-chip[data-filter="verified"]:hover {
  border-color: var(--z-amber-500);
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
}

.dark .hero-filter-chip[data-filter="verified"].hero-filter-chip--active {
  background: linear-gradient(135deg, var(--z-amber-500), var(--z-amber-600));
  color: var(--z-surface-white);
}

.dark .hero-search-results__more {
  color: #93c5fd;
}

/* === search/search-04-media-min-width-769px.css === */
/* search.css → search-04-media-min-width-769px.css */

@media (min-width: 769px) {
  .hero-search-card-wrap {
    --hero-search-card-h: 118px;
    --hero-search-photo-height: calc(
      var(--hero-search-card-h) - 2 * var(--z-card-gap)
    );
    --hero-search-photo-width: var(--hero-search-photo-height);
  }
  .hero-search-results__inner {
    gap: 10px;
    padding: 6px 0;
  }
  .hero-search-card {
    --hero-photo-radius: var(--z-card-photo-radius);
    align-items: stretch;
    gap: 12px;
    padding: 0 18px 0 0;
    max-height: var(--hero-search-card-h);
    min-height: var(--hero-search-card-h);
  }
  .hero-search-card__media {
    position: relative;
    flex: 0 0 auto;
    align-self: center;
    display: block;
    width: var(--hero-search-photo-width);
    height: var(--hero-search-photo-height);
    margin: 0;
    min-width: 0;
  }
  .hero-search-card__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--hero-photo-radius);
    flex-shrink: 0;
    overflow: hidden;
  }
  .hero-search-card__body {
    justify-content: center;
    gap: 4px;
    max-height: none;
    padding: 8px 0;
    padding-right: 4px;
  }
  .hero-search-card__title-row {
    gap: 5px;
  }
  .hero-search-card__title {
    font-size: 0.98rem;
    line-height: 1.22;
  }
  .hero-search-card__desc {
    font-size: 0.78rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .hero-search-card__foot {
    padding-top: 2px;
    padding-right: 96px;
    gap: 3px;
  }
  .hero-search-card__section {
    font-size: 0.7rem;
    padding: 2px 10px;
  }
  .hero-search-card__price-corner .hero-search-card__price {
    font-size: 0.84rem;
    padding: 4px 11px;
  }
  .hero-search-card__tags-row .hero-search-card__chips {
    mask-image: linear-gradient(90deg, var(--z-gray-950) 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, var(--z-gray-950) 85%, transparent);
  }
  .hero-search-card__rating-overlay {
    display: none;
  }
  .hero-search-card__dots {
    bottom: 6px;
  }
  .hero-search-card__media > .listing-favorite-btn--hero,
  .hero-search-card__media > a.listing-favorite-btn--hero {
    top: var(--z-card-fav-inset-pc, 10px);
    right: var(--z-card-fav-inset-pc, 10px);
    left: auto;
    transform: none;
  }
  .hero-search-card__tag,
  .hero-search-card__opt {
    font-size: 0.62rem;
    padding: 1px 6px;
  }
  .hero-search-card__tag--more {
    background: rgba(100, 116, 139, 0.12);
    color: #be5103;
  }
  .hero-search-card__verified {
    font-size: 0.72rem;
    line-height: 1;
  }
  .hero-search-card__img .hero-search-card__price,
  .hero-search-card__rating-overlay {
    display: none !important;
  }
  .hero-search-card__badges--foot {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-search-card-wrap {
    --hero-search-card-h: auto;
    --hero-search-photo-height: auto;
    --hero-search-photo-width: 100%;
  }
  .hero-search-card {
    --hero-photo-radius: var(--z-card-photo-radius);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: none;
    min-height: 0;
  }
  .hero-search-card__media {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    min-width: 0;
    align-self: stretch;
    box-sizing: border-box;
  }
  .hero-search-card__img {
    float: none;
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    align-self: stretch;
    margin: 0;
    border-radius: var(--hero-photo-radius);
    overflow: hidden;
  }
  .hero-search-card__body {
    max-height: none;
    padding: 10px 12px 12px;
    flex: none;
    position: static;
  }
  .hero-search-card__price-corner {
    display: none !important;
  }
  .hero-search-card__title-row {
    flex-wrap: wrap;
  }
  .hero-search-card__title {
    flex: 1 1 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-search-card__badges--title {
    display: none !important;
  }
  .hero-search-card__badges--foot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }
  .hero-search-card__status .hero-search-card__rating {
    display: none;
  }
  .hero-search-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 6px;
    padding-top: 0;
    padding-right: 0;
    line-height: 1.35;
    overflow: hidden;
  }
  .hero-search-card__meta-row {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .hero-search-card__tags-row {
    display: flex;
    flex: 1 1 100%;
    min-width: 0;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-search-card__tags-row .hero-search-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
  .hero-search-card__section {
    background: rgba(37, 99, 235, 0.1);
    color: var(--z-blue-800);
    border: 1px solid rgba(37, 99, 235, 0.18);
    font-weight: 700;
  }
  .hero-search-card__promo {
    font-weight: 700;
    text-transform: uppercase;
  }
  .hero-search-card__tags,
  .hero-search-card__options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 100%;
  }
  .hero-search-card__media > .listing-favorite-btn--hero,
  .hero-search-card__media > a.listing-favorite-btn--hero {
    top: var(--z-card-fav-inset-mob, 8px);
    right: var(--z-card-fav-inset-mob, 8px);
    left: auto;
  }
  .hero-search-card__arrow-left,
  .hero-search-card__arrow-right {
    opacity: 1;
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  .hero-search-card__img .hero-search-card__price {
    display: block;
    font-size: 0.92rem;
    padding: 4px 9px;
  }
  .hero-search-card__dots {
    bottom: 40px;
  }
}

@media (max-width: 560px) {
  .hero:not(.hero--homepage) {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .hero-search--with-suggest {
    max-width: 98vw !important;
  }
  .hero-filter-chips {
    gap: 5px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .hero-filter-chip {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  .hero-search-results {
    margin-top: 4px;
  }
  .hero-search-results__inner {
    gap: 11px;
    padding: 0 2px;
  }
  .hero-search-card__dots {
    display: none;
  }
  .hero-search-card__arrow-left,
  .hero-search-card__arrow-right {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    opacity: 1 !important;
  }
  .hero-search-card__arrow-left {
    left: 10px;
  }
  .hero-search-card__arrow-right {
    right: 10px;
  }
  .hero-search-card__rating-overlay {
    font-size: 0.62rem;
    padding: 3px 8px;
    top: var(--z-card-badge-inset, 8px) !important;
    left: var(--z-card-badge-inset, 8px) !important;
  }
  .hero-search-card__body {
    padding: 8px 10px 10px;
  }
  .hero-search-card__title-row {
    gap: 4px;
  }
  .hero-search-card__title {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .hero-search-card__verified {
    font-size: 0.7rem;
  }
  .hero-search-card__score-inline {
    font-size: 0.55rem;
    padding: 1px 5px;
  }
  .hero-search-card__desc {
    font-size: 0.68rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .hero-search-card__section {
    font-size: 0.55rem;
    padding: 0 4px;
    border-radius: 4px;
  }
  .hero-search-card__location {
    font-size: 0.6rem;
  }
  .hero-search-card__tag {
    font-size: 0.55rem;
    padding: 0 3px;
    border-radius: 4px;
  }
  .hero-search-card__opt {
    font-size: 0.55rem;
    padding: 0 3px;
    border-radius: 4px;
  }
  .hero-search-card__arrow {
    display: none;
  }
  .hero-search-results__summary {
    font-size: 0.75rem;
  }
  .hero-search-results__similar-fallback {
    font-size: 0.75rem;
    padding: 8px 12px;
    margin: 0 8px 8px;
  }
}

.hero-search--homepage {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search--homepage .hero-filter-chips {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  z-index: 101;
}

.hero-search--homepage .popular-carousel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  z-index: 99;
}

.homepage-hero-promo-stack > .hero-search-results--overlay {
  display: none;
  top: auto;
}

.homepage-hero-promo-stack > .hero-search-results--overlay.hero-search-results--open {
  display: block;
}

.homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.hero-search-card) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 0;
}

.dark .homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.hero-search-card) {
  background: transparent;
  border: none;
  box-shadow: none;
}

.homepage-hero-promo-stack > .hero-search-results--overlay.hero-search-results--suggest-mode {
  z-index: 250;
}

.homepage-hero-promo-stack > .hero-search-results--overlay.hero-search-results--suggest-mode .hero-search-results__inner,
.homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner.hero-search-results__suggest,
.homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.hero-search-results__suggest-empty),
.homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.search-auth-gate),
.homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.hero-search-results__empty):not(:has(.hero-search-card)) {
  display: block;
  gap: 0;
  padding: 0;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}

.homepage-hero-promo-stack > .hero-search-results--overlay.hero-search-results--loading {
  width: 100%;
  max-width: 960px;
  padding-left: clamp(14px, 3vw, 24px);
  padding-right: clamp(14px, 3vw, 24px);
  box-sizing: border-box;
}

.homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner--loading,
.homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.zookzy-search-loading-panel):not(:has(.hero-search-card)) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: clamp(8px, 1.5vw, 14px) 0 clamp(16px, 2.5vw, 24px);
  min-height: clamp(140px, 22vw, 180px);
  max-height: none;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767px) {
  body.search-active .homepage-hero-promo-stack:has(.hero-search-results--loading) > .promo-banners-section {
    margin-top: clamp(1rem, 2.5vw, 1.75rem) !important;
  }
}

.dark .homepage-hero-promo-stack > .hero-search-results--overlay.hero-search-results--suggest-mode .hero-search-results__inner,
.dark .homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner.hero-search-results__suggest,
.dark .homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.hero-search-results__suggest-empty) {
  background: rgba(30, 41, 59, 0.97);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.dark .homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner--loading,
.dark .homepage-hero-promo-stack > .hero-search-results--overlay .hero-search-results__inner:has(.zookzy-search-loading-panel):not(:has(.hero-search-card)) {
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-search-flow-spacer {
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--z-surface-page);
  position: relative;
  z-index: 1;
}

body.search-active .homepage-hero-promo-stack > .geo-answer-lead-corridor,
body.search-active .homepage-hero-promo-stack > .promo-banners-section {
  position: relative;
  z-index: 1;
}

/* === search/search-05-bodysearch-active-homepage-hero-promo.css === */
/* search.css → search-05-bodysearch-active-homepage-hero-promo.css */

body.search-active .homepage-hero-promo-stack ~ .section {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  body.search-active .homepage-hero-promo-stack > .promo-banners-section {
    margin-top: clamp(0.25rem, 1vw, 0.5rem) !important;
  }
}

body.search-active .hero-stats--homepage {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-search-card-wrap {
  position: relative;
}

.hero-search-card__media {
  position: relative;
}

.hero-search-card__media > .listing-favorite-btn--hero,
.hero-search-card__media > a.listing-favorite-btn--hero,
.hero-search-card-wrap > .listing-favorite-btn--hero,
.hero-search-card-wrap > a.listing-favorite-btn--hero {
  position: absolute;
  z-index: 12;
  pointer-events: auto;
  margin: 0;
}

@media (min-width: 769px) {
  .hero-search-card__media > .listing-favorite-btn--hero,
  .hero-search-card__media > a.listing-favorite-btn--hero,
  .hero-search-card-wrap > .listing-favorite-btn--hero,
  .hero-search-card-wrap > a.listing-favorite-btn--hero {
    top: var(--z-card-fav-inset-pc, 10px);
    left: calc(var(--hero-search-photo-width, 106px) - var(--z-card-fav-inset-pc, 10px) - var(--z-fav-btn-size, 20px));
    right: auto;
  }
}

@media (max-width: 768px) {
  .hero-search-card__media > .listing-favorite-btn--hero,
  .hero-search-card__media > a.listing-favorite-btn--hero,
  .hero-search-card-wrap > .listing-favorite-btn--hero,
  .hero-search-card-wrap > a.listing-favorite-btn--hero {
    top: var(--z-card-fav-inset-mob, 8px);
    right: var(--z-card-fav-inset-mob, 8px);
    left: auto;
  }
}

.search-auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 32px;
  animation: searchAuthGateFadeIn 0.4s ease;
}

@keyframes searchAuthGateFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-auth-gate__icon {
  font-size: 2.4rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.search-auth-gate__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--z-gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.search-auth-gate__text {
  font-size: 0.9rem;
  color: var(--z-text-secondary);
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.search-auth-gate__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}

.search-auth-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.search-auth-gate__btn--login {
  background: var(--z-action-blue, #1a73e8);
  color: var(--z-surface-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.search-auth-gate__btn--login:hover {
  background: var(--z-action-blue-hover, #1765cc);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.search-auth-gate__btn--register {
  background: var(--z-brand-tea, #599a78);
  color: var(--z-surface-white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.search-auth-gate__btn--register:hover {
  background: var(--z-brand-tea-dark, #3d7a5c);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.search-auth-gate__hint {
  font-size: 0.78rem;
  color: var(--z-text-dim);
  font-weight: 500;
}

@media (max-width: 560px) {
  .search-auth-gate {
    padding: 24px 16px 20px;
  }
  .search-auth-gate__icon {
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
  }
  .search-auth-gate__title {
    font-size: 1.05rem;
  }
  .search-auth-gate__text {
    font-size: 0.82rem;
  }
  .search-auth-gate__btn {
    padding: 9px 22px;
    font-size: 0.85rem;
  }
}

.search-auth-gate--premium .search-auth-gate__icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18);
}

.search-auth-gate__btn--premium {
  background: var(--z-brand-saffron, #d69d30) !important;
  color: var(--z-surface-white) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.search-auth-gate__btn--premium:hover {
  background: var(--z-brand-saffron-dark, #b8841f) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.blabla-premium-gate {
  text-align: center;
  padding: 20px 16px !important;
  background: linear-gradient(135deg, var(--z-amber-bg), #fef3c7) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.25) !important;
  border-radius: 14px !important;
}

.blabla-premium-gate__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.blabla-premium-gate__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--z-amber-900);
  margin-bottom: 6px;
}

.blabla-premium-gate__text {
  font-size: 0.82rem;
  color: #78716c;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blabla-premium-gate__btn {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--z-brand-saffron, #d69d30);
  color: var(--z-surface-white);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.25s ease;
  margin-bottom: 8px;
}

.blabla-premium-gate__btn:hover {
  background: var(--z-brand-saffron-dark, #b8841f);
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.blabla-premium-gate__hint {
  font-size: 0.72rem;
  color: #a8a29e;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-search-card__slider .hero-search-card__arrow-left,
  .hero-search-card__slider .hero-search-card__arrow-right {
    opacity: 1 !important;
    pointer-events: auto;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .search-page .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .search-page .sr-card-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (pointer: coarse) and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .search-page .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .search-page .search-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .search-page .sr-card-wrapper,
  .search-page .sr-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* === components/compass/grid-card.css === */
/* Compass grid card — self-contained block styles. */

/* ── Article Grid Cards (shared: главная + Компас) ── */
.compass-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.compass-card-wrap {
    min-width: 0;
    height: 100%;
}
.compass-card-wrap .compass-card {
    height: 100%;
}
.compass-card {
    border-radius: var(--z-card-radius, 20px);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.04);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .3s ease;
    border: none;
    box-sizing: border-box;
}
.compass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(15,23,42,.1);
}
.compass-card-img {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 0;
    isolation: isolate;
    line-height: 0;
}
.compass-card-img > .card-carousel,
.compass-card-img .card-carousel {
    width: 100%;
    height: 100%;
    aspect-ratio: unset !important;
    border-radius: inherit;
}
.compass-card-img .card-carousel__track,
.compass-card-img .card-carousel__slide {
    height: 100%;
}
.compass-card-img .card-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
.compass-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
    border: none;
    border-radius: inherit;
    box-sizing: border-box;
    transform-origin: center center;
}
.compass-card:hover .compass-card-img img,
.compass-card:hover .compass-card-img .card-carousel__slide.active img { transform: scale(1.06); }
.compass-card-cat {
    position: absolute;
    top: 10px; left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 44px);
    min-height: 26px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    box-sizing: border-box;
}
.compass-card-body {
    flex: 1;
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.compass-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}
.compass-card-text {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.compass-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding: 7px 16px 10px;
    margin-top: auto;
}
.compass-card-date {
    font-size: 0.63rem;
    color: #64748b;
    font-weight: 500;
}
.compass-card-author {
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.compass-card-arrow {
    width: 24px; height: 24px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    font-size: 0.7rem;
    transition: all .2s ease;
}
.compass-card:hover .compass-card-arrow {
    background: #FFCE1B;
    color: #fff;
}

/* ── Главная: CTA «Материалы Компаса» — лёгкий glass, не тяжёлый primary ── */
.homepage-compass-cta-wrap {
    text-align: center;
    margin-top: var(--spacing-xl, 2rem);
    padding-bottom: 150px;
}
.compass-home-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: #334155;
    border-radius: 999px;
    transition: transform 0.22s ease, color 0.2s ease;
}
.compass-home-cta__glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.25));
    opacity: 0.55;
    filter: blur(10px);
    z-index: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.compass-home-cta__inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1.35rem 0.72rem 1.5rem;
    border-radius: 999px;
    background: var(--z-surface-white, #fff);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 18px rgba(15, 23, 42, 0.06),
        0 12px 40px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow 0.25s ease, border-color 0.2s ease, background 0.25s ease;
}
.compass-home-cta__label {
    white-space: nowrap;
}
.compass-home-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0a757521;
    color: #0a7575;
    transition: background 0.2s ease, color 0.2s ease, transform 0.22s ease;
}
.compass-home-cta:hover {
    color: #0f172a;
    transform: translateY(-2px);
}
.compass-home-cta:hover .compass-home-cta__glow {
    opacity: 0.85;
    transform: scale(1.03);
}
.compass-home-cta:hover .compass-home-cta__inner {
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 8px 28px rgba(16, 185, 129, 0.12),
        0 16px 48px rgba(15, 23, 42, 0.06);
}
.compass-home-cta:hover .compass-home-cta__icon {
    background: #FFCE1B;
    color: #fff;
    transform: translateX(2px);
}
.compass-home-cta:focus-visible {
    outline: none;
}
.compass-home-cta:focus-visible .compass-home-cta__inner {
    outline: 2px solid #0a7575;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .compass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .compass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .compass-card { flex-direction: column; border-radius: 14px; align-items: stretch; }
    .compass-card-img {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 0;
        isolation: isolate;
        flex-shrink: 0;
    }
    .compass-card-img img {
        border-radius: inherit;
    }
    .compass-card-cat {
        top: 8px;
        left: 8px;
        font-size: 0.65rem;
        min-height: 22px;
        padding: 4px 10px;
        max-width: calc(100% - 36px);
    }
    /* Главная: бейджи как у «Рекомендуемых» (.svc-badge), не компактный compass-cat */
    .homepage-featured-grid .compass-card-cat,
    .homepage-compass-section .compass-card-img > .svc-badge {
        top: var(--z-card-badge-inset, 8px) !important;
        left: var(--z-card-badge-inset, 8px) !important;
        max-width: calc(100% - 2 * var(--z-card-badge-inset, 8px) - 28px) !important;
        font-size: 0.62rem !important;
        min-height: 22px !important;
        padding: 4px 10px !important;
    }
    .compass-card-body { padding: 8px 12px; justify-content: center; }
    .compass-card-title { font-size: 0.8rem; -webkit-line-clamp: 2; flex: 0 1 auto; }
    .compass-card-text { display: none; }
    .compass-home-cta { font-size: 0.88rem; }
    .compass-home-cta__inner { padding: 0.62rem 1.1rem 0.62rem 1.2rem; }
}

/* === components/shared/hub-listing-grid.css === */
/* Hub-листы: catalog / compass / places / market — 1:1 с Featured Services на главной.
   Подключать после grid-card.css, places grid, market.css. */

/* Симметричный зазор между карточками: padding ячейки = боковой inset (как при max-width 90%). */
.homepage-featured-grid.services-grid,
.hub-listing-grid.services-grid,
.hub-listing-grid.compass-grid,
.hub-listing-grid.places-grid,
.hub-listing-grid.mkt-grid,
.cp-listings-grid.services-grid,
.pp-company-listings-grid.services-grid {
  --z-hub-card-fill: 90%;
}

.hub-listing-grid.services-grid,
.hub-listing-grid.compass-grid,
.hub-listing-grid.places-grid,
.hub-listing-grid.mkt-grid,
.homepage-featured-grid.services-grid {
  --z-card-radius: 20px;
  --z-card-gap: 0px;
  --z-card-photo-radius: 0;
  --z-card-photo-bottom-radius: var(--z-card-radius);
  --z-card-photo-aspect: 1 / 1;
  gap: 32px;
  max-width: 100%;
}

.hub-listing-grid.services-grid,
.hub-listing-grid.compass-grid,
.hub-listing-grid.places-grid,
.hub-listing-grid.mkt-grid {
  gap: 18px;
}

/* Ячейки сетки — одинаковый отступ между карточками по горизонтали и вертикали */
.homepage-featured-grid .svc-card-wrapper,
.homepage-featured-grid .compass-card-wrap,
.hub-listing-grid .svc-card-wrapper,
.hub-listing-grid .compass-card-wrap,
.hub-listing-grid.places-grid > .place-card-wrap,
.hub-listing-grid.mkt-grid > .mkt-card-wrap,
.cp-listings-grid .svc-card-wrapper,
.pp-company-listings-grid .svc-card-wrapper {
  position: relative;
  max-width: 100%;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  --z-hub-card-inset: calc((100% - var(--z-hub-card-fill, 90%)) / 2);
  padding: var(--z-hub-card-inset);
}

/* Compass */
.homepage-featured-grid .compass-card,
.hub-listing-grid .compass-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--z-card-radius, 28px);
  border: var(--z-card-gap, 0px) solid #fff;
}

.homepage-featured-grid .compass-card-img,
.hub-listing-grid .compass-card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  border-radius: var(--z-card-photo-radius);
  isolation: isolate;
}

.homepage-featured-grid .compass-card-img img,
.homepage-featured-grid .compass-card-img picture,
.homepage-featured-grid .compass-card-img video,
.homepage-featured-grid .compass-card-img .card-carousel__slide img,
.hub-listing-grid .compass-card-img img,
.hub-listing-grid .compass-card-img picture,
.hub-listing-grid .compass-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: inherit;
}

.hub-listing-grid .compass-card {
  flex-direction: column !important;
  align-items: stretch !important;
}

.hub-listing-grid .compass-card-text {
  display: -webkit-box !important;
}

/* Places */
.hub-listing-grid.places-grid > .place-card-wrap > .place-card {
  box-sizing: border-box;
  border-radius: var(--z-card-radius, 28px);
  border: var(--z-card-gap, 0px) solid #fff;
}

.hub-listing-grid .place-card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1 !important;
  min-height: 0;
  max-height: none;
  border-radius: var(--z-card-photo-radius);
  isolation: isolate;
}

.hub-listing-grid .place-card-img img,
.hub-listing-grid .place-card-img picture,
.hub-listing-grid .place-card-img video,
.hub-listing-grid .place-card-img .card-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

.hub-listing-grid .compass-card-img .card-carousel,
.hub-listing-grid .compass-card-img .card-carousel__track,
.hub-listing-grid .compass-card-img .card-carousel__slide,
.hub-listing-grid .compass-card-img .card-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

/* Market — inset на wrap (как svc-card-wrapper), белая карточка 100% ячейки */
.hub-listing-grid.mkt-grid > .mkt-card-wrap > .mkt-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--z-card-radius, 28px);
  overflow: hidden;
}

.hub-listing-grid .mkt-card__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1 !important;
  min-height: 0;
  max-height: none;
  border-radius: var(--z-card-photo-radius);
  isolation: isolate;
}

.hub-listing-grid .mkt-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  -webkit-clip-path: inset(0 round var(--z-card-photo-radius));
  clip-path: inset(0 round var(--z-card-photo-radius));
}

/* Catalog: hub-listing поверх catalog-page-body mobile overrides */
.hub-listing-grid.services-grid .svc-card {
  min-height: 0 !important;
  height: auto !important;
}

.hub-listing-grid.services-grid .svc-card-link {
  flex: 0 0 auto;
}

.catalog-page-body .services-grid.hub-listing-grid .svc-card-img {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: var(--z-card-photo-radius) !important;
  overflow: hidden !important;
  isolation: isolate;
}

.catalog-page-body .services-grid.hub-listing-grid .svc-card-img img,
.catalog-page-body .services-grid.hub-listing-grid .card-carousel,
.catalog-page-body .services-grid.hub-listing-grid .card-carousel__track,
.catalog-page-body .services-grid.hub-listing-grid .card-carousel__slide,
.catalog-page-body .services-grid.hub-listing-grid .card-carousel__slide img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit;
}

.catalog-page-body .services-grid.hub-listing-grid .svc-card-body {
  gap: 4px !important;
  padding: 10px 12px 6px !important;
}

.catalog-page-body .services-grid.hub-listing-grid .svc-card-title {
  margin: 0 !important;
  font-size: 0.94rem !important;
  line-height: 1.18 !important;
  -webkit-line-clamp: 2 !important;
}

.catalog-page-body .services-grid.hub-listing-grid .svc-card-desc {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
  -webkit-line-clamp: 2 !important;
}

.catalog-page-body .services-grid.hub-listing-grid .svc-card-footer {
  padding: 6px 12px 10px !important;
  min-height: 0 !important;
}

@media (max-width: 1200px) {
  .homepage-featured-grid.services-grid,
  .hub-listing-grid.services-grid,
  .hub-listing-grid.compass-grid,
  .hub-listing-grid.places-grid,
  .hub-listing-grid.mkt-grid {
    gap: 28px;
  }

  .hub-listing-grid.services-grid,
  .hub-listing-grid.compass-grid,
  .hub-listing-grid.places-grid,
  .hub-listing-grid.mkt-grid {
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .homepage-featured-grid.services-grid,
  .hub-listing-grid.services-grid,
  .hub-listing-grid.compass-grid,
  .hub-listing-grid.places-grid,
  .hub-listing-grid.mkt-grid,
  .services-grid:not(.trip-detail-catalog-grid):not(.trip-hub-catalog-grid):not(.transport-stop-cards-grid),
  .cp-listings-grid.services-grid,
  .pp-company-listings-grid.services-grid {
    --z-hub-card-fill: 94%;
  }

  .homepage-featured-grid.services-grid,
  .hub-listing-grid.services-grid,
  .hub-listing-grid.compass-grid,
  .hub-listing-grid.places-grid,
  .hub-listing-grid.mkt-grid {
    gap: 20px;
  }

  .hub-listing-grid.services-grid,
  .hub-listing-grid.compass-grid,
  .hub-listing-grid.places-grid,
  .hub-listing-grid.mkt-grid {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .homepage-featured-grid .compass-card-wrap,
  .hub-listing-grid .svc-card-wrapper,
  .hub-listing-grid .compass-card-wrap,
  .hub-listing-grid.places-grid > .place-card-wrap,
  .hub-listing-grid.mkt-grid > .mkt-card-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hub-listing-grid .compass-card,
  .hub-listing-grid.places-grid > .place-card-wrap > .place-card,
  .hub-listing-grid.mkt-grid > .mkt-card-wrap > .mkt-card {
    width: 100%;
    max-width: 100%;
  }

  .catalog-page-body .services-grid.hub-listing-grid {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 576px) {
  .homepage-featured-grid.services-grid,
  .hub-listing-grid.services-grid,
  .hub-listing-grid.compass-grid,
  .hub-listing-grid.places-grid,
  .hub-listing-grid.mkt-grid,
  .services-grid:not(.trip-detail-catalog-grid):not(.trip-hub-catalog-grid):not(.transport-stop-cards-grid),
  .cp-listings-grid.services-grid,
  .pp-company-listings-grid.services-grid {
    --z-hub-card-fill: 100%;
  }

  .homepage-featured-grid.services-grid {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hub-listing-grid.services-grid,
  .hub-listing-grid.compass-grid,
  .hub-listing-grid.places-grid,
  .hub-listing-grid.mkt-grid {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .homepage-featured-grid .svc-card-wrapper,
  .homepage-featured-grid .compass-card-wrap,
  .hub-listing-grid .svc-card-wrapper,
  .hub-listing-grid .compass-card-wrap,
  .hub-listing-grid.places-grid > .place-card-wrap,
  .hub-listing-grid.mkt-grid > .mkt-card-wrap,
  .services-grid:not(.trip-detail-catalog-grid):not(.trip-hub-catalog-grid):not(.transport-stop-cards-grid) .svc-card-wrapper,
  .cp-listings-grid .svc-card-wrapper,
  .pp-company-listings-grid .svc-card-wrapper {
    --z-hub-card-inset: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .hub-listing-grid .compass-card-img,
  .hub-listing-grid .place-card-img,
  .hub-listing-grid .mkt-card__img {
    width: 100%;
    min-width: 0;
    border-radius: var(--z-card-photo-radius);
    isolation: isolate;
  }
}

/* === components/homepage/homepage-compass-grid.css === */
/* Homepage COMPASS grid — 1:1 с Featured Services (после grid-card.css). */

.homepage-compass-section .compass-grid.homepage-featured-grid {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* Ячейка сетки = как .svc-card-wrapper (padding из hub-listing-grid.css) */
.homepage-featured-grid .compass-card-wrap {
  width: 100%;
  min-width: 0;
}

.homepage-featured-grid .compass-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--z-card-radius, 28px);
  border: var(--z-card-gap, 0px) solid #fff;
  box-shadow: var(--z-card-outer-ring, 0 2px 12px rgba(0, 0, 0, 0.06));
}

.homepage-featured-grid .compass-card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  border-radius: var(--z-card-photo-radius, 20px);
  isolation: isolate;
}

.homepage-featured-grid .compass-card-img img,
.homepage-featured-grid .compass-card-img picture,
.homepage-featured-grid .compass-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: inherit;
  -webkit-clip-path: inset(0 round var(--z-card-photo-radius, 20px));
  clip-path: inset(0 round var(--z-card-photo-radius, 20px));
}

.homepage-featured-grid .compass-card-wrap:hover .compass-card-img img {
  transform: scale(1.03);
}

/* Перебить hub/mobile layout из grid-card.css на главной */
.homepage-compass-section .compass-grid.homepage-featured-grid .compass-card {
  flex-direction: column !important;
  align-items: stretch !important;
}

.homepage-compass-section .compass-grid.homepage-featured-grid .compass-card-text {
  display: -webkit-box !important;
}


@media (max-width: 768px) {
  .homepage-featured-grid .compass-card-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .homepage-featured-grid .compass-card {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .homepage-featured-grid .compass-card-img {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    align-self: stretch;
    box-sizing: border-box;
  }
}

@media (max-width: 576px) {
  .homepage-compass-section .compass-grid.homepage-featured-grid {
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .homepage-featured-grid .compass-card-wrap .compass-card {
    flex-direction: column;
    border-radius: var(--z-card-radius, 28px);
  }

  .homepage-featured-grid .compass-card-img {
    width: 100%;
    min-width: 0;
    border-radius: var(--z-card-photo-radius, 20px);
    isolation: isolate;
  }
}

/* === components/homepage/homepage-container.css === */
/* Homepage component — isolated. */

/* ── Homepage container alignment: match catalog / compass 1340px rail ── */
.hero--homepage ~ .section > .container,
.hero--homepage ~ .promo-banners-section > .container,
.hero--homepage ~ .section[style] > .container,
.promo-banners-section .container {
    max-width: 1340px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}
@media (max-width: 767px) {
    .hero--homepage ~ .section > .container,
    .hero--homepage ~ .promo-banners-section > .container,
    .hero--homepage ~ .section[style] > .container,
    .promo-banners-section .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    /* Мобайл: слот 1 — после hero; слот 2 JS переносит между Featured и Compass */
    .homepage-hero-promo-stack .promo-home-cell--1 {
        order: 3 !important;
        margin-top: clamp(1rem, 4vw, 2.25rem) !important;
        margin-bottom: 0 !important;
    }
    /* Слот 2 между Featured Services и Compass */
    .homepage-mid-ad-dock {
        margin: 0 !important;
        padding: 0.75rem 14px 1.25rem !important;
        max-width: 1340px;
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }
    .homepage-mid-ad-dock .promo-home-cell--2 {
        margin: 0 !important;
        width: 100% !important;
    }
    /* legacy dock (если остался) */
    .homepage-categories-section .container .homepage-categories-ad-dock {
        margin: 1.5rem -8px 0;
        padding-left: 14px;
        padding-right: 14px;
        width: calc(100% + 16px);
        box-sizing: border-box;
    }
    .homepage-categories-ad-dock .promo-home-cell--2 {
        margin: 0 !important;
        width: 100% !important;
    }
    /* Оба промо-слота — одинаковая высота (пропорции: site-banner-proportions.css) */
    .promo-home-cell--1 .promo-banner,
    .promo-home-cell--2 .promo-banner,
    .homepage-mid-ad-dock .promo-banner,
    .homepage-categories-ad-dock .promo-banner {
        padding: clamp(10px, 2.5vw, 14px) clamp(14px, 3vw, 18px) !important;
        box-sizing: border-box;
    }
    .homepage-categories-section .category-grid {
        grid-auto-rows: 1fr;
        align-items: stretch;
    }
    .homepage-categories-section .category-grid .category-card {
        height: 100% !important;
    }
    /* Мобайл: hero на всю высоту; контент (заголовок+поиск+статы) — чуть выше середины,
       чтобы иконки BlaBla/поездов не перекрывали поиск */
    .homepage-hero-stage > .hero.hero--homepage {
        min-height: 100dvh !important;
    }
    .homepage-hero-promo-stack > .hero.hero--homepage .hero-content--homepage {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100% !important;
        justify-content: flex-start !important;
        padding-top: clamp(30vh, 36vh, 40vh) !important;
        padding-bottom: clamp(0.75rem, 3vh, 1.5rem) !important;
        box-sizing: border-box !important;
    }
    body:not(.search-active) .homepage-hero-promo-stack > .hero.hero--homepage .hero-title--homepage {
        margin-top: 0 !important;
        margin-bottom: clamp(0.35rem, 1vh, 0.55rem) !important;
    }
    body:not(.search-active) .homepage-hero-promo-stack > .hero.hero--homepage .hero-subtitle--homepage {
        margin-top: 0 !important;
        margin-bottom: clamp(0.55rem, 1.6vh, 0.9rem) !important;
    }
    .homepage-hero-promo-stack > .hero.hero--homepage .hero-search--homepage {
        margin-top: 0 !important;
        flex: 0 0 auto !important;
    }
    .homepage-hero-promo-stack > .hero.hero--homepage .hero-stats--homepage {
        margin-top: clamp(0.5rem, 1.5vh, 0.85rem) !important;
        margin-bottom: 0 !important;
        flex: 0 0 auto !important;
    }
    /* Короткий экран — чуть меньше отступ сверху, блок всё равно компактный */
    @media (max-height: 700px) {
        .homepage-hero-promo-stack > .hero.hero--homepage .hero-content--homepage {
            padding-top: clamp(22vh, 28vh, 32vh) !important;
        }
    }
}

/* === components/homepage/homepage-seo-about.css === */
/* Homepage component — isolated. */

/* ── SEO About block — фон задаёт .homepage-main-canvas; отступ до disclaimer — legal-no-copy.css ── */
.seo-about {
    padding: 0;
    margin: 0;
}
.seo-about + .footer {
    margin-top: 0;
}

/* === components/homepage/homepage-category-transport.css === */
/* Homepage component — isolated. */

/* ── Transport category icons (SL palette — см. zookzy-vacation-ui.css) ── */
.category-card--trains,
.category-card--buses {
    position: relative;
    overflow: hidden;
}
.category-card__trains-glow,
.category-card__buses-glow {
    display: none;
}
.category-icon--trains,
.category-icon--buses {
    overflow: hidden;
    position: relative;
    filter: none;
    animation: none;
}
.category-icon--trains img,
.category-icon--buses img,
.category-icon--trains .transport-emoji-icon,
.category-icon--buses .transport-emoji-icon {
    display: block;
    width: auto;
    height: auto;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    animation: none;
    transform: none;
}

/* === components/homepage/homepage-categories-grid.css === */
/* Homepage «Popular Categories» — карты по размеру фото, отступы как в Компасе */

.homepage-categories-section .category-grid {
  gap: 32px;
  margin-top: var(--spacing-2xl, 2rem);
}

.homepage-categories-section .category-grid .category-card {
  max-width: 90%;
  justify-self: center;
  width: 100%;
  min-height: clamp(252px, 16.2vw, 306px);
  --cat-inner-x: 0.9rem;
  --cat-footer-h: 6.2rem;
  padding: 1.04rem 0 0 !important;
  padding-bottom: var(--cat-footer-h) !important;
  /* Desktop / tablet / mobile order from admin matrix */
  order: var(--hpc-order-d, 999);
}

/* Photo cards: квадратные, на всю ширину ячейки как в Компасе */
.homepage-categories-section .category-grid .category-card.category-card--photo {
  max-width: 100%;
  padding: var(--cat-glass-inset, 0.85rem) !important;
}

.homepage-categories-section .category-grid .category-icon {
  width: clamp(58px, 4.5vw, 79px);
  height: clamp(58px, 4.5vw, 79px);
  margin: 0 auto clamp(0.9rem, 1.35vw, 1.35rem);
}

.homepage-categories-section .category-grid .category-icon .transport-emoji-icon {
  font-size: clamp(2.25rem, 4.5vw, 2.93rem);
}

.homepage-categories-section .category-grid .category-title {
  font-size: calc(var(--font-size-xl, 1.25rem) * 0.9);
  margin-bottom: calc(var(--spacing-sm, 0.75rem) * 0.9);
}

.homepage-categories-section .category-grid .category-description {
  font-size: clamp(0.79rem, 0.81vw, 0.9rem);
  margin-bottom: 0.68rem;
}

.homepage-categories-section .category-grid .category-count {
  min-height: var(--cat-footer-h) !important;
  height: var(--cat-footer-h) !important;
  padding: 0.5rem 0.45rem 0.95rem !important;
}

.homepage-categories-section .category-grid .category-count span:first-child {
  font-size: 1.31rem !important;
  color: #046868 !important;
}

.homepage-categories-section .category-grid .category-count span:last-child {
  font-size: 0.74rem !important;
}

@media (max-width: 992px) {
  .homepage-categories-section .category-grid .category-card {
    max-width: 94%;
    order: var(--hpc-order-t, var(--hpc-order-d, 999));
  }

  .homepage-categories-section .category-grid .category-card.category-card--photo {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .homepage-categories-section .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .homepage-categories-section .category-grid .category-card {
    max-width: 100%;
    min-height: clamp(153px, 38vw, 180px) !important;
    --cat-inner-x: 0.59rem;
    --cat-footer-h: 4.5rem;
    padding: 0.59rem 0 0 !important;
    padding-bottom: var(--cat-footer-h) !important;
    order: var(--hpc-order-m, var(--hpc-order-t, var(--hpc-order-d, 999)));
  }

  .homepage-categories-section .category-grid .category-card.category-card--photo {
    max-width: 100%;
    padding: var(--cat-glass-inset, 0.55rem) !important;
  }

  .homepage-categories-section .category-grid .category-icon {
    width: clamp(36px, 10vw, 43px) !important;
    height: clamp(36px, 10vw, 43px) !important;
    margin: 0 auto 0.25rem !important;
  }

  .homepage-categories-section .category-grid .category-title {
    font-size: 0.68rem !important;
  }

  .homepage-categories-section .category-grid .category-count span:first-child {
    font-size: 0.99rem !important;
  }

  .homepage-categories-section .category-grid .category-count span:last-child {
    font-size: 0.61rem !important;
  }
}

@media (max-width: 576px) {
  .homepage-categories-section .category-grid .category-card {
    max-width: 100%;
  }

  .homepage-categories-section .category-grid .category-card.category-card--photo {
    max-width: 100%;
  }
}

/* === components/homepage/homepage-section-headers.css === */
/* Homepage section headers — premium readability on light canvas.
   Title + description always one line (no wrap). */

.homepage-main-canvas .section-header {
  max-width: min(64rem, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.35rem, 2.8vw, 2.1rem);
  padding: 0 0.5rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.homepage-main-canvas .section-header .section-title {
  display: block;
  width: max-content;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: clamp(0.95rem, 2.1vw, 1.7rem) !important;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
  white-space: nowrap !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.07);
}

/* Short brand accent */
.homepage-main-canvas .section-header .section-title::after {
  display: block !important;
  content: "" !important;
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.6rem;
  height: 2.5px;
  background: var(--z-brand-ocean, #0a7575);
  border-radius: 999px;
  opacity: 0.9;
}

.homepage-main-canvas .section-header .section-description {
  display: block;
  width: max-content;
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
  color: #3c4043 !important;
  font-weight: 600 !important;
  font-size: clamp(0.8rem, 1.35vw, 1.08rem) !important;
  line-height: 1.45;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* === components/homepage/homepage-ai-promo.css === */
/* Homepage component — isolated. */

.home-ai-promo-actions {
    display: flex;
    gap: var(--spacing-md, 1rem);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

