﻿/* === ОБЩИЕ СТИЛИ === */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle, #000 0%, #555 60%, #ccc 100%);
  color: #fff;
  overflow-x: hidden;	
}

a {
	text-decoration: none;
	color: #ffffff;
}

/* === МЕНЮ === */
.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);
}

/* === ТЕКСТОВЫЙ БЛОК === */
.text-section {
  max-width: 900px;
  margin: 100px auto 40px;
  padding: 0 10px;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* === АККОРДЕОН === */

.accordion {
  max-width: 70%;
  margin: 0 auto 120px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.5s ease;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.accordion-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.35);
}

.accordion-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.8);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.2);
}

.accordion-header span {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.accordion-header.active span {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.05);
  color: #eee;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.accordion-content.open {
  padding: 15px 15px 20px;
  max-height: 3500px;
}

.accordion-content p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.accordion-content.open p {
  opacity: 1;
  transform: translateY(0);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .accordion {
    max-width: 80%;  
    padding: 0 10px;
  }
}
