/* ========= Социалити — единый современный стиль для всех страниц ========= */

/* База и якоря */
html { 
  scroll-behavior: smooth; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
section[id] { scroll-margin-top: 88px; }

:root{
  --brand:#B40F78;
  --brand-light:#E91E8C;
  --brand-dark:#8B0C5F;
  --cta:#10b981;
  --cta-hover:#059669;
  --cta-light:#34d399;
  --soft:#f8fafc;
  --soft-alt:#f1f5f9;
  --border:#e2e8f0;
  --border-light:#f1f5f9;
  --text:#0f172a;
  --text-muted:#475569;
  --text-light:#64748b;
  --white:#ffffff;
  --black:#0f172a;
  --shadow-sm:0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow:0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md:0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg:0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl:0 25px 50px -12px rgba(0,0,0,0.25);
}

body { 
  color: var(--text); 
  background: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Контейнеры и секции */
.container { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}
.section { padding: 5rem 0; }
.section-lg { padding: 7rem 0; }
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-lg { padding: 4rem 0; }
}

/* Hero секции - темные акценты для продаж */
.hero-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(180, 15, 120, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(180, 15, 120, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Светлые секции */
.section-light {
  background: var(--white);
  color: var(--text);
}
.section-soft {
  background: var(--soft);
  color: var(--text);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.gradient-text,
.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift { 
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stat-number { 
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.muted { color: var(--text-muted); }

/* Кнопки - современные и продающие */
.btn { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}
.btn:focus { 
  outline: 2px solid rgba(180, 15, 120, 0.5);
  outline-offset: 2px;
}

.btn-primary { 
  color: var(--white);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  box-shadow: 0 10px 25px -5px rgba(180, 15, 120, 0.4), 0 4px 6px -2px rgba(180, 15, 120, 0.2);
}
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -5px rgba(180, 15, 120, 0.5), 0 8px 12px -4px rgba(180, 15, 120, 0.3);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary { 
  background: var(--white);
  color: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { 
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline { 
  border: 2px solid var(--cta);
  color: var(--cta);
  background: var(--white);
}
.btn-outline:hover { 
  background: var(--cta);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-soft { 
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.btn-soft:hover { 
  background: #d1fae5;
  transform: translateY(-2px);
}

.btn-pill { border-radius: 9999px; }
.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

/* Карточки - современные с тенями */
.card { 
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.card:hover { 
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-light);
}

.card-dark {
  background: var(--black);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}
.card-dark:hover {
  border-color: var(--brand-light);
  box-shadow: 0 25px 50px -12px rgba(180, 15, 120, 0.3);
}

.card-gradient {
  background: linear-gradient(135deg, rgba(180, 15, 120, 0.1) 0%, rgba(233, 30, 140, 0.1) 100%);
  border: 2px solid rgba(180, 15, 120, 0.3);
}

.card-hover { 
  transition: all 0.3s ease;
}
.card-hover:hover { 
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.case-card { 
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card { 
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.price-card:hover { 
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-light);
}

/* Бейджи и табы */
.stat-badge { 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-weight: 600;
  font-size: 0.875rem;
  color: #065f46;
}
.badge-soft { 
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.tab-btn { 
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--soft);
}
.tab-btn:hover { 
  background: var(--soft-alt);
}
.tab-btn.active { 
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* Адаптивная сетка */
.grid-responsive {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Иконки */
[data-lucide] { 
  width: 1.25em;
  height: 1.25em;
  stroke-width: 2;
  vertical-align: -0.125em;
}

/* FAQ */
.faq-item { 
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.2s;
  background: var(--white);
}
.faq-item:hover { 
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}
.faq-question { 
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.faq-answer { 
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.7;
}

/* Утилиты */
.quote-mark { 
  font-size: 4rem;
  line-height: 0;
  color: rgba(180, 15, 120, 0.2);
  font-family: Georgia, serif;
}
.timeline-dot { 
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 6px;
}
.timeline-line { 
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--brand) 0%, transparent 100%);
}

/* Контент */
.prose p { 
  color: var(--text);
  line-height: 1.75;
  margin: 1.25rem 0;
}
.prose h2 { 
  font-weight: 800;
  font-size: 1.875rem;
  margin: 2.5rem 0 1.25rem;
  color: var(--text);
}
.prose h3 { 
  font-weight: 700;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}
.prose ul { 
  list-style: disc inside;
  color: var(--text);
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}
.prose li { 
  margin: 0.5rem 0;
}
.prose a { 
  color: var(--brand);
  text-decoration: underline;
  font-weight: 600;
}
.prose a:hover {
  color: var(--brand-light);
}
.prose blockquote { 
  border-left: 4px solid var(--brand);
  background: #fef3f2;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  color: var(--text);
  margin: 1.5rem 0;
}

/* Доступность */
.skip-link { 
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus { 
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--brand);
  border-radius: 8px;
  z-index: 1000;
  color: var(--brand);
}

/* Дополнительные утилиты */
.trust-badge { 
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.step-number { 
  width: 3rem;
  height: 3rem;
  background: var(--brand);
  color: var(--white);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
}
.wrap { 
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
  .card {
    border-radius: 16px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  .section { padding: 2.5rem 0; }
  .section-lg { padding: 3.5rem 0; }
}

/* Footer */
footer img { filter: brightness(0) invert(1); }
footer a { transition: color 0.2s ease, background 0.2s ease; }
footer i[data-lucide] { stroke-width: 2; }

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Градиентные фоны для акцентов */
.bg-gradient-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
}
.bg-gradient-soft {
  background: linear-gradient(135deg, var(--soft) 0%, var(--soft-alt) 100%);
}

.cta-unified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #B40F78 0%, #E91E8C 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(180,15,120,.32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta-unified:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(180,15,120,.4);
  filter: saturate(1.06);
}
.illustration-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  background: #fff7fb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bg-illu-before {
  background-image:
    radial-gradient(circle at 30% 20%, rgba(180,15,120,0.06), transparent 55%),
    url('/assets/illustrations/before-after.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(1100px, 90%) auto;
}
.bg-illu-team {
  background-image:
    radial-gradient(ellipse at center, rgba(180,15,120,0.04), transparent 70%),
    url('/assets/illustrations/team-map.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(1000px, 90%) auto;
}
.bg-illu-guarantee {
  background-image:
    radial-gradient(circle at 50% 20%, rgba(180,15,120,0.05), transparent 60%),
    url('/assets/illustrations/guarantee.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(900px, 90%) auto;
}
@media (max-width: 768px) {
  .bg-illu-before,
  .bg-illu-team,
  .bg-illu-guarantee {
    background-position: center top;
    background-size: min(720px, 100%) auto;
  }
}

/* ===== Theme A: Editorial / Clean ===== */
.theme-a body,
body.theme-a {
  background: #ffffff;
}
body.theme-a {
  color: #0f172a;
}
body.theme-a h1,
body.theme-a h2,
body.theme-a h3 {
  letter-spacing: -0.03em;
}
body.theme-a .card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
}
body.theme-a .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.10);
}
body.theme-a .card-dark {
  background: #0b0f14;
  border-color: #111827;
}
body.theme-a .btn-primary,
body.theme-a .cta-unified {
  background: #0b0f14;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}
body.theme-a .btn-primary:hover,
body.theme-a .cta-unified:hover {
  background: #111827;
}
body.theme-a .btn-secondary {
  border-color: #0b0f14;
  color: #0b0f14;
}
body.theme-a .btn-secondary:hover {
  background: #0b0f14;
  color: #fff;
}

/* ===== Theme B: Soft Gradient / Glass ===== */
body.theme-b {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
body.theme-b .section-light,
body.theme-b .section-soft,
body.theme-b section.bg-white {
  background: transparent;
}
body.theme-b .card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.08);
  backdrop-filter: blur(6px);
}
body.theme-b .card-dark {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}
body.theme-b .btn-primary,
body.theme-b .cta-unified {
  background: linear-gradient(135deg, #B40F78 0%, #E91E8C 100%);
  box-shadow: 0 18px 36px rgba(180, 15, 120, 0.35);
}
body.theme-b .btn-primary:hover,
body.theme-b .cta-unified:hover {
  filter: brightness(1.04);
}
body.theme-b .card:hover {
  transform: translateY(-6px);
}

/* ===== Theme A: Stronger Editorial ===== */
body.theme-a {
  background: #f6f7fb;
}
body.theme-a .section-light {
  background: #ffffff;
}
body.theme-a .section-soft {
  background: #f3f4f8;
}
body.theme-a .hero-dark {
  background: #ffffff;
  color: #0b0f14;
}
body.theme-a .hero-dark * {
  color: #0b0f14;
}
body.theme-a .hero-dark .text-gradient {
  background: linear-gradient(135deg, #0b0f14 0%, #0b0f14 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.theme-a .card-dark {
  background: #0b0f14;
}

/* ===== Theme B: Stronger Soft / Glass ===== */
body.theme-b {
  background: radial-gradient(1200px 700px at 20% -10%, rgba(180,15,120,0.18), transparent 55%),
              radial-gradient(1200px 700px at 90% 10%, rgba(233,30,140,0.12), transparent 55%),
              #f6f7fb;
}
body.theme-b .hero-dark {
  background: radial-gradient(600px 300px at 20% 20%, rgba(233,30,140,0.25), transparent 60%),
              radial-gradient(700px 380px at 80% 30%, rgba(180,15,120,0.25), transparent 60%),
              #0b0f14;
}
body.theme-b .card {
  border-radius: 28px;
}
body.theme-b .card-dark {
  background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
}

/* About page spacing */
.about-section {
  padding: 5.5rem 0;
}
@media (max-width: 768px) {
  .about-section {
    padding: 4rem 0;
  }
}
.about-section > .max-w-6xl,
.about-section > .max-w-5xl,
.about-section > .max-w-4xl,
.about-section > .max-w-3xl,
.about-section > .max-w-2xl {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .about-section > .max-w-6xl,
  .about-section > .max-w-5xl,
  .about-section > .max-w-4xl,
  .about-section > .max-w-3xl,
  .about-section > .max-w-2xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
