/* ============================================================
   QON — стили
   ============================================================ */

:root {
  --bg: #040812; /* Сделали фон чуть более синеватым для контраста */
  --bg-soft: #080d1a;
  --text: #eef2ff;
  --muted: #8b93ab;
  --line: rgba(255, 255, 255, 0.09);
  
  /* Цвета из логотипа */
  --accent: #00A3FF; /* Яркий синий */
  --accent-2: #F8C300; /* Желтый */
  --accent-3: #F05222; /* Красный */
  --accent-dark: #005C8B; /* Темно-синий */
  
  /* Градиент для кнопок и текста (синий -> темно-синий) */
  --grad: linear-gradient(120deg, #00A3FF 0%, #005C8B 100%);
  
  --radius: 20px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* фоновая подсветка */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(0, 163, 255, 0.15), transparent 62%),
    radial-gradient(55vw 55vw at 88% 8%, rgba(0, 92, 139, 0.15), transparent 62%),
    radial-gradient(70vw 70vw at 50% 115%, rgba(248, 195, 0, 0.05), transparent 62%);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/*======= Стили для картинок логотипа====== */
.logo-img {
  height: 36px; /* Высота в шапке */
  width: auto;
  display: block;
}

.hero-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 28px;
  animation: floatLogo 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 25px rgba(0, 163, 255, 0.3));
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ================= КАСТОМНЫЙ КУРСОР ================= */
@media (min-width: 1025px) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea { cursor: none !important; }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647; /* Максимально возможный z-index, чтобы точно был поверх всего */
  will-change: transform;
}

.cursor-dot {
  width: 8px; /* Сделали чуть больше для заметности */
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(0, 163, 255, 0.6);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              border-color 0.3s var(--ease), background 0.3s var(--ease);
}

/* ================= ХЕДЕР ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.header.is-scrolled {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  font-family: "Unbounded", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
}

.burger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

body.nav-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.nav-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ================= КНОПКИ ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s, border-color 0.3s, color 0.3s;
}

.btn--sm { padding: 11px 22px; font-size: 0.88rem; }
.btn--full { width: 100%; }

.btn--primary {
  color: #05060a;
  background: var(--grad);
  background-size: 200% 100%;
  animation: gradShift 9s linear infinite;
  box-shadow: 0 10px 40px -14px rgba(77, 227, 255, 0.7);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 55px -14px rgba(139, 92, 246, 0.85);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: rgba(77, 227, 255, 0.5);
  background: rgba(77, 227, 255, 0.07);
  transform: translateY(-2px);
}

@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 40%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.2rem);
  margin-bottom: 26px;
}

.gradient-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s linear infinite;
}

.hero__lead {
  max-width: 620px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 72px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; }

.stat__num {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ================= СЕКЦИИ ================= */
.section {
  position: relative;
  padding: 130px 0;
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
  pointer-events: none;
}

.section__head {
  max-width: 760px;
  margin-bottom: 64px;
}

.eyebrow {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.7vw, 3rem);
  margin-bottom: 20px;
}

.section__lead {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.02rem;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ================= КАРТОЧКИ ================= */
.card {
  position: relative;
  padding: 34px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 163, 255, 0.18), /* Новый синий */
    transparent 68%
  );
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 163, 255, 0.4);
  box-shadow: 0 26px 70px -32px rgba(0, 163, 255, 0.6);
}

.card:hover::before { opacity: 1; }

.card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(77, 227, 255, 0.22);
  border: 1px solid rgba(0, 163, 255, 0.25);
  background: rgba(0, 163, 255, 0.08);
  color: var(--accent);
}

.card__icon svg { width: 24px; height: 24px; }

.card:hover .card__icon {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 30px -6px rgba(77, 227, 255, 0.6);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ================= КЕЙСЫ ================= */
.case {
  position: relative;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.09), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.case:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.42);
  box-shadow: 0 26px 70px -32px rgba(139, 92, 246, 0.65);
}

.case__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.case h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.case p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 26px;
}

.case__result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case__result strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1.7rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case__result span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================= ПРЕИМУЩЕСТВА ================= */
.feature {
  display: flex;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
}

.feature:hover {
  border-color: rgba(77, 227, 255, 0.28);
  background: rgba(77, 227, 255, 0.045);
  transform: translateY(-4px);
}

.feature__num {
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  flex-shrink: 0;
  padding-top: 4px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ================= КОНТАКТЫ ================= */
.contact {
  display: flex;
  justify-content: center; /* Центрируем контент */
  text-align: center;      /* Текст по центру */
}

/*  этот блок добавим, чтобы ограничить ширину и не растягивать текст на весь экран */
.contact__info {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  gap: 22px;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
}

.contact__list span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__list a {
  transition: color 0.3s;
}

.contact__list a:hover { color: var(--accent); }

.contact-form {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.field input::placeholder,
.field textarea::placeholder { color: #5a6178; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(77, 227, 255, 0.55);
  background: rgba(77, 227, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(77, 227, 255, 0.08);
}

.form-note {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form.is-sent button {
  background: linear-gradient(120deg, #2ee6a8, #4de3ff);
  animation: none;
  color: #05110c;
}

/* ================= ФУТЕР ================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__link { transition: color 0.3s; }
.footer__link:hover { color: var(--accent); }

/* ================= АНИМАЦИЯ ПОЯВЛЕНИЯ ================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ================= АДАПТИВ ================= */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .header__cta { display: none; }
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }

  body.nav-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav a:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .section { padding: 90px 0; }
  .hero { padding: 130px 0 90px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero__stats { gap: 32px; }
  .hero__actions { margin-bottom: 56px; }
  .scroll-hint { display: none; }
  .contact-form { padding: 26px; }
}

/* ================= ДОСТУПНОСТЬ ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}