/* ========== БАЗА ========== */
:root {
  --bg-deep: #0a0014;
  --bg-deeper: #100022;
  --txt: #f0f0f0;
  --card: #ffffff10;
  --card-brd: #7b2ff74d;
  --accent-1: #7b2ff7;
  --accent-2: #00f5d4;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --shadow: 0 0 28px rgba(123, 47, 247, .30);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--txt);
  background: #080808 fixed;
  overflow-x: hidden;
}

textarea {
  resize: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Анимация появления */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Кнопки */
.btn-primary,
.btn-secondary,
.btn-details {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
}
.btn-primary:hover {
  background: transparent;
  border-color: var(--accent-1);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--accent-1);
}
.btn-secondary:hover {
  background: var(--accent-grad);
}
.btn-details {
  border: 1px solid #7b2ff7;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .9rem;
}
.btn-details:hover {
  background: #7b2ff73a;
}

/* Чуть приглушим в нижних секциях */
@media (min-width: 0) {
  .decor-star-2,
  .decor-rabbit-2 {
    opacity: .26;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  z-index: 4;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(.45);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000000a0, #00000040);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 2rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 8px 18px;
  background: #ffffff18;
  font-size: .9rem;
  margin-bottom: 1.1rem;
  border: 1px solid #ffffff32;
}
.hero h1 {
  font-size: 4rem;
  letter-spacing: -.5px;
  margin-bottom: .8rem;
  text-shadow: 0 2px 10px #0000004d;
}
.hero p {
  font-size: 1.2rem;
  color: #ddd;
  margin: 0 auto 1.6rem;
  max-width: 620px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========== СЕКЦИИ ========== */
.section {
  position: relative;
  z-index: 4;
  background: transparent;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #030303;
  border-top: 1px solid #ffffff12;
  opacity: 1;
  z-index: -1;
}

/* ABOUT */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.about-image {
  width: 400px;
  height: 500px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-brd);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.about-text p {
  color: #ddd;
  margin-bottom: 1.1rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: .3s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.stat-card:hover {
  background: #7b2ff71c;
  box-shadow: var(--shadow);
}
.stat-card i {
  font-size: 1.8rem;
  color: var(--accent-1);
  margin-bottom: .6rem;
}
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
}
.stat-label {
  color: #aaa;
  font-size: .9rem;
}

/* PROGRAMS */
.performance h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: .6rem;
}
.subtitle {
  text-align: justify;
  color: #aaa;
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
}
.style-card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: .3s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.style-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: #ffffff12;
}
.icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--accent-grad);
  color: #fff;
  font-size: 1.4rem;
}
.style-card ul {
  list-style: none;
  margin: 1.1rem 0;
  padding: 1rem;
  background: #ffffff0d;
  border: 1px solid #ffffff24;
  border-radius: 10px;
}
.style-card li {
  position: relative;
  padding-left: 18px;
  color: #e8e8e8;
  margin-bottom: .7rem;
}
.style-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
}
.details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #ffffff24;
  color: #bbb;
  font-size: .95rem;
}

/* GALLERY */
.moments h2 {
  font-size: 2.6rem;
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.gallery-item {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 5px 15px #0000004d;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  height: 415px;
}

/* FAQ */
.faq h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: .6rem;
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #ffffff26;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .3s ease;
}
.faq-question:hover {
  color: var(--accent-2);
}
.faq-question i {
  transition: transform .35s ease;
}
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .35s ease;
  color: #ddd;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  max-height: 260px;
  opacity: 1;
  margin-bottom: .8rem;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-2);
}

/* CONTACT */
.contact h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: .4rem;
}
.contact .subtitle {
  text-align: center;
  color: #bbb;
  margin-bottom: 1.8rem;
}
.contact-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 26px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 450px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ffffff33;
  border-radius: 10px;
  background: #ffffff14;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border .25s ease, background .25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-2);
  background: #ffffff22;
}
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.magic-link {
  width: 130px;
  height: 140px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  border: 1px solid #88d3ce4d;
  box-shadow: 0 6px 20px #00000066;
  transition: .3s;
}
.magic-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px #00000080, 0 0 15px #88d3ce4d;
  border-color: #88d3ce99;
}
.magic-link i {
  font-size: 30px;
  margin-bottom: 10px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.magic-link span {
  font-weight: 700;
}
.contact-note {
  color: #9f9f9f;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
}
.phone-link {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}
.phone-link:hover {
  color: var(--accent-1);
}

/* POPUP */
.popup {
  position: fixed;
  inset: 0;
  background: #000000b3;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9999;
}
.popup.active {
  opacity: 1;
  pointer-events: auto;
}
.popup-content {
  background: #030303;
  border: 1px solid #ffffff1a;
  padding: 2rem 2.2rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 20px #7b2ff749;
  animation: popIn .35s ease;
}
.popup-content h3 {
  color: var(--accent-2);
  margin-bottom: .5rem;
}
.popup-content p {
  color: #ddd;
  margin-bottom: 1rem;
}
.popup-content button {
  background: var(--accent-grad);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
/* Подсветка ошибок в форме */
.contact-form input.error,
.contact-form textarea.error {
  border-color: #ff4d4d !important;
  background: #ff4d4d10 !important;
  box-shadow: 0 0 6px #ff4d4d55;
}

@keyframes popIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* FOOTER */
footer {
  background: #080808;
  padding: 2rem 0;
  text-align: center;
  color: #888;
  border-top: 1px solid #ffffff12;
}

/* АДАПТИВ */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4/5;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.7rem; }
  .hero p { font-size: 1rem; }
  .cta-buttons { flex-direction: column; }
  .styles-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
}
              