/* Public SEO site (boardview.ru) — shared styles. Visual language mirrors
   the app's landing (static/landing), trimmed to what these pages use. */
:root {
  --bg: #0d1117;
  --panel: #141a23;
  --panel-2: #1b2330;
  --panel-3: #232c3b;
  --border: #2a3344;
  --border-soft: #202838;
  --text: #e7ebf2;
  --muted: #8891a3;
  --muted-2: #626d82;
  --accent: #5b9dff;
  --accent-strong: #3f84f0;
  --accent-ink: #061427;
  --success: #51cf66;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------------- header ---------------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #8f5bff);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
nav.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
nav.main-nav a:hover { color: var(--text); background: var(--panel-2); }
nav.main-nav a.active { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.btn:hover { border-color: var(--muted-2); background: var(--panel-3); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

/* ---------------- hero / page head ---------------- */
.hero { padding: 84px 24px 56px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 auto 18px; max-width: 820px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 16.5px; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.page-head { padding: 56px 24px 8px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: -0.01em; }
.page-head p { color: var(--muted); font-size: 15px; margin: 0; max-width: 700px; }

/* ---------------- sections ---------------- */
.section { padding: 56px 24px; }
.section-head { max-width: 660px; margin: 0 0 36px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--panel) 10%, var(--panel) 90%, transparent); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: block;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.card:hover { border-color: var(--muted-2); transform: translateY(-2px); }
.card .c-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.card .go { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------------- search ---------------- */
.search-box {
  max-width: 640px; margin: 0 auto 14px;
  display: flex; align-items: center; gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-md);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14.5px; font-family: inherit;
  padding: 10px 0;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-hint { font-size: 12.5px; color: var(--muted-2); text-align: center; }
.search-hint b { color: var(--muted); font-weight: 600; }

/* ---------------- results ---------------- */
.results { max-width: 860px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.result-card { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 16px 18px; }
.result-card .r-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result-card .r-top b { font-size: 15px; }
.result-card .r-top .meta { color: var(--muted); font-size: 12.5px; }
.result-card .r-ds { font-size: 12.5px; margin-left: auto; }
.result-empty { text-align: center; color: var(--muted-2); font-size: 13.5px; padding: 28px 0; }
.pin-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.pin-table th { text-align: left; color: var(--muted-2); font-weight: 600; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--border-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.pin-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.pin-table td.num { color: var(--accent); font-weight: 700; white-space: nowrap; }
.pin-table td.name { font-weight: 600; white-space: nowrap; }
.pin-table td.comment { color: var(--muted); }

/* ---------------- prose / steps ---------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.prose ul { padding-left: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 18px 18px; background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 14px; margin: 10px 0 6px; }
.step p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------------- order form ---------------- */
.order-form { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.order-form label { font-size: 13px; font-weight: 600; color: var(--muted); }
.order-form input, .order-form textarea {
  padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-size: 14px; font-family: inherit; width: 100%;
}
.order-form textarea { resize: vertical; min-height: 110px; }
.order-form input:focus, .order-form textarea:focus { border-color: var(--accent); outline: none; }
.order-note { font-size: 12.5px; color: var(--muted-2); }

/* ---------------- CTA / footer ---------------- */
.cta-final { text-align: center; padding: 72px 24px; }
.cta-final h2 { font-size: 28px; margin: 0 0 12px; letter-spacing: -0.01em; }
.cta-final p { color: var(--muted); margin: 0 0 26px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { border-top: 1px solid var(--border-soft); padding: 36px 24px; position: relative; z-index: 1; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted-2); max-width: 1120px; margin: 0 auto; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 12.5px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .cards, .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards, .cards.c4, .steps { grid-template-columns: 1fr; }
}
