/* СмартМетод — общие стили публичных страниц: лендинг, вход/регистрация, оферта */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-alt: #f8fafc;
  --primary: #4f46e5;
  --primary-h: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #0ea5a4;
  --accent-soft: #ccfbf1;
  --brand-dark: #1e1b4b;
  --grad: linear-gradient(135deg, #4f46e5 0%, #0ea5a4 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --font: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.8px; }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.4px; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Шапка и логотип */
.site-header { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.3px; color: var(--ink); text-decoration: none; }
.brand img, .brand .logo { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand em { font-style: normal; color: var(--accent); }
.site-header nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--primary); }
.site-header nav a.btn { color: #fff; }

/* Кнопки */
.btn {
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 10px; padding: 10px 18px; font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none; font-family: inherit; line-height: 1.3; transition: background .15s, box-shadow .15s, transform .15s;
}
.btn:hover { background: var(--bg-alt); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .28); }
.btn.primary:hover { background: var(--primary-h); transform: translateY(-1px); }
.btn.big { padding: 15px 28px; font-size: 18px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* Лендинг: hero */
.hero-bg {
  background:
    radial-gradient(700px 360px at 8% 0%, rgba(79, 70, 229, .10), transparent 70%),
    radial-gradient(600px 320px at 95% 20%, rgba(14, 165, 164, .12), transparent 70%);
}
.hero { padding: 48px 0 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-h); font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; letter-spacing: .2px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin-bottom: 26px; max-width: 540px; }
.hero .cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.hero-demo {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  font-size: 14px; box-shadow: var(--shadow);
}
.hero-demo .doc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.hero-demo .doc.result { background: #fff; border-color: #c7d2fe; }
.hero-demo .doc b { display: block; margin-bottom: 6px; color: var(--brand-dark); }
.hero-demo .arrow { text-align: center; color: var(--primary); font-size: 22px; line-height: 1; margin: 6px 0; }
.hero-demo table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hero-demo td, .hero-demo th { border-bottom: 1px solid #eef1f4; padding: 5px 6px; text-align: left; }
.hero-demo th { color: var(--muted); font-weight: 600; }
.hero-demo td.r, .hero-demo th.r { text-align: right; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--accent-soft); color: #0f766e; }
.tag.warn { background: #fef3c7; color: #92400e; }

/* Секции */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--muted); font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff;
  align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pains > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pains ul { margin: 0; padding-left: 20px; }
.pains li { margin-bottom: 8px; color: var(--ink-2); }
.pains .before { border-top: 4px solid #f59e0b; }
.pains .after { border-top: 4px solid var(--accent); }

/* Тарифы */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 840px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; }
.plan.featured { border-color: #c7d2fe; box-shadow: 0 12px 36px rgba(79, 70, 229, .14); }
.plan.featured::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--grad); }
.plan .ribbon { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: #0f766e; padding: 3px 10px; border-radius: 10px; }
.plan .price { font-size: 36px; font-weight: 800; margin: 8px 0; letter-spacing: -0.5px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 0; margin: 14px 0 20px; list-style: none; }
.plan li { margin-bottom: 8px; padding-left: 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan .foot { font-size: 14px; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 0; color: var(--primary); font-weight: 800; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

.cta-band { background: linear-gradient(135deg, var(--brand-dark), #0f172a 70%); color: #fff; text-align: center; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--grad); opacity: .18; right: -160px; top: -260px; }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d2fe; font-size: 18px; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .spacer { flex: 1; }

/* Формы входа/регистрации */
.auth-page { min-height: calc(100vh - 72px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; background: var(--bg-alt); }
.auth-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; width: 100%; max-width: 430px; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 26px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 18px; }
.auth-box label { display: block; font-size: 14px; color: var(--ink-2); font-weight: 500; margin: 12px 0 4px; }
.auth-box input[type=text], .auth-box input[type=email], .auth-box input[type=password] {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; font-size: 16px; font-family: inherit; font-weight: 400;
}
.auth-box input:focus { outline: 2px solid #a5b4fc; border-color: var(--primary); }
.auth-box .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); font-weight: 400; margin: 14px 0; }
.auth-box .check input { margin-top: 3px; }
.auth-box .btn { margin-top: 8px; }
.auth-box .links { margin-top: 16px; font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.auth-box .error { color: #b91c1c; margin-top: 10px; white-space: pre-wrap; font-size: 14px; }
.auth-box .ok { color: #0f766e; margin-top: 10px; font-size: 15px; }
.hidden { display: none !important; }

/* Юридические страницы */
.legal { padding: 30px 0 60px; max-width: 820px; }
.legal h2 { font-size: 20px; margin-top: 26px; }
.legal p, .legal li { font-size: 15px; }
.placeholder { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 10px; padding: 10px 14px; font-size: 14px; }

@media (max-width: 860px) {
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  .site-header { height: 64px; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 32px; }
  .steps, .features, .pains, .plans { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav a.hide-m { display: none; }
  section { padding: 38px 0; }
}
