﻿
/* === ОБЩИЕ СТИЛИ === */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle, #000 0%, #555 60%, #ccc 100%);
  color: #fff;
  overflow-x: hidden;
}

h1.page-title {
  text-align: center;
  padding: 80px 20px;
  font-size: 2.5rem;
}

/* === КРУГОВОЕ ВЕЕРООБРАЗНОЕ МЕНЮ === */
.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;
}

/* Компактный веер, расстояние ~80px, распределение -15° -5° 5° 15° */
@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;
}

/* === ГАЛЕРЕЯ === */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 60px 20px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.image {
  width: 100%;
  max-width: 800px;
  opacity: 0;
  transform: translateX(0);
  transition: all 1s ease-out;
}

.image.left { transform: translateX(-100px); }
.image.right { transform: translateX(100px); }
.image.visible { opacity: 1; transform: translateX(0); }

.image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: block;
}

/* === КНОПКА ВВЕРХ === */
#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: 1024px) { .image { max-width: 90%; } }
@media (max-width: 768px) {
  h1.page-title { font-size: 1.8rem; }
  .image { max-width: 95%; }
  .menu-btn { width: 45px; height: 45px; font-size: 24px; }
  .menu-circle li { width: 45px; height: 45px; }
  .menu-circle a img { width: 70%; height: 70%; }
}
