/* КликСтоп — общий стиль сайта и кабинета */
/* Шрифты хранятся у себя: быстрее и без передачи IP посетителей в Google */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/unbounded-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  /* КликСтоп: асфальт, сигнальный красный, дорожная разметка */
  --ink: #1D2230;
  --ink-2: #2D3344;
  --paper: #ffffff;
  --mist: #F1F2F4;
  --line: #DCDFE5;
  --muted: #5D6473;
  --stop: #E3262E;
  --stop-dark: #C21B23;
  --stop-bg: #FDE7E7;
  --go: #1E9A57;
  --go-bg: #E2F4EA;
  --amber: #B98500;
  --amber-sign: #F2B705;
  --amber-bg: #FFF4D1;
  --barrier: repeating-linear-gradient(-45deg, var(--stop) 0 12px, #fff 12px 24px);
  --radius: 10px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--paper); }
body.site { min-height: 100vh; display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: rgba(29, 34, 48, .35); text-underline-offset: 3px; }
a:hover { color: var(--stop-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--stop); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 800px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; border: 2px solid var(--stop);
  background: var(--stop); color: #fff; font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--stop-dark); border-color: var(--stop-dark); color: #fff; }
.btn--big { padding: 16px 28px; font-size: 1.06rem; }
.btn--small { padding: 8px 14px; font-size: .92rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--mist); color: var(--ink); border-color: var(--ink); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.btn--danger { background: transparent; color: var(--stop-dark); border-color: var(--stop); }
.btn--danger:hover { background: var(--stop); color: #fff; }
.link-more { font-weight: 600; }

/* ---------- шапка ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.05rem var(--display); color: var(--ink); }
.logo span { font-weight: 700; letter-spacing: -.01em; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-burger { display: none; }
.menu__nav { display: flex; align-items: center; gap: 26px; }
.menu__nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .96rem; }
.menu__nav a[aria-current="page"] { color: var(--stop-dark); }
@media (max-width: 960px) {
  .menu-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; }
  .menu-burger span, .menu-burger span::before, .menu-burger span::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s;
  }
  .menu-burger span { top: 21px; }
  .menu-burger span::before { left: 0; top: -7px; }
  .menu-burger span::after { left: 0; top: 7px; }
  .menu-toggle:focus-visible + .menu-burger { outline: 3px solid var(--stop); }
  .menu__nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .menu__nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .menu__nav .btn { margin-top: 14px; }
  .menu-toggle:checked ~ .menu__nav { display: flex; }
}

.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: 8px; background: var(--mist); }
.flash--ok { background: var(--go-bg); }
.flash--error { background: var(--stop-bg); }
.flash--info { background: var(--amber-bg); }

/* ---------- первый экран ---------- */
.hero { padding: 64px 0 72px; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--barrier); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 28px 0 14px; }
.hero__fine { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
}

/* Журнал переходов — главный визуальный элемент */
.clicklog { margin: 0; background: var(--ink); color: #e9edf4; border-radius: 14px; padding: 6px 0 10px; box-shadow: 0 30px 60px -30px rgba(29, 34, 48, .6); }
.clicklog__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 12px; font-weight: 600; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.clicklog__live { font-weight: 500; font-size: .82rem; color: #9aa6bd; display: inline-flex; align-items: center; gap: 6px; }
.clicklog__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px rgba(30,154,87,.25); }
.clicklog__rows { list-style: none; margin: 0; padding: 0; }
.clicklog__row {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center;
  padding: 11px 20px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .92rem;
  animation: row-in .45s ease-out both; animation-delay: calc(var(--i) * 140ms + 200ms);
}
.clicklog__row:last-child { border-bottom: 0; }
.clicklog__row time { color: #8b97ad; font-variant-numeric: tabular-nums; }
.clicklog__src { min-width: 0; }
.clicklog__src small { display: block; color: #8b97ad; font-size: .82rem; }
.clicklog__stamp {
  font-weight: 600; font-size: .84rem; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  border: 1.5px solid currentColor; animation: stamp .35s cubic-bezier(.3,1.6,.5,1) both;
  animation-delay: calc(var(--i) * 140ms + 420ms);
}
.clicklog__stamp b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.v-human .clicklog__stamp { color: #5fd394; }
.v-bot .clicklog__stamp { color: #fff; background: var(--stop); border-color: var(--stop); }
.v-suspect .clicklog__stamp { color: var(--amber-sign); }
.clicklog__row { position: relative; }
.v-bot.clicklog__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(-45deg, var(--stop) 0 5px, #fff 5px 10px); }
.v-bot .clicklog__src { color: #9aa3b5; }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .clicklog__row { grid-template-columns: 1fr auto; }
  .clicklog__row time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .clicklog__row, .clicklog__stamp { animation: none; }
}

/* ---------- секции ---------- */
.section { padding: 80px 0; }
.section:not(.section--tint):not(.section--ink):not(.cta-end) + .section:not(.section--tint):not(.section--ink):not(.cta-end) { padding-top: 0; }
.section--tint { background: var(--mist); }
.section--ink { background: var(--ink); color: #e9edf4; }
.section--ink h2 { color: #fff; }
.section__lead { font-size: 1.08rem; color: var(--muted); max-width: 44em; margin-bottom: 36px; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
.split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; }
@media (max-width: 900px) { .split, .split--media { grid-template-columns: 1fr; gap: 24px; } }
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.ticks { list-style: none; padding: 0; margin: 1.4em 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--stop); }
.ticks--light li::before { background: var(--go); }
.section--ink .ticks { margin-bottom: 2em; }

/* Шаги подключения — реальная последовательность, поэтому нумерация */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 32px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.1rem var(--display); margin-bottom: 18px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: 12px; border-top: 2px dashed var(--line); }
.steps h3 { font-weight: 700; font-size: 1.1rem; }
.steps p { color: var(--ink-2); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li:not(:last-child)::after { display: none; }
}

.signals { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.signals > div { padding: 22px 24px 8px 0; }
.signals > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.signals h3 { font-weight: 700; margin-bottom: .8em; }
.signals ul { list-style: none; padding: 0; margin: 0 0 1em; }
.signals li { padding: 7px 0; border-bottom: 1px solid var(--mist); font-size: .97rem; }
@media (max-width: 900px) {
  .signals { grid-template-columns: 1fr 1fr; }
  .signals > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .signals { grid-template-columns: 1fr; }
  .signals > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.shot { border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15); }

/* ---------- тарифы ---------- */
.pricing__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing__table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
.pricing__table th, .pricing__table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing__table thead th { font: 700 1.25rem var(--display); border-bottom: 2px solid var(--ink); }
.pricing__table tbody th { font-weight: 500; color: var(--muted); width: 26%; }
.pricing__table .is-main { background: var(--mist); }
.pricing__table thead .is-main { border-radius: 10px 10px 0 0; }
.pricing__table tr:last-child td { border-bottom: 0; }
.pricing__table tr:last-child .is-main { border-radius: 0 0 10px 10px; }
.pricing__price strong { display: block; font: 700 1.6rem var(--display); }
.pricing__price small { color: var(--muted); font-size: .86rem; }
.pricing__note { color: var(--muted); max-width: 52em; margin-top: 22px; font-size: .97rem; }

.pricing__mobile { display: none; }
@media (max-width: 640px) {
  .pricing__scroll { display: none; }
  .pricing__mobile { display: grid; gap: 12px; }
  .pricing__plan { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
  .pricing__plan.is-main { border-color: var(--stop); background: var(--mist); }
  .pricing__plan h3 { font-weight: 700; font-size: 1.15rem; margin-bottom: .4em; }
  .pricing__plan .pricing__price { margin-bottom: .3em; }
  .pricing__plan .pricing__price strong { display: inline; }
  .pricing__plan .btn { width: 100%; margin-top: 6px; }
}

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 8px; top: 28px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq__a { padding: 0 0 18px; color: var(--ink-2); max-width: 44em; }

.cta-end { background: var(--ink); color: #fff; border-top: 10px solid transparent; border-image: var(--barrier) 10; }
.cta-end h2 { color: #fff; }
.cta-end p { max-width: 36em; font-size: 1.1rem; }


/* ---------- внутренние страницы ---------- */
.page-head { padding: 56px 0 28px; }
.page-head p { font-size: 1.12rem; color: var(--ink-2); max-width: 42em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article { padding-bottom: 72px; }
.aside-cta { background: var(--mist); border-radius: var(--radius); padding: 24px; margin: 2em 0; position: sticky; top: 24px; }
.aside-cta p { margin-bottom: .8em; }
.table-plain { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .97rem; }
.table-plain th, .table-plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-plain th { font-weight: 600; background: var(--mist); }

/* ---------- подвал ---------- */
.footer { background: #141824; color: #b9c2d3; padding: 48px 0 40px; font-size: .94rem; }
.footer a { color: #e9edf4; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 36px; }
.footer__brand { font: 700 1.1rem var(--display); color: #fff; display: flex; align-items: center; gap: 8px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer__pay { color: #8f98aa; font-size: .86rem; }
@media (max-width: 800px) { .footer__in { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- формы ---------- */
.auth { padding: 56px 0 72px; }
.auth__box { max-width: 440px; margin: 0 auto; }
.auth__box h1 { font-size: 1.9rem; }
.auth__alt { margin-top: 22px; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field small { display: block; color: var(--muted); font-size: .86rem; margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem;
  background: #fff; color: var(--ink);
}
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(29,34,48,.12); }
textarea.input { min-height: 96px; resize: vertical; }
.field--error .input { border-color: var(--stop); }
.field__err { color: var(--stop-dark); font-size: .88rem; margin-top: 6px; }
.check, .field label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--stop); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ================= Кабинет ================= */
body.app { background: var(--mist); font-size: 15px; }
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #c4ccda; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.side__inner { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; min-height: calc(100vh - 40px); }
.side .logo { color: #fff; padding: 4px 8px 20px; }
.side a.nav-i { display: block; padding: 9px 12px; border-radius: 8px; color: #c4ccda; text-decoration: none; font-weight: 500; }
.side a.nav-i:hover { background: var(--ink-2); color: #fff; }
.side a.nav-i[aria-current="page"] { background: var(--ink-2); color: #fff; box-shadow: inset 3px 0 0 var(--stop); }
.side__group { margin-top: 18px; padding: 0 12px 6px; font-size: .8rem; color: #7f8aa0; }
.side__foot { margin-top: auto; font-size: .86rem; padding: 12px; border-top: 1px solid var(--ink-2); }
.side__foot form { margin: 8px 0 0; }
.side__foot button { background: none; border: 0; color: #c4ccda; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.app-main { padding: 28px 32px 60px; min-width: 0; }
.app-main h1 { font-size: 1.6rem; margin-bottom: .4em; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.app-head p { margin: 0; color: var(--muted); }
.impersonate { background: var(--amber-bg); padding: 10px 32px; display: flex; gap: 16px; align-items: center; font-size: .92rem; border-bottom: 1px solid #efd99b; }
.impersonate button { background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { padding: 10px 12px; }
  .side__inner { position: static; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .logo { padding: 4px 8px; margin-right: auto; }
  .side__group { display: none; }
  .side__foot { margin: 0; border: 0; padding: 4px 8px; }
  .app-main { padding: 20px 16px 48px; }
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; min-width: 0; }
.panel h2 { font-size: 1.05rem; font-family: var(--text); font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.panel--warn { background: var(--amber-bg); border-color: #efd99b; }
.panel--danger { border-color: #f3b8ae; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.grid-2 > .panel { margin-bottom: 0; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi__l { color: var(--muted); font-size: .86rem; }
.kpi__n { font: 700 1.6rem var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi__s { color: var(--muted); font-size: .84rem; }
.c-bot { color: var(--stop); } .c-sus { color: var(--amber); } .c-hum { color: var(--go); }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.tbl th { font-size: .82rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--line); }
.tbl .num { text-align: right; }
.tbl tr:hover td { background: #fafbfc; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.bar { height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--stop); }
.bar--usage i { background: var(--ink); }
.bar--usage.is-high i { background: var(--stop); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.tag--bot { background: var(--stop-bg); color: var(--stop-dark); }
.tag--suspect { background: var(--amber-bg); color: #8a5d00; }
.tag--human { background: var(--go-bg); color: #1f6a39; }
.tag--good_bot { background: #e6ecfb; color: #3550a8; }
.tag--off { background: var(--mist); color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a { padding: 7px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .92rem; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.tabs a[aria-current="page"], .tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select, .filters .input { width: auto; padding: 7px 10px; font-size: .92rem; }

.days { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-bottom: 26px; }
.day { flex: 1; display: flex; flex-direction: column-reverse; min-width: 5px; max-width: 46px; position: relative; }
.day i { display: block; }
.day .lbl { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.code { position: relative; background: var(--ink); color: #e9edf4; border-radius: 10px; padding: 16px 18px; padding-right: 120px; overflow-x: auto; }
.code code { white-space: pre; }
.code button { position: absolute; right: 10px; top: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.status--ok::before { background: var(--go); }
.status--wait::before { background: var(--amber); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.howto { counter-reset: h; list-style: none; padding: 0; margin: 0; }
.howto > li { counter-increment: h; padding-left: 40px; position: relative; margin-bottom: 16px; }
.howto > li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--mist); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.reasons-cell { color: var(--muted); font-size: .84rem; max-width: 520px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
details.more pre { white-space: pre-wrap; word-break: break-all; font-size: .76rem; max-width: 560px; background: var(--mist); padding: 10px; border-radius: 8px; }

.site-list { display: grid; gap: 12px; }
.site-row { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.site-row:hover { border-color: var(--ink); color: var(--ink); }
.site-row b { display: block; font-size: 1.05rem; }
@media (max-width: 760px) { .site-row { grid-template-columns: 1fr 1fr; } }
.empty { text-align: center; padding: 48px 20px; }
.empty p { color: var(--muted); max-width: 30em; margin: 0 auto 18px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-opt { position: relative; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt label { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; background: #fff; height: 100%; }
.plan-opt input:checked + label { border-color: var(--stop); box-shadow: 0 0 0 3px var(--stop-bg); }
.plan-opt input:focus-visible + label { outline: 3px solid var(--stop); outline-offset: 2px; }
.plan-opt b { font: 700 1.1rem var(--display); display: block; margin-bottom: 4px; }
.plan-opt .price { font-weight: 600; font-size: 1.15rem; }
.periods { display: flex; flex-wrap: wrap; gap: 8px; }
.period-opt input { position: absolute; opacity: 0; }
.period-opt label { display: block; padding: 9px 16px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; font-weight: 500; }
.period-opt input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.period-opt input:focus-visible + label { outline: 3px solid var(--stop); outline-offset: 2px; }
.total { font: 700 1.5rem var(--display); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.inline-form { display: inline; }


/* ================= Иллюстрации и блоки внутренних страниц ================= */
.page-head--split .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .page-head--split .wrap { grid-template-columns: 1fr; gap: 28px; } }
.figure { margin: 2.2em 0; }
.figure figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.figure--wide { margin: 0 0 56px; }

/* Схема: путь клика */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: flow; }
.flow li { position: relative; padding: 0 18px 0 0; counter-increment: flow; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 64px; right: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.flow__icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--mist); margin-bottom: 14px; position: relative; z-index: 1; }
.flow__icon svg { width: 28px; height: 28px; }
.flow li.is-stop .flow__icon { background: var(--stop); color: #fff; }
.flow li.is-go .flow__icon { background: var(--ink); color: #fff; }
.flow b { display: block; font-size: 1rem; margin-bottom: 4px; }
.flow span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 0; }
  .flow__icon { margin: 0; grid-row: span 2; }
  .flow li:not(:last-child)::after { top: 60px; bottom: -16px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
}

/* Шкала оценки */
.scale { margin: 8px 0 0; }
.scale__bar { position: relative; height: 18px; border-radius: 9px; overflow: hidden; display: flex; }
.scale__bar i { display: block; height: 100%; }
.scale__ticks { position: relative; height: 18px; font-size: .8rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.scale__ticks span { position: absolute; transform: translateX(-50%); }
.scale__ticks span:first-child { transform: none; }
.scale__ticks span:last-child { transform: translateX(-100%); }
.scale__zones { display: grid; grid-template-columns: 40fr 30fr 30fr; gap: 0; margin-top: 14px; font-size: .9rem; }
.scale__zones div { padding-right: 12px; }
.scale__zones b { display: block; }
.scale__marks { position: relative; height: 150px; margin-top: 4px; }
.scale__mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: .8rem; white-space: nowrap; }
.scale__mark::before { content: ""; display: block; width: 2px; height: 16px; background: var(--ink); margin: 0 auto 4px; }
.scale__mark b { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; }
.scale__mark--low::before { height: 66px; }
.scale__mark--start { transform: none; text-align: left; }
.scale__mark--start::before { margin-left: 0; }
.scale__mark--end { transform: translateX(-100%); text-align: right; }
.scale__mark--end::before { margin-right: 0; }
@media (max-width: 640px) { .scale__marks { height: auto; display: grid; gap: 8px; } .scale__mark, .scale__mark--end { position: static; transform: none; text-align: left; } .scale__mark::before { display: none; } }
@media (max-width: 640px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table-stack td { border: 0; padding: 2px 0; }
  .table-stack td:first-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); }
  .table-stack td:nth-child(2) { font-weight: 600; }
}

/* Карточка вердикта */
.verdict { background: var(--ink); color: #e9edf4; border-radius: 14px; padding: 22px 24px; box-shadow: 0 30px 60px -30px rgba(29,34,48,.6); position: relative; overflow: hidden; }
.verdict::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(-45deg, var(--stop) 0 6px, #fff 6px 12px); }
.verdict__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.verdict__src { font-size: .9rem; color: #9aa3b5; }
.verdict__src b { display: block; color: #fff; font-size: 1rem; }
.verdict__score { text-align: right; }
.verdict__score strong { display: block; font: 700 2.2rem/1 var(--display); color: #ff6b6b; }
.verdict__score span { font-size: .78rem; color: #9aa3b5; }
.verdict ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.verdict li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.verdict li em { font-style: normal; color: #ff9a8f; font-variant-numeric: tabular-nums; }
.verdict__foot { margin-top: 14px; font-size: .82rem; color: #9aa3b5; }

/* Скриншот в рамке браузера */
.browser { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: #fff; box-shadow: 0 24px 50px -28px rgba(29,34,48,.45); }
.browser__bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.contact-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-weight: 700; margin-bottom: .4em; }
.contact-card a { font-size: 1.1rem; font-weight: 600; }
.contact-card p { margin: .4em 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.req { width: 100%; border-collapse: collapse; }
.req th, .req td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 38%; color: var(--muted); font-weight: 500; padding-right: 16px; }

/* Способы оплаты */
.paymethods { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 1.4em; padding: 0; list-style: none; }
.paymethods li { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: .92rem; }

/* Регистрация и вход: панель с преимуществами */
.auth--split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.auth--split .auth__box { margin: 0; }
.auth__aside { background: var(--ink); color: #e9edf4; border-radius: 16px; padding: 32px; position: relative; overflow: hidden; }
.auth__aside::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--barrier); }
.auth__aside h2 { color: #fff; font-size: 1.4rem; }
.auth__aside .ticks { margin-bottom: 0; }
.auth__aside .ticks li::before { background: var(--go); }
@media (max-width: 900px) { .auth--split .wrap { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* Кабинет: таблицы-карточки на телефоне */
@media (max-width: 700px) {
  .tbl--cards, .tbl--cards tbody, .tbl--cards tr, .tbl--cards td { display: block; width: 100%; }
  .tbl--cards tr:first-child { display: none; }
  .tbl--cards tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .tbl--cards td { border: 0; padding: 3px 0; text-align: left !important; }
  .tbl--cards td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .82rem; }
  .tbl--cards .reasons-cell { max-width: none; }
}
.more-row { text-align: center; margin-top: 14px; }

/* Мобильное меню кабинета — горизонтальная лента */
@media (max-width: 900px) {
  .side__inner { gap: 2px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .side a.nav-i { white-space: nowrap; padding: 8px 10px; }
  .side a.nav-i[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--stop); }
  .side__foot { white-space: nowrap; font-size: .8rem; }
}
.nowrap { white-space: nowrap; }
