/* ============================================
   ПЕРЕМЕННЫЕ И СБРОС
   ============================================ */
:root {
  --color-primary: #b8860b;
  --color-primary-light: #daa520;
  --color-primary-dark: #8b6914;
  --color-bg: #faf8f5;
  --color-bg-dark: #1a1a2e;
  --color-text: #2c2c2c;
  --color-text-light: #666;
  --color-white: #ffffff;
  --color-cream: #f5f0e8;
  --color-accent: #c9a96e;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--color-primary-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition);
}

.navbar.scrolled .nav-link {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Бургер-меню */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-text);
}

/* ============================================
   HERO СЕКЦИЯ
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    linear-gradient(135deg,
      rgba(26, 26, 46, 0.85),
      rgba(44, 44, 84, 0.75)),
    url('/images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--color-bg-dark);
  text-align: center;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.hero-btn {
  display: inline-block;
  padding: 16px 48px;
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ============================================
   СЕКЦИЯ "ОБО МНЕ"
   ============================================ */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-text);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

.about {
  padding: 120px 0;
  background: var(--color-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image-frame {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius);
  z-index: -1;
}

.about-image-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.about-stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ГАЛЕРЕЯ
   ============================================ */
.gallery {
  padding: 120px 0;
  background: var(--color-cream);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-white);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--color-white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.gallery-item-overlay p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Пустая галерея */
.gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-light);
  grid-column: 1 / -1;
}

.gallery-empty i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.gallery-empty p {
  font-size: 1.1rem;
}

/* ============================================
   КОНТАКТЫ
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--color-bg-dark);
  text-align: center;
}

.contact .section-title {
  color: var(--color-white);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  transform: translateY(-5px) scale(1.1);
}

.social-link.instagram:hover { background: #e4405f; border-color: #e4405f; }
.social-link.vk:hover { background: #4a76a8; border-color: #4a76a8; }
.social-link.telegram:hover { background: #0088cc; border-color: #0088cc; }
.social-link.youtube:hover { background: #ff0000; border-color: #ff0000; }
.social-link.email:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* ============================================
   ФУТЕР
   ============================================ */
.footer {
  padding: 30px 0;
  text-align: center;
  background: #12121f;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-made {
  margin-top: 8px;
  font-size: 0.8rem;
}

/* ============================================
   ЛАЙТБОКС
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  margin-top: 15px;
  color: var(--color-white);
}

.lightbox-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.lightbox-info p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 5px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 15px;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    color: var(--color-text) !important;
    font-size: 1.1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-frame img {
    height: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .gallery-item img {
    height: 250px;
  }

  .gallery-item-overlay {
    transform: translateY(0);
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ПЛАВНЫЕ ПОЯВЛЕНИЯ
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}