/* Sally Face — sallyfeis.ru · персона P5 «Ретро-пиксель» (хоррор-визуал 90-х) */
/* mobile-first: 360 / 640 / 1024 */

:root {
  --bg: #0e0b14;
  --bg2: #161021;
  --card: #1c1528;
  --card2: #231a33;
  --line: #3a2d4e;
  --text: #e9e2f2;
  --muted: #b3a6c9;
  --accent: #c76bff;
  --accent2: #7fe9ff;
  --blood: #e33b5e;
  --warning: #ffd23e;
  --radius: 0px;           /* пиксель: никаких скруглений */
  --font-head: "Courier New", "Lucida Console", Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 4px 4px 0 rgba(0,0,0,.55);
  --header-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.7; color: var(--text);
  background:
    repeating-linear-gradient(0deg, rgba(180,75,255,.02) 0 2px, transparent 2px 4px),
    var(--bg);
}
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.25; text-transform: uppercase; letter-spacing: .5px; }
h1 { font-size: clamp(24px, 5.5vw, 36px); margin-bottom: 16px; text-shadow: 3px 3px 0 rgba(180,75,255,.35); }
h2 { font-size: clamp(19px, 4vw, 26px); margin: 36px 0 14px; border-bottom: 2px dashed var(--line); padding-bottom: 6px; }
h2::before { content: "▸ "; color: var(--accent); }
h3 { font-size: 18px; margin: 22px 0 8px; color: var(--accent2); }
p { margin-bottom: 12px; }
a { color: var(--accent2); text-decoration: none; border-bottom: 1px dotted transparent; }
a:hover { color: #fff; border-bottom: 1px solid var(--accent); }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }

.container { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- шапка: одна строка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #0a0710; border-bottom: 2px solid var(--accent); }
.site-header .container { display: flex; align-items: center; height: var(--header-h); gap: 14px; overflow: hidden; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 17px; white-space: nowrap; border: 0; text-decoration: none; }
.brand:hover { color: var(--accent); border: 0; text-decoration: none; }
.brand .tag { color: var(--accent); font-size: 15px; }
.brand small { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; margin-left: auto; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); padding: 8px 10px; font-family: var(--font-head); font-size: 14px; white-space: nowrap; text-transform: uppercase; border: 0; text-decoration: none; }
.nav a:hover { color: #fff; background: rgba(180,75,255,.12); text-decoration: none; }
.nav a.active { color: #0a0710; background: var(--accent); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; padding: 11px 18px; font-size: 14px; border: 2px solid var(--accent); color: var(--text); background: transparent; cursor: pointer; }
.btn:hover { background: var(--accent); color: #0a0710; border-color: var(--accent); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: #0a0710; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #0a0710; }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); background: transparent; }

/* ---------- хиро: на ширину контента ---------- */
.hero { padding: 40px 0 18px; border-bottom: 1px solid var(--line); }
.hero h1 .hl { color: var(--accent); }
.hero .sub { font-size: 17px; color: var(--muted); max-width: 720px; }
.hero .meta-line { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-shot { margin: 20px 0 6px; }
.hero-shot .shot { border-color: var(--accent); }
.hero-shot figcaption { text-align: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* ---------- карточки-сетки ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 0; display: flex; flex-direction: column; }
.card .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 2px solid var(--accent); display: block; }
.card .card-body { padding: 14px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card h3 a { border: 0; color: var(--accent2); }
.card h3 a:hover { color: #fff; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.card .btn { font-size: 12px; padding: 8px 12px; margin-top: auto; align-self: flex-start; }

/* карточка-ссылка: весь блок кликабельный (картинка + текст) */
a.card-link { display: flex; flex-direction: column; color: var(--text); border: 1px solid var(--line); text-decoration: none; height: 100%; }
a.card-link:hover { border-color: var(--accent); box-shadow: var(--shadow); background: var(--card2); }
a.card-link .thumb { display: block; width: 100%; }
a.card-link:hover .thumb { opacity: .92; }
a.card-link .card-body { flex: 1; display: flex; flex-direction: column; }
a.card-link .card-body .btn { margin-top: auto; }
a.card-link .card-body .btn:hover { background: var(--accent2); border-color: var(--accent2); color: #0a0710; }

/* ---------- сущности (персонажи) ---------- */
.entry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 16px 0; }
.entry { background: var(--card2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.entry a { display: flex; flex-direction: column; border: 0; color: var(--text); height: 100%; }
.entry a:hover { border: 0; }
.entry .thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.entry .nm { padding: 10px 12px; font-family: var(--font-head); font-size: 14px; text-transform: uppercase; border-top: 2px solid var(--accent); }

/* ---------- медиа ---------- */
.shot { width: 100%; height: auto; display: block; border: 2px solid var(--line); box-shadow: var(--shadow); margin: 10px 0; }
figure { margin: 18px 0; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ---------- таблицы ---------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
th { background: var(--accent); color: #0a0710; font-family: var(--font-head); text-transform: uppercase; font-size: 13px; }
tr:nth-child(even) td { background: rgba(180,75,255,.05); }

/* ---------- FAQ-аккордеон ---------- */
.faq { margin: 18px 0; }
.faq details { border: 1px solid var(--line); background: var(--card); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 13px 16px; font-family: var(--font-head); font-weight: 700; font-size: 15px; list-style: none; }
.faq summary::before { content: "[+] "; color: var(--accent); }
.faq details[open] summary::before { content: "[−] "; }
.faq details[open] { border-left: 3px solid var(--accent); }
.faq .faq-body { padding: 4px 16px 14px; }

/* ---------- коды ---------- */
.copy-code { cursor: pointer; background: #0a0710; border: 1px dashed var(--accent); padding: 3px 8px; font-family: var(--font-head); color: var(--accent2); user-select: all; }

/* ---------- крошки ---------- */
.crumbs { font-size: 12px; color: var(--muted); padding: 14px 16px 0; max-width: 980px; margin: 0 auto; }
.crumbs a { border: 0; color: var(--muted); }
.crumbs a:hover { color: var(--accent2); }

/* ---------- футер: одна строка ---------- */
.site-footer { border-top: 2px solid var(--accent); margin-top: 50px; padding: 20px 0; background: #0a0710; }
.site-footer .line { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.site-footer .line a { border: 0; }
.site-footer .disc { display: block; text-align: center; font-size: 11px; color: #5f5570; margin-top: 8px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- verify-бейдж ---------- */
.verify-note { background: rgba(255,210,62,.07); border: 1px dashed var(--warning); padding: 10px 14px; font-size: 13px; color: var(--warning); margin: 16px 0; }
.badge-q { display: inline-block; background: var(--warning); color: #0a0710; font-weight: 700; border-radius: 0; padding: 0 6px; font-size: 12px; margin-left: 4px; cursor: help; }

/* ---------- утилиты ---------- */
.screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.two-col { columns: 2; column-gap: 30px; } 
@media (max-width: 640px) { .two-col { columns: 1; } }
