/* ========== Orcelvia IA (v2 — orcelvia-ia.com) ========== */
:root {
  --brand: #7c3aed;
  --brand-dark: #5b21b6;
  --brand-soft: #f5f1ff;
  --brand-glow: rgba(124, 58, 237, 0.28);
  --ink: #0b0b12;
  --ink-soft: #4b4b5c;
  --muted: #8a8aa0;
  --bg: #fafafa;
  --bg-alt: #ffffff;
  --line: #ece9f2;
  --card: #ffffff;
  --danger: #e11d48;
  --success: #059669;
  --accent-2: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 28px rgba(11, 11, 18, 0.06);
  --shadow-lg: 0 24px 60px rgba(124, 58, 237, 0.16);
  --container: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.brand .brand-ai {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header-cta {
  padding: 11px 22px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px; transition: background .15s;
}
.header-cta:hover { background: var(--brand); text-decoration: none; }

/* ---------- Hero — full-width, форма ниже ---------- */
.hero {
  padding: 96px 0 32px;
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.10) 0%, transparent 55%),
    var(--bg);
  text-align: center;
}
.eyebrow {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06; margin: 0 auto 24px; letter-spacing: -0.03em; max-width: 900px;
  font-weight: 800;
}
.hero h1 .hi {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 32px; }
.hero-trust { display: flex; gap: 28px; justify-content: center; margin-bottom: 12px; 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 — теперь в отдельной секции ниже hero */
.form-section {
  padding: 24px 0 96px;
  background: var(--bg);
}
.form-card {
  max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  color: var(--ink);
}
.form-card h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; text-align: center; }
.form-card .form-sub { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; text-align: center; }
.lead-form .form-group { margin-bottom: 16px; }
.lead-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.03em; }
.lead-form input {
  width: 100%; padding: 14px 16px; border: 1.5px 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 4px var(--brand-glow); }
.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: 16px 20px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
  margin-top: 6px; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 12px 28px var(--brand-glow);
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 36px var(--brand-glow); }
.form-submit[disabled] { opacity: .6; cursor: default; transform: none; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; min-height: 14px; }
.form-note.is-error { color: var(--danger); }
.iti { width: 100%; }

.form-card .apx-lead .submit {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px var(--brand-glow) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.form-card .apx-lead .submit:hover {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%) !important;
  box-shadow: 0 16px 36px var(--brand-glow) !important;
}
.form-card .apx-lead input:focus,
.form-card .apx-lead .iti input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px var(--brand-glow) !important;
}
.form-card .apx-lead .iti__country-list,
.form-card .apx-lead .iti__country { color: var(--ink) !important; }
.form-card .apx-lead .iti__selected-dial-code,
.form-card .apx-lead .iti__selected-flag { color: var(--ink) !important; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0 0 16px;
  letter-spacing: -0.02em; font-weight: 800;
}
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* ---------- Pain (в 1 колонку с большими цифрами) + Solution ---------- */
.pain-list { max-width: 720px; margin: 0 auto 60px; display: grid; gap: 16px; }
.pain-row {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.pain-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(225, 29, 72, 0.10); color: var(--danger);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.pain-row h3 { margin: 0 0 6px; font-size: 18px; }
.pain-row p { margin: 0; color: var(--ink-soft); font-size: 15px; }

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

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow); text-align: left; transition: transform .18s, box-shadow .18s;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.benefit-icon {
  width: 52px; height: 52px; margin: 0 0 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%);
  border: 1px solid var(--line); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { margin: 0 0 10px; font-size: 19px; }
.benefit-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Steps — вертикально с большими цифрами слева ---------- */
.steps-list { max-width: 780px; margin: 0 auto; display: grid; gap: 20px; }
.step-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 28px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  position: relative;
}
.step-big-num {
  font-size: 68px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-row h3 { margin: 6px 0 8px; font-size: 20px; }
.step-row p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Stats — 4 карточки, contrast ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  text-align: center; padding: 36px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--line);
}
.stat-num {
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px;
}
.stat-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.stat-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Testimonials — 3 колонки, с большим quote ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: #fff; border-radius: var(--radius); padding: 32px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative;
}
.testi-card::before {
  content: '"'; position: absolute; top: 8px; right: 22px;
  font-family: Georgia, serif; font-size: 68px; line-height: 1;
  color: var(--brand-soft); font-weight: 700;
}
.testi-stars { color: var(--accent-2); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text { margin: 0 0 20px; color: var(--ink); font-size: 15px; font-style: italic; }
.testi-head { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 14px; color: var(--ink); margin: 0; }
.testi-loc { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s;
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-question {
  width: 100%; padding: 22px 26px; background: none; border: 0; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit;
}
.faq-question:hover { background: var(--brand-soft); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: transform .2s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(180deg); background: var(--brand); color: #fff; }
.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 26px 24px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Final CTA — тёмный + orange gradient ---------- */
.final-cta {
  padding: 96px 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.25) 0%, transparent 55%),
    #0b0b12;
  color: #fff;
}
.final-cta .section-head h2 { color: #fff; }
.final-cta .section-head p { color: rgba(255, 255, 255, 0.75); }
.final-cta .form-card { max-width: 520px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b12; color: rgba(255, 255, 255, 0.68); padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 700; }
.footer-col p, .footer-col a { color: rgba(255, 255, 255, 0.60); font-size: 14px; margin: 0 0 10px; line-height: 1.65; }
.footer-col a { display: block; transition: color .15s; }
.footer-col a:hover { color: var(--accent-2); text-decoration: none; }
.footer-brand { font-weight: 800; font-size: 24px; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.footer-brand span {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px;
  font-size: 12px; color: rgba(255, 255, 255, 0.45); font-style: italic; line-height: 1.65;
}
.footer-disclaimer strong { color: rgba(255, 255, 255, 0.72); font-style: normal; }
.footer-copy { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, 0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 64px 0 20px; }
  section.block { padding: 60px 0; }
  .benefits-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .step-row { grid-template-columns: 68px 1fr; gap: 20px; padding: 24px; }
  .step-big-num { font-size: 54px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .header-cta { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .pain-row { grid-template-columns: 48px 1fr; gap: 14px; padding: 20px; }
}
