/* WHIEDA-POBEDA-SCHOOL: стиль по мотивам презентации «Бизнес с Китаем» */
@font-face { font-family: 'Inter'; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(/fonts/playfair.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Noto Serif SC'; src: url(/fonts/notoserifsc.woff2) format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  --red-dark: #56090F;
  --red: #7A1220;
  --red-deep: #8E1B2B;
  --red-bright: #B3243A;
  --gold: #D4AF37;
  --gold-light: #E9C46A;
  --gold-pale: #F7E7B4;
  --gold-deep: #A67C1E;
  --cream: #F8EDD5;
  --paper: #FCF6E9;
  --ink: #1B0A0D;
  --ink-soft: #5B3A3F;
  --ok: #2F7D4F;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cn: 'Noto Serif SC', serif;
  --r: 14px;
  --shadow: 0 10px 30px rgba(40, 0, 6, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--cream); font-size: 16px; line-height: 1.5;
  background: radial-gradient(130% 120% at 50% 0%, var(--red-deep) 0%, var(--red) 46%, var(--red-dark) 100%) fixed;
  min-height: 100vh;
}
body::before { /* облака-узор */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .07; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23E9C46A' stroke-width='2'%3E%3Cpath d='M20 60c0-11 9-20 20-20s20 9 20 20c8 0 14 6 14 14s-6 14-14 14H26c-8 0-14-6-14-14 0-7 4-12 8-14z'/%3E%3Cpath d='M100 130c0-9 7-16 16-16s16 7 16 16c6 0 11 5 11 11H92c0-6 3-10 8-11z'/%3E%3Ccircle cx='130' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
}
a { color: var(--gold-light); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- каркас ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px 30px;
  background: linear-gradient(180deg, rgba(40, 2, 8, .55), rgba(40, 2, 8, .25));
  border-right: 1px solid rgba(212, 175, 55, .25);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin: 0 6px 22px; }
.brand-logo { height: 30px; }
.brand .brand-t { border-left: 1px solid rgba(212,175,55,.5); padding-left: 12px; }
.seal {
  font-family: var(--cn); color: var(--ink); background: var(--gold); width: 40px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex: none;
  box-shadow: inset 0 0 0 2px rgba(86, 9, 15, .25);
}
.brand-t { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 2px; color: var(--gold-pale); line-height: 1.15; }
.brand-t span { display: block; color: var(--gold); font-weight: 600; font-size: 11px; letter-spacing: 3px; }
.nav-g { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); opacity: .7; margin: 18px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none;
  color: var(--cream); font-weight: 500; font-size: 15px;
}
.nav a .ic { font-family: var(--cn); width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--gold-light); border: 1px solid rgba(212, 175, 55, .35); flex: none; }
.nav a:hover { background: rgba(212, 175, 55, .1); }
.nav a.on { background: linear-gradient(90deg, rgba(212, 175, 55, .28), rgba(212, 175, 55, .06)); color: var(--gold-pale); }
.nav a.on .ic { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.nav .badge { margin-left: auto; }
.badge { background: var(--red-bright); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; box-shadow: 0 0 0 2px rgba(247, 231, 180, .5); }

.app > div { min-width: 0; }
.main { min-width: 0; padding: 28px clamp(16px, 4vw, 48px) 120px; position: relative; }
.topbar { display: none; }
.tabbar { display: none; }

/* ---------- типографика ---------- */
.eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 5px; color: var(--gold-light); text-transform: uppercase; margin-bottom: 8px; }
h1, .h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; color: var(--gold-pale); margin: 0 0 12px; }
.sub { color: var(--gold-pale); opacity: .85; font-size: 17px; max-width: 760px; margin: 0 0 22px; }
h2 { font-family: var(--serif); color: var(--gold-pale); font-size: 26px; margin: 28px 0 12px; }
.divider { width: 70px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 14px 0 20px; }
.muted { opacity: .7; }
.small { font-size: 13px; }

/* ---------- шапка раздела с драконом ---------- */
.dragon { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 58% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 58% 50%, #000 45%, transparent 100%); }
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 34px clamp(20px, 4vw, 44px); margin-bottom: 26px;
  background: radial-gradient(120% 110% at 70% 30%, #9A1E30 0%, var(--red) 55%, #4E0810 100%);
  border: 1px solid rgba(212, 175, 55, .45); box-shadow: var(--shadow); min-height: 200px; }
.hero > * { position: relative; z-index: 2; max-width: 62%; }
.hero .dragon { position: absolute; right: -20px; bottom: -30px; height: 125%; max-width: none; z-index: 1; opacity: .95; pointer-events: none; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.hero .wm { position: absolute; right: 30%; top: -30px; font-family: var(--cn); font-size: 260px; line-height: 1; color: var(--gold); opacity: .07; z-index: 0; max-width: none; pointer-events: none; }
.corner { position: absolute; width: 38px; height: 38px; border: 2px solid var(--gold); opacity: .7; z-index: 2; max-width: none; }
.corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* ---------- свиток (бумажная карточка) ---------- */
.scroll {
  position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r);
  padding: clamp(18px, 3vw, 34px); box-shadow: var(--shadow);
  border: 1px solid var(--gold); outline: 1px solid rgba(212, 175, 55, .4); outline-offset: -8px;
}
.scroll h2, .scroll h3, .scroll h4 { color: var(--red); font-family: var(--serif); }
.scroll h2 { font-size: 26px; margin: 26px 0 10px; }
.scroll h3 { font-size: 21px; margin: 22px 0 8px; }
.scroll h4 { font-size: 18px; margin: 18px 0 6px; }
.scroll a { color: var(--red-bright); }
.scroll .muted { color: var(--ink-soft); opacity: 1; }

.md { font-size: 16.5px; line-height: 1.65; }
.md > *:first-child { margin-top: 0; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { padding-left: 22px; margin: 0 0 14px; }
.md li { margin: 4px 0; }
.md ul li::marker { color: var(--gold-deep); }
.md li.check { list-style: none; position: relative; }
.md li.check::before { content: '☐'; position: absolute; left: -22px; color: var(--gold-deep); }
.md li.check.on::before { content: '☑'; }
.md strong { color: var(--red-dark); }
.md mark.todo { background: #FFE58A; color: #6B4A00; padding: 0 5px; border-radius: 4px; font-size: .9em; }
.md code { background: rgba(212, 175, 55, .2); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.md hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 24px 0; }
.md blockquote { /* скрипт: что говорить */
  margin: 14px 0 18px; padding: 14px 18px 14px 50px; border-radius: 12px; position: relative;
  background: linear-gradient(135deg, #FFF8E6, #F7E7B4); border-left: 4px solid var(--red-bright); font-style: normal;
}
.md blockquote::before { content: '言'; font-family: var(--cn); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; background: var(--red-bright); color: var(--gold-pale); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.md blockquote p:last-child { margin: 0; }
.video { margin: 16px 0 20px; }
.video-box { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #1B0A0D; border: 1px solid var(--gold); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
body.theme-site .video-box { border-color: var(--s-line); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.pcard { background: #fff; border-radius: 10px; padding: 10px 10px 12px; border: 1px solid rgba(166,124,30,.35); display: flex; flex-direction: column; }
.pcard-img { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.pcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pcard-flag { position: absolute; inset: auto 0 6px; margin: auto; width: max-content; background: rgba(179,36,58,.9); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.pcard.out .pcard-img img { opacity: .45; }
.pcard-t { font-size: 14px; line-height: 1.3; color: var(--ink); flex: 1; margin-bottom: 8px; }
.pcard-p { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pcard-p b { color: var(--red-dark); font-size: 14px; }
.pcard-p span { color: var(--ink-soft); white-space: nowrap; }
body.theme-site .pcard { border: 0; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
body.theme-site .pcard-t { font-family: var(--s-serif); font-size: 15px; color: var(--s-text); }
body.theme-site .pcard-p b { color: var(--s-text); font-family: var(--s-serif); font-weight: 400; font-size: 16px; }
body.theme-site .pcard-p span { color: var(--s-muted); font-family: var(--s-serif); }
body.theme-site .pcard-flag { background: rgba(239,18,20,.9); }
.tbl { overflow-x: auto; margin: 0 0 16px; }
.md table { border-collapse: collapse; width: 100%; font-size: 15px; }
.md th { background: var(--red); color: var(--gold-pale); text-align: left; font-weight: 600; }
.md th, .md td { padding: 9px 12px; border: 1px solid rgba(166, 124, 30, .35); vertical-align: top; }
.md tr:nth-child(even) td { background: rgba(247, 231, 180, .35); }
.callout { border-radius: 12px; padding: 14px 18px; margin: 14px 0 18px; border: 1px solid; }
.callout-t { font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 6px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-tip { background: #FFF6DB; border-color: var(--gold); } .callout-tip .callout-t { color: var(--gold-deep); }
.callout-warn { background: #FBE3E3; border-color: var(--red-bright); } .callout-warn .callout-t { color: var(--red-bright); }
.callout-task { background: #E9F3EA; border-color: #7FB08E; } .callout-task .callout-t { color: var(--ok); }
.callout-script { background: #FFF8E6; border-color: var(--red-bright); } .callout-script .callout-t { color: var(--red-bright); }

/* ---------- элементы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-red { background: linear-gradient(180deg, var(--red-bright), var(--red)); color: var(--gold-pale); box-shadow: 0 4px 14px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(212, 175, 55, .5); }
.btn-ghost { background: transparent; color: var(--gold-pale); box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, .7); }
.scroll .btn-ghost { color: var(--red); box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--gold-light); cursor: pointer; text-decoration: underline; }
.scroll .btn-link { color: var(--red-bright); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--gold-light); }
.scroll .field > span { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, .55);
  background: rgba(27, 10, 13, .35); color: var(--cream); outline: none;
}
.input:focus { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
.scroll .input { background: #fff; color: var(--ink); border-color: rgba(166, 124, 30, .45); }
textarea.input { min-height: 90px; resize: vertical; }
.hint { font-size: 12.5px; opacity: .75; margin-top: 4px; }
.err { color: #FFD1D1; background: rgba(179, 36, 58, .35); border: 1px solid var(--red-bright); padding: 9px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.scroll .err { color: var(--red-bright); background: #FBE3E3; }

.card {
  position: relative; display: block; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: var(--r);
  padding: 18px 18px 16px; border: 1px solid rgba(212, 175, 55, .8); box-shadow: 0 6px 18px rgba(40, 0, 6, .3); transition: transform .15s;
}
a.card:hover { transform: translateY(-2px); }
.card-t { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--red); line-height: 1.2; margin-bottom: 6px; }
.card-d { font-size: 14px; color: var(--ink-soft); }
.card-m { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--gold-deep); font-weight: 600; }
.card .done-mark { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.card .cn-big { position: absolute; right: 14px; bottom: 6px; font-family: var(--cn); font-size: 54px; color: var(--gold); opacity: .18; line-height: 1; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: rgba(179, 36, 58, .12); color: var(--red-bright); }
.tag.gold { background: rgba(212, 175, 55, .22); color: var(--gold-deep); }
.tag.ok { background: rgba(47, 125, 79, .15); color: var(--ok); }

.panel { background: rgba(27, 10, 13, .28); border: 1px solid rgba(212, 175, 55, .35); border-radius: var(--r); padding: 18px; }
.panel h3 { margin: 0 0 12px; font-family: var(--serif); color: var(--gold-pale); font-size: 20px; }
.stats { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: left; }
.stat-v { font-family: var(--serif); font-weight: 900; font-size: 42px; color: var(--gold-pale); line-height: 1; }
.stat-l { font-size: 13px; color: var(--gold-light); margin-top: 6px; }

.progress { height: 8px; border-radius: 99px; background: rgba(212, 175, 55, .2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-pale)); border-radius: 99px; }
.scroll .progress { background: rgba(166, 124, 30, .18); }

.list-i { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(212, 175, 55, .18); }
.list-i:last-child { border-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: none; }
.dot.red { background: var(--red-bright); box-shadow: 0 0 0 3px rgba(179, 36, 58, .3); }

/* ---------- путь обучения ---------- */
.path { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: var(--r); padding: 14px 18px; border: 1px solid rgba(212, 175, 55, .8); box-shadow: 0 6px 18px rgba(40, 0, 6, .28); }
.step-n { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--cn); font-size: 26px;
  background: radial-gradient(circle at 35% 30%, var(--red-bright), var(--red-dark)); color: var(--gold-pale); box-shadow: inset 0 0 0 2px var(--gold); }
.step.done .step-n { background: radial-gradient(circle at 35% 30%, #3E9E65, #1F5C38); }
.step-t { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--red); }
.step-d { font-size: 14px; color: var(--ink-soft); }

/* ---------- аккордеон Q&A ---------- */
.qa { background: var(--paper); color: var(--ink); border-radius: 12px; border: 1px solid rgba(212, 175, 55, .8); margin-bottom: 10px; overflow: hidden; }
.qa summary { cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 600; font-size: 16px; color: var(--red-dark); list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--gold-deep); font-weight: 400; }
.qa[open] summary::after { content: '−'; }
.qa[open] summary { border-bottom: 1px solid rgba(212, 175, 55, .4); }
.qa .md { padding: 14px 18px 4px; }
.qa-g { font-family: var(--serif); color: var(--gold-pale); font-size: 20px; margin: 24px 0 10px; }

/* ---------- канбан ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.col { background: rgba(27, 10, 13, .3); border: 1px solid rgba(212, 175, 55, .3); border-radius: var(--r); padding: 12px; min-height: 320px; scroll-snap-align: start; display: flex; flex-direction: column; }
.col.over { border-color: var(--gold-light); background: rgba(212, 175, 55, .12); }
.col-h { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 10px; }
.col-t { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--gold-pale); }
.col-n { font-size: 12px; color: var(--gold); font-weight: 700; }
.col-hint { font-size: 11.5px; color: var(--gold-light); opacity: .7; padding: 0 4px 8px; margin-top: -8px; }
.col-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kcard { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 12px; border: 1px solid rgba(212, 175, 55, .7); cursor: grab; user-select: none; box-shadow: 0 3px 10px rgba(40, 0, 6, .25); }
.kcard.dragging { opacity: .5; }
.kcard-t { font-weight: 700; font-size: 15px; color: var(--red-dark); }
.kcard-s { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.kcard .rem { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600; color: var(--gold-deep); margin-top: 6px; }
.kcard .rem.due { color: var(--red-bright); }
.kcard .seen { font-size: 12px; color: var(--ok); font-weight: 600; margin-top: 4px; }
.col-add { margin-top: 8px; background: none; border: 1px dashed rgba(212, 175, 55, .5); color: var(--gold-light); border-radius: 10px; padding: 8px; cursor: pointer; font-size: 13px; }

/* ---------- модалка ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 0, 4, .7); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; overflow-y: auto; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 640px; }
.modal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; color: var(--gold-deep); cursor: pointer; line-height: 1; }

.timeline .list-i { border-color: rgba(166, 124, 30, .25); }
.ev-t { font-size: 14px; }
.ev-d { font-size: 12px; color: var(--ink-soft); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--gold-pale); border: 1px solid var(--gold); padding: 11px 18px; border-radius: 99px; z-index: 99; font-size: 14px; box-shadow: var(--shadow); }

/* ---------- выбор блоков для подборки ---------- */
.pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(166, 124, 30, .35); background: #fff; cursor: pointer; margin-bottom: 8px; }
.pick input { margin-top: 4px; accent-color: var(--red-bright); width: 18px; height: 18px; flex: none; }
.pick.on { border-color: var(--red-bright); background: #FFF6E4; }
.pick-t { font-weight: 700; color: var(--red-dark); }
.pick-d { font-size: 13px; color: var(--ink-soft); }
.linkbox { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px dashed var(--gold-deep); border-radius: 10px; padding: 10px 12px; word-break: break-all; font-size: 14px; color: var(--ink); }

/* ---------- промо ---------- */
.promo-canvas { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--gold); background: var(--red-dark); }
.side-x { display: none; }
.promo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.promo-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.promo-thumbs button.on { border-color: var(--gold-light); }
.promo-thumbs canvas { width: 100%; display: block; }

/* ---------- вход ---------- */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.auth-form { position: relative; z-index: 3; }
.auth-hero { position: relative; overflow: visible; padding: 6vh 6vw; display: flex; flex-direction: column; justify-content: center; }
.auth-hero .dragon { -webkit-mask-image: radial-gradient(ellipse 48% 52% at 55% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 48% 52% at 55% 50%, #000 40%, transparent 100%); position: absolute; right: -14%; bottom: -6%; height: 108%; max-width: none; opacity: .9; pointer-events: none; }
.auth-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(86,9,15,.85) 0%, rgba(86,9,15,.55) 45%, transparent 75%); pointer-events: none; }
.auth-hero > * { z-index: 1; }
.auth-hero .wm { position: absolute; left: 4vw; bottom: -6vh; font-family: var(--cn); font-size: 46vh; color: var(--gold); opacity: .06; line-height: 1; pointer-events: none; }
.auth-hero > *:not(.dragon):not(.wm):not(.lanterns) { position: relative; max-width: 560px; }
.auth-title { font-family: var(--serif); font-weight: 900; font-size: clamp(42px, 6.5vw, 92px); line-height: .95; color: var(--gold-pale); letter-spacing: 1px; margin: 14px 0 18px; }
.auth-title em { font-style: normal; color: var(--gold); display: block; font-size: .5em; letter-spacing: 8px; margin-top: 10px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.auth-form .scroll { width: 100%; max-width: 440px; }
.tabs { display: flex; gap: 6px; background: rgba(166, 124, 30, .14); padding: 4px; border-radius: 99px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 99px; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.tabs button.on { background: var(--red); color: var(--gold-pale); }
.lanterns { position: absolute; top: 0; right: 8%; z-index: 2; display: flex; gap: 40px; pointer-events: none; }
.lantern { width: 46px; height: 64px; position: relative; animation: sway 4s ease-in-out infinite; transform-origin: top center; }
.lantern::before { content: ''; position: absolute; left: 22px; top: 0; width: 2px; height: 14px; background: var(--gold); }
.lantern::after { content: '福'; position: absolute; top: 14px; left: 0; width: 46px; height: 46px; border-radius: 45%; background: radial-gradient(circle at 40% 35%, #E3343F, #9C1420); box-shadow: 0 0 22px rgba(255, 120, 80, .6), inset 0 0 0 2px var(--gold); color: var(--gold-light); font-family: var(--cn); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.lantern:nth-child(2) { animation-delay: -2s; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- мобильная версия ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0; z-index: 40; height: 100%; background: var(--red-dark); }
  .side.open { display: block; }
  .side-x { display: block; position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(212,175,55,.5); background: none; color: var(--gold-light); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: 10px 14px; background: rgba(60, 4, 10, .92); border-bottom: 1px solid rgba(212, 175, 55, .35); backdrop-filter: blur(6px); }
  .topbar .brand { margin: 0; }
  .burger { margin-left: auto; background: none; border: 1px solid rgba(212, 175, 55, .5); color: var(--gold-light); border-radius: 8px; padding: 6px 10px; font-size: 18px; }
  .main { padding: 18px 14px 110px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(50, 3, 9, .96); border-top: 1px solid rgba(212, 175, 55, .4); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { text-decoration: none; color: var(--cream); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; position: relative; }
  .tabbar a .ic { font-family: var(--cn); font-size: 19px; color: var(--gold-light); }
  .tabbar a.on { color: var(--gold-pale); }
  .tabbar a.on .ic { color: var(--ink); background: var(--gold); border-radius: 8px; padding: 0 8px; }
  .tabbar .badge { position: absolute; top: -4px; right: 18%; }
  .hero > * { max-width: 100%; }
  .hero .dragon { opacity: .25; height: 110%; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 40px 22px 10px; min-height: 0; }
  .auth-hero .dragon { opacity: .3; height: 120%; }
  .lanterns { right: 8%; }
  .step { grid-template-columns: 48px 1fr; }
  .step-n { width: 46px; height: 46px; font-size: 21px; }
  .step > .btn, .step > .tag { grid-column: 2; justify-self: start; }
  .kanban { grid-auto-columns: 82%; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard { padding: 8px 8px 10px; }
  .pcard-t { font-size: 13px; }
  .stats { gap: 8px; }
  .stats .panel { padding: 12px; }
  .stats .stat-v { font-size: 28px; }
  .stats .stat-l { font-size: 11.5px; }
}

/* =====================================================================
   Тема «Как сайт Виеды» (body.theme-site): по образцу whieda.org
   Серый фон #F5F5F9, белые карточки, засечки Times, красный #EF1214,
   кнопки Arial со скруглением 4px, меню-плашки #FBF5E4 как в «Моём офисе».
   ===================================================================== */
body.theme-site {
  --s-red: #EF1214; --s-red-dark: #C70E10; --s-text: #2D2D2D; --s-muted: #888888; --s-light: #A8ABB2;
  --s-bg: #F5F5F9; --s-line: #EBEEF5; --s-input: #DCDFE6; --s-beige: #FBF5E4; --s-beige-line: #F1E6C8;
  --s-serif: "Times New Roman", Times, "Noto Serif", "Liberation Serif", Georgia, serif;
  --s-ui: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --s-green: #59DC83; --s-orange: #E6A23C;
  background: var(--s-bg); color: var(--s-text); font-family: var(--s-serif); font-size: 16px;
}
body.theme-site::before { display: none; }
body.theme-site .dragon, body.theme-site .wm, body.theme-site .lanterns, body.theme-site .corner, body.theme-site .cn-big { display: none !important; }
body.theme-site a { color: var(--s-red); }
body.theme-site h1, body.theme-site .h1, body.theme-site h2, body.theme-site h3, body.theme-site h4 { font-family: var(--s-serif); color: var(--s-text); letter-spacing: 0; }
body.theme-site h1, body.theme-site .h1 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); }
body.theme-site .eyebrow { font-family: var(--s-ui); color: var(--s-red); letter-spacing: 1.5px; font-size: 12px; }
body.theme-site .sub { color: var(--s-muted); opacity: 1; font-size: 17px; }
body.theme-site .divider { background: var(--s-red); height: 2px; width: 48px; }
body.theme-site .muted, body.theme-site .scroll .muted { color: var(--s-muted); opacity: 1; }
body.theme-site .small { font-family: var(--s-ui); }

/* --- шапка и меню: как «Мой офис» --- */
body.theme-site .side { background: #fff; border-right: 1px solid var(--s-line); padding-top: 18px; }
body.theme-site .brand-t { color: var(--s-text); font-family: var(--s-ui); }
body.theme-site .brand-t span { color: var(--s-red); }
body.theme-site .brand .brand-t { border-left-color: var(--s-line); }
body.theme-site .nav-g { font-family: var(--s-ui); color: var(--s-light); opacity: 1; letter-spacing: 1.5px; margin: 18px 6px 8px; }
body.theme-site .nav a { font-family: var(--s-serif); font-weight: 700; font-size: 15px; color: var(--s-text); background: var(--s-beige); border: 1px solid var(--s-beige-line); border-radius: 4px; padding: 8px 12px; margin-bottom: 8px; }
body.theme-site .nav a .ic { display: none; }
body.theme-site .nav a:hover { background: #F7EDD2; }
body.theme-site .nav a.on { background: var(--s-beige); color: var(--s-red); }
body.theme-site .nav .badge { font-family: var(--s-ui); }
body.theme-site .topbar { background: #fff; border-bottom: 1px solid var(--s-line); backdrop-filter: none; }
body.theme-site .burger { color: var(--s-text); border-color: var(--s-input); border-radius: 4px; }
body.theme-site .seal { background: var(--s-red); color: #fff; box-shadow: none; border-radius: 4px; }

/* нижняя панель на телефоне: контурные иконки, как в мобильной версии сайта */
.tabbar .ics { display: none; }
body.theme-site .tabbar { background: #fff; border-top: 1px solid var(--s-line); box-shadow: none; }
body.theme-site .tabbar a { color: var(--s-text); font-family: var(--s-serif); font-size: 11px; }
body.theme-site .tabbar a .ic { display: none; }
body.theme-site .tabbar a .ics { display: block; width: 24px; height: 24px; stroke: var(--s-text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
body.theme-site .tabbar a.on { color: var(--s-red); }
body.theme-site .tabbar a.on .ics { stroke: var(--s-red); }
body.theme-site .tabbar a.on .ic { background: none; }

/* --- шапка раздела: белая карточка с эмблемой --- */
body.theme-site .hero { background: #fff url(/img/icon-color.png) no-repeat right 40px center / 150px auto; border: 0; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.04); min-height: 0; padding: 30px clamp(20px, 3vw, 40px); }
body.theme-site .hero > * { max-width: calc(100% - 200px); }
body.theme-site .hero h1 { margin-bottom: 8px; }
body.theme-site .hero .sub strong { color: var(--s-red); }
body.theme-site .hero .linkbox { background: var(--s-bg) !important; }

/* --- карточки --- */
body.theme-site .scroll, body.theme-site .card, body.theme-site .step, body.theme-site .kcard {
  background: #fff; border: 0; outline: none; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
body.theme-site .card { transition: box-shadow .15s; }
body.theme-site a.card:hover { transform: none; box-shadow: 0 6px 20px rgba(0,0,0,.09); }
body.theme-site .card-t, body.theme-site .step-t, body.theme-site .col-t, body.theme-site .panel h3, body.theme-site .qa-g, body.theme-site .kcard-t, body.theme-site .pick-t { font-family: var(--s-serif); font-weight: 700; color: var(--s-text); }
body.theme-site .card-d, body.theme-site .step-d { color: var(--s-muted); font-family: var(--s-serif); }
body.theme-site .card-m { color: var(--s-text); font-family: var(--s-ui); }
body.theme-site .card .done-mark { background: var(--s-green); }
body.theme-site .scroll h2, body.theme-site .scroll h3, body.theme-site .scroll h4 { color: var(--s-text); font-family: var(--s-serif); }

/* статусы как в кабинете: заливка и белый текст */
body.theme-site .tag { font-family: var(--s-ui); letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 400; border-radius: 3px; background: var(--s-red); color: #fff; padding: 3px 8px; }
body.theme-site .tag.ok { background: var(--s-green); color: #fff; }
body.theme-site .tag.gold { background: #FDF6EC; color: var(--s-orange); border: 1px solid #FAECD8; }

/* --- текст материалов --- */
body.theme-site .md { font-family: var(--s-serif); font-size: 17px; line-height: 1.6; }
body.theme-site .md strong { color: var(--s-text); }
body.theme-site .md ul li::marker { color: var(--s-red); }
body.theme-site .md li.check::before { color: var(--s-red); }
body.theme-site .md code { background: var(--s-bg); }
body.theme-site .md blockquote { background: var(--s-beige); border-left: 3px solid var(--s-red); border-radius: 4px; }
body.theme-site .md blockquote::before { background: var(--s-red); color: #fff; font-family: var(--s-serif); content: '«'; font-size: 20px; border-radius: 4px; }
body.theme-site .md th { background: #fff; color: var(--s-text); font-weight: 700; font-family: var(--s-serif); border-bottom: 1px solid var(--s-line); }
body.theme-site .md th, body.theme-site .md td { border: 0; border-bottom: 1px solid var(--s-line); border-right: 1px solid var(--s-line); padding: 12px; }
body.theme-site .md table { border: 1px solid var(--s-line); }
body.theme-site .md tr:nth-child(even) td { background: #fff; }
body.theme-site .md hr { background: var(--s-line); }
body.theme-site .md mark.todo { font-family: var(--s-ui); }
body.theme-site .callout { border-radius: 4px; font-family: var(--s-serif); }
body.theme-site .callout-t { font-family: var(--s-ui); letter-spacing: 1px; }
body.theme-site .callout-tip { background: var(--s-beige); border-color: var(--s-beige-line); }
body.theme-site .callout-tip .callout-t { color: #A9801F; }
body.theme-site .callout-warn { background: #FEF0F0; border-color: #FDE2E2; }
body.theme-site .callout-warn .callout-t { color: var(--s-red); }
body.theme-site .callout-task { background: #F0F9EB; border-color: #E1F3D8; }
body.theme-site .callout-task .callout-t { color: #3E9E5E; }
body.theme-site .video-box { border: 0; border-radius: 6px; }
body.theme-site .video figcaption { color: var(--s-muted); font-family: var(--s-ui); }

/* путь обучения */
body.theme-site .step-n { background: #fff; color: var(--s-red); box-shadow: inset 0 0 0 1.5px var(--s-red); font-family: var(--s-serif); font-weight: 700; }
body.theme-site .step.done .step-n { background: var(--s-green); color: #fff; box-shadow: none; }

/* панели главной */
body.theme-site .panel { background: #fff; border: 0; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.04); color: var(--s-text); }
body.theme-site .panel h3 { color: var(--s-text); }
body.theme-site .panel a:not(.btn) { color: var(--s-text) !important; text-decoration: none; font-family: var(--s-serif); }
body.theme-site .panel a:not(.btn):hover { color: var(--s-red) !important; }
body.theme-site .stat-v { font-family: var(--s-serif); font-weight: 700; color: var(--s-text); }
body.theme-site .stat-v span { color: var(--s-muted) !important; }
body.theme-site .stat-l { color: var(--s-muted); font-family: var(--s-ui); }
body.theme-site .progress { background: #EBEEF5; }
body.theme-site .progress > i { background: var(--s-red); }
body.theme-site .list-i { border-color: var(--s-line); }
body.theme-site .dot { background: var(--s-light); }
body.theme-site .dot.red { background: var(--s-red); box-shadow: none; }

/* кнопки: как «В корзину» на сайте */
body.theme-site .btn { font-family: var(--s-ui); font-weight: 400; background: var(--s-red); color: #fff; box-shadow: none; border-radius: 4px; border: 1px solid var(--s-red); }
body.theme-site .btn:hover { filter: none; background: #F34143; border-color: #F34143; }
body.theme-site .btn-red { background: var(--s-red); border-color: var(--s-red); }
body.theme-site .btn-ghost, body.theme-site .scroll .btn-ghost { background: #fff; color: var(--s-text); box-shadow: none; border: 1px solid var(--s-input); }
body.theme-site .btn-ghost:hover { background: #fff; color: var(--s-red); border-color: #FAB6B6; }
body.theme-site .btn-link, body.theme-site .scroll .btn-link { color: var(--s-red); font-family: var(--s-ui); }

/* формы как в Element UI */
body.theme-site .input, body.theme-site select.input, body.theme-site textarea.input { background: #fff; color: var(--s-text); border: 1px solid var(--s-input); border-radius: 4px; font-family: var(--s-ui); font-size: 15px; }
body.theme-site .input:focus { border-color: var(--s-red); box-shadow: none; }
body.theme-site .input::placeholder { color: var(--s-light); }
body.theme-site .field > span, body.theme-site .scroll .field > span { color: var(--s-text); font-family: var(--s-serif); font-weight: 400; font-size: 15px; }
body.theme-site .hint { font-family: var(--s-ui); color: var(--s-muted); opacity: 1; }
body.theme-site .err, body.theme-site .scroll .err { color: var(--s-red); background: #FEF0F0; border-color: #FDE2E2; border-radius: 4px; font-family: var(--s-ui); }
body.theme-site .tabs { background: #fff; border-bottom: 1px solid var(--s-line); border-radius: 0; padding: 0; }
body.theme-site .tabs button { border-radius: 0; font-family: var(--s-serif); font-size: 17px; font-weight: 700; color: var(--s-muted); border-bottom: 2px solid transparent; }
body.theme-site .tabs button.on { background: none; color: var(--s-red); border-bottom-color: var(--s-red); }
body.theme-site .linkbox { border: 1px dashed var(--s-input); border-radius: 4px; font-family: var(--s-ui); }

/* канбан */
body.theme-site .col { background: #EEF0F4; border: 0; border-radius: 8px; }
body.theme-site .col.over { background: #FEF0F0; outline: 1px dashed var(--s-red); }
body.theme-site .col-n { color: var(--s-red); font-family: var(--s-ui); }
body.theme-site .col-hint { color: var(--s-muted); opacity: 1; font-family: var(--s-ui); }
body.theme-site .kcard { border-radius: 6px; }
body.theme-site .kcard-s { color: var(--s-muted); font-family: var(--s-ui); }
body.theme-site .kcard .rem { color: var(--s-orange); font-family: var(--s-ui); }
body.theme-site .kcard .rem.due { color: var(--s-red); }
body.theme-site .kcard .seen { color: #3E9E5E; font-family: var(--s-ui); }
body.theme-site .col-add { color: var(--s-muted); border-color: #C9CDD4; border-radius: 4px; font-family: var(--s-ui); }

/* подборки, вопросы, прочее */
body.theme-site .pick { border: 1px solid var(--s-line); border-radius: 4px; }
body.theme-site .pick input { accent-color: var(--s-red); }
body.theme-site .pick.on { border-color: var(--s-red); background: #FFF7F7; }
body.theme-site .pick-d { color: var(--s-muted); }
body.theme-site .qa { background: #fff; border: 0; border-bottom: 1px solid var(--s-line); border-radius: 0; margin: 0; box-shadow: none; }
body.theme-site .qa:first-of-type { border-top: 1px solid var(--s-line); }
body.theme-site .qa summary { color: var(--s-text); font-family: var(--s-serif); font-size: 17px; }
body.theme-site .qa summary::after { color: var(--s-muted); }
body.theme-site .qa[open] summary { border-bottom-color: var(--s-line); color: var(--s-red); }
body.theme-site .qa-g { color: var(--s-text); }
body.theme-site .badge { background: var(--s-red); box-shadow: 0 0 0 2px #fff; font-family: var(--s-ui); }
body.theme-site .toast { background: #303133; color: #fff; border-color: #303133; border-radius: 4px; font-family: var(--s-ui); }
body.theme-site .promo-thumbs button.on { border-color: var(--s-red); }
body.theme-site .timeline .list-i { border-color: var(--s-line); }
body.theme-site .ev-d { color: var(--s-muted); font-family: var(--s-ui); }
body.theme-site .modal-bg { background: rgba(0,0,0,.45); backdrop-filter: none; }
body.theme-site .modal-x { color: var(--s-muted); }

/* вход: белая шапка-баннер, как главная сайта */
body.theme-site .auth-hero::after { display: none; }
body.theme-site .auth-hero { background: #fff; border-right: 1px solid var(--s-line); }
body.theme-site .auth-hero::before { content: ''; position: absolute; right: 40px; bottom: 40px; width: 220px; height: 220px; background: url(/img/icon-color.png) no-repeat center / contain; opacity: .9; }
body.theme-site .auth-title { color: var(--s-text); font-family: var(--s-serif); font-weight: 700; letter-spacing: 0; }
body.theme-site .auth-title em { color: var(--s-red); font-family: var(--s-ui); font-weight: 700; letter-spacing: 6px; }
body.theme-site .auth-form .scroll { border-radius: 8px; }

/* страница кандидата */
body.theme-site .c-hero { background: #fff; border: 0; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.04); min-height: 0; }
body.theme-site .c-hero > *:not(.dragon):not(.wm) { max-width: 100%; }
body.theme-site .c-hero div[style*="gold-pale"] { color: var(--s-text) !important; font-family: var(--s-serif); }
body.theme-site .hero-msg { background: var(--s-beige); color: var(--s-text); border-left-color: var(--s-red); border-radius: 0 4px 4px 0; font-family: var(--s-serif); }
body.theme-site .meta { color: var(--s-muted); font-family: var(--s-ui); }
body.theme-site .toc-i { background: #fff; color: var(--s-text); border: 0; border-bottom: 1px solid var(--s-line); border-radius: 0; font-family: var(--s-serif); font-size: 17px; }
body.theme-site .toc { gap: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
body.theme-site .toc-n { background: #fff; color: var(--s-red); box-shadow: inset 0 0 0 1.5px var(--s-red); font-family: var(--s-serif); }
body.theme-site .toc-ok { color: #3E9E5E; }
body.theme-site .cblock-n { color: var(--s-light); opacity: .5; font-family: var(--s-serif); }
body.theme-site .cblock-t { color: var(--s-text) !important; font-family: var(--s-serif); font-weight: 700; }
body.theme-site .lead { color: var(--s-muted); font-family: var(--s-serif); }
body.theme-site .cta { background: #fff; border: 0; border-top: 1px solid var(--s-line); border-radius: 8px; box-shadow: 0 -2px 16px rgba(0,0,0,.08); backdrop-filter: none; }
body.theme-site .cta-p { color: var(--s-muted); font-family: var(--s-ui); }
body.theme-site .owner { color: var(--s-muted); font-family: var(--s-ui); }
body.theme-site .owner strong { color: var(--s-text); font-family: var(--s-serif); }

/* --- переключатель темы --- */
.theme-sw { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(27,10,13,.35); border: 1px solid rgba(212,175,55,.35); margin: 16px 6px 0; }
.theme-sw button { flex: 1; border: 0; background: none; border-radius: 99px; padding: 6px 8px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--gold-light); }
.theme-sw button.on { background: var(--gold); color: var(--ink); }
body.theme-site .theme-sw { background: #fff; border: 1px solid var(--s-input); border-radius: 4px; }
body.theme-site .theme-sw button { color: var(--s-muted); border-radius: 3px; font-family: var(--s-ui); font-weight: 400; }
body.theme-site .theme-sw button.on { background: var(--s-red); color: #fff; }
.auth .theme-sw { position: absolute; top: 14px; right: 14px; z-index: 5; margin: 0; width: 260px; }

@media (max-width: 900px) {
  .auth .theme-sw { position: relative; top: 0; right: 0; width: auto; margin: 12px 14px 0; }
  body.theme-site .hero { background-image: none; }
  body.theme-site .hero > * { max-width: 100%; }
  body.theme-site .auth-hero::before { display: none; }
  body.theme-site .side { background: #fff; }
}

body.theme-site .promo-canvas { border: 1px solid var(--s-line); box-shadow: 0 2px 12px rgba(0,0,0,.06); background: #fff; }
body.theme-site .side-x { border-color: var(--s-input); color: var(--s-text); border-radius: 4px; }

/* ---------- админка: вкладки ---------- */
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 22px; }
.adm-tabs a { padding: 8px 16px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--gold-light); box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, .45); }
.adm-tabs a.on { background: linear-gradient(180deg, var(--red-bright), var(--red)); color: var(--gold-pale); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .6); }
.adm-tabs .badge { margin-left: 4px; }
body.theme-site .adm-tabs { gap: 0; border-bottom: 1px solid var(--s-line); }
body.theme-site .adm-tabs a { border-radius: 0; box-shadow: none; color: var(--s-muted); font-family: var(--s-serif); font-size: 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.theme-site .adm-tabs a.on { background: none; color: var(--s-red); border-bottom-color: var(--s-red); }
.scroll a.btn-red { color: var(--gold-pale); text-decoration: none; }
.scroll a.btn-ghost { text-decoration: none; }
body.theme-site .scroll a.btn-red { color: #fff; }
@media (max-width: 700px) {
  .adm-hide-m { display: none; }
  .adm-tabs a { padding: 7px 12px; font-size: 13px; }
  body.theme-site .adm-tabs a { font-size: 15px; padding: 8px 10px; }
}
