/* ==========================================================================
   Панорамный hero-слайдер главной (full-bleed ~2.75:1, живая типографика)
   ========================================================================== */

.home-hero--panorama.home-hero--slider {
  isolation: isolate;
  position: relative;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #dfece4;
  overflow: hidden;
  aspect-ratio: 2.75 / 1;
  min-height: 320px;
  max-height: min(62vh, 720px);
}

.home-hero--panorama .home-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.home-hero--panorama .home-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 110px) clamp(52px, 5.5vw, 76px);
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.home-hero--panorama .home-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.home-hero--panorama .home-hero__bg {
  position: absolute;
  inset: 0;
}

.home-hero--panorama .home-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
  transform: none;
}

.home-hero--panorama .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 250, 247, 0.74) 0%, rgba(246, 250, 247, 0.44) 26%, rgba(246, 250, 247, 0.1) 46%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 30%, transparent 70%, rgba(7, 43, 32, 0.1) 100%);
  pointer-events: none;
}

.home-hero--panorama .home-hero__copy {
  position: relative;
  z-index: 3;
  isolation: isolate;
  width: fit-content;
  max-width: min(36rem, 52%);
  padding: clamp(6px, 0.8vw, 10px) 0;
  opacity: 0;
  transform: translate3d(-16px, 8px, 0);
  border: 0;
  border-radius: 0;
  background: none;
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Мягкое полупрозрачное пятно на всю ширину заголовка — растворяется в фото через blur */
.home-hero--panorama .home-hero__copy::before {
  content: "";
  position: absolute;
  left: -22%;
  right: -22%;
  top: -40%;
  bottom: -44%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    135% 78% at 50% 50%,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.56) 24%,
    rgba(255, 255, 255, 0.34) 42%,
    rgba(255, 255, 255, 0.16) 58%,
    rgba(255, 255, 255, 0.05) 74%,
    transparent 100%
  );
  filter: blur(36px);
  opacity: 1;
  transform: translateZ(0);
}

.home-hero--panorama .home-hero__copy::after {
  content: "";
  position: absolute;
  left: -16%;
  right: -16%;
  top: -26%;
  bottom: -30%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    130% 72% at 50% 50%,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.18) 38%,
    rgba(255, 255, 255, 0.06) 62%,
    transparent 100%
  );
  filter: blur(48px);
  opacity: 0.92;
}

.home-hero--panorama .home-hero__slide.is-active .home-hero__copy {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease 0.12s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.home-hero--panorama .home-hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7a72;
}

.home-hero--panorama .home-hero__title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #1f2a24;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.5),
    0 1px 10px rgba(255, 255, 255, 0.32);
}

.home-hero--panorama .home-hero__title-accent {
  display: block;
  color: #2f7f35;
}

.home-hero--panorama .home-hero__lead {
  margin: 0 0 22px;
  max-width: 28rem;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
  color: #4a5850;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.home-hero--panorama .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.home-hero--panorama .home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #2f7f35;
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(47, 127, 53, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-hero--panorama .home-hero__cta i {
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.home-hero--panorama .home-hero__cta:hover {
  background: #256b2b;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(47, 127, 53, 0.34);
}

.home-hero--panorama .home-hero__cta:hover i {
  transform: translateX(3px);
}

/* Старые inline-benefits внутри слайда больше не используем */
.home-hero--panorama .home-hero__benefits {
  display: none !important;
}

/* --- Зелёное матовое стекло с шагренью (преимущества, заголовок каталога) --- */
.home-green-glass-panel {
  --benefits-shagreen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.55' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.42 0 0 0 0 0.18 0 0 0 2.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  position: relative;
  z-index: 4;
  width: calc(100% - clamp(24px, 3vw, 40px) * 2);
  max-width: 100%;
  margin-left: clamp(24px, 3vw, 40px);
  margin-right: clamp(24px, 3vw, 40px);
  border-radius: 22px;
  overflow: hidden;
  background-color: rgba(28, 110, 48, 0.52);
  background-image:
    var(--benefits-shagreen),
    var(--benefits-shagreen),
    var(--frost-glass-grain),
    linear-gradient(155deg,
      rgba(120, 200, 140, 0.72) 0%,
      rgba(58, 150, 82, 0.68) 36%,
      rgba(34, 118, 54, 0.78) 70%,
      rgba(22, 92, 42, 0.82) 100%);
  background-size: 36px 36px, 58px 58px, 44px 44px, 100% 100%;
  background-position: 4px 2px, 18px 14px, 10px 8px, 0 0;
  background-blend-mode: multiply, soft-light, overlay, normal;
  backdrop-filter: blur(36px) saturate(180%) brightness(0.98);
  -webkit-backdrop-filter: blur(36px) saturate(180%) brightness(0.98);
  border: 1px solid rgba(170, 230, 185, 0.55);
  border-top-color: rgba(220, 255, 230, 0.78);
  border-bottom-color: rgba(20, 80, 36, 0.4);
  box-shadow:
    0 26px 52px rgba(18, 55, 28, 0.22),
    0 10px 24px rgba(36, 110, 58, 0.28),
    inset 0 1px 0 rgba(230, 255, 235, 0.55),
    inset 0 -1px 0 rgba(16, 70, 30, 0.28),
    inset 0 0 0 1px rgba(80, 170, 100, 0.28);
}

.home-green-glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-image: var(--benefits-shagreen), var(--benefits-shagreen);
  background-size: 28px 28px, 48px 48px;
  background-position: 0 0, 12px 10px;
  background-blend-mode: multiply, soft-light;
  mix-blend-mode: multiply;
}

.home-green-glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(200, 255, 210, 0.45), transparent 55%),
    radial-gradient(90% 70% at 88% 100%, rgba(18, 80, 36, 0.45), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 38%, rgba(16, 70, 30, 0.2));
}

.home-hero-benefits {
  margin-top: -28px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  padding: clamp(14px, 1.6vw, 20px) clamp(12px, 1.4vw, 18px);
}

.home-catalog-head.home-green-glass-panel {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  background-color: rgba(18, 92, 40, 0.96);
  background-image:
    var(--benefits-shagreen),
    var(--benefits-shagreen),
    var(--frost-glass-grain),
    linear-gradient(155deg,
      rgba(92, 192, 112, 0.98) 0%,
      rgba(46, 142, 68, 0.96) 36%,
      rgba(26, 108, 46, 0.98) 70%,
      rgba(16, 82, 36, 1) 100%);
  backdrop-filter: blur(16px) saturate(220%) brightness(0.94);
  -webkit-backdrop-filter: blur(16px) saturate(220%) brightness(0.94);
  box-shadow:
    0 26px 52px rgba(18, 55, 28, 0.26),
    0 10px 24px rgba(36, 110, 58, 0.34),
    inset 0 1px 0 rgba(230, 255, 235, 0.58),
    inset 0 -1px 0 rgba(16, 70, 30, 0.34),
    inset 0 0 0 1px rgba(72, 165, 92, 0.38);
}

.home-catalog-head.home-green-glass-panel::after {
  opacity: 0.38;
}

.home-catalog-head {
  margin-bottom: clamp(22px, 2.6vw, 32px);
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.2vw, 28px);
}

.home-catalog-head__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
}

.home-catalog-head .page-kicker {
  margin-bottom: 10px;
  color: rgba(210, 255, 220, 0.92);
}

.home-catalog-head .page-kicker i {
  color: rgba(230, 255, 235, 0.95);
}

.home-catalog-head h2,
.home-catalog-head .page-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  color: #f4faf5;
  text-shadow: 0 2px 14px rgba(12, 50, 24, 0.24);
}

.home-catalog-head p,
.home-catalog-head .page-lead {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  font-weight: 700;
  line-height: 1.5;
  color: rgba(244, 250, 245, 0.96);
}

.home-hero-benefits__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.home-hero-benefits__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(8px, 1vw, 12px) clamp(12px, 1.4vw, 18px);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.home-hero-benefits__item:last-child {
  border-right: 0;
}

.home-hero-benefits .home-hero__trust-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #2f7f35;
  font-size: 1.1rem;
}

.home-hero-benefits__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.home-hero-benefits__text strong {
  font-family: var(--font-sans);
  font-size: clamp(0.84rem, 1vw, 0.95rem);
  font-weight: 800;
  line-height: 1.25;
  color: #f4faf5;
}

.home-hero-benefits__text span {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(236, 248, 239, 0.86);
}

@media (max-width: 1100px) {
  .home-hero-benefits {
    margin-top: -20px;
  }

  .home-hero-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-benefits__item:nth-child(2) {
    border-right: 0;
  }

  .home-hero-benefits__item:nth-child(1),
  .home-hero-benefits__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 14px;
    margin-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .home-green-glass-panel {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

  .home-hero-benefits {
    margin-top: -16px;
    margin-bottom: 24px;
    padding: 10px 8px;
  }

  .home-catalog-head {
    margin-bottom: 24px;
    padding: 18px 16px;
  }

  .home-hero-benefits__grid {
    grid-template-columns: 1fr;
  }

  .home-hero-benefits__item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 10px;
  }

  .home-hero-benefits__item:last-child {
    border-bottom: 0;
  }

  .home-hero-benefits__item:nth-child(1),
  .home-hero-benefits__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
  }
}

.home-hero--panorama .home-hero__tagline {
  position: absolute;
  right: clamp(56px, 7vw, 110px);
  bottom: clamp(28px, 3.5vw, 42px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 42, 36, 0.72);
}

.home-hero--panorama .home-hero__tagline-line {
  display: inline-block;
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f7f35, rgba(47, 127, 53, 0.15));
}

.home-hero--panorama .home-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #1f2a24;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 22px rgba(28, 45, 37, 0.1);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero--panorama .home-hero__nav:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-50%) scale(1.04);
}

.home-hero--panorama .home-hero__nav--prev {
  left: clamp(12px, 1.5vw, 24px);
}

.home-hero--panorama.is-single .home-hero__nav {
  display: none !important;
}

.home-hero--panorama.is-single .home-hero__progress {
  display: none !important;
}

.home-hero--panorama .home-hero__pager {
  position: absolute;
  left: clamp(56px, 7vw, 110px);
  bottom: clamp(22px, 3vw, 34px);
  z-index: 6;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: calc(100% - clamp(56px, 7vw, 110px) - 80px);
}

.home-hero--panorama .home-hero__pager-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(31, 42, 36, 0.42);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.home-hero--panorama .home-hero__pager-item.is-active {
  color: #1f2a24;
}

.home-hero--panorama .home-hero__pager-sep {
  display: inline-block;
  width: 14px;
  height: 1px;
  margin: 0 6px;
  background: rgba(31, 42, 36, 0.22);
}

.home-hero--panorama .home-hero__progress {
  display: inline-block !important;
  width: 52px;
  height: 2px;
  margin-left: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 42, 36, 0.14);
}

.home-hero--panorama .home-hero__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #2f7f35;
}

.home-hero--panorama .home-hero__progress-bar.is-running {
  animation: homeHeroPanoramaProgress linear forwards;
}

@keyframes homeHeroPanoramaProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Скрываем старые элементы предыдущего hero */
.home-hero--panorama .home-hero__dots,
.home-hero--panorama .home-hero__index,
.home-hero--panorama .home-hero__trustbar,
.home-hero--panorama .home-hero__kicker,
.home-hero--panorama .home-hero__inner {
  display: none !important;
}

.home-hero--panorama ~ .content-container.home-page,
.home-hero-benefits + .content-container.home-page,
.content-container > .home-catalog-head:first-child {
  margin-top: 0;
}

.content-container:has(> .home-catalog-head:first-child) {
  padding-top: clamp(20px, 2.4vw, 28px);
}

.home-section--catalog {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .home-hero--panorama.home-hero--slider {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .home-hero--panorama .home-hero__copy {
    max-width: min(32rem, 58%);
  }

  .home-hero--panorama .home-hero__tagline {
    display: none;
  }
}

@media (max-width: 768px) {
  .home-hero--panorama.home-hero--slider {
    aspect-ratio: auto;
    min-height: clamp(360px, 72vw, 520px);
    max-height: none;
  }

  .home-hero--panorama .home-hero__slide {
    align-items: flex-end;
    padding: 24px 20px 72px;
  }

  .home-hero--panorama .home-hero__bg img {
    object-position: 70% center;
  }

  .home-hero--panorama .home-hero__bg::after {
    background:
      linear-gradient(180deg, transparent 18%, rgba(246, 250, 247, 0.55) 48%, rgba(246, 250, 247, 0.92) 100%);
  }

  .home-hero--panorama .home-hero__copy {
    max-width: 100%;
    padding: 4px 0 8px;
  }

  .home-hero--panorama .home-hero__copy::before {
    left: -14%;
    right: -14%;
    top: -30%;
    bottom: -34%;
    filter: blur(32px);
  }

  .home-hero--panorama .home-hero__copy::after {
    left: -10%;
    right: -10%;
    filter: blur(40px);
  }

  .home-hero--panorama .home-hero__title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .home-hero--panorama .home-hero__slide--long .home-hero__copy {
    width: 100%;
    max-width: 100%;
  }

  .home-hero--panorama .home-hero__slide--long .home-hero__title {
    font-size: clamp(1.2rem, 5.8vw, 1.45rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
  }

  .home-hero--panorama .home-hero__benefits {
    flex-direction: column;
    gap: 10px;
  }

  .home-hero--panorama .home-hero__benefits li {
    border-right: 0;
    padding: 0;
  }

  .home-hero--panorama .home-hero__nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .home-hero--panorama .home-hero__nav:hover {
    transform: scale(1.04);
  }

  .home-hero--panorama .home-hero__nav--prev {
    left: 16px;
  }

  .home-hero--panorama .home-hero__nav--next {
    right: 16px;
  }

  .home-hero--panorama .home-hero__pager {
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
  }
}
