/* Aversum: платформа на сайте. Цвета и тени берутся из общей темы /assets/aversum-theme.css */
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font: 400 16px/1.55 var(--font); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 0 18px; }

/* Шапка */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1040px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font: 700 20px var(--font); letter-spacing: -.02em; text-decoration: none; }
.logo img { width: 32px; height: auto; } .logo b { color: var(--em); }
.sp { flex: 1; }
.bar a.lnk { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; } .bar a.lnk:hover { color: var(--text); }
.themebtn { background: none; border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; } .themebtn:hover { color: var(--text); background: var(--surface-2); }

/* Кнопки и поля */
.btn { box-shadow: 0 1px 2px rgba(0, 0, 0, .04); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn.em { background: var(--em); color: var(--em-ink); border-color: transparent; box-shadow: 0 8px 20px -8px var(--em); } .btn.em:hover { background: var(--em-hover); }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 9px; } .btn.lg { padding: 14px 24px; font-size: 16.5px; width: 100%; }
.btn.danger { color: var(--bad); } .btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: block; margin: 12px 0; } .field > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--em); box-shadow: 0 0 0 3px var(--em-soft); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
h1 { font: 700 clamp(26px, 4vw, 34px)/1.15 var(--font); letter-spacing: -.025em; margin: 10px 0 8px; } h2 { font: 700 21px/1.25 var(--font); letter-spacing: -.015em; margin: 0 0 12px; } h3 { font: 600 17px/1.3 var(--font); margin: 0 0 6px; }
.eyebrow { font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .center { text-align: center; } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.pill { display: inline-block; font: 600 12px/1 var(--font); padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--em-soft); color: var(--em); } .pill.bad { background: rgba(217, 45, 32, .1); color: var(--bad); } .pill.warn { background: rgba(247, 144, 9, .14); color: var(--warn); }

/* Вкладки: линия снизу, на телефоне прокручиваются */
.tabs { display: flex; gap: 2px; margin: 6px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); padding: 10px 14px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px; flex: none; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--text); border-bottom-color: var(--em); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; } .chip:hover { color: var(--text); } .chip.on { background: var(--em); color: var(--em-ink); border-color: transparent; }
.grid { display: grid; gap: 16px; } @media (min-width: 760px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }

/* Карточки продуктов и страница продукта */
.pcard { display: block; text-decoration: none; transition: border-color .15s; } .pcard:hover { border-color: var(--faint); }
.pcard .cov { height: 140px; border-radius: 10px; background: linear-gradient(135deg, var(--em-soft), var(--surface-2)) center/cover; margin-bottom: 12px; }
.cover { height: 240px; border-radius: 16px; background: linear-gradient(135deg, var(--em-soft), var(--surface-2)) center/cover; display: flex; align-items: flex-end; padding: 24px; margin: 22px 0 18px; border: 1px solid var(--line); }
.cover[style*="url"] { color: #fff; border: 0; } .cover[style*="url"] .pill { background: rgba(255, 255, 255, .2); color: #fff; }
.pgrid { display: grid; gap: 22px; margin-bottom: 60px; align-items: start; } @media (min-width: 900px) { .pgrid { grid-template-columns: 1.5fr 1fr; } .sticky { position: sticky; top: 84px; } }
.desc { white-space: pre-wrap; color: var(--text); font-size: 16.5px; }
.lessonrow { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; } .lessonrow:last-child { border: 0; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface); cursor: pointer; } .opt:hover { border-color: var(--faint); } .opt.on { border-color: var(--em); background: var(--em-soft); } .opt small { display: block; color: var(--muted); font-size: 12.5px; }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); flex: none; } .opt.on .radio { border-color: var(--em); background: radial-gradient(circle, var(--em) 42%, transparent 46%); } .opt .price { margin-left: auto; font: 700 17px var(--font); color: var(--text); white-space: nowrap; }
.req { background: var(--surface-2); border-left: 3px solid var(--em); border-radius: 10px; padding: 12px; margin: 10px 0; word-break: break-word; font-weight: 600; }
pre.req { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 400; white-space: pre-wrap; }
.notice { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 14.5px; background: var(--surface-2); border-left: 3px solid var(--faint); } .notice.ok { border-left-color: var(--em); background: var(--em-soft); } .notice.bad { border-left-color: var(--bad); } .notice.warn { border-left-color: var(--star); }

/* Обучение */
.learn { display: grid; gap: 18px; margin: 20px 0 60px; } @media (min-width: 900px) { .learn { grid-template-columns: 300px 1fr; align-items: start; } }
.side .lessonrow { cursor: pointer; color: var(--text); border-radius: 10px; border: 0; } .side .lessonrow:hover { background: var(--surface-2); } .side .lessonrow.cur { background: var(--em-soft); } .side .lessonrow.locked { opacity: .5; }
.prog { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 8px 0 14px; } .prog i { display: block; height: 100%; background: var(--em); }
.video { position: relative; aspect-ratio: 16/9; width: 100%; border-radius: 14px; background: #000; margin-bottom: 14px; overflow: hidden; } .video iframe { width: 100%; height: 100%; border: 0; }
.body { white-space: pre-wrap; word-break: break-word; }
.msg { display: flex; gap: 10px; margin-bottom: 14px; font-size: 15px; } .msg .av { width: 34px; height: 34px; border-radius: 50%; background: var(--em-soft); color: var(--em); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 13px; } .msg.reply { margin-left: 44px; } .msg .who { font-weight: 600; } .msg p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
/* Водяной знак: имя и номер покупателя медленно плавают по кадру, чтобы утёкшую запись можно было отследить */
.wm { position: absolute; z-index: 2; pointer-events: none; user-select: none; color: rgba(255, 255, 255, .4); font: 600 13px/1.2 var(--font); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; animation: wmmove 36s linear infinite; }
@keyframes wmmove { 0% { left: 4%; top: 8%; } 25% { left: 56%; top: 14%; } 50% { left: 28%; top: 78%; } 75% { left: 58%; top: 58%; } 100% { left: 4%; top: 8%; } }

/* Кабинет */
.editor-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.mod { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 16px; background: var(--surface); }
.kas { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface); } .kas.on { border-color: var(--em); } .kas small { display: block; color: var(--muted); }
.kas .lg { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; } .stat span { color: var(--muted); font-size: 13px; } .stat b { display: block; font: 700 22px var(--font); margin-top: 2px; } .stat b.em { color: var(--em); }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; } .col { flex: 1; height: 100%; display: flex; align-items: flex-end; } .col i { display: block; width: 100%; background: var(--em); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; } .col:hover i { opacity: 1; }
.stars { display: flex; gap: 4px; margin: 8px 0; } .star { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; padding: 0 2px; } .star.on { color: var(--star); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 10px; z-index: 100; max-width: 90vw; text-align: center; font-size: 14.5px; }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 60; display: grid; place-items: center; padding: 18px; } .modal { background: var(--surface); border-radius: 16px; padding: 22px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; }
.spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--em); border-radius: 50%; animation: s .8s linear infinite; margin: 60px auto; } @keyframes s { to { transform: rotate(360deg); } }
img.receipt { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
footer.pf { text-align: center; color: var(--muted); font-size: 13.5px; padding: 30px 18px 40px; } footer.pf a { color: var(--muted); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 14px 0; cursor: pointer; } .agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--em); } .agree a { color: var(--text); }

/* Страница автора: обложка, аватар, вкладки, лента */
.acover { height: 200px; background: linear-gradient(135deg, var(--em-soft), var(--surface-2)) center/cover; border-bottom: 1px solid var(--line); } @media (min-width: 760px) { .acover { height: 260px; } }
.aprofile { display: flex; gap: 18px; align-items: flex-end; margin-top: -44px; flex-wrap: wrap; }
.avatar { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--bg); background: var(--em-soft) center/cover; color: var(--em); display: grid; place-items: center; font: 700 32px var(--font); flex: none; overflow: hidden; }
.avatar.sm { width: 44px; height: 44px; border-width: 0; font-size: 16px; }
.aname { flex: 1; min-width: 200px; padding-bottom: 4px; } .aname h1 { margin: 0; } .aname .muted { margin: 2px 0 0; }
.alayout { display: grid; gap: 22px; margin-top: 8px; margin-bottom: 60px; } @media (min-width: 900px) { .alayout { grid-template-columns: 1fr 320px; align-items: start; } }
.post { padding: 18px; } .post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .post-head .grow b { display: block; line-height: 1.2; } .post-head small { color: var(--muted); }
.post h3 { font-size: 19px; margin: 4px 0 8px; } .ptext { white-space: pre-wrap; word-break: break-word; }
.ptext.clip { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.imgs { display: grid; gap: 4px; margin-top: 12px; border-radius: 12px; overflow: hidden; } .imgs.n1 { grid-template-columns: 1fr; } .imgs.n2 { grid-template-columns: 1fr 1fr; } .imgs.n3, .imgs.n4, .imgs.many { grid-template-columns: 1fr 1fr; }
.imgs img { width: 100%; display: block; cursor: zoom-in; background: var(--surface-2); object-fit: cover; } .imgs.n1 img { max-height: 520px; object-fit: contain; } .imgs:not(.n1) img { aspect-ratio: 1/1; }
.pfoot { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.like { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; } .like:hover { background: var(--surface-2); } .like.on { color: var(--bad); border-color: var(--bad); }
.lockbox { margin-top: 10px; border: 1px dashed var(--faint); border-radius: 12px; padding: 22px; text-align: center; background: var(--surface-2); }
.lockbox .lk { font-size: 28px; } .lockbox p { margin: 6px 0 14px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; } .gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; cursor: zoom-in; background: var(--surface-2); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 80; display: grid; place-items: center; padding: 16px; cursor: zoom-out; } .lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; } .links a:last-child { border: 0; } .links a:hover { color: var(--em); }
.picker { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .picker .avatar { width: 72px; height: 72px; border-width: 0; font-size: 24px; } .picker .covprev { width: 160px; height: 72px; border-radius: 10px; background: var(--surface-2) center/cover; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; background: var(--surface-2) center/cover; border: 1px solid var(--line); } .thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; line-height: 1; }

@media (max-width: 640px) {
  .logo { font-size: 20px; }
  .row > .field.grow { flex: 1 1 100%; margin-bottom: 0; } .field input, .field select, .field textarea { font-size: 16px; padding: 13px; } .row > .field.grow + .field { flex: 1; }
  .avatar { width: 84px; height: 84px; font-size: 28px; } .aprofile { margin-top: -38px; }
}
.areachart { width: 100%; height: 150px; display: block; overflow: visible; } .areachart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; } .areachart .fill { fill: var(--em-soft); } .areachart .stroke { fill: none; stroke: var(--em); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .areachart .dot { fill: var(--surface); stroke: var(--em); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* Пошаговая инструкция с картинками */
.guide-step { display: grid; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); } .guide-step:last-child { border: 0; }
@media (min-width: 760px) { .guide-step { grid-template-columns: 1fr 1.1fr; } }
.guide-step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--em); color: var(--em-ink); font-weight: 700; margin-right: 8px; }
.guide-step svg { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
/* Таблицы админки платформы */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; } .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ── Шапка: на телефоне меню под кнопкой ☰ ── */
.bar-nav { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; flex: none; }
@media (max-width: 760px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .bar-nav { display: none; }
  .bar.open .bar-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; left: 10px; right: 10px; top: calc(100% + 6px); padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); animation: mmIn .2s ease; }
  .bar.open .bar-nav a, .bar.open .bar-nav > button:not(.themebtn) { display: block; width: 100%; text-align: left; padding: 13px 14px; border-radius: 11px; font-size: 16px; }
  .bar.open .bar-nav a:hover { background: rgba(127, 127, 127, .1); }
  .bar.open .bar-nav .themebtn { align-self: flex-start; margin: 6px 14px 4px; }
  .bar-in { position: relative; padding: 10px 14px; }
}
@keyframes mmIn { from { opacity: 0; transform: translateY(-6px); } }

/* ── Кабинет на телефоне ── */
@media (max-width: 640px) {
  .wrap, .narrow { padding: 0 14px; }
  h1 { font-size: 26px; line-height: 1.2; }
  .card { padding: 16px !important; border-radius: 16px; }
  .row { flex-wrap: wrap; }
  .row > .btn:not(.sm) { flex: 1 1 auto; }
  .btn { min-height: 44px; } .btn.sm { min-height: 36px; }
  .tabs { margin-left: -14px; margin-right: -14px; padding: 0 14px; }
  .tabs a, .tabs button { padding: 12px 12px; font-size: 15px; }
  .grid { gap: 10px; }
  .grid.c3[style*="minmax(150px"] { grid-template-columns: 1fr 1fr !important; }
  .grid.c3[style*="minmax(230px"] { grid-template-columns: 1fr !important; }
  .kas { flex-wrap: wrap; align-items: flex-start !important; }
  .kas > .grow { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .kas > :last-child:not(.grow):not(.lg) { flex: 1 1 100%; margin-left: 0; display: flex; gap: 8px; flex-wrap: wrap; }
  .kas > :last-child:not(.grow):not(.lg) .btn, .kas > .btn:last-child { flex: 1 1 auto; }
  .kas .pill { display: inline-block; margin: 4px 0 0 !important; }
  .modal { width: calc(100vw - 20px) !important; max-height: calc(100svh - 20px); overflow-y: auto; padding: 18px !important; border-radius: 18px; }
  .tbl { font-size: 13px; } .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .stat b { font-size: 19px; }
  .toast { left: 12px; right: 12px; bottom: 16px; transform: none; max-width: none; text-align: center; }
}

/* Телефоны и планшеты: без размытия под шапкой и окнами — оно тормозит прокрутку */
@media (max-width: 767px), (hover: none) {
  .bar, .dk .modal-bg { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ══ Стиль «Зелёный» для кабинетов: тёмно-зелёное меню и шапка, светлый (или чёрный) лист, мягкие карточки, круглые кнопки ══ */
:root {
  --deep: #0c3527; --deep-fg: #f1efe8; --deep-muted: #a9c6b7; --deep-faint: #7fa392; --mint: #8ff0bd;
  --bg: #fdfcf9; --surface: #ffffff; --surface-2: #f4f2ec; --line: #e9e6dd; --line2: #dcd8cd;
  --text: #10140f; --muted: #575c55; --faint: #8a8f87; --soft: #2d332b;
  --em: #0c6c46; --em-hover: #0a5c3c; --em-soft: rgba(12, 108, 70, .09); --em-ink: #ffffff;
  --bad: #b8362c; --warn: #9a5b07; --radius: 22px; --shadow: none; --shadow-lg: 0 30px 70px -30px rgba(12, 40, 28, .4);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --surface: #1d1e1c; --surface-2: #131413; --line: #242523; --line2: #353734;
    --text: #f1efe8; --muted: #a3a29c; --faint: #6f6e69; --soft: #d8d6cf;
    --em: #8ff0bd; --em-hover: #aaf5cd; --em-soft: rgba(143, 240, 189, .11); --em-ink: #072418;
    --bad: #ff8a80; --warn: #ffc267; --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --surface: #1d1e1c; --surface-2: #131413; --line: #242523; --line2: #353734;
  --text: #f1efe8; --muted: #a3a29c; --faint: #6f6e69; --soft: #d8d6cf;
  --em: #8ff0bd; --em-hover: #aaf5cd; --em-soft: rgba(143, 240, 189, .11); --em-ink: #072418;
  --bad: #ff8a80; --warn: #ffc267; --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9); color-scheme: dark;
}
html, body { background: var(--bg); }
.blobs { display: none; }
::selection { background: var(--mint); color: #072418; }
svg.i { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-weight: 500; letter-spacing: -.04em; }
h2 { font-weight: 500; letter-spacing: -.03em; }
h3 { font-weight: 600; letter-spacing: -.015em; }

/* Кнопки: круглые, плоские, без теней */
.btn { border: 0; border-radius: 999px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 600; padding: 11px 20px; transition: background .14s, box-shadow .14s; }
.btn:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--text); }
.btn.em { background: var(--text); color: var(--bg); box-shadow: none; }
.btn.em:hover { background: color-mix(in srgb, var(--text) 84%, var(--bg)); box-shadow: none; }
.btn.sm { border-radius: 999px; padding: 7px 15px; }
.btn.lg { padding: 15px 26px; }
.btn.danger { color: var(--bad); } .btn.danger:hover { box-shadow: inset 0 0 0 1px var(--bad); }
.themebtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.themebtn:hover { background: var(--surface-2); color: var(--text); }

/* Поля */
.field input, .field select, .field textarea, input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], select, textarea { background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: none; color: var(--text); }
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], select, textarea { padding: 11px 14px; max-width: 100%; }
textarea { width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--em); box-shadow: 0 0 0 3px var(--em-soft); }
.field > span { color: var(--text); font-weight: 600; font-size: 13.5px; }

/* Карточки: мягкая подложка без рамок; всё вложенное — на белом (или на ступень светлее) */
.card { background: var(--surface-2); border: 0; border-radius: 22px; padding: 24px; box-shadow: none; }
.card .card, .card .editor-row, .card .mod, .card .kas, .card .stat, .card .opt { background: var(--surface); }
.editor-row, .mod, .kas { background: var(--surface-2); border: 0; border-radius: 16px; box-shadow: none; }
.kas.on { box-shadow: inset 0 0 0 2px var(--em); }
.card .req, .card .notice:not(.ok):not(.warn):not(.bad), .card pre.req { background: var(--surface); }
.pill { border-radius: 999px; font-weight: 600; padding: 6px 11px; background: var(--surface); color: var(--muted); }
.pill.ok { background: var(--em-soft); color: var(--em); }
.card .pill:not(.ok):not(.bad):not(.warn) { background: var(--surface); }
.chip { border-radius: 999px; border: 0; background: var(--surface-2); color: var(--muted); }
.card .chip { background: var(--surface); }
.chip.on, .card .chip.on { background: var(--text); color: var(--bg); box-shadow: none; }
.opt { border-radius: 16px; }
.notice { border: 0; border-radius: 16px; background: var(--surface-2); padding: 14px 16px; }
.notice.ok { background: var(--em-soft); }
.notice.warn { background: color-mix(in srgb, var(--warn) 11%, transparent); }
.notice.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.req { background: var(--surface-2); border: 0; border-radius: 14px; font-weight: 500; }
.modal-bg { background: rgba(6, 20, 14, .6); }
.modal { background: var(--bg); border: 0; border-radius: 26px; box-shadow: var(--shadow-lg); }
.toast { background: var(--deep); color: var(--deep-fg); border: 0; border-radius: 999px; box-shadow: var(--shadow-lg); }
.lockbox, .guide-step svg, .learn .side { border-radius: 16px; }

/* Цифры */
.stat { background: var(--surface-2); border: 0; border-radius: 20px; padding: 20px 20px 18px; }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat b { font-size: 30px; font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat b.em { color: var(--em); }
.grid.c3 > .stat:first-child { background: var(--deep); color: var(--deep-fg); }
.grid.c3 > .stat:first-child span { color: var(--deep-muted); }
.grid.c3 > .stat:first-child b { color: var(--mint); }

/* Таблицы */
.table-wrap { overflow-x: auto; }
.tbl th { font-size: 12.5px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line2); }
.tbl td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }

/* Вкладки-переключатели */
.tabs { display: flex; gap: 2px; padding: 4px; border: 0; border-radius: 999px; background: var(--surface-2); width: max-content; max-width: 100%; }
.card .tabs { background: var(--surface); }
.tabs a, .tabs button { border: 0; margin: 0; border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.tabs .on { background: var(--text); color: var(--bg); box-shadow: none; }

/* Верхняя шапка на открытых страницах (вход, каталог, продукты) */
.bar { background: var(--deep); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar-in { max-width: 1160px; min-height: 64px; }
.bar .logo { color: var(--deep-fg); } .bar .logo b { color: var(--mint); }
.bar a.lnk { color: var(--deep-muted); } .bar a.lnk:hover { color: #fff; }
.bar .themebtn, .bar .burger { background: transparent; border: 0; color: var(--deep-muted); } .bar .themebtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bar .btn { color: #0c3527; background: #f1efe8; box-shadow: none; } .bar .btn:hover { background: #fff; }
.logo { font-weight: 700; letter-spacing: -.03em; }
footer.pf { color: var(--faint); }

/* ── Кабинет: зелёное боковое меню ── */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 14px 14px; background: var(--deep); color: var(--deep-fg); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.side .logo { padding: 2px 12px; font-size: 19px; color: var(--deep-fg); } .side .logo b { color: var(--mint); }
.side-nav { display: grid; gap: 22px; align-content: start; }
.sgroup { display: grid; gap: 2px; }
.sgroup > b { font-size: 12px; font-weight: 500; color: var(--deep-faint); padding: 0 12px 6px; }
.sgroup a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 999px; color: var(--deep-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.sgroup a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sgroup a.on { background: #f1efe8; color: #0c3527; font-weight: 600; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; padding: 14px 2px 2px; border-top: 1px solid rgba(255, 255, 255, .12); }
.side .themebtn { color: var(--deep-muted); } .side .themebtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.who-am { flex: 1; min-width: 0; padding-left: 10px; } .who-am b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who-am span { display: block; font-size: 12.5px; color: var(--deep-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; padding-bottom: 36px; }
.shell .main .wrap { max-width: 1060px; margin: 0; padding: 0 40px; }
.shell .main .narrow { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.phead { max-width: 1060px; padding: 40px 40px 22px; }
.phead h1 { font-size: 38px; line-height: 1.08; margin: 0 0 8px; }
.phead p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 640px; }
.how { margin-top: 20px; max-width: 780px; border: 1px solid var(--line2); border-radius: 18px; }
.how summary { cursor: pointer; padding: 13px 20px; font-size: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: "+"; color: var(--faint); font-size: 18px; line-height: 1; } .how[open] summary::after { content: "−"; }
.how ol { margin: 0; padding: 2px 20px 18px; list-style: none; counter-reset: st; display: grid; gap: 11px; }
.how li { counter-increment: st; display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.how li::before { content: counter(st); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--deep); color: var(--mint); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.shell .cab-h1, .shell .cab-tabs { display: none; }
.shell footer.pf { text-align: left; padding: 30px 40px 0; }
.mtop, .veil { display: none; }
@media (max-width: 920px) {
  .shell { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 288px; z-index: 70; transform: translateX(-102%); transition: transform .2s; }
  .shell.open .side { transform: none; }
  .shell.open .veil { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); }
  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 12px; background: var(--deep); }
  .mtop .logo { color: var(--deep-fg); } .mtop .logo b { color: var(--mint); }
  .mtop .themebtn { color: var(--deep-muted); }
  .shell .main .wrap { padding: 0 14px; }
  .phead { padding: 22px 14px 14px; } .phead h1 { font-size: 29px; }
  .shell footer.pf { padding: 26px 14px 0; }
  .bar.open .bar-nav { background: var(--deep); border-color: rgba(255, 255, 255, .14); }
  .bar.open .bar-nav a { color: var(--deep-fg); }
  .card { padding: 18px !important; border-radius: 20px; }
}
@media (max-width: 640px) { .tabs { margin-left: 0; margin-right: 0; padding: 4px; overflow-x: auto; } .tabs a, .tabs button { padding: 9px 14px; font-size: 14px; } }
