/*
 * BK Agency — Main Stylesheet
 * Версия: 1.3
 * Описание: Премиум стили для ивент-агентства.
 * Используется совместно с WordPress + Elementor.
 */

/* ========== CSS-переменные ========== */
:root {
  --gold: #C9A96E;
  --gold-light: #E8D5B7;
  --dark: #0F0F0F;
  --dark-secondary: #1A1A1A;
  --dark-tertiary: #2A2A2A;
  --light: #F5F0EB;
  --text-muted: #888888;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== Базовый сброс ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== Кастомный скроллбар ========== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ========== Навигация ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s var(--transition);
}

.nav.scrolled {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 5%;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-logo span {
  color: var(--light);
  font-weight: 400;
}

/* Навигация через WordPress-меню */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

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

/* Кнопка в шапке */
.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 12px 30px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transition: left 0.4s var(--transition);
  z-index: -1;
}

.nav-cta:hover {
  color: var(--dark);
}

.nav-cta:hover::before {
  left: 0;
}

/* Бургер-меню */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--light);
  transition: all 0.3s;
}

/* ========== Hero-секция ========== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,15,15,0.9) 0%, rgba(15,15,15,0.7) 100%),
              url('https://bkagency.ru/wp-content/uploads/2026/07/hero-bg.webp') center/cover;
  filter: brightness(0.6);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(15,15,15,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.3s forwards;
  letter-spacing: 3px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title .highlight {
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.9s forwards;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 16px 40px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--light);
  padding: 16px 40px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.4s var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Исправленный hero-scroll (строго по центру) */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.7); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Общие стили секций ========== */
section {
  padding: 120px 5%;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* ========== О компании ========== */
.about {
  background: var(--dark-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  width: 80%;
  height: 80%;
  object-fit: cover;
  top: 0;
  left: 0;
  filter: grayscale(30%);
  transition: filter 0.6s;
}

.about-img-main:hover {
  filter: grayscale(0%);
}

.about-img-secondary {
  position: absolute;
  width: 50%;
  height: 50%;
  object-fit: cover;
  bottom: 0;
  right: 0;
  border: 10px solid var(--dark-secondary);
  filter: grayscale(30%);
  transition: filter 0.6s;
}

.about-img-secondary:hover {
  filter: grayscale(0%);
}

.about-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 25px;
  line-height: 1.3;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ========== Статистика (без анимации накрутки, только reveal) ========== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* ========== Услуги ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--dark-secondary);
  padding: 50px 40px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.5s var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: rgba(201, 169, 110, 0.2);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 25px;
  transition: transform 0.5s;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s;
}

.service-link:hover {
  gap: 15px;
}

/* ========== Портфолио ========== */
.portfolio {
  background: var(--dark-secondary);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--gold);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.filter-btn.active::after,
.filter-btn:hover::after {
  width: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.5s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: transform 0.5s 0.1s;
}

.portfolio-item:hover .portfolio-category {
  transform: translateY(0);
}

.portfolio-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.5s 0.2s;
}

.portfolio-item:hover .portfolio-title {
  transform: translateY(0);
}

/* ========== Отзывы ========== */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 200px;
  color: rgba(201, 169, 110, 0.05);
  line-height: 1;
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  text-align: center;
  padding: 40px 20px;
}

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Контакты ========== */
.contact {
  background: var(--dark-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--dark);
  padding: 50px;
  border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px 20px;
  color: var(--light);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ========== Футер ========== */
.footer {
  background: var(--dark);
  padding: 80px 5% 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-brand span {
  color: var(--light);
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: var(--light);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== Анимации появления ========== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Мобильное меню ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: right 0.5s var(--transition);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ========== Компенсация фиксированной шапки ========== */
.site-main,
.elementor-page .elementor-section-wrap > .elementor-section:first-child,
body.elementor-page .elementor-section:first-of-type {
  padding-top: 90px;
}

/* ========== Адаптив ========== */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-images {
    height: 400px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 80px 5%;
  }

  .contact-form {
    padding: 30px;
  }
}

/* ========== Прелоадер ========== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s, visibility 0.8s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 4px;
  animation: loaderPulse 1.5s infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========== Попап ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-wrapper {
    background: var(--dark-secondary);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-overlay.active .popup-wrapper {
    transform: translateY(0);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
    background: none;
    border: none;
    padding: 5px;
}

.popup-close:hover {
    color: var(--gold);
}

.popup-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}