/* ===== Общие стили ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #f97316;
  --dark: #1e1b4b;
  --gray: #6b7280;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1f2937;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

.section {
  padding: 90px 0;
}

.section-label {
  display: inline-block;
  background: rgba(79,70,229,.1);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ===== Навигация ===== */
.navbar-custom {
  padding: 16px 0;
  transition: all .3s ease;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark) !important;
}

.navbar-custom .nav-link {
  font-weight: 500;
  color: var(--gray) !important;
  padding: 8px 16px !important;
  transition: color .2s;
}

.navbar-custom .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-custom .btn-primary {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
}

/* ===== Hero ===== */
#hero {
  padding: 160px 0 120px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 40%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79,70,229,.08) 0%, transparent 70%);
  border-radius: 50%;
}

#hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

#hero h1 {
  font-size: 3.25rem;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.15;
}

#hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero .lead {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 32px;
}

#hero .hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

#hero .hero-stat b {
  display: block;
  font-size: 1.75rem;
  color: var(--dark);
}

#hero .hero-stat span {
  font-size: .875rem;
  color: var(--gray);
}

/* ===== Услуги ===== */
#services {
  background: var(--white);
}

.service-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all .3s ease;
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.service-card .icon-circle.blue {
  background: #eef2ff;
  color: var(--primary);
}

.service-card .icon-circle.orange {
  background: #fff7ed;
  color: var(--accent);
}

.service-card .icon-circle.green {
  background: #ecfdf5;
  color: #10b981;
}

.service-card .icon-circle.purple {
  background: #faf5ff;
  color: #8b5cf6;
}

.service-card .icon-circle.teal {
  background: #f0fdfa;
  color: #14b8a6;
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
  font-size: .95rem;
  margin: 0;
}

/* ===== Кейсы ===== */
#cases {
  background: var(--light-bg);
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px 24px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: all .3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-card .case-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.case-card .case-desc {
  color: var(--gray);
  font-size: .9rem;
  margin: 0;
  line-height: 1.35;
}

/* ===== Преимущества ===== */
#advantages {
  background: var(--white);
}

.advantage-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.advantage-item .adv-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #eef2ff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.advantage-item h5 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.advantage-item p {
  color: var(--gray);
  font-size: .9rem;
  margin: 0;
}

/* ===== CTA / Форма ===== */
#contact {
  background: linear-gradient(135deg, var(--dark), #312e81);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  border-radius: 50%;
}

#contact .section-label {
  background: rgba(255,255,255,.15);
  color: #c7d2fe;
}

#contact .section-title {
  color: var(--white);
}

#contact .section-subtitle {
  color: #a5b4fc;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  color: var(--dark);
}

.contact-form-card .form-control {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .95rem;
  transition: all .3s;
}

.contact-form-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

.contact-form-card .btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  transition: all .3s;
}

.contact-form-card .btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.35);
}

.contact-form-card .privacy-note {
  font-size: .8rem;
  color: var(--gray);
  text-align: center;
  margin-top: 12px;
}

/* ===== Footer ===== */
#footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 40px 0;
}

#footer .footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

#footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s;
}

#footer a:hover {
  color: var(--white);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
}

.toast-custom {
  background: #10b981;
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideIn .4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Telegram-ссылки под кнопками ===== */
.nav-telegram-link {
  text-align: center;
}

.nav-telegram-link a,
.telegram-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.nav-telegram-link a:hover,
.telegram-link a:hover {
  color: var(--primary);
  text-decoration: none;
}

.telegram-link {
  text-align: center;
}
/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  #hero { padding: 130px 0 80px; }
  #hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  #hero .hero-stats { gap: 20px; flex-wrap: wrap; }
  .contact-form-card { padding: 24px; }
}