:root {
  --blue: #1b90e4;
  --blue-dark: #147dcc;
  --bg: #f6f7f9;
  --ink: #222;
  --muted: #9aa1a9;
  --line: #eee;
  --card: #fff;
  --orange: #f5a623;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; }

.top {
  background: var(--blue);
  color: #fff;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.top-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}
.burger {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: center;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.nav a {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.nav a.active { opacity: 1; }
.nav a:hover { opacity: 0.82; }
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search input {
  width: 188px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  border-radius: 2px;
  padding: 0 12px;
  letter-spacing: 0.14em;
  font-size: 12px;
  text-align: center;
}
.search input::placeholder { color: rgba(255, 255, 255, 0.9); }
.search button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.search button svg { width: 22px; height: 22px; display: block; margin: 0 auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 18px 16px 56px; }
.promo {
  height: 176px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(105deg, #f6e2bc 0%, #e8c27a 55%, #c9843a 100%);
  color: #241c14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  margin: 4px 0 22px;
  overflow: hidden;
  position: relative;
}
.promo-copy { position: relative; z-index: 1; }
.promo-copy p {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
}
.promo-copy strong {
  display: block;
  font-size: 34px;
  line-height: 1.05;
  max-width: 560px;
  font-weight: 800;
}
.promo-art { width: 220px; height: 120px; position: relative; z-index: 1; flex: none; }
.promo-art i {
  position: absolute;
  display: block;
  background: rgba(255,255,255,.55);
  border-radius: 8px;
}
.promo-art i:nth-child(1) { width: 168px; height: 104px; right: 0; top: 8px; background: #fff; }
.promo-art i:nth-child(2) { width: 132px; height: 72px; right: 18px; top: 22px; background: #1b90e4; }
.promo-art i:nth-child(3) { width: 48px; height: 8px; right: 60px; bottom: 0; background: rgba(36,28,20,.28); border-radius: 4px; }
.promo-image { display: block; padding: 0; background: #e8c27a; }
.promo-image img { width: 100%; height: 176px; object-fit: cover; object-position: left center; display: block; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 34px;
  align-items: start;
}
.feature + .side,
.story + .side { margin-top: 40px; }
.crumbs {
  color: #a0a6ad;
  font-size: 13px;
  margin: 2px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a:hover { color: var(--blue); }
.crumbs i { font-style: normal; color: #c5c9cf; }
.feature-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.cover {
  width: 112px;
  height: 112px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 28% 24%, hsl(var(--h) 70% 58%), transparent 42%),
    linear-gradient(160deg, hsl(var(--h) 58% 40%), hsl(var(--h) 42% 18%));
  color: #fff;
  display: grid;
  place-items: center;
}
.cover svg { width: 54%; height: 54%; display: block; }
img.cover-photo { object-fit: cover; object-position: left center; display: block; background: #e8c27a; }
.feature h1, .feature h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 700; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.feature h1 a:hover { color: var(--blue); }
.platform {
  display: inline-flex;
  border: 1px solid #d9dde3;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}
.platform select {
  border: 0;
  background: transparent;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #444;
  cursor: pointer;
  outline: none;
}
.platform-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.score { display: flex; align-items: center; gap: 12px; }
.ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--orange) calc(var(--p) * 1%), #e7eaee 0);
  display: grid;
  place-items: center;
  flex: none;
}
.ring i {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.ring b { font-size: 20px; line-height: 1; }
.ring small { color: var(--muted); font-size: 12px; }
.score-copy { display: grid; gap: 3px; justify-items: start; }
.score-copy span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.stars { color: #d5d8de; letter-spacing: 1px; font-size: 16px; }
.stars .on { color: var(--orange); }
.score-copy button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0;
  cursor: pointer;
}
.score-copy button:disabled { color: #7d8b99; cursor: default; }
.score-copy small { color: var(--muted); font-size: 12px; }

.side { display: grid; gap: 16px; }
.panel {
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(20, 30, 50, 0.08);
  padding: 14px 14px 6px;
}
.panel h2 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--blue);
}
.panel h2 svg { width: 18px; height: 18px; }
.deal {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.deal-ico {
  width: 96px;
  height: 54px;
  border-radius: 4px;
  box-shadow: none;
}
.deal-ico svg { width: 58%; height: 58%; }
img.deal-ico { width: 96px; height: 54px; object-fit: cover; }
.deal-copy { min-width: 0; display: grid; gap: 3px; }
.deal-copy strong {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-copy em { color: #e8890c; font-style: normal; font-size: 12px; }
.price { color: var(--blue); font-weight: 800; font-size: 14px; }
.pop {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pop b { font-size: 14px; line-height: 1.35; }
.pop small { color: var(--muted); }
.pop:hover b { color: var(--blue); }

.home-intro, .home-topics article, .home-faq {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06);
}
.home-intro { padding: 22px 24px 8px; margin: 0 0 18px; }
.home-intro h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.15; }
.home-intro p, .home-topics p, .home-faq p { margin: 0 0 12px; line-height: 1.6; }
.home-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.home-topics article, .home-faq { padding: 18px 20px 8px; }
.home-topics h2, .home-faq h2 { margin: 0 0 8px; font-size: 18px; }
.home-faq { margin-top: 16px; }
.home-faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.home-faq summary { cursor: pointer; font-weight: 700; }
.home-faq details p { margin: 8px 0 0; }
.block { margin-top: 34px; }
.block h2 a:hover { color: var(--blue); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.pager a, .pager span { background: #fff; border-radius: 4px; padding: 8px 12px; }
.pager a:hover { color: var(--blue); }
.block h2, .page-title { margin: 0 0 14px; font-size: 22px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card .cover, .card .cover-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.feature-head img.cover-photo { width: 160px; height: 90px; object-fit: cover; border-radius: 6px; }
.card .pad { padding: 14px 14px 16px; display: grid; gap: 6px; }
.card small, .meta { color: var(--muted); font-size: 12px; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.card p {
  margin: 0;
  color: #5d656e;
  font-size: 13.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover h3 { color: var(--blue); }
.story .prose { margin-top: 22px; max-width: 68ch; }
.prose p { font-size: 16.5px; line-height: 1.75; margin: 0 0 14px; }
.prose h2 { font-size: 20px; margin: 22px 0 8px; }
.meta { margin-bottom: 8px; }
.empty { color: var(--muted); }
.search-page {
  margin: 0 0 18px;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  width: min(520px, 100%);
}
.search-page input {
  flex: 1;
  width: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9dde3;
  letter-spacing: 0;
}
.search-page input::placeholder { color: #9aa1aa; }
.search-page button {
  width: auto;
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  padding: 0 14px;
  font-weight: 700;
}
.topics { display: grid; gap: 10px; }
.topic {
  background: #fff;
  border-radius: 6px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06);
}
.tag {
  background: #e8f4fd;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}
.topic small { color: var(--muted); }
.topic:hover b { color: var(--blue); }
.missing { padding: 40px 0; }
.btn, .missing .btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 4px;
}
.foot {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 28px 18px;
}
.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.foot p { margin: 6px 0 0; color: var(--muted); max-width: 360px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; }
.foot-links a:hover { color: var(--blue); }
.deal-main { display: contents; }
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: #f5a623;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
  padding: 10px 22px;
  border: 0;
  border-radius: 3px;
}
.download-btn:hover { background: #e09010; }
.download-btn.is-off { background: #d5d8de; color: #fff; }
.panel-page { display: grid; gap: 18px; }
.panel-page h1 { margin: 0; }
.saved, .hit-list { display: grid; gap: 10px; }
.hit {
  background: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06);
}
.hit form { display: contents; }
.hit input[type="url"] {
  width: 100%;
  height: 36px;
  border: 1px solid #d9dde3;
  border-radius: 3px;
  padding: 0 10px;
}
.hit button, .panel-page .search-page button { cursor: pointer; }
.notice { margin: 0; color: var(--blue); font-weight: 700; }
.notice.bad { color: #c4472d; }
.kpis, .report-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.kpis article, .report-grid article {
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06);
}
.live-board {
  background: #fff;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 12px;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06);
  display: grid;
  gap: 6px;
}
.live-board.run { outline: 2px solid var(--blue); }
.live-board div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.live-board em { font-style: normal; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }
.live-board em.run { color: var(--blue); }
.live-board strong { font-size: 18px; }
.live-board p { margin: 0; color: var(--muted); }
.meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.meters article { background: #fff; border-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06); }
.meters b, .meters span { display: block; }
.meters span { font-size: 22px; line-height: 1.1; margin: 4px 0; }
.meters small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.track { display: block; height: 8px; background: #e7ebf0; border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--blue); }
.report-grid article.clean { opacity: 0.55; }
.kpis b, .report-grid b { display: block; font-size: 26px; line-height: 1.1; }
.kpis span, .report-grid span, .kpis small { display: block; color: var(--muted); font-size: 12px; }
.kpis small { margin-top: 4px; }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stage-card { background: #fff; border-radius: 6px; padding: 14px; box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06); }
.stage-card.on { outline: 2px solid var(--blue); }
.stage-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.stage-card header span, .stage-card header em { color: var(--muted); font-style: normal; font-size: 13px; }
.stage-card header em.run { color: var(--blue); font-weight: 700; }
.stage-card h3 { margin: 14px 0 4px; font-size: 14px; }
.stage-card table, table.data { width: 100%; border-collapse: collapse; }
.stage-card th, .stage-card td, table.data th, table.data td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  font-size: 13px;
  vertical-align: top;
}
.stage-card th { width: 46%; color: var(--muted); }
table.data th { color: var(--muted); font-weight: 700; }
table.data a { color: var(--blue); }
.line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stage, .pipeline-log, .specs li { background: #fff; border-radius: 6px; }
button.stage {
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06);
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.stage b { display: block; }
.stage span, .stage.on span { color: var(--muted); font-size: 13px; }
.stage .live { display: block; margin-top: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.stage.on { outline: 2px solid var(--blue); }
.stage.picked { outline: 2px solid var(--orange); }
.admin-head, .login form { display: flex; align-items: center; gap: 12px; }
.admin-head { justify-content: space-between; }
.admin-head h1 { margin: 0; }
.bot-detail { background: #fff; border-radius: 6px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06); }
.bot-detail h2 { margin: 0 0 4px; font-size: 18px; }
.bot-detail table { width: 100%; border-collapse: collapse; }
.bot-detail th, .bot-detail td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.bot-detail th { width: 180px; color: var(--muted); }
.login { max-width: 360px; margin: 48px auto; background: #fff; border-radius: 6px; padding: 22px; display: grid; gap: 12px; }
.login h1 { margin: 0; }
.login form { display: grid; gap: 8px; align-items: stretch; }
.login input { height: 40px; border: 1px solid #d9dde3; border-radius: 3px; padding: 0 10px; }
.login button, .admin-head button { height: 36px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; cursor: pointer; }
.run-box { background: #fff; border-radius: 6px; padding: 16px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(20, 30, 50, 0.06); }
.run-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.run-head h2 { margin: 0; font-size: 18px; }
.run-head p, #pipe-message { margin: 0; font-size: 16px; font-weight: 700; }
#run-progress { margin: 12px 0; }
#run-progress p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; flex-wrap: wrap; }
#run-progress b { font-size: 22px; }
#run-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
#run-list li { display: flex; gap: 8px; align-items: baseline; }
#run-list em { font-style: normal; font-size: 12px; font-weight: 800; min-width: 64px; }
#run-list .ok em { color: #1a7f37; }
#run-list .bad em { color: #b42318; }
#run-list a { color: var(--blue); }
.pipeline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pipeline-actions input { width: 72px; height: 36px; border: 1px solid #d9dde3; border-radius: 3px; padding: 0 8px; }
.pipeline-actions button, .hit button {
  height: 36px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}
.pipeline-actions .quiet { background: #6b7280; }
.pipeline-log {
  margin: 0;
  min-height: 140px;
  max-height: 280px;
  overflow: auto;
  background: #1c2430;
  color: #d7dee8;
  padding: 12px;
  font: 13px/1.45 Consolas, monospace;
  white-space: pre-wrap;
}
.recent { margin: 0; padding-left: 18px; }
.recent a { color: var(--blue); }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.specs li { border: 1px solid var(--line); padding: 6px 10px; }
.specs span { color: var(--muted); margin-right: 6px; }

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 12px;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 18px; width: 100%; }
  .grid, .cards, .feature-head, .topic, .hit, .line, .kpis, .report-grid, .funnel, .home-topics, .meters { grid-template-columns: 1fr; }
  .home-intro h1 { font-size: 26px; }
  .score { justify-content: flex-start; }
  .promo { height: auto; min-height: 120px; padding: 22px; }
  .promo-image { height: 140px; min-height: 0; padding: 0; }
  .promo-image img { height: 140px; }
  .promo-copy strong { font-size: 24px; }
  .promo-art { display: none; }
  .foot-inner { flex-direction: column; }
  .search input { width: 120px; }
}
