﻿/* === ОБЩИЕ СТИЛИ === */
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;
}

a {
	text-decoration: none;
	color: #fff;
}


/* === МЕНЮ === */
.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;
}

/* Плавная дуга 45° */
@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;
  gap: 100px;
  padding: 80px 20px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.image {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  opacity: 0;
  transition: all 1.2s ease-out;
  gap: 40px;
}

.image img {
  width: 48%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  object-fit: cover;
}

.image .text {
  width: 45%;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.image.left {
  flex-direction: row;
  transform: translateX(150px);
}

.image.left img {
  margin-left: 10px;
}

.image.left .text {
  margin-left: 40px;
}

.image.right {
  flex-direction: row-reverse;
  transform: translateX(150px);
}

.image.right img {
  margin-right: 10px;
}

.image.right .text {
  margin-right: 40px;
}

.image.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === КНОПКА ВВЕРХ === */
#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) {
  .image {
    flex-direction: column !important;
    align-items: center;
    text-align: left;
  }

  .image img {
    width: 100%;
    margin: 0 auto;
  }

  .image .text {
    width: 100%;
    margin: 20px 20px 20px 20px;
  }
}