/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== STICKY HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled { box-shadow: 0 2px 20px var(--shadow-color); }

.header-logo img { height: 72px; width: auto; }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-phone {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.header-cta {
  background: var(--gold);
  color: var(--btn-text);
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}
.header-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== SECTION BASE ===== */
.section { padding: 5rem 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ===== GOLD DIVIDER ===== */
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* ===== CTA BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--btn-text);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--gold); color: var(--btn-text); }

/* ===== BADGE / ТРИГГЕР ===== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.trust-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

/* ===== COUNTERS (преимущества) ===== */
.counters-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.counter-item { text-align: center; }
.counter-num {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.counter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ===== ADVANTAGES ICONS ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .advantages-grid { grid-template-columns: 1fr; } }
.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}
.advantage-icon {
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.advantage-icon svg { width: 36px; height: 36px; }
.advantage-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.advantage-text { font-size: 0.9rem; color: var(--text-muted); }

/* ===== PRICES ===== */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
}
.price-card.featured { border-color: var(--gold); }
.price-name { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.price-amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--gold); line-height: 1; }
.price-per { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.price-includes { list-style: none; }
.price-includes li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-includes li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.price-cta { display: block; margin-top: 1.5rem; text-align: center; }

/* ===== HOW WE WORK ===== */
.steps-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 3rem;
  position: relative;
}
.step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.5rem;
  top: 1.5rem;
  color: var(--gold);
  font-size: 1.2rem;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--btn-text);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.step-text { font-size: 0.82rem; color: var(--text-muted); }

/* ===== EXTRA SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.service-icon {
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 36px; height: 36px; }
.service-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.service-price { font-size: 0.85rem; color: var(--gold); }

/* ===== REVIEWS ===== */
.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin-top: 2rem;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
}
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-text { font-size: 0.92rem; color: var(--text-primary); line-height: 1.6; margin-bottom: 1rem; }
.review-author { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* ===== BOOKING FORM ===== */
.booking-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-group input,
.form-group select {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-submit { }
.form-submit .btn-primary { width: 100%; }
.form-messengers {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.form-or { font-size: 0.82rem; color: var(--text-muted); }
.messenger-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.messenger-icon:hover { border-color: var(--gold); color: #fff; }
.messenger-icon svg { width: 18px; height: 18px; }
.messenger-icon--max img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.messenger-icon--max:hover img { opacity: 1; }
.contact-messengers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===== MAP SECTION ===== */
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  height: 380px;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

.contacts-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.contact-item { }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; margin-bottom: 0.35rem; }
.contact-value { font-size: 0.95rem; color: var(--text-primary); }

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== FLOATING MESSENGERS ===== */
.float-messengers {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
}
.float-links {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.22s, transform 0.22s;
}
.float-messengers.open .float-links {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.float-toggle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
}
.float-toggle:hover { transform: scale(1.08); }
.float-toggle svg { width: 26px; height: 26px; }
.float-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(26,18,8,0.35);
  transition: transform 0.2s;
  text-decoration: none;
  background: var(--gold);
  color: #fff;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 22px; height: 22px; }
.float-btn img { width: 22px; height: 22px; object-fit: contain; }

/* ===== CAROUSEL NAVIGATION ===== */
.carousel-wrap { position: relative; }
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px var(--shadow-color);
}
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-prev:hover,
.carousel-next:hover { background: var(--gold); color: var(--btn-text); }
.carousel-prev svg,
.carousel-next svg { width: 18px; height: 18px; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header { padding: 0.65rem 1rem; }
  .header-phone { display: none; }
  .section { padding: 3.5rem 0; }
  .section-inner { padding: 0 1rem; }
  .steps-row { flex-direction: column; gap: 1.5rem; }
  .step:not(:last-child)::after { content: '↓'; right: auto; top: auto; bottom: -1.2rem; left: 50%; transform: translateX(-50%); }
  .counters-row { gap: 1.5rem; justify-content: center; }
  .booking-form { grid-template-columns: 1fr 1fr; }
  .form-submit { grid-column: 1 / -1; }
  .contacts-row { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .carousel-prev { left: 4px; top: 35%; }
  .carousel-next { right: 4px; top: 35%; }
  .carousel-prev,
  .carousel-next { width: 32px; height: 32px; }
}

@media (max-width: 540px) {
  .booking-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .float-messengers { bottom: 1rem; right: 0.75rem; }
  .float-toggle { width: 48px; height: 48px; }
  .float-btn { width: 44px; height: 44px; }
}

/* iOS viewport fix */
@supports (-webkit-touch-callout: none) {
  .hero { min-height: -webkit-fill-available; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 9, 7, 0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0.25rem 0.5rem;
}
.lightbox-close:hover { color: #fff; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 2rem;
  width: 3rem;
  height: 5rem;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(197,168,100,0.35); }
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-prev, .lightbox-next { width: 2.2rem; height: 4rem; font-size: 1.5rem; }
}

/* ===== GALLERY VIDEO ===== */
.gallery-slide--video video {
  height: 480px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: #0a0a0a;
  border-radius: 6px;
  display: block;
}
.masonry-item--video {
  grid-column: span 1;
}
.masonry-item--video video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: contain;
  background: #0a0a0a;
  border-radius: 6px;
  display: block;
}
@media (max-width: 640px) {
  .gallery-slide--video video { height: 340px; max-width: 200px; }
}


/* объект-позиция для конкретных форматов */
#den-rozhdeniya .event-img img,
#svadba .event-img img { object-position: center 30%; }
