/* ============================================================
   Сигма Технолоджис — кастомные стили
   ============================================================ */

:root {
  --sigma-primary: #4f46e5;
  --sigma-primary-dark: #3730a3;
  --sigma-accent: #06b6d4;
  --sigma-dark: #0f172a;
  --sigma-darker: #0a0f1f;
  --sigma-soft: #c7d2fe;
  --sigma-body: #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--sigma-body);
  color: #1e293b;
  padding-top: 76px;
}

.text-primary-soft { color: var(--sigma-soft) !important; }

/* Лого */
.sigma-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--sigma-primary), var(--sigma-accent));
  color: #fff;
  border-radius: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .4);
}

/* Навбар */
.sigma-nav {
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(10px);
  padding: .65rem 0;
  transition: padding .25s ease, background .25s ease;
}
.sigma-nav.scrolled { padding: .35rem 0; background: rgba(15, 23, 42, .98); }
.sigma-nav .nav-link { color: rgba(255, 255, 255, .75); font-weight: 500; padding: .5rem 1rem; transition: color .15s; }
.sigma-nav .nav-link:hover, .sigma-nav .nav-link.active { color: #fff; }
.sigma-nav .nav-link.active { position: relative; }
.sigma-nav .nav-link.active::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .15rem;
  height: 2px; background: var(--sigma-accent); border-radius: 2px;
}

/* HERO */
.sigma-hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(6, 182, 212, .25), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(79, 70, 229, .35), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.sigma-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.sigma-hero .container { position: relative; z-index: 1; }
.sigma-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.sigma-hero .badge-soft {
  background: rgba(255, 255, 255, .1); color: var(--sigma-soft);
  border: 1px solid rgba(255, 255, 255, .15); padding: .5rem 1rem; border-radius: 999px;
}
.btn-light { font-weight: 600; }
.btn-outline-light { font-weight: 600; }

/* Секции */
section { scroll-margin-top: 90px; }
.sigma-section { padding: 5rem 0; }
.sigma-section-sm { padding: 3rem 0; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--sigma-primary);
}
.section-title { font-weight: 800; letter-spacing: -.02em; }

/* Карточка услуги */
.service-card {
  border: 1px solid #e2e8f0; border-radius: 16px; padding: 2rem; height: 100%;
  background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(79, 70, 229, .25); border-color: rgba(79, 70, 229, .3); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(6, 182, 212, .12));
  color: var(--sigma-primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.25rem;
}

/* Преимущества */
.advantage-card { text-align: center; padding: 1.75rem 1rem; }
.advantage-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--sigma-primary), var(--sigma-accent));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .5);
}

/* Статистика */
.sigma-stats { background: var(--sigma-dark); color: #fff; }
.stat-value { font-size: 2.75rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat-label { color: var(--sigma-soft); font-size: .95rem; }

/* Отзывы */
.review-card {
  background: #fff; border-radius: 16px; padding: 2rem; height: 100%;
  border: 1px solid #e2e8f0; position: relative;
}
.review-card::before {
  content: '\201C'; position: absolute; top: -8px; left: 1.5rem;
  font-size: 4rem; color: var(--sigma-primary); opacity: .15; font-family: Georgia, serif; line-height: 1;
}
.review-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sigma-primary), var(--sigma-accent));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review-stars { color: #fbbf24; }

/* CTA-блок */
.sigma-cta {
  background:
    radial-gradient(700px 300px at 80% 100%, rgba(6, 182, 212, .3), transparent 60%),
    linear-gradient(135deg, var(--sigma-primary-dark), var(--sigma-dark));
  color: #fff; border-radius: 24px; padding: 3.5rem; position: relative; overflow: hidden;
}

/* Тарифы */
.plan-card {
  border: 1px solid #e2e8f0; border-radius: 20px; padding: 2.25rem; background: #fff; height: 100%;
  position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -16px rgba(15, 23, 42, .25); }
.plan-card.highlight {
  border-color: var(--sigma-primary); border-width: 2px;
  background: linear-gradient(180deg, #fff, #f5f3ff);
  box-shadow: 0 20px 50px -16px rgba(79, 70, 229, .4);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sigma-primary), var(--sigma-accent));
  color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .35rem 1rem; border-radius: 999px;
}
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--sigma-dark); }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 1rem; overflow: hidden;
}
.faq-item .accordion-button:not(.collapsed) { background: #f5f3ff; color: var(--sigma-primary-dark); font-weight: 600; }
.faq-item .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }

/* Auth */
.sigma-auth-wrap {
  min-height: calc(100vh - 76px);
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(6, 182, 212, .15), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(79, 70, 229, .15), transparent 60%),
    var(--sigma-body);
  padding: 3rem 0;
}
.sigma-auth-card {
  background: #fff; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .25);
  border: 1px solid #e2e8f0; overflow: hidden;
}
.auth-tab {
  flex: 1; padding: 1rem; text-align: center; cursor: pointer; font-weight: 600; color: #64748b;
  background: transparent; border: none; border-bottom: 3px solid transparent;
}
.auth-tab.active { color: var(--sigma-primary); border-bottom-color: var(--sigma-primary); background: #f5f3ff; }
.form-control:focus, .form-select:focus {
  border-color: var(--sigma-primary); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15);
}

/* Dashboard */
.sigma-dashboard { padding: 2rem 0 4rem; background: var(--sigma-body); min-height: calc(100vh - 76px); }
.dash-stat {
  background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid #e2e8f0; height: 100%;
}
.dash-stat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}
.dash-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sigma-primary), var(--sigma-accent));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem;
}
.progress { height: 8px; border-radius: 6px; }

/* Контактная страница */
.contact-info-card {
  background: var(--sigma-dark); color: #fff; border-radius: 20px; padding: 2.5rem; height: 100%;
}
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--sigma-soft);
}

/* Футер */
.sigma-footer { background: var(--sigma-darker); }
.sigma-footer-links a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .15s; }
.sigma-footer-links a:hover { color: #fff; }
.sigma-footer-links li { margin-bottom: .5rem; }

/* Утилиты */
.text-gradient {
  background: linear-gradient(135deg, var(--sigma-primary), var(--sigma-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .sigma-hero { padding: 4rem 0 3rem; }
  .sigma-cta { padding: 2rem; border-radius: 16px; }
  .sigma-section { padding: 3.5rem 0; }
}
