/* ================== БОЖЕСТВЕННЫЙ ДИЗАЙН ================== */
:root {
  --bg: #0b0b10;
  --bg-2: #11111a;
  --card: rgba(20, 20, 32, 0.7);
  --text: #f5f5f7;
  --muted: #a0a0b2;
  --accent: #ff4da6;
  --accent-2: #ff7ac6;
  --accent-glow: #ff9fdd;
  --radius: 28px;
  --radius-sm: 20px;
  --container: 1200px;
  --gap: 24px;
  --cursor-size: 20px;
  --cursor-follower-size: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}
body.loaded { cursor: auto; }
body.loaded .cursor,
body.loaded .cursor-follower { opacity: 1; }

/* ПРЕДЗАГРУЗЧИК */
.preloader {
  position: fixed; inset: 0; background: #0a0a0f; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s, visibility 0.8s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo {
  font-size: 3rem; font-weight: 900;
  background: linear-gradient(145deg, #fff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px; animation: logoPulse 1.5s infinite;
}
.preloader-spinner {
  width: 50px; height: 50px; margin: 20px auto;
  border: 3px solid rgba(255,77,166,0.2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite;
}
.preloader-text { color: var(--muted); letter-spacing: 2px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes logoPulse { 0%,100%{ opacity:0.8; } 50%{ opacity:1; } }

/* КУРСОР */
.cursor {
  position: fixed; width: var(--cursor-size); height: var(--cursor-size);
  border-radius: 50%; background: var(--accent); mix-blend-mode: difference;
  pointer-events: none; z-index: 10000; transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s; opacity: 0;
}
.cursor-follower {
  position: fixed; width: var(--cursor-follower-size); height: var(--cursor-follower-size);
  border: 2px solid rgba(255,77,166,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  transition: 0.1s ease-out; opacity: 0; backdrop-filter: blur(2px);
}
.cursor.active { width: 10px; height: 10px; background: white; }
.cursor-follower.active { width: 60px; height: 60px; border-color: var(--accent); }

/* ЧАСТИЦЫ CANVAS */
.particle-canvas { position: fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:1; opacity:0.6; }

/* ОСНОВНЫЕ СТИЛИ */
img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
img:not([src]), img[src=""] {
  background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
img:not([src])::before, img[src=""]::before {
  content: "🖼️ " attr(alt);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 5; }
.section { padding: 100px 0; position: relative; z-index: 2; }
.section.dark { background: linear-gradient(180deg, rgba(20, 20, 32, 0.5), rgba(10, 10, 18, 0.9)); backdrop-filter: blur(3px); }
h2 {
  font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #ffd6ec 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; animation: titleGlow 3s infinite alternate;
}
@keyframes titleGlow {
  0% { text-shadow: 0 0 5px rgba(255, 77, 166, 0.3); }
  100% { text-shadow: 0 0 20px rgba(255, 77, 166, 0.7); }
}

/* HEADER */
.header {
  position: fixed; top:0; left:0; right:0; backdrop-filter: blur(16px) saturate(200%);
  background: rgba(8, 8, 14, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000; transition: 0.4s;
}
.header.scrolled { background: rgba(5, 5, 10, 0.8); box-shadow: 0 15px 35px -10px black; }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-weight: 900; font-size: 2rem;
  background: linear-gradient(145deg, #fff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 25px var(--accent); animation: logoNeon 2.2s infinite alternate;
}
@keyframes logoNeon {
  from { filter: drop-shadow(0 0 8px var(--accent)); }
  to { filter: drop-shadow(0 0 18px #ff9fdd); }
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-weight:500; transition:0.2s; position:relative; }
.nav a:hover { color: white; }
.nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2.5px;
  background: var(--accent); transition: width 0.4s; box-shadow: 0 0 12px var(--accent);
}
.nav a:hover::after { width: 100%; }

/* КНОПКИ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px;
  border-radius: 60px; background: linear-gradient(145deg, var(--accent), #ff2d8a);
  color: white; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 25px rgba(255, 45, 138, 0.4);
  border: 1px solid rgba(255,255,255,0.15); gap: 10px; transition: 0.3s;
  animation: btnPulse 2.8s infinite; cursor: none;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(255,77,166,0.7); }
.btn-outline { background: transparent; border: 2px solid var(--accent); box-shadow: none; animation: none; }
@keyframes btnPulse {
  0% { box-shadow: 0 10px 25px rgba(255, 45, 138, 0.4); }
  50% { box-shadow: 0 15px 35px rgba(255, 77, 166, 0.8), 0 0 15px var(--accent); }
  100% { box-shadow: 0 10px 25px rgba(255, 45, 138, 0.4); }
}

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; position: relative; z-index: 5; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 60px; align-items: center; }

/* НЕОНОВОЕ СВЕЧЕНИЕ ЗАГОЛОВКА */
.neon-title {
  font-size: 4.5rem; line-height: 1.15; font-weight: 800; margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #ffe0f0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(255,77,166,0.7), 0 0 60px rgba(255,77,166,0.5);
  animation: neonPulse 2.5s infinite alternate;
}
@keyframes neonPulse {
  0% { text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-2); }
  100% { text-shadow: 0 0 40px var(--accent), 0 0 80px var(--accent-glow), 0 0 120px #ffb3d9; }
}
.hero .accent-text { color: var(--accent); text-shadow: 0 0 40px var(--accent); }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero-card {
  background: rgba(20,20,32,0.4); backdrop-filter: blur(16px);
  padding: 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.15s ease-out; will-change: transform;
}
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.stat-item h3 { font-size: 2.2rem; color: white; text-shadow: 0 0 10px var(--accent); }

/* СКРОЛЛ-ИНДИКАТОР */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.scroll-indicator span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: scrollPulse 1.5s infinite;
}
.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(5px); }
}

/* СЕТКИ И КАРТОЧКИ */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06); padding: 32px 28px;
  border-radius: var(--radius); transition: 0.35s; transform-style: preserve-3d;
}
.card:hover {
  border-color: rgba(255, 77, 166, 0.5);
  box-shadow: 0 25px 35px -12px #000000b3, 0 0 25px rgba(255, 77, 166, 0.2);
  transform: translateY(-10px) scale(1.01);
}

/* ГАЛЕРЕЯ */
.gallery-item {
  position: relative; overflow: hidden; border-radius: 28px;
  aspect-ratio: 1 / 1.1; box-shadow: 0 15px 25px -8px black;
  transition: 0.4s; transform-style: preserve-3d; cursor: pointer;
}
.gallery-item img { transition: transform 0.7s; }
.gallery-item:hover img { transform: scale(1.15); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 5%, transparent 70%);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 28px; opacity: 0; transition: 0.5s; backdrop-filter: blur(6px);
  color: white; font-weight: 700; font-size: 1.6rem; transform: translateY(10px);
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

/* ЛАЙТБОКС */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
  z-index: 10000; display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 30px; box-shadow: 0 0 50px var(--accent); }
.lightbox-close { position: absolute; top: 30px; right: 40px; font-size: 50px; color: white; cursor: pointer; z-index: 10001; }
.lightbox-caption { position: absolute; bottom: 30px; color: white; font-size: 1.5rem; }

/* ЦЕНЫ */
.price .value { font-size: 3rem; font-weight: 800; color: white; text-shadow: 0 0 25px var(--accent); }
.price.featured {
  background: linear-gradient(145deg, #1e162b, #1a1122); border: 2.5px solid var(--accent);
  box-shadow: 0 0 40px rgba(255,77,166,0.4); animation: featuredPulse 3s infinite;
}
@keyframes featuredPulse {
  0% { border-color: var(--accent); box-shadow: 0 0 25px var(--accent); }
  50% { border-color: #ffb3d9; box-shadow: 0 0 45px #ff80bf; }
  100% { border-color: var(--accent); box-shadow: 0 0 25px var(--accent); }
}

/* ОТЗЫВЫ */
.review-card { background: rgba(30,30,40,0.6); backdrop-filter: blur(10px); border-radius: 32px; padding: 32px; }
.avatar {
  width: 52px; height: 52px; background: linear-gradient(145deg, var(--accent), #c445ff);
  border-radius: 60px; display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 1.4rem; animation: spinSlow 10s infinite linear;
}
@keyframes spinSlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.stars { color: #ffb347; letter-spacing: 5px; }

/* CTA И ФОРМА */
.cta {
  text-align: center; padding: 110px 0;
  background: radial-gradient(circle at 50% -10%, rgba(255,77,166,0.3), transparent 70%);
  position: relative; overflow: hidden;
}
.form-wrapper {
  max-width: 480px; margin: 0 auto; background: rgba(15,15,25,0.6);
  backdrop-filter: blur(12px); padding: 40px; border-radius: 48px;
  border: 1px solid rgba(255,255,255,0.1);
  transform-style: preserve-3d; will-change: transform;
}
.input-group { position: relative; margin-bottom: 24px; }
.input-group input {
  width: 100%; padding: 16px 22px; border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3);
  color: white; font-size: 1rem; transition: 0.3s; outline: none;
}
.input-group label {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--muted); transition: 0.2s; pointer-events: none;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 0; transform: translateY(-100%) scale(0.8); background: var(--bg);
  padding: 0 5px; color: var(--accent);
}
.input-highlight {
  position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--accent); transition: 0.3s;
}
.input-group input:focus ~ .input-highlight { width: 100%; left: 0; }

/* КАРТА */
.map-placeholder { padding: 60px 0; background: #0f0f17; }
.map-overlay {
  height: 300px; border-radius: 40px; background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(255,77,166,0.3); color: var(--muted);
  font-size: 1.5rem; gap: 10px;
}

/* ПОПАП */
.popup {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(15px);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.popup-box {
  background: rgba(22,22,34,0.9); backdrop-filter: blur(20px); padding: 48px 40px;
  border-radius: 56px; text-align: center; border: 1px solid rgba(255,77,166,0.5);
  box-shadow: 0 40px 60px rgba(0,0,0,0.8); max-width: 450px;
}
.timer { font-size: 3.5rem; font-weight: 900; color: var(--accent); text-shadow: 0 0 30px; }

/* ФУТЕР */
.footer { background: #0c0c14; padding: 60px 0 20px; border-top: 2px solid var(--accent); box-shadow: 0 -10px 30px rgba(0,0,0,0.5); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 20px; color: white; position: relative; display: inline-block; }
.footer-col h4::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 40px; height: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.footer-logo {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(145deg, #fff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 15px;
}
.footer-col p { line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--muted); text-decoration: none; transition: 0.2s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.contact-info li { display: flex; align-items: center; gap: 10px; }
.contact-info i { color: var(--accent); width: 20px; }
.footer-social { margin-top: 20px; display: flex; gap: 15px; }
.footer-social a { color: var(--muted); font-size: 1.8rem; transition: 0.2s; }
.footer-social a:hover { color: var(--accent); text-shadow: 0 0 20px var(--accent); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--muted); font-size: 0.9rem; }

/* АНИМАЦИИ ПОЯВЛЕНИЯ */
.fade-up { opacity: 0; transform: translateY(35px); transition: opacity 0.8s, transform 0.8s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* АДАПТИВ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .neon-title { font-size: 3.2rem; }
  h2 { font-size: 2.5rem; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}