/* Общая дизайн-система двух сервисов. Акцентный цвет задаётся в app.css через --accent. */
:root {
  --accent: #1f5fd1; --accent-ink: #fff; --accent-soft: #e8f0fd;
  --bg: #f6f7f9; --card: #fff; --ink: #1a1d23; --muted: #667085; --line: #e2e5ea;
  --ok: #157f3d; --ok-bg: #e7f6ec; --err: #b42318; --err-bg: #fdecea; --warn: #9a6700; --warn-bg: #fff6d9;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding: 24px 0 48px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main.wide { max-width: none; padding-left: 0; padding-right: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 1.6em 0 .6em; }
h3 { font-size: 1.08rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* шапка */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav a.btn { color: var(--accent-ink); }
.nav-strong { font-weight: 600; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; }
.inline { display: inline; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 56px; background: var(--card); padding: 12px 16px 16px;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav.open { display: flex; }
}

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; line-height: 1.2; min-height: 42px; }
.btn:hover { filter: brightness(.94); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--card); color: var(--err); border-color: #f0c2bd; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-wide { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* карточки и сетки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.narrow { max-width: 460px; margin: 24px auto; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.stat { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }

/* формы */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label { display: grid; gap: 5px; font-weight: 500; font-size: .93rem; }
.hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel],
input[type=search], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd4dc; border-radius: 8px; padding: 9px 11px; min-height: 42px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
label.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 4px; width: 17px; height: 17px; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }
.field-voice { position: relative; }
.field-voice textarea { padding-right: 46px; }
.voice-btn { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1rem; }
.voice-btn.rec { background: var(--err); color: #fff; border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* уведомления и метки */
.alert { border-radius: 8px; padding: 11px 14px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe5cb; }
.alert-err { background: var(--err-bg); color: var(--err); border-color: #f5c6c1; }
.alert-warn { background: var(--warn-bg); color: #6b4a00; border-color: #f0dc9a; }
.alert-info { background: var(--accent-soft); color: var(--ink); border-color: #cddcf7; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef0f3; color: #475467; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-acc { background: var(--accent-soft); color: var(--accent); }

/* таблицы */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

/* лендинг */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.hero p.lead { font-size: 1.15rem; color: #344054; max-width: 720px; }
.section { padding: 34px 0 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 56px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.price { font-size: 1.8rem; font-weight: 700; }
.price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.prose { max-width: 780px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { margin-bottom: 1em; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.taglist a { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.taglist a:hover { border-color: var(--accent); color: var(--accent); }

.foot { border-top: 1px solid var(--line); background: var(--card); padding: 18px 0; font-size: .88rem; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media print {
  .top, .foot, .no-print, .btn, .alert { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; }
}
