/* ===== Vitrina — design tokens from Algateca ===== */
:root {
  --bg-deep: #061018;
  --bg-card: rgba(12, 28, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --teal: #00d4aa;
  --aqua: #38bdf8;
  --emerald: #10b981;
  --text: #e8f4f8;
  --text-muted: #8ba3b5;
  --gradient-hero: linear-gradient(135deg, #00d4aa 0%, #38bdf8 50%, #10b981 100%);
  --gradient-card: linear-gradient(145deg, rgba(0, 212, 170, 0.12), rgba(56, 189, 248, 0.06));
  --radius-lg: 24px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 212, 170, 0.35);
  color: #fff;
}

/* ===== Orbs ===== */
.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: #00d4aa;
  top: -220px;
  right: -120px;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: #38bdf8;
  bottom: 10%;
  left: -180px;
  opacity: 0.22;
}

.orb-3 {
  width: 360px;
  height: 360px;
  background: #10b981;
  top: 50%;
  right: 12%;
  opacity: 0.18;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ===== Rising bubbles (depth layers) ===== */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
  transform-style: preserve-3d;
}

.bubble {
  --x: 50%;
  --size: 14px;
  --dur: 14s;
  --delay: 0s;
  --drift: 24px;
  --op: 0.45;
  --blur: 0px;
  --z: 0px;
  --scale: 1;

  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(0, 0, var(--z)) scale(var(--scale));
  filter: blur(var(--blur));
  background:
    radial-gradient(circle at 32% 28%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.35) 18%,
      rgba(56, 189, 248, 0.22) 42%,
      rgba(0, 212, 170, 0.1) 68%,
      rgba(6, 16, 24, 0.05) 100%);
  box-shadow:
    inset -2px -3px 5px rgba(0, 20, 30, 0.35),
    inset 2px 2px 4px rgba(255, 255, 255, 0.55),
    0 0 10px rgba(56, 189, 248, 0.18);
}

.bubble::after {
  content: '';
  position: absolute;
  top: 16%;
  left: 22%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(0.4px);
}

.bubble--far {
  --blur: 2.2px;
  --op: 0.18;
  --z: -180px;
  --scale: 0.75;
}

.bubble--mid {
  --blur: 0.8px;
  --op: 0.38;
  --z: -60px;
  --scale: 1;
}

.bubble--near {
  --blur: 0px;
  --op: 0.62;
  --z: 40px;
  --scale: 1.15;
  box-shadow:
    inset -3px -4px 7px rgba(0, 20, 30, 0.4),
    inset 2px 2px 5px rgba(255, 255, 255, 0.65),
    0 0 16px rgba(0, 212, 170, 0.22),
    0 0 2px rgba(255, 255, 255, 0.35);
}

@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 0, var(--z)) scale(calc(var(--scale) * 0.85));
    opacity: 0;
  }
  8% {
    opacity: var(--op);
  }
  70% {
    opacity: var(--op);
  }
  100% {
    transform: translate3d(var(--drift), -115vh, var(--z)) scale(var(--scale));
    opacity: 0;
  }
}

/* ===== Showcase layout ===== */
.showcase {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  width: 100%;
}

.showcase-inner {
  width: 100%;
  max-width: none;
  text-align: center;
  padding-inline: clamp(12px, 2vw, 24px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.brand-logo {
  display: block;
  width: max(42vw, 40%);
  max-width: min(720px, 52%);
  height: auto;
  margin: 0;
  object-fit: contain;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2.5vw, 28px);
  margin: 0 auto 28px;
  width: 100%;
  max-width: 1180px;
  padding-inline: 8px;
  overflow: visible;
}

.invite-qr {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  max-width: 168px;
  padding: 6px;
  z-index: 2;
}

.invite-qr-frame {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 212, 170, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(0, 212, 170, 0.25);
  overflow: visible;
  animation: qr-pulse 2.4s ease-in-out infinite;
}

.invite-qr-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 58%
  );
  background-size: 220% 100%;
  transform: none;
  animation: qr-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}

.invite-qr canvas,
.invite-qr .invite-qr-image,
.invite-qr-box,
.invite-qr-box img,
.invite-qr-box canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 132px !important;
  height: 132px !important;
  max-width: 132px !important;
  max-height: 132px !important;
  border-radius: 0 !important;
  background: #fff;
  object-fit: contain !important;
  object-position: center !important;
}

.invite-qr-box {
  line-height: 0;
  min-width: 132px;
  min-height: 132px;
}

.invite-qr-box table {
  width: 132px !important;
  height: 132px !important;
  border-collapse: collapse;
}

.invite-qr-box td {
  padding: 0 !important;
  line-height: 0;
}

.invite-qr-label {
  max-width: 150px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
  color: var(--teal);
  text-transform: uppercase;
}

/* ===== Intro video modal ===== */
.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 8, 16, 0.88);
  backdrop-filter: blur(8px);
}

.intro-modal.is-open {
  display: flex;
}

.intro-modal-card {
  width: min(960px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1a24;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}

.intro-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.intro-modal-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main, #e8f4f8);
}

.intro-modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  color: #e8f4f8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.intro-modal-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.intro-modal-video {
  width: 100%;
  max-height: min(78vh, 720px);
  border-radius: 12px;
  background: #000;
  display: block;
}

#intro-qr-box img,
#intro-qr-box canvas,
#intro-qr-box table {
  width: 132px !important;
  height: 132px !important;
  display: block;
  margin: 0 auto;
}

@keyframes qr-pulse {
  0%, 100% {
    transform: none;
    box-shadow:
      0 0 0 1px rgba(0, 212, 170, 0.35),
      0 12px 32px rgba(0, 0, 0, 0.35),
      0 0 22px rgba(0, 212, 170, 0.2);
  }
  50% {
    transform: none;
    box-shadow:
      0 0 0 2px rgba(0, 212, 170, 0.65),
      0 16px 40px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(56, 189, 248, 0.5);
  }
}

@keyframes qr-shine {
  0%, 55% { background-position: 120% 0; opacity: 0; }
  60% { opacity: 1; }
  70%, 100% { background-position: -20% 0; opacity: 0; }
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase-lead {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 560px;
  margin: 0 auto 24px;
}

.remote-qr-block {
  display: none !important; /* временно скрыто */
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto 40px;
}

.remote-qr-block .invite-qr {
  max-width: 148px;
}

.remote-qr-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.remote-qr-box img,
.remote-qr-box canvas,
.remote-qr-box table {
  width: 132px !important;
  height: 132px !important;
  display: block;
  margin: 0 auto;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* ===== Projects Swiper (coverflow) ===== */
.projects-swiper.swiper-container {
  touch-action: pan-y;
  box-sizing: border-box;
  width: 100%;
  height: min(500px, 58vh);
  min-height: 320px;
  margin: 8px auto 0;
  transition: opacity 0.6s ease;
  overflow: hidden;
  padding-bottom: 36px;
}

.projects-swiper.swiper-container-coverflow {
  padding: 2% 0 calc(2% + 36px) 0;
}

.projects-swiper .swiper-wrapper {
  height: 100%;
  touch-action: pan-x;
}

.projects-swiper .swiper-slide {
  position: relative;
  display: block;
  height: 100%;
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.projects-swiper .swiper-slide-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-decoration: none;
  color: inherit;
  pointer-events: none;
}

.projects-swiper .swiper-slide-active .swiper-slide-link {
  pointer-events: auto;
}

.projects-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.15) 0%, rgba(6, 16, 24, 0.25) 40%, rgba(6, 16, 24, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.projects-swiper .swiper-content {
  position: absolute;
  bottom: 5%;
  left: 4%;
  z-index: 4;
  max-width: 78%;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-display);
  background: rgba(6, 16, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.projects-swiper .swiper-title {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.projects-swiper .swiper-caption {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--teal);
}

.projects-swiper .swiper-pagination-bullet {
  margin: 0 10px !important;
  position: relative;
  z-index: 3;
  width: 12px;
  height: 12px;
  background-color: var(--teal);
  opacity: 0.45;
  transition: all 0.3s ease;
}

.projects-swiper .swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--teal);
  border-radius: 50%;
}

.projects-swiper .swiper-pagination-bullet:hover,
.projects-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background-color: var(--aqua);
}

.projects-swiper .swiper-pagination-bullet-active::before {
  border-color: var(--aqua);
}

@media (max-width: 900px) {
  .projects-swiper.swiper-container {
    height: min(420px, 52vh);
  }

  .showcase {
    padding: 48px 0 40px;
    align-items: flex-start;
  }

  .brand-logo {
    width: 78vw;
    max-width: none;
    margin-bottom: 0;
    order: 1;
  }

  .brand-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 28px;
    margin-bottom: 22px;
  }

  .invite-qr--intro {
    order: 2;
  }

  .invite-qr--partner {
    order: 3;
  }

  .invite-qr canvas,
  .invite-qr .invite-qr-image,
  .invite-qr-box,
  .invite-qr-box img,
  .invite-qr-box canvas {
    width: 140px !important;
    height: 140px !important;
  }

  .invite-qr-label {
    max-width: 180px;
    font-size: 0.72rem;
  }

  .projects-swiper .swiper-title {
    font-size: 1.15rem;
  }

  .projects-swiper .swiper-caption {
    font-size: 0.78rem;
  }

  .projects-swiper .swiper-pagination-bullet {
    bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .orb {
    animation: float-orb 20s ease-in-out infinite;
  }

  .orb-2 { animation-delay: -7s; }
  .orb-3 { animation-delay: -14s; }

  .bubble {
    animation: bubble-rise var(--dur) linear var(--delay) infinite;
  }

  .gradient-text {
    animation: title-pulse 4s ease-in-out infinite;
  }

  .section-label {
    animation: fade-up 0.7s ease both;
  }

  .showcase-title {
    animation: fade-up 0.75s ease 0.05s both;
  }

  .showcase-lead {
    animation: fade-up 0.8s ease 0.1s both;
  }

  .projects-swiper {
    animation: fade-up 0.75s ease 0.18s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles {
    display: none;
  }

  .invite-qr-frame,
  .invite-qr-frame::after {
    animation: none;
  }
}

