* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Базовые */
  --bg: #ffffff;
  --bg2: #f5f6f8;
  --bg3: #eceef2;

  /* Акценты */
  --accent: #4263A9;
  --accent-hover: #35508A;
  --accent2: #E0511F;
  --accent2-hover: #C4441A;
  --accent-soft: #EEF2FA;
  --accent2-soft: #FDF0EB;

  /* Градиенты */
  --gradient: linear-gradient(135deg, #E0511F 0%, #4263A9 30%, #3A5695 100%);
  --gradient-soft: linear-gradient(135deg, #FDF0EB 0%, #EEF2FA 40%, #E3E9F6 100%);

  /* Текст */
  --text: #2A2E38;
  --text2: #595E6B;
  --muted: #858A97;

  /* Границы и успех */
  --border: #E4E6EC;
  --success: #2E9E6B;

  /* Тени */
  --shadow: 0 4px 20px rgba(66, 99, 169, 0.06);
  --shadow-lg: 0 12px 40px rgba(66, 99, 169, 0.12);

  /* Тёмные фоны */
  --dark-1: #0F1729;
  --dark-2: #1A2238;
  --dark-3: #141B2E;
  --dark-4: #0D1421;

  /* Свечения */
  --glow-blue: rgba(66, 99, 169, 0.4);
  --glow-orange: rgba(224, 81, 31, 0.35);
  --glow-soft: rgba(120, 170, 255, 0.15);

  /* Паттерны */
  --grid-line: rgba(66, 99, 169, 0.08);
  --grid-line-strong: rgba(66, 99, 169, 0.15);
  --dot-color: rgba(66, 99, 169, 0.12);
  --dot-color-accent: rgba(224, 81, 31, 0.2);

  /* Светлые акценты для тёмного фона */
  --light-blue: #7AAAFF;
  --light-orange: #FF8A5C;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text2);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 500;
}

body.modal-open { overflow: hidden; }

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
}

.svg-icon { width: 32px; height: 32px; display: block; }
.svg-icon-lg { width: 40px; height: 40px; display: block; }
.svg-icon-sm { width: 22px; height: 22px; display: block; }

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; width: auto; display: block; transition: opacity .2s; }
.logo:hover img { opacity: 0.8; }

.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gradient);
  color: #fff;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all .25s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(66, 99, 169, 0.28);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.burger:hover span { background: var(--accent); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease;
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-head .logo img { height: 32px; }

.mobile-menu-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.mobile-menu-close:hover { background: var(--accent); }
.mobile-menu-close:hover svg { stroke: #fff; }
.mobile-menu-close svg {
  width: 20px; height: 20px;
  stroke: var(--text);
  transition: stroke .2s;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}
.mobile-menu-links a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .2s, padding-left .2s;
}
.mobile-menu-links a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.mobile-menu-cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(66, 99, 169, 0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.btn {
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all .25s;
  cursor: pointer;
  border: none;
  display: inline-block;
  font-family: inherit;
  letter-spacing: 0.2px;
}

.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(66, 99, 169, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text); font-weight: 600; }

.page-hero {
  padding: 160px 0 60px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(66,99,169,0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(224,81,31,0.05) 0%, transparent 45%),
    linear-gradient(rgba(66, 99, 169, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 99, 169, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text);
}
.page-hero p {
  font-size: 17px;
  color: var(--text2);
  max-width: 700px;
}


.section-dark {
  background: var(--dark-2);
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(66,99,169,0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(224,81,31,0.15) 0%, transparent 45%);
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 2; }

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark .section-head h2,
.section-dark .section-head p,
.section-dark .section-head .badge,
.section-dark .process-step h4 { color: #fff; }

.section-dark p,
.section-dark .section-head p,
.section-dark .direction-card ul li,
.section-dark .direction-card p,
.section-dark .why-item p,
.section-dark .process-step p { color: rgba(255,255,255,0.78); }

.section-dark .badge {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  backdrop-filter: blur(4px);
}


.section-dark .direction-card,
.section-dark .why-item,
.section-dark .expertise-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.section-dark .direction-card h3,
.section-dark .why-item h3,
.section-dark .expertise-card h3 { color: #fff; }
.section-dark .direction-card ul li,
.section-dark .why-item p,
.section-dark .expertise-card ul li { color: rgba(255,255,255,0.78); }

.section-dark .direction-card:hover,
.section-dark .why-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(120,170,255,0.45);
  box-shadow: 0 16px 48px rgba(66,99,169,0.35);
}

.section-dark .direction-icon {
  background: rgba(120,170,255,0.12);
  border: 1px solid rgba(120,170,255,0.2);
}
.section-dark .direction-icon svg { stroke: var(--light-blue); }
.section-dark .direction-card::before {
  background: linear-gradient(90deg, var(--accent2), var(--light-blue));
}
.section-dark .direction-expand {
  border-top-color: rgba(255,255,255,0.12);
  color: var(--light-blue);
}
.section-dark .direction-expand:hover { color: var(--light-orange); }
.section-dark .direction-link { color: var(--light-blue); }
.section-dark .direction-link:hover { color: var(--light-orange); }
.section-dark .direction-expand-list li { color: rgba(255,255,255,0.75); }

.section-dark .why-icon {
  background: rgba(120,170,255,0.12);
  border: 1px solid rgba(120,170,255,0.2);
}
.section-dark .why-icon svg { stroke: var(--light-blue); }


.corner-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.corner-glow.tl { top: -120px; left: -120px; background: rgba(66,99,169,0.3); }
.corner-glow.br { bottom: -120px; right: -120px; background: rgba(224,81,31,0.18); }
.corner-glow.tr { top: -120px; right: -120px; background: rgba(66,99,169,0.25); }
.corner-glow.bl { bottom: -120px; left: -120px; background: rgba(224,81,31,0.15); }

footer {
  padding: 60px 0 30px;
  background: var(--dark-4);
  color: rgba(255,255,255,0.65);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(66,99,169,0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(224,81,31,0.08) 0%, transparent 45%);
  pointer-events: none;
}
footer .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--light-blue); }
.footer-col p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-slogan {
  color: var(--light-blue) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.3px;
}
.footer-slogan::after { content: '.'; color: var(--light-orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--light-blue); }
footer .logo img { height: 32px; filter: brightness(0) invert(1); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes neuralFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -200; }
}

@keyframes neuralPulse {
  0%, 100% { opacity: 0.4; r: 2; }
  50% { opacity: 1; r: 3.5; }
}

@media (max-width: 1400px) {
  .container { padding: 0 40px; }
}

@media (max-width: 968px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  nav .logo img { height: 30px; }
  .page-hero { padding: 130px 0 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  nav .logo img { height: 26px; }
  .page-hero { padding: 110px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}