/* Общие темы оформления сайта (Классика/Cinematic Editorial/Minimal Mono/Botanical).
   Подключается на всех страницах, использует те же CSS-переменные (--bg/--card/--line/--txt/--mut/--a1/--a2),
   что уже объявлены в :root каждой страницы — поэтому просто переопределяет их под [data-theme]. */
html:not([data-theme]){--mut:#716955;--a1:#94651f;--a2:#8a5b18}
[data-theme="cinematic"]{--bg:#0d0c0b;--card:#17140f;--line:rgba(239,233,224,.12);--txt:#efe9e0;--mut:#b7ada3;--a1:#d7b84f;--a2:#d7b84f}
[data-theme="mono"]{--bg:#ffffff;--card:#ffffff;--line:#e6e6e6;--txt:#0a0a0a;--mut:#6e6e6e;--a1:#4f46e5;--a2:#4f46e5}
[data-theme="botanical"]{--bg:#f2f0e6;--card:#fbfaf4;--line:#ddd6c2;--txt:#2c2b24;--mut:#716955;--a1:#5b6b52;--a2:#5b6b52}
body{transition:background .4s ease,color .4s ease}
[data-theme] :where(a,button,input,textarea,select,[tabindex]):focus-visible{outline:3px solid #0b63ce;outline-offset:3px}
[data-theme="mono"] h1,[data-theme="mono"] h2{font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif}

.theme-btn{display:none !important}
.theme-btn-disabled-original{position:fixed;top:18px;right:74px;z-index:9997;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(10,10,10,.45);backdrop-filter:blur(6px);color:#fff;font-size:19px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s}
.theme-btn:active{transform:scale(.92)}
.theme-menu{position:fixed;top:70px;right:18px;z-index:9998;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 12px 30px rgba(0,0,0,.18);display:none;flex-direction:column;gap:2px;min-width:190px}
.theme-menu.open{display:flex}
.theme-opt{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;border:none;background:transparent;cursor:pointer;font:inherit;font-size:13.5px;color:var(--txt);text-align:left;width:100%}
.theme-opt:hover{background:var(--bg)}
.theme-opt.on{background:#f0eee8;font-weight:700}
.theme-opt.on::after{content:'✓';margin-left:auto;font-weight:800;color:var(--a1)}
.theme-dot{width:18px;height:18px;border-radius:50%;flex-shrink:0;border:1px solid rgba(0,0,0,.1)}

/* Приватный переключатель языка (RU/HE/EN) — виден только через панель управления, см. i18n.js */
.lng{position:fixed;top:14px;inset-inline-end:14px;z-index:997;display:flex;gap:4px;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:999px;padding:4px}
.lng button{border:none;background:transparent;color:var(--txt);border-radius:999px;padding:5px 11px;font-weight:700;font-size:12px;cursor:pointer;font-family:inherit}
.lng button.on{background:var(--a2);color:#fff}
.lng[hidden]{display:none}
.lng.private-preview{left:14px;right:auto;z-index:10001;box-shadow:0 8px 28px rgba(0,0,0,.2)}
.lng .preview-close{color:#8b2f2f;padding-inline:8px}
