/* ========== Orcelvia IA — SEO landing ========== */
:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --brand-soft: #eef4ff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.10);
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.brand .brand-ai { color: var(--brand); }
.header-cta {
  padding: 10px 18px; border-radius: 10px; background: var(--brand); color: #fff;
  font-weight: 600; font-size: 14px; transition: background .15s;
}
.header-cta:hover { background: var(--brand-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #dbeafe; color: var(--brand-dark); font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.02em;
}
.hero h1 span { color: var(--brand); }
.hero-lede { font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 0 0 24px; }
.hero-trust { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- Form card ---------- */
.form-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  color: var(--ink);
}
.form-card .iti__country-list { background: #fff; color: var(--ink); }
.form-card .iti__country { color: var(--ink); }
.form-card .iti__selected-dial-code,
.form-card .iti__selected-flag { color: var(--ink); }
.form-card h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.form-card .form-sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; }
.lead-form .form-group { margin-bottom: 14px; }
.lead-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.lead-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.lead-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-error { display: block; color: var(--danger); font-size: 12px; margin-top: 4px; min-height: 14px; }
.input-error { border-color: var(--danger) !important; }
.form-submit {
  width: 100%; padding: 14px 20px; border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
  margin-top: 4px; transition: background .15s;
}
.form-submit:hover { background: var(--brand-dark); }
.form-submit[disabled] { opacity: .6; cursor: default; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; min-height: 14px; }
.form-note.is-error { color: var(--danger); }
.iti { width: 100%; }
.iti__selected-flag { display: flex; gap: 4px; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* ---------- Pain + Solution ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.pain-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  border-left: 4px solid var(--danger);
}
.pain-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.pain-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.solution-lead {
  text-align: center; margin: 40px auto 32px; max-width: 640px;
  font-size: 17px; color: var(--ink-soft);
}
.solution-lead strong { color: var(--brand-dark); }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); text-align: center; transition: transform .18s, box-shadow .18s;
}
.benefit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.benefit-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 28px; height: 28px; }
.benefit-card h3 { margin: 0 0 8px; font-size: 18px; }
.benefit-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { position: relative; padding: 32px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; }
.step-num {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.step-icon {
  width: 56px; height: 56px; margin: 8px auto 16px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 28px; height: 28px; }
.step-card h3 { margin: 0 0 8px; font-size: 18px; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  text-align: center; padding: 32px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--line);
}
.stat-num { font-size: 40px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.stat-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testi-card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.testi-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.testi-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: #fff;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 15px; color: var(--ink); margin: 0; }
.testi-loc { font-size: 13px; color: var(--muted); margin: 0; }
.testi-stars { color: #f59e0b; font-size: 14px; margin-bottom: 8px; letter-spacing: 2px; }
.testi-text { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 20px 24px; background: none; border: 0; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon { color: var(--brand); font-size: 14px; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Final CTA (form again) ---------- */
.final-cta { padding: 80px 0; background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; }
.final-cta .section-head h2 { color: #fff; }
.final-cta .section-head p { color: rgba(255,255,255,.85); }
.final-cta .form-card { max-width: 480px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.65); font-size: 14px; margin: 0 0 8px; line-height: 1.65; }
.footer-col a { display: block; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-brand { font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-brand span { color: var(--brand); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  font-size: 12px; color: rgba(255,255,255,.5); font-style: italic; line-height: 1.6;
}
.footer-disclaimer strong { color: rgba(255,255,255,.75); font-style: normal; }
.footer-copy { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.4); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  section.block { padding: 56px 0; }
  .pain-grid, .benefits-grid, .steps-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-cta { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 34px; }
  .form-card { padding: 22px; }
}

/* ---------- Overrides для формы движка (core/form.css задаёт оранжевый) ---------- */
.form-card .apx-lead .submit {
  background: var(--brand) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}
.form-card .apx-lead .submit:hover {
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42) !important;
  background: var(--brand-dark) !important;
}
.form-card .apx-lead input:focus,
.form-card .apx-lead .iti input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}
