/* Публичный сайт AI Content Studio: лендинг и юридические страницы. Палитра — как в ds.css (Mini App). */
:root {
  --bg: #ffffff; --bg-2: #f5f6fb; --surface: #ffffff; --text: #0f172a; --text-2: #334155; --hint: #64748b;
  --link: #4338ca; --accent: #5446f0; --border: #e2e5f0;
  --grad: linear-gradient(135deg, #5b4cf5 0%, #8b5cf6 55%, #d946ef 100%);
  --grad-soft: linear-gradient(135deg, #eeecff, #fbeefe);
  --shadow: 0 10px 30px rgb(15 23 42 / 8%);
  --r: 18px; --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --bg-2: #0f1630; --surface: #151d3b; --text: #e8ebf7; --text-2: #c3c9e0; --hint: #94a0c2;
    --link: #b4bdff; --accent: #7c70ff; --border: #26305a;
    --grad-soft: linear-gradient(135deg, #1d2150, #2a1a45); --shadow: 0 10px 30px rgb(0 0 0 / 40%);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020; --bg-2: #0f1630; --surface: #151d3b; --text: #e8ebf7; --text-2: #c3c9e0; --hint: #94a0c2;
  --link: #b4bdff; --accent: #7c70ff; --border: #26305a;
  --grad-soft: linear-gradient(135deg, #1d2150, #2a1a45); --shadow: 0 10px 30px rgb(0 0 0 / 40%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--hint); }
.small { font-size: 14px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 13px !important; }
.brand { white-space: nowrap; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 12px; } }
@media (max-width: 480px) { .nav .hide-xs { display: none; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgb(91 76 245 / 35%); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

/* лендинг */
.hero { background: var(--grad-soft); padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.phone { width: 270px; margin: 0 auto; border-radius: 34px; padding: 10px; background: #0f172a; box-shadow: var(--shadow); }
.phone img { border-radius: 26px; width: 100%; height: auto; aspect-ratio: 390 / 780; object-fit: cover; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 36px 0 44px; } }
section.block { padding: 56px 0; }
section.alt { background: var(--bg-2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.card ul { margin: 0 0 12px; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.price { font-weight: 800; font-size: 20px; color: var(--accent); }
.price small { font-weight: 500; font-size: 13px; color: var(--hint); }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 220px; height: auto; aspect-ratio: 390 / 780; object-fit: cover; }
.shots figcaption { font-size: 14px; color: var(--hint); margin-top: 8px; text-align: center; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 18px 18px 60px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps { padding: 0; margin: 0; }
.note { background: var(--grad-soft); border-radius: var(--r); padding: 18px 20px; }

/* документы */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h2 { margin-top: 36px; }
.doc h3 { margin-top: 22px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .meta { color: var(--hint); font-size: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); min-width: 140px; }
.doc th { background: var(--bg-2); }
.toc { background: var(--bg-2); border-radius: var(--r); padding: 14px 20px; }

/* форма */
form.del { display: grid; gap: 14px; margin-top: 12px; }
form.del label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.del input[type=text], form.del input[type=email], form.del textarea { font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 100%; }
form.del fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
form.del fieldset label { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ok { border-left: 4px solid #16a34a; }
.err { border-left: 4px solid #dc2626; }

/* подвал */
footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 32px 0; font-size: 14px; color: var(--text-2); }
footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer a { color: var(--text-2); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
