/* ========================================================================
   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); }

/* 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;
  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;
}
.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 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; }
}
