/* ============================================================
   NEXUS/IT — cyberpunk / AI technology theme
   Палитра: чёрный, тёмно-фиолетовый, неоновый фиолетовый
   ============================================================ */

:root {
  --bg: #06040c;
  --bg-2: #0b0716;
  --surface: #120b22;
  --surface-2: #171031;
  --border: rgba(167, 139, 250, 0.18);
  --border-strong: rgba(167, 139, 250, 0.45);

  --violet-1: #7c3aed;   /* тёмно-фиолетовый */
  --violet-2: #a855f7;   /* неоновый фиолетовый */
  --violet-3: #d946ef;   /* акцент */
  --cyan: #22d3ee;       /* редкий контрастный акцент */

  --text: #ede9fe;
  --text-dim: #a79ec4;
  --glow: 0 0 24px rgba(168, 85, 247, 0.45);

  --radius: 16px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.gradient-text {
  background: linear-gradient(92deg, var(--violet-2), var(--violet-3), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------- фон ------------------- */

.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
}

.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
}
.bg-glow--a {
  width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
}
.bg-glow--b {
  width: 620px; height: 620px; bottom: -260px; left: -180px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
}

/* ------------------- навигация ------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(6, 4, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 4, 12, 0.9);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 18px;
}

.nav__brand { font-family: var(--mono); font-weight: 700; letter-spacing: 2px; font-size: 1.15rem; }
.nav__logo { color: var(--text); }
.nav__logo-accent {
  color: var(--violet-2);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

.nav__links { display: flex; align-items: center; gap: 6px; }

.nav__link {
  padding: 8px 13px; border-radius: 10px; font-size: 0.92rem;
  color: var(--text-dim); transition: color 0.25s, background 0.25s;
}
.nav__link:hover { color: var(--text); background: rgba(168, 85, 247, 0.12); }
.nav__link--cta {
  color: #fff; margin-left: 8px;
  background: linear-gradient(120deg, var(--violet-1), var(--violet-3));
  box-shadow: var(--glow);
}
.nav__link--cta:hover { background: linear-gradient(120deg, var(--violet-2), var(--violet-3)); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px;
}
.nav__burger span {
  width: 22px; height: 2px; background: var(--violet-2);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------- кнопки ------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  font-size: 0.97rem; font-weight: 600; letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--violet-1) 0%, var(--violet-3) 100%);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.6), 0 0 18px rgba(216, 70, 239, 0.45);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(168, 85, 247, 0.06);
}
.btn--ghost:hover {
  border-color: var(--violet-2);
  background: rgba(168, 85, 247, 0.16);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 40px; font-size: 1.05rem; }

/* ------------------- hero ------------------- */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 70px;
  overflow: hidden;
}

.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}

.hero__badge {
  font-family: var(--mono); color: var(--violet-2);
  font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero__title .gradient-text {
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero__desc {
  color: var(--text-dim); font-size: 1.13rem; max-width: 540px; margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.hero__stats {
  display: flex; gap: 40px; list-style: none; flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--mono); font-size: 1.7rem; color: var(--violet-2);
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
}
.hero__stats span { color: var(--text-dim); font-size: 0.85rem; }

/* визуальная орбита AI */

.hero__visual { display: flex; justify-content: center; }

.orb {
  position: relative; width: min(360px, 78vw); aspect-ratio: 1;
  display: grid; place-items: center;
}
.orb__core {
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #fff;
  background: radial-gradient(circle at 32% 28%, var(--violet-3), var(--violet-1) 60%, #2a0f5e);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.85), inset 0 0 40px rgba(255, 255, 255, 0.15);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(168, 85, 247, 0.7), inset 0 0 40px rgba(255,255,255,0.15); }
  50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(216, 70, 239, 0.95), inset 0 0 40px rgba(255,255,255,0.2); }
}

.orb__ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.55);
  animation: spin 22s linear infinite;
}
.orb__ring--2 { inset: -6%; border-style: solid; border-color: rgba(34, 211, 238, 0.25); animation-duration: 34s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orb__chip {
  position: absolute; padding: 7px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--text);
  background: rgba(18, 11, 34, 0.92); border: 1px solid var(--border-strong);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
  animation: float 5s ease-in-out infinite;
}
.orb__chip--1 { top: 4%; left: 12%; }
.orb__chip--2 { top: 24%; right: -4%; animation-delay: -1.4s; }
.orb__chip--3 { bottom: 16%; left: -6%; animation-delay: -2.6s; }
.orb__chip--4 { bottom: 2%; right: 16%; animation-delay: -3.8s; color: var(--cyan); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero__scanline {
  position: absolute; left: 0; right: 0; height: 2px; bottom: 0;
  background: linear-gradient(90deg, transparent, var(--violet-2), transparent);
  animation: scan 6s linear infinite; opacity: 0.6;
}
@keyframes scan {
  0% { transform: translateY(-90vh); }
  100% { transform: translateY(0); }
}

/* ------------------- секции ------------------- */

.section { position: relative; padding: 96px 0; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(18, 11, 34, 0.75), transparent);
}

.section__tag {
  font-family: var(--mono); color: var(--violet-2);
  letter-spacing: 3px; font-size: 0.82rem; margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section__sub { color: var(--text-dim); max-width: 620px; margin-bottom: 46px; }

/* ------------------- услуги ------------------- */

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative; padding: 26px 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(168, 85, 247, 0.18), transparent 60%);
  transition: opacity 0.3s; pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(168, 85, 247, 0.35);
}
.card:hover::before { opacity: 1; }

.card__num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--mono); color: rgba(168, 85, 247, 0.35); font-size: 0.85rem;
}
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.35), rgba(216, 70, 239, 0.18));
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
}
.card__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card__desc { color: var(--text-dim); font-size: 0.93rem; }

/* ------------------- about ------------------- */

.about {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start;
}
.about__body p { color: var(--text-dim); margin-bottom: 16px; }
.about__quote {
  color: var(--text) !important; font-size: 1.12rem; font-style: italic;
  border-left: 3px solid var(--violet-2); padding-left: 18px;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}
.about__points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about__points li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; font-size: 0.95rem;
}
.about__bullet {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--violet-2); box-shadow: 0 0 12px var(--violet-2);
}

/* ------------------- portfolio ------------------- */

.portfolio {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.p-card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.p-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.4);
}

.p-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.p-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.p-card:hover .p-card__thumb img { transform: scale(1.06); }

.p-card__demo {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 1.5px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(6, 4, 12, 0.85); border: 1px solid var(--violet-2);
  color: var(--violet-2); box-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
}

.p-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card__title { font-size: 1.12rem; font-weight: 700; }
.p-card__desc { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.p-card__btn {
  align-self: flex-start; margin-top: 6px;
  padding: 10px 22px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  color: var(--text); background: rgba(168, 85, 247, 0.14);
  border: 1px solid var(--border-strong);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.p-card__btn:hover {
  background: var(--violet-1); transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* ------------------- pricing ------------------- */

.pricing { text-align: center; }
.pricing__card {
  max-width: 680px; margin: 10px auto 0; padding: 48px 40px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 0 44px rgba(168, 85, 247, 0.28), inset 0 0 60px rgba(124, 58, 237, 0.12);
  position: relative; overflow: hidden;
}
.pricing__card::after {
  content: ""; position: absolute; top: -40%; left: -20%; width: 60%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: rotate(12deg); animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { transform: translateX(-60%) rotate(12deg); }
  50% { transform: translateX(240%) rotate(12deg); }
}
.pricing__icon {
  width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.8rem; color: #fff;
  background: linear-gradient(140deg, var(--violet-1), var(--violet-3));
  box-shadow: var(--glow);
}
.pricing__text { color: var(--text-dim); font-size: 1.06rem; margin-bottom: 30px; }

/* ------------------- contacts ------------------- */

.contacts { text-align: center; }
.contacts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin-bottom: 40px; text-align: left;
}
.c-card {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
button.c-card {
  width: 100%; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.c-card:hover {
  transform: translateY(-5px); border-color: var(--border-strong);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.35);
}
.c-card__icon {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(168, 85, 247, 0.16); border: 1px solid var(--border-strong);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}
.c-card__meta { min-width: 0; }
.c-card__label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; }
.c-card__value { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-card__go { margin-left: auto; color: var(--violet-2); font-size: 1.2rem; }

.contacts__cta { display: flex; justify-content: center; }

/* ------------------- footer ------------------- */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 7, 22, 0.85); padding: 30px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer__brand { font-family: var(--mono); font-weight: 700; letter-spacing: 2px; }
.footer__copy { color: var(--text-dim); font-size: 0.88rem; }
.footer__top {
  color: var(--violet-2); font-size: 0.9rem;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px;
  transition: box-shadow 0.25s, background 0.25s;
}
.footer__top:hover { background: rgba(168, 85, 247, 0.14); box-shadow: 0 0 16px rgba(168, 85, 247, 0.4); }

/* ------------------- модалки ------------------- */

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 2, 10, 0.78); backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
.modal__box {
  position: relative; z-index: 1;
  width: min(560px, 92%); margin: 8vh auto 0; max-height: 84vh; overflow-y: auto;
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 34px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(168, 85, 247, 0.35);
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(26px) scale(0.96); } }

.modal__close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(168, 85, 247, 0.14); border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.modal__close:hover { background: rgba(216, 70, 239, 0.35); box-shadow: 0 0 14px rgba(168, 85, 247, 0.5); }

.modal__badge {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 2px; color: var(--violet-2);
  border: 1px solid var(--violet-2); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 16px;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}
.modal__img {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  margin-bottom: 18px;
}
.modal__title { font-size: 1.45rem; font-weight: 800; margin-bottom: 10px; }
.modal__desc { color: var(--text-dim); margin-bottom: 18px; }
.modal__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.modal__tags li {
  font-family: var(--mono); font-size: 0.75rem; color: var(--cyan);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 999px; padding: 5px 12px;
}

.contact-modal__links { display: grid; gap: 12px; margin-top: 6px; }
.contact-modal__links a, .contact-modal__links button {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 13px; text-align: left;
  background: rgba(168, 85, 247, 0.1); border: 1px solid var(--border);
  color: var(--text); font-size: 0.97rem;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.contact-modal__links a:hover, .contact-modal__links button:hover {
  background: rgba(168, 85, 247, 0.22); transform: translateX(4px);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
}
.contact-modal__links .c-ic {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.1rem;
  background: rgba(124, 58, 237, 0.35); border: 1px solid var(--border-strong);
}
.contact-modal__links .c-tx { min-width: 0; }
.contact-modal__links .c-tx b { display: block; }
.contact-modal__links .c-tx span { color: var(--text-dim); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.contact-modal__links .c-ar { margin-left: auto; color: var(--violet-2); }

.contact-modal__hint { margin-top: 16px; font-size: 0.86rem; color: var(--text-dim); text-align: center; min-height: 20px; }
.contact-modal__hint.is-ok { color: #4ade80; }

/* ------------------- чат (как в Telegram) ------------------- */

.chat {
  position: relative; z-index: 1;
  width: min(430px, 94%); margin: 6vh auto 0;
  height: min(640px, 86vh);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #14102a, #0b0716);
  border: 1px solid var(--border-strong); border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 44px rgba(168, 85, 247, 0.4);
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.chat__header {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 16px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.55), rgba(216, 70, 239, 0.35));
  border-bottom: 1px solid var(--border-strong);
}
.chat__avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff;
  background: radial-gradient(circle at 30% 30%, var(--violet-3), var(--violet-1));
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
}
.chat__peer { display: flex; flex-direction: column; min-width: 0; }
.chat__peer b { font-size: 1.02rem; }
.chat__status { font-size: 0.78rem; color: #c4b5fd; display: flex; align-items: center; gap: 6px; }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

.chat__tg {
  margin-left: auto; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.05rem; color: #fff;
  background: rgba(6, 4, 12, 0.35); border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.2s, box-shadow 0.2s;
}
.chat__tg:hover { background: rgba(6, 4, 12, 0.6); box-shadow: 0 0 14px rgba(168, 85, 247, 0.6); }

.chat__close {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: rgba(6, 4, 12, 0.35); border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; font-size: 0.95rem;
  transition: background 0.2s;
}
.chat__close:hover { background: rgba(216, 70, 239, 0.45); }

.chat__messages {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background-image:
    radial-gradient(rgba(168, 85, 247, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.chat__row { display: flex; flex-direction: column; max-width: 86%; }
.chat__row--in { align-self: flex-start; align-items: flex-start; }
.chat__row--out { align-self: flex-end; align-items: flex-end; }

.chat__bubble {
  padding: 11px 15px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45;
  word-break: break-word; white-space: pre-wrap;
  animation: bubbleIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(0.94); } }

.chat__bubble--in {
  background: #1c1436; border: 1px solid var(--border);
  border-bottom-left-radius: 6px; color: var(--text);
}
.chat__bubble--out {
  background: linear-gradient(120deg, var(--violet-1), var(--violet-3));
  border-bottom-right-radius: 6px; color: #fff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45);
}
.chat__time { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }

.chat__input {
  display: flex; gap: 10px; padding: 13px 14px;
  background: rgba(11, 7, 22, 0.92); border-top: 1px solid var(--border);
}
.chat__field {
  flex: 1; min-width: 0; padding: 13px 17px;
  background: #14102a; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-size: 0.97rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.chat__field::placeholder { color: #7d739c; }
.chat__field:focus { border-color: var(--violet-2); box-shadow: 0 0 16px rgba(168, 85, 247, 0.4); }

.chat__send {
  width: 50px; height: 50px; flex: none; border-radius: 50%; border: none;
  font-size: 1.15rem; color: #fff;
  background: linear-gradient(130deg, var(--violet-1), var(--violet-3));
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.55);
  transition: transform 0.2s, box-shadow 0.25s;
}
.chat__send:hover { transform: scale(1.07); box-shadow: 0 6px 24px rgba(216, 70, 239, 0.7); }
.chat__send:active { transform: scale(0.96); }

.chat__hint {
  padding: 8px 16px 12px; font-size: 0.76rem; color: var(--text-dim);
  background: rgba(11, 7, 22, 0.92); text-align: center;
}
.chat__hint.is-ok { color: #4ade80; }

@media (max-width: 520px) {
  .chat { margin-top: 0; height: 100dvh; border-radius: 0; width: 100%; max-width: 100%; }
}

/* ------------------- reveal-анимации ------------------- */

.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------- адаптив ------------------- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .orb { width: min(280px, 70vw); }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(6, 4, 12, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 5% 22px;
    transform: translateY(-140%); transition: transform 0.35s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 16px; font-size: 1rem; }
  .nav__link--cta { margin-left: 0; text-align: center; justify-content: center; }

  .hero { padding-top: 100px; }
  .hero__stats { gap: 26px; }
  .section { padding: 70px 0; }
  .pricing__card { padding: 36px 22px; }
  .modal__box { padding: 26px 20px; margin-top: 5vh; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .cards, .portfolio { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
