* { box-sizing: border-box; }
:root {
  --ink: #141b2e;
  --ink-soft: #4b5468;
  --muted: #7b8396;
  --accent: #2e6bf2;
  --accent-2: #19c37d;
  --line: #e7eaf2;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --radius: 16px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

/* --- Header --------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 20px; font-weight: 800; color: var(--ink); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2559d1; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }

/* --- Hero ------------------------------------------------------------------------ */
.hero { padding: 88px 0 60px; background: linear-gradient(180deg, var(--surface-alt), #fff 70%); }
.hero-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.hero-text h1 { font-size: 44px; line-height: 1.12; }
.accent { color: var(--accent); }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-icon { width: 17px; height: 17px; margin-right: 7px; flex: none; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b { font-size: 24px; font-weight: 800; }
.hero-stats span { font-size: 12.5px; color: var(--muted); max-width: 130px; line-height: 1.35; }

.hero-visual { display: flex; flex-direction: column; align-items: center; }
.gauge-svg { width: 100%; max-width: 320px; }
.gauge-num { font-family: 'Manrope', sans-serif; font-size: 34px; font-weight: 800; fill: var(--ink); }
.gauge-label { font-family: 'Manrope', sans-serif; font-size: 13px; fill: var(--muted); font-weight: 600; }
.gauge-caption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; max-width: 260px; }

/* --- Sections --------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; }
.section-sub { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }

/* --- Service cards ------------------------------------------------------------------ */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, transform .15s; }
.svc-card:hover { box-shadow: 0 16px 40px rgba(20,27,46,.08); transform: translateY(-2px); }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eaf0ff; color: var(--accent); }
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: 17px; }
.svc-card p { font-size: 14px; color: var(--ink-soft); }
.svc-price { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-2); }

/* --- Case cards --------------------------------------------------------------------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.case-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: #eaf0ff; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.case-card p { font-size: 15px; color: var(--ink-soft); }
.case-metric { margin-top: 16px; display: flex; gap: 10px; align-items: baseline; }
.case-metric b { font-size: 26px; font-weight: 800; color: var(--ink); }
.case-metric span { font-size: 13px; color: var(--muted); }

/* --- Pricing (нарочно НЕ похожи на карточки услуг — список с акцентной полосой слева,
   а не "плитка с иконкой", чтобы раздел не читался как дубль "Что мы делаем") ------------- */
.price-list { display: flex; flex-direction: column; gap: 14px; }
.price-row { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px 24px; }
.price-row.is-popular { border-left-color: var(--accent-2); background: linear-gradient(90deg, #f3fbf7, #fff 18%); }
.price-row-main { flex: 1 1 auto; }
.price-row-top { display: flex; align-items: center; gap: 10px; }
.price-row-top h3 { font-size: 16.5px; }
.price-badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent-2); padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.price-note { margin-top: 5px; font-size: 13.5px; color: var(--muted); max-width: 520px; }
.price-from { flex: 0 0 auto; font-size: 22px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* --- CTA band --------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-row h2 { font-size: 28px; color: #fff; }
.cta-row p { margin-top: 10px; color: #aab2c8; font-size: 15px; max-width: 420px; }
.cta-row .btn-primary { background: var(--accent); }
.cta-row .btn-primary:hover { background: #4a80f5; }

/* --- Как мы работаем ------------------------------------------------------------------ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { position: relative; padding-top: 6px; }
.process-num { font-size: 36px; font-weight: 800; color: var(--line); line-height: 1; }
.process-step h3 { font-size: 16px; margin-top: 10px; }
.process-step p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

.site-footer { padding: 28px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* --- Модалка записи ТЗ голосом ------------------------------------------------------- */
.voice-modal { position: fixed; inset: 0; z-index: 100; background: rgba(20,27,46,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.voice-modal[hidden] { display: none; }
.voice-modal-card { position: relative; background: #fff; border-radius: 20px; padding: 40px 36px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.voice-modal-card h3 { font-size: 22px; }
.voice-modal-card p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.voice-modal-card .btn { margin-top: 22px; }
.voice-modal-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.voice-modal-close:hover { color: var(--ink); }

.voice-pulse { width: 72px; height: 72px; margin: 4px auto 0; border-radius: 50%; background: radial-gradient(circle, rgba(46,107,242,.25), rgba(46,107,242,0) 70%); position: relative; }
.voice-pulse::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: var(--accent); animation: voicePulse 1.4s ease-in-out infinite; }
@keyframes voicePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .6; } }
.voice-timer { margin-top: 16px; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.voice-hint { color: var(--muted) !important; font-size: 13.5px !important; margin-top: 4px !important; }

.voice-spinner { width: 40px; height: 40px; margin: 6px auto 0; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: voiceSpin .8s linear infinite; }
@keyframes voiceSpin { to { transform: rotate(360deg); } }

.voice-result-text { margin-top: 16px; text-align: left; background: var(--surface-alt); border-radius: 12px; padding: 16px; font-size: 13.5px; line-height: 1.6; color: var(--ink); max-height: 300px; overflow-y: auto; white-space: pre-wrap; }
.voice-result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

@media (max-width: 920px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-visual { max-width: 240px; margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .price-grid, .process-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .hero-text h1 { font-size: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; row-gap: 20px; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
