/* ====================================================================
   STALCASH — стили серверных (SEO) страниц.
   Отдельный файл, чтобы не раздувать основной styles.css SPA и не
   ломать интерактивную вёрстку. Тёмная тема в тон приложению.
   ==================================================================== */

.seo-body {
  margin: 0;
  background: var(--bg, #0a0d12);
  color: var(--text, #e6e9ef);
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  line-height: 1.5;
}

.seo-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: #0d1117;
  border-bottom: 1px solid #1c2430;
  position: sticky;
  top: 0;
  z-index: 5;
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.seo-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.seo-brand-text b { color: #f5a524; font-size: 17px; letter-spacing: .5px; }
.seo-brand-text small { color: #7d8794; font-size: 11px; }

.seo-nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: 8px; }
.seo-nav a { color: #9aa4b2; text-decoration: none; font-size: 14px; }
.seo-nav a:hover { color: #f5a524; }

.seo-cta {
  margin-left: auto;
  background: #f5a524;
  color: #10141b;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
.seo-cta:hover { background: #ffb947; }
.seo-cta-wide { display: inline-block; margin: 14px 0 22px; }

.seo-main { max-width: 1080px; margin: 0 auto; padding: 22px 20px 60px; width: 100%; box-sizing: border-box; }

.seo-crumbs { font-size: 13px; color: #7d8794; margin-bottom: 14px; }
.seo-crumbs a { color: #9aa4b2; text-decoration: none; }
.seo-crumbs a:hover { color: #f5a524; }

.seo-h1 { font-size: 30px; margin: 4px 0 10px; color: #f8fafc; }
.seo-h2 { font-size: 19px; margin: 26px 0 10px; color: #f5a524; }
.seo-lead { color: #b6bfcc; max-width: 760px; }

.seo-item { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.seo-item-icon { width: 120px; height: 120px; object-fit: contain; background: #10151d; border: 1px solid #1c2430; border-radius: 14px; padding: 8px; }
.seo-item-cat { color: #8b95a3; font-size: 14px; margin-bottom: 6px; }
.seo-best { font-size: 20px; color: #e6e9ef; }
.seo-best b { color: #4ade80; }

.seo-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; background: #0d1117; border: 1px solid #1c2430; border-radius: 12px; overflow: hidden; }
.seo-table-narrow { max-width: 420px; }
.seo-table th, .seo-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #161d27; font-size: 14px; }
.seo-table th { color: #8b95a3; font-weight: 600; background: #10151d; }
.seo-table tbody tr:last-child td { border-bottom: none; }
.seo-price { color: #4ade80; font-variant-numeric: tabular-nums; }
.seo-rar { font-size: 12px; }

.seo-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.seo-stats li { display: flex; justify-content: space-between; gap: 12px; background: #0d1117; border: 1px solid #1c2430; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.seo-stat-name { color: #9aa4b2; }
.seo-stat-val { color: #4ade80; }
.seo-stat-val.bad { color: #f87171; }

.seo-note { color: #6b7482; font-size: 13px; margin-top: 22px; }

.seo-sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.seo-sim-grid-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 8px; }
.seo-sim { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #0d1117; border: 1px solid #1c2430; border-radius: 12px; padding: 12px 8px; text-decoration: none; color: inherit; transition: border-color .15s; }
.seo-sim:hover { border-color: #f5a524; }
.seo-sim img { width: 64px; height: 64px; object-fit: contain; }
.seo-sim-name { font-size: 13px; text-align: center; color: #cbd3de; line-height: 1.25; }
.seo-sim-price { font-size: 13px; color: #4ade80; font-variant-numeric: tabular-nums; }

.seo-tool-body p { color: #b6bfcc; max-width: 760px; }

.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-chip { background: #0d1117; border: 1px solid #1c2430; border-radius: 20px; padding: 7px 14px; font-size: 13px; color: #cbd3de; text-decoration: none; }
.seo-chip:hover { border-color: #f5a524; color: #f5a524; }
.seo-chip b { color: #8b95a3; margin-left: 4px; }

/* Главная: карточки инструментов, сравнение и тарифы (SSR-версия). */
.seo-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 10px 0 4px; }
.seo-tool { display: flex; flex-direction: column; background: #0d1117; border: 1px solid #1c2430; border-radius: 14px; padding: 16px; }
.seo-tool-ico { width: 38px; height: 38px; display: grid; place-items: center; font-size: 19px; border-radius: 11px; margin-bottom: 10px; background: rgba(245,165,36,.12); border: 1px solid rgba(245,165,36,.28); }
.seo-tool h3 { margin: 0 0 4px; font-size: 16px; color: #f0f3f8; }
.seo-tool-sub { margin: 0 0 10px; font-size: 13px; color: #f5a524; font-weight: 600; }
.seo-tool-list { margin: 0 0 12px; padding: 0; list-style: none; }
.seo-tool-list li { position: relative; padding-left: 17px; margin-bottom: 6px; font-size: 13px; line-height: 1.5; color: #b6bfcc; }
.seo-tool-list li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 800; font-size: 12px; }
.seo-tool-gain { margin: 0 0 12px; font-size: 12px; color: #6b7482; }
.seo-tool .seo-cta { margin-top: auto; align-self: flex-start; }

.seo-compare td { font-size: 13.5px; }
.seo-compare .seo-bad { color: #f87171; }
.seo-compare .seo-good { color: #34d399; }

.seo-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin: 10px 0 0; }
.seo-plan { background: #0d1117; border: 1px solid #1c2430; border-radius: 14px; padding: 18px; }
.seo-plan h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; color: #9aa4b2; }
.seo-plan-price { margin: 0 0 14px; font-size: 24px; font-weight: 800; color: #f0f3f8; }
.seo-plan ul { margin: 0; padding: 0; list-style: none; }
.seo-plan li { position: relative; padding-left: 19px; margin-bottom: 7px; font-size: 13px; line-height: 1.5; color: #b6bfcc; }
.seo-plan li::before { content: "•"; position: absolute; left: 3px; color: #f5a524; font-weight: 800; }
.seo-plan-pro { border-color: rgba(245,165,36,.55); box-shadow: 0 0 0 1px rgba(245,165,36,.18); }
.seo-plan-pro h3 { color: #f5a524; }
.seo-plan-soon {
  margin: 12px 0 0; padding: 7px 10px; border-radius: 9px;
  background: rgba(245,165,36,.09); border: 1px dashed rgba(245,165,36,.45);
  font-size: 12px; font-weight: 600; color: #f5a524; text-align: center;
}

/* Лор-описание предмета (SEO-страница предмета). */
.seo-lore { max-width: 820px; }
.seo-lore p { color: #c4ccd8; margin: 0 0 12px; }

/* База данных предметов: карточки со описаниями. */
.seo-db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 8px; }
.seo-db-card { display: flex; gap: 12px; align-items: flex-start; background: #0d1117; border: 1px solid #1c2430; border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; transition: border-color .15s; }
.seo-db-card:hover { border-color: #f5a524; }
.seo-db-ico { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; background: #10151d; border-radius: 10px; padding: 4px; }
.seo-db-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seo-db-name { color: #f0f3f8; font-weight: 600; font-size: 15px; }
.seo-db-meta { color: #7d8794; font-size: 12px; }
.seo-db-lore { color: #a8b1be; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.seo-db-lore .seo-db-nolore { color: #5b6472; font-style: italic; }
.seo-db-price { color: #4ade80; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 2px; }

.seo-footer {
  border-top: 1px solid #1c2430;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #6b7482;
  font-size: 13px;
}
.seo-footer a { color: #9aa4b2; text-decoration: none; }
.seo-footer a:hover { color: #f5a524; }

@media (max-width: 640px) {
  .seo-h1 { font-size: 24px; }
  .seo-cta { margin-left: 0; }
  .seo-item-icon { width: 84px; height: 84px; }
}
