:root {
  /* Фирменные цвета — приглушённая палитра обложек Instagram */
  --bg: #f7f6fb;
  --surface: #ffffff;
  --surface-2: #f0eef7;
  --text: #1f1b2e;
  --muted: #615c72;
  --line: #e3e0ee;
  --accent: #6447c2;
  --accent-ink: #ffffff;
  --accent-soft: #ece8f8;
  --accent-2: #4a3396;
  --deep: #2b1f55;
  --ok: #2f9e63;
  --ok-soft: #e1f3e9;
  --warn: #fff3b0;

  /* Площадки — чуть приглушённые фирменные цвета */
  --wb: #9a2f8f;   --wb-2: #7c2273;  --wb-soft: #f6e6f3;
  --oz: #2f62d0;   --oz-2: #234ea9;  --oz-soft: #e5edfb;
  --ym: #ecc032;   --ym-2: #d9ab17;  --ym-soft: #fcf3d3;  --ym-ink: #2b2300;
  --lm: #1e1e22;   --lm-2: #3a3a40;  --lm-soft: #ececef;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 31, 85, .06), 0 8px 24px rgba(43, 31, 85, .07);
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 750; }
h2 { font-size: clamp(25px, 3.4vw, 36px); font-weight: 720; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.todo { background: var(--warn); color: #3d3300; border-radius: 4px; padding: 0 3px; }

/* Цвета площадок */
.mp-wb { --mp: var(--wb); --mp-2: var(--wb-2); --mp-soft: var(--wb-soft); --mp-ink: #fff; }
.mp-oz { --mp: var(--oz); --mp-2: var(--oz-2); --mp-soft: var(--oz-soft); --mp-ink: #fff; }
.mp-ym { --mp: var(--ym); --mp-2: var(--ym-2); --mp-soft: var(--ym-soft); --mp-ink: var(--ym-ink); }
.mp-lm { --mp: var(--lm); --mp-2: var(--lm-2); --mp-soft: var(--lm-soft); --mp-ink: #fff; }
.mp-name { font-weight: 700; color: var(--mp); }
.mp-ym.mp-name { color: #9a7a06; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 251, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--text); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }
.top .btn { white-space: nowrap; }
@media (max-width: 420px) { .top .wrap { gap: 12px; padding: 0 16px; } .logo { font-size: 17px; } .top .btn-sm { padding: 7px 12px; font-size: 13px; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-mp { background: var(--mp); color: var(--mp-ink); }
.btn-mp:hover { background: var(--mp-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Первый экран */
.hero { padding: 56px 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--muted); }
.chips li { display: flex; align-items: center; gap: 7px; }
.chips li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232f9e63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.mp-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.mp-line li { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--mp-soft); color: var(--mp); }
.mp-line li.mp-ym { color: #7d6304; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Макет таблицы */
.sheet {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 13px;
}
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sheet-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d2e3; }
.sheet-bar b { margin-left: 6px; font-weight: 600; font-size: 13px; }
.sheet-menu { display: flex; gap: 14px; padding: 7px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sheet-menu span:last-child { color: var(--wb); font-weight: 650; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.kpi small { display: block; color: var(--muted); font-size: 11px; }
.kpi strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.kpi em { display: block; font-style: normal; font-size: 11px; color: var(--ok); }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 74px; padding: 0 14px 12px; }
.chart span { flex: 1; background: linear-gradient(to top, var(--accent-2), #9a86dc); border-radius: 3px 3px 0 0; opacity: .85; }
table.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.grid th, table.grid td { padding: 6px 14px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid th { color: var(--muted); font-weight: 600; font-size: 11px; background: var(--surface-2); }
.tag { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 700; text-align: center; }
.tag.a { background: var(--ok-soft); color: #1d6b41; } .tag.b { background: #fbf0cc; color: #6b5200; } .tag.c { background: #f9e1e1; color: #8a2a2a; }

/* Секции */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 36px; }
.head p { color: var(--muted); font-size: 17px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); font-weight: 750; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Площадки */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; color: var(--mp); }
.tab.mp-ym { color: #7d6304; }
.tab:hover { border-color: var(--mp); }
.tab[aria-selected="true"] { background: var(--mp); color: var(--mp-ink); border-color: var(--mp); }
.panel { display: grid; grid-template-columns: 300px 1fr; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--mp); border-radius: var(--radius); padding: 28px; }
.panel[hidden] { display: none; }
.panel h3 { color: var(--text); }
.stats { display: grid; gap: 14px; align-content: start; }
.stat { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.stat strong { display: block; font-size: 30px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.sheets-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; padding: 0; list-style: none; }
.sheets-list li { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--mp-soft); }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--mp); padding: 4px 0 4px 12px; margin: 0; }
@media (max-width: 820px) { .panel { grid-template-columns: 1fr; padding: 20px; } .stats { grid-template-columns: repeat(3, 1fr); } .stat strong { font-size: 24px; } }

/* Отчёты */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.feature-note { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* Безопасность */
.safe { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.safe ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.safe li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.safe li b { display: block; margin-bottom: 2px; }
.safe li span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .safe { grid-template-columns: 1fr; gap: 20px; } }

/* Цены */
.plans { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 18px; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); background: var(--surface); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: "Разовая покупка"; position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 38px; font-weight: 780; line-height: 1.1; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-sub { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: 15px; flex: 1; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6' fill='none' stroke='%232f9e63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.pay-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-grid .btn { padding: 11px 6px; font-size: 14px; white-space: nowrap; }
.extras { display: grid; gap: 14px; margin: 14px 0 22px; flex: 1; align-content: start; }
.extra { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.extra:last-child { border-bottom: 0; }
.extra b { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.extra b span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.extra p { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.plans-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
@media (max-width: 380px) { .pay-grid { grid-template-columns: 1fr; } }

/* Вопросы */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 620; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Финальный призыв */
.final { text-align: center; }
.final .box { background: linear-gradient(160deg, var(--accent-2), var(--deep)); color: #fff; border-radius: 20px; padding: 56px 24px; }
.final p { color: #d9d2f0; font-size: 17px; }
.final .btn-primary { background: #fff; color: var(--accent-2); }
.final .btn-primary:hover { background: #ece8f8; }

/* Подвал */
footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer h4 { color: var(--text); font-size: 14px; margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); }
footer .legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* Обновления */
.page-head { padding: 56px 0 8px; }
.page-head .lead { font-size: 18px; color: var(--muted); max-width: 46em; }
section.tight { padding: 24px 0 64px; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.panel-updates { display: block; }
.panel-updates h2 { font-size: 22px; margin-bottom: 16px; }
.version { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: var(--bg); }
.version.current { background: var(--mp-soft); border-color: transparent; }
.v-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.v-head b { font-size: 17px; }
.v-head time { margin-left: auto; color: var(--muted); font-size: 14px; }
.v-badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--mp); color: var(--mp-ink); }
.version ul { margin: 8px 0 0; padding-left: 1.2em; }
.v-files { margin: 8px 0 0; font-size: 14px; }
.files-all { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
code { font: 13px/1.4 ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--text); }
.howto { max-width: 820px; margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.howto li { counter-increment: st; position: relative; padding: 14px 16px 14px 58px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.howto li::before { content: counter(st); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font-weight: 750; display: grid; place-items: center; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Документы */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(24px, 4vw, 34px); }
.doc h2 { font-size: 20px; margin-top: 2em; }
.doc p, .doc li { font-size: 15.5px; }
.doc .meta { color: var(--muted); }
.doc ul { padding-left: 1.3em; }
.back { display: inline-block; margin-bottom: 24px; font-size: 14px; }
