/* ==========================================================================
   ZANZARA · Projects
   project.css (Slides-safe)
   ========================================================================== */

/* -------------------------
   Base / safe overrides
   ------------------------- */

section.slide{
  color:#fff;
}

section.slide a{
  color:inherit;
  text-decoration:none;
}

/* -------------------------
   ZANZARA Projects header
   ------------------------- */

/* Размер ТЕКСТА заголовка (ZANZARA Projects) */
section.slide .z-projects-head{
  display:flex;
  align-items:baseline;
  gap:14px;

  font-size:44px !important;     /* <-- ТОЛЬКО ТЕКСТ */
  line-height:1.05 !important;

  margin:0;
  padding:0;

  color:#fff;
}

/* Кнопка закрытия */
section.slide .z-projects-head .z-close{
  display:inline-flex;
  align-items:baseline;
  cursor:pointer;
  opacity:.9;
}

section.slide .z-projects-head .z-close:hover{
  opacity:1;
}

/* Размер КРЕСТИКА отдельно (не зависит от текста) */
section.slide .z-projects-head .z-close .bi{
  font-size:70px;                /* <-- ТОЛЬКО КРЕСТИК */
  line-height:1;
  position:relative;
  top:10px;                      /* оптическая коррекция */
}

/* Brand / word */
section.slide .z-projects-head .z-brand{
  font-weight:700 !important;
  letter-spacing:.4px;
}

section.slide .z-projects-head .z-word{
  font-weight:400 !important;
}

/* Отступ под заголовком */
.hero-title{
  margin-bottom:28px;
}

/* -------------------------
   Video preview / popup
   ------------------------- */

.videoThumbnail{
  position:relative;
  overflow:hidden;
}

.videoThumbnail img{
  display:block;
  width:100%;
  height:auto;
}

/* ==========================================================
   PLAY: pulsing ring (не ломает клики)
   ========================================================== */
section.slide[data-name="start"] .videoThumbnail{
  position: relative;
}

section.slide[data-name="start"] .videoThumbnail::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:84px;
  height:84px;
  transform:translate(-50%,-50%);
  border-radius:999px;

  border:2px solid rgba(255,255,255,.8);
  box-shadow:0 0 0 0 rgba(255,255,255,.35);

  animation: playPulse 1.6s infinite ease-out;
  pointer-events:none;
  z-index:6;
}

@keyframes playPulse{
  0%   { transform:translate(-50%,-50%) scale(1);    opacity:.9; box-shadow:0 0 0 0 rgba(255,255,255,.35); }
  70%  { transform:translate(-50%,-50%) scale(1.35); opacity:.2; box-shadow:0 0 0 18px rgba(255,255,255,0); }
  100% { transform:translate(-50%,-50%) scale(1.35); opacity:0;  box-shadow:0 0 0 18px rgba(255,255,255,0); }
}

section.slide[data-name="start"] .videoThumbnail:hover::after{
  animation-play-state: paused;
}

/* -------------------------
   Responsive
   ------------------------- */

@media (max-width:768px){

  /* текст */
  section.slide .z-projects-head{
    font-size:36px !important;
    gap:12px;
  }

  /* крест */
  section.slide .z-projects-head .z-close .bi{
    font-size:30px;
    top:-1px;
  }
}

@media (max-width:480px){

  /* текст */
  section.slide .z-projects-head{
    font-size:30px !important;
    gap:10px;
  }

  /* крест */
  section.slide .z-projects-head .z-close .bi{
    font-size:26px;
    top:-1px;
  }

  .hero-title{
    margin-bottom:20px;
  }
}

/* ===== Scroll hint (mouse) ===== */
.panel.bottom .z-scrollhint{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:14px;
  pointer-events:none;
  opacity:.85;
}

.panel.bottom .z-mouse{
  width:22px;
  height:34px;
  border:2px solid currentColor;
  border-radius:999px;
  position:relative;
  box-sizing:border-box;
  animation:zMouseFloat 1.4s ease-in-out infinite;
}

.panel.bottom .z-wheel{
  position:absolute;
  left:50%;
  top:7px;
  width:4px;
  height:8px;
  margin-left:-2px;
  border-radius:999px;
  background:currentColor;
  opacity:.95;
  animation:zWheelMove 1.4s ease-in-out infinite;
}

@keyframes zMouseFloat{
  0%,100%{ transform: translate3d(0,0,0); }
  50%    { transform: translate3d(0,6px,0); }
}

@keyframes zWheelMove{
  0%   { transform: translate3d(0,0,0); opacity:.95; }
  40%  { transform: translate3d(0,8px,0); opacity:.35; }
  100% { transform: translate3d(0,0,0); opacity:.95; }
}

/* Скрытие подсказки */
.z-scrollhint.is-hidden{
  opacity:0 !important;
  transform: translate3d(0,6px,0) !important;
  transition: opacity .25s ease, transform .25s ease;
}

.panel.bottom .sections.desktop .center{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.button.actionButton{
  color: rgba(255,255,255,.9);  /* чтобы иконка была видимой */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.actionButton i{
  font-size: 20px;
  line-height: 1;
}

/* =========================
   FIX: Panel bottom must be clickable + menu not clipped
   ========================= */

/* Slides иногда отключает клики на панели */
nav.panel.bottom.z-bottombar,
nav.panel.bottom.z-bottombar *{
  pointer-events: auto !important;
}

/* Чтобы выпадающее меню не резалось */
nav.panel.bottom.z-bottombar{
  overflow: visible !important;
  z-index: 10050; /* поверх всего */
}

/* Поднять “мышь” на 50px */
nav.panel.bottom.z-bottombar .z-scrollhint{
  position: relative;
  transform: translateY(-50px);
}

/* ===== Share menu (left) ===== */
nav.panel.bottom.z-bottombar .z-share{
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  z-index: 10051;
}

nav.panel.bottom.z-bottombar .z-share-toggle{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  color: #fff;
}

nav.panel.bottom.z-bottombar .z-share-toggle i{
  font-size: 22px;
  line-height: 1;
}

/* Выпадающий столбик */
nav.panel.bottom.z-bottombar .z-share-menu{
  position: absolute;
  left: 0;
  bottom: 34px;
  display: none;
  flex-direction: column;
  gap: 10px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 10052;
}

nav.panel.bottom.z-bottombar .z-share.is-open .z-share-menu{
  display: flex;
}

nav.panel.bottom.z-bottombar .z-share-link{
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  opacity: .9;
  transition: opacity .15s ease, transform .15s ease;
}

nav.panel.bottom.z-bottombar .z-share-link i{
  font-size: 20px;
}

nav.panel.bottom.z-bottombar .z-share-link:hover{
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================
   SHARE: move to left-bottom corner + raise icons +20px
   ========================= */

/* 1) ВЕСЬ БЛОК (три точки + меню) — в левый нижний угол экрана */
nav.panel.bottom.z-bottombar .z-share{
  position: fixed !important;
  left: 24px !important;
  bottom: 24px !important;
  z-index: 10080 !important;
}

/* 2) Поднять столбик иконок на +20px (было 34px) */
nav.panel.bottom.z-bottombar .z-share-menu{
  bottom: 54px !important; /* 34 + 20 */
}

/* (опционально) чуть удобнее нажимать */
nav.panel.bottom.z-bottombar .z-share-toggle{
  padding: 6px !important;
}
