/* ============================================
   FABERLIC Landing — Общие стили
   ============================================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #1a1a2e; background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 1000; background: linear-gradient(90deg, #4c1d95, #5b21b6, #be185d); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.logo { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: 2px; }
.nav-desktop { display: none; gap: 4px; }
.nav-desktop a { color: rgba(255,255,255,0.9); font-size: 14px; padding: 8px 14px; border-radius: 999px; transition: all 0.3s; white-space: nowrap; }
.nav-desktop a:hover, .nav-desktop a.active { color: #fff; background: rgba(255,255,255,0.15); }
.header-right { display: flex; align-items: center; gap: 12px; }
.phone-link { display: none; color: rgba(255,255,255,0.9); font-size: 14px; transition: color 0.3s; }
.phone-link:hover { color: #fff; }
.btn-reg { background: #ec4899; color: #fff; font-size: 14px; font-weight: 700; padding: 8px 20px; border-radius: 999px; transition: background 0.3s; }
.btn-reg:hover { background: #db2777; }
.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile { display: none; background: #4c1d95; border-top: 1px solid rgba(255,255,255,0.1); padding: 8px 20px; }
.nav-mobile.active { display: block; }
.nav-mobile a { display: block; color: rgba(255,255,255,0.9); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px; }
.nav-mobile a:last-child { border-bottom: none; }
/* Ссылка поверх баннера */
.banner-register-link {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  cursor: pointer;
}
.banner-item {
  position: relative;
}

/* Адаптив для доп. баннера */
@media (max-width: 768px) {
  .banners-row-full {
    margin: 15px 0 !important;
  }
  .banners-row-full .banner-item {
    border-radius: 10px !important;
  }
}
/* === HERO PARALLAX === */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* на 20% выше для запаса */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
}

/* ===== HERO ===== */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(76,29,149,0.85), rgba(91,33,182,0.7), rgba(190,24,93,0.75)); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 60px 20px 140px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: #fff; margin-bottom: 8px; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: #f9a8d4; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero .highlight { color: #f9a8d4; }
.hero-subtitle { font-size: clamp(18px, 2.5vw, 24px); color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.hero-gift { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: #f9a8d4; margin-bottom: 30px; }
.hero-arrow { font-size: 36px; color: rgba(255,255,255,0.7); animation: bounce 2s infinite; }

/* FAQ Hero */
.faq-hero { min-height: 400px; background: linear-gradient(90deg, #4c1d95, #be185d); }
.faq-hero .hero-overlay { background: rgba(0,0,0,0.3); }

/* Promos Hero */
.promos-hero { 
    min-height: 400px; 
    background: transparent;  /* ← убрали красно-оранжевый */
}

.promos-hero .hero-overlay { 
    background: linear-gradient(135deg, rgba(255,20,147,0.30), rgba(138,43,226,0.30));  /* ← розово-фиолетовый */
}

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

/* ===== CARDS SECTION ===== */
.cards-section { background: linear-gradient(180deg, #f3e8ff, #fff); padding-bottom: 80px; }
.cards-grid { display: grid; gap: 30px; margin-top: -40px; position: relative; z-index: 20; }
.card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.12); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.card-image { position: relative; height: 260px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(236,72,153,0.4), transparent); }
.card-overlay-purple { background: linear-gradient(0deg, rgba(168,85,247,0.4), transparent); }
.card-overlay-gradient { background: linear-gradient(0deg, rgba(124,58,237,0.4), transparent); }
.card-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); color: #fff; font-size: 20px; font-weight: 700; }
.card-body { padding: 24px; }
.card-body p { margin-bottom: 14px; font-size: 15px; color: #4b5563; line-height: 1.6; }
.card-body strong { color: #111827; }
.btn-card { display: block; width: 100%; text-align: center; padding: 14px 24px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 700; transition: opacity 0.3s, transform 0.3s; margin-top: 20px; }
.btn-card:hover { opacity: 0.9; transform: scale(1.03); }
.btn-pink { background: linear-gradient(90deg, #ec4899, #db2777); }
.btn-purple { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.btn-gradient { background: linear-gradient(90deg, #7c3aed, #db2777); }

/* ===== BENEFITS SECTION ===== */
.benefits-section { padding: 80px 0; background: #fff; }
.section-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; text-align: center; color: #111827; margin-bottom: 8px; }
.section-title .highlight { color: #db2777; }
.divider { width: 96px; height: 4px; background: linear-gradient(90deg, #7c3aed, #db2777); margin: 0 auto 48px; border-radius: 2px; }
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.benefit-item { text-align: center; padding: 32px 24px; border-radius: 20px; background: linear-gradient(180deg, #f3e8ff, #fdf2f8); transition: box-shadow 0.3s; }
.benefit-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.benefit-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: linear-gradient(135deg, #7c3aed, #db2777); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 15px rgba(124,58,237,0.4); }
.benefit-item h3 { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.benefit-item p { font-size: 15px; color: #6b7280; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; background: linear-gradient(90deg, #4c1d95, #5b21b6, #be185d); text-align: center; }
.cta-section h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.highlight-light { color: #f9a8d4; }
.cta-subtitle { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 48px; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; border-radius: 999px; font-size: 16px; font-weight: 700; transition: transform 0.3s, box-shadow 0.3s; white-space: nowrap; }
.btn-cta:hover { transform: scale(1.05); }
.btn-cta-white { background: #fff; color: #7c3aed; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-cta-pink { background: #ec4899; color: #fff; box-shadow: 0 8px 30px rgba(236,72,153,0.4); }
.btn-large { font-size: 18px; padding: 18px 40px; }

/* Banners */
.banners-container { max-width: 900px; margin: 0 auto; }
.banners-row-2 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.banners-row-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.banner-item { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.25); transition: transform 0.3s; }
.banner-item:hover { transform: scale(1.01); }
.banner-item img { width: 100%; height: auto; }
/* Ссылка поверх баннера */
.banner-link-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
}
.banner-item {
  position: relative;
}

/* Адаптив для доп. баннера */
@media (max-width: 768px) {
  .banners-row-full {
    margin: 15px 0 !important;
  }
}

/* ===== FAQ SECTION ===== */
.faq-section { padding: 60px 0 80px; background: linear-gradient(180deg, #fff, #f3e8ff); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 16px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left; font-size: 17px; font-weight: 600; color: #1f2937; transition: background 0.3s; }
.faq-question:hover { background: #fdf2f8; }
.faq-question[aria-expanded="true"] { background: #fdf2f8; }
.faq-icon { font-size: 24px; color: #be185d; transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s; }
.faq-answer.active { max-height: 1000px; padding: 0 24px 24px; }
.faq-answer p { margin-bottom: 12px; color: #4b5563; line-height: 1.7; }
.faq-answer ul { padding-left: 24px; color: #4b5563; }
.faq-answer ul li { margin-bottom: 8px; }
.register-link { color: #be185d; font-weight: 600; text-decoration: underline; }
.register-link:hover { color: #4c1d95; }
.faq-cta { text-align: center; margin-top: 40px; }

/* ===== PROMOS SECTION ===== */
.promos-section { padding: 60px 0 80px; background: linear-gradient(180deg, #fff, #fef3c7); }
.promo-category { margin-bottom: 60px; }
.promo-category-title { font-size: 24px; font-weight: 700; color: #1f2937; margin-bottom: 8px; text-align: center; }
.promo-category-desc { text-align: center; color: #6b7280; margin-bottom: 24px; font-size: 16px; }
.promo-link-all { display: block; text-align: center; color: #be185d; font-weight: 600; margin-bottom: 24px; text-decoration: underline; }
.promo-link-all:hover { color: #4c1d95; }
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.promo-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s; display: flex; flex-direction: column; }
.promo-card:hover { transform: translateY(-4px); }
.promo-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.promo-label { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fce7f3; color: #be185d; text-transform: uppercase; }
.promo-label-accent { background: linear-gradient(90deg, #7c3aed, #be185d); color: #fff; }
.promo-image { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; background: #f9fafb; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.promo-image img { max-height: 100%; width: auto; }
.promo-info { flex: 1; }
.promo-art { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.promo-name { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 12px; line-height: 1.4; }
.promo-prices { display: flex; align-items: center; gap: 12px; }
.promo-old { font-size: 14px; color: #9ca3af; text-decoration: line-through; }
.promo-new { font-size: 20px; font-weight: 800; color: #be185d; }

/* ===== FOOTER ===== */
.footer { background: #111827; color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.footer-col h3 { font-size: 20px; font-weight: 700; color: #f472b6; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.footer-leader-id { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.footer-leader-name { color: #d1d5db; margin-bottom: 16px; font-size: 16px; }
.footer-contact { display: flex; align-items: center; gap: 8px; color: #d1d5db; margin-bottom: 10px; transition: color 0.3s; }
.footer-contact:hover { color: #f472b6; }
.footer-center { text-align: left; }
.footer-center a { display: block; color: #d1d5db; margin-bottom: 12px; transition: color 0.3s; }
.footer-center a:hover { color: #f472b6; }
.footer-right { text-align: left; }
.social-links { display: flex; justify-content: flex-start; gap: 12px; }
.social-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; transition: transform 0.3s, box-shadow 0.3s; }
.social-btn:hover { transform: scale(1.1); }
.social-max { background: linear-gradient(135deg, #f97316, #f59e0b); box-shadow: 0 4px 15px rgba(249,115,22,0.4); }
.social-vk { background: linear-gradient(135deg, #4a76a8, #2d5a8e); box-shadow: 0 4px 15px rgba(74,118,168,0.4); }
.social-ok { background: linear-gradient(135deg, #f97316, #dc2626); box-shadow: 0 4px 15px rgba(249,115,22,0.4); }
.copyright { border-top: 1px solid #374151; margin-top: 48px; padding: 24px 20px; text-align: left; }
.copyright p { color: #9ca3af; font-size: 14px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f3e8ff; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7c3aed, #db2777); border-radius: 5px; }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .phone-link { display: inline-block; }
  .menu-toggle { display: none; }
  .hero { min-height: 700px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); margin-top: -60px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-buttons { flex-direction: row; justify-content: center; }
  .banners-row-2 { grid-template-columns: repeat(2, 1fr); }
  .banners-row-3 { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-center { text-align: center; }
  .footer-right { text-align: right; }
  .social-links { justify-content: flex-end; }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Fade animation */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === Адаптив для главного баннера === */
@media (max-width: 768px) {
  .hero {
    min-height: auto !important;
    padding: 50px 0 100px !important;
  }
  
  .hero-content h1 {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }
  
  .hero-content h2 {
    font-size: 18px !important;
    margin-bottom: 15px !important;
  }
  
  .hero-subtitle,
  .hero-gift {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
  
  .hero-arrow {
    font-size: 24px !important;
    margin-top: 15px !important;
  }
  
  /* Кнопки в одну колонку на мобильном */
  .cta-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .btn-cta {
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
  }
}

/* === Мобильный: карточки не залезают на кнопки === */
@media (max-width: 768px) {
  .cards-grid {
    margin-top: 20px !important;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .hero {
    padding: 40px 0 30px !important;
  }
  
  .hero-content h1 {
    font-size: 22px !important;
  }
  
  .hero-content h2 {
    font-size: 16px !important;
  }
  
  .hero-subtitle,
  .hero-gift {
    font-size: 14px !important;
  }
}

/* === Адаптив баннера для мобильных === */
@media (max-width: 768px) {
  .hero {
    min-height: auto !important;
    padding: 60px 0 40px !important;
  }
  
  .hero-bg {
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
  
  .hero-content {
    padding: 20px 15px !important;
  }
  
  .hero h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  
  .hero h2 {
    font-size: 20px !important;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .hero-bg {
    background-size: 100% auto !important;
  }
  
  .hero {
    padding: 40px 0 30px !important;
  }
  
  .hero h1 {
    font-size: 22px !important;
  }
  
  .hero h2 {
    font-size: 18px !important;
  }
}