:root {
  --bg: #08090c;
  --bg-elev: #0e1015;
  --bg-card: #11141a;
  --bg-card-hover: #161a22;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f3f4f7;
  --text-dim: #a7abb8;
  --text-mute: #6b6f7d;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #a855f7;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,0.14) 0%, rgba(99,102,241,0.14) 50%, rgba(168,85,247,0.14) 100%);
  --shadow-soft: 0 30px 80px -20px rgba(0,0,0,0.6);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: 'JetBrains Mono', monospace; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ambient orbs */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.orb-1 { width: 600px; height: 600px; background: #6366f1; top: -200px; right: -150px; }
.orb-2 { width: 500px; height: 500px; background: #22d3ee; top: 40%; left: -200px; opacity: 0.22; }
.orb-3 { width: 480px; height: 480px; background: #a855f7; bottom: -100px; right: 10%; opacity: 0.18; }

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

main, header { position: relative; z-index: 1; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8,9,12,0.65);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo-mark {
  width: 313px; height: 80px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 0 10px rgba(34,211,238,0.38))
    drop-shadow(0 10px 22px rgba(99,102,241,0.28));
  transition: transform .25s, filter .25s;
}
.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.04);
  filter:
    drop-shadow(0 0 14px rgba(34,211,238,0.55))
    drop-shadow(0 12px 28px rgba(99,102,241,0.36));
}
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .2s, transform .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { opacity: 1; transform: scaleX(1); }
.mobile-menu { display: none; }
.menu-overlay { display: none; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.header-cta:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04); align-items: center; justify-content: center; }

/* HERO */
.hero { padding: 80px 0 120px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  flex-shrink: 0;
}
.hero-eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(74,222,128,0.55);
  animation: dot-pulse 1.7s ease-out infinite;
}
@keyframes dot-pulse {
  0% { transform: scale(.45); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hero h1 {
  font-size: clamp(44px, 6.5vw, 86px);
  margin-bottom: 28px;
}
.hero h1 span { display: block; }
.hero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 40px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  transition: all .25s cubic-bezier(.2,.7,.3,1);
  cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #0a0b10; box-shadow: 0 14px 40px -10px rgba(99,102,241,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -10px rgba(99,102,241,0.7); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

.hero-stats {
  display: flex; gap: 44px; margin-top: 60px;
  padding-top: 36px; border-top: 1px solid var(--border);
}
.stat-num { font-family: 'Manrope'; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.stat-num .gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { font-size: 13px; color: var(--text-mute); margin-top: 2px; }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 560px;
  margin-left: auto;
}
.hv-card {
  position: absolute;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20,23,30,0.95), rgba(14,16,21,0.95));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.hv-window {
  inset: 8% 8% 14% 8%;
  transform: rotate(-2deg);
  animation: floaty 8s ease-in-out infinite;
}
.hv-window-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.hv-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.hv-window-body { padding: 22px; }
.hv-line { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.06); margin-bottom: 10px; }
.hv-line.w70 { width: 70%; }
.hv-line.w40 { width: 40%; background: var(--grad); opacity: 0.7; }
.hv-line.w90 { width: 90%; }
.hv-line.w55 { width: 55%; }
.hv-img {
  height: 110px; border-radius: 12px; margin: 14px 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(34,211,238,0.45), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(168,85,247,0.45), transparent 50%),
    linear-gradient(135deg, #1a1e2a, #0e1015);
  position: relative; overflow: hidden;
}
.hv-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hv-btn {
  display: inline-block;
  padding: 8px 16px; border-radius: 8px;
  background: var(--grad); color: #0a0b10;
  font-weight: 600; font-size: 12px;
  margin-top: 8px;
}

.hv-badge {
  padding: 16px 18px;
  width: 200px;
  border-radius: 16px;
  background: rgba(20,23,30,0.92);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
}
.hv-badge-1 { top: -2%; left: -6%; animation: floaty 9s ease-in-out infinite 1s; }
.hv-badge-2 { bottom: 6%; right: -8%; animation: floaty 7s ease-in-out infinite .5s; }
.hv-badge-ttl { font-size: 11px; color: var(--text-mute); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.hv-badge-val { font-family: 'Manrope'; font-size: 20px; font-weight: 700; }
.hv-spark { display: flex; align-items: end; gap: 3px; height: 24px; margin-top: 8px; }
.hv-spark i { flex: 1; background: var(--grad); border-radius: 2px; }

.hv-orbit {
  position: absolute;
  inset: -12%;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hv-orbit::before, .hv-orbit::after {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(99,102,241,0.7);
}
.hv-orbit::before { top: 6%; left: 50%; }
.hv-orbit::after { bottom: 12%; right: 8%; background: #22d3ee; box-shadow: 0 0 24px rgba(34,211,238,0.7); }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
.hv-badge-1, .hv-badge-2 { animation-name: floaty-flat; }
@keyframes floaty-flat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* SECTION */
section { padding: 110px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.section-eyebrow { font-family: 'JetBrains Mono'; font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--text-mute); }
.section-head h2 { font-size: clamp(34px, 4.5vw, 56px); max-width: 760px; }
.section-head p.sub { color: var(--text-dim); max-width: 440px; font-size: 16px; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 42px rgba(11,62,126,0.06);
  transition: all .35s cubic-bezier(.2,.7,.3,1);
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column;
}
.service::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.service:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--bg-card-hover); }
.service:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--cyan);
  position: relative; z-index: 1;
}
.service:hover .service-icon { color: #fff; background: var(--grad); border-color: transparent; }
.service h3 { font-size: 22px; margin-bottom: 10px; position: relative; z-index: 1; }
.service p { color: var(--text-dim); font-size: 14.5px; position: relative; z-index: 1; }
.service-arrow {
  position: absolute; bottom: 26px; right: 26px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center;
  transition: all .3s;
  z-index: 1;
}
.service:hover .service-arrow { background: var(--grad); transform: rotate(-45deg); }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.why-cell { background: var(--bg-elev); padding: 36px 32px; transition: background .25s; }
.why-cell:hover { background: var(--bg-card-hover); }
.why-num { font-family: 'JetBrains Mono'; font-size: 13px; color: var(--text-mute); margin-bottom: 24px; }
.why-cell h3 { font-size: 22px; margin-bottom: 12px; }
.why-cell p { color: var(--text-dim); font-size: 14.5px; }
.why-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-soft);
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: var(--cyan);
}

/* PORTFOLIO */
.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(11,62,126,0.08);
  transition: all .35s;
  cursor: pointer;
}
.work:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.work-img {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.work-img-inner {
  position: absolute; inset: 0;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.work-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work:hover .work-img-inner { transform: scale(1.05); }
.work-body { padding: 28px 28px 30px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.work-cat { font-family: 'JetBrains Mono'; font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.work h3 { font-size: 24px; margin-bottom: 8px; }
.work-desc { color: var(--text-dim); font-size: 14.5px; max-width: 380px; }
.work-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 500;
  transition: all .25s;
}
.work:hover .work-btn { background: var(--grad); color: #0a0b10; border-color: transparent; }
.work-btn .arr { transition: transform .25s; }
.work:hover .work-btn .arr { transform: translateX(3px); }

/* mock site previews — abstract gradient art per project */
.mock { position: absolute; inset: 0; padding: 14% 10%; display: flex; flex-direction: column; gap: 10px; }
.mock .bar { height: 24px; border-radius: 6px; background: rgba(255,255,255,0.08); width: 40%; }
.mock .block { flex: 1; border-radius: 12px; }
.mock .row { display: flex; gap: 10px; }
.mock .row .block { aspect-ratio: 1; height: auto; }
.mock-1 { background: linear-gradient(135deg, #0a1428, #0e1726); }
.mock-1 .block { background: linear-gradient(135deg, rgba(34,211,238,0.4), rgba(99,102,241,0.4)); }
.mock-2 { background: linear-gradient(135deg, #1a0e28, #16101d); }
.mock-2 .block { background: linear-gradient(135deg, rgba(168,85,247,0.5), rgba(99,102,241,0.4)); }
.mock-3 { background: linear-gradient(135deg, #28160e, #1a1410); }
.mock-3 .block { background: linear-gradient(135deg, rgba(251,146,60,0.4), rgba(168,85,247,0.35)); }
.mock-4 { background: linear-gradient(135deg, #0e2818, #0e1a18); }
.mock-4 .block { background: linear-gradient(135deg, rgba(74,222,128,0.4), rgba(34,211,238,0.4)); }

/* PROCESS */
.process { position: relative; }
.process-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.process-line { position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: var(--border); z-index: 0; }
.process-line-fill { position: absolute; top: 28px; left: 8%; height: 1px; background: var(--grad); z-index: 1; width: 0; transition: width 2s ease; }
.step { position: relative; z-index: 2; padding: 0 8px; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono'; font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  margin: 0 auto 24px;
  transition: all .4s;
}
.step.active .step-dot { background: var(--grad); color: #0a0b10; border-color: transparent; box-shadow: 0 8px 24px rgba(99,102,241,0.4); }
.step h4, .step h3 { font-size: 17px; margin-bottom: 8px; text-align: center; }
.step p { font-size: 13px; color: var(--text-dim); text-align: center; }

/* PRICING */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price {
  position: relative;
  padding: 36px 30px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 42px rgba(11,62,126,0.06);
  transition: all .35s;
  display: flex; flex-direction: column;
}
.price:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.price.featured {
  background: linear-gradient(180deg, rgba(99,102,241,0.12), rgba(34,211,238,0.04));
  border-color: rgba(99,102,241,0.4);
}
.price.featured::before {
  content: 'Популярный';
  position: absolute; top: -1px; right: 24px;
  transform: translateY(-50%);
  padding: 6px 14px;
  background: var(--grad); color: #0a0b10;
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
}
.price-name { font-family: 'Manrope'; font-weight: 600; font-size: 14px; color: var(--text-dim); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.price-from { font-size: 13px; color: var(--text-mute); }
.price-num { font-family: 'Manrope'; font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.price-currency { font-size: 16px; color: var(--text-dim); }
.price-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); }
.price-features svg { flex-shrink: 0; margin-top: 3px; color: var(--cyan); }
.price .btn { width: 100%; justify-content: center; }
.price .btn-quiet { background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); }
.price .btn-quiet:hover { background: rgba(255,255,255,0.1); }

/* CTA */
.final-cta {
  position: relative;
  border-radius: 28px;
  padding: 90px 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(99,102,241,0.12), rgba(168,85,247,0.10));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(34,211,238,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168,85,247,0.25), transparent 40%);
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(36px, 5vw, 60px); position: relative; margin-bottom: 22px; max-width: 820px; margin-left: auto; margin-right: auto; }
.final-cta p { color: var(--text-dim); max-width: 540px; margin: 0 auto 36px; font-size: 17px; position: relative; }
.final-cta .cta-row { justify-content: center; position: relative; }

/* FORM */
.form-wrap {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px;
  align-items: start;
}
.form-info h2 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 24px; }
.form-info p { color: var(--text-dim); margin-bottom: 36px; font-size: 16px; max-width: 440px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--text-dim); font-size: 15px; }
.contact-list a { display: flex; align-items: center; gap: 14px; color: inherit; }
.contact-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); display: grid; place-items: center; color: var(--cyan); flex-shrink: 0; }
.contact-list strong { color: var(--text); font-weight: 500; }

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 22px;
  padding: 36px;
}
.quiz-card {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.quiz-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; align-items: center; }
.quiz-kicker { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.quiz-counter { font-size: 11px; color: var(--text-mute); white-space: nowrap; }
.quiz-progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 14px; }
.quiz-progress-bar { height: 100%; width: 25%; border-radius: inherit; background: var(--grad); transition: width .25s; }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.quiz-step h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: 0; line-height: 1.25; }
.quiz-step p { display: none; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quiz-option {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color .2s, background .2s, transform .2s;
}
.quiz-option:hover { transform: translateY(-1px); border-color: var(--border-strong); background: var(--bg-card-hover); }
.quiz-option.is-selected { border-color: rgba(34,211,238,0.55); background: rgba(34,211,238,0.08); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.quiz-back, .quiz-skip {
  padding: 4px 0;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
}
.quiz-back[disabled] { opacity: 0; pointer-events: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.field label .req { color: #f87171; }
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.6);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}
.input.error, .textarea.error, .select.error { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,0.1); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23a7abb8' stroke-width='1.5' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-elev);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-drop:hover { border-color: rgba(34,211,238,0.5); background: var(--bg-card-hover); }
.file-drop strong { color: var(--text); font-weight: 600; }
.file-drop span { font-size: 13px; }
.file-name { color: var(--cyan); font-size: 13px; margin-top: -2px; min-height: 20px; }
.field-row-single { margin-bottom: 16px; }
.err-msg { color: #f87171; font-size: 12px; margin-top: -2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.form-foot small { color: var(--text-mute); font-size: 12px; max-width: 280px; line-height: 1.5; }
.form-foot .btn { padding: 14px 26px; }

.form-success {
  text-align: center;
  padding: 30px 10px;
}
.form-success .ic-success {
  width: 64px; height: 64px;
  border-radius: 50%; margin: 0 auto 20px;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 14px 40px rgba(99,102,241,0.35);
}
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--text-dim); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 60px 0 40px; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer p { font-size: 13px; color: var(--text-mute); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: var(--text-dim); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }

.whatsapp-float {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 18px 42px rgba(37,211,102,0.36);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(37,211,102,0.55);
  animation: wa-pulse 1.8s ease-out infinite;
}
.whatsapp-float svg { position: relative; z-index: 1; }
@keyframes wa-pulse {
  0% { transform: scale(.82); opacity: .95; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .30s; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .services, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-line, .process-line-fill { display: none; }
  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav, .header-cta { display: none; }
  .header-inner { padding: 14px 0; min-height: 72px; }
  .logo { font-size: 19px; }
  .logo-mark { width: 235px; height: 60px; }
  .burger { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; }
  .burger.is-open { background: rgba(255,255,255,0.12); }
  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .menu-overlay.is-open { opacity: 1; pointer-events: auto; }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 82px;
    right: 14px;
    z-index: 60;
    width: min(360px, calc(100vw - 28px));
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(14,16,21,0.98);
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-menu a {
    padding: 14px 12px;
    border-radius: 10px;
    color: var(--text-dim);
    font-weight: 600;
    border: 1px solid transparent;
  }
  .mobile-menu a:hover, .mobile-menu a.is-active { color: var(--text); background: rgba(255,255,255,0.06); border-color: var(--border); }
  section { padding: 80px 0; }
  .hero { padding: 50px 0 36px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .services, .why-grid, .pricing, .portfolio { grid-template-columns: 1fr; }
  .why-grid { gap: 1px; }
  .work-body { flex-direction: column; align-items: flex-start; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .final-cta { padding: 60px 28px; }
  .form { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .quiz-step h3 { font-size: 16px; }
  .quiz-option { font-size: 13px; padding: 8px 10px; }
  .file-drop { flex-direction: column; align-items: flex-start; gap: 6px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .hero-visual { max-width: 360px; margin-top: 96px; margin-bottom: 0; }
  .hv-badge { width: 150px; padding: 12px; border-radius: 14px; }
  .hv-badge-1 { top: auto; left: 2%; bottom: -22%; }
  .hv-badge-2 { right: 2%; bottom: -42%; }
  .whatsapp-float { right: 16px; width: 54px; height: 54px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Внутренние страницы: блог, услуги, 404 ===== */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--bg-elev); color: var(--text); }
.skip-link:focus { left: 16px; }
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; max-width: 900px; }
.page-hero .lead { color: var(--text-dim); font-size: clamp(16px, 1.3vw, 18px); max-width: 720px; }
.page-section { padding: 40px 0 80px; }
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-mute); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.breadcrumbs a { color: var(--text-dim); transition: color .2s; }
.breadcrumbs a:hover { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--text-dim); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--border); transition: all .2s; }
.chip:hover, .chip.is-active { color: var(--text); background: var(--bg-card-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); transition: transform .35s, border-color .35s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, rgba(152,192,239,.12), rgba(102,58,243,.12)); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2, .post-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.post-card h2 a::after, .post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { color: var(--text-dim); font-size: 14.5px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: var(--text-mute); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.post-meta a { position: relative; z-index: 1; color: var(--text-dim); }
.post-meta a:hover { color: var(--text); }
.post-card .more { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 14px; color: var(--text-dim); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--border); }
.pagination a:hover { color: var(--text); background: var(--bg-card-hover); }
.pagination .is-current { color: #05060f; background: var(--grad); box-shadow: none; font-weight: 600; }
.pagination .is-disabled { opacity: .4; }

.empty-state { padding: 60px 30px; text-align: center; border-radius: 20px; background: var(--bg-card); border: 1px dashed var(--border-strong); color: var(--text-dim); }
.empty-state h2 { font-size: 26px; margin-bottom: 10px; color: var(--text); }

.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; margin-bottom: 20px; }
.article-head .lead { color: var(--text-dim); font-size: 18px; margin-bottom: 20px; }
.article-cover { margin: 36px 0 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/8; background: var(--bg-card); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.toc, .aside-card { padding: 22px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); }
.toc-title, .aside-title { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 14px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.toc a { font-size: 14px; color: var(--text-dim); line-height: 1.4; display: block; }
.toc a:hover { color: var(--text); }
.toc .lvl-3 { padding-left: 14px; font-size: 13.5px; }
.toc-mobile { display: none; margin-bottom: 28px; }
.toc-mobile summary { cursor: pointer; list-style: none; }
.aside-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.aside-card .btn { width: 100%; justify-content: center; padding: 13px 18px; }

.prose { font-size: 17px; line-height: 1.75; color: var(--text-dim); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--text); margin-top: 1.8em; line-height: 1.2; scroll-margin-top: 100px; }
.prose h3 { font-size: 22px; color: var(--text); margin-top: 1.5em; line-height: 1.3; scroll-margin-top: 100px; }
.prose h4 { font-size: 18px; color: var(--text); margin-top: 1.3em; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(186,215,247,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--text-mute); }
.prose img { max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); }
.prose blockquote { padding: 18px 22px; border-radius: 14px; background: var(--bg-card); border-left: 2px solid var(--indigo); color: var(--text); }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(186,214,247,.08); color: var(--text); }
.prose pre { padding: 18px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--border); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { color: var(--text); background: var(--bg-card); }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }

.block-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 26px; }
.related-section { padding: 70px 0 30px; }
.service-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-link { position: relative; padding: 22px 24px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); transition: all .3s; display: flex; flex-direction: column; gap: 8px; }
.service-link:hover { border-color: var(--border-strong); background: var(--bg-card-hover); transform: translateY(-3px); }
.service-link strong { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 600; color: var(--text); }
.service-link span { font-size: 14px; color: var(--text-dim); }
a.service { color: inherit; }

.cta-box { margin-top: 60px; padding: 48px 40px; border-radius: 24px; text-align: center; background: linear-gradient(135deg, rgba(152,192,239,.08), rgba(102,58,243,.08)); border: 1px solid var(--border-strong); box-shadow: var(--shadow-soft); }
.cta-box h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.cta-box p { color: var(--text-dim); max-width: 560px; margin: 0 auto 26px; }
.cta-box .cta-row { justify-content: center; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-card { padding: 26px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); }
.svc-card h3 { font-size: 20px; margin-bottom: 8px; }
.svc-card p { color: var(--text-dim); font-size: 15px; }
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.check-list li { display: flex; gap: 12px; color: var(--text-dim); font-size: 15.5px; }
.check-list svg { flex-shrink: 0; margin-top: 5px; color: var(--cyan); }
.steps-list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-list li { counter-increment: step; padding: 24px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); }
.steps-list li::before { content: counter(step, decimal-leading-zero); display: block; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-mute); margin-bottom: 14px; }
.steps-list h3 { font-size: 18px; margin-bottom: 6px; }
.steps-list p { font-size: 14.5px; color: var(--text-dim); }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq details { border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--text-mute); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-dim); }
.svc-section { padding: 50px 0; }
.svc-section .block-title { margin-bottom: 22px; }

.error-page { padding: 100px 0 60px; text-align: center; }
.error-code { font-family: 'JetBrains Mono', monospace; font-size: clamp(64px, 12vw, 140px); line-height: 1; margin-bottom: 18px; }
.error-page h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.error-page p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-aside { position: static; margin-top: 40px; }
  .article-aside .toc { display: none; }
  .toc-mobile { display: block; }
  .service-links { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .page-hero { padding: 40px 0 24px; }
  .blog-grid, .service-links, .svc-grid, .check-list, .steps-list { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .cta-box { padding: 36px 22px; }
  .article-cover { aspect-ratio: 16/10; border-radius: 16px; }
}
