/* ══════════════════════════════════════════════════════════════════════════════
   welcome.css — Полноэкранный Welcome-экран с хореографической сеточной галереей
   ══════════════════════════════════════════════════════════════════════════════ */

.welcome-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #07070a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-screen.welcome-exit {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* Канвас на весь экран */
.welcome-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Полноэкранное видео заставки */
.welcome-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: none;
  opacity: 0;
  background-color: #140d07;
  background-image: url('/video/2_poster.jpg');
  background-size: cover;
  background-position: center;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.welcome-video.active {
  display: block;
  opacity: 1;
}

.welcome-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: 
    radial-gradient(circle at center, transparent 40%, rgba(7, 7, 10, 0.35) 80%, rgba(7, 7, 10, 0.85) 100%),
    linear-gradient(to bottom, rgba(7, 7, 10, 0.6) 0%, transparent 22%, transparent 65%, rgba(7, 7, 10, 0.9) 100%);
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.welcome-video-vignette.active {
  display: block;
  opacity: 1;
}

/* Верхняя панель (сториз-бары, логотип, кнопка «В меню») */
.welcome-header {
  position: relative;
  z-index: 10;
  padding: 16px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Сториз-прогресс бары */
.welcome-progress-bars {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.progress-segment {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00 0%, #ff9e40 100%);
  width: 0%;
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.85);
}

/* Верхняя строка управления */
.welcome-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.welcome-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.welcome-skip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 107, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.45);
  color: #ffedd5;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.welcome-skip-btn:hover {
  background: #ff6b00;
  color: #ffffff;
  border-color: #ff6b00;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
  transform: translateY(-1px);
}

.welcome-skip-btn:active {
  transform: scale(0.97);
}

/* Нижний блок информации о слайде */
.welcome-bottom {
  position: relative;
  z-index: 10;
  padding: 20px 20px 36px;
  width: 100%;
  box-sizing: border-box;
}

.welcome-info-card {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255, 107, 0, 0.22);
  border: 1px solid rgba(255, 107, 0, 0.55);
  color: #ff9e40;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.25);
}

.welcome-title {
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.welcome-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.welcome-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.welcome-price {
  font-size: 22px;
  font-weight: 900;
  color: #ff9e40;
  text-shadow: 0 2px 14px rgba(255, 107, 0, 0.4);
}

.welcome-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  max-width: 280px;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.45);
  transition: all 0.2s ease;
}

.welcome-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.65);
}

.welcome-cta-btn:active {
  transform: scale(0.97);
}

/* Кнопка-пилюля в шапке каталога для повторного просмотра акций */
.hero-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.14);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #ff9e40;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-promo-pill:hover {
  background: rgba(255, 107, 0, 0.28);
  color: #ffffff;
  border-color: #ff6b00;
}

/* ══════════════════════════════════════════════════════
   РАЗМЕЩЕНИЕ И ВЫРАВНИВАНИЕ ТЕКСТА АКЦИЙ (TEXT PLACEMENT)
   ══════════════════════════════════════════════════════ */
.welcome-screen.pos-bottom-left .welcome-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.welcome-screen.pos-bottom-left .welcome-info-card {
  margin: 0;
  text-align: left;
  align-items: flex-start;
}

.welcome-screen.pos-bottom-center .welcome-bottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.welcome-screen.pos-bottom-center .welcome-info-card {
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.welcome-screen.pos-bottom-right .welcome-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.welcome-screen.pos-bottom-right .welcome-info-card {
  margin: 0 0 0 auto;
  text-align: right;
  align-items: flex-end;
}

.welcome-screen.pos-center .welcome-bottom {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.welcome-screen.pos-center .welcome-info-card {
  margin: 0 auto;
  text-align: center;
  align-items: center;
  background: rgba(12, 10, 8, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 26px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 0, 0.38);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85);
}

.welcome-screen.pos-top-left .welcome-bottom {
  position: absolute;
  top: 86px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px;
}
.welcome-screen.pos-top-left .welcome-info-card {
  margin: 0;
  text-align: left;
  align-items: flex-start;
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.28);
}

.welcome-screen.pos-top-center .welcome-bottom {
  position: absolute;
  top: 86px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}
.welcome-screen.pos-top-center .welcome-info-card {
  margin: 0 auto;
  text-align: center;
  align-items: center;
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.28);
}

/* Выравнивание текста */
.welcome-screen.align-left .welcome-info-card { text-align: left; align-items: flex-start; }
.welcome-screen.align-left .welcome-badge { align-self: flex-start; }
.welcome-screen.align-center .welcome-info-card { text-align: center; align-items: center; }
.welcome-screen.align-center .welcome-badge { align-self: center; }
.welcome-screen.align-right .welcome-info-card { text-align: right; align-items: flex-end; }
.welcome-screen.align-right .welcome-badge { align-self: flex-end; }
