/* Hola Familia — единый источник дизайна: токены + общие компоненты.
   Используется: сайт (лендинг, правовая, реклама, админка), приложение (style.css импортирует), виджет ChatGPT.
   Меняете цвет здесь — меняется везде. */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap");
:root {
  --font: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #fffaf5; --card: #ffffff; --ink: #2a1d14; --muted: #7d6a5c; --line: #f1e3d6; --soft: #fff0e6;
  --accent: #ff6b4a; --accent-dark: #d44c2e; --accent2: #ffb547; --pink: #ff4f81; --violet: #b84dff;
  --ok: #22b573; --ok-bg: #dff7e9; --ok-ink: #135c34; --bad: #ef5b5b; --bad-bg: #fde3e3; --bad-ink: #7a1f1f;
  --grad: linear-gradient(150deg, var(--accent) 0%, var(--pink) 60%, var(--violet) 130%);
  --radius: 20px; --radius-s: 14px; --shadow: 0 8px 24px rgba(80, 40, 10, .07);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17120e; --card: #231c16; --ink: #fbefe4; --muted: #bba897; --line: #3a2f26; --soft: #2e241c; --ok-bg: #173d29; --ok-ink: #bff0d3; --bad-bg: #43201f; --bad-ink: #ffd2d2; }
}
html, body { overflow-x: clip; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

/* общий хедер / футер сайта (рисует site.js) */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line); }
.site-header .in, .site-footer .in { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.site-header .in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 8px; }
.site-logo { font-weight: 900; font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.site-langs { display: flex; gap: 4px; }
.site-langs button { font: 800 13px var(--font); border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 5px 9px; cursor: pointer; min-height: 0; }
.site-langs button.on { border-color: var(--accent); color: var(--accent); }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-cta { font: 800 15px var(--font); text-decoration: none; color: #fff; background: var(--accent); border-radius: 99px; padding: 8px 16px; box-shadow: 0 3px 0 var(--accent-dark); white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; text-align: center; line-height: 1.9; }
.site-footer a { margin: 0 6px; display: inline-block; }
@media (max-width: 560px) { .site-cta { display: none; } }

/* общие компоненты */
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 18px var(--font); text-decoration: none; border: 0; cursor: pointer;
  border-radius: 18px; padding: 14px 22px; min-height: 48px; background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--line); transition: transform .08s; }
.b-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.b-btn.primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-dark); }
.b-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.b-hero { background: var(--grad); color: #fff; border-radius: 26px; padding: 18px; box-shadow: 0 10px 28px rgba(255, 79, 129, .25); }
.b-opt { display: block; width: 100%; text-align: left; font: 700 17px var(--font); background: var(--card); color: var(--ink); border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: var(--radius-s); padding: 12px 14px; margin: 6px 0; cursor: pointer; }
.b-opt.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); } .b-opt.bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad-ink); }
.b-bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; } .b-bar > i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.b-ad { display: flex; gap: 12px; align-items: center; padding: 12px; border: 2px dashed var(--line); border-radius: 16px; background: var(--soft); text-decoration: none; color: inherit; cursor: pointer; }
.b-ad img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; } .b-ad small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
