/* ============================================================
   FutureSphinx — разработка, ИИ и автоматизация
   ────────────────────────────────────────────────────────────
   Стиль: идентичность семьи + характер студии.

   Тёплая основа и шрифты взяты от formaluch, чтобы сайты читались
   как одна семья. Электрик-циан #00D1FF взят из существующего сайта
   FutureSphinx и становится техническим акцентом: ИИ, разработка,
   скорость. Фиолетовый — второй голос для дизайна и креатива.
   Золото остаётся связующим цветом семьи.

   Смысл трёх акцентов:
     золото    — «мы одна семья проектов»
     циан      — логика, ИИ, инженерия
     фиолетовый— креатив, дизайн, вкус
   ============================================================ */

:root {
  --bg:        #08070a;
  --bg-alt:    #0c0b0f;
  --card:      #121016;
  --card-hi:   #17141d;
  --footer-bg: #050407;

  /* Семейный акцент — тот же, что у двух других сайтов */
  --gold:      #e8b84b;
  --gold-dim:  rgba(232, 184, 75, .34);
  --gold-bg:   rgba(232, 184, 75, .10);

  /* Технический акцент — из репозитория FutureSphinx */
  --cyan:      #00d1ff;
  --cyan-dim:  rgba(0, 209, 255, .34);
  --cyan-bg:   rgba(0, 209, 255, .08);

  /* Креативный акцент */
  --violet:      #a98bf5;
  --violet-dim:  rgba(169, 139, 245, .34);
  --violet-bg:   rgba(169, 139, 245, .08);

  --text:  #f2eef8;
  --muted: #8d8899;
  --faint: #5a5566;
  --line:  #241f2b;

  --bg-veil:     rgba(8, 7, 10, .88);
  --bg-alt-veil: rgba(12, 11, 15, .90);

  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: 24px;
  --gap: 20px;
  --section-y: clamp(56px, 8vw, 104px);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Контент всегда выше фоновой сцены.
   Без этого правила у main нет ни position, ни z-index, поэтому
   декоративный canvas с z-index 0 рисовался ПОВЕРХ текста и фотографий —
   панели кода налезали на абзацы. */
main,
.footer {
  position: relative;
  z-index: 1;
  /* Фоновая сцена летает по всему экрану и временами проходит над
     текстом. Читаемость обеспечивается не запретом на пересечение, а
     тенью под буквами: она отделяет текст от любого фона под ним. */
  text-shadow: 0 1px 3px rgba(4, 3, 8, .9), 0 0 12px rgba(4, 3, 8, .75);
}
/* У крупных заголовков тень плотнее: они тоньше по штриху и на светлом
   фоне панели терялись бы первыми. */
main h1,
main h2,
main h3,
.hero__title {
  text-shadow: 0 2px 6px rgba(4, 3, 8, .95), 0 0 18px rgba(4, 3, 8, .8);
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt-veil); }

.section--feature {
  position: relative;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(0, 209, 255, .07), transparent 70%),
    var(--bg-alt-veil);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Типографика ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
}

.h2--shine {
  background: linear-gradient(100deg, var(--text) 20%, #fff 40%, var(--text) 60%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-sweep 7s linear 1.5s infinite;
}
@keyframes shine-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .h2--shine { animation: none; color: var(--text); -webkit-text-fill-color: var(--text); background: none; }
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.2;
}
.h3--block { margin-top: clamp(38px, 5vw, 64px); }
.h4 { font-size: 16px; font-weight: 600; }

.lead {
  color: #c9c3d4;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
}
.lead--hero { max-width: 58ch; }
.lead--wide { max-width: 76ch; margin-top: 14px; }

.note { color: var(--faint); font-size: 14px; line-height: 1.6; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  min-height: 48px;
  border: 1px solid var(--cyan);
  border-radius: var(--pill);
  background: var(--cyan);
  color: #04121a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: #33ddff;
  border-color: #33ddff;
  box-shadow: 0 10px 30px rgba(0, 209, 255, .28);
}
.btn--ghost { background: none; color: var(--text); border-color: var(--line); }
.btn--ghost:hover {
  background: none;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn { will-change: transform; }
@media (hover: none) { .btn { transform: none !important; } }

/* ---------- Навигация ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-veil);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.nav__brand { display: grid; gap: 1px; flex: 0 0 auto; }
.nav__brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}
.nav__brand-sub {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav__links { display: none; }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0 16px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav__toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav__toggle-bars { display: grid; gap: 4px; width: 20px; }
.nav__toggle-bars span { display: block; width: 20px; height: 2px; background: currentColor; }
@media (max-width: 419px) { .nav__toggle-text { display: none; } .nav__toggle { padding: 0 12px; } }

@media (min-width: 1000px) {
  .nav__toggle { display: none; }
  .nav__in { min-height: 76px; }
  .nav__links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
  .nav__links a { color: var(--muted); font-size: 15px; transition: color .2s var(--ease); }
  .nav__links a:hover { color: var(--cyan); }
  .nav__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
}

/* ---------- Меню-диалог ---------- */
html.menu-open body { overflow: hidden; }

.mmenu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 58%, rgba(5, 4, 7, .86) 100%);
  color: var(--text);
  display: none;
}
.mmenu[open] { display: block; }
.mmenu::backdrop { background: rgba(4, 3, 6, .74); backdrop-filter: blur(2px); }

.mmenu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mmenu__brand { font-family: var(--font-display); font-size: clamp(20px, 3vw, 24px); }
.mmenu__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(242, 238, 248, .26);
  border-radius: 12px;
  background: rgba(242, 238, 248, .06);
  color: var(--text);
  cursor: pointer;
}
.mmenu__close:hover { border-color: var(--cyan); background: var(--cyan-bg); color: var(--cyan); }

.mmenu__panel {
  padding: 20px var(--pad) 28px;
  background: var(--bg);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: mmenu-drop .26s var(--ease) both;
}
@keyframes mmenu-drop {
  from { transform: translateY(-14px); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mmenu__panel { animation: none; } }

.mmenu__group { min-width: 0; }
.mmenu__group + .mmenu__group { margin-top: 22px; }
.mmenu__label {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.mmenu__links { display: flex; flex-direction: column; }
.mmenu__links a {
  padding: 14px 4px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mmenu__links a:last-child { border-bottom: 0; }
.mmenu__links a:hover { color: var(--cyan); }

.mmenu__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mmenu__cta .btn { width: 100%; }

@media (min-width: 760px) {
  .mmenu__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "switch links" "cta links";
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 18px 48px;
    padding: 26px var(--pad) 32px;
  }
  .mmenu__group:first-child { grid-area: switch; }
  .mmenu__group:nth-child(2) { grid-area: links; }
  .mmenu__cta { grid-area: cta; margin: 0; padding-top: 18px; }
  .mmenu__cta .btn { width: auto; }
}
@media (min-width: 1000px) {
  .mmenu__top { min-height: 72px; }
  .mmenu__panel { padding-inline: max(var(--pad), calc((100vw - 1100px) / 2)); }
}

/* ---------- Переключатель проектов ---------- */
.switch {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(18, 16, 22, .5);
  flex-wrap: wrap;
}
.switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 1 auto;
  padding: 9px 12px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.switch__item:hover { color: var(--text); background: rgba(242, 238, 248, .06); }
.switch__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.switch__name { color: var(--text); }

.switch__item--light { color: var(--gold); }
.switch__item--print { color: #5ec2f0; }
.switch__item--dev { color: var(--violet); }

/* Подсветка активного проекта. Сделана через currentColor, поэтому
   работает для любого акцента: и золото, и синий, и фиолетовый
   дают свою рамку без отдельных правил на каждый. */
.switch__item[aria-current="true"] {
  background: color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 36%, transparent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
  background-image:
    linear-gradient(rgba(0, 209, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, .05) 1px, transparent 1px);
  background-size: 38px 38px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: hero-grid 28s linear infinite; }
  @keyframes hero-grid {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 38px 38px, 38px 38px; }
  }
}

.fx-canvas {
  /* Сцена занимает весь экран и стоит под контентом, а не только в шапке:
     иначе при прокрутке эффект пропадает и страница дальше выглядит пустой. */
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}
@media (min-width: 900px) {
  /* Маска лишь слегка приглушает сцену за текстовой колонкой. Раньше она
     гасила её почти в ноль, но та защита была нужна до того, как у main
     появился z-index и у текста — тень. Сейчас достаточно лёгкого
     ослабления, иначе панели просто исчезают у краёв экрана. */
  .fx-canvas {
    -webkit-mask-image: radial-gradient(ellipse 50% 64% at 27% 45%, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .8) 60%, #000 100%);
    mask-image: radial-gradient(ellipse 50% 64% at 27% 45%, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .8) 60%, #000 100%);
  }
}

.fx-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 209, 255, .05) 55%, rgba(0, 209, 255, .12) 92%, transparent 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .fx-scan { animation: hero-scan 7.5s cubic-bezier(.45, 0, .55, 1) infinite; }
  @keyframes hero-scan {
    0%   { transform: translateY(-40%); opacity: 0; }
    12%  { opacity: .9; }
    88%  { opacity: .9; }
    100% { transform: translateY(300%); opacity: 0; }
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
@media (max-width: 640px) { .hero::after { display: none; } }

.fx-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(50% 60% at 22% 40%, rgba(0, 209, 255, .17), transparent 70%),
    radial-gradient(45% 55% at 82% 22%, rgba(169, 139, 245, .13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 5vw, 54px);
}
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
}

.hero__text { min-width: 0; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(29px, 5.4vw, 58px);
  line-height: 1.06;
  margin-bottom: 18px;
}
.hero__accent {
  background: linear-gradient(92deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__stats {
  display: grid;
  /* Подписи («Первый прототип», «Ответ на заявку») длинные, поэтому на узких
     экранах даём две колонки, а не четыре: иначе слова рвутся по слогам. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
@media (min-width: 620px) { .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
  /* Подпись может занять две строки — это лучше, чем обрезанное слово */
  line-height: 1.35;
}
.hero__stats dd { font-size: 16px; font-weight: 600; color: var(--text); }

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 13px;
}
@media (hover: none) { .hero__hint { display: none; } }

.hero__media { margin: 0; }
.hero__media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(0, 209, 255, .06);
}

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden;
  padding: 14px 0;
  background: linear-gradient(90deg, #0a1a22, #0d2733 50%, #0a1a22);
  border-top: 1px solid var(--cyan-dim);
  border-bottom: 1px solid var(--cyan-dim);
}
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span {
  padding-right: 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #7fe6ff;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Карточки ---------- */
.cards2 { display: grid; gap: var(--gap); margin-top: clamp(28px, 4vw, 46px); }
@media (min-width: 860px) { .cards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }

.cards3 { display: grid; gap: var(--gap); margin-top: clamp(28px, 4vw, 46px); }
@media (min-width: 700px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (min-width: 1080px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { transform: translateY(-3px); }
.card--accent-cyan:hover { border-color: var(--cyan-dim); }
.card--accent-violet:hover { border-color: var(--violet-dim); }
.card--accent-gold:hover { border-color: var(--gold-dim); }

/* У служебных карточек картинка чуть приглушена: она задаёт настроение,
   но не должна перетягивать внимание с описания услуги. */
.card--service img { filter: brightness(.92) saturate(1.03); }
.card--service:hover img { filter: brightness(1.02) saturate(1.1); }

.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
.card:hover img { transform: scale(1.03); }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.card--audience { padding: 28px 26px; }
.card--audience .spec { margin-top: 16px; }

/* Метки направлений */
.tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tag--cyan { background: var(--cyan-bg); color: var(--cyan); border: 1px solid var(--cyan-dim); }
.tag--violet { background: var(--violet-bg); color: var(--violet); border: 1px solid var(--violet-dim); }
.tag--gold { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-dim); }

/* ---------- Списки ---------- */
.spec { display: grid; gap: 9px; margin-top: 16px; }
.spec li {
  position: relative;
  padding-left: 18px;
  color: #c9c3d4;
  font-size: 15px;
  line-height: 1.55;
}
.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.spec--tight { gap: 6px; margin-top: 14px; }
.spec--tight li { font-size: 14px; }
.card--accent-violet .spec--tight li::before { background: var(--violet); }
.card--accent-gold .spec--tight li::before { background: var(--gold); }

/* ---------- Почему со мной ---------- */
.reasons {
  display: grid;
  gap: 16px;
  margin-top: clamp(26px, 4vw, 42px);
}
@media (min-width: 700px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.reason {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.reason:hover { border-color: var(--cyan-dim); background: var(--card-hi); }
.reason h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.reason p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: var(--gap); margin-top: clamp(28px, 4vw, 46px); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.step {
  padding: 26px 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease);
}
.step:hover { border-color: var(--cyan-dim); }
.step__num {
  display: grid;
  place-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--cyan-dim);
  border-radius: 50%;
  background: var(--cyan-bg);
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step__time {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan) !important;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Панели ---------- */
.panel {
  display: grid;
  gap: 24px;
  margin-top: clamp(36px, 5vw, 60px);
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .panel--callout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.panel--callout {
  background:
    radial-gradient(90% 140% at 0% 50%, rgba(0, 209, 255, .10), transparent 70%),
    var(--card);
  border-color: var(--cyan-dim);
}
.panel__text h3 { margin-bottom: 12px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; }
.panel__text p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- Показатели ---------- */
.metrics {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 700px) { .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }

.metric {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.metric__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1;
  background: linear-gradient(120deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric__label { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.ba-grid { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 860px) { .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.ba-card {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ba-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.ba-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.ba-before { color: var(--faint); font-weight: 600; }
.ba-after { color: var(--cyan); font-weight: 600; }

/* ---------- Технологии ---------- */
.stack {
  display: grid;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 42px);
}
@media (min-width: 640px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .stack { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stack__item {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.stack__item:hover { border-color: var(--violet-dim); background: var(--card-hi); }
.stack__name { font-size: 15px; font-weight: 600; }
.stack__use { color: var(--faint); font-size: 13px; line-height: 1.45; }
.stack__note { margin-top: 22px; max-width: 70ch; }

/* ---------- Кейсы ---------- */
.works { display: grid; gap: var(--gap); margin-top: clamp(28px, 4vw, 46px); }
@media (min-width: 900px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }

.work {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(0, 209, 255, .08), transparent 65%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.work:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }
.work--plain { background: var(--card); }
.work__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.work h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.work p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.work__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}
.work__link:hover { color: #66e5ff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: clamp(26px, 4vw, 42px); max-width: 940px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: var(--cyan-dim); }
.faq summary {
  padding: 18px 52px 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--cyan);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--cyan); }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- Кто делает ----------
   Живое фото и факты. Блок про доверие: с безликой студией и с
   конкретным человеком, у которого есть стек и портфолио, работают
   по-разному. */
.maker {
  display: grid;
  gap: 26px;
  margin-top: clamp(28px, 4vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
}
@media (min-width: 760px) {
  .maker { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; align-items: start; }
}

.maker__photo { margin: 0; }
.maker__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.maker__body p { margin: 0 0 14px; }
.maker__body .lead { color: var(--text); }
.maker__body p:not(.lead) { color: var(--muted); font-size: 15px; line-height: 1.7; }
/* Ссылки внутри текста. Важно: правило ограничено абзацами, иначе оно
   перебивало бы цвет кнопок в .maker__actions — получался циан на
   циане, и надпись на кнопке пропадала. */
.maker__body p a { color: var(--cyan); border-bottom: 1px solid var(--cyan-dim); }
.maker__body p a:hover { border-bottom-color: var(--cyan); }

.maker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Список «термин — значение» в столбик: для длинных пояснений */
.facts { display: grid; gap: 14px; }
.facts--stack { display: block; margin-top: 6px; }
.facts--stack > div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts--stack > div:last-child { border-bottom: 0; }
.facts--stack dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
}
.facts--stack dd { color: #c9c3d4; font-size: 15px; line-height: 1.6; }

/* ---------- Контакты ---------- */
.contact {
  display: grid;
  gap: 30px;
  padding: clamp(24px, 3.4vw, 44px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 209, 255, .10), transparent 65%),
    var(--card);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; } }
.contact__text h2 { margin-bottom: 14px; }
.contact__text p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.contact__list { display: grid; gap: 10px; margin-top: 22px; }
.contact__list li {
  position: relative;
  padding-left: 22px;
  color: #c9c3d4;
  font-size: 15px;
}
.contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-dim);
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact__media { margin: 0; }
.contact__media img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 6vw, 76px);
}
.footer__in { display: grid; gap: 34px; }
@media (min-width: 800px) { .footer__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; } }
.footer__brand { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; }
.footer__about p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 46ch; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.footer__contacts h2 { margin-bottom: 14px; color: var(--text); }
.footer__contacts p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.footer__contacts a { color: var(--text); border-bottom: 1px solid var(--line); }
.footer__contacts a:hover { color: var(--cyan); border-color: var(--cyan-dim); }

.projects {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
}
.projects__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.projects__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.projects__row .switch__item { padding: 10px 16px; border: 1px solid var(--line); gap: 10px; }
.projects__row .switch__item[aria-current="true"] { cursor: default; }
.projects__host { color: var(--faint); font-size: 12px; font-weight: 500; }
@media (max-width: 559px) {
  .projects__row { flex-direction: column; align-items: stretch; }
  .projects__row .switch__item { justify-content: flex-start; }
}

.footer__legal {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 45;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 16, 22, .92);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--cyan); border-color: var(--cyan); color: #04121a; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Эффект печати у заголовков ---------- */
.print-reveal {
  clip-path: inset(100% 0 0 0);
  transform: translateY(10px);
  opacity: .001;
  transition:
    clip-path .9s cubic-bezier(.22, .61, .36, 1),
    transform .9s cubic-bezier(.22, .61, .36, 1),
    opacity .5s var(--ease);
}
.print-reveal.is-printed { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .print-reveal { clip-path: none; transform: none; opacity: 1; transition: none; }
}
.no-js .print-reveal { clip-path: none; transform: none; opacity: 1; }

/* ---------- Интерактив ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(200px, 22vw, 360px);
  height: clamp(200px, 22vw, 360px);
  translate: -50% -50%;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(0, 209, 255, .12) 0%, rgba(169, 139, 245, .05) 45%, transparent 70%);
  transition: opacity .4s var(--ease);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

.print-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 80;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--gold));
  box-shadow: 0 0 12px rgba(0, 209, 255, .5);
}

.tilt { perspective: 900px; }
.tilt > * { transition: transform .45s cubic-bezier(.22, .61, .36, 1); transform-style: preserve-3d; will-change: transform; }
.tilt.is-tilting > * { transition: transform .08s linear; }

.tilt--glare { position: relative; }
.tilt--glare::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 209, 255, .15), transparent 62%);
}
.tilt--glare.is-tilting::after { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .tilt > * { transform: none !important; }
  .tilt--glare::after { display: none; }
}

.count { font-variant-numeric: tabular-nums; }
.count.is-counting { opacity: .72; }

/* ---------- Доступность ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04121a;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Печать ---------- */
@media print {
  .nav, .marquee, .skip, .to-top, .mmenu, .print-progress, .cursor-glow { display: none; }
  body { background: #fff; color: #000; }
  .reveal, .print-reveal { opacity: 1; transform: none; clip-path: none; }
}
