:root {
  --bg: #0e1013;
  --panel: rgba(255, 255, 255, 0.08);
  --text: #f6f2e8;
  --muted: rgba(246, 242, 232, 0.72);
  --accent: #d9a441;
  --accent-soft: rgba(217, 164, 65, 0.28);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  --slide-ratio: 2152 / 1210;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(217, 164, 65, 0.24), transparent 30%),
    linear-gradient(160deg, #13161c 0%, #090b0f 100%);
}

button {
  font: inherit;
}

.slider-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.2vw, 28px);
  overflow-x: hidden;
}

.hero-slider {
  width: min(1120px, 100%);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(10px, 1.8vw, 18px);
}

.slider-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, calc((100svh - 110px) * var(--slide-ratio)));
  max-width: 1120px;
  aspect-ratio: var(--slide-ratio);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(14px, 2.5vw, 28px);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.slides {
  height: 100%;
  display: flex;
  transition: transform 0.65s ease;
  will-change: transform;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.nav-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: clamp(38px, 5vw, 54px);
  height: clamp(38px, 5vw, 54px);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(14, 16, 19, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

.nav-button:hover {
  background: rgba(217, 164, 65, 0.36);
  transform: translateY(-50%) scale(1.04);
}

.nav-button span {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  line-height: 1;
}

.prev {
  left: clamp(8px, 1.6vw, 18px);
}

.next {
  right: clamp(8px, 1.6vw, 18px);
}

.dots {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(7px, 1.2vw, 10px);
  padding: 0 8px;
}

.dot {
  width: clamp(9px, 1.5vw, 12px);
  height: clamp(9px, 1.5vw, 12px);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.18);
  box-shadow: 0 0 0 clamp(4px, 0.8vw, 6px) var(--accent-soft);
}

@media (max-width: 720px) {
  .slider-page {
    align-content: center;
  }

  .hero-slider {
    gap: 12px;
  }

  .slider-frame {
    width: min(100%, calc((100svh - 92px) * var(--slide-ratio)));
  }
}

@media (max-width: 480px) {
  .slider-frame {
    width: min(100%, calc((100svh - 84px) * var(--slide-ratio)));
  }

  .dots {
    gap: 7px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .slider-page {
    padding: 8px;
  }

  .hero-slider {
    gap: 8px;
  }

  .slider-frame {
    width: min(100%, calc((100svh - 46px) * var(--slide-ratio)));
  }

  .dots {
    gap: 6px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides,
  .nav-button,
  .dot {
    transition: none;
  }
}
