:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4b5563;
  --line: #e5e7eb;
  --field: #d1d5db;
  --accent: #1a73e8;
  --accent-hover: #1557b0;
  --accent-soft: #e8f0fe;
  --accent-ink: #174ea6;
  --telegram: #229ed9;
  --gsc-ink: #202124;
  --gsc-muted: #5f6368;
  --gsc-line: #dadce0;
  --ok: #137333;
  --ok-soft: #e6f4ea;
  --err: #b3261e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, sans-serif; line-height: 1.5; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sec { padding: 88px 0; }
.sec h2 { font-size: 40px; font-weight: 800; }
.sub { margin: 12px 0 0; font-size: 17px; color: var(--muted); max-width: 680px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid transparent; cursor: pointer; padding: 10px 18px; min-height: 44px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--field); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-telegram { background: var(--telegram); color: #fff; margin-top: 28px; padding: 14px 22px; }
.btn-telegram:hover { color: #fff; filter: brightness(0.95); }
.btn-sm { font-size: 15px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }

.hero { background: var(--surface); padding: 88px 0 72px; }
.eyebrow { margin: 0 0 16px; display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; max-width: 860px; }
.lead { margin: 24px 0 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 56px; }
.stat { background: var(--bg); border-radius: 12px; padding: 20px; }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.stat-impr { color: #5e35b1; }
.stat-clicks { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

.live-note { display: flex; align-items: center; gap: 10px; color: var(--ok); }
.live-note-sm { margin: 48px 0 0; font-size: 14px; font-weight: 600; }
.live-note-sm + .stats { margin-top: 16px; }
.live-note-lg { margin-top: 24px; align-items: flex-start; background: var(--ok-soft); border: 1px solid #ceead6; border-radius: 12px; padding: 16px 18px; }
.live-note-lg strong { display: block; font-size: 17px; color: #0d5626; }
.live-note-lg span:not(.live-dot) { display: block; font-size: 15px; color: #1e4620; margin-top: 2px; }
.live-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1e8e3e; margin-top: 2px; }
.live-note-lg .live-dot { margin-top: 7px; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #1e8e3e; opacity: 0; animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }

.why { padding-bottom: 24px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; color: var(--accent); }
.why-card h3 { margin: 16px 0 8px; font-size: 20px; color: var(--ink); }
.why-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.filters:first-of-type { margin-top: 28px; }
.filter-label { font-size: 14px; color: var(--muted); font-weight: 600; margin-right: 4px; min-width: 52px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--field); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 24px; margin-top: 28px; }
.empty { margin: 24px 0 0; color: var(--muted); font-size: 16px; }

.site-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.site-card[hidden] { display: none; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.card-id { min-width: 0; }
.card-domain { font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-all; }
.card-meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.pos-badge { font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.gsc { font-family: Roboto, Arial, sans-serif; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gsc-title { font-size: 14px; font-weight: 500; color: var(--gsc-ink); margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; }
.tile { font-family: inherit; text-align: left; cursor: pointer; border-radius: 8px; padding: 10px 12px; min-height: 76px; background: var(--surface); color: var(--gsc-muted); border: 1px solid var(--gsc-line); }
.tile[aria-pressed="true"] { background: var(--c); color: #fff; border-color: var(--c); }
.tile-label { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; }
.tile-box { width: 14px; height: 14px; flex: none; border-radius: 3px; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; }
.tile-box svg { visibility: hidden; }
.tile[aria-pressed="true"] .tile-box svg { visibility: visible; }
.tile-value { display: block; font-size: 22px; margin-top: 8px; }

.chart { position: relative; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.chart .grid { stroke: #eceff1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .grid.base { stroke: #cfd8dc; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .line[hidden] { display: none; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--gsc-muted); margin-top: 6px; }
.chart-cursor { position: absolute; top: 0; height: 150px; width: 1px; background: var(--gsc-muted); pointer-events: none; }
.chart-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--gsc-line); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--gsc-ink); white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); z-index: 2; }
.chart-tip b { display: block; font-weight: 500; margin-bottom: 4px; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; font-style: normal; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.price { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.price-label { font-size: 13px; color: var(--muted); }
.price-value { font-size: 18px; font-weight: 700; margin-top: 2px; }
.price-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #eef0f2; padding-top: 14px; }
.updated { font-size: 12px; color: var(--gsc-muted); }

.terms { background: var(--ink); color: #fff; padding: 40px 0; }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.terms strong { display: block; font-size: 22px; font-weight: 800; }
.terms span { display: block; font-size: 14px; color: #d1d5db; margin-top: 4px; }

.how { background: var(--surface); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; }
.step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.steps h3 { margin: 16px 0 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }

.faq h2 { margin-bottom: 28px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

.order-sec { background: var(--surface); }
.order-in { display: flex; flex-wrap: wrap; gap: 48px; }
.order-text { flex: 1 1 320px; }
.lead-form { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; background: var(--bg); border-radius: 16px; padding: 28px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lead-form input, .lead-form select, .lead-form textarea { min-height: 46px; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px; font: inherit; font-weight: 400; background: var(--surface); color: var(--ink); }
.lead-form textarea { padding: 12px; resize: vertical; }
.lead-form .full { grid-column: 1 / -1; }
.lead-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-status { margin: 0; min-height: 1.5em; font-size: 15px; }
.lead-status.ok { color: var(--ok); }
.lead-status.err { color: var(--err); }

.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .sec { padding: 56px 0; }
  .sec h2 { font-size: 30px; }
  .wrap { padding: 0 16px; }
  .site-card { padding: 16px; }
  .lead-form { padding: 20px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
