/* WIDGET-KIMI - стили виджета мозга (Kimi) */
:root {
  --cyan: #00f0ff;
  --cyan-dim: #00a8b8;
  --pink: #ff4fa3;
  --pink-hot: #ff7ec2;
  --bg: #0a0a0f;
  --glass: rgba(16, 16, 24, 0.94);
}

.brain-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
}

.brain-bubble {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 40% 30%, rgba(0, 240, 255, 0.14), transparent 50%),
              radial-gradient(circle at 60% 70%, rgba(255, 79, 163, 0.1), transparent 45%),
              rgba(12, 12, 18, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.35),
              0 0 40px rgba(0, 240, 255, 0.22),
              inset 0 0 22px rgba(0, 240, 255, 0.08);
  animation: brain-float 3.5s ease-in-out infinite,
             visor-pulse 2.1s ease-in-out infinite,
             border-flicker 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.brain-bubble:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 0 0 10px rgba(0, 240, 255, 0.12),
              0 0 60px rgba(0, 240, 255, 0.4),
              0 0 90px rgba(255, 79, 163, 0.15),
              inset 0 0 30px rgba(0, 240, 255, 0.15);
}

.brain-bubble:active { transform: scale(0.94); }

.brain-bubble img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45))
          drop-shadow(0 0 18px rgba(255, 79, 163, 0.25));
  animation: visor-flicker 4.5s infinite;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px var(--cyan), 0 0 14px 3px var(--pink);
  pointer-events: none;
}

.spark.s1 { bottom: 18%; left: 8%; animation: spark-pop 1.8s ease-in-out infinite; }
.spark.s2 { bottom: 10%; right: 14%; animation: spark-pop 2.2s ease-in-out infinite 0.4s; }
.spark.s3 { bottom: 6%; left: 28%; animation: spark-pop 1.6s ease-in-out infinite 0.8s; }
.spark.s4 { bottom: 22%; right: 6%; animation: spark-pop 2s ease-in-out infinite 1.2s; }
.spark.s5 { bottom: 4%; left: 52%; animation: spark-pop 1.9s ease-in-out infinite 0.2s; }

.brain-bubble .bolts {
  position: absolute;
  inset: -20px;
  width: 160px;
  height: 160px;
  pointer-events: none;
  opacity: 0.8;
}

.brain-bubble .bolts path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 14 28;
  animation: bolt-dash 0.9s linear infinite;
  filter: drop-shadow(0 0 4px var(--cyan));
}

.brain-bubble .bolts path:nth-child(2) { animation-delay: 0.3s; stroke: var(--pink); }
.brain-bubble .bolts path:nth-child(3) { animation-delay: 0.6s; }
.brain-bubble .bolts path:nth-child(4) { animation-delay: 0.15s; stroke: var(--pink); }

.bubble-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.7);
  white-space: nowrap;
  pointer-events: none;
}

.chat-window {
  position: fixed;
  right: 22px;
  bottom: 154px;
  width: 360px;
  max-height: 520px;
  background: var(--glass);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 40px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9998;
}

.chat-window.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(255, 79, 163, 0.08));
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.chat-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: visor-pulse 1.4s ease-in-out infinite;
}

.chat-close {
  background: none;
  border: none;
  color: #c4c8d4; /* fix 2: поднят контраст вторичного текста */
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.chat-close:hover { color: #fff; transform: rotate(90deg); }

.chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
}

.message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: msg-pop 0.35s ease-out;
}

.message.bot {
  align-self: flex-start;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: #e0fcff;
}

.message.user {
  align-self: flex-end;
  background: rgba(255, 79, 163, 0.12);
  border: 1px solid rgba(255, 79, 163, 0.25);
  color: #ffe4f3;
}

.chat-input-area {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.chat-input::placeholder { color: #8080a0; }

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 240, 255, 0.35); }
.chat-send:active { transform: scale(0.95); }

@keyframes brain-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes visor-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0,240,255,0.45)) brightness(1); }
  50% { filter: drop-shadow(0 0 22px rgba(0,240,255,0.75)) brightness(1.15); }
}

@keyframes visor-flicker {
  0%, 19%, 21%, 50%, 52%, 100% { opacity: 1; }
  20%, 51% { opacity: 0.85; }
}

@keyframes border-flicker {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,240,255,0.35), 0 0 40px rgba(0,240,255,0.22), inset 0 0 22px rgba(0,240,255,0.08); }
  50% { box-shadow: 0 0 0 5px rgba(0,240,255,0.12), 0 0 55px rgba(0,240,255,0.32), inset 0 0 28px rgba(0,240,255,0.14); }
}

@keyframes spark-pop {
  0% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 1; transform: scale(1.6); }
  50% { opacity: 0; transform: scale(0.5); }
  75% { opacity: 0.8; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.3); }
}

@keyframes bolt-dash {
  0% { stroke-dashoffset: 42; opacity: 0; }
  40% { opacity: 1; }
  100% { stroke-dashoffset: -42; opacity: 0; }
}

@keyframes msg-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .brain-widget { right: 14px; bottom: 14px; }
  .brain-bubble { width: 110px; height: 110px; }
  .brain-bubble img { width: 88px; height: 88px; }
  .brain-bubble .bolts { width: 146px; height: 146px; inset: -18px; }
  .bubble-label { font-size: 8px; bottom: -14px; }
  .chat-window {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 20px 20px 0 0;
  }
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.25); border-radius: 3px; }

@media (max-width: 768px) {
  .brain-widget { right: 16px; bottom: 16px; }
  .brain-bubble { width: 96px; height: 96px; }
  .brain-bubble img { width: 76px; height: 76px; }
  .brain-bubble .bolts { width: 116px; height: 116px; inset: -10px; }
  .bubble-label { font-size: 8px; bottom: -14px; }
  .chat-window {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    backdrop-filter: blur(20px);
  }
  /* корень бага: базовый min-height:260px распирал контейнер выше вьюпорта при клавиатуре.
     min-height:0 даёт flex-детям право сжаться, overflow берёт скролл на себя - приветствие не режется */
  .chat-messages {
    flex: 1;
    min-height: 0;
  }
  .brain-widget:has(.chat-window.is-open) .brain-bubble { display: none; }
}
/* /WIDGET-KIMI */
/* ============================================
   bureau.css - слой дизайн-системы Maiorskikh.ru
   Сдержанный тёмный, акцент циан точечно (см. DESIGN.md)
   Подключается последним, применяет токены design-tokens.css
   ============================================ */

/* (1) Self-hosted @font-face */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/unbounded/unbounded-v12-cyrillic_latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded/unbounded-v12-cyrillic_latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter/inter-v20-cyrillic_latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope/manrope-v20-cyrillic_latin-700.woff2') format('woff2');
}

/* ============================================================
   S-DESIGN-2026: слой применения дизайн-системы (DESIGN.md)
   Сдержанный инженерный тёмный. Палитра/шкала - design-tokens.css.
   Туман-градиенты и виджет не трогаем. Только дефис в комментариях.
   ============================================================ */

/* --- База --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { background: var(--bg-base); } /* fallback ПОД туманом (root canvas) */
body { background: transparent !important; } /* битрикс-кэш зеркальных страниц красил body белым поверх тумана (09.07) */
body {
  font-family: var(--font-body), 'Inter', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* скрим удалён - туман VANTA владельца живёт чистым (слово Антона 08.07) */

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-dim); }
img { max-width: 100%; height: auto; }

.content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.page { position: relative; padding: var(--space-8) 0; }
.page:not(#p1) { padding: var(--space-7, 40px) 0; } /* было space-9 (96px): секции слипались в "экран пустоты" (слово Дарьи+Антона 09.07) */
.page > .col-md-12 { padding: 0; }

/* --- Типографика --- */
.page-title {
  font-family: var(--font-display), sans-serif;
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: var(--leading-heading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
}
.sub-title, .section-title {
  font-family: var(--font-display), sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-heading);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}
h1, h2, h3 {
  font-family: var(--font-display), sans-serif;
  color: var(--text-primary);
  line-height: var(--leading-heading);
}
p { color: var(--text-secondary); line-height: var(--leading-text); }
strong, b { color: var(--text-primary); font-weight: 600; }

/* --- Шапка --- фикс: fixed-оверлей как эталон (relative сдвигал первый слайд/мозг, 09.07) */
.main_menu-wrapper {
  position: fixed;
  top: 18px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  width: calc(100% - 40px);
  max-width: 1320px;
  margin: 0;
  padding: var(--space-3) var(--space-5);
  border-radius: 16px;
  /* подложка хедера 1:1 с прода (слово Антона 09.07) */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  overflow: hidden;
}
.main_menu-logo { flex: 0 0 auto; }
.main_menu-logo a { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.main_menu-logo img { height: 40px; width: auto; display: block; flex-shrink: 0; }
.main_menu-brand { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.main_menu-brand-top { font-size: var(--text-xs); font-weight: 400; color: var(--text-secondary); letter-spacing: 0.02em; }
.main_menu-brand-bottom { font-family: var(--font-display), sans-serif; font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); }
.main_menu-menu { flex: 1 1 auto; min-width: 0; }
.main_menu-menu ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.main_menu-menu li { margin: 0; }
.main_menu-menu a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.main_menu-menu a:hover, .main_menu-menu a.is-active { color: var(--accent); }
.menu_soc { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
.main_menu-rbtn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  border: none;
  margin: 0;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.main_menu-rbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.main_menu-rbtn:active { filter: brightness(0.95); transform: translateY(0); }
.menu_soc a { color: var(--text-inverse); }

/* Desktop header scaling: 990-1920, logo and menu never overlap */
@media (max-width: 1280px) {
  .main_menu-wrapper { max-width: 1280px; }
  .main_menu-logo img { height: 36px; }
  .main_menu-brand-top { font-size: 13px; }
  .main_menu-brand-bottom { font-size: 15px; }
  .main_menu-menu a { font-size: 15px; }
  .main_menu-rbtn { padding: 10px 18px; font-size: 15px; }
}
@media (max-width: 1100px) {
  .main_menu-wrapper { padding: 10px 24px; gap: 16px; max-width: 1100px; }
  .main_menu-logo img { height: 32px; }
  .main_menu-brand-top { font-size: 12px; }
  .main_menu-brand-bottom { font-size: 13px; }
  .main_menu-menu a { font-size: 14px; }
  .main_menu-rbtn { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 990px) {
  .main_menu-wrapper { padding: 8px 24px; gap: 14px; max-width: 100%; }
  .main_menu-logo img { height: 30px; }
  .main_menu-brand-top { font-size: 11px; }
  .main_menu-brand-bottom { font-size: 12px; }
  .main_menu-menu a { font-size: 13px; }
  .main_menu-rbtn { padding: 8px 12px; font-size: 12px; }
}

/* Гамбургер (9 точек) - только мобильный */
.menu-icon { display: none; }
.menu-icon .dot { width: 5px; height: 5px; border-radius: 2px; background: var(--text-secondary); transition: background var(--transition-fast); }
.menu-icon:hover .dot { background: var(--accent); }

/* Плавающее мини-лого старых страниц - в общий стиль */
.mini-logo { display: none; }

/* --- Хлебные крошки --- */
.bx-breadcrumb {
  position: relative; z-index: 1;
  font-size: var(--text-xs);
  padding: var(--space-5) 0 var(--space-2);
  color: var(--text-secondary);
}
.bx-breadcrumb a, .bx-breadcrumb-item a { color: var(--text-secondary); }
.bx-breadcrumb a:hover { color: var(--accent); }
.bx-breadcrumb-item, .bx-breadcrumb-item span { color: var(--text-muted); }

/* --- Кнопки --- */
.ai-hero-btn, .article-all, .button-telegram, .button-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-body), sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.ai-hero-btn:hover, .article-all:hover, .button-telegram:hover, .button-whatsapp:hover {
  filter: brightness(1.08); transform: translateY(-1px); color: var(--text-inverse); text-decoration: none;
}
.ai-hero-btn:active, .article-all:active { filter: brightness(0.95); transform: translateY(0); }
.article-all .fa { margin-left: var(--space-2); }

/* --- Карточка (общий паттерн DESIGN.md) --- */
.sd-feature-new, .service-card, .review-item, .thanks-item, .team-extra-card,
.about-person, .about-team-card, .about-step, .ai-feature-card, .special-card,
.about-stack-group, .case-full, .ai-faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.sd-feature-new:hover, .service-card:hover, .review-item:hover, .thanks-item:hover,
.team-extra-card:hover, .about-person:hover, .about-team-card:hover, .about-step:hover,
.ai-feature-card:hover, .special-card:hover, .case-full:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- Блок "Кто мы" (главная): тёмная секция, факты-строки --- */
.about-main { padding-top: 0; }
.about-lead {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-6);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 900px;
}
.about-lead b { color: var(--text-primary); font-weight: 600; }
.about-lead br { display: none; }
.about-lead > b:first-child { font-size: var(--text-lg); display: block; margin-bottom: var(--space-3); color: var(--text-primary); }
.who-line {
  display: block;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.who-line:first-child { border-top: none; padding-top: 0; }
.about-results {
  margin-top: var(--space-4);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  font-size: var(--text-sm);
}
.about-results b { color: var(--accent); }

/* Блок "Кто мы" - интро, сетка троих, строки-факты */
.who-block { max-width: 1000px; }
.who-intro {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
}
.who-intro b { color: var(--text-primary); font-weight: 600; }
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.who-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.who-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.who-card-name {
  font-family: var(--font-display), sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.who-card-text { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); }
.who-note {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--accent);
  margin: 0 0 var(--space-5);
}
.who-note b { color: var(--text-primary); font-weight: 600; }
.who-results {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}
.who-results b { color: var(--accent); }

/* --- Сетки фич/услуг --- */
.sd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.sd-feature-new strong { display: block; font-family: var(--font-hero), sans-serif; font-size: var(--text-base); color: var(--text-primary); margin-bottom: var(--space-2); }
.sd-feature-new p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }
.sd-feature-new-icon, .service-card-icon, .ai-feature-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.idx-sc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 1100px) { .idx-sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .idx-sc-grid { grid-template-columns: 1fr; } }
.service-card-link { text-decoration: none; display: block; height: 100%; }
.service-card { height: 100%; color: var(--text-secondary); font-size: var(--text-sm); }
.service-card p { font-family: var(--font-display), sans-serif; font-size: var(--text-base); font-weight: 700; color: var(--text-primary); margin: 0 0 var(--space-2); }

/* --- Отзывы --- */
.bx-newslist .row { display: flex; flex-wrap: wrap; }
.review-item { padding: var(--space-3); overflow: hidden; }
.review-name { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-2); }
.review-image {
  width: 100%; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* --- Статьи (карточки-превью) --- */
.news-list .article, a > .article {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-size: cover; background-position: center;
  padding: var(--space-4);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.news-list .article::before, a > .article::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.1), rgba(10,10,15,0.88));
}
.news-list .article:hover, a > .article:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-date, .article-tag, .article-name { position: relative; z-index: 1; }
.article-date { font-size: var(--text-xs); color: var(--text-secondary); }
.article-tag { font-size: var(--text-xs); color: var(--accent); font-weight: 600; margin-top: var(--space-1); }
.article-name { font-family: var(--font-display), sans-serif; font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); margin-top: var(--space-2); line-height: 1.3; }

/* --- About: hero, команда, шаги, стек, cta --- */
.about-hero { padding: var(--space-6) 0 var(--space-4); }
.about-hero-lead { font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); max-width: 760px; }

.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-8);
}

/* fix 1: единое определение сетки шагов, выравнивание по высоте */
.about-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-8);
}
@media (max-width: 1200px) { .about-steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .about-steps-grid { grid-template-columns: 1fr; } }

.about-step {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-8);
}
.about-team-card { display: flex; flex-direction: column; gap: var(--space-3); overflow: hidden; }
.about-team-poster, .about-team-poster--darya, .about-team-poster-brain {
  width: 100%; max-width: 180px; height: auto; border-radius: var(--radius-sm); align-self: center;
}
.about-team-name { font-family: var(--font-display), sans-serif; font-size: var(--text-base); font-weight: 700; color: var(--text-primary); }
.about-team-role { font-size: var(--text-xs); color: var(--accent); font-weight: 600; margin: var(--space-1) 0 var(--space-2); }
.about-team-desc, .team-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.team-name { font-family: var(--font-display), sans-serif; font-weight: 700; color: var(--text-primary); }
.team-role { color: var(--accent); font-size: var(--text-xs); font-weight: 600; }

.about-persons { margin: var(--space-8) 0; display: flex; flex-direction: column; gap: var(--space-5); }
.about-person { padding: var(--space-6) var(--space-6); }
.about-person h2 { font-size: var(--text-lg); color: var(--text-primary); margin: 0 0 var(--space-4); }
.about-person-tag { font-family: var(--font-body), sans-serif; font-size: var(--text-sm); color: var(--accent); font-weight: 400; }
.about-person p, .about-person li { color: var(--text-secondary); line-height: 1.7; margin: 0 0 var(--space-3); }
.about-person ul { margin: 0 0 var(--space-3) var(--space-5); }
.about-person-proof { max-width: 480px; width: 100%; border-radius: var(--radius-sm); margin-top: var(--space-4); border: 1px solid var(--border); cursor: zoom-in; display: block; }

.about-build, .about-unlimited, .ai-for-whom {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}
.about-build h2, .about-unlimited h2, .ai-for-whom h2 { font-size: var(--text-lg); margin: 0 0 var(--space-4); }
.about-build-list { margin: 0; padding-left: var(--space-5); color: var(--text-secondary); line-height: 1.8; }
.about-unlimited p { color: var(--text-secondary); line-height: 1.7; margin: 0; }

.about-step { position: relative; }
.about-step-num { font-family: var(--font-display), sans-serif; font-size: var(--text-lg); font-weight: 700; color: var(--accent); margin-bottom: var(--space-2); }
.about-step h3 { font-size: var(--text-base); margin: 0 0 var(--space-2); }
.about-step p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }

.about-stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--space-4); }
.about-stack-group-title { font-family: var(--font-display), sans-serif; font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-3); }
.about-stack-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.about-stack-tag, .about-stack-tag-open {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.about-stack-tag-open { color: var(--accent); border-color: var(--border-strong); }

.about-partners { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; margin: var(--space-8) 0; }
.about-partners img { height: 56px; width: auto; opacity: 0.85; transition: opacity var(--transition-fast); }
.about-partners img:hover { opacity: 1; }

.about-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  margin: var(--space-8) 0 var(--space-4);
}
.about-cta h2 { font-size: var(--text-xl); margin: 0 0 var(--space-3); }
.about-cta p { color: var(--text-secondary); margin: 0 0 var(--space-5); }

/* --- Услуги-подстраницы (ai-*) --- */
.ai-hero { padding: var(--space-8) 0 var(--space-6); max-width: 860px; }
.ai-hero-title { font-family: var(--font-display), sans-serif; font-size: var(--text-2xl); font-weight: 700; color: var(--text-primary); line-height: var(--leading-heading); margin-bottom: var(--space-5); letter-spacing: -0.02em; }
.ai-hero-title span { color: var(--accent); -webkit-text-fill-color: currentColor; }
.ai-hero-lead { font-size: var(--text-base); line-height: 1.7; color: var(--text-secondary); margin-bottom: var(--space-6); max-width: 720px; }
.ai-feature-card h3 { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-3); }
.ai-feature-card p { font-size: var(--text-sm); line-height: 1.65; color: var(--text-secondary); margin: 0; }
.ai-for-whom h2 { color: var(--text-primary); }

.ai-faq-item { margin-bottom: var(--space-3); }
.ai-faq-q { font-family: var(--font-display), sans-serif; font-size: var(--text-base); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.ai-faq-a { font-size: var(--text-sm); line-height: 1.65; color: var(--text-secondary); }

/* --- Статья-лонгрид --- */
.news-detail-body, .news-detail-content { max-width: 72ch; margin: 0 auto; }
.news-detail-date { font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: var(--space-4); }
.news-detail-content { font-size: var(--text-base); line-height: 1.75; color: var(--text-secondary); }
.news-detail-content h2 { font-size: var(--text-lg); color: var(--text-primary); margin: var(--space-7) 0 var(--space-4); }
.news-detail-content p { margin: 0 0 var(--space-4); }
.news-detail-content ul { list-style: none; padding-left: 0; margin: 0 0 var(--space-4); }
.news-detail-content li { position: relative; padding-left: var(--space-5); margin-bottom: var(--space-3); }
.news-detail-content li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--accent); }
.commandment { border-left: 2px solid var(--accent); padding-left: var(--space-5); font-style: italic; color: var(--text-primary); }

/* --- Благодарности --- */
.thanks-item h2, .thanks-item h3 { font-size: var(--text-base); color: var(--text-primary); margin: 0 0 var(--space-2); }
.thanks-item p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }

/* --- Контакты --- */
.contacts-title { font-family: var(--font-display), sans-serif; font-size: var(--text-2xl); font-weight: 700; color: var(--text-primary); }
.contacts a { color: var(--accent); overflow-wrap: break-word; word-break: break-word; }
.rekvizit > div, .senf-form-wrapper {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.rekvizit .sub-title { color: var(--text-primary); }

/* --- Подвал --- */
.footer-wrapper {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 18, 0.7);
  margin-top: var(--space-9);
}
.footer {
  max-width: 1200px; margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs); color: var(--text-secondary);
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--accent); }

/* === T005: mirror pages alignment and cards === */
.container-narrow { max-width: 1200px; margin: 0 auto; }
.container-narrow .team-card,
.container-narrow .team-extra-card,
.container-narrow .special-card,
.container-narrow .highlight-box,
.container-narrow .manifest { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); }
.container-narrow .history-article { max-width: 100%; }

/* === T004: inner page overrides (higher specificity than inline <style> blocks) === */
/* Персонажи HERO (#p1 .first-logo-1..4) исключены: их размер задаёт шаблон
   через height:% + max-width:80%, а height:auto раздувал их до натуральных PNG */
/* Эталонная ширина HERO-сцены: прод .content-wrapper{width:90%;max-width:1280}
   и .first-logo=90% от него => min(81vw,1152px); наш content-wrapper=1200px
   давал сцену 1051 (-9% к эталону) */
#p1 .first-logo { width: min(81vw, 1152px); max-width: none; }
.content-wrapper img:not([class*="first-logo"]):not(.iskandar-avatar),
.page img:not([class*="first-logo"]):not(.iskandar-avatar),
.news-detail-content img { max-width: 100%; height: auto; }
/* Аватар Искандара: жёсткий круг (height:auto из сброса делал овал по аспекту исходника) */
.page img.iskandar-avatar, img.iskandar-avatar { width: 64px; height: 64px; aspect-ratio: 1/1; object-fit: cover; flex: none; }

/* Service subpages: override inline ai-* styles to match DESIGN.md */
.content-wrapper .ai-hero { padding: var(--space-8) 0 var(--space-6); }
.content-wrapper .ai-hero-title { font-family: var(--font-display), sans-serif; font-size: var(--text-2xl); font-weight: 700; color: var(--text-primary); }
.content-wrapper .ai-hero-title span { background: none; -webkit-background-clip: initial; -webkit-text-fill-color: currentColor; color: var(--accent); }
.content-wrapper .ai-hero-lead { font-size: var(--text-base); color: var(--text-secondary); }
.content-wrapper .ai-hero-btn { color: var(--text-inverse); font-weight: 600; font-size: var(--text-sm); padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); }
.content-wrapper .ai-features-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); margin: var(--space-6) 0 var(--space-8); }
.content-wrapper .ai-feature-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); }
.content-wrapper .ai-feature-card:hover { background: var(--bg-raised); border-color: var(--accent); transform: translateY(-2px); box-shadow: none; }
.content-wrapper .ai-feature-icon { background: var(--bg-elevated); color: var(--accent); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-base); }
.content-wrapper .ai-feature-card h3 { font-family: var(--font-display), sans-serif; font-size: var(--text-base); color: var(--text-primary); }
.content-wrapper .ai-feature-card p { font-size: var(--text-sm); color: var(--text-secondary); }

/* About: prevent image overflow */
.about-team-card { overflow: hidden; }
.about-team-poster { position: static !important; left: auto !important; max-width: 100%; }

/* --- Планшет/мобайл --- */
@media (max-width: 989px) {
  .main_menu-menu, .menu_soc { display: none; }
  .main_menu-wrapper.is-open { flex-wrap: wrap; }
  .main_menu-wrapper.is-open .main_menu-menu { display: block; width: 100%; order: 3; }
  .main_menu-wrapper.is-open .main_menu-menu ul { flex-direction: column; align-items: flex-start; gap: var(--space-1); width: 100%; }
  .main_menu-wrapper.is-open .main_menu-menu a { display: block; padding: var(--space-2) 0; width: 100%; }
  .main_menu-wrapper.is-open .menu_soc { display: flex; order: 4; width: 100%; }
  body .menu-icon {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    padding: 5px;
    gap: 5px;
    justify-content: center;
    align-content: center;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transform: none;
    -webkit-transform: none;
  }
  body .menu-icon .dot:nth-of-type(n) {
    position: static;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    margin: 0;
    transform: none;
    -webkit-transform: none;
    transition: background 0.15s ease, opacity 0.3s ease;
  }
  body .menu-icon:hover .dot { background: var(--accent); }
  body .menu-icon.clicked .dot { opacity: 0; }
  body .menu-icon.clicked .dot:nth-of-type(1),
  body .menu-icon.clicked .dot:nth-of-type(2) {
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
  }
  body .menu-icon.clicked .dot:nth-of-type(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .page:not(#p1) { padding: var(--space-7) 0; }
  .page-title { font-size: var(--text-xl); }
  .sub-title, .section-title { font-size: var(--text-lg); }
  .about-lead { font-size: var(--text-sm); padding: var(--space-5); }
  .about-lead > b:first-child { font-size: var(--text-base); }
  .ai-hero { padding: var(--space-6) 0 var(--space-5); }
  .ai-hero-title { font-size: var(--text-xl); }
  .about-cta { padding: var(--space-6) var(--space-5); }
  .footer { flex-direction: column; text-align: center; gap: var(--space-2); }
  .main_menu-wrapper { padding: var(--space-3) var(--space-4); }
  .about-partners img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- Форсируем спеку DESIGN.md поверх инлайна страниц --- */
/* CTA страниц услуг/about: solid accent, тёмный текст, радиус 10px */
.ai-hero-btn {
  background: var(--accent) !important;
  color: var(--text-inverse) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
}
/* Иконки - не цветные плашки (антипаттерн), а сдержанный акцент-глиф на тёмном */
.ai-feature-icon, .sd-feature-new-icon, .service-card-icon {
  background: var(--bg-elevated) !important;
  color: var(--accent) !important;
  border: 1px solid var(--border) !important;
}

/* Грид-элементы не должны распирать трек (min-width:auto=min-content) */
.sd-feature-new, .service-card, .review-item, .thanks-item, .team-extra-card,
.about-person, .about-team-card, .about-step, .ai-feature-card, .special-card,
.about-stack-group, .case-full, .ai-faq-item, .who-card {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Мобайл: длинные слова в заголовках (автоматизируется, предприниматель) не вылезают за экран 390 */
@media (max-width: 768px) {
  h1, h2, h3, .sub-title, .section-title, .page-title { overflow-wrap: break-word; hyphens: auto; }
}

/* Мобайл: все многоколоночные гриды в одну колонку (форс поверх инлайна страниц) */
@media (max-width: 768px) {
  .ai-features-grid, .about-team-grid, .about-steps-grid, .about-stack-grid,
  .sd-features-grid, .idx-sc-grid, .who-grid, .team-grid, .team-extra {
    grid-template-columns: 1fr !important;
  }
}

/* === МОБИЛЬНАЯ ШАПКА (09.07, слово владельца: лого 4M + название и на мобиле) === */
/* 09.07 fullpass: position:relative уезжала со скроллом - бургер (fixed) открывал меню в уехавшей шапке вне экрана.
   Теперь fixed-бар во всю ширину; !important - на cases/history/thanks inline <style> идёт ПОСЛЕ bureau.css */
@media (max-width: 989px) {
  .main_menu-wrapper { position: fixed !important; left: 0 !important; right: 0 !important; top: 0 !important; width: 100% !important; max-width: 100% !important; height: auto; margin: 0; transform: none !important; border-radius: 0; border-left: none; border-right: none; border-top: none; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); }
  .main_menu-wrapper.is-open { max-height: 100dvh; overflow-y: auto; }
  .main_menu-logo { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 0; margin: 0; }
  .main_menu-logo a { display: inline-flex; align-items: center; gap: 10px; }
  .main_menu-logo img { height: 32px; width: auto; }
  .main_menu-brand { display: flex; }
  .main_menu-menu, .menu_soc { display: none; }
}

/* first-logo-text шрифт НЕ трогаем - Unbounded разъезжал буквы заголовка первого слайда (откат 09.07) */

/* Крошки на зеркальных страницах: битрикс-стили template1 не грузятся (BX.setCSSList мёртв) - свои (09.07) */
.bx-breadcrumb { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px !important; color: var(--text-muted); padding: 18px 0 6px !important; position: static !important; top: auto !important; left: auto !important; transform: none !important; }
.bx-breadcrumb-item { display: inline-flex; align-items: center; font-size: 14px; position: static; float: none; }
.bx-breadcrumb-item a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.bx-breadcrumb-item a:hover { color: var(--accent); }
.bx-breadcrumb-item span, .bx-breadcrumb-item a, .bx-breadcrumb-item { font-size: 14px !important; line-height: 1.4 !important; }
.bx-breadcrumb i, .bx-breadcrumb-item i { font-size: 10px; color: var(--text-muted); margin: 0 4px; }

/* ============================================================
   S0709-PASS: полный проход вёрстки (kimi bureau, 09.07)
   Правки поверх слоёв bureau и битрикс-кэша зеркала.
   Первый слайд (#p1, first-logo*, namess), туман, тексты - НЕ трогаются.
   Только дефис.
   ============================================================ */

/* --- #1 Блок "Кто мы": единый контейнер, край в край с секциями (было max-width:1000, справа пустота) --- */
.who-block { max-width: 100%; }

/* --- #4 Карточки услуг (страница /service/): высота по контенту, ровный gap 16px, не тянутся --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
  margin: var(--space-6) 0 0;
}
@media (max-width: 1100px) { .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .service-cards { grid-template-columns: 1fr; } }
.service-cards > [class*="col-"] {
  /* !important: inline .pd20{padding:20px!important} страницы съедал 40px трека - заголовки Unbounded вылезали за карточку */
  width: auto; max-width: none; padding: 0 !important; margin: 0; float: none;
}
.service-cards .service-card,
.service-cards .service-card-link { height: auto; margin-bottom: 0; }
.service-cards .service-card { padding: var(--space-5) var(--space-5); }
/* страховка к hyphens:auto: без словаря переносов длинное слово (Автоматизация) ломается, а не вылезает за карточку.
   Без префикса .service-cards - та же карточка живёт и на главной в .idx-sc-grid */
.service-card > p:first-of-type { overflow-wrap: break-word; hyphens: auto; }

/* Иконки услуг/фич: всегда акцент-циан, глиф в рамках бокса (кэш зеркала дул до 52px, красил в фиолет) --- */
.service-card-icon, .sd-feature-new-icon, .ai-feature-icon {
  width: 48px; height: 48px; min-width: 48px; flex-shrink: 0;
  font-size: var(--text-lg) !important;
  background: var(--bg-elevated) !important;
  color: var(--accent) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}
.service-card-icon i, .sd-feature-new-icon i, .ai-feature-icon i {
  font-size: var(--text-lg) !important;
  color: var(--accent) !important;
  line-height: 1;
}

/* --- #2 Подвал: компактный, влезает; кэш зеркала дул .footer-left/right до 40px --- */
.footer-wrapper { margin-top: var(--space-8); }
.footer-left, .footer-right {
  width: auto; float: none;
  font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.5;
}
.footer-right a { font-size: var(--text-xs); color: var(--text-secondary); }
.footer-right a:hover { color: var(--accent); }

/* --- #6 Форма 152-ФЗ (contacts/messages): поля и кнопка в дизайн-систему, кислоту #A424F4 убрать --- */
.senf-form-wrapper input[type="text"],
.senf-form-wrapper input[type="email"],
.senf-form-wrapper textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-family: var(--font-body), sans-serif;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.senf-form-wrapper input[type="text"]:focus,
.senf-form-wrapper input[type="email"]:focus,
.senf-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 216, 232, 0.12);
}
.senf-form-wrapper input::placeholder,
.senf-form-wrapper textarea::placeholder { color: var(--text-muted); }
.senf-form-wrapper textarea { min-height: 140px; resize: vertical; }
.senf-form-wrapper .senf-form-title { font-family: var(--font-display), sans-serif; font-size: var(--text-lg); color: var(--text-primary); }
.button-send {
  width: 100%;
  background: var(--accent) !important;
  color: var(--text-inverse) !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body), sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.button-send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button-send:active { filter: brightness(0.95); transform: translateY(0); }
.button-upload {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ============================================================
   Мобайл/планшет (<=990): гасим старый дизайн зеркала (шрифты 40-78px)
   к шкале design-tokens. Первый слайд НЕ трогаем.
   Меню зеркала (common.js гонит left:-2000) обезвреживаем: обёртку
   держим на месте (left:auto !important), показ пунктов ведёт .is-open.
   ============================================================ */
@media (max-width: 990px) {
  /* Шапка: не даём jQuery-анимации (left) унести меню за экран.
     09.07 fullpass: relative уезжала со скроллом, а бургер (fixed) открывал меню в шапке наверху
     документа - юзер у футера меню не видел. Теперь шапка прибита к верху (fixed), контент под ней. */
  .main_menu-wrapper {
    position: fixed !important;
    left: 0 !important; right: 0 !important; top: 0 !important;
    width: 100% !important; max-width: 100% !important; height: auto; margin: 0; transform: none !important;
    border-radius: 0; border-left: none; border-right: none; border-top: none;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
  }
  .main_menu-wrapper.is-open { max-height: 100dvh; overflow-y: auto; }
  .main_menu-wrapper.is-open { background: rgba(10, 10, 15, 0.98); flex-wrap: wrap; row-gap: var(--space-2); }
  .main_menu-wrapper.is-open .main_menu-menu {
    display: block; width: 100%; order: 3;
    border-top: 1px solid var(--border);
    margin-top: var(--space-3); padding-top: var(--space-2);
  }
  .main_menu-wrapper.is-open .main_menu-menu ul {
    flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; gap: 0; width: 100%;
  }
  .main_menu-menu ul li {
    width: 100%; float: none; letter-spacing: normal;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--border);
  }
  .main_menu-menu ul li:last-child { border-bottom: none; }
  .main_menu-menu ul li a {
    display: block; width: 100%;
    font-size: var(--text-base) !important;
    padding: var(--space-3) 0 !important;
    color: var(--text-primary);
    font-family: var(--font-body), sans-serif; font-weight: 500;
  }
  .main_menu-menu ul li a:active { color: var(--accent); }
  .main_menu-wrapper.is-open .menu_soc {
    display: flex; order: 4; width: 100%;
    padding-top: 0; margin-top: var(--space-2);
  }
  .main_menu-rbtn {
    font-size: var(--text-sm) !important;
    padding: var(--space-3) var(--space-5) !important;
    background: var(--accent) !important; color: var(--text-inverse) !important;
    font-family: var(--font-body), sans-serif !important; font-weight: 600 !important;
  }

  /* Нейтрализация раздутых шрифтов старого дизайна зеркала */
  .about-main { font-size: var(--text-sm); }
  .about { font-size: var(--text-sm); }
  .page:not(#p1) { padding: var(--space-7) 0; }
  .page-title { font-size: var(--text-xl) !important; padding: 0 0 var(--space-4); }
  .sub-title { padding-top: 0; padding-bottom: var(--space-3); font-size: var(--text-lg); }
  .ssub-title { font-size: var(--text-base); }
  .page, .contacts, .catalog-section-description, .senf-form-wrapper,
  .about-main-item, .all-back,
  .news-detail-content, .article-big-tag, .news-detail-view, .news-detail-date,
  .news-detail-comments, .news-detail-author, .news-detail-other { font-size: var(--text-sm); }
  .serv-price, .serv-item-title { font-size: var(--text-lg); }
  .serv-item-price { font-size: var(--text-base); }
  .serv-item-price p { font-size: var(--text-xs); }
  .senf-form-wrapper p { font-size: var(--text-sm); }
  .button-telegram, .button-whatsapp { width: 100%; max-width: 100%; font-size: var(--text-sm); }
  .contacts-title { font-size: var(--text-xl); padding: 0; }
  .contacts p { font-size: var(--text-sm); padding: var(--space-2) 0; }
  .rekvizit > div { font-size: var(--text-sm); padding: var(--space-5); }
  .review-name, .article-name, .article-all { font-size: var(--text-sm); }
  .article-tag, .article-date { font-size: var(--text-xs); }
  .case-top-name, .case-item-name { font-size: var(--text-lg); }
  .case-top-text, .case-item-text { font-size: var(--text-sm); }

  /* Подвал на мобиле - в колонку по центру, влезает */
  .footer-left, .footer-right { width: 100%; float: none; text-align: center; font-size: var(--text-xs); }
}

/* ============================================================
   Кислота #A424F4 из кэша зеркала -> палитра (запрет владельца).
   Фон дат-пилюль, стрелки крошек, бордеры, контент-акценты.
   ============================================================ */
.article-date, .news-detail-date {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--text-secondary) !important;
}
.bx-breadcrumb .fa, .bx-breadcrumb-item .fa, .bx-breadcrumb .fa-angle-right {
  color: var(--text-muted) !important;
}
/* шаблонный border: 1px solid rgba(164,36,244,.2) красил ВСЕ стороны - top-color закрывал только верх */
.about-team-info { border-color: var(--border) !important; }
.about-team-card:hover .about-team-info {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent);
  box-shadow: none;
}
.sd-feature-new p a, .sd-feature-new a,
.news-detail-content a, .news-detail-body a,
.about-person a, .about-unlimited a, .about-build a, .about-unlimited p b,
.contacts a, .rekvizit a, .who-note a {
  color: var(--accent) !important;
}
/* --- Заголовки карточек услуг: рвались посреди слова без дефиса (word-break: break-word
       на узких 5-колоночных карточках, Unbounded 20px не влезал). Переносы по-русски + размер --- */
.service-card p {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.service-cards .service-card p { font-size: var(--text-base); }
/* та же болячка на детальных услугах: h3 фич (Мультиплатформенный) рвался посреди слова гардом word-break */
.ai-feature-card h3, .sd-feature-new h3, .special-card h3 {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* fix 1: убран дубль определения .about-steps-grid выше, единая сетка оставлена здесь */

/* --- Карточки статей на мобиле: кэш старого дизайна двигает date/tag/name через left/top
       (25/-25px) у position:relative - тег вылезал за карточку и наезжал на заголовок --- */
.news-list .article .article-date, a > .article .article-date,
.news-list .article .article-tag, a > .article .article-tag,
.news-list .article .article-name, a > .article .article-name {
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
}

/* --- Кислота из template_styles, пробившая слой bureau ---
   стрелки списка "Что мы строим" (::before не ловится сканом по элементам)
   и hover кнопки "Показать все" (специфичность :hover выше базовой) --- */
.about-build-list li::before { color: var(--accent) !important; }
.article-all:hover { background: var(--accent); }

/* --- Мобилка: утечки гигантской шкалы старого дизайна (46-52px), которые
   пробивали нейтрализацию bureau специфичностью или соседним селектором --- */
@media (max-width: 990px) {
  .about-main .page-title { font-size: var(--text-xl) !important; padding: 0 0 var(--space-4) !important; } /* .about-main .page-title 52px !important в кэше (0,2,0) бил .page-title (0,1,0) */
  .about-build-list li { font-size: var(--text-sm); padding: var(--space-2) 0 var(--space-2) 28px; }
  .about-build-list li::before { font-size: var(--text-sm); }
  .about-unlimited p, .about-cta p { font-size: var(--text-sm); }
  .ai-hero-title, .content-wrapper .ai-hero-title { font-size: var(--text-xl); } /* .content-wrapper .ai-hero-title (0,2,0) без медиа бил мобильные правила */
}

/* /S0709-PASS */

/* fixed-шапка: контент внутренних страниц под неё (главная с #p1 HERO - абсолютный, отступ не нужен) */
body:not(:has(#p1)) .content-wrapper { padding-top: 96px; }
@media (max-width: 990px) { body:not(:has(#p1)) .content-wrapper { padding-top: 76px; } }

/* === Сложные интеграции - витринный блок под услугами (слово Антона 09.07: самое вкусное отдельно) === */
.integrations-feature-link { text-decoration: none; display: block; margin-top: var(--space-4); }
.integrations-feature {
  display: flex; align-items: center; gap: 28px;
  background: var(--bg-raised, rgba(255,255,255,0.06));
  border: 1px solid rgba(61,216,232,0.35);
  border-radius: 20px;
  padding: 32px 36px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.integrations-feature:hover { border-color: rgba(61,216,232,0.7); box-shadow: 0 8px 40px rgba(61,216,232,0.12); transform: translateY(-2px); }
.integrations-feature-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(61,216,232,0.12); color: var(--accent, #3dd8e8); font-size: 26px; }
.integrations-feature-title { font-family: var(--font-display), sans-serif; font-weight: 700; font-size: 22px; color: var(--text-primary, #fff); margin: 0 0 8px; }
.integrations-feature-text { color: var(--text-secondary, #b8b8c8); font-size: 15px; line-height: 1.55; max-width: 900px; }
@media (max-width: 700px) { .integrations-feature { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; } }

/* === ПОДЛОЖКИ ПОД ТЕКСТ (дизайн - Брайн, 09.07; текст лежал голым на тумане) === */
.text-backdrop, .history-article, .news-detail-content, article.news-detail {
  background: rgba(10, 12, 20, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(61, 216, 232, 0.14);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
@media (max-width: 640px) {
  .text-backdrop, .history-article, .news-detail-content, article.news-detail {
    padding: 20px 18px; border-radius: 12px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .text-backdrop, .history-article, .news-detail-content, article.news-detail { background: rgba(10, 12, 20, 0.92); }
}
/* Текст на подложках светлее (слово Антона 09.07: тускло-серый 8a8a99 читался слабо) */
.history-article p, .history-article li, .news-detail-content p, .news-detail-content li { color: rgba(214, 219, 230, 0.95); }
/* Brain-постер = как персонажи (шаблонное height:340+padding было под старый куцый мозг; новый арт 645x1157 = размер Дарьи) */
.about-team-poster-brain { height: auto !important; padding: 0 !important; object-fit: unset; }
/* Выравнивание карточек команды по сетке (слово Антона 09.07): постеры в одной высоте, низ на одной линии, инфо-блоки стартуют ровно + тянутся до низа */
.about-team-card { height: 100%; }
.about-team-poster, .about-team-poster--darya, .about-team-poster-brain {
  height: 560px !important; width: 100%; max-width: none;
  object-fit: contain; object-position: center bottom;
}
.about-team-info { flex: 1; }
@media (max-width: 768px) {
  .about-team-poster, .about-team-poster--darya, .about-team-poster-brain { height: auto !important; max-width: 260px; }
}
/* Пробел Дарьи (09.07): шаблонное мобильное .about-main{padding:250px 0} старого сайта оставляло дыру 282px под «Кто мы» - низ срезаем как и верх */
.about-main { padding-bottom: 24px !important; }
/* fix 3: розовая/фиолетовая линия под реквизитами/РКН вылезала за ширину блока - фиксируем по ширине контейнера */
.rekvizit > div,
.rkn-badge,
.contacts .col-lg-4 > div:not(.rkn-badge) {
  box-sizing: border-box;
  max-width: 100%;
}

/* Если у контактного блока есть псевдо-линия/бордер - ограничиваем её ширину */
.contacts .row::after,
.rekvizit::after,
.rkn-badge::after {
  content: none !important;
}

/* fix 3: страховка - любой декоративный элемент после бейджа/реквизитов не вылезает */
.rkn-badge + *,
.rekvizit + * {
  max-width: 100%;
  box-sizing: border-box;
}

/* LOGO-S17: fix4 удалён. Он с !important прибивал шапку cases/thanks/history,
   потому что те страницы несли собственную inline-шапку (sticky/42px). Inline-шапку
   вырезали - костыль стал вреден: он ломал ступени брейкпойнтов и на 990px
   поднимал лого на 5px. Геометрию шапки задаёт только базовый блок .main_menu-* выше. */

/* Голосовой ввод виджета (эталон liza-access, 09.07) - базовое определение перенесено с прода при мерже 10.07 */
.chat-voice { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(0,240,255,0.22); background: rgba(0,0,0,0.35); color: #8080a0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; transition: color .2s, border-color .2s, box-shadow .2s; }
.chat-voice:hover { color: #00f0ff; border-color: rgba(0,240,255,0.5); }
.chat-voice.rec { color: #ff5555; border-color: rgba(255,85,85,0.6); box-shadow: 0 0 12px rgba(255,85,85,0.35); animation: voice-pulse 1.2s ease-in-out infinite; }
.chat-voice.hidden { display: none; }
@keyframes voice-pulse { 0%,100% { box-shadow: 0 0 6px rgba(255,85,85,0.25); } 50% { box-shadow: 0 0 16px rgba(255,85,85,0.5); } }
/* Авторастущий ввод чата (голос/текст переносится, 09.07) */
textarea.chat-input { resize: none; overflow-y: auto; max-height: 132px; line-height: 1.45; font-family: inherit; }
/* Бейдж РКН в контактах (09.07) */
.rkn-badge { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; background: rgba(61,216,232,0.07); border: 1px solid rgba(61,216,232,0.3); border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); max-width: 480px; }
.rkn-badge b { color: var(--text-primary); }
.rkn-badge a { color: var(--accent, #3dd8e8); }
.rkn-badge-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(61,216,232,0.15); color: #3dd8e8; font-size: 18px; font-weight: 700; }
/* Куки-баннер (09.07) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99999; display: flex; gap: 14px; align-items: center; justify-content: space-between; max-width: 720px; margin: 0 auto; padding: 14px 18px; background: rgba(10,12,20,0.92); backdrop-filter: blur(14px); border: 1px solid rgba(61,216,232,0.25); border-radius: 14px; font-size: 13.5px; color: #c7ccd8; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.cookie-bar a { color: #3dd8e8; }
.cookie-bar button { flex: none; padding: 9px 20px; border: none; border-radius: 10px; background: linear-gradient(135deg, #3dd8e8, #2ba8b6); color: #04141a; font-weight: 700; font-size: 13.5px; cursor: pointer; }
