/* =========================================================
   Андрей Комков — продающая страница услуг
   Тема: Apple-минимализм, синий акцент. Стек: HTML/CSS/JS.
   Меняйте тему в блоке :root.
   ========================================================= */

:root {
  --accent:      #0071e3;   /* основной синий */
  --accent-hov:  #0077ed;
  --ink:         #1d1d1f;   /* основной текст */
  --muted:       #6e6e73;   /* серый текст */
  --muted-2:     #86868b;
  --line:        #d2d2d7;
  --line-soft:   #e3e3e8;
  --bg:          #ffffff;
  --bg-alt:      #f5f5f7;   /* серый фон секций */
  --bg-blue:     #f0f6ff;
  --radius:      24px;
  --maxw:        1080px;
  --font:        'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #cfe3ff; color: #003a8c; }

/* ---------- shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.h2--xl { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
.accent { color: var(--accent); }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.lead--center { max-width: 680px; margin: 18px auto 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .h2 { max-width: 820px; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 32px; border-radius: 980px; font-weight: 600; font-size: 17px; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hov); }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--accent); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--white { background: #fff; color: var(--accent); font-weight: 700; }
.btn--white:hover { transform: translateY(-2px); }
.btn--outline { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.22); }

/* ---------- badge / dot ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 980px; background: var(--bg-blue); border: 1px solid #d9e8ff; font-size: 13.5px; font-weight: 600; color: var(--accent); margin-bottom: 30px; }
.dot { position: relative; display: inline-flex; width: 7px; height: 7px; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34c759; animation: pulseY 2s infinite; }
.dot--light::after { background: #bdf5c8; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 64px; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(0,0,0,.07); }
.nav__brand { font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink); opacity: .78; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--accent); }

/* ---------- HERO ---------- */
.hero { padding: 140px 24px 80px; text-align: center; position: relative; overflow: hidden; }
.hero__title { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; max-width: 1000px; margin: 0 auto; text-wrap: balance; }
.hero__keep { white-space: nowrap; }
.hero__lead { font-size: clamp(17px, 2.1vw, 23px); font-weight: 500; color: var(--muted); letter-spacing: -.01em; max-width: 680px; margin: 26px auto 0; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 38px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.hero__trust span { font-size: 14px; font-weight: 500; color: var(--ink); background: var(--bg-alt); padding: 9px 16px; border-radius: 980px; }

/* ---------- PAIN ---------- */
.pain { background: var(--bg-alt); padding: 100px 24px; }
.pain__inner { max-width: var(--maxw); margin: 0 auto; }
.pain .section-head { margin-bottom: 56px; }
.pain .h2 { max-width: 760px; }
.pain__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.paincard { padding: 30px; border-radius: 20px; background: #fff; }
.paincard__icon { font-size: 22px; margin-bottom: 12px; }
.paincard h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.paincard p { color: var(--muted); line-height: 1.55; }

/* ---------- SERVICES ---------- */
.services { padding: 120px 24px; }
.services__inner { max-width: var(--maxw); margin: 0 auto; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { padding: 40px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: #fff; transition: border-color .3s, transform .3s; }
.svc:hover { border-color: var(--accent); transform: translateY(-4px); }
.svc__n { font-size: 15px; font-weight: 700; color: #c7c7cc; margin-bottom: 20px; }
.svc__title { font-size: 25px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.svc__text { font-size: 17px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--bg-blue); padding: 5px 11px; border-radius: 8px; }

/* ---------- SOLUTIONS ---------- */
.solutions { background: var(--bg-alt); padding: 120px 24px; }
.solutions__inner { max-width: var(--maxw); margin: 0 auto; }
.solutions__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.solcard { padding: 36px; border-radius: var(--radius); background: #fff; }
.solcard h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.solcard p { font-size: 17px; color: var(--muted); line-height: 1.55; }

/* ---------- PROCESS ---------- */
.process { padding: 120px 24px; }
.process__inner { max-width: 980px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.step--last { border-bottom: 1px solid var(--line); }
.step__n { font-size: 20px; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.step p { color: var(--muted); line-height: 1.55; }

/* ---------- EXPERT ---------- */
.expert { background: var(--bg-alt); padding: 110px 24px; }
.expert__inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.expert__media { justify-self: center; }
.expert__media img { width: 280px; max-width: 70vw; border-radius: 24px; box-shadow: 0 30px 70px -34px rgba(0,0,0,.4); }
.expert .lead { margin-bottom: 16px; }
.expert .lead:last-of-type { margin-bottom: 28px; }
.expert__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat__num { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.stat__num--accent { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { padding: 120px 24px; }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq .section-head { margin-bottom: 56px; }
.qa { padding: 24px 0; border-top: 1px solid var(--line); }
.qa--last { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.qa p { color: var(--muted); line-height: 1.55; font-size: 17px; }

/* ---------- CTA ---------- */
.cta { background: var(--accent); padding: 120px 24px 110px; text-align: center; color: #fff; }
.cta__inner { max-width: 760px; margin: 0 auto; }
.cta__title { font-size: clamp(34px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin-bottom: 22px; text-wrap: balance; }
.cta__lead { font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 40px; text-wrap: balance; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 34px; }
.cta__status { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: #fff; opacity: .92; }

/* ---------- FOOTER ---------- */
.footer-social-link:hover { color: #1D1D1F; }
.footer-email-link:hover { color: var(--accent); }

/* ---------- reveal-on-scroll ---------- */
/* контент виден по умолчанию; скрываем только при работающем JS (класс .js на <html>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulseY { 0%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} 100%{opacity:1;transform:scale(1)} }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .pain__grid { grid-template-columns: 1fr; }
  .services__grid,
  .solutions__grid { grid-template-columns: 1fr; }
  .expert__inner { grid-template-columns: 1fr; text-align: center; }
  .expert__stats { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .expert__stats { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .dot::after { animation: none; }
}
