/* ================== BASE ================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  min-height: 100%;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  overflow-x: hidden;
  background: #000;
  text-align: center;
}

body {
  min-height: 100svh;
  position: relative;
}

/* ================== BACKGROUND LAYERS ================== */
.bg {
  position: fixed;
  inset: 0;
  background: url("/static/brick-wall.webp") center center / cover no-repeat;
  z-index: 0;
  animation: bgZoom 20s ease-in-out infinite alternate;
  will-change: transform;
  filter: brightness(0.45);
}
@keyframes bgZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.smoke {
  position: fixed;
  inset: 0;
  background: url("/static/smoke.webp") repeat;
  opacity: 0.15;
  animation: moveSmoke 45s linear infinite;
  z-index: 2;
}
@keyframes moveSmoke {
  from { background-position: 0 0; }
  to   { background-position: 1200px 0; }
}

/* ================== MAIN CONTENT WRAPPER ================== */
.content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom));
  padding: clamp(60px, 8vh, 100px) 16px clamp(80px, 10vh, 120px);
  margin-inline: auto;
  animation: fadeInZoom 1.2s ease-out;
}
@keyframes fadeInZoom {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================== LOGO ================== */
.logo {
  max-width: clamp(120px, 18vw, 200px);
  height: auto;
  margin: 0 auto 24px;
  animation: pulse 3s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* ================== TITLE ================== */
.neon-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: 2px;
}
.neon-title .vape {
  color: #ff0033;
  text-shadow:
    0 0 4px #ff0033,
    0 0 10px #ff0033,
    0 0 20px #ff0033,
    0 0 40px #ff0033aa;
  animation: flickerRed 2s infinite;
}
.neon-title .vegas {
  color: #00aaff;
  text-shadow:
    0 0 4px #00aaff,
    0 0 10px #00aaff,
    0 0 20px #00aaff,
    0 0 40px #00aaffaa;
  animation: flickerBlue 2.4s infinite;
}
@keyframes flickerRed {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.65; }
}
@keyframes flickerBlue {
  0%, 14%, 19%, 23%, 51%, 59%, 100% { opacity: 1; }
  17%, 21%, 55% { opacity: 0.7; }
}

/* ================== SUBTEXT ================== */
.tagline {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 18px;
}
.worktime {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 26px;
  line-height: 1.5;
}
.tagline,
.worktime {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ================== CTA BUTTONS ================== */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 42px;
}
.telegram-link, .reg-link {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  border: 2px solid transparent;
}
.telegram-link {
  background: transparent;
  border-color: #00f0ff;
  box-shadow: 0 0 6px #00f0ff, 0 0 15px #00f0ff33;
  color: #fff;
}
.telegram-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff00ff, 0 0 25px #ff00ff55;
  border-color: #ff00ff;
}
.reg-link {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.reg-link:hover {
  background: #fff;
  color: #000;
}

/* ================== STORES ================== */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 0 auto 40px;
  width: 100%;
  max-width: 900px;
}
.store-card {
  position: relative;
  padding: 18px 20px 20px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 8px rgba(255,255,255,0.03);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.store-card:hover {
  transform: translateY(-3px);
  border-color: #00aaff;
  box-shadow: 0 0 8px #00aaff55, 0 0 18px #00aaff22;
}
.store-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #fff;
}
.store-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}
.store-card .pin {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff0033;
  box-shadow: 0 0 8px #ff0033, 0 0 16px #ff003388;
}

/* ================== FOOTER NOTE ================== */
.soon {
  opacity: 0.5;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  .logo { max-width: 120px; }
  .tagline { font-size: 1rem; }
  .stores { gap: 14px; }
}

@media (max-width: 480px) {
  .content {
    padding: calc(var(--safe-top) + 16px) 14px calc(var(--safe-bottom) + 80px);
  }
  .neon-title { font-size: 2rem; }
  .tagline { font-size: 0.95rem; }
  .worktime { font-size: 0.9rem; }
  .telegram-link, .reg-link {
    padding: 10px 18px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 360px;
  }
}

/* ---------- Photo modal (slider) ---------- */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.photo-modal.open { display: flex; }

.photo-container {
  max-width: 95%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .35s ease;
}
.photo-modal img.fade-out { opacity: 0; }

.photo-modal .close {
  position: absolute;
  top: 20px;
  right: 26px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: 0;
}

.photo-modal .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}
.photo-modal .nav:hover { background: rgba(255,255,255,0.2); }
.photo-modal .prev { left: 20px; }
.photo-modal .next { right: 20px; }

.dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.dots button.active { background: #fff; }

.bg,
.overlay,
.smoke {
  pointer-events: none;
}

/* Полностью отключаем анимацию, которая двигает лэйаут */
.content,
.neon-title,
.tagline,
.worktime,
.cta,
.stores,
.soon {
  animation: none !important;
  transform: none !important;
}

/* Если хочешь всё-таки мягкое появление — только по opacity */
body:not(.ready) .content {
  opacity: 0;
}
body.ready .content {
  opacity: 1;
  transition: opacity .35s ease;
}
