/* Оформление лендинга ЭЛИДОМ. Один файл: страница одна, порядок разделов совпадает с
   порядком блоков в index.html.

   Стиль перенесён с сайта vizitka (соседний проект) — та же композиция и типографика:
   крупные заголовки (шрифт Onest — ровный геометрический гротеск), кнопки-таблетки, карточки с большим
   скруглением, надзаголовки-метки. Отличие — СВЕТЛАЯ тема и фирменная гамма ЭЛИДОМ:
   синий акцент и оранжевый из логотипа. Значения собраны здесь, в :root. */

/* --- Переменные ------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-tint: #f4f7fc;          /* фон чередующихся секций — холодный светлый */
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --border: #e6ecf4;
  --border-strong: #d6e0ec;
  --ink: #16202c;             /* почти-чёрный, холодный */
  --ink-soft: #33414f;
  --muted: #5e6b7c;
  --accent: #1f6feb;
  --accent-hover: #1858c4;
  --accent-soft: #e9f1fe;
  --amber: #ef7f1a;           /* оранжевый из логотипа ELIDOM.RU */
  --amber-soft: #fdefdf;
  --ok: #1f9d55;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 36px -16px rgba(23, 51, 107, .18);
  --shadow-lg: 0 30px 70px -24px rgba(23, 51, 107, .32);
  --header-h: 72px;
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }              /* плавную прокрутку делает jQuery, с поправкой на шапку */

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Типографика ------------------------------------------------------------------ */
h1, h2, h3 {
  font-family: 'Onest', 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4.2vw, 48px); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.28; letter-spacing: -0.01em; }
h1, h2 { font-weight: 800; }   /* Onest 800 — плотный «геройский» вес заголовков */
p { margin: 0 0 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 800px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft);
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 60ch; margin: 0; }
.accent { color: var(--accent); }

/* --- Кнопки ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 111, 235, .6); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 11px 18px; font-size: 15px; }

/* --- Шапка ------------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(23, 51, 107, .4); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: block; height: 34px; width: auto; }
.logo-text { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .02em; color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--accent); background: var(--accent-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 25px; }
.burger.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- Первый экран ----------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 8vw, 96px); position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { max-width: 620px; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; }
.hero-note::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* Макет телефона — чистой вёрсткой, без картинки: скрин ЛК устаревает быстрее сайта. */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 100%; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #22344e, #0f1b2d);
  box-shadow: var(--shadow-lg); position: relative;
}
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 120px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.phone-screen { background: var(--bg-tint); border-radius: 30px; padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 14px; min-height: 500px; }
.card-preview { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.card-avatar { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, var(--accent), #5b9bff); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.card-body { min-width: 0; }
.card-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.card-tagline { font-size: 13px; color: var(--muted); }
.income { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.income .income-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.income .income-sum { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.income .income-sum small { color: var(--ok); font-size: 13px; font-family: 'Manrope'; font-weight: 600; margin-left: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-pill); padding: 6px 12px; }
.chip.amber { color: var(--amber); background: var(--amber-soft); }
.skeleton-row { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--border) 30%, #eef3fa 60%); }
.skeleton-row.short { width: 62%; }
.qr-box { margin-top: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
.qr-grid { width: 52px; height: 52px; flex: none; border-radius: 8px; background-color: #fff; background-image: repeating-linear-gradient(0deg, var(--ink) 0 4px, transparent 4px 8px), repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); background-size: 8px 8px; opacity: .82; }
.qr-box span { font-size: 13px; color: var(--muted); font-weight: 500; }

/* --- Секции ------------------------------------------------------------------------ */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-tint); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head .lead, .section-head .section-sub { margin-left: auto; margin-right: auto; }

/* --- Сетка карточек ---------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 25px; margin-bottom: 18px; }
.card-icon.amber { background: var(--amber-soft); color: var(--amber); }
.card-link { display: flex; flex-direction: column; }
.card-more { margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 15px; }
.card-link:hover .card-more { text-decoration: underline; }
.card-plain .card-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }

/* --- Как это работает (шаги) ------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.step-num { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); color: #fff; font-family: 'Onest', sans-serif; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* --- Полоса-обещания --------------------------------------------------------------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { text-align: left; }
.promise .p-ic { font-size: 26px; margin-bottom: 10px; }
.promise h3 { font-size: 17px; margin-bottom: 6px; }
.promise p { color: var(--muted); font-size: 15px; margin: 0; }

/* --- Вопросы ----------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink); padding: 20px 52px 20px 22px; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 22px 20px; color: var(--muted); }
.faq-a p { margin: 0; }

/* --- Призыв ------------------------------------------------------------------------ */
.cta { padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner {
  background: linear-gradient(150deg, #1f6feb, #1858c4 60%, #123e93);
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% -10%, rgba(239, 127, 26, .35), transparent 60%); }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .88); max-width: 56ch; margin: 0 auto 8px; }
.cta .hero-actions { justify-content: center; margin-top: 28px; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.cta .btn-primary { background: #fff; color: var(--accent); box-shadow: none; }
.cta .btn-primary:hover { background: #eef4ff; }

/* --- Подвал ------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-tint); padding: 52px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-note { color: var(--muted); font-size: 15px; max-width: 40ch; margin-top: 14px; }
.footer-col h4 { font-family: 'Manrope'; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: var(--ink-soft); font-size: 15.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }

/* --- Пятно на фоне (светлое, низкая непрозрачность) -------------------------------- */
.bg-glow {
  position: fixed; top: 0; left: 0; width: 620px; height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(31, 111, 235, .16), rgba(31, 111, 235, 0) 62%);
  filter: blur(20px); will-change: transform;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* --- Появление блоков -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* --- Открытие страницы кругом ------------------------------------------------------ */
.page-intro { animation: intro-circle .7s ease both; }
@keyframes intro-circle {
  from { clip-path: circle(0% at 50% 42%); }
  to { clip-path: circle(150% at 50% 42%); }
}

/* --- Адаптив ----------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone { width: 264px; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 14px; border-radius: 10px; }
  .burger { display: block; }
  .header-actions .btn-sm { display: none; }
}
@media (max-width: 560px) {
  .grid, .steps, .promises, .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-intro { animation: none; }
  * { scroll-behavior: auto; }
}
