/* ============================================================
   Локон.Про — дизайн-система маркетингового сайта
   Источник: дизайн-прототипы *.dc.html (docs/design/спецификация-сайт.md)
   ============================================================ */

:root { color-scheme: light; }

body {
  --bg:#FFFFFF; --bg2:#F7F5FA; --ink:#18151D; --mut:#74707C; --line:#EAE6EF;
  --acc:#7C3AED; --acc2:#A855F7; --deep:#241044; --soft:#F4EEFE; --card:#FFFFFF;
  --shadow:0 16px 48px rgba(36,16,68,.09);
  --hdr:rgba(255,255,255,.82);
  margin:0;
  font-family:'Onest',-apple-system,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased;
  background:var(--bg); color:var(--ink);
}
body.dark {
  --bg:#0E0A17; --bg2:#171126; --ink:#F1EDF8; --mut:#9B93AB; --line:#2A2140;
  --acc:#8B5CF6; --acc2:#A855F7; --deep:#E9DFFB; --soft:#221838; --card:#171126;
  --shadow:0 16px 48px rgba(0,0,0,.45);
  --hdr:rgba(14,10,23,.82);
  color-scheme: dark;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
a { color:var(--acc); text-decoration:none; }
a:hover { color:var(--acc2); }
input, textarea, select, button { font-family:inherit; }
input[type=range] { accent-color:#7C3AED; }
input[type=checkbox] { accent-color:#7C3AED; }

.container { max-width:1180px; margin:0 auto; padding:0 24px; }
section[id] { scroll-margin-top:70px; }

/* ---------- Типографика ---------- */
.eyebrow { font-size:13px; font-weight:700; color:var(--acc); letter-spacing:.08em; text-transform:uppercase; margin:0 0 12px; }
.h1-hero { margin:0; font-size:clamp(36px,5.6vw,68px); font-weight:800; line-height:1.06; letter-spacing:-.03em; color:var(--deep); }
.h1-page { margin:0; font-size:clamp(32px,4.6vw,54px); font-weight:800; line-height:1.06; letter-spacing:-.03em; color:var(--deep); }
.h2 { margin:0; font-size:clamp(28px,3.6vw,42px); font-weight:800; line-height:1.1; letter-spacing:-.025em; color:var(--deep); }
.h2-sm { margin:0; font-size:clamp(24px,3vw,32px); font-weight:800; letter-spacing:-.02em; color:var(--deep); }
.lead { margin:0; font-size:clamp(16px,1.6vw,19px); line-height:1.55; color:var(--mut); text-wrap:pretty; }
.sec-text { margin:0; font-size:16.5px; line-height:1.6; color:var(--mut); }

/* ---------- Кнопки ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; cursor:pointer;
  font-size:15px; font-weight:600; border-radius:13px; padding:14px 28px; transition:.15s; }
.btn-primary { background:var(--acc); color:#fff; }
.btn-primary:hover { background:var(--acc2); color:#fff; }
.btn-secondary { background:transparent; border:1.5px solid var(--line); color:var(--ink); }
.btn-secondary:hover { border-color:var(--acc); color:var(--acc); }
.btn-sm { padding:10px 18px; font-size:14px; border-radius:11px; }
.btn-white { background:#fff; color:#241044; font-weight:700; }
.btn-white:hover { background:#EDE4FC; color:#241044; }
.btn-ghost-dark { background:transparent; border:1.5px solid rgba(255,255,255,.35); color:#fff; }
.btn-ghost-dark:hover { border-color:#fff; color:#fff; }
.btn:disabled { background:var(--line); color:var(--mut); cursor:not-allowed; }
.icon-btn { width:36px; height:36px; border-radius:10px; border:1px solid var(--line); background:transparent;
  color:var(--ink); cursor:pointer; font-size:15px; display:inline-flex; align-items:center; justify-content:center; }

/* ---------- Карточки, бейджи, чипы ---------- */
.card { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:24px; }
a.card { display:block; color:inherit; transition:.15s; }
a.card:hover { border-color:var(--acc); box-shadow:var(--shadow); color:inherit; }
.card-soft { background:var(--bg2); border-radius:16px; padding:20px 22px; }
.badge-hero { display:inline-block; background:var(--soft); color:var(--acc); font-size:13px; font-weight:600; padding:7px 14px; border-radius:99px; }
.chip { display:inline-block; font-size:12px; font-weight:600; color:var(--mut); background:var(--bg2); padding:5px 10px; border-radius:99px; }
.glyph { width:40px; height:40px; border-radius:12px; background:var(--soft); color:var(--acc); font-size:15px; font-weight:800;
  display:flex; align-items:center; justify-content:center; flex:none; }
.avatar { width:34px; height:34px; border-radius:99px; background:var(--soft); color:var(--acc); font-weight:700; font-size:13px;
  display:inline-flex; align-items:center; justify-content:center; flex:none; }
.check { width:20px; height:20px; border-radius:99px; background:var(--soft); color:var(--acc); font-size:11px; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center; flex:none; }
.check-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.check-list li { display:flex; gap:10px; align-items:flex-start; font-size:15px; line-height:1.45; color:var(--ink); }
.demo-badge { border:1px dashed var(--line); font-size:11.5px; font-weight:700; color:var(--mut); padding:4px 10px;
  border-radius:99px; text-transform:uppercase; letter-spacing:.05em; }

/* ---------- Секции ---------- */
.section { padding:72px 24px; }
.section-head { display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; margin-bottom:40px; }
.grid { display:grid; gap:14px; }
.grid-2 { display:grid; gap:44px; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); align-items:center; }

/* Тёмный градиентный блок */
.dark-block { background:linear-gradient(145deg,#241044 0%,#3B1D6E 60%,#7C3AED 140%); border-radius:28px; color:#fff; }
.dark-block .h2, .dark-block h2 { color:#fff; }
.dark-block p { color:#C9BEDF; }
.chip-dark { display:inline-block; background:rgba(255,255,255,.12); color:#DCC9FF; font-size:12px; font-weight:600; padding:5px 10px; border-radius:99px; }

/* ---------- Табы / сегменты ---------- */
.tabs { display:inline-flex; background:var(--bg2); padding:5px; border-radius:14px; gap:2px; flex-wrap:wrap; justify-content:center; }
.tabs button { padding:9px 18px; border-radius:11px; font-size:14px; font-weight:600; border:none; cursor:pointer;
  background:transparent; color:var(--mut); }
.tabs button.active { background:var(--card); color:var(--acc); box-shadow:0 2px 8px rgba(36,16,68,.10); }
.seg-chip { padding:9px 16px; border-radius:99px; font-size:13.5px; font-weight:600; border:1px solid var(--line);
  background:transparent; color:var(--ink); cursor:pointer; }
.seg-chip.active { background:var(--acc); border-color:var(--acc); color:#fff; }

/* ---------- Формы ---------- */
.field { display:flex; flex-direction:column; gap:7px; }
.field label { font-size:13px; font-weight:600; color:var(--ink); }
.input { padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--bg2); color:var(--ink);
  font-size:14.5px; outline:none; width:100%; }
.input:focus { border-color:var(--acc); }

/* ---------- Шапка ---------- */
.site-header { position:sticky; top:0; z-index:50; background:var(--hdr); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line); }
.site-header .inner { max-width:1180px; margin:0 auto; padding:0 24px; height:64px; display:flex; align-items:center; gap:28px; }
.site-header nav.desktop { display:flex; gap:22px; justify-content:center; flex:1; }
.site-header nav.desktop a { font-size:14.5px; font-weight:500; color:var(--ink); }
.site-header nav.desktop a:hover { color:var(--acc); }
.site-header nav.desktop a.active { font-weight:700; color:var(--acc); }
.header-actions { display:flex; align-items:center; gap:12px; }
.header-login { font-size:14.5px; font-weight:600; color:var(--ink); }
.header-login:hover { color:var(--acc); }
.header-cta { background:var(--acc); color:#fff; font-size:14px; font-weight:600; padding:10px 18px; border-radius:11px; }
.header-cta:hover { background:var(--acc2); color:#fff; }
.burger { display:none; }
.mobile-nav { display:none; }
@media (max-width:1080px) {
  .site-header nav.desktop, .header-login, .header-cta.in-bar { display:none; }
  .site-header .inner { justify-content:space-between; }
  .burger { display:inline-flex; }
  .mobile-nav.open { display:flex; flex-direction:column; gap:4px; border-top:1px solid var(--line); background:var(--bg); padding:16px 24px 20px; }
  .mobile-nav a { font-size:16px; padding:10px 0; color:var(--ink); }
  .mobile-nav .header-cta { margin-top:10px; text-align:center; }
}

/* ---------- Подвал ---------- */
.site-footer { border-top:1px solid var(--line); background:var(--bg2); }
.site-footer .inner { max-width:1180px; margin:0 auto; padding:56px 24px 32px; display:flex; flex-direction:column; gap:40px; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:32px; }
.footer-col h4 { margin:0 0 14px; font-size:13px; color:var(--ink); letter-spacing:.04em; text-transform:uppercase; }
.footer-col a { display:block; font-size:13.5px; color:var(--mut); padding:5px 0; }
.footer-col a:hover { color:var(--acc); }
.footer-bottom { border-top:1px solid var(--line); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px; color:var(--mut); }
.footer-bottom a { color:var(--mut); margin-left:16px; }
.footer-bottom a:hover { color:var(--acc); }

/* ---------- Мокап AppWindow ---------- */
.appwindow { background:var(--card); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); overflow:hidden; }
.appwindow .chrome { display:flex; align-items:center; gap:6px; padding:12px 14px; border-bottom:1px solid var(--line); }
.appwindow .dot { width:10px; height:10px; border-radius:99px; }
.appwindow .addr { flex:1; margin:0 40px; background:var(--bg2); border-radius:8px; font-size:11.5px; color:var(--mut);
  text-align:center; padding:5px 10px; }
.appwindow .toolbar { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; gap:10px; }
.appwindow .toolbar b { font-size:13.5px; color:var(--deep); }
.pill-soft { background:var(--soft); color:var(--acc); font-size:11.5px; font-weight:600; padding:5px 12px; border-radius:99px; }
.pill-acc { background:var(--acc); color:#fff; font-size:11.5px; font-weight:600; padding:5px 12px; border-radius:99px; }
.appwindow .body { display:flex; gap:12px; padding:4px 16px 16px; }
.appwindow .times { display:flex; flex-direction:column; gap:34px; font-size:10px; color:var(--mut); padding-top:34px; flex:none; }
.appwindow .cols { flex:1; display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; }
.appwindow .col-head { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700; color:var(--ink); margin-bottom:8px; }
.appwindow .col-head .avatar { width:22px; height:22px; font-size:9px; }
.appwindow .evt { border-radius:8px; padding:7px 9px; margin-bottom:6px; }
.appwindow .evt b { display:block; font-size:10.5px; color:var(--ink); }
.appwindow .evt span { font-size:9.5px; color:var(--mut); }
.appwindow .slot-free { border:1.5px dashed var(--line); border-radius:8px; padding:7px 9px; text-align:center;
  font-size:9.5px; color:var(--mut); }

/* Мокап-окно ролей (roles) */
.role-window { background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; }
.role-window .chrome { display:flex; align-items:center; gap:6px; padding:11px 14px; border-bottom:1px solid var(--line); font-size:11.5px; color:var(--mut); }
.role-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:14px 16px 4px; }
.role-stat { background:var(--bg2); border-radius:13px; padding:12px; }
.role-stat b { display:block; font-size:16px; color:var(--deep); letter-spacing:-.01em; }
.role-stat span { font-size:11px; color:var(--mut); }
.role-rows { display:flex; flex-direction:column; gap:8px; padding:12px 16px 16px; }
.role-row { display:flex; align-items:center; gap:10px; }
.role-row .bar { width:8px; height:30px; border-radius:4px; flex:none; }
.role-row b { display:block; font-size:12.5px; color:var(--ink); }
.role-row span { font-size:11px; color:var(--mut); }
.role-row .right { margin-left:auto; font-size:11.5px; font-weight:600; color:var(--mut); white-space:nowrap; }

/* ---------- Аккордеон FAQ ---------- */
.faq-list { max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.faq-item { background:var(--card); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.faq-item button { width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; text-align:left;
  background:none; border:none; cursor:pointer; padding:18px 22px; font-size:15.5px; font-weight:600; color:var(--ink); }
.faq-item .faq-icon { color:var(--acc); font-size:18px; font-weight:700; flex:none; }
.faq-item .faq-body { display:none; padding:0 22px 18px; font-size:14.5px; line-height:1.55; color:var(--mut); }
.faq-item.open .faq-body { display:block; }

/* ---------- Тарифы ---------- */
.price-grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); align-items:stretch; }
.price-card { position:relative; background:var(--card); border:1px solid var(--line); border-radius:22px; padding:28px;
  display:flex; flex-direction:column; gap:16px; }
.price-card.popular { border:2px solid var(--acc); box-shadow:var(--shadow); }
.price-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--acc); color:#fff;
  font-size:12px; font-weight:700; padding:5px 14px; border-radius:99px; white-space:nowrap; }
.price-value { font-size:36px; font-weight:800; letter-spacing:-.03em; color:var(--deep); }
.price-value small { font-size:15px; font-weight:600; color:var(--mut); letter-spacing:0; }
.price-note { font-size:12.5px; color:var(--mut); }
.price-feats { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.price-feats li { display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--ink); }

/* Сравнение тарифов */
.compare { border:1px solid var(--line); border-radius:20px; overflow:hidden; min-width:640px; }
.compare .row { display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr; padding:13px 20px; font-size:14px; border-top:1px solid var(--line); }
.compare .row:first-child { border-top:none; background:var(--bg2); font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; color:var(--mut); }
.compare .row > :nth-child(3) { color:var(--acc); font-weight:700; }

.compare-wrap { overflow-x:auto; }

/* ---------- Hero-плавание ---------- */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ---------- Auth (вход/регистрация) ---------- */
.auth-grid { min-height:100vh; display:grid; grid-template-columns:1.05fr 1fr; }
.auth-grid.reg { grid-template-columns:1fr 1.1fr; }
.auth-brand { background:linear-gradient(160deg,#241044 0%,#3B1D6E 55%,#7C3AED 130%); padding:48px; display:flex;
  flex-direction:column; justify-content:space-between; color:#fff; }
.auth-brand h1 { margin:0; font-size:clamp(28px,3vw,40px); font-weight:800; line-height:1.12; letter-spacing:-.025em; }
.auth-brand p { color:#C9BEDF; font-size:15.5px; line-height:1.55; }
.auth-brand .foot { color:#9E8FBF; font-size:13px; }
.auth-form-side { display:flex; align-items:center; justify-content:center; padding:40px 24px; position:relative; }
.auth-theme { position:absolute; top:20px; right:20px; }
.auth-box { width:100%; max-width:380px; display:flex; flex-direction:column; gap:18px; }
.auth-box.wide { max-width:420px; }
.auth-box h2 { margin:0; font-size:26px; font-weight:800; letter-spacing:-.02em; color:var(--deep); }
.auth-sub { font-size:14px; color:var(--mut); }
.divider { display:flex; align-items:center; gap:12px; color:var(--mut); font-size:13px; }
.divider::before, .divider::after { content:''; flex:1; height:1px; background:var(--line); }
.progress-steps { display:flex; gap:8px; }
.progress-steps span { flex:1; height:5px; border-radius:99px; background:var(--line); }
.progress-steps span.on { background:var(--acc); }
.success-circle { width:60px; height:60px; border-radius:99px; background:var(--soft); color:var(--acc); font-size:26px;
  font-weight:800; display:flex; align-items:center; justify-content:center; }
@media (max-width:820px) {
  .auth-grid, .auth-grid.reg { grid-template-columns:1fr; }
  .auth-brand { display:none; }
}

/* ---------- Вспомогательное ---------- */
.hidden { display:none !important; }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.stars { color:var(--acc); letter-spacing:2px; }
