/* Временный сайт «Кабинет банкрота». Вёрстка — по образцу youokapp.online, палитра — shared/theme/tokens.json (indigo CRM). */
:root {
  --primary: #4f46e5; --primary-dark: #4338ca; --primary-deep: #3730a3;
  --primary-soft: #eef2ff; --primary-soft-2: #e0e7ff;
  --success: #16a34a; --success-soft: #ecfdf5;
  --text: #0f172a; --muted: #475569; --faint: #64748b;
  --bg: #ffffff; --bg-alt: #f8fafc; --card: #ffffff; --border: #e2e8f0;
  --hero-from: #f8fafc; --hero-to: #eef2ff;
  --footer: #0f172a; --footer-text: #94a3b8;
  --shadow: 0 20px 45px -15px rgba(55, 48, 163, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #818cf8; --primary-dark: #6366f1; --primary-deep: #4f46e5;
    --primary-soft: #1e1b4b; --primary-soft-2: #312e81;
    --success: #4ade80; --success-soft: #052e1a;
    --text: #e2e8f0; --muted: #94a3b8; --faint: #94a3b8;
    --bg: #0b1020; --bg-alt: #0f172a; --card: #111827; --border: #1f2937;
    --hero-from: #0b1020; --hero-to: #1e1b4b;
    --footer: #020617; --footer-text: #94a3b8;
    --shadow: 0 20px 45px -15px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
.icon { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; scroll-margin-top: 64px; }
.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--text); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] .nav-drop { display: flex; }
.nav-drop { display: none; position: absolute; right: 0; top: 48px; flex-direction: column; min-width: 220px; padding: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.nav-drop a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav-drop a:hover { background: var(--bg-alt); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-menu { display: block; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; background: #0f172a; color: #fff; font-weight: 600; text-decoration: none; }
.store small { display: block; font-weight: 400; font-size: 11px; opacity: .75; line-height: 1; }
.store.soon { opacity: .85; cursor: default; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); }
.checks li { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.checks .icon { width: 20px; height: 20px; color: var(--success); }
.phone { justify-self: center; width: min(320px, 78vw); border-radius: 36px; padding: 10px; background: #0f172a; box-shadow: var(--shadow); }
.phone img { border-radius: 28px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores, .checks li { justify-content: center; }
}

/* Features */
.big { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.big > div { border-radius: 20px; padding: 36px; background: var(--primary-soft); }
.big > div.green { background: var(--success-soft); }
.badge { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--primary-dark); margin-bottom: 20px; }
.green .badge { background: var(--success); }
.big h3 { font-size: 24px; margin-bottom: 10px; }
.big p { margin: 0; font-size: 17px; color: var(--muted); }
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px 0 0; padding-top: 40px; border-top: 1px solid var(--border); }
.list > div { display: flex; gap: 14px; }
.list .icon { color: var(--primary); margin-top: 2px; }
.list dt { font-weight: 600; margin-bottom: 4px; }
.list dd { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .big, .list { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .list { grid-template-columns: 1fr 1fr; } }

/* Screenshots carousel: CSS scroll-snap, no JS */
.shots-title { text-align: center; font-size: 24px; margin: 72px 0 28px; }
.shots { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 20px; margin: 0 -20px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shots img { height: 460px; width: auto; border-radius: 22px; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .35); border: 1px solid var(--border); }
.shots figcaption { color: var(--faint); font-size: 14px; margin-top: 12px; }
@media (max-width: 600px) { .shots img { height: 380px; } }

/* How it works */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.track { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 32px 32px 0; border-radius: 20px; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.track h3 { font-size: 24px; margin-bottom: 18px; }
.track ol { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.track li { display: flex; gap: 12px; color: var(--muted); }
.track li b { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; background: var(--primary-dark); }
.track.green li b { background: var(--success); }
.track .peek { height: 280px; overflow: hidden; }
.track .peek img { width: 170px; border-radius: 20px 20px 0 0; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .4); }
.note { margin: 40px auto 0; max-width: 760px; text-align: center; font-size: 18px; color: var(--muted); }
@media (max-width: 900px) { .tracks { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .track { grid-template-columns: 1fr; } .track .peek { justify-self: center; height: 220px; } }

/* Lawyers */
.lawyers { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; border-radius: 24px; padding: 40px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep)); color: #fff; }
.lawyers h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 14px; }
.lawyers p { margin: 0 0 12px; color: #e0e7ff; font-size: 17px; }
.lawyers ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lawyers li { display: flex; gap: 10px; color: #e0e7ff; }
.lawyers .icon { width: 20px; height: 20px; color: #a5b4fc; margin-top: 3px; }
.btn-light { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 20px; border-radius: 12px; background: #fff; color: var(--primary-deep); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .lawyers { grid-template-columns: 1fr; padding: 28px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--faint); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 18px; }
.about p { color: var(--muted); font-size: 17px; }
.legal-card { border-radius: 20px; padding: 32px; background: var(--bg-alt); border: 1px solid var(--border); }
.legal-card h3 { font-size: 20px; margin-bottom: 16px; }
.legal-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.legal-card .sep { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; font-size: 14px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* CTA */
.cta { text-align: center; color: #fff; background: linear-gradient(90deg, var(--primary-dark), var(--primary-deep)); }
.cta h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.cta p { color: #e0e7ff; font-size: 19px; margin: 0 0 28px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #0f172a; }

/* Footer */
footer { background: var(--footer); color: #fff; padding: 56px 0 32px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot p, .foot li, .foot a { color: var(--footer-text); }
.foot h4 { margin: 0 0 14px; font-size: 16px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.copy { margin-top: 36px; padding-top: 22px; border-top: 1px solid #1e293b; color: var(--footer-text); font-size: 13px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr; } }

/* Legal pages (pandoc → template.html) */
.doc { padding: 48px 0 72px; background: var(--bg-alt); }
.doc article { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.doc h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 16px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
@media (max-width: 600px) { .doc article { padding: 24px 18px; border-radius: 14px; } .doc { padding: 20px 0 48px; } }
