/* ────────────────────────────────────────────────
 * Hero section (non-showcase)
 * Source: extracted from index.css lines 1390–1608
 * ──────────────────────────────────────────────── */

.hero {
  width: calc(100vw - var(--scrollbar-width, 0px));
  margin-left: calc(-50vw + 50% + var(--scrollbar-width, 0px) / 2);
  padding: 0;
  position: relative;
  z-index: 10; /* Below header so search dropdown renders on top */
}

.hero > .wrapper {
  max-width: none;
  padding: 0;
  width: 100%;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1fr var(--hero-ads-width, 30%);
  overflow: visible;
  /* clip-path removed — shadow and 3D breakout handled by z-index and visible overflow */
  gap: 0;
}

.heroSlider {
  position: relative;
  min-width: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.heroAds {
  min-width: 0;
  overflow: hidden;
  height: var(--hero-max-height, 700px);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Rubber snap-back: sidebar slides in from right with elastic overshoot (GPU-only, no reflow) */
@keyframes adsSnapBack {
  0%   { transform: translateX(100%); opacity: 0; }
  60%  { transform: translateX(-4%); opacity: 1; }
  80%  { transform: translateX(2%); }
  100% { transform: translateX(0); opacity: 1; }
}
.heroAds.snap-back {
  animation: adsSnapBack 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.heroAds.adsSlider {
  height: 100%;
}

.heroAds.adsSlider .swiper-wrapper {
  height: 100%;
}

.heroAds.adsSlider .swiper-slide {
  height: 100% !important;
}

/* Анимация текста при смене слайда: fade-in + slide-up */

.heroSlider .swiper-button-prev {
  position: absolute !important;
  left: 0;
  top: 50% !important;
  border-radius: 0;
}

.heroSlider .swiper-button-next {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  border-radius: 0;
}

/* .swiper-slide:nth-child(2) .heroSliderImage img {
  object-position: 100px center;
} */

.heroAdsTop {
  position: relative;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  padding: var(--spacing-2xl);
  padding-bottom: calc(var(--hero-pagination-bottom) + var(--hero-pagination-height) + var(--hero-text-gap));
  border-radius: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  perspective: 800px;
}

.heroAdsTop h3 {
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.heroAdsTop p {
  max-width: 319px;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

.heroAdsTop a {
  z-index: 1;
}

.heroAdsTop button {
  border: 2px solid var(--color-text-on-accent);
  color: var(--color-text-on-accent);
  background: transparent;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.heroAdsTop button:hover {
  background: var(--color-text-on-accent);
  color: var(--color-accent-text);
}

.heroAdsDecor {
  position: absolute;
  top: 250px;
  right: 0;
  width: 515px;
  height: 515px;
  background: url("../img/Group22.webp") no-repeat;
  background-size: contain;
  pointer-events: none;
  /* чтобы не мешал кликам */
  transform-origin: bottom right;
  /* transition: transform 0.4s; */
  transform-style: preserve-3d;
  will-change: transform;
}

/* .heroAdsTop::after {
  content: "";
  position: absolute;
  bottom: -54px;
  right: -64px;
  width: 100%;
  height: 100%;
  background: url("../img/90d45dd16b5dc78c00e45c70c1f59199.png");
  background-size: contain;
  background-repeat: no-repeat;
} */

.heroAdsBot {
  position: relative;
  background: url("../img/e959b959b404091d90624fa9db16f897.jpeg");
  padding: var(--spacing-2xl) var(--spacing-2xl) var(--spacing-5xl) var(--spacing-2xl); /* 1:2 Ratio (48px top, 96px bottom) */
  border-radius: 0;
  overflow: hidden;
}

.heroAdsBot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--field-pattern-strong);
  background-size: var(--field-pattern-size);
  opacity: 0.5;
  pointer-events: none;
}

.heroAdsBot h3 {
  font-weight: 800;
  font-size: var(--spacing-2xl); /* Increased for hierarchy (48px) */
  line-height: 100%;
  z-index: 1;
  position: relative;
  letter-spacing: -0.02em;
}

.heroAdsBot p {
  font-weight: 500;
  font-size: 1rem;
  line-height: 150%;
  margin-bottom: 8px;
  z-index: 1;
  position: relative;
}

.heroAdsBot button {
  background: transparent;
  border: 1px solid var(--color-text-white);
  z-index: 1;
  position: relative;
}

.heroAdsBot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 17, 30, 0.5803921569);
  border-radius: 0;
}

