/* Главная: крупный логотип + клик по превью плагина */

.body--home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem) 1.25rem 2rem;
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
}

.home__logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
}

.home__logo {
  width: min(92vw, 36rem);
  height: auto;
  display: block;
}

.home__link {
  position: relative;
  display: block;
  width: 100%;
  max-width: 40rem;
  line-height: 0;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s ease;
  padding: 0 0.2rem 0.35rem;
}

.home__link-frame {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.4);
  overflow: visible;
  transition: box-shadow 0.2s ease, border-color 0.2s, transform 0.15s ease;
}

.home__link-crop {
  border-radius: inherit;
  overflow: hidden;
  line-height: 0;
  background: #0c0c0d;
}

.home__link:hover .home__link-frame {
  border-color: rgba(52, 77, 198, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(52, 77, 198, 0.2), 0 16px 48px rgba(0, 0, 0, 0.5);
}

.home__link:hover {
  transform: translateY(-2px);
}

.home__link:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

.home__link:active {
  transform: translateY(0);
}

.home__shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: bottom;
}

/* Графический ценник: центр наки — на углу превью, чуть вправо-вниз (визуальный «угол» UI) */
.home__price {
  --tag-lean: -12deg;
  --tag-nudge-x: 0.35rem;
  --tag-nudge-y: 0.3rem;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(50vw, 15rem);
  max-width: 280px;
  pointer-events: none;
  /* центр бейджа = нижний правый угол + nudge; −10pt влево, −20pt вверх */
  transform: translate(
      calc(50% + var(--tag-nudge-x) - 10pt),
      calc(50% + var(--tag-nudge-y) - 20pt)
    )
    rotate(var(--tag-lean));
  transform-origin: center center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.25s ease;
}

@media (min-width: 480px) {
  .home__price {
    --tag-lean: -13deg;
    --tag-nudge-x: 0.45rem;
    --tag-nudge-y: 0.4rem;
    width: min(48vw, 16rem);
    max-width: 300px;
  }
}

.home__price-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.home__link:hover .home__price {
  --tag-lean: -15deg;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.58));
}

.footer--home {
  margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
  .home__link,
  .home__link-frame,
  .home__price {
    transition: none;
  }
  .home__price {
    --tag-lean: -12deg;
    transform: translate(
        calc(50% + var(--tag-nudge-x) - 10pt),
        calc(50% + var(--tag-nudge-y) - 20pt)
      )
      rotate(var(--tag-lean));
  }
  .home__link:hover .home__price {
    --tag-lean: -12deg;
  }
  .home__link:hover {
    transform: none;
  }
}
