/* ============ Fx corp ============ */
:root {
  --bg: #07080c;
  --bg-2: #0b0d14;
  --ink: #f2f4f8;
  --ink-dim: #a6adbb;
  --accent: #5d7cff;
  --accent-soft: #8fa6ff;
  --accent-ice: #c7d3ff;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(93, 124, 255, 0.07), transparent 60%),
    radial-gradient(1000px 700px at -10% 40%, rgba(143, 166, 255, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: rgba(93, 124, 255, 0.35); }

/* ---- 3D canvas ---- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Cursor glow ---- */
.cursor-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 166, 255, 0.05) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  left: 50%;
  top: 30%;
  transition: opacity 0.4s;
}

main, .footer { position: relative; z-index: 2; }

/* ---- Gradient text ---- */
.grad {
  background: linear-gradient(105deg, #eef1ff 0%, var(--accent-ice) 35%, var(--accent-soft) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Glass ---- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-display);
}
.nav__logo-mark {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav__logo-text { color: var(--ink-dim); font-weight: 300; font-size: 1.05rem; }

/* Единая pill-капсула с пунктами меню, центрированная по горизонтали */
.nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 17px 34px;
  border-radius: 999px;
  background: rgba(12, 14, 22, 0.55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}
.nav__links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nav__cta:hover {
  background: rgba(93, 124, 255, 0.12);
  border-color: rgba(143, 166, 255, 0.45);
  box-shadow: 0 0 28px rgba(93, 124, 255, 0.18);
}

/* Активный пункт капсулы (подсветка текущей секции) */
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}

/* Правая группа: акцентный CTA + бургер */
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: #0a0b10;
  background: var(--ink);
  box-shadow: 0 8px 26px rgba(170, 190, 255, 0.16);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.nav__cta-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 36px rgba(143, 166, 255, 0.28);
}
.nav__cta-btn .btn__arrow { transition: transform 0.25s; }
.nav__cta-btn:hover .btn__arrow { transform: translateX(4px); }

.nav__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 80px) 60px;
  position: relative;
}

.hero__content { max-width: 820px; position: relative; z-index: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(720px 460px at 24% 46%, rgba(7, 8, 12, 0.6), transparent 72%);
}

.hero__quicklink { margin-top: 20px; font-size: 0.9rem; color: var(--ink-dim); }
.hero__quicklink a { color: var(--accent-ice); text-decoration: none; font-weight: 500; }
.hero__quicklink a:hover { text-decoration: underline; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ice);
  border: 1px solid rgba(143, 166, 255, 0.2);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 28px;
  background: rgba(93, 124, 255, 0.05);
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 166, 255, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(143, 166, 255, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.hero__title span { display: block; }

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 42px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn--primary {
  background: var(--ink);
  color: #0a0b10;
  box-shadow: 0 8px 30px rgba(170, 190, 255, 0.18);
}
.btn--primary:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(143, 166, 255, 0.3);
}
.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { border-color: var(--accent-soft); color: var(--accent-ice); transform: translateY(-3px); }
.btn__arrow { transition: transform 0.25s; }
.btn--primary:hover .btn__arrow { transform: translateX(5px); }

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent-soft), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ STATS ============ */
.stats { padding: 40px clamp(20px, 6vw, 80px) 80px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.stat { padding: 34px 28px; text-align: left; }
.stat__num, .stat__plus {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  background: linear-gradient(110deg, #f0f3ff, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { color: var(--ink-dim); font-size: 0.92rem; margin-top: 8px; }

/* Появление и «пульс» цифр во время отсчёта */
.stat__num {
  display: inline-block;
  transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes numPop {
    0%   { opacity: 0; transform: translateY(14px) scale(0.86); filter: blur(6px); }
    55%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  }
  @keyframes numGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(143, 166, 255, 0); }
    50%      { text-shadow: 0 0 22px rgba(143, 166, 255, 0.55); }
  }
  .stat__num.is-counting {
    animation: numPop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both,
               numGlow 1.6s ease-in-out;
  }
}

/* ============ SECTIONS ============ */
.section { padding: 110px clamp(20px, 6vw, 80px); max-width: 1280px; margin: 0 auto; }

.section__head { max-width: 720px; margin-bottom: 64px; }
.section__label {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.section__desc { color: var(--ink-dim); font-size: 1.05rem; max-width: 560px; }

/* ---- Tech cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  padding: 38px 30px;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 166, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: rgba(143, 166, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.card__icon {
  font-size: 1.3rem;
  color: var(--accent-ice);
  margin-bottom: 22px;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(143, 166, 255, 0.06);
  border: 1px solid rgba(143, 166, 255, 0.16);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 14px;
}
.card p { color: var(--ink-dim); font-size: 0.94rem; }
.card__num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.16);
}

/* ---- Products ---- */
.products { display: flex; flex-direction: column; gap: 26px; }
.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  min-height: 300px;
}
.product:first-child, .product:nth-child(5) { min-height: 540px; }
.product:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
.product:nth-child(even) .product__body { order: 2; }
.product:hover { border-color: rgba(143, 166, 255, 0.3); transform: translateY(-4px); }

.product__body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.product__tag {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.product h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.product p { color: var(--ink-dim); font-size: 0.96rem; max-width: 440px; }
.product__link {
  color: var(--accent-ice);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  margin-top: 6px;
  transition: letter-spacing 0.3s, color 0.3s;
}
.product__link:hover { letter-spacing: 0.04em; color: #ffffff; }

.product__visual { position: relative; min-height: 240px; }
.product__visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 24px;
  filter: blur(4px);
  animation: floatY 8s ease-in-out infinite;
}
.product__visual--a::after {
  background:
    radial-gradient(circle at 30% 30%, rgba(143, 166, 255, 0.32), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(93, 124, 255, 0.18), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}
.product__visual--b::after {
  background:
    radial-gradient(circle at 70% 35%, rgba(199, 211, 255, 0.22), transparent 55%),
    radial-gradient(circle at 25% 80%, rgba(93, 124, 255, 0.2), transparent 60%),
    linear-gradient(210deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  animation-delay: -2.7s;
}
.product__visual--c::after {
  background:
    radial-gradient(circle at 50% 70%, rgba(143, 166, 255, 0.28), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(199, 211, 255, 0.14), transparent 55%),
    linear-gradient(30deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  animation-delay: -5s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0.5deg); }
  50% { transform: translateY(-14px) rotate(-0.8deg); }
}

/* ---- Steps ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 26px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.step__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; }
.step p { color: var(--ink-dim); font-size: 0.92rem; }

/* ============ CTA ============ */
.cta { padding: 80px clamp(20px, 6vw, 80px) 140px; }
.cta__box {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 72%, rgba(143, 166, 255, 0.14) 86%, transparent 100%);
  animation: spin 11s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta__box > * { position: relative; }

.cta__box h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.cta__box > p { color: var(--ink-dim); margin-bottom: 36px; }

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 22px;
  text-align: left;
}
.cta__row { display: flex; gap: 12px; }
.cta__form input,
.cta__form textarea {
  width: 100%;
  min-width: 0;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cta__row input { flex: 1; }
.cta__form textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.cta__form input:focus,
.cta__form textarea:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(143, 166, 255, 0.1);
}
.cta__form input::placeholder,
.cta__form textarea::placeholder { color: var(--ink-dim); }
.cta__form input.invalid,
.cta__form textarea.invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
}
.cta__form .btn { justify-content: center; }
.cta__form .btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.cta__status { font-size: 0.88rem; min-height: 1.2em; text-align: center; }
.cta__status.ok { color: var(--accent-ice); }
.cta__status.err { color: #ff8f8f; }
.cta__note { font-size: 0.88rem; color: var(--ink-dim); }
.cta__note a { color: var(--accent-ice); text-decoration: none; }
.cta__note a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 8, 12, 0.6);
  backdrop-filter: blur(12px);
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px clamp(20px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy { color: var(--ink-dim); font-size: 0.85rem; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--ink-dim); text-decoration: none; font-size: 0.88rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--ink); }

/* ============ ДОБАВЛЕННЫЕ СЕКЦИИ (Darkblade & Funny) ============ */

/* ---- Общие теги-пилюли (стек, услуги, скиллы) ---- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-pill {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--ink-dim);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 13px;
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s;
}
.tag-pill:hover { border-color: rgba(143, 166, 255, 0.35); color: var(--accent-ice); }

/* ---- Сетка карточек на 2 колонки (проблемы) ---- */
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---- Услуги: доп. элементы карточки ---- */
.card__outcome {
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 500;
  margin: -4px 0 12px;
}
.card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  border-style: dashed;
  border-color: rgba(143, 166, 255, 0.28);
  background: rgba(93, 124, 255, 0.04);
}
.card--cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.card--cta p { color: var(--ink-dim); font-size: 0.94rem; }

/* ---- Акцентная выноска (problem callout) ---- */
.callout {
  margin-top: 32px;
  padding: clamp(28px, 4vw, 42px);
  text-align: center;
}
.callout p {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink);
}

/* ---- Кейсы: метрика + 4-й визуал ---- */
.product__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  align-self: flex-start;
  border: 1px solid rgba(143, 166, 255, 0.24);
  background: rgba(93, 124, 255, 0.06);
  border-radius: 14px;
  padding: 10px 16px;
  margin-top: 4px;
}
.product__metric-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent-ice);
}
.product__metric-label { color: var(--ink-dim); font-size: 0.82rem; }
.product .tags { margin-top: 6px; }
.product__visual--d::after {
  background:
    radial-gradient(circle at 40% 40%, rgba(93, 124, 255, 0.26), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(199, 211, 255, 0.16), transparent 60%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  animation-delay: -3.6s;
}
/* Скриншот реального проекта */
.product__visual .product__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Ссылки на живой проект / репозиторий */
.product__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.product__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: #0a0b10;
  background: var(--accent-ice);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.product__btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 10px 26px rgba(143, 166, 255, 0.25); }
.product__btn--ghost {
  color: var(--accent-ice);
  background: transparent;
  border: 1px solid rgba(143, 166, 255, 0.3);
}
.product__btn--ghost:hover { color: #fff; background: rgba(93, 124, 255, 0.12); border-color: rgba(143, 166, 255, 0.5); box-shadow: none; }

/* Скриншот с contain (для стека LeadHOOK) */
.product__shot--contain {
  object-fit: contain;
  padding: 12px;
}

/* Стек изображений (2 фото вертикально) */
.product__visual--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 480px;
  z-index: 1;
}
.product__visual--stack .product__shot {
  position: relative;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ============ 3D iPhone mockup for cases ============ */
.pf-phone-scene {
  perspective: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pf-phone {
  position: relative;
  width: 260px;
  height: 520px;
  border-radius: 40px;
  background: #1a1a1a;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotateY(-5deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pf-phone:hover {
  transform: rotateY(0deg) rotateX(0deg);
}
.pf-phone-btn-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: #333;
  border-radius: 0 0 4px 4px;
}
.pf-phone-btn-vol {
  position: absolute;
  top: 80px;
  left: -3px;
  width: 3px;
  height: 36px;
  background: #333;
  border-radius: 4px 0 0 4px;
}
.pf-phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  background: #000;
  border-radius: 11px;
  z-index: 2;
}
.pf-phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
}
.pf-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Шаги на 6 (3 колонки) ---- */
.steps--6 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- Тарифы ---- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.price-card--popular {
  border-color: rgba(143, 166, 255, 0.42);
  box-shadow: 0 0 50px rgba(93, 124, 255, 0.14);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.price-card__desc { color: var(--ink-dim); font-size: 0.9rem; margin-top: 10px; }
.price-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin: 22px 0 4px;
}
.price-card__price span { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--ink-dim); }
.price-card__list { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-dim); font-size: 0.92rem; }
.check { color: var(--accent-ice); flex-shrink: 0; }
.price-card__btn { justify-content: center; width: 100%; padding: 14px 28px; }
.pricing__note { text-align: center; margin-top: 28px; color: var(--ink-dim); font-size: 0.92rem; }
.pricing__note a { color: var(--accent-ice); text-decoration: none; }
.pricing__note a:hover { text-decoration: underline; }

/* ---- Команда: карточки авторов ---- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.author {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.author:hover { border-color: rgba(143, 166, 255, 0.28); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.author__head { display: flex; align-items: center; gap: 18px; }
.author__avatar {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 26px rgba(93, 124, 255, 0.25);
}
.author__avatar--db { background: linear-gradient(140deg, #8fa6ff, #5d7cff); }
.author__avatar--fn { background: linear-gradient(140deg, #c7d3ff, #39497f); }
.author__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.author__role { color: var(--accent-soft); font-size: 0.88rem; margin-top: 4px; }
.author__bio { color: var(--ink-dim); font-size: 0.96rem; }
.author__skills { margin-top: 0; }
.author__contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.author__contact {
  color: var(--accent-ice);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color 0.25s, background 0.25s;
}
.author__contact:hover { border-color: rgba(143, 166, 255, 0.45); background: rgba(93, 124, 255, 0.1); }

/* ---- Блок общего стека ---- */
.stack-block { margin-top: 32px; text-align: center; }
.stack-block__title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.stack-block__tags { justify-content: center; margin-top: 0; }
.stack-block__quote {
  max-width: 620px;
  margin: 30px auto 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-style: italic;
}

/* ---- Отзывы ---- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.review { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; transition: border-color 0.35s, transform 0.35s; }
.review:hover { border-color: rgba(143, 166, 255, 0.28); transform: translateY(-4px); }
.review__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 0.4;
  color: rgba(143, 166, 255, 0.35);
  height: 22px;
}
.review__text { color: var(--ink); font-size: 0.98rem; flex: 1; }
.review__foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; }
.review__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(140deg, #8fa6ff, #5d7cff);
}
.review__avatar--v { background: linear-gradient(140deg, #b9a6ff, #6b5dff); }
.review__avatar--g { background: linear-gradient(140deg, #9fe3c7, #39497f); }
.review__meta { display: flex; flex-direction: column; gap: 2px; }
.review__stars { color: var(--accent-soft); font-size: 0.82rem; letter-spacing: 0.08em; }
.review__name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-top: 2px; }
.review__role { color: var(--ink-dim); font-size: 0.82rem; }

/* ---- FAQ (нативный details) ---- */
.faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item { overflow: hidden; transition: border-color 0.3s; }
.faq__item[open] { border-color: rgba(143, 166, 255, 0.28); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent-soft);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 26px 24px; color: var(--ink-dim); font-size: 0.95rem; }

/* ---- Контакты в CTA ---- */
.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  margin: 30px 0 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contacts__group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contacts__person {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.contacts__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contacts__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 7px 15px;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.contacts__links a:hover { border-color: rgba(143, 166, 255, 0.45); background: rgba(93, 124, 255, 0.1); color: var(--accent-ice); }

/* ---- Индикатор прогресса скролла ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent-ice));
  box-shadow: 0 0 12px rgba(143, 166, 255, 0.5);
  transition: width 0.1s linear;
}

/* ---- Кнопка «наверх» ---- */
.to-top {
  position: fixed;
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 45;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(12, 14, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, border-color 0.25s, background 0.25s;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { border-color: rgba(143, 166, 255, 0.45); background: rgba(93, 124, 255, 0.14); }

/* ---- Липкий мобильный CTA ---- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px;
  bottom: 16px;
  z-index: 44;
  padding: 15px 24px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: #0a0b10;
  background: var(--ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.35s, transform 0.35s;
}
.mobile-cta.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Единые focus-состояния для клавиатуры ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.faq__item summary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ TILT (3D-наклон карточек, обновляется из JS) ============ */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* ============ REVEAL-АНИМАЦИИ ============ */
/* Нативные scroll-driven animations (Chrome/Edge/Safari 26+).
   Декоративные — для остальных браузеров есть JS-fallback через IntersectionObserver. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from { opacity: 0; transform: translateY(50px); filter: blur(6px); }
      to   { opacity: 1; transform: translateY(0); filter: blur(0); }
    }
    @keyframes reveal-left {
      from { opacity: 0; transform: translateX(-40px); filter: blur(4px); }
      to   { opacity: 1; transform: translateX(0); filter: blur(0); }
    }
    @keyframes reveal-right {
      from { opacity: 0; transform: translateX(40px); filter: blur(4px); }
      to   { opacity: 1; transform: translateX(0); filter: blur(0); }
    }
    @keyframes reveal-scale {
      from { opacity: 0; transform: scale(0.92); filter: blur(6px); }
      to   { opacity: 1; transform: scale(1); filter: blur(0); }
    }
    .reveal {
      animation: reveal-up 1ms linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    .reveal.d1 { animation-range: entry 5% entry 45%; }
    .reveal.d2 { animation-range: entry 10% entry 50%; }
    .reveal.d3 { animation-range: entry 15% entry 55%; }
    .reveal.d4 { animation-range: entry 20% entry 60%; }
    .reveal.d5 { animation-range: entry 25% entry 65%; }
    .reveal.d6 { animation-range: entry 30% entry 70%; }

    /* Варианты анимаций */
    .reveal--left  { animation-name: reveal-left; }
    .reveal--right { animation-name: reveal-right; }
    .reveal--scale { animation-name: reveal-scale; }

    /* Карточки: каскадная задержка внутри контейнера */
    .cards .card:nth-child(1) { animation-range: entry 6% entry 40%; }
    .cards .card:nth-child(2) { animation-range: entry 10% entry 44%; }
    .cards .card:nth-child(3) { animation-range: entry 14% entry 48%; }
    .cards .card:nth-child(4) { animation-range: entry 18% entry 52%; }
    .cards .card:nth-child(5) { animation-range: entry 22% entry 56%; }
    .cards .card:nth-child(6) { animation-range: entry 26% entry 60%; }
  }

  /* JS-fallback: класс .js-reveal вешается, только если нет нативной поддержки */
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(46px);
    filter: blur(6px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
      filter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  .js-reveal .reveal.d2.is-visible { transition-delay: 0.08s; }
  .js-reveal .reveal.d3.is-visible { transition-delay: 0.16s; }
  .js-reveal .reveal.d4.is-visible { transition-delay: 0.24s; }
  .js-reveal .reveal.d5.is-visible { transition-delay: 0.32s; }
  .js-reveal .reveal.d6.is-visible { transition-delay: 0.40s; }

  /* Варианты для JS-fallback */
  .js-reveal .reveal--left {
    transform: translateX(-40px);
    filter: blur(4px);
  }
  .js-reveal .reveal--left.is-visible { transform: translateX(0); filter: blur(0); }

  .js-reveal .reveal--right {
    transform: translateX(40px);
    filter: blur(4px);
  }
  .js-reveal .reveal--right.is-visible { transform: translateX(0); filter: blur(0); }

  .js-reveal .reveal--scale {
    transform: scale(0.92);
    filter: blur(6px);
  }
  .js-reveal .reveal--scale.is-visible { transform: scale(1); filter: blur(0); }

  /* Карточки: каскад в JS-fallback */
  .js-reveal .cards .card:nth-child(1).is-visible { transition-delay: 0s; }
  .js-reveal .cards .card:nth-child(2).is-visible { transition-delay: 0.06s; }
  .js-reveal .cards .card:nth-child(3).is-visible { transition-delay: 0.12s; }
  .js-reveal .cards .card:nth-child(4).is-visible { transition-delay: 0.18s; }
  .js-reveal .cards .card:nth-child(5).is-visible { transition-delay: 0.24s; }
  .js-reveal .cards .card:nth-child(6).is-visible { transition-delay: 0.3s; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot, .hero__scroll-line, .product__visual::after, .cta__box::before { animation: none; }
  .tilt { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    left: auto;
    top: 72px; right: clamp(16px, 5vw, 32px);
    gap: 18px;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(7, 8, 12, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 30px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    transform: translateX(140%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__burger { display: flex; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .product, .product:nth-child(even) { grid-template-columns: 1fr; }
  .product:nth-child(even) .product__body { order: 0; }
  .product__visual { min-height: 200px; }
  .product:first-child, .product:nth-child(5) { min-height: 380px; }
  .pf-phone { width: 200px; height: 400px; border-radius: 32px; }
  .pf-phone-island { width: 60px; height: 18px; }
  .pf-phone-screen { inset: 6px; border-radius: 26px; }
  .product__visual--stack { min-height: 340px; }
  .cta__form { flex-direction: column; }
  .cta__row { flex-direction: column; }
  .cursor-glow { display: none; }

  /* Навигация: прячем настольный CTA, показываем липкий мобильный */
  .nav__cta-btn { display: none; }
  .mobile-cta { display: block; }
  .to-top { bottom: 84px; }
  .footer { padding-bottom: 96px; }

  /* Новые секции: одноколоночная раскладка и мягкие отступы */
  .cards--2,
  .steps--6,
  .pricing,
  .team,
  .reviews { grid-template-columns: 1fr; }
  .author { padding: 30px 24px; }
  .price-card { padding: 34px 26px; }
  .contacts { gap: 20px; }
  .faq__item summary { padding: 20px 20px; font-size: 0.95rem; }
  .faq__answer { padding: 0 20px 22px; }
}

/* Средние экраны: капсула + логотип + CTA могут тесниться — прячем CTA, поджимаем капсулу */
@media (max-width: 1080px) and (min-width: 861px) {
  .nav__cta-btn { display: none; }
  .nav__links { gap: 26px; padding: 15px 28px; }
}
