/* ===== Base reset & tokens ===== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  background: #000;
}

:root {
  --btn-bg: rgba(30, 21, 54, 0.88);
  --btn-bg-hover: rgba(30, 21, 54, 1);
  --btn-text: #fff;
  --btn-radius: 16px;
  --gap: 14px;
  --btn-pad-y: 14px;
  --btn-pad-x: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100dvh; /* safe mobile viewport */
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* A soft gradient for button legibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.18) 35%,
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

/* ===== CTA buttons ===== */
.cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr; /* 1 column on narrow */
  gap: var(--gap);
  width: min(92vw, 560px);
  z-index: 4;
  filter: drop-shadow(var(--shadow));
}

/* Mobile spec: stick to bottom with a small padding */
@media (max-width: 767.98px) {
  .cta {
    bottom: 20px;
  }
}

/* Desktop / wide spec: center horizontally and place at 3/4 height */
@media (min-width: 768px) {
  .cta {
    top: 80dvh; /* 3/4 of the viewport height */
    transform: translate(-50%, -50%);
    /* center the block on that line */
    width: min(70vw, 720px);
    grid-template-columns: repeat(2, 1fr); /* 2 columns on wide */
  }

  .btn--accent:hover {
   background: rgba(255,255,255,0.12); /* fallback для старых браузеров */
   background: color-mix(in srgb, var(--btn-accent), black 22%);
 }
  
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* место под иконку */
  padding: 14px 22px;
  border-radius: 24px; /* мягче, «премиум» */
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing: 0.3px;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.94;
}

.btn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.65),
    0 0 0 6px rgba(98, 0, 234, 0.65);
  outline: none;
}

/* Иконки внутри кнопок */
.btn svg,
.btn .btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: inline-block;
  fill: currentColor; /* берёт цвет текста */
}

/* (необязательно) акцентные варианты */
.btn--tg {
  --btn-accent: #2aa9e276;
}

.btn--boosty {
  --btn-accent: #ff5e0276;
}

.btn--ph {
  --btn-accent: #f7990276;
}

/* фирменный оранжевый оттенок */
.btn--iwc {
  --btn-accent: #892be276;
}

/* приятный фиолетовый под glass-стиль */
.btn--accent {
  border-color: color-mix(in srgb, var(--btn-accent), white 40%);
}

.btn--accent:hover {
  background: rgba(255, 255, 255, 0.12);
  /* fallback */
  background: color-mix(in srgb, var(--btn-accent), black 22%);
}

/* СЛАЙДЕР заполняет весь hero */
.slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  cursor: default; /* обычная стрелка до захвата */
  touch-action: pan-y;
}

/* Кадры: cover + плавная смена */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  object-position: center 10%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none !important;
  }
}

.slide:first-child {
  transform: translateX(0);
}

.slider.grabbing {
  cursor: grabbing;
}

/* На широких экранах — фокус к портрету */
@media (min-width: 768px) {
  .slide {
    object-position: 50% 6%;
  }
}
