/* ================================================================
   SEO-74.ru — Единая дизайн-система
   Светлый, читаемый, профессиональный — как у arsenkin.ru
   ================================================================ */

:root {
  /* Цвета */
  --bg:        #f5f6f8;
  --bg-white:  #ffffff;
  --border:    #e0e3e8;
  --border2:   #ccd0d8;
  --text:      #1f2328;
  --text2:     #57606a;
  --text3:     #8b949e;
  --accent:    #0066cc;
  --accent-h:  #0055aa;
  --accent-bg: #e8f0fb;
  --accent-brd:#b3cef0;
  --green:     #1a7f37;
  --green-bg:  #dafbe1;
  --red:       #cf222e;
  --red-bg:    #fff0ee;
  --gold:      #9a6700;
  --gold-bg:   #fff8c5;
  --gold-brd:  #e3b341;

  /* Размеры */
  --radius:    6px;
  --radius-lg: 10px;
  --shadow:    0 1px 0 rgba(31,35,40,.04), 0 1px 3px rgba(31,35,40,.08);
  --shadow-md: 0 3px 6px rgba(31,35,40,.10), 0 8px 24px rgba(31,35,40,.06);
  --max-w:     1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- SITE HEADER ---- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo .logo-icon { font-size: 20px; }
.site-logo .logo-sep  { color: var(--border2); font-weight: 400; margin: 0 2px; }
.site-logo .logo-name { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.header-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.header-nav a:hover  { color: var(--text); background: var(--bg); }
.header-nav a.active { color: var(--accent); background: var(--accent-bg); }

/* ---- PAGE WRAP ---- */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb .sep { color: var(--border2); }

/* ---- PAGE TITLE ---- */
.page-title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.page-lead {
  font-size: 15px;
  color: var(--text2);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ---- INFO BOX ---- */
.info-box {
  background: var(--accent-bg);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #1c4a8a;
  line-height: 1.6;
  margin-bottom: 24px;
}
.info-box b { color: #0a3060; }

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
}
.section-header:first-child { border-top: none; }
.section-header .section-icon { font-size: 16px; }
.section-header .section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---- TABLE (как у arsenkin.ru) ---- */
.bm-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  table-layout: fixed;
}
.bm-table thead th {
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.bm-table thead th:first-child { width: 230px; }
.bm-table tbody tr { border-bottom: 1px solid var(--border); }
.bm-table tbody tr:last-child { border-bottom: none; }
.bm-table tbody tr:hover { background: #fafbfc; }
.bm-table tbody td {
  padding: 13px 16px;
  vertical-align: top;
  font-size: 14px;
  color: var(--text2);
}

/* ---- BOOKMARK LINK BUTTON (перетаскиваемая ссылка) ---- */
.bm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: grab;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,102,204,.3);
}
.bm-link:hover  { background: var(--accent-h); box-shadow: 0 2px 8px rgba(0,102,204,.35); }
.bm-link:active { cursor: grabbing; background: var(--accent-h); }
.bm-link svg { flex-shrink: 0; opacity: .85; }

.bm-drag-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text3);
}

.bm-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}
.bm-badge-gold  { background: var(--gold-bg);  color: var(--gold); border: 1px solid var(--gold-brd); }
.bm-badge-green { background: var(--green-bg); color: var(--green); }

.bm-desc { font-size: 13.5px; color: var(--text2); line-height: 1.65; }

/* Mobile copy button */
.bm-copy-btn {
  display: none;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 12px;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.bm-copy-btn:hover  { border-color: var(--accent); color: var(--accent); }
.bm-copy-btn.copied { background: var(--green-bg); border-color: #86efac; color: var(--green); }

/* ---- SITE FOOTER ---- */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 22px 20px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text3);
}
.footer-inner a { color: var(--text3); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- RESPONSIVE ---- */
@media (max-width: 720px) {
  .header-inner { padding: 0 12px; gap: 12px; }
  .page-wrap    { padding: 20px 12px 48px; }
  .bm-table     { display: block; overflow-x: auto; }
  .bm-table thead th:first-child { width: 170px; }
  .bm-copy-btn  { display: inline-block; }
}
@media (max-width: 480px) {
  .bm-table tbody td { padding: 10px 12px; }
  .header-nav a { padding: 6px 8px; font-size: 13px; }
  .site-logo .logo-name { display: none; }
}

/* Shared responsive navigation, including standalone game.php without portal.css. */
.header-inner{height:auto;min-height:58px;display:flex;flex-wrap:wrap;gap:8px 12px;padding-top:7px;padding-bottom:7px}
.header-nav{display:flex;flex-wrap:wrap;min-width:0;justify-content:flex-end}
.header-nav a{white-space:normal}
@media(max-width:900px){.header-inner{justify-content:center}.header-nav{flex:0 0 100%;justify-content:center;max-width:100%}.header-nav a{padding:7px 9px;font-size:12px}}
@media(max-width:460px){.header-nav a{padding:6px 6px;font-size:11px}}

/* Shared ad containers: avoid rendering-time style injection. */
.seo-ad{max-width:1100px;margin:16px auto;padding:12px 20px;min-height:40px;overflow:hidden;contain:layout}.seo-ad-label{display:block;font-size:11px;color:#666;margin-bottom:8px}
