/* ============================================================
   Системные Технологии — ваш styles.css (сохранён) + расширения.
   Разделы с пометкой «+» добавлены; исходные правила не изменены,
   кроме восстановленного универсального селектора сброса.
   ============================================================ */

/* CSS Variables & Reset */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --border: #E2E8F0;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;

  /* + палитра направлений и состояний */
  --indigo: #4F46E5;
  --cyan: #0891B2;
  --violet: #7C3AED;
  --green: #059669;
  --red: #DC2626;
  --amber: #D97706;
  --hue: var(--accent);
  --tint-blue: #EFF6FF;
  --tint-red: #FEF2F2;
  --tint-green: #ECFDF5;
  --tint-violet: #F5F3FF;
  --tint-cyan: #ECFEFF;
  --tint-amber: #FFFBEB;
  --grad: linear-gradient(120deg, #2563EB 0%, #4F46E5 48%, #0891B2 100%);
  --scrim: rgba(15, 23, 42, 0.55);
  --header-h: 73px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; position: relative; z-index: 1; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; }

/* + слоистый фон: чертёжная сетка, мягкие световые пятна, зерно */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 72%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.035;
  mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.aurora i:first-child { background: radial-gradient(circle, rgba(37, 99, 235, 0.20), transparent 62%); top: -16vw; left: -10vw; animation: drift-a 42s ease-in-out infinite alternate; }
.aurora i:last-child { background: radial-gradient(circle, rgba(8, 145, 178, 0.16), transparent 62%); top: 24vh; right: -14vw; animation: drift-b 54s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(7vw, 6vh) scale(1.14); } }
@keyframes drift-b { to { transform: translate(-6vw, -5vh) scale(1.1); } }

/* + скроллбар в палитре сайта */
html { scrollbar-color: #93C5FD var(--surface-alt); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2563EB, #4F46E5); border-radius: 8px; border: 2px solid var(--surface-alt); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #1D4ED8, #0891B2); }

/* + доступность и якоря под фиксированной шапкой */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 300; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); font-size: 1.125rem; }
p.small { font-size: 0.95rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
/* + градиентный акцент в заголовках */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: box-shadow var(--transition), background var(--transition);
}
header.scrolled { box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35); background: rgba(248, 250, 252, 0.94); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo img {
  height: 40px !important;
  width: 40px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}
.nav-links { display: flex; gap: 28px; list-style: none; flex: 1; justify-content: center; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  transition: color var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
}
/* + логотип: запасной вариант, если файла картинки нет */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo-fallback { display: none; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text-main); line-height: 1.05; }
.logo-fallback b { color: var(--accent); font-weight: 800; }
.logo.noimg img { display: none; }
.logo.noimg .logo-fallback { display: inline-flex; }
/* + индикатор прокрутки */
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.nav-progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.nav-phone .phone-short { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all var(--transition); cursor: pointer; border: none; white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--accent); color: white; }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
/* + варианты */
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -14px rgba(37, 99, 235, 0.8); }
.btn-grad:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(37, 99, 235, 0.9); }
.btn-light { background: #fff; color: var(--text-main); }
.btn-light:hover { background: #fff; color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn[disabled] { opacity: 0.65; pointer-events: none; }
.btn:active { transform: translateY(1px); }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-main); margin: 5px 0; transition: var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 100px 0 80px; }
.hero .eyebrow {
  display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; max-width: 900px; }
.hero-desc { max-width: 640px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* + двухколоночный герой со живой схемой объекта */
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-grid h1 { font-size: clamp(2.1rem, 3.7vw, 3.4rem); }
.hero-grid .hero-desc { margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 100px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
}
.hero-visual { position: relative; }

/* + схема объекта */
.schematic {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.25);
}
.schematic-inner { position: relative; border-radius: 14px; overflow: hidden; background: #FBFDFF; border: 1px solid var(--border); }
.schematic svg { display: block; width: 100%; height: auto; }
.sch-label { font-family: 'Inter', system-ui, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; fill: #64748B; }
.sch-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.72rem; font-weight: 600; color: var(--text-main); white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.3); animation: bob 6s ease-in-out infinite alternate;
}
.sch-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.sch-chip.c1 { top: 6%; left: 4%; --c: var(--accent); }
.sch-chip.c2 { top: 13%; right: 4%; --c: var(--red); animation-delay: 1.1s; }
.sch-chip.c3 { bottom: 22%; left: 5%; --c: var(--green); animation-delay: 2.2s; }
.sch-chip.c4 { bottom: 6%; right: 5%; --c: var(--indigo); animation-delay: 0.6s; }
@keyframes bob { to { transform: translateY(-7px); } }
.flow { stroke-dasharray: 5 9; animation: dash 1.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.sweep { transform-box: view-box; animation: sweep 5.5s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.led { animation: led 2.2s infinite; }
@keyframes led { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulse-ring 2.4s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(0.45); opacity: 0.85; } 100% { transform: scale(1.7); opacity: 0; } }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 3.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page Header (для внутренних страниц) */
.page-header { padding: 80px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 60px; }
.page-header .eyebrow {
  display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.page-header h1 { margin-bottom: 16px; max-width: 800px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.page-header p { max-width: 700px; }

/* Stats */
.stats { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stats-grid span { display: block; font-size: 2.5rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; }
.stats-grid p { font-size: 0.95rem; margin-top: 8px; }
/* + градиентные цифры и разделители */
.stats-grid > div { position: relative; padding: 0 12px; }
.stats-grid > div + div::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.stats-grid span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-header { margin-bottom: 50px; max-width: 700px; }
.section-header.center { margin: 0 auto 50px; text-align: center; }
/* + тёплый оттенок для секции документов */
.section-warm { background: linear-gradient(180deg, var(--tint-amber) 0%, var(--bg) 100%); }
.section-header .eyebrow { display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.section-header h2 { margin-bottom: 12px; }
.section-cta { text-align: center; margin-top: 44px; }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 20px; }
.bento-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.bento-item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.15); border-color: var(--accent); }
.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }
.bento-item h3 { margin-bottom: 10px; }
.bento-item p { font-size: 0.95rem; }
.bento-icon {
  width: 48px; height: 48px; background: var(--surface-alt); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem;
}
/* + цвет направления наследуется иконкой, рамкой и свечением */
.bento-item[style*="--hue"] { border-top: 3px solid var(--hue); }
.bento-item[style*="--hue"]:hover { border-color: var(--hue); box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--hue) 45%, transparent); }
.bento-item[style*="--hue"] .bento-icon { background: color-mix(in srgb, var(--hue) 10%, #fff); border: 1px solid color-mix(in srgb, var(--hue) 25%, transparent); }
.bento-item.large h3 { font-size: 1.6rem; }
.bento-item.large p { font-size: 1.05rem; }
.bento-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: 0.95rem; color: var(--hue, var(--accent)); }
.bento-link span { transition: transform var(--transition); }
.bento-item:hover .bento-link span { transform: translateX(5px); }
.bento-item::after {
  content: ''; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hue, var(--accent)) 14%, transparent), transparent 65%);
  opacity: 0; transition: opacity var(--transition); pointer-events: none;
}
.bento-item:hover::after { opacity: 1; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.process-card { padding: 32px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--transition); }
.process-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.1); }
.process-num {
  font-size: 3rem; font-weight: 800; color: var(--surface-alt); line-height: 1; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), #60A5FA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.4;
}
.process-card h3 { margin-bottom: 8px; }
/* + залипающая колонка этапов с прогрессом */
.process-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.process-rail { position: sticky; top: calc(var(--header-h) + 28px); padding-left: 24px; }
.rail-track { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--border); border-radius: 2px; }
.rail-track i { display: block; width: 100%; height: var(--p, 0%); background: var(--grad); border-radius: 2px; transition: height 0.2s linear; }
.rail-item { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 12px; color: var(--text-muted); font-weight: 600; font-size: 0.92rem; transition: all var(--transition); }
.rail-item b { font-size: 0.75rem; font-weight: 700; color: #94A3B8; }
.rail-item:hover { color: var(--text-main); background: rgba(37, 99, 235, 0.05); }
.rail-item.active { color: var(--text-main); background: var(--tint-blue); }
.rail-item.active b { color: var(--accent); }
.process-stages { display: flex; flex-direction: column; gap: 20px; }
.process-stages .process-card { position: relative; overflow: hidden; }
.process-stages .process-num { opacity: 0.55; }
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; align-items: center; }
.client-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: all var(--transition); min-height: 140px;
}
.client-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.1); }
.client-logo { max-height: 50px; width: auto; max-width: 100%; filter: grayscale(100%); opacity: 0.6; transition: all var(--transition); }
.client-card:hover .client-logo { filter: grayscale(0%); opacity: 1; }
.client-name { font-size: 0.9rem; font-weight: 500; color: var(--text-main); text-align: center; }
/* + карточки клиентов с монограммой и отраслью */
.clients-grid.cards { grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }
.clients-grid.cards .client-card { min-height: 176px; gap: 12px; padding: 26px 18px; }
.client-mono {
  width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; color: var(--hue);
  background: color-mix(in srgb, var(--hue) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--hue) 28%, transparent);
  transition: all var(--transition);
}
.clients-grid.cards .client-card:hover { border-color: var(--hue); box-shadow: 0 20px 40px -22px color-mix(in srgb, var(--hue) 50%, transparent); }
.clients-grid.cards .client-card:hover .client-mono { background: color-mix(in srgb, var(--hue) 16%, #fff); transform: scale(1.05); }
.client-name { font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.client-industry { font-size: 0.78rem; color: var(--text-muted); text-align: center; line-height: 1.4; }
.clients-note { text-align: center; margin-top: 28px; font-size: 0.95rem; }

/* + лицензии */
.lic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lic-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all var(--transition); border-left: 3px solid var(--hue); }
.lic-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(15, 23, 42, 0.18); }
.lic-card .bento-icon { background: color-mix(in srgb, var(--hue) 10%, #fff); border: 1px solid color-mix(in srgb, var(--hue) 25%, transparent); }
.lic-num { display: inline-block; margin: 12px 0 10px; padding: 7px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 700; color: var(--hue); background: color-mix(in srgb, var(--hue) 8%, #fff); border: 1px dashed color-mix(in srgb, var(--hue) 40%, transparent); }
.lic-card p { font-size: 0.95rem; }

/* + бегущая строка клиентов */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; padding-right: 56px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); opacity: 0.65; white-space: nowrap; }
.marquee-item::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--hue, var(--accent)); }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.contact-card h3 { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.contact-card h3 .icon { width: 40px; height: 40px; background: var(--surface-alt); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-item { margin-bottom: 20px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-item .value { font-size: 1.1rem; color: var(--text-main); font-weight: 500; }
.contact-item a.value { color: var(--text-main); transition: color var(--transition); }
.contact-item a.value:hover { color: var(--accent); }
.map-container { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }
/* + карта по клику: без сторонних запросов до согласия */
.map-poster { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: #FBFDFF; }
.map-poster svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-poster .btn { position: relative; z-index: 1; }
.map-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 0.82rem; color: var(--text-muted); z-index: 1; }
.map-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 0.92rem; color: var(--text-muted); }
.copy-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 8px; vertical-align: middle; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; color: var(--text-muted); transition: all var(--transition); font-size: 0.8rem; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--tint-blue); }

/* Requisites */
.requisites { margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.requisites h3 { margin-bottom: 24px; }
.requisites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
/* + реквизиты в одну колонку внутри левой карточки */
.requisites.in-column .requisites-grid { grid-template-columns: 1fr; gap: 16px; }

/* + Формы */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field .label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.field .label em { color: var(--red); font-style: normal; }
.input, .textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text-main); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; transition: all var(--transition);
}
.input::placeholder, .textarea::placeholder { color: #94A3B8; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.phone-wrap { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all var(--transition); background: var(--surface); }
.phone-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.phone-prefix { display: grid; place-items: center; padding: 0 14px; background: var(--surface-alt); border-right: 1px solid var(--border); font-weight: 600; color: var(--text-muted); font-size: 1rem; }
.phone-wrap .input { border: none; border-radius: 0; }
.phone-wrap .input:focus { box-shadow: none; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .phone-wrap { border-color: var(--red); }
.field.invalid .input:focus, .field.invalid .textarea:focus, .field.invalid .phone-wrap:focus-within { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--red); font-size: 0.85rem; font-weight: 500; line-height: 1.4; }
.field-hint { align-self: flex-end; font-size: 0.78rem; color: #94A3B8; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; text-align: center; line-height: 1.5; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.form-success { text-align: center; padding: 12px 0; }
.form-success .ok-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-green); border: 1px solid #A7F3D0; color: var(--green); font-size: 1.8rem; }
.form-success h3 { justify-content: center; margin-bottom: 10px; }
.form-success .lead-id { display: inline-block; margin: 6px 0 14px; padding: 6px 14px; border-radius: 100px; background: var(--tint-green); color: var(--green); font-weight: 700; font-size: 0.85rem; }
.form-success p { font-size: 0.98rem; margin-bottom: 20px; }
.form-error { margin-top: 18px; padding: 20px; border-radius: 12px; background: var(--tint-amber); border: 1px solid #FDE68A; }
.form-error h4 { color: #92400E; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.form-error p { font-size: 0.9rem; color: #92400E; margin-bottom: 14px; }
.form-error-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-error-actions .btn { padding: 10px 18px; font-size: 0.88rem; }

/* CTA Section */
.cta-section { background: var(--text-main); color: white; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section h2 { color: white; }
.cta-section p { color: #94A3B8; margin-bottom: 32px; }
/* + многостопный градиент и сетка внутри тёмного блока */
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 12% 0%, rgba(37, 99, 235, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 100% at 88% 100%, rgba(8, 145, 178, 0.35), transparent 60%),
    linear-gradient(120deg, rgba(79, 70, 229, 0.25), transparent 55%);
  pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section p { max-width: 620px; margin-left: auto; margin-right: auto; }

/* Footer */
footer { background: var(--text-main); color: white; padding: 60px 0 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
footer h4 { color: white; margin-bottom: 20px; }
footer p, footer a { color: #94A3B8; text-decoration: none; font-size: 0.95rem; }
footer a:hover { color: white; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
.footer-logo {   filter: brightness(0) invert(1);
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;}
.copyright { border-top: 1px solid #334155; padding-top: 24px; text-align: center; font-size: 0.875rem; color: #64748B; }
/* + подвал */
.footer-brand p { max-width: 38ch; }
.footer-logo-fallback { display: none; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 800; font-size: 1.05rem; color: #fff; }
.footer-logo-fallback b { color: #60A5FA; }
.footer-brand.noimg .footer-logo { display: none; }
.footer-brand.noimg .footer-logo-fallback { display: inline-flex; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badges span { font-size: 0.78rem; font-weight: 600; color: #CBD5E1; border: 1px solid #334155; border-radius: 100px; padding: 6px 12px; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; color: #94A3B8; font-size: 0.95rem; }
.footer-contacts .fi { color: #60A5FA; flex: none; }
footer .copy-btn { background: #1E293B; border-color: #334155; color: #94A3B8; }
footer .copy-btn:hover { background: #1E293B; border-color: #60A5FA; color: #60A5FA; }
.copyright p { color: #64748B; font-size: 0.875rem; }
.copyright p + p { margin-top: 6px; }

/* + Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px); z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: 12px; padding: 13px 22px; font-size: 0.92rem; font-weight: 600; color: var(--text-main);
  box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.35); opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition); max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* + 404 */
.nf { padding: 90px 0 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.nf-code { font-size: clamp(5.5rem, 12vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf .eyebrow { display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.nf h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 8px 0 16px; }
.nf-status { margin: 22px 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--amber); letter-spacing: 0.04em; }
.nf-status span::before { content: '▸ '; color: var(--red); }
.nf-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.nf-links a { font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text-muted); }
.nf-links a:hover { border-color: var(--accent); color: var(--accent); }
.nf-visual { position: relative; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.25); }
.nf-visual .nf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nf-visual.noimg .nf-img { display: none; }
.nf-visual svg { display: block; width: 100%; height: auto; }
.flatline { stroke-dasharray: 300 500; animation: flatline 3.6s linear infinite; }
@keyframes flatline { to { stroke-dashoffset: -800; } }
.nf-caption { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-muted); }
.nf-caption b { display: block; color: var(--text-main); font-size: 0.95rem; margin-bottom: 2px; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* + ступенчатые задержки; без JS контент виден всегда */
html:not(.js) .fade-in { opacity: 1; transform: none; }
.js .fade-in { transition-delay: var(--d, 0ms); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 72px 0 64px; }
  .clients-grid.cards { grid-template-columns: repeat(2, 1fr); }
  .process-layout { grid-template-columns: 1fr; gap: 24px; }
  .process-rail { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 4px; margin: 0 -4px; background: rgba(248, 250, 252, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .rail-track { display: none; }
  .rail-item { white-space: nowrap; border: 1px solid var(--border); border-radius: 100px; padding: 8px 14px; background: var(--surface); }
  .rail-item.active { border-color: var(--accent); }
}
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
    flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border); gap: 16px;
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.3); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 6px 0; font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent); }
  .menu-toggle { display: block; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-item.large, .bento-item.wide { grid-column: span 1; grid-row: span 1; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid > div + div::before { display: none; }
  .why-grid, .lic-grid { grid-template-columns: 1fr; }
  .nf { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 72px; }
  .contact-card, .requisites { padding: 28px; }
  section { padding: 64px 0; }
  .page-header { padding: 56px 0 32px; margin-bottom: 44px; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-phone { padding: 11px 14px; }
  .nav-phone .phone-full { display: none; }
  .nav-phone .phone-short { display: inline-flex; }
  .hero-actions .btn, .nf-actions .btn { flex: 1 1 auto; }
  .clients-grid.cards { grid-template-columns: 1fr; }
  .marquee-item { font-size: 1.1rem; padding-right: 36px; }
  .sch-chip { font-size: 0.62rem; padding: 5px 9px; }
  .map-container { height: 320px; }
  .cta-section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
/* ============================================================
   ЛОГОТИП: висит ровно над серединой текстового блока героя.
   Крутите --logo-size и --logo-offset, остальное считается само.
   ============================================================ */
:root {
  /* Диаметр логотипа в шапке */
  --logo-size: 48px;

  /* Ручная подстройка: 0 — точное центрирование,
     +8px — чуть правее, -8px — чуть левее */
  --logo-offset: -18px;

  /* Диаметр логотипа в подвале */
  --footer-logo-size: 44px;

  /* Геометрия героя. Если поменяете пропорции колонок ниже —
     пересчитайте долю: 1.02 / (1.02 + 0.98) = 0.51 */
  --hero-gap: 56px;
  --hero-left-share: 0.51;

  /* Высота шапки — от неё зависят якоря и липкая колонка этапов */
  --header-h: calc(max(var(--logo-size), 48px) + 33px);
}


/* Колонки героя: текст слева, схема справа */
.hero-grid {
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--hero-gap);
}

/* --- шапка: три зоны, логотип вне потока --- */
.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  position: relative;
  min-height: var(--logo-size);
}

.nav-links { grid-column: 2; justify-self: center; flex: none; }
.nav-phone { grid-column: 3; justify-self: end; }
.menu-toggle { grid-column: 3; justify-self: end; }

/* --- логотип: центр левой колонки героя --- */
.logo {
  position: absolute;
  top: 50%;
  left: calc(
    (100% - var(--hero-gap)) * var(--hero-left-share) / 2
    - var(--logo-size) / 2
    + var(--logo-offset)
  );
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  width: var(--logo-size);
  height: var(--logo-size);
  flex: none;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.logo-fallback {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-main);
}
.logo-fallback b { color: var(--accent); font-weight: 800; }
.logo-fallback svg {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  flex: none;
}
.logo.noimg img { display: none; }
.logo.noimg .logo-fallback { display: inline-flex; }

/* --- логотип в подвале --- */
.footer-logo {
  width: var(--footer-logo-size);
  height: var(--footer-logo-size);
  flex: none;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-bottom: 20px;
  filter: none;
}

.footer-logo-fallback {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.footer-logo-fallback b { color: #60A5FA; }
.footer-logo-fallback svg {
  width: var(--footer-logo-size);
  height: var(--footer-logo-size);
  border-radius: 50%;
  flex: none;
}
.footer-brand.noimg .footer-logo { display: none; }
.footer-brand.noimg .footer-logo-fallback { display: inline-flex; }

/* --- ниже 1080px герой в одну колонку: логотип возвращается влево --- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .logo {
    position: static;
    transform: none;
    left: auto;
    grid-column: 1;
    justify-self: start;
  }
}

/* --- мобильная шапка --- */
@media (max-width: 900px) {
  .nav {
    display: flex;
    justify-content: space-between;
    min-height: 0;
  }
  .nav-links { flex: none; }
}

@media (max-width: 640px) {
  :root {
    --logo-size: 40px;
    --footer-logo-size: 40px;
  }
}