@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ОСНОВА */
body {
  background: #0b0f1a;
  color: #f9fafb;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.3px;
}

p {
  line-height: 1.7;
}

/* ================= СВЕТЛАЯ ТЕМА ================= */
/* BASE */
body.light {
  background: #eef2ff;
  color: #475569;
}

/* HEADER */
body.light .header-inner {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(203, 213, 225, 0.75);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

body.light .header-inner::after {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.light .header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.light .logo {
  color: #0f172a;
}

body.light .nav a {
  color: #475569;
}

body.light .nav a:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
}

body.light .nav a.active {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

body.light .lang-btn,
body.light .theme-btn {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

/* body.light .nav-wrapper::before {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.88) 20%,
    transparent
  );
} */

/* body.light .nav-wrapper::after {
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.88) 20%,
    transparent
  );
} */

/* NETWORK */
body.light #network {
  opacity: 0.85;
  filter: invert(1) hue-rotate(180deg) brightness(0.2);
}

/* HERO */
body.light .main-title {
  color: #0f172a;
}

body.light .main p {
  color: #64748b;
}

body.light .hero-badge {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.7);
}

body.light .badge-text {
  color: #4f46e5;
}

body.light .badge-dot {
  background: #6366f1;
}

/* TERMINAL */
body.light .terminal-wrap::before {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(59, 130, 246, 0.08),
    transparent 60%
  );
}

body.light .terminal {
  background: #151826;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow:
    0 0 40px rgba(99, 102, 241, 0.06),
    0 24px 40px rgba(0, 0, 0, 0.12);
}

/* ABOUT */
body.light .about-text,
body.light .about-list li {
  color: #475569;
}

body.light .about-left h2 {
  color: #0f172a;
}

/* SERVICES */
body.light .services h2 {
  color: #0f172a;
}

body.light .service-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(203, 213, 225, 0.9);

  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body.light .service-card h3 {
  color: #0f172a;
}

body.light .service-card p {
  color: #64748b;
}

body.light .service-card .num {
  color: #6366f1;
}

body.light .small-list li {
  color: #475569;
}

body.light .service-card:hover {
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82))
      padding-box,
    linear-gradient(90deg, #6366f1, #3b82f6) border-box;

  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.1);
}

/* WHY US */
body.light .why-us h2 {
  color: #0f172a;
}

body.light .why-us-grid-bg {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

body.light .compare-table {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body.light .compare-head div {
  color: #475569;
}

body.light .compare-row {
  background: rgba(248, 250, 252, 0.72);

  border: 1px solid rgba(203, 213, 225, 0.85);
}

body.light .compare-row > div:first-child {
  color: #0f172a;
}

body.light .compare-row:hover {
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84))
      padding-box,
    linear-gradient(90deg, #6366f1, #3b82f6) border-box;

  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.08);
}

body.light .row-num {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

body.light .span.row-num {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

/* MINI CTA */
body.light .mini-cta-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(241, 245, 249, 0.92)
  );

  border: 1px solid rgba(203, 213, 225, 0.9);

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body.light .mini-cta-left h2 {
  color: #0f172a;
}

body.light .mini-cta-left p {
  color: #64748b;
}

body.light .mini-badge {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.14);
  color: #4f46e5;
}

/* WORKFLOW */
body.light .step-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body.light .workflow h2 {
  color: #0f172a;
}

body.light .step-card h3 {
  color: #0f172a;
}

body.light .step-card:hover {
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84))
      padding-box,
    linear-gradient(90deg, #6366f1, #3b82f6) border-box;
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.1);
}

/* FAQ */
body.light .faq-title {
  color: #0f172a;
}

body.light .chat-window {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body.light .chat-topbar {
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

body.light .chat-body {
  background: transparent;
}

body.light .bubble-client {
  background: rgba(238, 242, 255, 0.85);

  border: 1px solid rgba(199, 210, 254, 0.8);

  color: #334155;
}

body.light .chat-input-row {
  background: rgba(248, 250, 252, 0.82);
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

body.light .chat-input-fake {
  background: rgba(255, 255, 255, 0.78);

  border: 1px solid rgba(203, 213, 225, 0.8);
}

body.light .date-bar {
  background: transparent;
}

body.light .date-divider {
  color: rgba(15, 23, 42, 0.35);
  background: transparent;
}

body.light .date-divider::before,
body.light .date-divider::after {
  background: rgba(148, 163, 184, 0.18);
}

/* REVIEWS */
body.light .review-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body.light .reviews h2 {
  color: #0f172a;
}

body.light .review-footer strong {
  color: #0f172a;
}

/* CONTACT */
body.light .contact-box {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.76),
    rgba(248, 250, 252, 0.84)
  );
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.light .contact-form input,
body.light .contact-form textarea {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #0f172a;
}

body.light .contact-left h2 {
  color: #0f172a;
}

body.light .contact-feature {
  color: #0f172a;
}

body.light .contact-form input:focus,
body.light .contact-form textarea:focus {
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.05);
}

/* FOOTER */
body.light .footer {
  background: linear-gradient(to bottom, #e8eeff 0%, #dde3f3 100%);

  border-top: 1px solid rgba(203, 213, 225, 0.9);
}

body.light .footer::before {
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08),
    transparent 70%
  );
}

body.light .footer-grid-bg {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

body.light .footer-line {
  background: linear-gradient(
    90deg,
    transparent,
    #6366f1,
    #3b82f6,
    transparent
  );
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.18);
  opacity: 0.4;
}

body.light .footer-logo {
  color: #0f172a;
}

body.light .footer-desc {
  color: #64748b;
}

body.light .footer-column h4 {
  color: #0f172a;
}

body.light .footer-links a,
body.light .footer-contact p {
  color: #64748b;
}

body.light .footer-links a:hover {
  color: #4f46e5;
}

body.light .footer-nav a {
  color: #64748b;
}

body.light .footer-nav a:hover {
  background: rgba(99, 102, 241, 0.07);
  color: #4f46e5;
}

body.light .footer-socials a {
  background: rgba(255, 255, 255, 0.75);

  border: 1px solid rgba(203, 213, 225, 0.85);
}

body.light .footer-socials a:hover {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border-color: transparent;
}

body.light .footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, 0.85);
}

body.light .footer-bottom p {
  color: #94a3b8;
}

/* LIGHT THEME SOCIAL ICONS */
body.light .footer-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;

  filter: brightness(0) saturate(100%) invert(13%) sepia(12%) saturate(1100%)
    hue-rotate(190deg) brightness(92%) contrast(92%);
}

body.light .footer-socials a:hover img {
  filter: brightness(0) saturate(100%) invert(100%);
}

/* ----------------------- CANVAS ФОН ---------------------- */
#network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.6;
}

header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  display: flex;
  justify-content: center;
  transition: top 0.4s ease;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  padding: 25px 60px;
  border-radius: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 18, 35, 0.92) 0%,
    rgba(15, 23, 42, 0.82) 100%
  );
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);

  /* Только геометрия — НЕ background, НЕ border */
  transition:
    width 0.4s ease,
    max-width 0.4s ease,
    padding 0.4s ease,
    border-radius 0.4s ease,
    box-shadow 0.4s ease;

  /* Blur — через фильтр на псевдоэлементе */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Blur живёт здесь — не анимируется никогда */
.header-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

/* ================= ГРАДИЕНТНАЯ РАМКА (::before без изменений) ================= */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

/* ================= SCROLL STATE ================= */
.header.scrolled {
  top: 20px;
}

.header.scrolled .header-inner {
  width: 1000px;
  max-width: calc(100% - 40px);
  padding: 14px 24px;
  border-radius: 60px;
  background: linear-gradient(
    to bottom,
    rgba(14, 20, 38, 0.95) 0%,
    rgba(17, 25, 45, 0.88) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(99, 102, 241, 0.08),
    inset 0 0 25px rgba(255, 255, 255, 0.02);
}

.header.scrolled .header-inner::after {
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.header.scrolled .header-inner::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.8) 0%,
    rgba(168, 85, 247, 0.6) 25%,
    rgba(59, 130, 246, 0.8) 50%,
    rgba(168, 85, 247, 0.6) 75%,
    rgba(99, 102, 241, 0.8) 100%
  );
  animation: borderGlow 3s linear infinite;
}

/* ================= АКТИВАЦИЯ ГРАДИЕНТА ПРИ СКРОЛЛЕ ================= */
.header.scrolled .header-inner::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.8) 0%,
    rgba(168, 85, 247, 0.6) 25%,
    rgba(59, 130, 246, 0.8) 50%,
    rgba(168, 85, 247, 0.6) 75%,
    rgba(99, 102, 241, 0.8) 100%
  );
  animation: borderGlow 3s linear infinite;
}

/* ================= АНИМАЦИЯ СВЕЧЕНИЯ ================= */
@keyframes borderGlow {
  0% {
    background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.8) 0%,
      rgba(168, 85, 247, 0.6) 25%,
      rgba(59, 130, 246, 0.8) 50%,
      rgba(168, 85, 247, 0.6) 75%,
      rgba(99, 102, 241, 0.8) 100%
    );
  }
  50% {
    background: linear-gradient(
      135deg,
      rgba(168, 85, 247, 0.8) 0%,
      rgba(59, 130, 246, 0.6) 25%,
      rgba(99, 102, 241, 0.8) 50%,
      rgba(59, 130, 246, 0.6) 75%,
      rgba(168, 85, 247, 0.8) 100%
    );
  }
  100% {
    background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.8) 0%,
      rgba(168, 85, 247, 0.6) 25%,
      rgba(59, 130, 246, 0.8) 50%,
      rgba(168, 85, 247, 0.6) 75%,
      rgba(99, 102, 241, 0.8) 100%
    );
  }
}

/* ================= HEADER LOGO ================= */
.logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  width: 190px;
  height: 42px;
  flex-shrink: 0;
  text-decoration: none;
  overflow: hidden;
}

.logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

/* DARK THEME */
.logo-dark {
  opacity: 1;
  visibility: visible;
}

/* LIGHT THEME */
.logo-light {
  opacity: 0;
  visibility: hidden;
}

body.light .logo-dark {
  opacity: 0;
  visibility: hidden;
}

body.light .logo-light {
  opacity: 1;
  visibility: visible;
}

/* ================= NAV WRAPPER ================= */
/* Развёрнутое состояние: nav по центру через absolute */
.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  transition:
    max-width 0.4s ease,
    padding 0.4s ease;
}

/* Fade-маски */
/* .nav-wrapper::before,
.nav-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-wrapper::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(12, 18, 35, 0.95) 20%,
    transparent
  );
}

.nav-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(12, 18, 35, 0.95) 20%, transparent);
} */

/* .header.scrolled .nav-wrapper::before {
  background: linear-gradient(
    to right,
    rgba(14, 20, 38, 0.97) 20%,
    transparent
  );
} */

/* .header.scrolled .nav-wrapper::after {
  background: linear-gradient(to left, rgba(14, 20, 38, 0.97) 20%, transparent);
} */

.nav-wrapper.can-scroll-left::before {
  opacity: 1;
}
.nav-wrapper.can-scroll-right::after {
  opacity: 1;
}

/* ================= NAV ================= */
.nav {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0 4px;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.nav::-webkit-scrollbar {
  display: none;
}

/* ================= NAV ССЫЛКИ ================= */
.nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: inline-block;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
}

.nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
}

.header.scrolled .nav a {
  font-size: 14px;
  padding: 8px 12px;
}

/* ================= NAV КНОПКИ ================= */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-btn,
.theme-btn {
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.theme-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

.lang-btn:hover,
.theme-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.lang-btn:active,
.theme-btn:active {
  transform: translateY(0);
}

/* ============================== MAIN ============================== */
.main-content__about {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
  height: auto;
  padding-bottom: 0;
  padding-top: 0;
  position: relative;
  overflow: visible;
}

.main-title {
  max-width: 520px;
  margin: 0;
  text-align: left;
  font-size: 66px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -1px;
  color: #d1d5db;
}

.word-switcher {
  background: linear-gradient(90deg, #7c5fff, #3eb4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word {
  display: none;
}

.word.active {
  display: inline-block;
  opacity: 0; /* стартует с 0, JS сразу ставит 1 */
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  background: linear-gradient(90deg, #7c5fff, #3eb4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main p {
  margin: 16px 0 0 0;
  color: #94a3b8;
  font-size: 17px;
}

/* ГЛОБАЛЬНАЯ КНОПКА */
button {
  padding: 14px 28px;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.main-button {
  padding: 14px 28px;
  margin-top: 0;
  transition: 0.3s;
  border: none;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  color: #fff;
  border-radius: 36px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}

.main-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.word-switcher {
  display: inline-block;
  position: relative;
  color: #6366f1;
  min-height: 0;
  line-height: 1.2;
  margin: 0;
}

.word-switcher .word {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  white-space: nowrap;
  color: #6366f1;
}

.word-switcher .word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

/* ============ HERO GRID ============ */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 120px 0 80px;
}

/* ============ BLOBS ============ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: drift 8s ease-in-out infinite alternate;
}
.blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.08);
  top: -100px;
  left: -100px;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.06);
  bottom: -80px;
  right: 200px;
  animation-delay: -4s;
}
@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(40px, 30px);
  }
}

/* ============ BADGE ============ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  margin-bottom: 20px;
  width: fit-content;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0);
  }
}
.badge-text {
  font-size: 11px;
  color: #818cf8;
  letter-spacing: 0.05em;
}

/* ============ ACTIONS ============ */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
/* ============ TERMINAL ============ */
.hero-right {
  position: relative;
}

.terminal-wrap {
  position: relative;
}
.terminal-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.4),
    rgba(139, 92, 246, 0.2),
    transparent 60%
  );
  z-index: 0;
}

.terminal {
  position: relative;
  z-index: 1;
  background: #080d1a;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(99, 102, 241, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.6);
}

.t-bar {
  background: #0f1624;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.t-red {
  background: #ff5f57;
}
.t-yellow {
  background: #febc2e;
}
.t-green {
  background: #28c840;
}

.t-tabs {
  margin-left: 14px;
  display: flex;
  gap: 2px;
}
.t-tab {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 6px 6px 0 0;
  color: #64748b;
}
.t-tab.active {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.t-spacer {
  flex: 1;
}
.t-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}
.t-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.t-body {
  display: flex;
}
.t-gutter {
  padding: 20px 0;
  min-width: 44px;
  text-align: right;
  background: rgba(255, 255, 255, 0.015);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  user-select: none;
}
.t-gutter span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.12);
  padding: 0 12px;
  line-height: 1.85;
  height: 22px;
}
.t-code {
  padding: 20px 20px 20px 16px;
  flex: 1;
  min-height: 280px;
}

.t-code .code-line {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.85;
  height: 22px;
  white-space: pre;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.t-code .code-line.visible {
  opacity: 1;
  transform: translateX(0);
}

.code-line .kw {
  color: #c792ea;
}
.code-line .fn {
  color: #82aaff;
}
.code-line .str {
  color: #c3e88d;
}
.code-line .num {
  color: #f78c6c;
}
.code-line .cmt {
  color: #3d4f5e;
  font-style: italic;
}
.code-line .ok {
  color: #10b981;
}
.code-line .prop {
  color: #22d3ee;
}
.code-line .plain {
  color: #cdd6f4;
}
.code-line .dim {
  color: #4a5568;
}

.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #6366f1;
  vertical-align: middle;
  margin-left: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.t-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0f1624;
  padding: 8px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.t-foot-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}
.t-foot-item.green {
  color: #10b981;
}
.t-foot-item.purple {
  color: #818cf8;
}

.float-badge {
  position: absolute;
  bottom: -18px;
  right: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 100px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: badgePop 0.4s 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  z-index: 2;
}
@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.float-badge .check {
  font-size: 14px;
  color: #fff;
}
.float-badge span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 0 60px;
  }
  .main-content__about {
    align-items: center;
    text-align: center;
  }
  .main-title {
    text-align: center;
    max-width: 100%;
  }
  .hero-stats {
    gap: 20px;
  }
  .blob-1,
  .blob-2 {
    display: none;
  }
}

/* ======================= ABOUT ======================= */
.about {
  padding: 60px 0;
  position: relative;
}

.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.about-left {
  max-width: 550px;
}

.about-left h2 {
  font-size: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-text {
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-list {
  list-style: none;
}

.about-list li {
  margin-bottom: 15px;
  color: #e5e7eb;
  position: relative;
  padding-left: 30px;
}

.about-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22d3ee;
}

.about-list span {
  color: #6366f1;
  font-weight: bold;
}

/* RIGHT */
.about-right {
  position: relative;
  width: 500px;
  height: 500px;
  flex-shrink: 0;
}

.about-right::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  top: 50px;
  right: 50px;
  filter: blur(80px);
}

/* ИСПРАВЛЕНО: .circle теперь только для фото-кругов */
.circle {
  position: absolute;
  border-radius: 40%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: 0.4s;
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.circle.big {
  width: 260px;
  height: 260px;
  right: 100px;
  top: 120px;
  border-color: #6366f1;
}

.circle.small {
  width: 124px;
  height: 124px;
}

.circle.top {
  top: -20px;
  right: 180px;
}

.circle.right {
  top: 60px;
  right: -20px;
}

.circle.left {
  bottom: 60px;
  left: 0;
}

.circle.bottom {
  bottom: -20px;
  right: 200px;
}

.circle:hover {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-left {
    max-width: 100%;
  }

  .about-right {
    width: 340px;
    height: 340px;
  }
}

/* ====================== SERVICES ======================== */
.services {
  padding: 60px 0;
}

.services h2 {
  display: flex;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 44px;
  color: #d1d5db;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  max-height: 380px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  transition: 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card .num {
  font-size: 26px;
  color: #6366f1;
  margin-bottom: 20px;
}

.service-card h3 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
  color: #d1d5db;
}

.service-card p {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 15px;
}

.small-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
  opacity: 0;
  transition: 0.3s;
}

.small-list li {
  transform: translateY(10px);
  opacity: 0;
  transition: 0.3s;
  color: #d1d5db;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
  border: 1px solid transparent;
  background:
    linear-gradient(#0f172a, #0f172a) padding-box,
    linear-gradient(90deg, #6366f1, #22d3ee) border-box;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .small-list {
  opacity: 1;
}

.service-card:hover .small-list li {
  transform: translateY(0);
  opacity: 1;
}

.service-card:hover .small-list li:nth-child(1) {
  transition-delay: 0.1s;
}
.service-card:hover .small-list li:nth-child(2) {
  transition-delay: 0.2s;
}
.service-card:hover .small-list li:nth-child(3) {
  transition-delay: 0.3s;
}
.service-card:hover .small-list li:nth-child(4) {
  transition-delay: 0.4s;
}

@media (max-width: 900px) {
  .services-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-row {
    grid-template-columns: 1fr;
  }
}

/* ======================== WHY US ===================== */
.why-us {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  display: none;
}

.why-us::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.06),
    transparent 72%
  );
  bottom: -120px;
  right: -120px;
  pointer-events: none;
  filter: blur(80px);
}

.why-us-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 90%);
  pointer-events: none;
}

.why-us h2 {
  text-align: center;
  font-size: 44px;
  margin-bottom: 56px;
  color: #d1d5db;
  position: relative;
  z-index: 1;
}

.why-us span {
  background: linear-gradient(90deg, #7c5fff, #3eb4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Таблица ── */
.compare-table {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.14);
  padding: 28px 28px 30px;
}

/* ── Шапка ── */
.compare-head {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr;
  padding: 0 24px 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
}

.compare-head div {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d1d5db;
}

/* ── Строки ── */
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr;
  align-items: center;
  padding: 22px 24px;
  border-radius: 60px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  cursor: default;
}

.compare-row:last-child {
  margin-bottom: 0;
}

/* hover glow */
.compare-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(99, 102, 241, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.compare-row:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: transparent;
  background:
    linear-gradient(#0f172a, #0f172a) padding-box,
    linear-gradient(90deg, #6366f1, #22d3ee) border-box;
  box-shadow: 0 10px 42px rgba(99, 102, 241, 0.18);
}

.compare-row:hover::before {
  opacity: 1;
}

/* ── Левая колонка ── */
.compare-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #d1d5db;
  position: relative;
  z-index: 1;
}

.row-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 10px;
  font-weight: 700;
  color: #818cf8;
}

/* ── Мы ── */
.good {
  font-size: 15px;
  color: #22c55e;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.good::before {
  content: "✔ ";
}

/* ── Другие ── */
.bad {
  font-size: 15px;
  color: #818cf8;
  position: relative;
  z-index: 1;
  text-align: left;
}

/* ── Адаптив ── */
@media (max-width: 768px) {
  .why-us {
    padding: 90px 0;
  }

  .why-us h2 {
    font-size: 34px;
    margin-bottom: 38px;
  }

  .compare-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: 1fr;
    border-radius: 24px;
    gap: 10px;
    padding: 20px;
  }

  .bad {
    text-align: left;
  }
}

/* ================= MINI CTA ================= */
.mini-cta {
  position: relative;
  padding: 120px 0;
}

.mini-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 40px 40px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(2, 6, 23, 0.96)
  );
  border: 1px solid rgba(99, 102, 241, 0.14);
  backdrop-filter: blur(24px);
  isolation: isolate;
}

/* animated border */
.mini-cta-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.9),
    rgba(34, 211, 238, 0.9),
    rgba(99, 102, 241, 0.9)
  );
  background-size: 300% 300%;
  animation: borderFlow 8s linear infinite;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* glow */
.mini-cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.18),
    transparent 70%
  );

  top: -180px;
  right: -120px;
  filter: blur(70px);
  z-index: -1;
}

/* particles */
.mini-cta-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

/* layout */
.mini-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* badge */
.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* title */
.mini-cta-left h2 {
  font-size: 52px;
  line-height: 1.05;
  max-width: 700px;
  color: white;
  margin-bottom: 22px;
}

.mini-cta-left h2 span {
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* text */
.mini-cta-left p {
  font-size: 18px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 600px;
}

/* button */
.mini-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.mini-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.7s;
}

.mini-cta-btn:hover::before {
  transform: translateX(120%);
}

.mini-cta-btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 45px rgba(99, 102, 241, 0.35);
}

.mini-cta-btn svg {
  transition: transform 0.35s ease;
}

.mini-cta-btn:hover svg {
  transform: translate(4px, -4px);
}

/* responsive */
@media (max-width: 980px) {
  .mini-cta-card {
    padding: 50px 30px;
  }

  .mini-cta-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-cta-left h2 {
    font-size: 38px;
  }

  .mini-cta-left p {
    font-size: 16px;
  }

  .mini-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== WORKFLOW ===================== */
.workflow {
  padding: 80px 0;
}

.workflow h2 {
  font-size: 40px;
  margin-bottom: 40px;
  color: #d1d5db;
  text-align: center;
}

.workflow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
}

.workflow-row.bottom {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 20px auto 0;
}

.step-card {
  width: 100%;
  height: 220px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.step-card .num {
  font-size: 20px;
  color: #6366f1;
  margin-bottom: 15px;
  display: block;
}

.step-card h3 {
  font-weight: 600;
  font-size: 18px;
  color: #d1d5db;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

.step-card:hover {
  transform: translateY(-5px);
  border: 1px solid transparent;
  background:
    linear-gradient(#0f172a, #0f172a) padding-box,
    linear-gradient(90deg, #6366f1, #22d3ee) border-box;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25);
}

.step-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: 0.4s;
}

.step-card:hover::before {
  opacity: 1;
}

/* ================== FAQ ========================= */
.faq-section {
  max-width: 900px;
}

.faq-header {
  text-align: center;
  margin-bottom: 36px;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(100, 80, 255, 0.15);
  border: 1px solid rgba(100, 80, 255, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: #a48fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: #7c5fff;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
.faq-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.faq-title span {
  background: linear-gradient(90deg, #7c5fff, #3eb4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.faq-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Chat window — фиксированная высота ── */
.chat-window {
  background: #0f1420;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 680px;
}

.chat-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: #131825;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5fff, #3eb4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.chat-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.chat-status {
  font-size: 12px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
}

.date-bar {
  flex-shrink: 0;
  padding: 10px 22px 8px;
  background: #0f1420;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.date-divider {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  position: relative;
}
.date-divider::before,
.date-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.date-divider::before {
  left: 0;
}
.date-divider::after {
  right: 0;
}

/* ── Scrollable area ── */
.chat-body {
  flex: 1 1 0;
  min-height: 0;
  padding: 14px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar {
  width: 4px;
}
.chat-body::-webkit-scrollbar-track {
  background: transparent;
}
.chat-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c5fff#3eb4ff);
  border-radius: 4px;
}

.chat-spacer {
  flex: 1 1 auto;
  min-height: 0;
}

/* ── Строка: аватар + (пузырь + время) ── */
.msg-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
  flex-shrink: 0;
}
.msg-wrap.show {
  opacity: 1;
  transform: translateY(0);
}
.msg-wrap.right {
  flex-direction: row-reverse;
}

/* Аватары */
.client-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-av svg {
  width: 17px;
  height: 17px;
  fill: rgba(255, 255, 255, 0.5);
}
.ms-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c5fff, #3eb4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

/* Колонка: пузырь + время под ним */
.msg-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Максимум 68% ширины чата, не больше */
  max-width: 68%;
  min-width: 0;
}

.msg-wrap.left .msg-col {
  align-items: flex-start;
}
.msg-wrap.right .msg-col {
  align-items: flex-end;
}

/* Пузыри — текст переносится, ширина по контенту */
.bubble-client {
  padding: 11px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px 18px 18px 4px;
  word-break: break-word;
  white-space: normal;
}
.bubble-answer {
  padding: 11px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #fff;
  background: linear-gradient(135deg, #5a3fff, #3a9fff);
  border-radius: 18px 18px 4px 18px;
  word-break: break-word;
  white-space: normal;
}

.msg-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  padding: 0 2px;
}

/* ── Typing indicator ── */
.typing-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.22s ease;
  flex-shrink: 0;
}
.typing-wrap.right {
  flex-direction: row-reverse;
}
.typing-wrap.show {
  opacity: 1;
}

.typing-bubble-ms {
  background: linear-gradient(
    135deg,
    rgba(90, 63, 255, 0.4),
    rgba(58, 159, 255, 0.3)
  );
  border: 1px solid rgba(100, 140, 255, 0.3);
  border-radius: 18px 18px 4px 18px;
  padding: 13px 18px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-bubble-client {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px 18px 18px 4px;
  padding: 13px 18px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.td {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}
.td:nth-child(2) {
  animation-delay: 0.2s;
}
.td:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ── Input bar ── */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #131825;
  flex-shrink: 0;
}
.chat-input-fake {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Onest", sans-serif;
  cursor: default;
}
.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c5fff, #3eb4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.send-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ======================= Отзывы ======================= */
.reviews {
  padding: 80px 0;
}

.reviews h2 {
  text-align: center;
  font-size: 40px;
  color: #fff;
  margin-bottom: 20px;
}

.reviews-wrapper {
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: calc(33.333% - 13.3px);
  padding: 25px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-footer {
  margin-top: auto;
  padding-top: 10px;
}

.review-footer span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.stars {
  color: #f59e0b;
  margin-top: 5px;
}

.reviews-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(99, 102, 241, 0.2);
  border: none;
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 20px;
}

.prev {
  left: -40px;
}
.next {
  right: -40px;
}

/* ==================== CONTACT ==================== */
.contact {
  position: relative;
  padding: 140px 0;
}

.contact-box {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(2, 6, 23, 0.98)
  );
  border: 1px solid rgba(99, 102, 241, 0.14);
  backdrop-filter: blur(24px);
  padding: 80px;
  isolation: isolate;
}

/* animated border */
.contact-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.7),
    rgba(34, 211, 238, 0.7),
    rgba(99, 102, 241, 0.7)
  );
  background-size: 300% 300%;
  animation: borderFlow 10s linear infinite;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* glow */
.contact-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.18),
    transparent 70%
  );
  top: -250px;
  left: -200px;
  filter: blur(90px);
  z-index: -1;
}

/* grid */
.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

/* layout */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* badge */
.contact-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.24);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

/* title */
.contact-left h2 {
  font-size: 64px;
  line-height: 1;
  color: white;
  margin-bottom: 28px;
}

.contact-left h2 span {
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-left p {
  font-size: 18px;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 40px;
  max-width: 500px;
}

/* features */
.contact-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cbd5e1;
  font-size: 15px;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.6);
}

/* form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* inputs */
.input-group {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border-radius: 22px;
  padding: 0 24px;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form input {
  height: 68px;
}

.contact-form textarea {
  height: 160px;
  resize: none;
  padding-top: 22px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

/* button */
.contact-form button {
  position: relative;
  height: 68px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.7s;
}

.contact-form button:hover::before {
  transform: translateX(120%);
}

.contact-form button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.35);
}

/* responsive */
@media (max-width: 980px) {
  .contact {
    padding: 100px 0;
  }
  .contact-box {
    padding: 50px 28px;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .contact-left h2 {
    font-size: 46px;
  }
  .contact-left p {
    font-size: 16px;
  }
}

/* ======================= FOOTER ======================= */
.footer {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  margin-top: 120px;
  background: linear-gradient(to bottom, #050a18 0%, #020611 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* ================= TOP GLOW ================= */
.footer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.14),
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
}

/* ================= EXTRA LIGHT ================= */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top center,
    rgba(34, 211, 238, 0.05),
    transparent 45%
  );
  pointer-events: none;
}

/* ================= GRID BACKGROUND ================= */
.footer-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
}

/* ================= GLOW LINE ================= */
.footer-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #6366f1,
    #22d3ee,
    transparent
  );
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.7);
  opacity: 0.9;
}

/* ================= ORBS ================= */
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.footer-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.18);
  top: -100px;
  left: -80px;
}

.footer-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(34, 211, 238, 0.12);
  right: -80px;
  bottom: -60px;
}

/* ================= GRID ================= */
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 25px;
}

/* ================= FOOTER LOGO ================= */
.footer-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 260px;
  height: 48px;

  margin: 0 0 18px;
  padding: 0;

  flex-shrink: 0;
  text-decoration: none;
  overflow: hidden;
}

.footer-logo img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: left center;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

/* DARK THEME */
.footer-logo .logo-dark {
  opacity: 1;
  visibility: visible;
}

/* LIGHT THEME */
.footer-logo .logo-light {
  opacity: 0;
  visibility: hidden;
}

body.light .footer-logo .logo-dark {
  opacity: 0;
  visibility: hidden;
}

body.light .footer-logo .logo-light {
  opacity: 1;
  visibility: visible;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .logo {
    width: 170px;
    height: 34px;
  }

  .footer-logo {
    width: 190px;
    height: 38px;
  }
}

/* ================= BRAND ================= */
.footer-brand {
  max-width: 360px;
}

.footer-brand .footer-logo {
  margin-bottom: 18px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.9);
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 15px;
}

/* ================= COLUMNS ================= */
.footer-column h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact p {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 15px;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(6px);
}

.footer-email {
  color: #94a3b8;
  text-decoration: none;
}

/* ================= CONTACT COLUMN ================= */
.footer-contact-column {
  display: flex;
  flex-direction: column;
}

/* ================= SOCIALS ================= */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.35s ease;
}

.footer-socials a:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.35);
}

.footer-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

/* ================= BOTTOM ================= */
.footer-bottom {
  position: relative;
  z-index: 2;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 14px;
  letter-spacing: 0.03em;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .footer {
    padding: 55px 0 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-logo {
    font-size: 34px;
  }

  .footer-socials {
    margin-top: 20px;
  }
}

/* ============================================================
   NEXCODE — ПОЛНЫЙ АДАПТИВ
   Брейкпоинты:
     1280px — широкий ноутбук
     1024px — планшет ландшафт
      768px — планшет портрет / мобилка
      480px — большой телефон
      360px — маленький телефон
   ============================================================ */

/* ─────────────────────────────────────────
   ГЛОБАЛЬНЫЕ МОБИЛЬНЫЕ ЭЛЕМЕНТЫ
   (вне медиазапросов — скрыты на десктопе)
   ───────────────────────────────────────── */

.burger-btn {
  display: none;
}

.mobile-nav {
  display: none;
}

/* ─────────────────────────────────────────
   1280px — широкий ноутбук
   ───────────────────────────────────────── */
@media (max-width: 1280px) {

  .header-inner {
    padding: 22px 40px;
  }

  .hero-inner {
    gap: 40px;
    padding: 110px 0 70px;
  }

  .main-title {
    font-size: 58px;
  }

  .contact-box {
    padding: 60px;
  }

  .contact-left h2 {
    font-size: 54px;
  }

  .mini-cta-left h2 {
    font-size: 44px;
  }

  .footer-grid {
    gap: 36px;
  }
}

/* ─────────────────────────────────────────
   1024px — планшет ландшафт / ноутбук
   ───────────────────────────────────────── */
@media (max-width: 1024px) {

  /* ── Header ── */
  .header {
    top: 0 !important;
  }

  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 32px !important;
    border-radius: 0 !important;
  }

  .header.scrolled {
    top: 0 !important;
  }

  .header.scrolled .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 32px !important;
    border-radius: 0 !important;
  }

  .logo {
    width: 150px;
    height: 34px;
  }

  .nav a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .lang-btn,
  .theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  /* ── Hero ── */
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 100px 0 60px;
    min-height: auto;
    align-items: center;
  }

  .main-title {
    font-size: 50px;
    line-height: 0.95;
  }

  .main p {
    font-size: 16px;
  }

  /* ── Terminal ── */
  .terminal {
    max-height: 420px;
    overflow: hidden;
  }

  .t-code {
    min-height: 200px;
  }

  /* ── About ── */
  .about-wrapper {
    gap: 40px;
  }

  .about-right {
    width: 400px;
    height: 400px;
    flex-shrink: 0;
  }

  .circle.big {
    width: 220px;
    height: 220px;
    right: 90px;
    top: 110px;
  }

  .circle.small {
    width: 105px;
    height: 105px;
  }

  /* ── Services ── */
  .services-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    max-height: none;
  }

  /* ── Why Us ── */
  .compare-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: 1fr;
    border-radius: 20px;
    gap: 8px;
    padding: 18px 20px;
  }

  .compare-row > div:first-child {
    font-size: 15px;
  }

  /* ── Mini CTA ── */
  .mini-cta-card {
    padding: 44px 36px;
  }

  .mini-cta-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .mini-cta-left h2 {
    font-size: 38px;
  }

  .mini-cta-left p {
    font-size: 16px;
  }

  .mini-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 18px 28px;
  }

  /* ── Workflow ── */
  .workflow-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .workflow-row.bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin: 20px 0 0;
  }

  .step-card {
    height: auto;
    min-height: 200px;
  }

  /* ── Contact ── */
  .contact-box {
    padding: 56px 44px;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .contact-left h2 {
    font-size: 48px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand .footer-desc {
    max-width: 480px;
  }
}

/* ─────────────────────────────────────────
   768px — планшет портрет / мобилка
   ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Container ── */
  .container {
    width: 92%;
  }

  /* ── Header: полная ширина, без pill ── */
  .header {
    top: 0 !important;
  }

  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    gap: 0;
    justify-content: space-between;
  }

  .header.scrolled {
    top: 0 !important;
  }

  .header.scrolled .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* ── Логотип ── */
  .logo {
    width: 110px !important;
    height: 28px !important;
  }

  .footer-logo {
    width: 180px;
    height: 38px;
  }

  /* ── Скрыть десктопный nav ── */
  .nav-wrapper {
    display: none !important;
  }

  /* ── nav-btn ── */
  .nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
  }

  .lang-btn,
  .theme-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }

  .theme-btn img {
    width: 17px !important;
    height: 17px !important;
  }

  /* ── Показать бургер ── */
  .burger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .burger-btn span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
  }

  .burger-btn.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .burger-btn.open span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .burger-btn.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .burger-btn.open {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
  }

  /* ── Мобильное меню ── */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 62px;
    left: 12px;
    right: 12px;
    z-index: 999;
    background: rgba(11, 15, 26, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 20px;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.5),
      inset 0 0 0 1px rgba(99, 102, 241, 0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.22s ease,
      transform 0.22s ease;
    pointer-events: none;
  }

  .mobile-nav.open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 6px 8px 8px;
    margin: 0;
  }

  .mobile-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.18s ease, color 0.18s ease;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.1px;
  }

  .mobile-nav ul li a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
  }

  .mobile-nav ul li a.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.08));
    color: #a5b4fc;
  }

  .mobile-nav ul li + li a {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .mnav-num {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-variant-numeric: tabular-nums;
    min-width: 16px;
    font-weight: 600;
  }

  /* Светлая тема — бургер и меню */
  body.light .burger-btn span {
    background: #0f172a;
  }

  body.light .burger-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }

  body.light .mobile-nav {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  }

  body.light .mobile-nav ul li a {
    color: #475569;
  }

  body.light .mobile-nav ul li a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
  }

  body.light .mobile-nav ul li a.active {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
  }

  body.light .mobile-nav ul li + li a {
    border-top-color: rgba(203, 213, 225, 0.4);
  }

  body.light .mnav-num {
    color: rgba(71, 85, 105, 0.4);
  }

  /* ── Hero ── */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 90px 0 70px !important;
    min-height: auto;
  }

  .main-content__about {
    align-items: center;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 18px;
  }

  .main-title {
    font-size: 44px;
    line-height: 0.95;
    text-align: center;
    max-width: 100%;
  }

  .main p {
    text-align: center;
    font-size: 16px;
    margin-top: 14px;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 22px;
  }

  /* ── Terminal на мобилке ── */
  .hero-right {
    display: block !important;
    width: 100%;
    margin-top: 32px;
  }

  .terminal-wrap {
    width: 100%;
  }

  .terminal {
    border-radius: 12px;
    max-height: 260px;
    overflow: hidden;
  }

  .t-bar {
    padding: 9px 14px;
  }

  .t-dot {
    width: 9px;
    height: 9px;
  }

  .t-tab {
    font-size: 10px;
    padding: 2px 9px;
  }

  .t-status {
    font-size: 9px;
  }

  .t-body {
    max-height: 180px;
    overflow: hidden;
  }

  .t-gutter {
    display: none;
  }

  .t-code {
    padding: 12px 14px;
    min-height: auto !important;
  }

  .t-code .code-line {
    font-size: 11px;
    height: 19px;
    line-height: 1.7;
  }

  .t-footer {
    padding: 6px 14px;
    gap: 12px;
  }

  .t-foot-item {
    font-size: 9px;
  }

  .float-badge {
    right: 14px;
    bottom: -14px;
    padding: 6px 12px;
    gap: 6px;
  }

  .float-badge span {
    font-size: 10px;
  }

  .float-badge .check {
    font-size: 11px;
  }

  /* ── About ── */
  .about {
    padding: 48px 0;
  }

  .about-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
  }

  .about-left {
    max-width: 100%;
  }

  .about-left h2 {
    font-size: 34px;
    justify-content: center;
  }

  .about-list li {
    text-align: left;
  }

  .about-right {
    width: 320px;
    height: 320px;
  }

  .circle.big {
    width: 180px;
    height: 180px;
    right: 70px;
    top: 90px;
  }

  .circle.small {
    width: 88px;
    height: 88px;
  }

  .circle.top    { top: -12px;    right: 148px; }
  .circle.right  { top: 44px;     right: -12px; }
  .circle.left   { bottom: 44px;  left: 0;      }
  .circle.bottom { bottom: -12px; right: 148px; }

  /* ── Services ── */
  .services {
    padding: 48px 0;
  }

  .services h2 {
    font-size: 34px;
    margin-bottom: 32px;
  }

  .services-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* ── Why Us ── */
  .why-us {
    padding: 80px 0;
  }

  .why-us h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .compare-table {
    padding: 20px 16px 24px;
  }

  .compare-row {
    padding: 16px 18px;
    gap: 6px;
    border-radius: 18px;
    margin-bottom: 12px;
  }

  /* ── Mini CTA ── */
  .mini-cta {
    padding: 80px 0;
  }

  .mini-cta-card {
    padding: 36px 28px;
  }

  .mini-cta-left h2 {
    font-size: 30px;
    line-height: 1.1;
  }

  .mini-cta-left p {
    font-size: 15px;
  }

  /* ── Workflow ── */
  .workflow {
    padding: 64px 0;
  }

  .workflow h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .workflow-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .workflow-row.bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin: 16px 0 0;
  }

  .step-card {
    height: auto;
    min-height: 160px;
    padding: 24px;
  }

  /* ── FAQ ── */
  .faq-section {
    max-width: 100%;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-subtitle {
    font-size: 14px;
  }

  .chat-window {
    height: 540px;
    border-radius: 16px;
  }

  .bubble-client,
  .bubble-answer {
    font-size: 14px;
  }

  /* ── Reviews ── */
  .reviews {
    padding: 64px 0;
  }

  .reviews h2 {
    font-size: 32px;
  }

  .review-card {
    min-width: calc(50% - 10px);
  }

  .prev { left: -18px; }
  .next { right: -18px; }

  /* ── Contact ── */
  .contact {
    padding: 80px 0;
  }

  .contact-box {
    padding: 44px 32px;
    border-radius: 28px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-left h2 {
    font-size: 40px;
  }

  .contact-left p {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .contact-form input {
    height: 62px;
  }

  .contact-form button {
    height: 62px;
  }

  /* ── Footer ── */
  .footer {
    padding: 48px 0 22px;
    margin-top: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand .footer-desc {
    max-width: 100%;
    font-size: 14px;
  }

  .footer-column h4 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 14px;
  }

  .footer-socials {
    margin-top: 20px;
    gap: 10px;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}

/* ─────────────────────────────────────────
   480px — большой телефон
   ───────────────────────────────────────── */
@media (max-width: 480px) {

  /* ── Container ── */
  .container {
    width: 93%;
  }

  /* ── Header ── */
  .logo {
    width: 100px !important;
    height: 24px !important;
  }

  .lang-btn,
  .theme-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  .theme-btn img {
    width: 17px !important;
    height: 17px !important;
  }

  .burger-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  /* ── Hero ── */
  .hero-inner {
    padding: 85px 0 65px !important;
  }

  .hero-badge {
    padding: 5px 12px 5px 8px;
  }

  .badge-text {
    font-size: 10px;
  }

  .main-title {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .main p {
    font-size: 15px;
  }

  .main-button {
    font-size: 16px;
    padding: 13px 26px;
  }

  /* ── Terminal ── */
  .hero-right {
    margin-top: 24px;
  }

  .terminal {
    max-height: 230px;
    border-radius: 10px;
  }

  .t-body {
    max-height: 158px;
  }

  .t-code {
    padding: 10px 12px;
  }

  .t-code .code-line {
    font-size: 10px;
    height: 17px;
  }

  .t-bar {
    padding: 8px 12px;
    gap: 6px;
  }

  .t-dot {
    width: 8px;
    height: 8px;
  }

  .t-tabs {
    margin-left: 8px;
  }

  .t-tab {
    font-size: 9px;
    padding: 2px 7px;
  }

  .float-badge {
    right: 10px;
    bottom: -12px;
    padding: 5px 10px;
  }

  .float-badge span {
    font-size: 9px;
  }

  /* ── About ── */
  .about {
    padding: 40px 0;
  }

  .about-left h2 {
    font-size: 28px;
  }

  .about-text {
    font-size: 15px;
  }

  .about-right {
    width: 280px;
    height: 280px;
  }

  .circle.big {
    width: 155px;
    height: 155px;
    right: 62px;
    top: 80px;
  }

  .circle.small {
    width: 76px;
    height: 76px;
  }

  .circle.top    { top: -10px;    right: 126px; }
  .circle.right  { top: 36px;     right: -10px; }
  .circle.left   { bottom: 36px;  left: 0;      }
  .circle.bottom { bottom: -10px; right: 130px; }

  /* ── Services ── */
  .services h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .services-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 24px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 14px;
  }

  /* ── Why Us ── */
  .why-us {
    padding: 64px 0;
  }

  .why-us h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .compare-table {
    padding: 16px 12px 20px;
    border-radius: 20px;
  }

  .compare-row {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 10px;
  }

  .compare-row > div:first-child {
    font-size: 14px;
    gap: 12px;
  }

  .row-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 9px;
  }

  .good,
  .bad {
    font-size: 13px;
  }

  /* ── Mini CTA ── */
  .mini-cta {
    padding: 60px 0;
  }

  .mini-cta-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .mini-cta-left h2 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .mini-cta-left p {
    font-size: 14px;
  }

  .mini-badge {
    font-size: 11px;
    padding: 8px 13px;
    margin-bottom: 16px;
  }

  .mini-cta-btn {
    font-size: 15px;
    padding: 16px 22px;
    border-radius: 14px;
  }

  /* ── Workflow ── */
  .workflow {
    padding: 48px 0;
  }

  .workflow h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .workflow-row,
  .workflow-row.bottom {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
  }

  .workflow-row.bottom {
    margin-top: 12px;
  }

  .step-card {
    padding: 22px;
    min-height: auto;
  }

  .step-card .num {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .step-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .step-card p {
    font-size: 13px;
  }

  /* ── FAQ ── */
  .faq-section {
    padding: 0 0 48px;
  }

  .faq-header {
    margin-bottom: 24px;
  }

  .faq-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .faq-subtitle {
    font-size: 13px;
  }

  .faq-badge {
    font-size: 12px;
    padding: 4px 12px;
  }

  .chat-window {
    height: 460px;
    border-radius: 14px;
  }

  .chat-topbar {
    padding: 13px 16px;
  }

  .chat-name {
    font-size: 14px;
  }

  .chat-status {
    font-size: 11px;
  }

  .chat-body {
    padding: 12px 14px;
  }

  .bubble-client,
  .bubble-answer {
    font-size: 13px;
    padding: 9px 13px;
  }

  .msg-col {
    max-width: 78%;
  }

  .chat-input-row {
    padding: 12px 16px 14px;
  }

  .chat-input-fake {
    font-size: 13px;
    padding: 10px 14px;
  }

  /* ── Reviews ── */
  .reviews {
    padding: 48px 0;
  }

  .reviews h2 {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .review-card {
    min-width: 100%;
    padding: 20px;
  }

  .review-text {
    font-size: 13px;
  }

  .prev { left: -14px; }
  .next { right: -14px; }

  .reviews-btn {
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 8px;
  }

  /* ── Contact ── */
  .contact {
    padding: 60px 0;
  }

  .contact-box {
    padding: 32px 20px;
    border-radius: 22px;
  }

  .contact-badge {
    font-size: 12px;
    padding: 8px 13px;
    margin-bottom: 18px;
  }

  .contact-left h2 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .contact-left p {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .contact-features {
    gap: 12px;
  }

  .contact-feature {
    font-size: 13px;
    gap: 10px;
  }

  .contact-form {
    gap: 16px;
  }

  .contact-form input {
    height: 54px;
    font-size: 15px;
    border-radius: 18px;
    padding: 0 18px;
  }

  .contact-form textarea {
    height: 130px;
    font-size: 15px;
    border-radius: 18px;
    padding: 16px 18px;
  }

  .contact-form button {
    height: 54px;
    font-size: 15px;
    border-radius: 18px;
  }

  /* ── Footer ── */
  .footer {
    padding: 44px 0 20px;
    margin-top: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-logo {
    width: 160px;
    height: 34px;
    margin-bottom: 14px;
  }

  .footer-desc {
    font-size: 13px;
  }

  .footer-column h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 13px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-contact {
    gap: 8px;
  }

  .footer-socials {
    margin-top: 16px;
    gap: 10px;
  }

  .footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .footer-socials img {
    width: 19px;
    height: 19px;
  }

  .footer-bottom {
    padding-top: 14px;
  }

  .footer-bottom p {
    font-size: 12px;
    text-align: center;
  }
}

/* ─────────────────────────────────────────
   360px — маленький телефон
   ───────────────────────────────────────── */
@media (max-width: 360px) {

  .container {
    width: 94%;
  }

  /* ── Header ── */
  .header-inner {
    padding: 10px 14px !important;
  }

  .logo {
    width: 90px !important;
    height: 22px !important;
  }

  .lang-btn,
  .theme-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  .theme-btn img {
    width: 15px !important;
    height: 15px !important;
  }

  .burger-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    gap: 4px;
  }

  .burger-btn span {
    width: 14px;
  }

  .nav-btn {
    gap: 6px;
  }

  /* ── Hero ── */
  .hero-inner {
    padding: 80px 0 60px !important;
  }

  .main-title {
    font-size: 30px;
    letter-spacing: -0.3px;
  }

  .main p {
    font-size: 14px;
  }

  .main-button {
    font-size: 15px;
    padding: 12px 22px;
  }

  /* ── Terminal ── */
  .terminal {
    max-height: 200px;
  }

  .t-body {
    max-height: 136px;
  }

  .t-code .code-line {
    font-size: 9.5px;
    height: 16px;
  }

  .t-footer {
    display: none;
  }

  .float-badge {
    padding: 4px 9px;
    right: 8px;
    bottom: -10px;
  }

  .float-badge span {
    font-size: 8px;
  }

  /* ── About ── */
  .about-left h2 {
    font-size: 24px;
  }

  .about-text {
    font-size: 14px;
  }

  .about-right {
    width: 240px;
    height: 240px;
  }

  .circle.big {
    width: 130px;
    height: 130px;
    right: 52px;
    top: 68px;
  }

  .circle.small {
    width: 66px;
    height: 66px;
  }

  .circle.top    { top: -8px;    right: 108px; }
  .circle.right  { top: 30px;    right: -8px;  }
  .circle.left   { bottom: 30px; left: 0;      }
  .circle.bottom { bottom: -8px; right: 110px; }

  /* ── Services ── */
  .services h2 {
    font-size: 24px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  /* ── Why Us ── */
  .why-us h2 {
    font-size: 22px;
  }

  .compare-row > div:first-child {
    font-size: 13px;
    gap: 10px;
  }

  .row-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 8px;
  }

  .good,
  .bad {
    font-size: 12px;
  }

  /* ── Mini CTA ── */
  .mini-cta-left h2 {
    font-size: 21px;
  }

  .mini-cta-left p {
    font-size: 13px;
  }

  /* ── Workflow ── */
  .workflow h2 {
    font-size: 22px;
  }

  .step-card {
    padding: 18px;
  }

  .step-card h3 {
    font-size: 15px;
  }

  /* ── FAQ ── */
  .faq-title {
    font-size: 20px;
  }

  .chat-window {
    height: 400px;
  }

  .bubble-client,
  .bubble-answer {
    font-size: 12px;
    padding: 8px 11px;
  }

  .msg-col {
    max-width: 82%;
  }

  /* ── Reviews ── */
  .reviews h2 {
    font-size: 22px;
  }

  /* ── Contact ── */
  .contact-left h2 {
    font-size: 26px;
  }

  .contact-left p {
    font-size: 13px;
  }

  .contact-form input {
    height: 50px;
    font-size: 14px;
    border-radius: 16px;
  }

  .contact-form textarea {
    height: 110px;
    font-size: 14px;
    border-radius: 16px;
  }

  .contact-form button {
    height: 50px;
    font-size: 14px;
    border-radius: 16px;
  }

  /* ── Footer ── */
  .footer-logo {
    width: 140px;
    height: 30px;
  }

  .footer-column h4 {
    font-size: 14px;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 12px;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}

/* ================= АНИМАЦИЯ СЕКЦИЙ ================= */
section {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.js-observer section {
  opacity: 0;
  transform: translateY(30px);
}

.js-observer section.show {
  opacity: 1;
  transform: translateY(0);
}
