/* Scum Warden — стиль сайта. Тёмная «роковая» гамма из самой программы (тема Convict). */

:root {
  --bg: #16110e;
  --bg-alt: #1e1713;
  --card: #241b16;
  --card-hover: #2c211a;
  --line: #3a2c23;
  --text: #ece2d7;
  --muted: #a89484;
  --accent: #c4622a;
  --accent-hover: #d9793c;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -10%, #2a1f18 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

code {
  background: #2b201a;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  color: #e8d6c3;
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
  background: rgba(22, 17, 14, .85);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: 15px;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand img { border-radius: 50%; }

.site-nav { display: flex; gap: 18px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 15px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--card-hover); text-decoration: none; }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f2;
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-big { padding: 15px 32px; font-size: 17px; }

/* ---------- обложка ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 28px;
  display: grid;
  gap: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.5px;
}

.lead { margin: 0 0 26px; color: #d8c8ba; font-size: 18px; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

/* ---------- секции ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 26px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.3px;
}

/* ---------- карточки возможностей ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: .18s;
}
.card:hover { background: var(--card-hover); transform: translateY(-2px); }

.card img {
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: #cbb9aa; font-size: 15px; }

/* ---------- галерея ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.shots img {
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: .18s;
}
.shots a:hover img { transform: scale(1.015); border-color: var(--accent); }

/* ---------- шаги ---------- */

.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 12px; color: #d3c2b3; }
.steps-tight li { margin-bottom: 8px; font-size: 15px; }

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.install-grid h3 { margin: 0 0 12px; font-size: 18px; }

.note {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(196, 98, 42, .08);
  border: 1px solid rgba(196, 98, 42, .35);
  border-radius: 10px;
  color: #d8c2ae;
  font-size: 15px;
}

/* ---------- сравнение ---------- */

.compare p { color: #d3c2b3; max-width: 80ch; }
.bullets { margin: 18px 0; padding-left: 20px; color: #d3c2b3; }
.bullets li { margin-bottom: 8px; }

/* ---------- FAQ ---------- */

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
details[open] { background: var(--card-hover); }

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "▸ "; color: var(--accent); }
details[open] summary::before { content: "▾ "; }

details p { margin: 12px 0 2px; color: #cbb9aa; font-size: 15px; }

/* ---------- финальный призыв ---------- */

.cta { text-align: center; }
.cta p { color: #cbb9aa; max-width: 62ch; margin: 0 auto 24px; }

/* ---------- подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 40px 20px 28px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto 26px;
}

.footer-brand { margin: 0 0 6px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.footer-title { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; margin: 0; }

.disclaimer {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7f6f61;
  font-size: 13px;
}

/* ---------- мобильный ---------- */

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header { gap: 12px; }
  .hero { padding-top: 32px; }
  .lead { font-size: 16px; }
}

/* ---------- страница «Админ-команды» ---------- */

.page-head { border-top: 0; padding-bottom: 6px; }
.page-head h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.5px; }

.cmd-search {
  width: 100%; max-width: 620px; margin: 10px 0 18px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 15px;
}
.cmd-search:focus { outline: none; border-color: var(--accent); }
.cmd-search::placeholder { color: #7f6f61; }

.cmd-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd-nav a {
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.cmd-nav a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.cnt { color: var(--accent-hover); }

.cmd-section { max-width: var(--max); margin: 0 auto; padding: 26px 20px 6px; }
.cmd-section h2 { margin: 0 0 4px; font-size: 22px; }
.section-sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.cmd-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmd-table th {
  text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.cmd-table td { padding: 9px 10px; border-bottom: 1px solid rgba(58, 44, 35, .55); vertical-align: top; }
.cmd-table tbody tr:hover { background: rgba(196, 98, 42, .07); }
.cmd-table td:first-child { white-space: nowrap; }
.cmd-table code { background: none; border: 0; padding: 0; color: #e8c9a8; font-size: 14px; }
.cmd-table .args { color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .cmd-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- таблица сравнения ---------- */

.table-wrap { overflow-x: auto; margin-bottom: 6px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.cmp-table th {
  text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line);
}
.cmp-table td { padding: 10px; border-bottom: 1px solid rgba(58, 44, 35, .55); vertical-align: top; }
.cmp-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.cmp-table .yes { color: #cfe0c3; }
.cmp-table .no { color: #8d7a6b; }
.cmp-table .mid { color: #d8b98f; }
.cmp-table tbody tr:hover { background: rgba(196, 98, 42, .06); }

.page-head img { width: 100%; }
