/* svaivintovie.ru — дополнения к Tailwind CDN */
html {
  scroll-behavior: smooth;
}

.prose.prose-slate {
  --tw-prose-body: #475569;
  --tw-prose-headings: #0f172a;
  --tw-prose-links: #2563eb;
}

.prose.prose-slate a:hover {
  color: #1d4ed8;
}

/* Commodity specs accordion (Yandex-market-like) */
.commodity-spec-accordion[open] .commodity-spec-chevron {
  transform: rotate(180deg);
}
.commodity-spec-chevron {
  transition: transform 0.2s ease;
}

.commodity-image-placeholder {
  aspect-ratio: 4 / 3;
}

.aspect-video {
  aspect-ratio: 16 / 12 !important;
}

/* Home hero banner (mosnavesi-like, adapted to svaivintovie) */
.site-hero-grid {
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(226, 232, 240, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
  mask-image: radial-gradient(circle at 30% 40%, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}

.site-hero-carousel {
  position: relative;
}

@media (max-width: 767px) {
  .site-hero-carousel {
    touch-action: pan-y pinch-zoom;
    padding-bottom: 22px;
  }
}

/* Десктоп: стрелки как изначально; на мобильных скрыты */
.site-hero-nav {
  position: absolute;
  top: auto;
  bottom: 64px;
  transform: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  z-index: 3;
}
.site-hero-nav span {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}
.site-hero-nav--prev {
  right: 72px;
  left: auto;
}
.site-hero-nav--next {
  right: 16px;
  left: auto;
}
.site-hero-nav:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (min-width: 768px) {
  .site-hero-nav {
    display: inline-flex;
  }
}
@media (max-width: 767px) {
  .site-hero-nav {
    display: none !important;
  }
}

.site-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.9);
  pointer-events: none;
  user-select: none;
}

@media (min-width: 768px) {
  .site-hero-caption {
    bottom: 36px;
  }
}

@media (max-width: 767px) {
  .site-hero-caption {
    display: none;
  }
}

.site-hero-slides {
  position: relative;
  min-height: 340px;
}

@media (max-width: 767px) {
  .site-hero-slides {
    min-height: 400px;
  }
}

.site-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

.site-hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.site-hero-dots {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

@media (max-width: 767px) {
  .site-hero-dots {
    bottom: 0;
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .site-hero-dots {
    bottom: 8px;
  }
}

.site-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
  padding: 0;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .site-hero-dot {
    width: 9px;
    height: 9px;
  }
}

.site-hero-dot:hover {
  border-color: rgba(37, 99, 235, 0.35);
}
.site-hero-dot.is-active {
  background: rgba(37, 99, 235, 0.9);
  border-color: rgba(37, 99, 235, 0.9);
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .site-hero-dot.is-active {
    transform: none;
  }
}

@media (min-width: 1024px) {
  .site-hero-slides { min-height: 380px; }
}
