/* SEO-статика Reelora. Автономний CSS: токени взято з web/styles.css,
   але сторінки НЕ залежать від застосунку (там overflow:hidden і SPA-логіка). */
:root {
  --bg: #0e0c0b; --bg-2: #171311; --bg-3: #211b18; --line: #322824;
  --text: #f6f3f1; --muted: #a79b94;
  --brick: #c25a37; --brick-lite: #de7a52; --brick-deep: #9c4225;
  --accent: #a3e635; --accent-lite: #c4f25b; --accent-2: #38bdf8;
  --radius: 12px;
  --shadow-card: 0 4px 14px rgba(0,0,0,.38);
  --glow-brick: 0 6px 22px rgba(194,90,55,.34);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Vollkorn", Georgia, "Times New Roman", serif;
  --wrap: 880px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(194,90,55,.10), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(56,120,160,.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--brick-lite); text-decoration: none; }
a:hover { text-decoration: underline; }
.hl { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* -- шапка: та сама, що в застосунку (web/styles.css .topbar/.brand/.logo) -- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 56px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.logo {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brick), var(--brick-lite));
  border-radius: 9px; box-shadow: var(--glow-brick);
}
.logo svg { width: 19px; height: 19px; display: block; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: .2px; color: var(--text);
}

/* -- перемикач мов: <details> без жодного JS (сторінки статичні), усередині
      справжні <a> — і краулер їх бачить, і працює без скриптів -- */
.head-right { display: flex; align-items: center; gap: 12px; }
.lang-pick { position: relative; }
.lang-pick summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: 13px; line-height: 1; list-style: none;
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover { color: var(--text); border-color: var(--brick); }
.lang-pick[open] summary { color: var(--text); border-color: var(--brick); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 180px; max-height: 60vh; overflow: auto;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.lang-menu a {
  padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 14px;
}
.lang-menu a:hover { background: rgba(255,255,255,.05); color: var(--text); text-decoration: none; }
.lang-menu a.is-cur { color: var(--text); font-weight: 700; }
/* Мобільний: меню на всю ширину екрана, щоб не вилазило за край. */
@media (max-width: 520px) {
  .lang-cur { display: none; }
  .lang-menu { right: -8px; min-width: 160px; }
}

/* Дубль у підвалі — як на сайті бота: простий ряд кодів. */
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.foot-langs a { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.foot-langs a.is-cur { color: var(--text); font-weight: 700; }

/* -- контент -- */
main { padding: 40px 0 72px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
h1 {
  font-family: var(--font); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px;
}
h2 {
  font-family: var(--font); font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(23px, 3.4vw, 30px); line-height: 1.25; margin: 44px 0 12px;
}
h3 { font-size: 18px; margin: 24px 0 8px; }
/* Липка шапка не має закривати заголовок при переході зі змісту. */
h2[id] { scroll-margin-top: 72px; }
.lead { font-size: 18px; color: #e2dad5; margin: 0 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 6px 0; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 26px; }

/* -- зміст -- */
.toc {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 26px 0;
}
.toc-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc ul { margin: 0; padding-left: 18px; }

/* -- картки -- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* -- кроки -- */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 16px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brick); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* -- промпт-блоки -- */
.prompt {
  background: var(--bg-3); border: 1px solid var(--line); border-left: 3px solid var(--brick);
  border-radius: var(--radius); padding: 14px 16px; margin: 14px 0;
}
.prompt .p-title { font-weight: 700; margin-bottom: 8px; }
.prompt pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px;
  color: #eadfd9;
}
.prompt .p-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* -- FAQ -- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); padding: 12px 16px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { color: var(--brick-lite); }

/* -- таблиця -- */
.tbl-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
th { background: var(--bg-2); }

/* -- CTA -- */
.cta {
  margin: 46px 0 0; padding: 26px; text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: 16px;
}
.cta h2 { margin-top: 0; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--brick); color: #fff; font-weight: 700;
  box-shadow: var(--glow-brick);
}
.btn:hover { background: var(--brick-lite); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; box-shadow: none; }

/* -- підвал -- */
.site-foot {
  border-top: 1px solid var(--line); padding: 26px 0 40px;
  color: var(--muted); font-size: 14px;
}
.site-foot .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.site-foot a { color: var(--muted); }

/* -- медіа: реальні файли або заглушки під скріншот/відео -- */
.media { margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.media--pair { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.media-item { margin: 0; }
.media-item img, .media-item video {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); box-shadow: var(--shadow-card);
}
.media-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 22px 18px; min-height: 190px;
  border: 1px dashed #4a3a33; border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, var(--bg-2), var(--bg-2) 10px,
              var(--bg-3) 10px, var(--bg-3) 20px);
  color: var(--muted);
}
.media--pair .media-slot { min-height: 150px; }
.ms-kind {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brick-lite); border: 1px solid var(--brick-deep);
  border-radius: 999px; padding: 3px 12px;
}
.ms-hint { font-size: 13px; max-width: 420px; line-height: 1.45; }
.media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

/* -- підвал: тут живе вся навігація по SEO-сторінках -- */
.foot-cols {
  display: grid; gap: 22px 26px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: 24px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.foot-col-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin-bottom: 10px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 5px 0; }
.foot-col a { color: var(--muted); font-size: 14px; }
.foot-col a:hover { color: var(--brick-lite); text-decoration: none; }
