/* Dark Luxe — "Премиум-вечер" v3 (mobile-perfect) */
:root {
  --t-bg: #0D0D0D;
  --t-bg-alt: #161616;
  --t-text: #F0ECE4;
  --t-text-muted: #A09888;
  --t-accent: #C9A84C;
  --t-accent-hover: #B8952E;
  --t-surface: #1A1A1A;
  --t-border: #2A2A2A;
  --t-gold: #D4AF37;
  --t-font-heading: 'Playfair Display', serif;
  --t-font-body: 'Raleway', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

/* ---- Hero shimmer bg ---- */
@keyframes heroShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-bg {
  background: linear-gradient(135deg, #0D0D0D 0%, #1a1510 25%, #0D0D0D 50%, #1c1608 75%, #0D0D0D 100%);
  background-size: 400% 400%;
  animation: heroShimmer 12s ease infinite;
}

/* ---- Float anim ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---- Nav scrolled shadow ---- */
.nav-scrolled { box-shadow: 0 2px 20px rgba(201,168,76,0.12); }

/* ---- Mobile menu overlay ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--t-text);
  text-decoration: none;
  font-family: var(--t-font-heading);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--t-accent); }

/* ---- Section divider ---- */
.section-divider {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--t-accent), transparent);
  margin: 0 auto 1.5rem;
}

/* ---- Masonry grid ---- */
.masonry-grid {
  columns: 2;
  column-gap: 1rem;
}
@media (min-width: 768px) {
  .masonry-grid { columns: 3; }
}
.masonry-grid .masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.masonry-grid .masonry-item:hover {
  transform: scale(1.02);
  transition: transform 0.3s;
}

/* ---- Price card featured glow ---- */
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.15), 0 0 40px rgba(201,168,76,0.08); }
  50%      { box-shadow: 0 0 30px rgba(201,168,76,0.25), 0 0 60px rgba(201,168,76,0.12); }
}
.price-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  transition: all 0.3s;
  position: relative;
}
.price-card:hover {
  border-color: var(--t-accent);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--t-accent);
  animation: featuredGlow 3s ease-in-out infinite;
}
.price-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--t-accent);
  color: var(--t-bg);
}

/* ---- FAQ ---- */
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.75rem;
  transition: background 0.3s;
  min-height: 48px;
  font-size: 0.95rem;
  color: var(--t-text);
}
.faq-item summary:hover { background: rgba(201,168,76,0.05); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-chevron {
  transition: transform 0.3s;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
  color: var(--t-accent);
}

/* ---- Reviews ---- */
.review-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  font-family: var(--t-font-heading);
  color: var(--t-accent);
  opacity: 0.3;
}

/* ---- Guarantee ---- */
.guarantee-banner::before {
  content: '\2713';
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 8rem;
  color: var(--t-accent);
  opacity: 0.08;
  font-weight: 900;
}

/* ---- Floating desktop CTA ---- */
.floating-cta a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.floating-cta a:hover { transform: scale(1.1); }

/* ---- Swiper dark overrides ---- */
.dark-swiper .swiper-pagination-bullet {
  background: var(--t-text-muted) !important;
}
.dark-swiper .swiper-pagination-bullet-active {
  background: var(--t-accent) !important;
}

/* ==========================================
   MOBILE (max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
  /* Sticky CTA bar bottom */
  .mobile-cta-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    background: rgba(13,13,13,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.625rem 0.75rem;
    padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
    border-top: 1px solid var(--t-accent);
    box-shadow: 0 -4px 20px rgba(201,168,76,0.1);
  }
  .mobile-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  /* Hide floating desktop buttons */
  .floating-cta { display: none !important; }

  /* Body padding for sticky bar */
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }

  /* Guarantee smaller */
  .guarantee-banner::before { font-size: 5rem; }

  /* FAQ smaller padding */
  .faq-item summary { padding: 0.875rem 1rem; font-size: 0.875rem; }

  /* Price card */
  .price-card { padding: 1.5rem; }
}

/* ==========================================
   SMALL SCREENS (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
  .masonry-grid { columns: 2; column-gap: 0.5rem; }
  .masonry-grid .masonry-item { margin-bottom: 0.5rem; }
  .price-card { padding: 1.25rem; }
  .review-card { padding: 1.25rem; }
}
