/* ===== Переменные и сброс ===== */
:root {
  --bg: #0a0b10;
  --bg-alt: #0f111a;
  --surface: #14161f;
  --surface-2: #1a1d29;
  --border: #262a38;
  --text: #e8eaf2;
  --text-dim: #9aa0b4;
  --accent: #6c5ce7;
  --accent-2: #00e0c6;
  --accent-glow: rgba(108, 92, 231, 0.45);
  --radius: 16px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Shimmer (вспышка по слову при завершении печати) ===== */
.grad--shimmer {
  background:
    linear-gradient(
      100deg,
      var(--accent-2) 0%,
      var(--accent-2) 38%,
      #ffffff 50%,
      var(--accent) 62%,
      var(--accent) 100%
    );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad--shimmer.is-flashing {
  animation: shimmerSweep 1.4s ease-in-out 1;
}
@keyframes shimmerSweep {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===== Typewriter caret ===== */
.typewriter {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
}
.typewriter__text {
  display: inline;
}
.typewriter__caret {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 4px;
  vertical-align: -0.1em;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(0, 224, 198, 0.7);
  border-radius: 1px;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grad--shimmer { animation: none; background-position: 50% 0; }
  .typewriter__caret { animation: none; opacity: 0; }
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), #8b7bff);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px var(--accent-glow); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent-2); color: #fff; transform: translateY(-2px); }

/* ===== Шапка ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; font-family: "Space Grotesk", sans-serif; }
.logo__mark {
  width: 32px;
  height: 32px;
  color: var(--accent-2);
  filter: drop-shadow(0 0 8px rgba(0, 224, 198, 0.55));
  transition: color 0.3s var(--ease), filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.logo:hover .logo__mark {
  color: #5ef0d8;
  filter: drop-shadow(0 0 14px rgba(0, 224, 198, 0.9));
  transform: rotate(-6deg) scale(1.05);
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.25s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }

/* ===== Hero brand mark ===== */
.hero__brand {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.hero__brandRing {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(
    from var(--neon-angle, 0deg),
    #00e0c6,
    #8b7bff,
    #6c5ce7,
    #00e0c6
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: neonSpin 14s linear infinite;
}
.hero__brand::before {
  /* Лёгкая внутренняя «подложка» */
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 224, 198, 0.18), transparent 60%),
    rgba(20, 22, 31, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero__brand::after {
  /* Наружный неоновый «ореол» — статичный, без пульсации */
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 198, 0.22), transparent 60%);
  filter: blur(18px);
  z-index: -1;
}
.hero__brandSvg {
  position: relative;
  width: 64px;
  height: 64px;
  color: var(--accent-2);
  filter: drop-shadow(0 0 10px rgba(0, 224, 198, 0.75))
          drop-shadow(0 0 22px rgba(0, 224, 198, 0.35));
}

@media (max-width: 600px) {
  .hero__brand { width: 108px; height: 108px; margin-bottom: 22px; }
  .hero__brandSvg { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brandRing,
  .hero__brand::after,
  .hero__brandSvg { animation: none; }
}

.hero__badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-2);
  background: var(--surface);
  margin-bottom: 26px;
}

.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__text {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 70px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(120deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__plus {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 4px;
}
.stat__label { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }

/* ===== Секции ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

/* ===== Прогресс прокрутки ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(0, 224, 198, 0.7);
  transition: width 0.1s linear;
}

/* ===== Активный пункт навигации ===== */
.nav__link.is-active {
  color: var(--accent-2);
}
.nav__link.is-active::after {
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 224, 198, 0.6);
}

/* ===== Магнитные кнопки ===== */
.btn--magnetic {
  will-change: transform;
  transition: transform 0.3s var(--ease), box-shadow 0.25s var(--ease);
}

/* ===== Лента технологий ===== */
.marquee {
  position: relative;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 17, 26, 0.5), rgba(15, 17, 26, 0.2));
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee__row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.marquee__item {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(0, 224, 198, 0.6);
  flex-shrink: 0;
  opacity: 0.7;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ===== Фон секций "Услуги" и "Процесс" ===== */
/* Общая стилистика: мягкие радиальные свечения в противоположных углах
   + тонкая вертикальная "PCB-сетка" (1px каждые 80px) с маской по краям */

#services, .process {
  position: relative;
  overflow: hidden;
}
#services::before, .process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#services::after, .process::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 80px
  );
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

/* Услуги — свечения по диагонали ↘ */
#services::before {
  background:
    radial-gradient(720px 460px at 0% 0%,   rgba(0, 224, 198, 0.10), transparent 60%),
    radial-gradient(720px 460px at 100% 100%, rgba(108, 92, 231, 0.10), transparent 60%);
}
/* Процесс — свечения по диагонали ↙ (зеркально, создаёт ритм) */
.process::before {
  background:
    radial-gradient(720px 460px at 100% 0%,  rgba(0, 224, 198, 0.10), transparent 60%),
    radial-gradient(720px 460px at 0% 100%,  rgba(108, 92, 231, 0.10), transparent 60%);
}

/* Контейнер с контентом — поверх фона */
#services > .container,
.process > .container { position: relative; z-index: 1; }
.process__steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0;
  margin: 0;
}
.process__step {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.55), rgba(20, 22, 31, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  z-index: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.process__step:hover {
  border-color: rgba(0, 224, 198, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45),
              0 0 24px rgba(0, 224, 198, 0.08);
}
.process__step:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 224, 198, 0.25);
}
.process__step .card__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease);
}
.process__step:hover .card__cta { transform: translateX(4px); }
.process__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.process__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(120deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
}
.process__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,92,231,0.20), rgba(0,224,198,0.18));
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.process__icon svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(0, 224, 198, 0.5));
}
.process__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.process__text {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .process__steps { grid-template-columns: 1fr; }
}

/* ===== Фон секции "О компании": Pulse dot grid ===== */
#about {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
/* Статичная сетка точек */
#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.6px);
  background-size: 32px 32px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 45%, transparent 95%);
  pointer-events: none;
  z-index: 0;
}
/* Контейнер для пульсирующих точек */
.pulse-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.pulse-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--c, #00e0c6);
  box-shadow: 0 0 14px var(--c, #00e0c6), 0 0 4px var(--c, #00e0c6);
  opacity: 0;
  animation: pulseDot 3.6s ease-in-out var(--d, 0s) infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1.2); }
}
#about > .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; opacity: 0.6; transform: scale(1); }
}

.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section__lead { color: var(--text-dim); margin-top: 14px; }

/* ===== Карточки услуг ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  isolation: isolate;
  cursor: pointer;
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 224, 198, 0.25);
}
.card__cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease);
}
.card:hover .card__cta { transform: translateX(4px); }
/* Внутренний "лужок" света за курсором */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 224, 198, 0.14),
    rgba(108, 92, 231, 0.08) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
/* Неоновая обводка, бегущая за курсором */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 224, 198, 0.9),
    rgba(108, 92, 231, 0.5) 30%,
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.card:hover {
  --lift: -6px;
  border-color: transparent;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(0, 224, 198, 0.08);
}
.card:hover::before,
.card:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce), (hover: none) {
  .card { transform: none !important; }
  .card::before, .card::after { display: none; }
  .card:hover { --lift: 0px; border-color: var(--accent); }
}
.card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,92,231,0.22), rgba(0,224,198,0.18));
  border: 1px solid var(--border);
  color: var(--accent-2);
  margin-bottom: 18px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card__icon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 6px rgba(0, 224, 198, 0.5));
  transition: filter 0.3s var(--ease);
}
.card:hover .card__icon {
  box-shadow: 0 0 22px rgba(0, 224, 198, 0.25);
  transform: scale(1.05);
}
.card:hover .card__icon svg {
  filter: drop-shadow(0 0 10px rgba(0, 224, 198, 0.85));
}
.card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card__text { color: var(--text-dim); font-size: 0.96rem; }

/* ===== О компании ===== */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__text { color: var(--text-dim); margin-top: 16px; }
.about__list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.about__list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #06121a;
  font-size: 0.75rem;
  font-weight: 800;
}
.about .btn { margin-top: 28px; }

.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.value:hover {
  border-color: var(--accent-2);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 224, 198, 0.08);
}
.value:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 224, 198, 0.25);
}
.value__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(108,92,231,0.20), rgba(0,224,198,0.18));
  border: 1px solid var(--border);
  color: var(--accent-2);
  margin-bottom: 14px;
}
.value__icon svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(0, 224, 198, 0.5));
}
.value .card__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease);
}
.value:hover .card__cta { transform: translateX(4px); }
.value__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.value__text { color: var(--text-dim); font-size: 0.92rem; }

/* ===== Контакты ===== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contacts__lead { color: var(--text-dim); margin-top: 14px; }

.contacts__list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contacts__list li { display: flex; flex-direction: column; gap: 2px; }
.contacts__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.contacts__list a:hover { color: var(--accent-2); }

/* ===== Форма ===== */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #5f6477; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}
.field.invalid input,
.field.invalid textarea { border-color: #ff5d6c; }
.field__error {
  display: block;
  color: #ff5d6c;
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 1em;
}
.form__submit { width: 100%; margin-top: 4px; }
.form__success {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 224, 198, 0.12);
  border: 1px solid rgba(0, 224, 198, 0.35);
  color: var(--accent-2);
  font-size: 0.92rem;
  text-align: center;
}

/* ===== Подвал ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 44px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__tagline { color: var(--text-dim); font-size: 0.9rem; margin-top: 8px; }
.footer__nav { display: flex; gap: 26px; }
.footer__nav a { color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--text); }
.footer__copy { color: var(--text-dim); font-size: 0.86rem; }

/* ===== Анимация появления ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contacts { grid-template-columns: 1fr; gap: 36px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }

  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 20px;
    background: rgba(10, 11, 16, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 30px 24px 36px;
    transform: translateY(-130%);
    transition: transform 0.3s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav__cta { width: 100%; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 80px; }
  .form { padding: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Модалка услуг ===== */
@property --neon-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 36px 30px;
  isolation: isolate;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 224, 198, 0.18),
    0 0 120px rgba(108, 92, 231, 0.15);
  /* Скрываем скроллбар, оставляя возможность скроллить колесом/тачем */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE / старый Edge */
}
.modal__panel::-webkit-scrollbar { display: none; }
.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
/* Неоновая обводка: вращающийся conic-gradient на 1px-кайме */
.modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--neon-angle),
    #00e0c6,
    #8b7bff,
    #6c5ce7,
    #00e0c6
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: neonSpin 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes neonSpin {
  to { --neon-angle: 360deg; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  z-index: 2;
}
.modal__close:hover {
  color: #fff;
  border-color: var(--accent-2);
  background: rgba(0, 224, 198, 0.08);
  transform: rotate(90deg);
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding-right: 40px;
}
.modal__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,92,231,0.28), rgba(0,224,198,0.22));
  border: 1px solid var(--border);
  color: var(--accent-2);
  flex-shrink: 0;
}
.modal__icon svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(0, 224, 198, 0.6));
}
.modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.modal__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}
.modal__lead {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
.modal__section { margin-bottom: 22px; }
.modal__h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 12px;
}
.modal__list {
  list-style: none;
  display: grid;
  gap: 9px;
}
.modal__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}
.modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal__tag {
  padding: 6px 12px;
  border: 1px solid rgba(0, 224, 198, 0.55);
  border-radius: 999px;
  font-size: 0.82rem;
  color: #fff;
  background: rgba(0, 224, 198, 0.08);
  box-shadow: 0 0 12px rgba(0, 224, 198, 0.12);
  cursor: default;
  user-select: none;
}
.modal__tag:active { transform: none; }
.modal__meta {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.modal__metaLabel {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.modal__duration {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .modal__panel { padding: 28px 22px 24px; border-radius: 16px; }
  .modal__title { font-size: 1.3rem; }
  .modal__head { gap: 14px; padding-right: 34px; }
  .modal__icon { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* ===== Variant: manifesto-стиль для модалок ценностей ===== */
.modal__panel--values { padding-top: 44px; }

.modal__panel--values .modal__head {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-right: 0;
  text-align: center;
  margin-bottom: 14px;
}
/* Большая «голая» иконка с двойным свечением, без коробки */
.modal__panel--values .modal__icon {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}
.modal__panel--values .modal__icon svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 14px rgba(0, 224, 198, 0.65))
          drop-shadow(0 0 32px rgba(0, 224, 198, 0.30));
}

/* Eyebrow с тонкими неоновыми «крыльями» по бокам */
.modal__panel--values .modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}
.modal__panel--values .modal__eyebrow::before,
.modal__panel--values .modal__eyebrow::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 198, 0.7), transparent);
}

.modal__panel--values .modal__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  position: relative;
  padding-bottom: 14px;
}
.modal__panel--values .modal__title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 224, 198, 0.6);
}

/* Pull-quote стиль для лида */
.modal__panel--values .modal__lead {
  text-align: center;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto 30px;
  line-height: 1.65;
}

/* Заголовки секций по центру */
.modal__panel--values .modal__h4 {
  text-align: center;
  margin-bottom: 16px;
}

/* Список — центрированный блок, текст внутри слева для читаемости */
.modal__panel--values .modal__list {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

/* Теги-плашки по центру */
.modal__panel--values .modal__tags {
  justify-content: center;
}

/* Мета по центру */
.modal__panel--values .modal__meta {
  justify-content: center;
  text-align: center;
}

/* CTA-кнопки по центру */
.modal__panel--values .modal__actions {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .modal__panel::before { animation: none; }
}
