﻿/* === ОБЩИЕ СТИЛИ === */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle, #000 0%, #555 60%, #ccc 100%);
  color: #fff;
  overflow: hidden; /* ✨ теперь страница не скроллится */
}

/* === ТЕКСТ (телефон + instagram) === */
.text {
  position: absolute; /* ✨ поверх изображения */
  bottom: 5%; /* ✨ немного выше нижнего края */
  left: 50%;
  transform: translateX(-50%);
  color: #969696;
  z-index: 3;
  font-size: 16px;
  font-family: sans-serif;
  text-align: center;
  padding: 0; /* ✨ фон и отступы убраны */
  border-radius: 0; /* ✨ убрано */
  background: none; /* ✨ фон убран */
}

.text a {
  text-decoration: none;
  color: #d0d0d0;
  display: inline-block;
  margin: 3px 6px;
}

.text img#instagram {
  width: 26px;
  height: 26px;
  vertical-align: middle;
}

/* === ГАЛЕРЕЯ === */
.gallery {
  position: relative; /* ✨ для позиционирования текста внутри */
  width: 100vw;
  height: 100vh; /* ✨ галерея на весь экран, без прокрутки */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image {
  width: 100%;
  max-width: 800px;
  height: auto;
  position: relative;
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

/* === МЕНЮ === */
.menu-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.menu-btn {
  background: rgba(100,100,100,0.8);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-wrapper.active .menu-btn {
  transform: rotate(90deg);
}

.menu-circle {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
}

.menu-circle li {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

/* === ВЕЕРООБРАЗНАЯ АНИМАЦИЯ === */
@keyframes fly1 {
  0% { transform: translate(0,0); opacity:0; }
  100% { transform: rotate(-30deg) translate(-65px,65px); opacity:1; }
}
@keyframes fly2 {
  0% { transform: translate(0,0); opacity:0; }
  100% { transform: rotate(-10deg) translate(-115px,-5px); opacity:1; }
}
@keyframes fly3 {
  0% { transform: translate(0,0); opacity:0; }
  100% { transform: rotate(10deg) translate(-140px,-14px); opacity:1; }
}
@keyframes fly4 {
  0% { transform: translate(0,0); opacity:0; }
  100% { transform: rotate(30deg) translate(-40px,90px); opacity:1; }
}

.menu-wrapper.active .menu-circle li:nth-child(1) { animation: fly1 0.5s forwards; }
.menu-wrapper.active .menu-circle li:nth-child(2) { animation: fly2 0.55s forwards; }
.menu-wrapper.active .menu-circle li:nth-child(3) { animation: fly3 0.6s forwards; }
.menu-wrapper.active .menu-circle li:nth-child(4) { animation: fly4 0.65s forwards; }

.menu-circle a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-circle a img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* === КНОПКА ВВЕРХ === */
#scrollTop {
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: rgba(136, 136, 136, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

#scrollTop.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#scrollTop svg {
  width: 26px;
  height: 26px;
  fill: white;
  transition: transform 0.3s ease;
}

#scrollTop:hover svg {
  transform: translateY(-4px);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .text {
    font-size: 14px;
    bottom: 8%; /* ✨ чуть выше нижнего края на мобильных */
  }

  .text img#instagram {
    width: 22px;
    height: 22px;
  }

  .menu-btn {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .menu-circle li {
    width: 45px;
    height: 45px;
  }

  .menu-circle a img {
    width: 70%;
    height: 70%;
  }
}
