:root {
  --bg: #F3F0EE;
  --surface: #FCFBFA;
  --ink: #141413;
  --muted: #555555;
  --dim: #696969;
  --line: #E8E2DA;
  --accent: #F37338;
  --accent-ink: #9A3A0A;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-ink); }
input, select, button, textarea { font-family: inherit; }
[id] { scroll-margin-top: calc(var(--hdr-h, 69px) + 24px); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 20px; border: 1.5px solid var(--ink);
  font-size: 16px; font-weight: 600; letter-spacing: -0.32px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #262627; color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: #E8E2DA; color: var(--ink); }
.btn--block { width: 100%; }

.hdr { position: sticky; top: 0; z-index: 20; background: rgba(243,240,238,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr__in { max-width: 1280px; margin: 0 auto; padding: 14px clamp(20px, 4vw, 48px); display: flex; align-items: center; gap: 24px; }
.hdr__logo { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.hdr__nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--muted); }
.hdr__nav a { color: var(--muted); }
.hdr__nav a:hover { color: var(--ink); }

.ftr { background: var(--ink); color: var(--bg); margin-top: 0; }
.ftr__in { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 48px) 40px; display: grid; grid-template-columns: 1fr; gap: 32px 40px; }
@media (min-width: 640px) { .ftr__in { grid-template-columns: repeat(2, 1fr); } .ftr__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .ftr__in { grid-template-columns: minmax(240px, 1.8fr) repeat(2, minmax(160px, 1fr)); } .ftr__brand { grid-column: auto; } }
.ftr a, .ftr .hdr__logo { color: var(--bg); }
.ftr a:hover { color: var(--accent); }
.ftr__brand p { margin: 14px 0 0; max-width: 320px; font-size: 15px; color: #B9B9B4; }
.ftr__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ftr__col h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.48px; text-transform: uppercase; color: #8A8A86; }
.ftr__note { color: #8A8A86; }
.ftr__bar { border-top: 1px solid #2A2A28; }
.ftr__bar { max-width: 1280px; margin: 0 auto; padding: 20px clamp(20px, 4vw, 48px) 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #8A8A86; }

.auth { min-height: calc(100vh - 69px); display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: center; gap: clamp(32px, 5vw, 72px); max-width: 1280px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 48px); }
.auth__aside h1 { margin: 16px 0 12px; font-size: clamp(32px, 4vw, 44px); font-weight: 600; line-height: 1.06; letter-spacing: -0.9px; }
.auth__aside p { margin: 0; max-width: 420px; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.56px; text-transform: uppercase; color: var(--dim); }
.auth__list { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.auth__list li { display: flex; gap: 12px; align-items: flex-start; }
.auth__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

.card { background: var(--surface); border-radius: 40px; padding: clamp(28px, 3.4vw, 44px); box-shadow: rgba(0,0,0,0.08) 0 24px 48px 0; }
.card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.52px; }
.card__sub { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.48px; text-transform: uppercase; color: var(--dim); }
.field input, .field select {
  width: 100%; padding: 13px 22px; font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1px solid rgba(20,20,19,0.35); border-radius: 999px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--ink); }
.field__wrap { position: relative; display: flex; }
.field__wrap input { padding-right: 54px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dim); cursor: pointer; }
.pw-toggle:hover { background: var(--bg); color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.card__foot { margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.card__foot a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.page { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.dash__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.dash__top h1 { margin: 10px 0 0; font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.8px; }
.notice { background: var(--ink); color: var(--bg); border-radius: 40px; padding: clamp(28px, 3.4vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: center; margin-bottom: 24px; }
.notice h2 { margin: 12px 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.52px; }
.notice p { margin: 0; color: #B9B9B4; max-width: 460px; }
.notice .eyebrow { color: #D1CDC7; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #262627; color: var(--bg); font-size: 13px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.empty { border: 1.5px dashed #D1CDC7; border-radius: 40px; padding: clamp(28px, 3.4vw, 44px); color: var(--muted); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.empty strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }


.hdr__burger {
  display: none; width: 38px; height: 38px; padding: 0; flex: none; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
}
.hdr__burger span { position: relative; display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.hdr__burger span::before, .hdr__burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease; }
.hdr__burger span::before { top: -5px; }
.hdr__burger span::after { top: 5px; }
.hdr.is-open .hdr__burger span { background: transparent; }
.hdr.is-open .hdr__burger span::before { transform: translateY(5px) rotate(45deg); }
.hdr.is-open .hdr__burger span::after { transform: translateY(-5px) rotate(-45deg); }

.hdr__acct { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hdr__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.hdr__acct + .btn { margin-left: 0; }

/* ---------- demo video ---------- */
.demo__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #FAF9F5; }
.demo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity 0.45s ease; }
.demo__video.is-ready { opacity: 1; }
.demo__skeleton { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #FAF9F5; transition: opacity 0.45s ease; }
.demo__skeleton::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 80%); background-size: 220% 100%; animation: demoShimmer 1.5s linear infinite; }
.demo__skeleton.is-done { opacity: 0; pointer-events: none; }
.demo__spinner { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #E3DFDA; border-top-color: var(--accent, #F37338); animation: demoSpin 0.8s linear infinite; }
.demo__hint { position: relative; font-size: 13px; font-weight: 500; color: #8A8A86; letter-spacing: 0.2px; }
@keyframes demoSpin { to { transform: rotate(360deg); } }
@keyframes demoShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .price { padding: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 48px) !important; gap: 32px !important; }
}
@media (max-width: 860px) {
  .hero__grid, .split, .cta, .price { grid-template-columns: 1fr !important; }
  .cta > div:last-child { justify-content: flex-start !important; }
}
@media (max-width: 760px) {
  .hdr__in { flex-wrap: nowrap; gap: 12px; padding: 10px 16px; }
  .hdr__logo { font-size: 14px; margin-right: auto; }
  .hdr__nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.3s;
  }
  .hdr.is-open .hdr__nav { max-height: 320px; visibility: visible; }
  .hdr__nav a { padding: 13px 16px; font-size: 15px; border-top: 1px solid var(--line); }
  .hdr__burger { display: flex; }
  .hdr__in > .btn--sm { padding: 9px 12px; font-size: 13px; flex: none; }

  /* аккаунт: только аватар, e-mail уезжает в меню */
  .hdr__acct { min-width: 0; gap: 0; }
  .hdr__acct #acctEmail { display: none; }
  .hdr__nav::before {
    content: attr(data-acct); display: block; padding: 12px 16px 10px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.48px; text-transform: uppercase; color: var(--dim);
  }
  .hdr__nav:not([data-acct])::before { display: none; }
  [id] { scroll-margin-top: calc(var(--hdr-h, 60px) + 16px); }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }

  /* демо: тонкая рамка вокруг вертикального ролика */
  #how { padding-bottom: clamp(56px, 12vw, 80px) !important; }
  #how > div { border-radius: 24px !important; padding: 8px !important; gap: 8px !important; }
  #how > div > div:first-child { padding: 2px 4px !important; }
  #how > div > div:first-child span:not(:last-child) { width: 7px !important; height: 7px !important; }
  #how > div > div:first-child span:last-child { font-size: 10px !important; }
  .demo__frame { aspect-ratio: 9 / 16; max-height: 72vh; width: 100%; margin: 0 auto; border-radius: 18px; }
  .demo__video { object-fit: cover; }
  .demo__hint { font-size: 12px; text-align: center; padding: 0 16px; }

  /* крупные карточки: радиусы и отступы под узкий экран */
  .mock, .compare, .cta, .price, .cards figure > div { border-radius: 24px !important; }
  .compare { padding: 22px 14px !important; gap: 18px !important; }
  .compare table { min-width: 620px !important; font-size: 14px !important; }
  .compare th, .compare td { padding: 12px 12px !important; }
  .cta, .price { padding: 28px 20px !important; }
  .steps { gap: 12px !important; }
  .steps > div { padding: 22px 20px !important; border-radius: 20px !important; }
  #about h2, #examples h2, .cta h2 { font-size: 27px !important; line-height: 34px !important; }
  #about > div { gap: 24px !important; }
  section { padding-left: 16px !important; padding-right: 16px !important; }

  .auth { grid-template-columns: 1fr !important; min-height: 0; padding-top: clamp(32px, 8vw, 48px); }
  .card { border-radius: 28px; padding: 24px 20px; }
  .notice, .empty { border-radius: 28px; padding: 24px 20px; }
  .grid2 { grid-template-columns: 1fr !important; }
  .dash__top { align-items: flex-start; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr !important; }
  .mock { border-radius: 20px !important; }
  .ftr__bar { flex-direction: column; gap: 6px; }
  .demo__frame { max-height: 68vh; }
  .compare table { min-width: 560px !important; }
  .cta > div:last-child { width: 100%; }
  .cta > div:last-child .btn { flex: 1 1 auto; text-align: center; }
  .price > div:first-child span[style*="font-size: clamp(44px"] { font-size: 38px !important; }
  .steps > div p { font-size: 14px !important; }
}

/* ---------- пример сайта в hero ---------- */
@media (max-width: 760px) {
  .mock { max-width: 520px; margin: 0 auto; }
  .mock > div:first-child { height: 32px !important; padding: 0 12px !important; }
  .mock > div:first-child span:last-child { font-size: 10px !important; padding: 3px 12px !important; }
  .mock > div:last-child { padding: 14px !important; }
  .mock > div:last-child > div > div:nth-child(2) { padding: 18px !important; border-radius: 14px !important; }
}
@media (max-width: 520px) {
  .mock > div:first-child span:not(:last-child) { width: 7px !important; height: 7px !important; }
  /* верхнее меню примера прячем — на узком экране оно только шумит */
  .mock > div:last-child > div > div:first-child > span:last-child { display: none !important; }
  .mock > div:last-child > div > div:nth-child(2) span:first-child { font-size: 17px !important; }
  /* три тарифа: горизонтальная лента вместо сжатой сетки */
  .mock > div:last-child > div > div:nth-child(3) {
    display: flex !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .mock > div:last-child > div > div:nth-child(3)::-webkit-scrollbar { display: none; }
  .mock > div:last-child > div > div:nth-child(3) > div { flex: 0 0 44%; }
  /* нижняя плашка: телефон переносится под текст */
  .mock > div:last-child > div > div:nth-child(4) { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; }
}

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { display: block; line-height: 0; }
.logo__mark svg { display: block; }
.logo__mark .sq { fill: currentColor; }
.logo__mark .bar { fill: var(--bg); }
.logo__word { font-size: 17px; font-weight: 800; letter-spacing: -0.5px; }
.logo__word span { font-weight: 500; color: var(--dim); }
.ftr .logo { color: var(--bg); }
.ftr .logo:hover { color: var(--bg); }
.ftr .logo__mark .bar { fill: var(--ink); }
.ftr .logo__word span { color: #8A8A86; }
@media (max-width: 760px) { .logo__word { font-size: 16px; } .logo__mark svg { width: 24px; height: 24px; } }

/* ---------- уведомления и заявки ---------- */
.alert { margin: 0 0 18px; padding: 12px 18px; border-radius: 16px; background: #FBE7DC; border: 1px solid #F3B48F; color: var(--accent-ink); font-size: 14px; font-weight: 500; }
.alert--ok { background: #E9EDE7; border-color: #C6D0C2; color: #2F4A2A; }
.reqs { display: flex; flex-direction: column; gap: 14px; }
.reqs h2 { margin: 0; }
.req { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.req:first-of-type { border-top: 0; padding-top: 0; }
.req__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.req__status { font-size: 12px; font-weight: 700; letter-spacing: 0.48px; text-transform: uppercase; color: var(--accent-ink); }
.req__task { margin: 0; color: var(--muted); font-size: 15px; }
.req__meta { font-size: 13px; color: var(--dim); }

/* ---------- плашка о cookie ---------- */
.cookies {
  position: fixed; left: 50%; bottom: 20px; z-index: 40;
  width: min(680px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: rgba(0, 0, 0, 0.14) 0 20px 50px -24px;
  transform: translate(-50%, calc(100% + 32px)); opacity: 0; visibility: hidden;
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.32s ease, visibility 0.42s;
}
.cookies.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookies__text { margin: 0; flex: 1 1 300px; font-size: 14px; line-height: 20px; color: var(--muted); }
.cookies__acts { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 520px) {
  .cookies { bottom: 12px; padding: 16px 18px; border-radius: 18px; gap: 14px; }
  .cookies__text { font-size: 13px; line-height: 19px; }
  .cookies__acts { width: 100%; margin-left: 0; }
  .cookies__acts .btn { flex: 1 1 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookies { transition: opacity 0.2s ease, visibility 0.2s; transform: translate(-50%, 0); }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 24px; transition: border-color 0.2s ease, background 0.2s ease; }
.faq__item[open] { border-color: #D8D2CB; background: #FFFFFF; }
.faq__item:hover { border-color: #D8D2CB; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.28px; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: none; width: 20px; height: 20px; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--accent); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease; }
.faq__sign::before { width: 14px; height: 2px; }
.faq__sign::after { width: 2px; height: 14px; }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { margin: 0; padding: 0 40px 22px 0; font-size: 15px; line-height: 22px; color: var(--muted); animation: faqIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .faq__item { padding: 2px 18px; border-radius: 16px; }
  .faq__q { font-size: 16px; padding: 16px 0; gap: 14px; }
  .faq__a { padding: 0 0 18px; font-size: 14px; }
}

/* ---------- админ-панель ---------- */
.admin .page { max-width: 1180px; }
.admin .card {
  border-radius: 24px; padding: 24px 26px; box-shadow: none; border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.admin .card h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; margin: 0 0 2px; }
.admin .card__sub { font-size: 13px; margin: 0 0 18px; }
.admin .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin .dash__top { margin-bottom: 24px; }
.admin .ftr__bar { border-top: 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.stat--dark { border-color: var(--ink); }
.stat--dark { background: var(--ink); color: var(--bg); }
.stat__label { font-size: 12px; font-weight: 700; letter-spacing: 0.48px; text-transform: uppercase; color: var(--dim); }
.stat--dark .stat__label { color: #B9B9B4; }
.stat__val { font-size: 36px; font-weight: 600; line-height: 1.05; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: 13px; color: var(--muted); }
.stat--dark .stat__sub { color: #D1CDC7; }

.chart-card { margin-bottom: 16px; }
.chart-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-card__top h2 { margin: 0; }
.chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend__box { width: 10px; height: 10px; border-radius: 3px; background: #E3DFDA; display: block; }
.chart-legend__box--u { background: var(--accent); }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; }
.chart__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart__bar { position: relative; width: 100%; max-width: 16px; border-radius: 6px 6px 3px 3px; background: #E3DFDA; display: flex; align-items: flex-end; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; animation: barGrow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 18ms); transform-origin: 50% 100%; }
.chart__col:hover .chart__bar { background: #D1CDC7; transform: scaleX(1.15); }
.chart__uniq { position: absolute; bottom: 0; left: 0; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--accent); }
.chart__cap { font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
@keyframes barGrow { from { transform: scaleY(0.02); opacity: 0; } to { transform: none; opacity: 1; } }

.chart__empty { margin: 0; align-self: center; width: 100%; text-align: center; font-size: 14px; color: var(--muted); }
.chart:has(.chart__empty) { align-items: center; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bars { margin-top: auto; }

.utm { margin-bottom: 16px; }
.utm__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.utm__top h2 { margin: 0 0 2px; }
.utm__top .card__sub { margin: 0; }
.utm__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.utm__tab { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.utm__tab:hover { border-color: #D8D2CB; color: var(--ink); }
.utm__tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.utm-build { margin-bottom: 16px; }
.utm-build__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.utm-build__out { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: 14px; margin-bottom: 14px; }
.utm-build__link { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 18px; color: var(--ink); word-break: break-all; }
.utm-build__out .btn { flex: none; }
.utm-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.utm-presets__label { font-size: 13px; color: var(--dim); }
.chip--btn { border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.chip--btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 860px) {
  .utm-build__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .utm-build__grid { grid-template-columns: 1fr; }
  .utm__tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .utm__tabs::-webkit-scrollbar { display: none; }
  .utm__tab { white-space: nowrap; }
  .utm-build__out { flex-direction: column; align-items: stretch; }
  .utm-build__out .btn { width: 100%; }
}
.bar { display: grid; grid-template-columns: minmax(120px, 42%) 1fr 46px; align-items: center; gap: 12px; font-size: 14px; }
.bar__label { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__track { height: 8px; border-radius: 99px; background: #EFEAE4; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); animation: barSlide 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 45ms); transform-origin: 0 50%; }
@keyframes barSlide { from { transform: scaleX(0); } to { transform: none; } }
.bar__val { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; text-align: right; }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .admin .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin .page { padding: 24px 16px 48px; }
  .admin .card { border-radius: 20px; padding: 20px 18px; }
  .admin .dash__top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .admin .dash__top h1 { font-size: 28px; }
  .stats { gap: 10px; margin-bottom: 10px; }
  .stat { border-radius: 18px; padding: 16px; gap: 4px; }
  .stat__label { font-size: 11px; letter-spacing: 0.4px; }
  .stat__val { font-size: 28px; }
  .stat__sub { font-size: 12px; }
  .chart { height: 130px; gap: 2px; }
  .chart__bar { max-width: none; border-radius: 4px 4px 2px 2px; }
  .chart__cap { display: none; }
  .chart-card__top { margin-bottom: 14px; }
  .chart-legend { font-size: 12px; gap: 12px; }
  .bar { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "label val" "track track"; gap: 6px 10px; font-size: 13px; }
  .bar__label { grid-area: label; }
  .bar__val { grid-area: val; }
  .bar__track { grid-area: track; }
  .admin .req__status { font-size: 11px; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- движение ---------- */
html { scroll-behavior: smooth; }

.progress { position: sticky; top: var(--hdr-h, 69px); z-index: 19; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

@keyframes hdrIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.hdr { animation: hdrIn 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) both; }

.reveal { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(4px); transition: opacity 0.62s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.62s ease; will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* строки таблицы и мелкие элементы выезжают вбок — другой ритм, чем у карточек */
.reveal--row { transform: translateX(-16px) scale(1); filter: none; transition-duration: 0.5s; }

/* заставка первой загрузки */
@keyframes bootFade { from { opacity: 1; } to { opacity: 0; } }
.boot { position: fixed; inset: 0; z-index: 60; background: #F3F0EE; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.boot.is-done { animation: bootFade 0.5s ease forwards; }
.boot__mark { width: 44px; height: 44px; border-radius: 14px; background: var(--ink, #141413); display: flex; align-items: center; justify-content: center; animation: bootPulse 1.1s cubic-bezier(0.4, 0, 0.3, 1) infinite; }
.boot__mark span { display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--accent, #F37338); }
@keyframes bootPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.86); } }

/* этапы работы */
.steps > div { transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.3s ease; }
.steps > div:hover { transform: translateY(-6px); box-shadow: rgba(0, 0, 0, 0.1) 0 24px 44px -26px; }

/* таблица сравнения */
.compare tbody tr { transition: background 0.2s ease; }
.compare tbody tr:hover td { background: #F7F4F1; }
.compare tbody tr:hover td:last-child { background: #FFEFE6; }
.compare svg { transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1); }
.compare tbody tr:hover svg { transform: scale(1.12); }

/* курсорная подсветка у тёмных блоков */
@keyframes accentPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.65; } }
#pricing span[style*="background: #F37338"] { animation: accentPulse 3.2s ease-in-out infinite; }

.btn, .btn-cta, .pw-toggle, .hdr__nav a, .ftr a {
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.18s ease;
}
.btn:hover, .btn-cta:hover { transform: translateY(-2px); box-shadow: rgba(20, 20, 19, 0.16) 0 10px 22px -12px; }
.btn:active, .btn-cta:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-cta:hover { background: #262627 !important; color: #F3F0EE !important; }
.pw-toggle:active { transform: translateY(-50%) scale(0.9); }
.hdr__nav a:hover { transform: translateY(-1px); }
.card, .empty, .notice, .mock { transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1); }
.cards figure > div { transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.3s ease; }
.cards figure:hover > div { transform: translateY(-6px); box-shadow: rgba(0, 0, 0, 0.12) 0 28px 52px -24px; }
.field input, .field select { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.field input:focus, .field select:focus { box-shadow: rgba(20, 20, 19, 0.08) 0 0 0 4px; }

.compare__scroll { -webkit-overflow-scrolling: touch; }
.compare__hint { display: none; }
@media (max-width: 860px) { .compare__hint { display: block; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hdr { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .faq__a, .chart__bar, .bar__fill, .demo__spinner, .demo__skeleton::before, .boot__mark, #pricing span[style*="background: #F37338"] { animation: none; }
  .boot { display: none; }
  .steps > div:hover { transform: none; }
  .btn:hover, .btn-cta:hover, .cards figure:hover > div, .hdr__nav a:hover { transform: none; }
}


/* ---------- страницы ошибок ---------- */
.err { display: grid; place-items: center; min-height: calc(100vh - var(--hdr-h, 69px) - 220px); padding: clamp(48px, 9vw, 120px) 20px; }
.err__in { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.err__code {
  font-size: clamp(84px, 18vw, 168px); font-weight: 800; line-height: 0.86; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(20, 18, 17, 0.16); margin-bottom: 6px;
}
.err__in h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.err__in p { margin: 0; color: #555555; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.err__acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
