/* =========================================================
   Павел Козлов AI — Premium Dark Tech Landing (refined)
   ========================================================= */

/* ---------- Локальные шрифты (self-hosted, без Google CDN) ---------- */
/* Unbounded + Manrope, подмножества cyrillic+latin. unicode-range -> браузер грузит только нужное. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/manrope-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/manrope-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/manrope-500-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/manrope-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/manrope-600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/manrope-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/manrope-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/manrope-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/unbounded-600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/unbounded-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/unbounded-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/unbounded-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:800;font-display:swap;src:url('assets/fonts/unbounded-800-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:800;font-display:swap;src:url('assets/fonts/unbounded-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg:            #070A12;
  --graphite:      #0B1120;
  --card:          #101522;
  --block:         #111827;
  --text:          #F8FAFC;
  --text-2:        #94A3B8;
  --text-3:        #64748B;
  --blue:          #3B82F6;
  --violet:        #8B5CF6;
  --cyan:          #22D3EE;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 60%, var(--cyan) 120%);
  --grad-text: linear-gradient(120deg, #60A5FA 0%, #A78BFA 50%, #22D3EE 100%);
  --grad-soft: linear-gradient(160deg, rgba(34,211,238,0.10), rgba(139,92,246,0.10));

  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;

  --shadow: 0 22px 50px -22px rgba(0,0,0,0.7);
  --shadow-sm: 0 10px 30px -16px rgba(0,0,0,0.65);
  --glow-blue: 0 0 50px -12px rgba(59,130,246,0.45);

  --maxw: 1160px;
  --header-h: 64px;
  --section-y: clamp(56px, 6.5vw, 96px);
  --section-y-tight: clamp(44px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --ff: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-display: 'Unbounded', var(--ff);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Премиум A1: видимый фокус для клавиатурной навигации (только :focus-visible, hover не затрагивается) */
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.4); border-radius: 6px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.45); }

/* Премиум A2: тонкая шумовая текстура поверх фона — убирает бандинг, даёт матовую глубину.
   Поверх фоновых слоёв, под sticky-хедером (z 100); клики проходят (pointer-events:none). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: rgba(139,92,246,0.4); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: var(--section-y-tight) 0; }
.section--alt { background: linear-gradient(180deg, var(--graphite), #080C16); }
/* Премиум B1: деликатный градиентный хэйрлайн сверху alt-секций (кроме CTA — у неё свой glow) */
.section--alt:not(.cta)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.45), transparent);
  pointer-events: none;
}

.section__head { max-width: 660px; margin: 0 auto clamp(34px, 4vw, 52px); text-align: center; }
.section__head--left { text-align: left; max-width: none; margin-bottom: 24px; }
.section__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section__sub { color: var(--text-2); font-size: clamp(14.5px, 1.4vw, 16.5px); line-height: 1.65; max-width: 64ch; }
/* В центрированных шапках секций — центрируем ограниченный по ширине подзаголовок */
.section__head .section__sub { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(34,211,238,0.06);
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Icons ---------- */
.card__icon {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}
.ico { width: 23px; height: 23px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--lg { padding: 15px 30px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow-blue);
  background-size: 160% 160%;
  /* Премиум B3: деликатный живой сдвиг градиента (отключается при prefers-reduced-motion ниже) */
  animation: ctaShift 8s ease-in-out infinite;
}
@keyframes ctaShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 70px -12px rgba(99,102,241,0.7); background-position: right center; }
.btn--ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(139,92,246,0.55); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,10,18,0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--border); background: rgba(7,10,18,0.85); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  font-family: var(--ff-display);
  font-weight: 700; font-size: 14px; color: #fff;
  box-shadow: var(--glow-blue);
}
.logo__text { font-size: 16px; letter-spacing: -0.01em; }
.logo__accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; gap: 28px; }
.nav__link { color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color 0.25s; position: relative; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
/* Scroll-spy: активный раздел подсвечен постоянно */
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); }
.burger span { width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px); overflow: hidden; position: relative; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero__desc { color: var(--text-2); font-size: clamp(15px, 1.5vw, 17px); max-width: 500px; margin-bottom: 26px; line-height: 1.6; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__trust li { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; box-shadow: 0 0 10px rgba(59,130,246,0.8); }
.hero__stack-line { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; letter-spacing: 0.02em; }

/* Hero glows + grid */
.hero__glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.45; z-index: 0; pointer-events: none; will-change: transform; }
.hero__glow--blue { width: 480px; height: 480px; background: rgba(59,130,246,0.4); top: -140px; left: -120px; animation: aurora1 15s ease-in-out infinite; }
.hero__glow--violet { width: 440px; height: 440px; background: rgba(139,92,246,0.32); bottom: -180px; right: -100px; animation: aurora2 19s ease-in-out infinite; }
@keyframes aurora1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,50px) scale(1.18); } }
@keyframes aurora2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-55px,-35px) scale(1.12); } }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 38%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 38%, #000 30%, transparent 75%);
}

/* Hero visual / portrait frame */
.hero__visual { position: relative; display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: min(370px, 100%);
  padding: 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.portrait-frame::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, rgba(139,92,246,0.45), transparent 70%);
  filter: blur(28px); opacity: 0.8;
}
.portrait-frame--sm { width: min(340px, 100%); }
.portrait { position: relative; border-radius: var(--radius); overflow: hidden; }
.portrait__img { width: 100%; height: 100%; object-fit: cover; }
/* Кадрирование: фото горизонтальные, рамки вертикальные -> режется по бокам, держим лицо */
.portrait--hero .portrait__img { object-position: 50% 50%; }   /* hero: лицо по центру */
.portrait--trust .portrait__img { object-position: 36% 50%; }  /* фото 2: лицо центр-слева */
.portrait--about .portrait__img { object-position: 28% 50%; }  /* фото 1: профиль, лицо слева */
.portrait--hero { aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 28%, rgba(139,92,246,0.25), rgba(7,10,18,0.6)); }
.portrait--trust { aspect-ratio: 3 / 4; background: radial-gradient(circle at 50% 28%, rgba(59,130,246,0.25), rgba(7,10,18,0.6)); }
.portrait--about { aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 28%, rgba(139,92,246,0.25), rgba(7,10,18,0.6)); }

/* Floating cards (compact) */
.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  background: rgba(13,18,30,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}
.fc__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px rgba(34,211,238,0.9); }
.fc--1 { top: 10%; left: -10%; animation-delay: 0s; }
.fc--2 { top: 30%; right: -12%; animation-delay: 0.9s; }
.fc--3 { bottom: 26%; left: -13%; animation-delay: 1.7s; }
.fc--4 { bottom: 8%; right: -8%; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards grid (services) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 28px 26px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014)), rgba(16,21,34,0.74);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Объём задаётся светом, а не рамкой: верхний внутренний блик + еле-видимый
     внутренний хэйрлайн (стеклянный кант, не «ИИшная» обводка) + мягкая тень. */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 0 1px rgba(255,255,255,0.028), var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
/* Спотлайт за курсором (--mx/--my задаёт JS) */
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,-10%), rgba(124,128,247,0.16), transparent 62%);
  opacity: 0; transition: opacity 0.4s;
}
/* Градиентный «луч» по нижней кромке — акцент вместо замкнутой рамки */
.card::after {
  content: ''; position: absolute; left: 14%; right: 14%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,128,247,0.55), rgba(34,211,238,0.55), transparent);
  opacity: 0.35; transition: opacity 0.4s, left 0.4s var(--ease), right 0.4s var(--ease);
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.04), 0 6px 16px -8px rgba(0,0,0,0.6), 0 30px 56px -22px rgba(0,0,0,0.8), 0 0 34px -10px rgba(99,102,241,0.45); }
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; left: 6%; right: 6%; }
.card--accent { background: linear-gradient(160deg, rgba(59,130,246,0.14), rgba(139,92,246,0.08)), rgba(16,21,34,0.74); }
.card__title { font-family: var(--ff-display); font-size: 15.5px; font-weight: 600; margin-bottom: 9px; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.card__text { color: var(--text-2); font-size: 14.5px; line-height: 1.65; max-width: 64ch; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.card__tags span {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

/* ---------- Tasks chips ---------- */
.tasks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.task-chip {
  padding: 16px 18px 16px 46px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014)), rgba(16,21,34,0.7);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 0 0 1px rgba(255,255,255,0.025), var(--shadow-sm);
  font-size: 14.5px; font-weight: 500;
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative;
  line-height: 1.4;
  overflow: hidden;
}
.task-chip::before {
  content: '→'; position: absolute; left: 18px; top: 16px;
  color: var(--cyan); font-weight: 700;
  transition: transform 0.35s var(--ease);
}
/* Градиентный «луч» снизу — акцент вместо рамки */
.task-chip::after {
  content: ''; position: absolute; left: 14%; right: 14%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,128,247,0.5), rgba(34,211,238,0.5), transparent);
  opacity: 0; transition: opacity 0.35s, left 0.35s var(--ease), right 0.35s var(--ease);
}
.task-chip:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.04), 0 18px 36px -20px rgba(0,0,0,0.8), 0 0 26px -12px rgba(99,102,241,0.5); }
.task-chip:hover::before { transform: translateX(4px); }
.task-chip:hover::after { opacity: 1; left: 6%; right: 6%; }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.audience-card .card__text { font-size: 14px; }

/* ---------- Trust ---------- */
.trust__inner { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 52px; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.trust__content { text-align: left; }
.trust__content .section__title { text-align: left; }
.glass-badge {
  position: absolute; bottom: 4px; right: -14px;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  background: rgba(13,18,30,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  font-size: 13px; font-weight: 600; max-width: 200px; line-height: 1.3;
  box-shadow: var(--shadow);
}
.glass-badge__num {
  font-family: var(--ff-display); font-size: 19px; font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 6px; background: rgba(59,130,246,0.15); color: var(--cyan);
  font-size: 12px; font-weight: 700;
}
.check-list--two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list--two li { font-size: 14.5px; }
.check-list--sm { gap: 9px; margin: 16px 0 22px; }
.check-list--sm li { font-size: 13.5px; padding-left: 26px; color: var(--text-2); }
.check-list--sm li::before { width: 17px; height: 17px; font-size: 10px; }

/* Trust results */
.results__title { font-family: var(--ff-display); font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.result-card {
  padding: 22px 20px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014)), rgba(16,21,34,0.74);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 0 1px rgba(255,255,255,0.028), var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.result-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.04), 0 6px 16px -8px rgba(0,0,0,0.6), 0 30px 56px -22px rgba(0,0,0,0.8), 0 0 34px -10px rgba(99,102,241,0.45); }
.result-card .card__icon { width: 40px; height: 40px; margin-bottom: 14px; }
.result-card .ico { width: 21px; height: 21px; }
.result-card__title { font-family: var(--ff-display); font-size: 16px; font-weight: 600; margin-bottom: 7px; line-height: 1.25; }
.result-card__text { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* ---------- Stack ---------- */
/* Бегущая строка инструментов */
.stack-marquee {
  overflow: hidden;
  /* Вертикальный воздух, чтобы приподнятый при ховере тег не срезался верхней
     кромкой контейнера (overflow:hidden клиппит по padding-box). */
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.stack-track {
  display: flex;
  width: max-content;
  gap: 11px;
  animation: marquee 48s linear infinite;
}
.stack-marquee:hover .stack-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5.5px)); } }
.tool-tag {
  flex: none;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2); white-space: nowrap;
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, background 0.3s;
}
.tool-tag:hover { transform: translateY(-4px) scale(1.04); border-color: rgba(139,92,246,0.6); color: #fff; background: var(--grad-soft); box-shadow: 0 10px 26px -12px rgba(124,128,247,0.7); }

/* ---------- Formats ---------- */
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.format-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014)), rgba(16,21,34,0.74);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 0 1px rgba(255,255,255,0.028), var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
/* Спотлайт за курсором (JS добавляет .format-card в обработчик) */
.format-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,-10%), rgba(124,128,247,0.18), transparent 62%);
  opacity: 0; transition: opacity 0.4s;
}
.format-card:hover::before { opacity: 1; }
.format-card > * { position: relative; z-index: 1; }
.format-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.04), 0 6px 16px -8px rgba(0,0,0,0.6), 0 30px 56px -22px rgba(0,0,0,0.8), 0 0 34px -10px rgba(99,102,241,0.45); }
.format-card--featured {
  background: linear-gradient(170deg, rgba(59,130,246,0.18), rgba(139,92,246,0.10)), rgba(16,21,34,0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 1px rgba(124,128,247,0.18), var(--glow-blue);
  animation: featuredPulse 5.5s var(--ease) infinite;
}
.format-card--featured:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 0 0 1px rgba(124,128,247,0.28), 0 6px 16px -8px rgba(0,0,0,0.6), 0 30px 56px -22px rgba(0,0,0,0.8), 0 0 60px -10px rgba(59,130,246,0.6); }
/* Спокойное «дыхание» свечения вместо крутящейся рамки */
@keyframes featuredPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 1px rgba(124,128,247,0.18), 0 0 42px -14px rgba(59,130,246,0.45); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 1px rgba(124,128,247,0.32), 0 0 64px -10px rgba(124,128,247,0.6); }
}
/* Лента «популярно» сверху featured-карточки */
.format-card--featured .format-card__tag {
  position: relative;
  padding: 5px 12px; border-radius: 100px;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(124,128,247,0.3);
}
.format-card__tag {
  display: inline-block;
  font-family: var(--ff-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.format-card__title { font-family: var(--ff-display); font-size: 17.5px; font-weight: 600; margin-bottom: 9px; }
.format-card__desc { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.format-card__price {
  font-family: var(--ff-display);
  font-size: 21px; font-weight: 700; letter-spacing: -0.01em;
  margin: 16px 0 4px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.format-card .btn { margin-top: 20px; }
/* В featured есть доп. строка-сноска перед кнопкой — даём ей воздух и не даём
   кнопке прилипнуть. У карточек без сноски кнопка прижимается к низу через auto. */
.format-card .check-list { margin-bottom: auto; }
.format-card__note { margin-top: 16px; font-size: 13px; }
.format-card__note .link-accent { color: var(--cyan); font-weight: 600; }

/* ---------- Portfolio (mini) ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px;
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)), rgba(17,24,39,0.72);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 0 1px rgba(255,255,255,0.028), var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.portfolio-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(59,130,246,0.08), transparent 55%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.04), 0 6px 16px -8px rgba(0,0,0,0.6), 0 30px 56px -22px rgba(0,0,0,0.8), 0 0 34px -10px rgba(99,102,241,0.45); }
.portfolio-card:hover::after { opacity: 1; }
.portfolio-card__num {
  font-family: var(--ff-display); font-size: 13px; font-weight: 700;
  color: var(--text-3); letter-spacing: 0.1em; margin-bottom: 12px;
}
.portfolio-card h3 { font-family: var(--ff-display); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; position: relative; z-index: 1; line-height: 1.25; }
.portfolio-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; position: relative; z-index: 1; margin-bottom: 16px; flex-grow: 1; }
.portfolio-card__tag {
  position: relative; z-index: 1;
  align-self: flex-start;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--cyan);
  padding: 5px 11px;
  border: 1px solid rgba(34,211,238,0.28);
  border-radius: 100px;
  background: rgba(34,211,238,0.06);
}

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
/* Базовый «дата-канал» — приглушённая линия конвейера */
.timeline::before {
  content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.28), transparent);
}
/* Бегущий по конвейеру светящийся импульс (пакет данных 1→5) */
.timeline::after {
  content: ''; position: absolute; top: 23px; left: 10%; right: 10%; height: 4px;
  border-radius: 4px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,0) 38%, rgba(34,211,238,0.95) 50%, rgba(124,128,247,0.95) 50%, rgba(124,128,247,0) 62%, transparent 100%);
  background-size: 220% 100%;
  filter: drop-shadow(0 0 8px rgba(34,211,238,0.8));
  animation: pipelinePulse 3.4s linear infinite;
}
@keyframes pipelinePulse {
  0%   { background-position: 130% 0; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { background-position: -30% 0; opacity: 0; }
}
.timeline__item { text-align: center; position: relative; }
.timeline__num {
  width: 48px; height: 48px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  font-family: var(--ff-display); font-size: 19px; font-weight: 700;
  color: var(--text); position: relative; z-index: 1;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, color 0.4s;
  animation: nodeGlow 3.4s var(--ease) infinite;
}
/* Узлы «загораются» поочерёдно в такт пробегающему импульсу */
.timeline__item:nth-child(1) .timeline__num { animation-delay: 0.15s; }
.timeline__item:nth-child(2) .timeline__num { animation-delay: 0.75s; }
.timeline__item:nth-child(3) .timeline__num { animation-delay: 1.35s; }
.timeline__item:nth-child(4) .timeline__num { animation-delay: 1.95s; }
.timeline__item:nth-child(5) .timeline__num { animation-delay: 2.55s; }
@keyframes nodeGlow {
  0%, 100%       { border-color: var(--border-strong); box-shadow: none; color: var(--text); }
  6%, 16%        { border-color: rgba(34,211,238,0.85); box-shadow: var(--glow-blue); color: var(--cyan); transform: scale(1.1); }
  26%            { border-color: var(--border-strong); box-shadow: none; color: var(--text); transform: scale(1); }
}
.timeline__item:hover .timeline__num { transform: scale(1.08); border-color: rgba(99,102,241,0.7); box-shadow: var(--glow-blue); color: var(--cyan); }
.timeline__title { font-family: var(--ff-display); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.timeline__text { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.about__content { text-align: left; }
.about__content .section__title { text-align: left; }
.about__text { color: var(--text-2); font-size: 15px; margin-top: 18px; line-height: 1.65; }
.quote {
  margin: 22px 0 4px;
  padding: 18px 22px;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: var(--grad-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-display);
  font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--text);
  font-style: normal;
}
.quote cite { display: block; margin-top: 12px; font-family: var(--ff); font-size: 13px; font-style: normal; color: var(--cyan); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.fact {
  padding: 9px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--text);
}

/* ---------- FAQ ---------- */
/* FAQ как диалог с AI-ассистентом в окне мессенджера: шапка с аватаром и
   статусом, приветствие, вопрос — реплика пользователя (справа), ответ —
   пузырь ассистента (слева, с аватаром и «напечатанным» курсором). */
.faq {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px 22px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,21,34,0.66), rgba(11,17,32,0.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 0 0 1px rgba(255,255,255,0.035), var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Шапка чата */
.faq__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 2px; border-bottom: 1px solid var(--border); }
.faq__avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  border-radius: 50%; background: var(--grad); box-shadow: var(--glow-blue);
}
.faq__head-name { font-family: var(--ff-display); font-size: 15px; font-weight: 600; color: var(--text); }
.faq__item { display: flex; flex-direction: column; gap: 10px; }

/* Вопрос = реплика пользователя */
.faq__q {
  position: relative;
  align-self: flex-end;
  max-width: 86%;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(124,128,247,0.22);
  border-radius: 16px 16px 4px 16px;
  font-family: var(--ff-display); font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none; user-select: none;
  transition: box-shadow 0.3s, transform 0.2s var(--ease);
}
.faq__q:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(124,128,247,0.45); }
.faq__q::-webkit-details-marker { display: none; }

/* Шеврон-индикатор раскрытия */
.faq__icon { position: relative; width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.faq__icon::before {
  content: ''; position: absolute; top: 1px; left: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateX(-50%) rotate(45deg);
}
.faq__item[open] .faq__icon { transform: rotate(180deg); }

/* Ответ = реплика ассистента */
.faq__a {
  position: relative;
  align-self: flex-start;
  max-width: 88%;
  margin-left: 46px;
  padding: 14px 18px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014)), rgba(16,21,34,0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 0 1px rgba(255,255,255,0.04), var(--shadow-sm);
  border-radius: 16px 16px 16px 4px;
  color: var(--text-2); font-size: 14.5px; line-height: 1.6;
  animation: bubbleIn 0.45s var(--ease) both;
}
/* Аватар ассистента */
.faq__a::before {
  content: '🤖';
  position: absolute; left: -46px; bottom: 0;
  width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 17px; border-radius: 50%;
  background: var(--grad); box-shadow: var(--glow-blue);
}
/* Мигающий курсор — «ассистент только что напечатал ответ» */
.faq__a::after {
  content: '▍'; color: var(--cyan); margin-left: 1px; font-weight: 700;
  animation: caretBlink 1.05s steps(1) infinite;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta__inner { position: relative; z-index: 2; max-width: 700px; }
.cta__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 760px; height: 420px; border-radius: 50%;
  background:
    radial-gradient(42% 60% at 32% 42%, rgba(59,130,246,0.34), transparent 70%),
    radial-gradient(44% 62% at 68% 58%, rgba(139,92,246,0.32), transparent 72%);
  filter: blur(100px); z-index: 0; will-change: transform;
  animation: ctaAurora 17s ease-in-out infinite;
}
@keyframes ctaAurora {
  0%,100% { transform: translate(-50%,-50%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%,-50%) scale(1.12) rotate(10deg); }
}
.cta__title { font-family: var(--ff-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.18; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta__desc { color: var(--text-2); font-size: clamp(14.5px, 1.5vw, 17px); margin-bottom: 28px; line-height: 1.6; }
.cta__tg { margin-top: 22px; color: var(--text-2); font-size: 14.5px; }
.cta__tg a { color: var(--cyan); font-weight: 600; }
.cta__tg a:hover { text-decoration: underline; }

/* ---------- Form ---------- */
.form {
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form__label { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.form__optional { color: var(--text-2); font-weight: 400; }
.form__input {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form__input::placeholder { color: #4B5563; }
.form__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form__select option { background: var(--bg); color: var(--text); }
.form__textarea { resize: vertical; min-height: 108px; }
.form__input.is-error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }
.form__success {
  margin-top: 20px; padding: 16px 18px;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.35);
  border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; text-align: center;
}
.form__error {
  margin-top: 16px; padding: 14px 18px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; text-align: center; font-size: 14.5px;
}
.form__error a { color: var(--cyan); font-weight: 600; }
.form__error a:hover { text-decoration: underline; }
/* Honeypot — невидимо для людей, ловушка для ботов */
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--graphite); padding: 48px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer__tagline { color: var(--text-2); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer__nav a { color: var(--text-2); font-size: 14px; transition: color 0.25s; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; color: var(--text-3); font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.footer__cta { color: var(--cyan); font-weight: 600; }
.footer__cta:hover { text-decoration: underline; }
.logo--footer .logo__mark { width: 32px; height: 32px; }

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; gap: 18px; }
.review-card__text { color: var(--text); font-size: 15px; line-height: 1.6; }
.review-card__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-card__avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  font-family: var(--ff-display); font-weight: 700; font-size: 16px;
  color: var(--cyan);
}
.review-card__meta { display: flex; flex-direction: column; }
.review-card__name { font-family: var(--ff-display); font-size: 15px; font-weight: 600; }
.review-card__role { font-size: 13px; color: var(--text-2); }

/* ---------- Result cases ---------- */
.result-case { display: flex; flex-direction: column; }
.result-case__num {
  font-family: var(--ff-display); font-size: 13px; font-weight: 700;
  color: var(--text-3); letter-spacing: 0.1em; margin-bottom: 16px;
}
.result-case__steps { display: flex; flex-direction: column; gap: 12px; }
.result-case__step {
  position: relative; padding-left: 18px;
  color: var(--text-2); font-size: 14px; line-height: 1.5;
}
.result-case__step::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong);
}
.result-case__step--final { color: var(--text); }
.result-case__step--final::before { background: var(--grad); box-shadow: 0 0 10px rgba(34,211,238,0.7); }
.result-case__label {
  display: block;
  font-family: var(--ff-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 3px;
}

/* ---------- Утилитарные классы (вместо inline-стилей — для строгого CSP) ---------- */
.link-accent { color: var(--cyan); font-weight: 600; }
.group-enroll { margin-top: 18px; }
.contact-card { text-align: center; }
.contact-card__note { margin-top: 14px; }

/* Skip-link: невидим, появляется при фокусе с клавиатуры */
.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Страница 404 ---------- */
.nf { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 2; }
.nf__inner { max-width: 560px; padding: 0 24px; }
.nf__code { font-family: var(--ff-display); font-size: clamp(72px, 16vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.nf__title { font-family: var(--ff-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.nf__desc { color: var(--text-2); font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.65; margin: 0 auto 30px; max-width: 44ch; }
.nf__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nf__glow { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%); filter: blur(100px); z-index: 0; pointer-events: none; }

/* ---------- Reveal animation ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
/* Прячем только если JS активен — иначе (no-JS) контент виден сразу */
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* === Карточки в сетках: единая скорость hover/появления + каскад === */
.cards-grid > .reveal,
.audience-grid > .reveal,
.formats-grid > .reveal,
.portfolio-grid > .reveal,
.results-grid > .reveal,
.tasks-grid > .reveal {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), opacity 0.55s var(--ease);
}
/* Staggered появление: диагональная задержка, сброс каждые 3 элемента */
.cards-grid > .reveal:nth-child(3n+2),
.audience-grid > .reveal:nth-child(3n+2),
.formats-grid > .reveal:nth-child(3n+2),
.portfolio-grid > .reveal:nth-child(3n+2),
.results-grid > .reveal:nth-child(3n+2),
.tasks-grid > .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.cards-grid > .reveal:nth-child(3n+3),
.audience-grid > .reveal:nth-child(3n+3),
.formats-grid > .reveal:nth-child(3n+3),
.portfolio-grid > .reveal:nth-child(3n+3),
.results-grid > .reveal:nth-child(3n+3),
.tasks-grid > .reveal:nth-child(3n+3) { transition-delay: 0.16s; }
/* На hover задержку убираем — подъём карточки мгновенный */
.cards-grid > .reveal:hover,
.audience-grid > .reveal:hover,
.formats-grid > .reveal:hover,
.portfolio-grid > .reveal:hover,
.results-grid > .reveal:hover,
.tasks-grid > .reveal:hover { transition-delay: 0s; }

/* ============ Премиум-эффекты ============ */

/* Прогресс-бар чтения */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none;
}
.scroll-progress__bar {
  display: block; height: 100%; width: 0;
  background: var(--grad); border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(59,130,246,0.6);
}

/* Пословное появление H1 (запускается, когда hero становится видимым) */
.hero__title .hl-word { display: inline-block; }
.js .hero__content .hl-word { opacity: 0; transform: translateY(0.5em); }
.hero__content.is-visible .hl-word { animation: wordIn 0.6s var(--ease) both; }
.hero__content.is-visible .hl-word:nth-child(1) { animation-delay: 0.04s; }
.hero__content.is-visible .hl-word:nth-child(2) { animation-delay: 0.10s; }
.hero__content.is-visible .hl-word:nth-child(3) { animation-delay: 0.16s; }
.hero__content.is-visible .hl-word:nth-child(4) { animation-delay: 0.22s; }
.hero__content.is-visible .hl-word:nth-child(5) { animation-delay: 0.28s; }
.hero__content.is-visible .hl-word:nth-child(6) { animation-delay: 0.34s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }

/* Магнитные кнопки и 3D-tilt — JS добавляет transform через inline-свойства;
   плавность при возврате задаём здесь. */
.btn--magnetic { transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.portrait-frame { transition: transform 0.18s var(--ease); transform-style: preserve-3d; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .tasks-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .timeline::before, .timeline::after { display: none; }
  .timeline__num { animation: none; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(7,10,18,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .nav.is-open .nav__link { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav.is-open .nav__link::after { display: none; }
  .burger { display: flex; }

  .hero { padding-top: clamp(28px, 5vw, 48px); }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__trust { align-items: center; justify-content: center; }
  .hero__stack-line { text-align: center; }
  .hero__visual { order: -1; }
  .portrait-frame { width: min(258px, 66%); }

  .trust__inner, .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__media, .trust__media { order: -1; }
  .portrait-frame--sm { width: min(320px, 72%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .cards-grid, .portfolio-grid, .tasks-grid, .audience-grid, .formats-grid, .results-grid, .timeline { grid-template-columns: 1fr; }
  .check-list--two { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__stack-line { margin-top: 16px; padding-top: 14px; }
  .floating-card { font-size: 11px; padding: 6px 10px; }
  .fc--1 { left: 0; } .fc--3 { left: 0; } .fc--2, .fc--4 { right: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .quote { font-size: 15px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hl-word { opacity: 1 !important; transform: none !important; }
  /* Бегущая строка -> статичное облако тегов (без обрезки и дубликатов) */
  .stack-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .stack-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .tool-tag--dup { display: none; }
  /* Эффект не инициализируется при reduced-motion — прячем canvas */
  .hero__fx { display: none; }
}

/* ============ Hero «нейросеть-граф» (constellation, canvas2d) ============ */
/* Холст рисует узлы, прямые грани между близкими и бегущие по рёбрам импульсы.
   JS добавляет .is-ready после первого кадра; при отсутствии canvas/reduced-motion
   холст скрыт и hero падает на штатные glow-круги. */
.hero__fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__fx.is-ready { opacity: 1; }
/* Порядок слоёв hero: поток(0) → glow-круги(1) → контент(2) */
.hero__inner { position: relative; z-index: 2; }
.hero__glow { z-index: 1; }
/* Мягкая тёмная подложка под текстовой колонкой — гарантирует контраст текста
   поверх любого фонового эффекта (isolate держит её в своём стек-контексте). */
.hero__content { position: relative; isolation: isolate; }
.hero__content::before {
  content: ''; position: absolute; inset: -34px -56px -34px -64px; z-index: -1;
  background: radial-gradient(115% 100% at 28% 50%, rgba(7,10,18,0.82), rgba(7,10,18,0.46) 52%, transparent 78%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .hero__content::before { inset: -24px -24px; background: radial-gradient(120% 100% at 50% 45%, rgba(7,10,18,0.8), rgba(7,10,18,0.4) 55%, transparent 80%); }
}
