/* 01 — spotlight-слайдер: напрямки спорядження (зображення зліва, текст справа) */

.home-section--spotlight {
  background-color: var(--color-bg-primary);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23323A2E' stroke-width='0.35' fill='none' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.spotlight-slider {
  position: relative;
}

.spotlight-slider__viewport {
  overflow: hidden;
}

.spotlight-slider__track {
  display: flex;
  transition: transform var(--transition-base) var(--ease-out);
  will-change: transform;
}

.spotlight-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.spotlight-slide__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 75% at 50% 25%, rgba(205, 176, 106, 0.14) 0%, transparent 65%),
    var(--color-bg-elevated);
}

.spotlight-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-slide__glyph {
  display: flex;
  width: 64px;
  height: 64px;
  color: var(--color-accent);
  opacity: 0.6;
}

.spotlight-slide__glyph svg {
  width: 100%;
  height: 100%;
}

.spotlight-slide__media .tactical-coords {
  padding: 2px 6px;
  background-color: rgba(27, 32, 22, 0.55);
}

.spotlight-slide__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  min-width: 0;
  padding-inline: var(--space-xs);
}

.spotlight-slide__eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.spotlight-slide__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0;
}

.spotlight-slide__text {
  color: var(--color-text-muted);
  max-width: 42ch;
  margin: 0;
}

.spotlight-slide__cta {
  margin-top: var(--space-xs);
}

/* Контроли — стрілки + індикатори в одному ряду під слайдером */
.spotlight-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.spotlight-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--touch-target);
  height: var(--touch-target);
  border: 1px solid var(--color-border);
  background-color: transparent;
  color: var(--color-text-primary);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.spotlight-slider__arrow .icon {
  width: 18px;
  height: 18px;
}

.spotlight-slider__dots {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.spotlight-slider__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-border-strong);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.spotlight-slider__dot.is-active {
  background-color: var(--color-accent);
  transform: scale(1.3);
}

@media (min-width: 768px) {
  .spotlight-slide {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2xl);
  }

  .spotlight-slide__media {
    aspect-ratio: 4 / 3;
  }

  .spotlight-slide__glyph {
    width: 80px;
    height: 80px;
  }
}

@media (min-width: 1024px) {
  .spotlight-slide__body {
    padding-inline: 0;
  }

  .spotlight-slide__glyph {
    width: 96px;
    height: 96px;
  }
}

@media (hover: hover) {
  .spotlight-slider__arrow:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background-color: rgba(205, 176, 106, 0.08);
  }

  .spotlight-slider__dot:hover {
    background-color: var(--color-accent-muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-slider__track {
    transition: none;
  }
}
