: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: #5ba4ec;
  --indigo: #3e84ca;
  --violet: #2269a7;
  --grad: linear-gradient(135deg, #5ba4ec 0%, #3e84ca 50%, #2269a7 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,164,236,0.14) 0%, rgba(62,132,202,0.14) 50%, rgba(34,105,167,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; overflow-x: clip; }
/* clip, а не hidden: декоративные пятна не расширяют страницу на узких телефонах, а липкая шапка продолжает работать */
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: #3e84ca; top: -200px; right: -150px; }
.orb-2 { width: 500px; height: 500px; background: #5ba4ec; top: 40%; left: -200px; opacity: 0.22; }
.orb-3 { width: 480px; height: 480px; background: #2269a7; 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-block: 18px;
}
.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(91,164,236,0.38))
    drop-shadow(0 10px 22px rgba(62,132,202,0.28));
  transition: transform .25s, filter .25s;
}
.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.04);
  filter:
    drop-shadow(0 0 14px rgba(91,164,236,0.55))
    drop-shadow(0 12px 28px rgba(62,132,202,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(62,132,202,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -10px rgba(62,132,202,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(91,164,236,0.45), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(34,105,167,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(62,132,202,0.7);
}
.hv-orbit::before { top: 6%; left: 50%; }
.hv-orbit::after { bottom: 12%; right: 8%; background: #5ba4ec; box-shadow: 0 0 24px rgba(91,164,236,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 */

/* 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(91,164,236,0.4), rgba(62,132,202,0.4)); }
.mock-2 { background: linear-gradient(135deg, #1a0e28, #16101d); }
.mock-2 .block { background: linear-gradient(135deg, rgba(34,105,167,0.5), rgba(62,132,202,0.4)); }
.mock-3 { background: linear-gradient(135deg, #28160e, #1a1410); }
.mock-3 .block { background: linear-gradient(135deg, rgba(251,146,60,0.4), rgba(34,105,167,0.35)); }
.mock-4 { background: linear-gradient(135deg, #0e2818, #0e1a18); }
.mock-4 .block { background: linear-gradient(135deg, rgba(74,222,128,0.4), rgba(91,164,236,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(62,132,202,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(62,132,202,0.12), rgba(91,164,236,0.04));
  border-color: rgba(62,132,202,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(91,164,236,0.10), rgba(62,132,202,0.12), rgba(34,105,167,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(91,164,236,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34,105,167,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 */

.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(62,132,202,0.6);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 4px rgba(62,132,202,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; }

.err-msg { color: #f87171; font-size: 12px; margin-top: -2px; }

/* 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 { 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; }

}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav, .header-cta { display: none; }
  .header-inner { padding-block: 14px; 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, .pricing, .portfolio { grid-template-columns: 1fr; }

  .work-body { flex-direction: column; align-items: flex-start; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .final-cta { padding: 60px 28px; }

  .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(42,111,179,.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(42,111,179,.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; }
}

/* ===== Горизонтальная форма заявки ===== */
.contact-section { padding: 70px 0; }

@media (max-width: 720px) {
  .contact-section { padding: 56px 0; }

}

/* ===== Страницы проектов ===== */
.work { position: relative; }
.work-link::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.case-cover { aspect-ratio: 16 / 10; }
.article-aside .aside-card + .aside-card { margin-top: 0; }
.portfolio-more { text-align: center; margin-top: 36px; }

.pagination .is-gap { background: transparent; box-shadow: none; min-width: 24px; padding: 0 4px; color: var(--text-mute); }
@media (max-width: 720px) { .pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; } }

/* ============ ГЛАВНАЯ: новая структура (портфолио и стоимость сразу после первого экрана) ============ */
section { padding: 80px 0; }
.section-head { margin-bottom: 44px; }
.btn.btn-wa { background: #25d366; color: #052e16; border-color: transparent; box-shadow: 0 14px 34px -12px rgba(37,211,102,.6); }
.btn.btn-wa:hover { background: #2ee271; transform: translateY(-2px); }
.btn .wa-icon { flex-shrink: 0; }

/* Портфолио сразу после первого экрана - без лишнего воздуха между ними */
#works { padding-top: 40px; }

/* Первый экран: направления */
.hero-directions { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 30px; padding: 0; }
.hero-directions li { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--text-dim); border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--text) 4%, transparent); }

/* Портфолио: фильтр и карточки */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.filter-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter-chip:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.filter-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.work[hidden] { display: none !important; }
.work { cursor: default; display: flex; flex-direction: column; }
.work-link::after { content: none; }
.work-body { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; flex: 1; }
.work h3 { font-size: 23px; margin-bottom: 14px; }
.work h3 a:hover { color: var(--cyan); }
.work-facts { margin: 0 0 14px; display: grid; gap: 10px; }
.work-facts div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.work-facts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); padding-top: 3px; }
.work-facts dd { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }
.work-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-features li { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; color: var(--text-dim); background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--border); }
.work-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--text); margin-bottom: 14px; }
.work-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.work-more { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600; color: var(--text); transition: background .2s; }
.work-more:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.work-more:hover .arr { transform: translateX(3px); }
.work-more .arr { transition: transform .2s; }
.work-similar { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(37,211,102,.45); background: rgba(37,211,102,.08); font-size: 14px; font-weight: 600; color: #25d366; transition: background .2s, border-color .2s; }
.work-similar:hover { background: rgba(37,211,102,.16); border-color: rgba(37,211,102,.7); }

.portfolio-more { display: flex; justify-content: center; margin-top: 32px; }

/* Стоимость */
.price-audience { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; margin: -6px 0 18px; min-height: 3em; }
.price-duration { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text); margin: 4px 0 16px; }
.price-duration svg { color: var(--cyan); }
.pricing-note { margin-top: 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 28px 32px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); }

/* Призыв после портфолио и стоимости */

/* Услуги через задачу клиента */
.service-label { position: relative; z-index: 1; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 8px; }

/* О разработчике: фото, имя и короткий рассказ перед фактами */

.about-photo { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong); aspect-ratio: 4 / 5; background: var(--bg-card); box-shadow: var(--shadow-soft); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-name { font-family: 'Manrope', sans-serif; font-size: clamp(28px, 3vw, 38px); font-weight: 600; color: var(--text); line-height: 1.1; }
.about-role { margin: 8px 0 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); }
.about-text p { color: var(--text-dim); font-size: 17px; line-height: 1.7; max-width: 640px; margin-bottom: 24px; }
/* О разработчике */

/* Иконки фактов: фирменный градиент, появляются «пружинкой» и оживают при наведении */

/* Этапы: номер в заметном кружке */

/* Этапы: что делаю я и что нужно от клиента */

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); }
.review blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review figcaption > span { display: flex; flex-direction: column; gap: 2px; }
.review-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; flex-shrink: 0; }
.review-initials { display: grid; place-items: center; background: var(--grad); color: #0a0b10; font-weight: 700; font-size: 14px; }
.review-meta { color: var(--text-mute); font-size: 13px; }
.review-project { font-size: 13px; color: var(--cyan); }

/* Вопросы и ответы */
.home-faq { max-width: 900px; margin: 0 auto; }

/* Быстрая заявка */
/* Общий сброс margin: 0 убирает у <dialog> центрирование браузера - возвращаем его. */
.quick-lead { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 30px 28px 26px; border-radius: 22px; border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.quick-lead::backdrop { background: rgba(3,6,14,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.quick-lead h2 { font-size: 26px; margin-bottom: 8px; padding-right: 36px; }
.quick-lead-lead { color: var(--text-dim); font-size: 14.5px; margin-bottom: 20px; }

.quick-lead .field label .opt { color: var(--text-mute); font-weight: 400; }
.quick-lead .textarea { min-height: 84px; }
.quick-lead .btn { width: 100%; justify-content: center; }
.quick-lead-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); cursor: pointer; }
.quick-lead-close:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

/* Мобильное меню: WhatsApp под рукой */
.mobile-menu-wa { display: none; }

/* Кнопка «наверх» - над кнопкой WhatsApp, появляется после первого экрана */
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 69; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); box-shadow: 0 10px 28px rgba(0,0,0,.25); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--bg-card-hover); }
.to-top:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Плавающая кнопка WhatsApp - в углу, не перекрывает контент */
.whatsapp-float { top: auto; bottom: 24px; right: 24px; transform: none; width: 56px; height: 56px; }

@media (max-width: 1080px) {
  .pricing-note { grid-template-columns: 1fr; gap: 20px; }

  .reviews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; gap: 16px; }
  .hero-directions { margin: -4px 0 24px; }
  .hero-directions li { font-size: 12.5px; padding: 6px 11px; }
  .portfolio-filters { margin: -6px -20px 20px; padding: 0 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; font-size: 13.5px; padding: 8px 14px; }
  .work h3 { font-size: 21px; margin-bottom: 10px; }
  .work-facts { gap: 8px; margin-bottom: 12px; }
  .work-facts div { grid-template-columns: 1fr; gap: 2px; }
  .work-facts dd { font-size: 14px; }
  /* Карточки на телефоне компактные: функции и технологии - на странице проекта */
.work-features { display: none; }
  .work-more, .work-similar { padding: 9px 14px; font-size: 13.5px; }
  .work-actions { gap: 12px 16px; }
  .price-audience { min-height: 0; }
  .pricing-note { padding: 22px 20px; }

  .reviews { grid-template-columns: 1fr; }

  .about-photo { width: 100%; max-width: 280px; }
  .about-text p { font-size: 15.5px; margin-left: auto; margin-right: auto; }
  .about-text .cta-row { justify-content: center; }
  .mobile-menu .mobile-menu-wa { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; padding: 15px 16px; border-radius: 999px; border: 0; background: #25d366; color: #052e16 !important; font-weight: 700; box-shadow: 0 12px 28px -12px rgba(37,211,102,.7); }
  .mobile-menu .mobile-menu-wa:hover { background: #2ee271; border-color: transparent; }
  .whatsapp-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .to-top { right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
  .whatsapp-float::before { inset: -5px; }
}

/* Узкие телефоны (до 400 px): логотип меньше, чтобы шапка не была шире экрана */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .logo-mark { width: 196px; height: 54px; }
  .header-actions { gap: 8px; }
  .portfolio-filters { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
}

/* ============ ГЛАВНАЯ, этап 2: меньше читать, проще понять, быстрее обратиться ============ */

/* Первый экран: заголовок длиннее - делаем его компактнее, чтобы не занимал весь экран */
.hero .hero-text h1 { font-size: clamp(40px, 4.3vw, 60px); line-height: 1.06; }
.hero .lead { max-width: 560px; }

/* Портфолио: «Задача» и «Решение» - два отдельных смысловых элемента */
.work-facts { display: grid; gap: 12px; margin: 0 0 16px; }
.work-facts .work-fact { display: block; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--text) 3.5%, transparent); border: 1px solid var(--border); }
.work-fact dt { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; padding: 0; }
.work-fact dt svg { flex-shrink: 0; color: var(--cyan); }
.work-fact-done dt svg { color: #34d399; }
.work-fact dd { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.work-features { gap: 6px; margin-bottom: 18px; }
.work-features li { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; }

/* Стоимость: одинаковая структура карточек, цена и кнопки на одной линии */
.price { display: flex; flex-direction: column; }
.price-audience { margin: -6px 0 18px; min-height: 4.5em; }
.price-amount { min-height: 48px; align-items: baseline; }
.price-amount-text .price-num { font-size: 24px; line-height: 1.2; }
.price-features { flex: 1; }
.pricing-note { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 20px 26px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); }
.pricing-note p { margin: 0; max-width: 640px; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.pricing-note .btn { flex-shrink: 0; }

/* О разработчике + призыв обсудить задачу: одна компактная композиция */
#about { padding-top: 40px; }
.about-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: center; max-width: 980px; margin: 0 auto; padding: 34px; border-radius: 24px; border: 1px solid var(--border-strong); background: linear-gradient(135deg, rgba(91,164,236,.07), rgba(34,105,167,.08)); }
.about-photo { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); aspect-ratio: 4 / 5; background: var(--bg-card); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text .section-eyebrow { justify-content: flex-start; width: auto; margin: 0 0 12px; }
.about-text .section-eyebrow::after { display: none; }
.about-name { font-family: 'Manrope', sans-serif; font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.1; color: var(--text); margin: 0; }
.about-role { margin: 6px 0 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); }
.about-text p { color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 620px; margin: 0 0 16px; }
.about-points { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.about-points li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.about-points svg { flex-shrink: 0; color: #34d399; }
.about-text p.about-invite { color: var(--text); font-size: 15px; margin-bottom: 20px; }
.about-text .cta-row { margin: 0; }

/* Этапы: четыре шага в одну линию */
.home-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.home-steps li { position: relative; padding: 22px 22px 24px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5ba4ec 0%, #3e84ca 45%, #2269a7 100%); box-shadow: 0 10px 22px -10px rgba(62,132,202,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--text-mute); }
.home-steps h3 { font-size: 18px; margin-bottom: 6px; }
.home-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-dim); }

/* Контакты: два сценария - связаться самому или оставить телефон */
.contact-section { padding: 72px 0; }
.contact-box { max-width: 760px; margin: 0 auto; padding: 40px 44px 34px; border-radius: 24px; border: 1px solid var(--border); background: var(--bg-card); text-align: center; }
.contact-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }
.contact-head p { color: var(--text-dim); font-size: 16px; margin: 0 0 24px; }
.contact-actions { display: flex; justify-content: center; gap: 10px; }
.contact-btn { flex: 0 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--text); font-size: 15px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.contact-btn:hover { background: color-mix(in srgb, var(--text) 9%, transparent); transform: translateY(-1px); }
.contact-btn-wa { background: #25d366; border-color: transparent; color: #052e16; box-shadow: 0 12px 28px -14px rgba(37,211,102,.7); }
.contact-btn-wa:hover { background: #2ee271; }
.contact-btn:focus-visible, .copy-btn:focus-visible, .lead-submit:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.contact-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 20px; font-size: 15px; color: var(--text); }
.contact-line a { color: var(--text-dim); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.contact-line a:hover { color: var(--text); }
.contact-phone { position: relative; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; user-select: all; }
.contact-sep { color: var(--text-mute); }
.copy-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--text-mute); cursor: pointer; user-select: none; transition: color .2s, background .2s; }
.copy-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.copy-btn.is-done { color: #34d399; }
.copy-done { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: #34d399; pointer-events: none; user-select: none; }
.contact-hours { margin-top: 4px; font-size: 13px; color: var(--text-mute); }
.contact-divider { height: 1px; margin: 28px 0 24px; background: var(--border); }
.contact-form-title { font-size: 19px; margin-bottom: 18px; }

/* Короткая форма (внизу и в модальном окне) */
.lead-form { display: grid; gap: 14px; text-align: left; }
.lead-form[hidden], .lead-success[hidden] { display: none; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form .field label .opt { color: var(--text-mute); font-weight: 400; }
.lead-form .textarea { min-height: 0; height: 92px; resize: vertical; }
.lead-form .err-msg { margin-top: 0; }
.lead-error { margin: 0; color: #f87171; font-size: 14px; }
.lead-submit { width: 100%; justify-content: center; margin-top: 2px; }
.lead-submit[disabled] { opacity: .7; cursor: progress; }
.lead-note { margin: 0; text-align: center; font-size: 14px; color: var(--text-dim); }
.lead-privacy { margin: 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--text-mute); }
.lead-privacy a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.lead-success { text-align: center; padding: 10px 0 4px; }
.lead-success h3 { font-size: 22px; margin-bottom: 6px; }
.lead-success p { color: var(--text-dim); margin: 0; }
.lead-check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #0a0b10; }
.quick-lead .lead-row { grid-template-columns: 1fr; }
.quick-lead .lead-note { display: none; }

/* Кнопка WhatsApp прячется у блока контактов, чтобы не закрывать форму */
.whatsapp-float, .to-top { transition: opacity .25s, transform .25s, background .2s; }
.contact-in-view .whatsapp-float { opacity: 0; transform: scale(.8); pointer-events: none; }

@media (max-width: 1080px) {
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-card { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 26px; }
}
@media (max-width: 720px) {
  .hero .hero-text h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .work-features { display: flex; }
  .work-facts .work-fact { padding: 10px 12px; }
  .work-fact dd { font-size: 14px; }
  .price-audience, .price-amount { min-height: 0; }
  .pricing-note { padding: 20px; }
  .pricing-note .btn { width: 100%; justify-content: center; }
  #about { padding-top: 24px; }
  .about-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; padding: 26px 20px; }
  .about-photo { width: 160px; border-radius: 50%; aspect-ratio: 1; }
  .about-photo img { object-position: 50% 18%; }
  .about-text .section-eyebrow { justify-content: center; }
  .about-text .section-eyebrow::before { display: none; }
  .about-text p { font-size: 15.5px; margin-left: auto; margin-right: auto; }
  .about-points { flex-direction: column; align-items: center; gap: 8px; }
  .about-text .cta-row { justify-content: center; }
  .about-text .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .home-steps { gap: 10px; }
  .home-steps li { padding: 16px; }
  .step-head { margin-bottom: 12px; }
  .step-icon { width: 38px; height: 38px; border-radius: 11px; }
  .home-steps h3 { font-size: 16px; }
  .home-steps p { font-size: 13.5px; }
  .contact-section { padding: 56px 0; }
  .contact-box { padding: 28px 18px 24px; border-radius: 20px; }
  .contact-head p { font-size: 15px; margin-bottom: 20px; }
  .contact-actions { gap: 8px; }
  .contact-btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 6px; gap: 6px; font-size: 14px; }
  .lead-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .home-steps { grid-template-columns: 1fr; }
  .contact-btn { font-size: 13px; }
  .contact-btn svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Тарифы: строки карточек (название, описание, цена, срок, функции, кнопка) выровнены между собой */
@media (min-width: 721px) {
  @supports (grid-template-rows: subgrid) {
    .pricing { grid-auto-rows: auto; }
    .pricing .price { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .pricing .price-audience, .pricing .price-amount { min-height: 0; }
    .pricing .price-amount { align-self: end; }
  }
}
.price-amount-text .price-num { font-size: 22px; line-height: 1.25; }
.about-text .section-eyebrow::before { width: 28px; }

/* Первый экран на планшете и телефоне - в одну колонку (тема frost перебивала это правило) */
@media (max-width: 1080px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 720px) {
  .hero .hero-visual.particle-visual { max-width: 210px; margin: 4px auto -24px; }
  .about-points { display: inline-flex; align-items: flex-start; text-align: left; }
  .contact-btn svg, .contact-btn .wa-icon { flex-shrink: 0; }
  /* «Наверх» не перекрывает кнопку отправки формы */
  .contact-in-view .to-top { opacity: 0; pointer-events: none; }
}
@media (max-width: 400px) {
  .contact-line { flex-direction: column; gap: 2px; }
  .contact-sep { display: none; }
  .contact-btn { padding: 10px 4px; gap: 5px; }
}

/* Надписи с линиями над заголовками блоков убраны по просьбе владельца */
.section-eyebrow, .hero-eyebrow { display: none !important; }
