* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font: inherit;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

.brand,
.languages {
  pointer-events: auto;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.languages {
  display: flex;
  gap: 8px;
}

.lang-button {
  min-width: 64px;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: white;
  cursor: pointer;
}

.lang-button.active {
  background: white;
  color: black;
  border-color: white;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.overlay {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 110px 8vw 70px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.68) 45%,
    rgba(0,0,0,0) 100%
  );
}

.overlay-inner {
  max-width: 1100px;
}

.slide-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 72px);
  line-height: 1.05;
}

.slide-text {
  margin: 0;
  max-width: 950px;
  font-size: clamp(18px, 2vw, 32px);
  line-height: 1.35;
}

.nav-button {
  position: absolute;
  z-index: 15;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 96px;
  border: 0;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 64px;
  line-height: 1;
  cursor: pointer;
}

.nav-prev {
  left: 18px;
}

.nav-next {
  right: 18px;
}

.counter {
  position: absolute;
  z-index: 15;
  right: 28px;
  bottom: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  font-size: 18px;
}

.progress {
  position: absolute;
  z-index: 16;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255,255,255,0.16);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: white;
}

@media (max-width: 800px) {
  .topbar {
    height: 72px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 18px;
  }

  .lang-button {
    min-width: 54px;
    min-height: 44px;
    padding: 6px 12px;
  }

  .overlay {
    padding: 90px 70px 50px 70px;
  }

  .nav-button {
    width: 54px;
    height: 78px;
    font-size: 48px;
  }

  .nav-prev {
    left: 8px;
  }

  .nav-next {
    right: 8px;
  }
}

@media (pointer: coarse) {
  .nav-button,
  .lang-button {
    -webkit-tap-highlight-color: transparent;
  }
}
