/* ========================================================================
   TECHNORAZUM v5.0 — anti-slop, Awwwards-tier
   Taste-skill: variance 8, motion 6, density 4
   Палитра: серо-белый + фиолетовый/синий акценты
   Шрифты: Manrope (sans) + Geist Mono (mono) — Inter/Roboto/Arial ЗАПРЕЩЕНЫ
   ======================================================================== */

/* ========== ТОКЕНЫ ========== */
:root {
  /* Серо-белый фон (не pure white) */
  --bg-base: #f4f4f6;
  --bg-elev: #ececf0;
  --bg-card: #ffffff;
  --bg-vizitki: #f8f8fb;       /* чуть светлее для визиток */

  /* Текст: off-black, не #000 */
  --text: #1f2937;
  --text-strong: #0f172a;
  --text-soft: #4b5563;
  --text-mute: #6b7280;
  --text-faint: #9ca3af;

  /* Акценты: фиолетовый + синий (зелёный — осторожно, только для подсветки) */
  --violet: #7c3aed;
  --violet-deep: #6d28d9;
  --violet-deeper: #5b21b6;
  --violet-soft: #ede9fe;
  --violet-faint: #f5f3ff;
  --blue-1: #3b82f6;
  --blue-2: #1e40af;
  --blue-soft: #dbeafe;
  --blue-faint: #eff6ff;
  --green: #10b981;
  --green-soft: #d1fae5;

  /* Линии (ultra-light, tinted к bg) */
  --line: rgba(31, 41, 55, 0.08);
  --line-soft: rgba(31, 41, 55, 0.05);
  --line-strong: rgba(31, 41, 55, 0.12);

  /* Радиусы — varied */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Tinted shadows (не generic black) */
  --shadow-xs: 0 1px 1px rgba(76, 29, 149, 0.04);
  --shadow-sm: 0 1px 2px rgba(76, 29, 149, 0.05), 0 1px 1px rgba(76, 29, 149, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(76, 29, 149, 0.12), 0 2px 4px rgba(31, 41, 55, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(76, 29, 149, 0.18), 0 4px 12px rgba(76, 29, 149, 0.06);
  --shadow-xl: 0 40px 80px -24px rgba(76, 29, 149, 0.25), 0 8px 16px rgba(76, 29, 149, 0.08);

  /* Inner highlight (liquid glass) */
  --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(76, 29, 149, 0.04);

  /* Spring physics */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 280ms;
  --t-slow: 480ms;
}

/* ========== БАЗА ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* v5.1 — mobile-fix: запрет горизонтального скролла, чтобы activities__tabs / .vizitki__intro не вылезали за 375px */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* v5.1 — mobile-fix: симметрично с html */
  overflow-x: hidden;
  max-width: 100vw;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-med) var(--ease-spring);
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-strong);
}

p {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

kbd {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78em;
  padding: 1px 6px;
  background: var(--bg-elev);
  color: var(--text-soft);
  border-radius: 4px;
  border: 1px solid var(--line);
}

::selection {
  background: var(--violet-soft);
  color: var(--violet-deep);
}

/* skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  /* v5.1 — mobile-fix: контейнер не должен вылезать за viewport */
  min-width: 0;
}

/* display typography */
.display {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.accent-violet { color: var(--violet); }
.accent-blue { color: var(--blue-2); }
.accent-green { color: var(--green); }

/* eyebrow tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ========== NOISE OVERLAY (fixed, pointer-events:none) ========== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.025;
  mix-blend-mode: multiply;
}

/* ========================================================================
   HEADER — floating pill, liquid glass с 1px inner border
   ======================================================================== */
.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  /* z-index:30 → 100 (2026-06-15 zfix):
     1) <section id="about"> имеет position:relative, z-index:auto.
        По CSS-спеке два positioned элемента в одном stacking context
        рисуются в DOM-порядке, и #about (DOM-после header) перекрывал header.
        → z-index 30 (или 0/auto) на header НЕ достаточно: section всё равно выше.
        Нужен z-index >= 1, чтобы header создал собственный stacking context
        и попал ВЫШЕ section#about в общем дереве.
     2) .mega-panel (z-index:50) находится ВНУТРИ .header.
        Если header создаёт stacking context (z-index:30 или выше),
        mega-panel рендерится относительно него, и его эффективный z-index
        на body-уровне = z-index родителя (30). Это НИЖЕ .mega-backdrop (z=40, body).
        → Решение: z-index:100 на header → mega-panel эффективно = 100 на body,
        100 > 40 (backdrop) → panel перекрывает backdrop, текст читаем.
     Итого: 30 → 100. */
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none; /* навигация перехватит */
  padding: 0 16px;
}
.header__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 8px 14px 8px 18px;
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px -8px rgba(76, 29, 149, 0.10),
    0 2px 6px rgba(31, 41, 55, 0.04);
  border-radius: var(--radius-pill);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-spring);
}
.header__inner:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px -8px rgba(76, 29, 149, 0.16),
    0 4px 8px rgba(31, 41, 55, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 10px;
  transition: background var(--t-med) var(--ease-spring);
}
.logo:hover {
  background: var(--violet-faint);
}
.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  align-items: center;
  position: relative; /* v5.1.1 — для mega-menu (left:50% + translateX(-50%) привязка) */
}
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1.5px;
  background: var(--violet);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-med) var(--ease-spring);
}
.nav a:hover {
  color: var(--violet-deep);
  background: var(--violet-faint);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.nav a.is-violet {
  color: var(--violet);
  font-weight: 600;
}
.nav a.is-violet:hover {
  background: var(--violet-soft);
}

/* ========================================================================
   v5.1 — GAZPROM-STYLE MEGA-MENU (full-width hover panels)
   Структура: .nav-item > .nav-link, при hover открывается .mega-menu
   ======================================================================== */
.nav-item {
  position: relative; /* v5.1.1 — было static. Теперь mega-menu привязывается к nav-item, не уезжает куда попало */
  display: inline-block;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1.5px;
  background: var(--violet);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-med) var(--ease-spring);
}
.nav-link:hover,
.nav-item.is-open > .nav-link {
  color: var(--violet-deep);
  background: var(--violet-faint);
}
.nav-link:hover::after,
.nav-item.is-open > .nav-link::after {
  transform: scaleX(1);
}

/* --- Mega-menu panel (Газпром-style: full-width, columns) --- */
.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -10px);
  width: 100%;     /* v5.1.1 — было 100vw (вызывало horizontal scroll на mobile). Теперь по ширине ближайшего positioned предка (.nav/.header) */
  max-width: 1240px; /* v5.1.1 — ограничение чтобы не уехать за container */
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(20, 16, 38, 0.12), 0 4px 12px rgba(20, 16, 38, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-spring), transform var(--t-med) var(--ease-spring), visibility 0s linear var(--t-med);
  z-index: 90;
  padding: 36px 0 44px;
  /* v5.1.1 — если что-то пойдёт не так, не вылезать за экран */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.nav-item.is-open > .mega-menu,
.nav-item:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity var(--t-med) var(--ease-spring), transform var(--t-med) var(--ease-spring), visibility 0s linear 0s;
}
.mega-menu__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.mega-menu__col--lead {
  border-right: 1px solid var(--line);
  padding-right: 32px;
}
.mega-menu__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
.mega-menu__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mega-menu__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.mega-menu__cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px dashed var(--violet);
  transition: color var(--t-fast) var(--ease-spring);
}
.mega-menu__cta:hover { color: var(--violet-deep); border-bottom-color: var(--violet-deep); }
.mega-menu__group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 12px;
}
.mega-menu__col ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.mega-menu__col ul li { margin: 0 0 8px; }
.mega-menu__col ul li a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease-spring), transform var(--t-fast) var(--ease-spring);
}
.mega-menu__col ul li a:hover {
  color: var(--violet);
  transform: translateX(3px);
}

/* --- Backdrop (Газпром: легкое затемнение 0.05) --- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 38, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-spring), visibility 0s linear var(--t-med);
  z-index: 80;
}
.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-med) var(--ease-spring), visibility 0s linear 0s;
}

/* --- Mobile/tablet: mega-menu выключен, fallback в бургер --- */
@media (max-width: 1080px) {
  .mega-menu { display: none; }
  .nav-backdrop { display: none; }
}

/* ========================================================================
   v5.1 — 152-ФЗ: LEGAL-STICKY (реквизиты, Geist Mono, после футера)
   ======================================================================== */
.legal-sticky {
  background: #1a1726;
  color: var(--text-faint);
  padding: 36px 0 24px;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.legal-sticky__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 24px;
}
.legal-sticky__h {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 14px;
}
.legal-sticky__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 16px;
  row-gap: 6px;
  margin: 0;
  padding: 0;
}
.legal-sticky__list dt {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  white-space: nowrap;
}
.legal-sticky__list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  word-break: break-word;
}
.legal-sticky__list dd a {
  color: rgba(167, 139, 250, 0.95);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-spring);
}
.legal-sticky__list dd a:hover { color: #c4b5fd; text-decoration: underline; }
.legal-sticky__docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.legal-sticky__docs li a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease-spring);
}
.legal-sticky__docs li a:hover { color: #c4b5fd; border-bottom-color: #c4b5fd; }
.legal-sticky__note {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 980px;
}
@media (max-width: 760px) {
  .legal-sticky__grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-sticky__list { grid-template-columns: 1fr; row-gap: 4px; }
  .legal-sticky__list dt { margin-top: 8px; }
  .legal-sticky__list dt:first-child { margin-top: 0; }
}

/* v5.1 — карточка реквизитов внутри секции Контакты */
.contact-requisites {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}
.contact-requisites b { color: var(--text); font-weight: 600; }
.contact-requisites__title {
  grid-column: 1 / -1;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .contact-requisites { grid-template-columns: 1fr; }
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background var(--t-med) var(--ease-spring), border-color var(--t-med) var(--ease-spring);
}
.burger:hover {
  background: var(--violet-faint);
  border-color: var(--violet-soft);
}
.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-spring), opacity var(--t-med) var(--ease-spring);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* ========================================================================
   STICKY LOGIN — button-in-button
   ======================================================================== */
.login-sticky {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 16px 40px -8px rgba(124, 58, 237, 0.4),
    0 4px 12px rgba(76, 29, 149, 0.2);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-spring);
}
.login-sticky:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 20px 48px -8px rgba(124, 58, 237, 0.5),
    0 6px 16px rgba(76, 29, 149, 0.3);
}
.login-sticky:active {
  transform: translateY(0) scale(0.98);
}
.login-sticky__inner {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: var(--radius-pill);
  position: relative;
}
.login-sticky__inner::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  z-index: -1;
  transition: background var(--t-med) var(--ease-spring);
}
.login-sticky:hover .login-sticky__inner::after {
  background: rgba(255, 255, 255, 0.18);
}
.login-sticky__label {
  max-width: 0;
  padding: 0;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: max-width var(--t-med) var(--ease-spring), padding var(--t-med) var(--ease-spring), opacity var(--t-med) var(--ease-spring);
}
.login-sticky:hover .login-sticky__label {
  max-width: 100px;
  padding-right: 20px;
  opacity: 1;
}

/* ========================================================================
   КНОПКИ — button-in-button, spring physics
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition:
    transform var(--t-med) var(--ease-spring),
    background var(--t-med) var(--ease-spring),
    box-shadow var(--t-med) var(--ease-spring),
    color var(--t-med) var(--ease-spring),
    border-color var(--t-med) var(--ease-spring);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 24px -8px rgba(124, 58, 237, 0.5);
}
.btn--primary:hover {
  background: var(--violet-deep);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 32px -8px rgba(124, 58, 237, 0.6);
}
.btn--white {
  background: #fff;
  color: var(--violet-deep);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.18);
}
.btn--white:hover {
  background: var(--violet-faint);
  color: var(--violet-deeper);
}
.btn--ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--violet-faint);
  border-color: var(--violet-soft);
  color: var(--violet-deep);
}
.btn--with-arrow { padding-right: 14px; }
.btn__icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: transform var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
}
.btn--white .btn__icon-circle--dark {
  background: var(--violet-soft);
  color: var(--violet-deep);
}
.btn:hover .btn__icon-circle {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, 0.26);
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  padding: 132px 0 80px;       /* место под floating header */
  background:
    radial-gradient(ellipse 60% 50% at 88% 8%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(59, 130, 246, 0.08), transparent 60%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__copy .display {
  margin-bottom: 24px;
}
.hero__copy .lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* v6.1 — зелёный success-бейдж (RAG: branding-guidelines → Success = зелёный) */
.hero__success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--green-soft) 0%, #fff 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  width: fit-content;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 14px -4px rgba(16, 185, 129, 0.18);
  animation: hero-success-pulse 2.4s var(--ease-spring) infinite;
}
.hero__success-badge strong {
  font-weight: 700;
  color: #065f46;
}
.hero__success-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}
@keyframes hero-success-pulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 4px 14px -4px rgba(16, 185, 129, 0.18), 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 4px 14px -4px rgba(16, 185, 129, 0.18), 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* v6.1 — зелёная gradient-обводка на CTA (RAG: Success = зелёный) */
.btn--green-border {
  position: relative;
  background: linear-gradient(135deg, var(--violet) 0%, #7c3aed 50%, var(--green) 130%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position var(--t-med) var(--ease-spring), transform var(--t-med) var(--ease-spring);
  box-shadow:
    0 0 0 2px var(--green) inset,
    0 0 0 4px var(--green-soft) inset,
    0 8px 24px -8px rgba(16, 185, 129, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn--green-border:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px var(--green) inset,
    0 0 0 4px var(--green-soft) inset,
    0 12px 32px -8px rgba(16, 185, 129, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}
.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.hero__stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--violet-deep);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__stat span {
  font-size: 13px;
  color: var(--text-mute);
}

/* carousel */
.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
}
.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  z-index: 3;
}
.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 36px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
  pointer-events: none;
  text-align: center;
}
.carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.carousel__slide.violet {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff;
}
.carousel__slide.blue {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: #fff;
}
.carousel__slide.violet-soft {
  background: linear-gradient(135deg, var(--violet-soft) 0%, #fff 100%);
  color: var(--violet-deep);
}
.carousel__slide.blue-soft {
  background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 100%);
  color: var(--blue-2);
}
.carousel__slide.dark {
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
  color: #fff;
}
.carousel__slide--contrast {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #312e81 100%);
  color: #fff;
}
.carousel__slide--contrast h2 { color: #fff; }
.carousel__slide--contrast p { color: rgba(255,255,255,0.92); }
.carousel__slide h2 {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 800;
  max-width: 22ch;
}
.carousel__slide p {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.5;
}
.carousel__slide .atom {
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
  animation: spin 14s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.carousel__dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 4;
}
.carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
}
.carousel__dots button.is-active {
  width: 28px;
  border-radius: 4px;
  background: #fff;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 4;
  transition: transform var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.12);
}
.carousel__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.carousel__nav:active {
  transform: translateY(-50%) scale(0.94);
}
.carousel__nav.prev { left: 14px; }
.carousel__nav.next { right: 14px; }

/* ========================================================================
   СЕКЦИИ
   ======================================================================== */
.section {
  position: relative;
  padding: 96px 0;
}
.section--vizitki {
  background: var(--bg-vizitki);
  background-image:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(124, 58, 237, 0.04), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(59, 130, 246, 0.04), transparent 60%);
}

.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head--left {
  margin: 0 0 48px;
  text-align: left;
}
.section__eyebrow {
  display: inline-block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--violet-faint);
  border-radius: var(--radius-pill);
}
.section .display {
  margin-bottom: 18px;
}
.section__lead {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}
.section__head--left .section__lead {
  margin: 0;
}

/* ========================================================================
   ACTIVITIES — hover-list, asymmetric
   ======================================================================== */
.activities {
  position: relative;
}
.activities__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.activities__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-soft);
  transition: color var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
}
.activities__tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: currentColor;
  transition: transform var(--t-med) var(--ease-spring);
}
.activities__tab:hover,
.activities__tab.is-active {
  color: var(--violet-deep);
  background: var(--violet-soft);
}
.activities__tab:hover .activities__tab-icon,
.activities__tab.is-active .activities__tab-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* v5.1 — mobile: показываем короткие лейблы */
.activities__tab-short { display: none; }
@media (max-width: 480px) {
  .activities__tab-full { display: none; }
  .activities__tab-short { display: inline; }
}

/* v5.1.2 — бейдж "Анонс" в activities tab и bento card (по голосовому Макария) */
.activities__badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1.2;
  vertical-align: middle;
}
.bento__badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

.activities__panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  min-height: 360px;
  animation: panelIn 400ms var(--ease-spring);
}
.activities__panel.is-active {
  display: grid;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.activities__panel-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.activities__panel-content .lead {
  color: var(--text-soft);
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.6;
}
.activities__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.activities__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-soft);
}
.activities__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}

.activities__visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--violet-soft) 0%, var(--blue-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.activities__visual--blue {
  background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 100%);
}
.activities__visual--violet {
  background: linear-gradient(135deg, var(--violet-faint) 0%, var(--violet-soft) 100%);
}
.activities__visual--green {
  background: linear-gradient(135deg, var(--green-soft) 0%, #fff 100%);
}
.activities__visual-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.orb {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--violet) 0%, var(--violet-deep) 80%);
  box-shadow: 0 20px 60px -12px rgba(124, 58, 237, 0.4);
  animation: orbFloat 8s var(--ease-in-out) infinite;
}
.orb--small {
  width: 30%;
  height: 30%;
  top: 12%;
  left: 8%;
  background: radial-gradient(circle at 30% 30%, var(--blue-1) 0%, var(--blue-2) 80%);
  box-shadow: 0 12px 32px -8px rgba(59, 130, 246, 0.4);
  animation-delay: -2s;
}
.orb--tiny {
  width: 18%;
  height: 18%;
  bottom: 12%;
  right: 12%;
  background: radial-gradient(circle at 30% 30%, #c4b5fd 0%, #7c3aed 80%);
  box-shadow: 0 8px 24px -4px rgba(196, 181, 253, 0.5);
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(8px, -10px); }
}

/* ========================================================================
   ВИЗИТКИ / AI ВИДЖЕТ — double-bezel
   ======================================================================== */
.vizitki__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
  /* v5.1 — mobile-fix: не даём растягиваться за viewport */
  min-width: 0;
}
.vizitki__intro,
.vizitki__panel,
.vizitki__card {
  min-width: 0;
  max-width: 100%;
}
.vizitki__intro-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.vizitki__intro-text {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.vizitki__feats {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.vizitki__feats li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-spring), border-color var(--t-med) var(--ease-spring);
}
.vizitki__feats li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-soft);
}
.vizitki__feats li strong { color: var(--violet-deep); }
.vizitki__feats li .ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-soft);
  color: var(--violet-deep);
  border-radius: 10px;
}
.vizitki__feats li > div {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

.vizitki__microstats {
  display: flex;
  gap: 32px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.vizitki__microstats > div {
  display: flex;
  flex-direction: column;
}
.vizitki__microstats strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--violet-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.vizitki__microstats span {
  font-size: 12px;
  color: var(--text-mute);
}

/* AI WIDGET — outer shell (double-bezel) */
.ai-shell {
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid rgba(31, 41, 55, 0.06);
  border-radius: calc(var(--radius-xl) + 12px);
  box-shadow: var(--shadow-lg);
  position: relative;
  min-height: 580px;
}
.ai-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.ai {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  min-height: calc(580px - 24px);
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ai__head {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--violet-faint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.ai__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue-1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.4), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.ai__title { font-weight: 700; font-size: 14px; }
.ai__sub { font-size: 12px; color: var(--text-mute); }
.ai__status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  animation: status-blink 1.6s var(--ease-in-out) infinite;
}
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.ai__log {
  flex: 1;
  padding: 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  scroll-behavior: smooth;
}
.ai__msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgIn 280ms var(--ease-spring);
  word-wrap: break-word;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ai__msg--user {
  align-self: flex-end;
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.3);
}
.ai__msg--bot {
  align-self: flex-start;
  background: var(--bg-base);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--line-soft);
}
.ai__msg--bot strong { color: var(--violet-deep); }
.ai__msg--bot code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  background: var(--bg-elev);
  padding: 1px 5px;
  border-radius: 4px;
}
.ai__msg img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 6px;
}

.ai__typing {
  align-self: flex-start;
  margin: 0 22px 8px;
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: 14px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--line-soft);
}
.ai__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-mute);
  animation: blink 1.2s var(--ease-in-out) infinite;
}
.ai__typing span:nth-child(2) { animation-delay: 0.15s; }
.ai__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.ai__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 10px;
}
.ai__chip {
  padding: 6px 12px;
  background: var(--bg-base);
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-med) var(--ease-spring), color var(--t-med) var(--ease-spring), border-color var(--t-med) var(--ease-spring);
}
.ai__chip:hover {
  background: var(--violet-soft);
  color: var(--violet-deep);
  border-color: var(--violet-soft);
}
.ai__chip:active {
  transform: scale(0.96);
}

.ai__input {
  padding: 14px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
}
.ai__input input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-base);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
}
.ai__input input[type="text"]:focus {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.ai__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: background var(--t-med) var(--ease-spring), color var(--t-med) var(--ease-spring), border-color var(--t-med) var(--ease-spring);
}
.ai__icon-btn:hover {
  background: var(--violet-soft);
  color: var(--violet-deep);
  border-color: var(--violet-soft);
}
.ai__icon-btn.is-recording {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
  animation: pulse-rec 1s var(--ease-in-out) infinite;
}
@keyframes pulse-rec {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.ai__send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-med) var(--ease-spring), transform var(--t-med) var(--ease-spring);
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.4);
}
.ai__send:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}
.ai__send:active {
  transform: scale(0.96);
}
.ai__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.ai__hint {
  padding: 0 22px 14px;
  font-size: 12px;
  color: var(--text-mute);
}

/* AI launcher pill */
.ai-launcher {
  position: fixed;
  right: 96px;
  bottom: 36px;
  z-index: 24;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: var(--text-strong);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 16px 40px -8px rgba(15, 23, 42, 0.35);
  animation: floatIn 400ms var(--ease-spring);
  transition: transform var(--t-med) var(--ease-spring);
}
.ai-launcher.is-shown { display: inline-flex; }
.ai-launcher:hover { transform: translateY(-2px); }
.ai-launcher__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.2s var(--ease-in-out) infinite;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* AI modal */
.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 220ms var(--ease-out);
  padding: 16px;
}
.ai-modal.is-shown { display: flex; }
.ai-modal__card {
  width: min(440px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: floatIn 280ms var(--ease-spring);
  position: relative;
}
.ai-modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.ai-modal__hero {
  padding: 32px 24px 22px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue-1) 100%);
  color: #fff;
  text-align: center;
  position: relative;
}
.ai-modal__ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.ai-modal__hero h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #fff;
}
.ai-modal__hero p {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.5;
}
.ai-modal__body { padding: 22px 24px 24px; }
.ai-modal__actions {
  display: flex;
  gap: 8px;
}
.ai-modal__actions .btn {
  flex: 1;
  justify-content: center;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================================================
   ИНДУСТРИЯ 5.0 banner
   ======================================================================== */
.industry {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 60%, var(--blue-2) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 30px 60px -20px rgba(76, 29, 149, 0.5);
  position: relative;
  overflow: hidden;
}
.industry::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 30% 30% at 0% 100%, rgba(196, 181, 253, 0.18), transparent 60%);
  pointer-events: none;
}
.industry > * { position: relative; z-index: 1; }
.industry__eyebrow {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}
.industry__title {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.industry__accent {
  color: #c4b5fd;
}
.industry__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 50ch;
}
.industry__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry__atom {
  width: 100%;
  max-width: 220px;
  height: auto;
  animation: spin 22s linear infinite;
}

/* ========================================================================
   BENTO — asymmetric lineup (НЕ 3-equal-cards)
   ======================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento__cell {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-spring), border-color var(--t-med) var(--ease-spring);
  overflow: hidden;
}
.bento__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.bento__cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-soft);
}
.bento__cell--xl { grid-column: span 3; min-height: 280px; }
.bento__cell--xl .bento__ico { width: 56px; height: 56px; }
.bento__cell--xl h3 { font-size: 24px; }
.bento__cell--xl p { font-size: 15px; }
.bento__cell--lg { grid-column: span 3; min-height: 220px; }
.bento__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease-spring);
}
.bento__cell:hover .bento__ico { transform: rotate(-6deg) scale(1.06); }
.bento__cell h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bento__cell p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  flex: 1;
}
.bento__arrow {
  align-self: flex-start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-med) var(--ease-spring), background var(--t-med) var(--ease-spring);
}
.bento__cell:hover .bento__arrow {
  background: var(--violet);
  color: #fff;
  transform: translate(4px, -4px);
}

/* tone variants */
.bento__cell[data-tone="violet"] {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  border-color: transparent;
  color: #fff;
}
.bento__cell[data-tone="violet"] h3 { color: #fff; }
.bento__cell[data-tone="violet"] p { color: rgba(255, 255, 255, 0.85); }
.bento__cell[data-tone="violet"] .bento__ico {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.bento__cell[data-tone="violet"] .bento__arrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.bento__cell[data-tone="violet-deep"] .bento__ico { background: var(--violet); color: #fff; }
.bento__cell[data-tone="blue"] .bento__ico { background: var(--blue-1); color: #fff; }
.bento__cell[data-tone="blue-deep"] .bento__ico { background: var(--blue-2); color: #fff; }
.bento__cell[data-tone="green"] .bento__ico { background: var(--green); color: #fff; }
.bento__cell[data-tone="white"] .bento__ico { background: var(--violet-soft); color: var(--violet-deep); }

/* ========================================================================
   КОНТАКТЫ
   ======================================================================== */
.contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-spring), border-color var(--t-med) var(--ease-spring);
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-soft);
}
.contact-card__ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-card[data-tone="violet"] {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  border-color: transparent;
  color: #fff;
}
.contact-card[data-tone="violet"] h3 { color: #fff; }
.contact-card[data-tone="violet"] p { color: rgba(255, 255, 255, 0.85); }
.contact-card[data-tone="violet"] .contact-card__ico {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.contact-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-soft);
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 14px;
  background: var(--bg-elev);
}
.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  margin-bottom: 40px;
}
.logo--footer img {
  height: 44px;
  width: auto;
}
.footer__tagline {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 13px;
  color: var(--text-mute);
}
.footer h4 {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  color: var(--text);
}
.footer li { margin-bottom: 8px; }
.footer a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color var(--t-med) var(--ease-spring);
}
.footer a:hover { color: var(--violet); }
.footer__muted { color: var(--text-mute); font-size: 13px; }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-mute);
}

/* ========================================================================
   REVEAL ANIMATIONS (IntersectionObserver)
   ======================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-spring), transform 700ms var(--ease-spring);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
/* stagger через data-stagger */
[data-reveal].is-in:nth-child(1) { transition-delay: 0ms; }
[data-reveal].is-in:nth-child(2) { transition-delay: 80ms; }
[data-reveal].is-in:nth-child(3) { transition-delay: 160ms; }
[data-reveal].is-in:nth-child(4) { transition-delay: 240ms; }
[data-reveal].is-in:nth-child(5) { transition-delay: 320ms; }
[data-reveal].is-in:nth-child(6) { transition-delay: 400ms; }
[data-reveal].is-in:nth-child(7) { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ========================================================================
   RESPONSIVE — mobile collapse
   ======================================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .vizitki__grid { grid-template-columns: 1fr; }
  .industry { grid-template-columns: 1fr; padding: 40px 32px; }
  .industry__visual { order: -1; max-width: 160px; margin: 0 auto; }
  .activities__panel { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell--xl { grid-column: span 4; }
  .bento__cell--lg { grid-column: span 4; }
  .bento__cell { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }  /* v5.1.1 — убрал !important, чтобы .nav.is-open мог перебить */
  .nav-item { display: none; }  /* v5.1.1 — на mobile nav-item тоже не нужен (без !important — перебивается при is-open) */
  .burger { display: flex; }
  .mega-menu { display: none !important; }  /* v5.1.1 — mega-menu только desktop (!important OK — оно не должно никогда быть видно) */
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin: 0 16px;
    box-shadow: var(--shadow-lg);
    z-index: 30;
  }
  .nav.is-open a {
    padding: 10px 14px;
    font-size: 15px;
  }
  .nav.is-open .nav-item { display: block; } /* v5.1.1 — показать пункты внутри открытого меню */
  .header__inner { padding: 8px 10px 8px 14px; min-height: 56px; }
  .logo img { height: 36px; }
  .hero { padding: 96px 0 56px; }
  .section { padding: 64px 0; }
  .display { font-size: clamp(28px, 8vw, 40px); }
  .activities__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: var(--radius-lg);
    padding: 6px;
  }
  .activities__tabs::-webkit-scrollbar { display: none; }
  .activities__tab { white-space: nowrap; flex-shrink: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell, .bento__cell--xl, .bento__cell--lg { grid-column: span 1; }
  .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .login-sticky { right: 14px; bottom: 18px; }
  .login-sticky__inner { width: 50px; height: 50px; }
  .ai-launcher { right: 16px; bottom: 84px; padding: 10px 16px; font-size: 13px; }
  .industry { padding: 32px 24px; }
  .vizitki__microstats { gap: 20px; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 24px; }
  .hero__stat strong { font-size: 24px; }
  .ai__log { max-height: 280px; }
  .ai-shell { min-height: 500px; }
  .ai { min-height: 476px; }
  .ai__input input[type="text"] { font-size: 13px; }
}

/* ============================================================
   v5.1.1 — MOBILE FIX HARD (твой баг "съехало", второй round)
   ============================================================ */
@media (max-width: 768px) {
  body, html { overflow-x: hidden !important; max-width: 100% !important; }
  .ai-launcher { right: 12px !important; bottom: 84px !important; max-width: calc(100vw - 24px); }
  .ai-launcher__label { display: none !important; }
  .login-sticky { right: 12px !important; bottom: 16px !important; }
  .ai-fab { right: 12px !important; bottom: 90px !important; }
  .nav-backdrop { display: none !important; }
  .header { top: 8px !important; left: 8px !important; right: 8px !important; width: auto !important; max-width: calc(100vw - 16px) !important; }
  .header__inner, .header__row { padding: 0 12px !important; max-width: 100% !important; }
  .nav { gap: 0 !important; }
  .container { padding: 0 16px !important; max-width: 100% !important; }
  .hero__grid, .bento, .activities__panel, .footer__grid, .contacts, .vizitki__grid, .industry { max-width: 100% !important; }
  input, textarea, select { font-size: 16px !important; }
}
@media (max-width: 480px) {
  .hero__display, .display { font-size: 32px !important; line-height: 1.1 !important; }
  .legal-sticky { padding: 16px 12px !important; font-size: 11px !important; grid-template-columns: 1fr !important; }
  .legal-sticky__col { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; padding: 8px 0 !important; }
  /* v5.1.1 — на ≤480px nav-item не block (display: contents), а при is-open возвращаем в block */
  .nav-item, .nav-link { display: contents; }
  .nav.is-open .nav-item { display: block !important; }
  .nav.is-open .nav-link { display: block !important; }
}

/* ===== v5.1.2 — LOGO + ПОДПИСЬ "Технологии + разум" ===== */
.logo {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.logo img { height: 44px; width: auto; }
.logo__caption {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft, #3f3f46);
  white-space: nowrap;
  line-height: 1.2;
  border-left: 1px solid var(--line, #e4e4e7);
  padding-left: 10px;
  margin-left: 4px;
  display: inline-block;
}
.logo__caption:hover { color: var(--violet-deep, #5b21b6); }

@media (max-width: 760px) {
  .logo__caption { display: none; } /* на мобильном — только логотип (экономия места) */
  .logo img { height: 36px; }
}

/* ========== HOVER-CARDS (Виды деятельности, как на МТС) ========== */
.section--activities { padding: 96px 0; }
.hover-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.hover-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.hover-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent, #7c3aed);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}
.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--accent, #7c3aed);
}
.hover-card:hover::before { transform: scaleY(1); }
.hover-card__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(124,58,237,0.08));
  color: var(--accent, #7c3aed);
  border-radius: 12px;
}
.hover-card__body { flex: 1; min-width: 0; }
.hover-card__body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink, #1f2937);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hover-card__body p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--ink-soft, #6b7280);
}
.hover-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #7c3aed);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
  display: inline-block;
}
.hover-card:hover .hover-card__cta {
  opacity: 1;
  transform: translateX(0);
}
.hover-card[data-tone="violet"]       { --accent: #7c3aed; --accent-soft: rgba(124,58,237,0.08); }
.hover-card[data-tone="violet-deep"]  { --accent: #5b21b6; --accent-soft: rgba(91,33,182,0.08); }
.hover-card[data-tone="violet-soft"]  { --accent: #a78bfa; --accent-soft: rgba(167,139,250,0.08); }
.hover-card[data-tone="blue"]         { --accent: #2563eb; --accent-soft: rgba(37,99,235,0.08); }
.hover-card[data-tone="blue-deep"]    { --accent: #1e40af; --accent-soft: rgba(30,64,175,0.08); }
.hover-card[data-tone="green"]        { --accent: #059669; --accent-soft: rgba(5,150,105,0.08); }
.hover-card[data-tone="white"]        { --accent: #1f2937; --accent-soft: rgba(31,41,55,0.06); }
.badge-announce {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  border-radius: 6px;
  vertical-align: middle;
}

.hover-card__detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  color: var(--ink-soft, #6b7280);
}
.hover-card:hover .hover-card__detail { display: block; }

/* ========== NAV CARET (TZ-4 v5.1.6 — vertical-align + margin) ========== */
.nav-item--has-dropdown { position: relative; }
.nav-caret {
  margin-left: 6px;            /* TZ-4: 4→6px чтобы не лип к тексту */
  display: inline-block;
  vertical-align: middle;      /* TZ-4: выравнивание по центру текста */
  position: relative;
  top: -1px;                   /* TZ-4: микро-сдвиг для оптического центрирования */
  transition: transform 0.2s ease;
  flex-shrink: 0;              /* TZ-4: не сжимается во flex-контейнере */
}
.nav-item--has-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 360px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink, #1f2937);
  transition: background 0.15s ease;
}
.nav-dropdown__item:hover {
  background: var(--bg-soft, #f5f3ff);
}
.nav-dropdown__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: rgba(124,58,237,0.08);
  border-radius: 8px;
}
.nav-dropdown__item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}
.nav-dropdown__item small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .nav-dropdown {
    position: static;
    transform: none;
    min-width: auto;
    width: 100%;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.08);
    margin-top: 8px;
    display: none;
  }
  .nav-item--has-dropdown:hover .nav-dropdown { display: grid; }
}

/* ========== PRODUCT DETAIL (описания) ========== */
.section--products-detail { padding: 64px 0; background: #fafafb; }
.product-detail {
  padding: 48px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  scroll-margin-top: 100px;
}
.product-detail:last-child { border-bottom: none; }
.product-detail__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 16px;
}
.product-detail h2 { margin-bottom: 16px; }
.product-detail .lead { font-size: 17px; line-height: 1.6; max-width: 720px; }
.product-detail__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.product-detail__list li {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   v5.1.4 — MTS-style mega-menu, animated logo, about section,
   carousel contrast, hover-cards, badge-announce
   ============================================================ */

/* --- Animated SVG logo (TZ-3 v5.1.6 — header 48px, fits 64px header pill) --- */
.logo__svg {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.logo:hover .logo__svg { transform: scale(1.05); }
.logo--footer .logo__svg {
  width: 72px;
  height: 72px;
}
@media (max-width: 720px) {
  .logo__svg { width: 40px; height: 40px; }
  .logo--footer .logo__svg { width: 56px; height: 56px; }
}

/* prefers-reduced-motion: stop CSS-driven transforms, let SVG use its own media query */
@media (prefers-reduced-motion: reduce) {
  .logo__svg, .logo:hover .logo__svg { transition: none; transform: none; }
}

/* --- MTS-style mega-panel (full-width) --- */
.nav-item--mega { position: static; }  /* важно: панель растягивается на всю ширину header */
.nav-item--mega .nav-link { display: inline-flex; align-items: center; gap: 4px; }

.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.22s ease, visibility 0s 0.22s;
  z-index: 60; /* 2026-06-15 zfix2: гарантированно выше .mega-backdrop (z=20) */
}
.nav-item--mega:hover > .mega-panel,
.nav-item--mega:focus-within > .mega-panel,
.nav-item--mega.is-open > .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease 0.05s, transform 0.22s ease 0.05s, visibility 0s 0s;
}

.mega-panel__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 48px;
}

.mega-panel__col--lead {
  border-right: 1px solid rgba(0,0,0,0.06);
  padding-right: 32px;
}
.mega-panel__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 12px;
}
.mega-panel__title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #1f2937;
  font-weight: 700;
}
.mega-panel__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 20px;
  max-width: 320px;
}
.mega-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid #7c3aed;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.mega-panel__cta:hover { background: #7c3aed; color: #fff; }

.mega-panel__group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 12px;
}
.mega-panel__group + .mega-panel__group { margin-top: 24px; }
.mega-panel__col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 4px;
}
.mega-panel__col ul li { margin: 0; }
.mega-panel__col ul li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #1f2937;
  transition: background 0.15s ease;
}
.mega-panel__col ul li a:hover { background: #f5f3ff; }
.mega-panel__li-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(124,58,237,0.08);
  border-radius: 8px;
  line-height: 1;
}
.mega-panel__col ul li a strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}
.mega-panel__col ul li a small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* Nav caret rotate on mega open */
.nav-item--mega:hover .nav-caret,
.nav-item--mega.is-open .nav-caret { transform: rotate(180deg); }

/* --- v5.1.5 — Backdrop overlay-blur (MTS-style) --- */
.mega-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(15, 11, 30, 0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  /* TZ-5 v5.1.6: переход на 250ms ease-out для fade-in/out */
  transition: opacity 250ms ease-out, visibility 0s 250ms;
  z-index: 20; /* 2026-06-15 zfix2: ниже .header (z=100) и ниже .mega-panel (z=60 в header) */
  pointer-events: none;
}
.mega-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  /* TZ-5 v5.1.6: открытие — 250ms, без задержки на visibility */
  transition: opacity 250ms ease-out, visibility 0s 0s;
  pointer-events: auto;
}

/* Mobile/tablet: mega-panel прячем, fallback в бургер */
@media (max-width: 1100px) {
  .mega-panel { display: none; }
  .mega-backdrop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mega-panel { transition: none; transform: none; }
  .nav-item--mega:hover > .mega-panel { transform: none; }
}

/* --- Carousel contrast slide (Действуй как лидер) --- */
.carousel__slide--contrast {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #312e81 100%);
  color: #ffffff;
}
.carousel__slide--contrast h2 { color: #ffffff; }
.carousel__slide--contrast p { color: rgba(255,255,255,0.85); }
.carousel__slide--contrast .atom { opacity: 0.9; }

/* --- Badge (Анонс) --- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #f5f3ff;
  color: #7c3aed;
  margin-bottom: 12px;
}
.badge--announce {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #7c3aed;
  border: 1px solid rgba(124,58,237,0.18);
}
.badge--inline {
  margin-left: 8px;
  margin-bottom: 0;
  padding: 2px 8px;
  font-size: 10px;
  vertical-align: middle;
}

/* --- Section: О нас --- */
.section--about { padding: 80px 0; background: linear-gradient(180deg, #fafafb 0%, #f4f4f6 100%); }
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__copy h2 { font-size: 38px; line-height: 1.2; margin: 0 0 20px; }
.about__lead {
  font-size: 16px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 14px;
  max-width: 620px;
}
.about__stats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.about__stats li {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.about__stats strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1.1;
  font-family: 'Geist Mono', monospace;
}
.about__stats span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__svg { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__copy h2 { font-size: 28px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Hover-animations on bento (Промт #4: "как у Действуй как лидер") --- */
.bento__cell {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease, background 0.28s ease;
}
.bento__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(124,58,237,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.bento__cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(124,58,237,0.18);
}
.bento__cell:hover::before { opacity: 1; }
.bento__cell .bento__arrow {
  transition: transform 0.28s ease;
}
.bento__cell:hover .bento__arrow { transform: translateX(4px); }

/* --- Hover-animations on contact-cards --- */
.contact-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.12);
}

/* --- Activities tabs: subtle hover --- */
.activities__tab {
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.activities__tab:hover { transform: translateY(-1px); }

/* --- Hero CTA hover polish --- */
.btn--primary,
.btn--ghost {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(124,58,237,0.32); }
.btn--ghost:hover { transform: translateY(-2px); }

/* ========================================================================
   TECHNORAZUM v6.0 — messenger teaser, 3 activities cards, employees,
   marketing/hiring/education/events sections, requisites placeholders
   ======================================================================== */

/* ========== v6.1 — О НАС (компактный) ========== */
.section--about-compact {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.section--about-compact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(124, 58, 237, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 50% at 100% 50%, rgba(16, 185, 129, 0.05), transparent 60%);
  pointer-events: none;
}
.about-compact {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.about-compact .section__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
}
.about-compact__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 24px;
}
.about-compact__quote {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-mute);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  position: relative;
  font-style: normal;
  font-weight: 400;
}
.about-compact__quote-mark {
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
  margin: 0 2px;
}
.about-compact__quote-author {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-style: normal;
}
@media (max-width: 720px) {
  .section--about-compact { padding: 40px 0 28px; }
  .about-compact__quote { font-size: 15px; padding: 14px 16px; }
}

/* ========== MESSENGER TEASER (announce, не карточка) ========== */
.section--messenger-teaser {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.messenger-teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 56px 56px 56px 56px;
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.messenger-teaser::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.messenger-teaser__body { position: relative; z-index: 2; }
.messenger-teaser__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  line-height: 1.1;
}
.messenger-teaser__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 24px;
}
.messenger-teaser__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.messenger-teaser__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}
.messenger-teaser__phone {
  width: 280px;
  height: 380px;
  background: linear-gradient(180deg, #1f1f2e 0%, #2a1a4a 100%);
  border-radius: 32px;
  padding: 24px 18px;
  box-shadow: 0 32px 80px -20px rgba(76, 29, 149, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.messenger-teaser__phone-bar {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin: 0 auto 12px;
}
.messenger-teaser__phone-bubble {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 90%;
  animation: bubble-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.messenger-teaser__phone-bubble--in {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.messenger-teaser__phone-bubble--out {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.messenger-teaser__phone-bubble:nth-child(2) { animation-delay: 0.1s; }
.messenger-teaser__phone-bubble:nth-child(3) { animation-delay: 0.4s; }
.messenger-teaser__phone-bubble:nth-child(4) { animation-delay: 0.7s; }
.messenger-teaser__phone-ico { font-size: 16px; flex-shrink: 0; }
.messenger-teaser__phone-typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.messenger-teaser__phone-typing span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.messenger-teaser__phone-typing span:nth-child(2) { animation-delay: 0.2s; }
.messenger-teaser__phone-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 880px) {
  .messenger-teaser {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 32px;
  }
  .messenger-teaser__visual { min-height: 320px; }
  .messenger-teaser__phone { width: 240px; height: 320px; }
}

/* ========== ACTIVITIES: 3 cards (Виды деятельности) ========== */
.activities-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.activity-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s var(--ease-spring), border-color 0.32s var(--ease-spring);
  overflow: hidden;
  isolation: isolate;
}
.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
  background: radial-gradient(circle at top right, var(--card-tone, transparent), transparent 60%);
  transition: opacity 0.32s var(--ease-spring);
}
.activity-card[data-tone="violet-soft"]   { --card-tone: rgba(124, 58, 237, 0.10); }
.activity-card[data-tone="blue"]          { --card-tone: rgba(59, 130, 246, 0.10); }
.activity-card[data-tone="green"]         { --card-tone: rgba(16, 185, 129, 0.10); }
.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.activity-card:hover::before { opacity: 1; }
.activity-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.activity-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.activity-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--violet-soft);
  color: var(--violet);
  flex-shrink: 0;
}
.activity-card[data-tone="blue"]  .activity-card__ico { background: var(--blue-soft); color: var(--blue-1); }
.activity-card[data-tone="green"] .activity-card__ico { background: var(--green-soft); color: var(--green); }
.activity-card__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.activity-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.activity-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.activity-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}
.activity-card[data-tone="blue"]  .activity-card__list li::before { background: var(--blue-1); }
.activity-card[data-tone="green"] .activity-card__list li::before { background: var(--green); }
.activity-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.activity-card__cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease-spring), border-color 0.22s var(--ease-spring), transform 0.22s var(--ease-spring);
}
.activity-card[data-tone="blue"]  .activity-card__cta { color: var(--blue-1); }
.activity-card[data-tone="green"] .activity-card__cta { color: var(--green); }
.activity-card__cta:hover {
  border-bottom-color: currentColor;
  transform: translateX(2px);
}

@media (max-width: 880px) {
  .activities-cards { grid-template-columns: 1fr; gap: 16px; }
}

/* ========== EMPLOYEES: 8 cards ========== */
.section--employees {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elev) 100%);
}
.employees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.employee-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring), border-color 0.28s var(--ease-spring);
  min-height: 200px;
  isolation: isolate;
}
.employee-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, var(--card-tone, transparent), transparent 60%);
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.32s var(--ease-spring);
}
.employee-card[data-tone="violet"]      { --card-tone: rgba(124, 58, 237, 0.10); }
.employee-card[data-tone="violet-deep"] { --card-tone: rgba(91, 33, 182, 0.10); }
.employee-card[data-tone="blue"]        { --card-tone: rgba(59, 130, 246, 0.10); }
.employee-card[data-tone="blue-deep"]   { --card-tone: rgba(30, 64, 175, 0.10); }
.employee-card[data-tone="green"]       { --card-tone: rgba(16, 185, 129, 0.10); }
.employee-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.employee-card:hover::after { opacity: 1; }
.employee-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet);
}
.employee-card[data-tone="violet-deep"] .employee-card__avatar { background: var(--violet-faint); color: var(--violet-deeper); }
.employee-card[data-tone="blue"]        .employee-card__avatar { background: var(--blue-soft); color: var(--blue-1); }
.employee-card[data-tone="blue-deep"]   .employee-card__avatar { background: var(--blue-faint); color: var(--blue-2); }
.employee-card[data-tone="green"]       .employee-card__avatar { background: var(--green-soft); color: var(--green); }
.employee-card__role {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.employee-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
  flex: 1;
}
.employee-card__metric {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 500;
}
.employee-card[data-tone="blue"]        .employee-card__metric { background: var(--blue-soft); color: var(--blue-1); }
.employee-card[data-tone="blue-deep"]   .employee-card__metric { background: var(--blue-faint); color: var(--blue-2); }
.employee-card[data-tone="green"]       .employee-card__metric { background: var(--green-soft); color: var(--green); }
.employee-card[data-tone="violet-deep"] .employee-card__metric { background: var(--violet-faint); color: var(--violet-deeper); }

@media (max-width: 1080px) { .employees-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .employees-grid { grid-template-columns: 1fr; } }

/* ========== MARKETING (4 cards) ========== */
.section--marketing { padding: 80px 0; }
.marketing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.marketing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s var(--ease-spring);
  overflow: hidden;
  isolation: isolate;
}
.marketing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top right, var(--card-tone, transparent), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.32s;
}
.marketing-card[data-tone="violet"]      { --card-tone: rgba(124, 58, 237, 0.10); }
.marketing-card[data-tone="violet-deep"] { --card-tone: rgba(91, 33, 182, 0.10); }
.marketing-card[data-tone="blue"]        { --card-tone: rgba(59, 130, 246, 0.10); }
.marketing-card[data-tone="blue-deep"]   { --card-tone: rgba(30, 64, 175, 0.10); }
.marketing-card[data-tone="green"]       { --card-tone: rgba(16, 185, 129, 0.10); }
.marketing-card--featured {
  background: linear-gradient(135deg, #2a1a4a 0%, #1a103e 100%);
  color: white;
  border-color: transparent;
  grid-column: span 2;
}
.marketing-card--featured::before { background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%); }
.marketing-card--featured h3 { color: white; }
.marketing-card--featured .marketing-card__list li { color: rgba(255, 255, 255, 0.85); }
.marketing-card--featured .marketing-card__list li::before { background: var(--green); }
.marketing-card__num {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.marketing-card--featured .marketing-card__num { color: rgba(255, 255, 255, 0.4); }
.marketing-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.marketing-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.marketing-card--featured p { color: rgba(255, 255, 255, 0.85); }
.marketing-card__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.marketing-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.marketing-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}
.marketing-card[data-tone="blue"]  .marketing-card__list li::before { background: var(--blue-1); }
.marketing-card[data-tone="green"] .marketing-card__list li::before { background: var(--green); }
.marketing-card[data-tone="violet-deep"] .marketing-card__list li::before { background: var(--violet-deep); }
.marketing-card[data-tone="blue-deep"]   .marketing-card__list li::before { background: var(--blue-2); }
.marketing-card__metric {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 500;
  margin-top: auto;
}
.marketing-card[data-tone="blue"]  .marketing-card__metric { background: var(--blue-soft); color: var(--blue-1); }
.marketing-card[data-tone="green"] .marketing-card__metric { background: var(--green-soft); color: var(--green); }
.marketing-card--featured .marketing-card__metric {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.marketing-card__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 880px) {
  .marketing-grid { grid-template-columns: 1fr; }
  .marketing-card--featured { grid-column: span 1; }
}

/* ========== HIRING (6 cards) ========== */
.section--hiring {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-base) 100%);
}
.hiring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.hiring-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring);
  isolation: isolate;
}
.hiring-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at top right, var(--card-tone, transparent), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.32s;
}
.hiring-card[data-tone="violet"]      { --card-tone: rgba(124, 58, 237, 0.10); }
.hiring-card[data-tone="violet-soft"] { --card-tone: rgba(124, 58, 237, 0.06); }
.hiring-card[data-tone="violet-deep"] { --card-tone: rgba(91, 33, 182, 0.10); }
.hiring-card[data-tone="blue"]        { --card-tone: rgba(59, 130, 246, 0.10); }
.hiring-card[data-tone="blue-deep"]   { --card-tone: rgba(30, 64, 175, 0.10); }
.hiring-card[data-tone="green"]       { --card-tone: rgba(16, 185, 129, 0.10); }
.hiring-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hiring-card:hover::before { opacity: 1; }
.hiring-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-1);
}
.hiring-card[data-tone="violet"]      .hiring-card__ico { background: var(--violet-soft); color: var(--violet); }
.hiring-card[data-tone="violet-soft"] .hiring-card__ico { background: var(--violet-faint); color: var(--violet-deep); }
.hiring-card[data-tone="violet-deep"] .hiring-card__ico { background: var(--violet-faint); color: var(--violet-deeper); }
.hiring-card[data-tone="green"]       .hiring-card__ico { background: var(--green-soft); color: var(--green); }
.hiring-card[data-tone="blue-deep"]   .hiring-card__ico { background: var(--blue-faint); color: var(--blue-2); }
.hiring-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.hiring-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}
.hiring-card__placeholder-note {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
  margin: 0;
}
.hiring-card--placeholder {
  border-style: dashed;
  border-color: var(--violet);
}

@media (max-width: 880px) { .hiring-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hiring-grid { grid-template-columns: 1fr; } }

/* ========== EDUCATION (5 cards) ========== */
.section--education { padding: 80px 0; }
.education-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.education-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring);
  isolation: isolate;
  min-height: 180px;
}
.education-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at top right, var(--card-tone, transparent), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.32s;
}
.education-card[data-tone="violet"]      { --card-tone: rgba(124, 58, 237, 0.10); }
.education-card[data-tone="violet-deep"] { --card-tone: rgba(91, 33, 182, 0.10); }
.education-card[data-tone="blue"]        { --card-tone: rgba(59, 130, 246, 0.10); }
.education-card[data-tone="blue-deep"]   { --card-tone: rgba(30, 64, 175, 0.10); }
.education-card[data-tone="green"]       { --card-tone: rgba(16, 185, 129, 0.10); }
.education-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.education-card:hover::before { opacity: 1; }
.education-card h3 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.education-card p { font-size: 13px; line-height: 1.5; color: var(--text-soft); margin: 0; flex: 1; }
.education-card__hours {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 3px 9px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 500;
}
.education-card[data-tone="blue"]      .education-card__hours { background: var(--blue-soft); color: var(--blue-1); }
.education-card[data-tone="blue-deep"] .education-card__hours { background: var(--blue-faint); color: var(--blue-2); }
.education-card[data-tone="green"]     .education-card__hours { background: var(--green-soft); color: var(--green); }
.education-card[data-tone="violet-deep"] .education-card__hours { background: var(--violet-faint); color: var(--violet-deeper); }
.education-card--wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--violet-faint) 100%);
}

@media (max-width: 880px) {
  .education-grid { grid-template-columns: 1fr 1fr; }
  .education-card--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .education-grid { grid-template-columns: 1fr; }
  .education-card--wide { grid-column: span 1; }
}

/* ========== EVENTS / Atlants-style club ========== */
.section--events {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elev) 100%);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.event-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring);
  isolation: isolate;
  min-height: 200px;
}
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at top right, var(--card-tone, transparent), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.32s;
}
.event-card[data-tone="violet"]      { --card-tone: rgba(124, 58, 237, 0.10); }
.event-card[data-tone="violet-deep"] { --card-tone: rgba(91, 33, 182, 0.10); }
.event-card[data-tone="blue"]        { --card-tone: rgba(59, 130, 246, 0.10); }
.event-card[data-tone="blue-deep"]   { --card-tone: rgba(30, 64, 175, 0.10); }
.event-card[data-tone="green"]       { --card-tone: rgba(16, 185, 129, 0.10); }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-card:hover::before { opacity: 1; }
.event-card--lead {
  grid-column: span 3;
  background: linear-gradient(135deg, #2a1a4a 0%, #1a103e 100%);
  color: white;
  border-color: transparent;
  padding: 36px 32px;
}
.event-card--lead::before { background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%); }
.event-card--lead h3 { color: white; font-size: 28px; }
.event-card--lead p { color: rgba(255, 255, 255, 0.85); }
.event-card--lead .event-card__cta { color: white; }
.event-card--lead .event-card__cta:hover { border-bottom-color: white; }
.event-card--accent {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--violet-soft) 100%);
  text-align: center;
  padding: 32px;
}
.event-card--accent h3 { font-size: 22px; }
.event-card--accent p { font-size: 15px; max-width: 70ch; margin: 0 auto; }
.event-card__tag {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 500;
}
.event-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-1);
}
.event-card[data-tone="violet"]      .event-card__ico { background: var(--violet-soft); color: var(--violet); }
.event-card[data-tone="violet-deep"] .event-card__ico { background: var(--violet-faint); color: var(--violet-deeper); }
.event-card[data-tone="green"]       .event-card__ico { background: var(--green-soft); color: var(--green); }
.event-card[data-tone="blue-deep"]   .event-card__ico { background: var(--blue-faint); color: var(--blue-2); }
.event-card h3 { font-size: 18px; font-weight: 700; margin: 4px 0 0; letter-spacing: -0.01em; }
.event-card p { font-size: 13px; line-height: 1.5; color: var(--text-soft); margin: 0; flex: 1; }
.event-card__cta {
  margin-top: 8px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s, transform 0.22s;
}
.event-card__cta:hover { border-bottom-color: currentColor; transform: translateX(2px); }

/* v6.1 — RAG-ссылка на эталон Atlants */
.event-card__ref {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-style: normal;
}
.event-card--lead .event-card__ref { color: rgba(255, 255, 255, 0.7); }
.event-card__ref-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-soft);
  margin-right: 4px;
}
.event-card__ref-link {
  color: #fff;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  transition: color 0.2s, border-color 0.2s;
  font-weight: 600;
}
.event-card__ref-link:hover { color: var(--green-soft); border-bottom-color: var(--green-soft); }

@media (max-width: 880px) {
  .events-grid { grid-template-columns: 1fr 1fr; }
  .event-card--lead, .event-card--accent { grid-column: span 2; }
}
@media (max-width: 560px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-card--lead, .event-card--accent { grid-column: span 1; }
}

/* ========== REQUISITES PLACEHOLDERS (КПП/ИНН/ОГРН) ========== */
.requisites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 32px;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.requisites-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.requisites-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top right, var(--card-tone, transparent), transparent 70%);
  opacity: 0.6;
}
.requisites-card[data-tone="violet-soft"] { --card-tone: rgba(124, 58, 237, 0.10); }
.requisites-card[data-tone="blue-soft"]   { --card-tone: rgba(59, 130, 246, 0.10); }
.requisites-card[data-tone="green-soft"]  { --card-tone: rgba(16, 185, 129, 0.10); }
.requisites-card__label {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 500;
}
.requisites-card__value {
  font-family: "Geist Mono", monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 4px;
  margin-top: 2px;
}
.requisites-card__value:not([data-placeholder]) {
  color: var(--text-strong);
  border-bottom-color: var(--violet);
}
.requisites-card__hint {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

@media (max-width: 720px) { .requisites-grid { grid-template-columns: 1fr; } }

/* ========== CHIPS (messenger-teaser & activity cards) ========== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.02em;
}
.chip--ghost {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--text-faint);
}
.badge--inline { font-size: 10px; padding: 2px 6px; vertical-align: middle; margin-left: 4px; }
.badge--announce {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
}
