/* Pastel Garden — "Елена · арт" v2 (mobile-perfect) */
:root {
  --t-bg: #FFF9FB;
  --t-bg-alt: #FFF0F5;
  --t-text: #3D2B3A;
  --t-text-muted: #8B7D8A;
  --t-accent: #D4739D;
  --t-accent-hover: #C45F8A;
  --t-surface: #FFF0F5;
  --t-border: #F0D4E0;
  --t-gold: #D4AF37;
  --t-font-heading: 'Comfortaa', cursive;
  --t-font-body: 'Nunito', 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, #FFF0F5 0%, #F8D0E0 25%, #FFF5F8 50%, #F0C4D8 75%, #FFF0F5 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(212,115,157,0.12); }

/* ---- Referral badge ---- */
.referral-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(212,115,157,0.1);
  color: var(--t-accent);
}

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

/* ---- Portfolio fullwidth cards ---- */
.portfolio-swiper .swiper-slide {
  width: auto;
}
.portfolio-card {
  width: 260px;
  height: 340px;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}
.portfolio-card:hover {
  transform: scale(1.03);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(61,43,58,0.7) 0%, transparent 50%);
}

/* ---- Calculator ---- */
.calc-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--t-border);
  cursor: pointer;
  transition: all 0.3s;
  background: var(--t-bg);
}
.calc-option:hover {
  border-color: rgba(212,115,157,0.4);
}
.calc-option.selected {
  border-color: var(--t-accent);
  background: rgba(212,115,157,0.05);
}
.calc-option input[type="checkbox"] {
  accent-color: var(--t-accent);
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.calc-total {
  font-size: 2rem;
  font-weight: 700;
  color: var(--t-accent);
  font-family: var(--t-font-heading);
}

/* ---- 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;
}
.faq-item summary:hover { background: var(--t-surface); }
.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;
}

/* ---- Reviews ---- */
.reviews-swiper .swiper-pagination-bullet-active {
  background: var(--t-accent) !important;
}
.portfolio-swiper .swiper-pagination-bullet-active {
  background: var(--t-accent) !important;
}

/* ---- 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.15);
  transition: transform 0.3s;
}
.floating-cta a:hover { transform: scale(1.1); }

/* ==========================================
   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(255,249,251,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-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  }
  .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)); }

  /* Portfolio card smaller */
  .portfolio-card { width: 220px; height: 280px; }

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

/* ==========================================
   SMALL SCREENS (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
  .portfolio-card { width: 200px; height: 260px; }
}
