.lp-interactive-showcase {
  padding: 120px 32px;
  background: #f8f6f0;
}

.lp-interactive-showcase__header {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.lp-interactive-showcase__section-eyebrow {
  margin: 0 0 12px;
  color: #606951;
  font: 600 clamp(14px, 1.25vw, 18px) / 1.3 "Montserrat", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: none;
}

.lp-interactive-showcase__section-title {
  margin: 0;
  color: #2f3921;
  font: 600 clamp(38px, 4vw, 62px) / 1.02 "Montserrat", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lp-interactive-showcase__section-lead {
  margin: 16px 0 0;
  color: #606951;
  font: 400 18px/1.6 "Roboto", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
}

.lp-interactive-showcase__frame {
  position: relative;
  max-width: 1440px;
  min-height: 620px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(16, 13, 8, 0.3);
  background: #211f17;
  isolation: isolate;
}

.lp-interactive-showcase__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lp-interactive-showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 21, 13, 0.56);
  z-index: 2;
  pointer-events: none;
  transition: background 0.18s ease;
}

.lp-interactive-showcase__frame:has(.lp-interactive-showcase__item:hover) .lp-interactive-showcase__media::after {
  background: rgba(26, 21, 13, 0.38);
}

.lp-interactive-showcase__image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 120ms ease;
}

.lp-interactive-showcase__image.is-active {
  opacity: 1;
}

.lp-interactive-showcase__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  transform-origin: center center;
}

.lp-interactive-showcase__image:not(.is-active) img {
  animation: none !important;
  transform: scale(1);
}

/* Панорама: linear — сразу видимое движение; крупнее сдвиг/scale */
@keyframes lp-interactive-showcase-pan-focal {
  0% {
    transform: scale(1.14) translate3d(5%, 0, 0);
  }
  100% {
    transform: scale(1.14) translate3d(-5%, 0, 0);
  }
}

@keyframes lp-interactive-showcase-pan-focal-rev {
  0% {
    transform: scale(1.14) translate3d(-5%, 0, 0);
  }
  100% {
    transform: scale(1.14) translate3d(5%, 0, 0);
  }
}

.lp-interactive-showcase__image.is-active img {
  animation: lp-interactive-showcase-pan-focal 22s linear infinite alternate;
}

.lp-interactive-showcase__image.is-active:nth-child(even) img {
  animation-name: lp-interactive-showcase-pan-focal-rev;
}

.lp-interactive-showcase__grid {
  position: relative;
  z-index: 3;
  min-height: 620px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.lp-interactive-showcase__item,
.lp-interactive-showcase__item:where(button) {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  width: 100%;
  min-height: 310px;
  padding: clamp(24px, 2.6vw, 46px);
  border: 0;
  background: transparent !important;
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 0.52;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.lp-interactive-showcase__item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.lp-interactive-showcase__item:nth-child(3n)::after {
  display: none;
}

.lp-interactive-showcase__item:nth-child(-n + 3)::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.lp-interactive-showcase__item.is-active,
.lp-interactive-showcase__item:hover,
.lp-interactive-showcase__item:focus-visible {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04)) !important;
  outline: none;
}

.lp-interactive-showcase__content {
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-interactive-showcase__eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 13px/1.4 "Roboto", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: none;
}

.lp-interactive-showcase__eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.55em;
  vertical-align: -0.2em;
  background-color: currentColor;
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 100 100"><path d="M42.4,5c0,0-22.8,14-11.3,37.9C31.1,42.9,55.1,36.9,42.4,5z M10.4,28.2c0,0-17.3,23.1,3.7,42.4C14.1,70.6,35.8,55.1,10.4,28.2z M79.4,53.7c0,0-16.7-17.7-36.9-7.2c4.4-4.8,9.5-9.3,15.1-13.1c4,4.3,17.4,15.1,38.7-4.3c0,0-18.6-9.7-39.9,0.3C42.5,36.5,22.8,55,10.6,93.9c0,0,1.2,2.4,4.8,0c0,0,2-6.6,6.3-15.7c4,5.6,16.3,17.4,40.9,1.2c0,0-17.4-18.5-38.2-6.5c3.5-6.7,8-14.1,13.7-21.2C41.5,56.8,53.8,70.6,79.4,53.7z"/></svg>');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.lp-interactive-showcase__title {
  margin: 0;
  color: #fff;
  font: 600 clamp(28px, 2.4vw, 46px) / 1.04 "Montserrat", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lp-interactive-showcase__description {
  max-width: 28ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font: 400 16px/1.55 "Roboto", "Segoe UI", Arial, sans-serif;
  text-wrap: pretty;
}

/* Как ссылки в навигации: в покое подчёркнуто, при наведении на ячейку — плавно убираем */
.lp-interactive-showcase__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 18px;
  color: #fff;
  font: 600 15px/1.2 "Roboto", "Segoe UI", Arial, sans-serif;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.92);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.25s ease, color 0.2s ease;
}

.lp-interactive-showcase__cta-icon {
  flex: 0 0 auto;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.02em;
  vertical-align: middle;
  opacity: 0.92;
  stroke: currentColor;
}

.lp-interactive-showcase__item:hover .lp-interactive-showcase__cta,
.lp-interactive-showcase__item:focus-visible .lp-interactive-showcase__cta,
.lp-interactive-showcase__item.is-active:hover .lp-interactive-showcase__cta {
  text-decoration-color: transparent;
}

@media (max-width: 1180px) {
  .lp-interactive-showcase {
    padding: 90px 24px;
  }

  .lp-interactive-showcase__header {
    margin-bottom: 34px;
  }

  .lp-interactive-showcase__frame,
  .lp-interactive-showcase__grid {
    min-height: 760px;
  }

  .lp-interactive-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .lp-interactive-showcase__item {
    min-height: 250px;
  }

  .lp-interactive-showcase__description {
    font-size: 15px;
  }

  .lp-interactive-showcase__item::after,
  .lp-interactive-showcase__item::before {
    display: none;
  }

  .lp-interactive-showcase__item:nth-child(odd)::after {
    display: block;
  }

  .lp-interactive-showcase__item:nth-child(-n + 4)::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 767px) {
  .lp-interactive-showcase {
    padding: 64px 18px;
  }

  .lp-interactive-showcase__header {
    margin-bottom: 24px;
  }

  .lp-interactive-showcase__section-title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .lp-interactive-showcase__section-lead {
    font-size: 16px;
  }

  .lp-interactive-showcase__frame,
  .lp-interactive-showcase__grid {
    min-height: auto;
  }

  .lp-interactive-showcase__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .lp-interactive-showcase__item {
    min-height: 180px;
  }

  .lp-interactive-showcase__item::after,
  .lp-interactive-showcase__item::before,
  .lp-interactive-showcase__item:nth-child(odd)::after,
  .lp-interactive-showcase__item:nth-child(-n + 4)::before {
    display: none;
  }

  .lp-interactive-showcase__item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .lp-interactive-showcase__title {
    font-size: clamp(26px, 8vw, 38px);
  }

  .lp-interactive-showcase__description {
    font-size: 14px;
  }
}

/* index-showcase: 3-й экран — почти на всю высоту окна + полная ширина каркаса */
.lp-interactive-showcase.lp-interactive-showcase--timeline-tall {
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: clamp(20px, 3.5vh, 48px);
  padding-bottom: clamp(16px, 2.5vh, 32px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.lp-interactive-showcase.lp-interactive-showcase--timeline-tall .lp-interactive-showcase__header {
  flex-shrink: 0;
  margin-bottom: clamp(12px, 2vh, 28px) !important;
}

.lp-interactive-showcase.lp-interactive-showcase--timeline-tall .lp-interactive-showcase__frame {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
}

.lp-interactive-showcase.lp-interactive-showcase--timeline-tall .lp-interactive-showcase__grid {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100%;
}

.lp-interactive-showcase.lp-interactive-showcase--timeline-tall .lp-interactive-showcase__item {
  min-height: 0;
}

@media (max-width: 767px) {
  .lp-interactive-showcase.lp-interactive-showcase--timeline-tall .lp-interactive-showcase__frame,
  .lp-interactive-showcase.lp-interactive-showcase--timeline-tall .lp-interactive-showcase__grid {
    min-height: min(78vh, calc(100vh - 180px)) !important;
    min-height: min(78vh, calc(100dvh - 180px)) !important;
  }

  .lp-interactive-showcase.lp-interactive-showcase--timeline-tall .lp-interactive-showcase__item {
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-interactive-showcase__image.is-active img {
    animation: none !important;
  }
}
