:root {
  --background-color: #121212;
  --text-color: #e0e0e0;
  --primary-color: #bb86fc;
  --card-bg: #1e1e1e;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 0;
}

body.no-scroll {
  overflow: hidden;
}

/* Основная область */
.slider-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.slider-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Слайдер */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 19.5;
  background-color: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
  touch-action: pan-y;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Прелоадер */
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Стрелки */
.slider-arrow {
  background: transparent;
  color: #666;
  border: none;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0 8px;
}

.slider-arrow:hover {
  color: white;
}

/* Кругляшки (точки) */
.slider-dots {
  position: absolute;
  top: 5%; /* 5% от верха картинки */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: background-color 0.3s;
  cursor: pointer;
}

.dot.active {
  background-color: white;
}

/* Кнопка скачивания */
.download-button {
  position: absolute;
  top: 15%; /* 15% от верха картинки */
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #121212;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  z-index: 10;
}

.download-button:hover {
  transform: translateX(-50%) scale(1.05);
  background-color: #f0f0f0;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 20px;
  color: #888;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Мобильная адаптация */
@media (max-width: 540px) {
  .slider-area {
    padding: 0 15px;
  }

  .slider-inner {
    gap: 8px;
  }

  .slider-arrow {
    font-size: 32px;
    padding: 0 5px;
  }
}
