/* MoviePorter — автономный сайт (не часть семьи BurningHouse: без общей шапки/
 * футера, свой бренд). Токены и шрифты повторяют попап расширения (тёмно-
 * бордовый фон #120a0e, красно-розовый акцент #ff3d5a) — та же страница
 * "продукта", просто в вебе, не в попапе. PT Serif/PT Sans/PT Mono — один
 * шрифтовой род с отличной поддержкой кириллицы (сайт двуязычный). */

:root {
  --bg: #faf6f5;
  --surface: #ffffff;
  --surface-2: #f3ebe9;
  --text: #23131a;
  --text-muted: #6e5259;
  --border: #e6d8d9;
  --accent: #c81a44;
  --accent-ink: #ffffff;
  --focus: #8a6570;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120a0e;
    --surface: #1a1015;
    --surface-2: #241620;
    --text: #f2e9e9;
    --text-muted: #cba9a9;
    --border: #3a2230;
    --accent: #ff5470;
    --accent-ink: #1a0509;
    --focus: #ff9fae;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PT Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

header.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .mark {
  font-family: "PT Serif", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.kicker {
  font-family: "PT Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.langtoggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: var(--surface);
  flex-shrink: 0;
}
.langtoggle button {
  font-family: "PT Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.langtoggle button.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

h1 {
  font-family: "PT Serif", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 8px;
}
.lede { font-size: 18px; color: var(--text-muted); max-width: 60ch; margin: 0 0 40px; }

section { margin: 0 0 40px; }
section h2 {
  font-family: "PT Serif", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
}
section h2 .num { font-family: "PT Mono", ui-monospace, monospace; font-size: 13px; font-weight: 400; color: var(--accent); }
section p, section li { max-width: 65ch; }
section p { margin: 0 0 12px; }
section ul, section ol { margin: 0 0 12px; padding-left: 22px; }
section li { margin-bottom: 6px; }
strong { font-weight: 700; }

table.perms {
  width: 100%;
  max-width: 65ch;
  border-collapse: collapse;
  font-size: 15px;
  margin: 4px 0 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
table.perms th, table.perms td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.perms tr:last-child td { border-bottom: none; }
table.perms th {
  background: var(--surface-2);
  font-family: "PT Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}
table.perms code { font-family: "PT Mono", ui-monospace, monospace; font-size: 13.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.tablewrap { overflow-x: auto; }

.servicelist { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; padding: 0; list-style: none; }
.servicelist li { font-family: "PT Mono", ui-monospace, monospace; font-size: 13px; border: 1px solid var(--border); background: var(--surface); padding: 7px 13px; border-radius: 999px; margin: 0; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
}
.cta.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 56px;
  font-size: 14px;
  color: var(--text-muted);
}
footer a { color: inherit; }

[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }

@media (max-width: 520px) {
  header.masthead { flex-direction: column; }
}
