/* ADN Synergy — стили по макету Figma (Century Gothic, тёмная тема, акцент по статусу) */
:root {
  --bg: #080808; --panel: #121212; --tile: #1a1a1a; --line: #282828; --grey: #666666; --white: #ffffff;
  --pink: #ea39c2; --green: #20e500; --orange: #ffa216; --blue: #3cbdec; --red: #ff4646;
  --g-pink: linear-gradient(270deg, rgba(199, 10, 157, .8), #ff47d7);
  --g-orange: linear-gradient(270deg, #bd7303, #ffa216);
  --g-blue: linear-gradient(240deg, #0a74bc, #38b7e9);
  --g-green: linear-gradient(270deg, #13a300, #20e500);
  --g-red: linear-gradient(270deg, #b52020, #ff4646);
  --ac: var(--pink); --g-ac: var(--g-pink);
  --font: "Century Gothic", "CenturyGothic", "Didact Gothic", "Questrial", "URW Gothic", "Segoe UI", Arial, sans-serif;
}
body.st-std { --ac: var(--orange); --g-ac: var(--g-orange); }
body.st-prog { --ac: var(--blue); --g-ac: var(--g-blue); }
body.st-exp, body.admin { --ac: var(--pink); --g-ac: var(--g-pink); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--white); font: 18px/1.22 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
a { color: var(--ac); }
img { display: block; }
::selection { background: rgba(234, 57, 194, .35); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.muted { color: var(--grey); }
.ac { color: var(--ac); }
.c-green { color: var(--green); } .c-orange { color: var(--orange); } .c-blue { color: var(--blue); } .c-pink { color: var(--pink); } .c-red { color: var(--red); } .c-white { color: #fff; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: 262px 1fr; height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 25px 0 30px; overflow-y: auto; }
.logo { margin: 0 0 63px 30px; width: 180px; height: 44px; display: block; }
.logo svg { width: 180px; height: 44px; display: block; }
.menu { display: flex; flex-direction: column; gap: 10px; padding: 0 0 0 17px; }
.menu .gap { height: 90px; }
.mi { display: flex; align-items: center; height: 40px; color: var(--grey); text-align: left; gap: 3px; font-size: 18px; white-space: nowrap; transition: color .15s; }
.mi svg { width: 40px; height: 40px; flex: none; }
.mi svg [fill="#666666"] { fill: currentColor; }
.mi svg [stroke="#666666"] { stroke: currentColor; }
.mi svg [fill="#EA39C2"] { fill: currentColor; }
.mi:hover { color: #9a9a9a; }
.mi.on { color: var(--ac); }
.mi .plus { display: inline-grid; place-items: center; height: 18px; min-width: 20px; padding: 0 3px; margin-left: 10px; border: 1px solid var(--ac); border-radius: 5px; font-size: 11px; color: #fff; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.top { flex: none; height: 132px; border-bottom: 1px solid var(--line); padding: 23px 30px 0; display: flex; align-items: flex-start; gap: 20px; }
.top .wrap { max-width: 1388px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.top-label { font-size: 16px; margin-bottom: 8px; white-space: nowrap; }
.linkbox { width: 302px; height: 60px; border-radius: 9px; background: var(--panel); border: 1px solid var(--ac); display: flex; align-items: center; padding: 0 10px 0 20px; font-size: 20px; gap: 10px; }
.linkbox span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.linkbox button:hover { background: #1f1f1f; }
.top-right { display: flex; align-items: center; gap: 30px; }
.adminbox { height: 60px; border-radius: 9px; border: 1px solid var(--pink); background: var(--panel); display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 16px; font-size: 18px; }
.content { flex: 1; overflow-y: auto; padding: 30px 30px 50px; }
.page { max-width: 1388px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- кнопки ---------- */
.btn { --c: var(--ac); --g: var(--g-ac); --b: var(--panel);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 30px; border-radius: 10px;
  color: var(--c); background: linear-gradient(var(--b), var(--b)) padding-box, var(--g) border-box; border: 1px solid transparent;
  font-size: 18px; white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.25); }
.btn:active:not(:disabled) { filter: brightness(.9); }
.btn.dark { --b: var(--bg); }
.btn.sm { height: 52px; padding: 0 20px; font-size: 18px; }
.btn.xs { height: 40px; padding: 0 16px; font-size: 16px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn.orange { --c: var(--orange); --g: var(--g-orange); }
.btn.blue { --c: var(--blue); --g: var(--g-blue); }
.btn.pink { --c: var(--pink); --g: var(--g-pink); }
.btn.green { --c: var(--green); --g: var(--g-green); }
.btn.red { --c: var(--red); --g: var(--g-red); }
.btn.grey, .btn:disabled { --c: var(--grey); --g: linear-gradient(var(--line), var(--line)); }
.btn.redfade { --c: #9c2a2a; --g: linear-gradient(#3a1a1a, #3a1a1a); }
.btn .arr { width: 20px; height: 20px; }
.qmark { width: 24px; height: 24px; border-radius: 50%; background: var(--tile); border: 1px solid var(--grey); color: #fff; font-size: 16px; display: inline-grid; place-items: center; line-height: 1; }
.qmark:hover { border-color: var(--ac); }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--grey); }
.iconbtn:hover { color: #fff; background: #1f1f1f; }

/* ---------- панели и плитки ---------- */
.panel { background: var(--panel); border-radius: 10px; padding: 20px; position: relative; }
.panel-h { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px -4px; min-height: 27px; }
.panel-h h2, .h2 { font-size: 22px; font-weight: 400; margin: 0; }
.h3 { font-size: 22px; font-weight: 400; margin: 0 0 16px; }
.tile { background: var(--tile); border-radius: 10px; }
.stat { background: var(--tile); border-radius: 10px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 10px; }
.stat b { font-weight: 400; font-size: 36px; line-height: 43px; }
.stat span { color: var(--grey); font-size: 18px; }
.stat.sm { height: 78px; gap: 2px; } .stat.sm b { font-size: 30px; line-height: 36px; } .stat.sm span { font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* аккаунт: верхний блок */
.acc-top { display: grid; grid-template-columns: 431fr 469fr 428fr; gap: 0 20px; align-items: start; }
.acc-top .col { display: grid; gap: 20px; }
.panel > .q { position: absolute; left: calc(50% + 126px); top: 24px; }
.avatar { display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.ring { width: 124px; height: 124px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ac) calc(var(--p) * 1%), var(--grey) 0); }
.ring::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--tile); }
.ring > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ac); font-size: 16px; }
.ring svg { width: 50px; height: 50px; }
.avatar .nm { margin-top: 20px; font-size: 18px; }
.avatar .st { margin-top: 10px; color: var(--ac); font-size: 16px; }

/* карточки статусов */
.statuses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard { position: relative; height: 229px; border-radius: 9px; background: var(--panel); overflow: hidden; padding: 20px; border: 1px solid transparent; }
.scard.on { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--sg) border-box; }
.scard.std { --sc: var(--orange); --sg: var(--g-orange); } .scard.prog { --sc: var(--blue); --sg: var(--g-blue); } .scard.exp { --sc: var(--pink); --sg: var(--g-pink); }
.scard .ttl { display: flex; align-items: baseline; gap: 20px; font-size: 18px; margin-bottom: 21px; position: relative; z-index: 1; color: var(--grey); }
.scard.on .ttl, .scard.bright .ttl { color: #fff; }
.scard .ttl small { font-size: 14px; color: var(--grey); }
.scard ul { list-style: none; margin: 0; padding: 0; width: 247px; position: relative; z-index: 1; }
.scard li { height: 39px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--grey); white-space: nowrap; }
.scard li:first-child { height: 30px; align-items: flex-start; }
.scard.on li, .scard.bright li { color: #fff; }
.scard li i { font-style: normal; color: var(--sc); }
.scard li i.g { color: var(--green); }
.scard .ringimg { position: absolute; right: -66px; top: 14px; height: 200px; width: auto; opacity: .35; pointer-events: none; }
.scard.on .ringimg, .scard.bright .ringimg { opacity: 1; }
.scard .edit { color: var(--grey); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.scard .edit:hover { color: #fff; background: #222; }
.scard.admin ul { width: 336px; }
.scard.admin .ringimg { height: 100px; top: 24px; right: -30px; }
.scard.admin { height: auto; padding-bottom: 20px; }
.scard.admin li { height: 39px; } .scard.admin li:first-child { height: 39px; align-items: center; }
.scard li input { width: 90px; background: #1f1f1f; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: #fff; font-size: 16px; }

/* ---------- карусели и карточки ---------- */
.arrows { display: flex; gap: 5px; }
.arrows button { width: 27px; height: 27px; color: #fff; display: grid; place-items: center; }
.arrows button:disabled { color: var(--grey); }
.arrows svg { width: 27px; height: 27px; }
.arrows svg path { stroke: currentColor; }
.car { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 0 0 0 4px; }
.car::-webkit-scrollbar { display: none; }
.card { flex: none; width: 253px; background: var(--tile); border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; position: relative; text-align: left; }
.card.sel { outline: 1px solid var(--pink); }
.card .img { height: 140px; position: relative; background: var(--bg) center/cover no-repeat; }
.card.done .img { background-image: none !important; }
.card.dim .img::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 8, .65); }
.card .body { padding: 15px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.card .t { font-size: 18px; min-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .t2 { font-size: 16px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .t3 { font-size: 16px; min-height: 40px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .btn { margin-top: 15px; width: 223px; height: 52px; --b: var(--bg); }
.card.done .t, .card.done .t2, .card.dim .t3 { color: var(--grey); }
.card.done .t i { color: var(--grey); }
.card .t i { font-style: normal; }
.tag { position: absolute; left: 18px; top: 15px; height: 24px; padding: 0 14px; border-radius: 6px; font-size: 14px; display: inline-flex; align-items: center;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--tg, linear-gradient(#fff, #fff)) border-box; border: 1px solid transparent; z-index: 2; }
.tag.grey { color: var(--grey); --tg: linear-gradient(var(--grey), var(--grey)); }
.tag.price { left: 15px; }
.tag.tier { left: auto; right: 15px; top: auto; bottom: 7px; text-transform: uppercase; }
.tag.dim { color: var(--grey); --tg: linear-gradient(#444, #444); }
.badges { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 5px; z-index: 2; }
.badges span { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: linear-gradient(#121212, #121212) padding-box, var(--bg2, linear-gradient(#fff, #fff)) border-box; border: 1px solid transparent; color: #fff; }
.card.done .badges span { color: var(--grey); --bg2: linear-gradient(#444, #444); }
.zoom { position: absolute; left: 15px; bottom: 7px; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--bg); border: 1px solid #fff; z-index: 2; }
.tier-premium { --tc: var(--orange); --tg: var(--g-orange); --bg2: var(--g-orange); }
.tier-premiumplus { --tc: var(--blue); --tg: var(--g-blue); --bg2: var(--g-blue); }
.tier-luxury { --tc: var(--pink); --tg: var(--g-pink); --bg2: var(--g-pink); }
.tc { color: var(--tc); font-style: normal; }
i.tc { font-style: normal; }
.card .tag.tier { color: #fff; }

.cats { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.cats button { height: 60px; padding: 0 28px; border-radius: 9px; border: 1px solid var(--line); color: var(--grey); font-size: 18px; white-space: nowrap; flex: 1 0 auto; }
.cats button:hover { color: #aaa; }
.cats button.on { color: var(--ac); border-color: var(--ac); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.actions .btn { width: 251px; }
.empty { color: var(--grey); padding: 10px 4px; }

/* ---------- сеть (дерево) ---------- */
.tree { position: relative; height: 563px; padding: 0; overflow: hidden; }
.tree .band { position: absolute; left: 0; right: 0; }
.tree .b1 { top: 253px; height: 120px; background: #1b0f19; }
.tree .b2 { top: 373px; height: 100px; background: #170d16; }
.tree .b3 { top: 473px; height: 90px; background: #140b13; }
.tree svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree .node { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: #0f0f0f; display: grid; place-items: center; color: var(--ac); }
.tree .node svg { width: 55%; height: 55%; }
.tree .node b { position: absolute; bottom: -2px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ac); color: #000; font-size: 12px; display: grid; place-items: center; padding: 0 5px; font-weight: 700; }
.tree .me { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); }
.tree .lbl { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; font-size: 16px; line-height: 1.85; white-space: nowrap; }
.tree .lbl .muted { color: var(--grey); }
.tree .q { position: absolute; right: 393px; top: 20px; }

/* ---------- таблицы ---------- */
.sortbar { display: flex; align-items: center; gap: 25px; margin-bottom: 22px; font-size: 18px; flex-wrap: wrap; }
.sortbar button { color: var(--grey); font-size: 18px; }
.sortbar button.on { color: var(--ac); }
.sortbar .sp { flex: 1; }
table.t { width: 100%; border-collapse: collapse; font-size: 18px; }
table.t th { color: var(--grey); font-weight: 400; text-align: left; padding: 0 0 14px; white-space: nowrap; }
table.t td { padding: 17px 0; border-top: 1px solid var(--line); white-space: nowrap; }
table.t tr:first-child td { border-top: 0; padding-top: 4px; }
table.t .r { text-align: right; } table.t .c { text-align: center; }
table.t tr.total td { background: #1f1f1f; border-top: 0; }
table.t tr.total td:first-child { padding-left: 20px; border-radius: 0 0 0 10px; } table.t tr.total td:last-child { border-radius: 0 0 10px 0; }
.panel.tablepanel { padding-bottom: 0; overflow: hidden; }
.panel.tablepanel table.t tr.total td { padding: 18px 0; }
.panel.tablepanel .total-wrap { margin: 0 -20px; }
table.z { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 18px; }
table.z th { color: var(--grey); font-weight: 400; text-align: left; padding: 0 15px 12px; white-space: nowrap; }
table.z td { padding: 0 15px; height: 55px; white-space: nowrap; }
table.z tbody tr:nth-child(odd) td { background: #1a1a1a; }
table.z tbody tr.click { cursor: pointer; }
table.z tbody tr.click:hover td { background: #222; }
table.z tbody tr.sel td { color: var(--pink); }
table.z td:first-child { border-radius: 8px 0 0 8px; } table.z td:last-child { border-radius: 0 8px 8px 0; }
.chk { width: 16px; height: 16px; border-radius: 4px; background: #fff; display: inline-grid; place-items: center; vertical-align: middle; margin-right: 15px; cursor: pointer; border: 0; padding: 0; }
.chk.on { background: var(--pink); }
.chk.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 17px; margin-bottom: 20px; }
.field > label, .flabel { color: var(--grey); font-size: 18px; }
.field.white > label { color: #fff; }
.inp { height: 65px; width: 100%; background: var(--tile); border-radius: 10px; border: 1px solid transparent; padding: 0 20px; font-size: 18px; color: #fff; outline: none; }
textarea.inp { height: 170px; padding: 18px 20px; resize: vertical; line-height: 1.3; }
.inp::placeholder { color: var(--grey); }
.inp:focus { border-color: #3a3a3a; }
.inp.bad { border-color: var(--red); }
.ferr { color: var(--red); font-size: 14px; margin-top: -10px; }
.inp-wrap { position: relative; }
.inp-wrap .inp { padding-right: 140px; }
.inp-wrap .aside { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ac); }
.drop { height: 65px; border: 1px dashed #333; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--grey); font-size: 18px; width: 340px; padding: 0 20px; text-align: center; }
.drop:hover { border-color: #555; color: #999; }
.drop img { height: 45px; width: auto; border-radius: 6px; }
.row { display: flex; gap: 20px; align-items: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--grey); border-radius: 8px; overflow: hidden; height: 45px; }
.seg button { padding: 0 28px; color: var(--grey); font-size: 16px; border-right: 1px solid var(--grey); }
.seg button:last-child { border-right: 0; }
.seg button.on { color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac); border-radius: 8px; }
.toggle { width: 47px; height: 26px; border-radius: 13px; background: var(--bg); border: 1px solid #555; position: relative; flex: none; transition: background .15s; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #555; transition: left .15s, background .15s; }
.toggle.on { background: var(--pink); border-color: var(--pink); }
.toggle.on::after { left: 24px; background: #fff; }
.perm { display: flex; align-items: center; gap: 12px; font-size: 18px; height: 40px; }

/* ---------- аккордеон ---------- */
.acc { background: var(--panel); border-radius: 10px; }
.acc + .acc { margin-top: 15px; }
.acc > button { width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 20px; text-align: left; }
.acc > button svg { transition: transform .2s; flex: none; }
.acc.open > button svg { transform: rotate(180deg); }
.acc .a { padding: 0 20px 20px; color: #fff; font-size: 18px; line-height: 1.35; display: none; }
.acc.open .a { display: block; }
.acc.sel { outline: 1px solid var(--pink); }

/* ---------- обращения ---------- */
.help-grid { display: grid; grid-template-columns: 302px 1fr; gap: 20px; align-items: start; }
.msg { display: flex; gap: 15px; padding: 24px 20px; }
.msg .av { width: 58px; height: 58px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--ac); }
.msg .who { font-size: 18px; margin-bottom: 10px; }
.msg .who.adm { color: var(--pink); }
.msg .tx { font-size: 18px; white-space: pre-wrap; }
.msg .dt { color: var(--grey); font-size: 16px; margin-top: 12px; }
.msg img.att { max-width: 320px; max-height: 220px; border-radius: 8px; margin-top: 10px; }

/* ---------- история счёта ---------- */
.hist { max-height: 432px; overflow-y: auto; margin: 0 -4px 0 0; padding-right: 4px; }
.hrow { display: flex; align-items: center; gap: 10px; height: 83px; border-bottom: 1px solid var(--line); }
.hrow .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; color: #fff; }
.hrow .ic svg { width: 18px; height: 18px; }
.hrow .m { flex: 1; min-width: 0; }
.hrow .m div:first-child { font-size: 16px; }
.hrow .m div + div, .hrow .r div + div { font-size: 14px; color: var(--grey); margin-top: 3px; }
.hrow .r { text-align: right; font-size: 16px; }

/* ---------- видео ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard { background: var(--tile); border-radius: 10px; overflow: hidden; text-align: left; border: 1px solid transparent; }
.vcard .vimg { height: 249px; background: #000 center/cover; position: relative; }
.vcard .vimg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.vcard.sel { border-color: var(--pink); }
.vcard.sel .vimg::after, .vcard:hover .vimg::after { background: rgba(0, 0, 0, 0); }
.vcard .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 90px; height: 90px; border-radius: 50%; background: #121212; display: grid; place-items: center; z-index: 1; }
.vcard .vt { padding: 15px 20px; font-size: 20px; color: var(--grey); }
.vcard.sel .vt, .vcard:hover .vt { color: #fff; }
video.player { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; }

/* ---------- бизнес ---------- */
.biz { display: grid; grid-template-columns: 431px 1fr; gap: 20px; }
.biz .bimg { height: 270px; border-radius: 9px; background: #000 center/cover; }
.biz h2 { font-size: 28px; font-weight: 400; margin: 6px 0 12px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 18px; }
.addr { display: flex; align-items: center; gap: 10px; margin: 22px 0; font-size: 18px; }
.biz p { font-size: 18px; max-width: 580px; margin: 0 0 30px; }
.bcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.bcard { background: var(--tile); border-radius: 9px; overflow: hidden; }
.bcard .img { height: 140px; background: #000 center/cover; position: relative; }
.bcard .img .tag { left: 15px; top: 9px; }
.bcard .t { padding: 15px 15px 0; font-size: 18px; }
.bcard .btn { margin: 15px; width: calc(100% - 30px); height: 52px; --b: var(--bg); }

/* ---------- модальные окна ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow-y: auto; z-index: 50; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 400px; background: var(--panel); border-radius: 10px; padding: 26px 30px 20px; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.modal.wide { width: 640px; } .modal.xwide { width: 900px; }
.modal .mh { display: flex; align-items: center; justify-content: space-between; color: #c9c9c9; font-size: 18px; margin-bottom: 20px; }
.modal .x { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; }
.modal .mimg { height: 188px; border-radius: 8px; background: #000 center/cover; margin-bottom: 22px; }
.modal .mtitle { text-align: center; font-size: 18px; margin-bottom: 18px; }
.modal .mtext { color: var(--grey); font-size: 16px; margin-bottom: 18px; }
.modal .price { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 22px; }
.pchip { min-height: 30px; padding: 4px 14px; line-height: 1.2; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 18px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--g-ac) border-box; border: 1px solid transparent; }
.pchip.t-premium { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--g-orange) border-box; }
.pchip.t-premiumplus { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--g-blue) border-box; }
.pchip.t-luxury { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--g-pink) border-box; }
.old { color: var(--grey); text-decoration: line-through; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.mrow { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.mrow .mi2 { width: 50px; height: 50px; border-radius: 8px; background: #000 center/cover; flex: none; }
.mlabel { font-size: 18px; margin-bottom: 6px; }
.mval { color: var(--grey); font-size: 16px; margin-bottom: 16px; }
.modal .seg { width: 100%; height: 45px; margin-bottom: 20px; }
.modal .seg button { flex: 1; padding: 0 8px; white-space: nowrap; }
.modal .field { gap: 10px; margin-bottom: 14px; }
.modal .inp { height: 52px; font-size: 16px; padding: 0 15px; }
.modal textarea.inp { height: 120px; padding: 12px 15px; }
.modal .btn { height: 60px; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

/* ---------- вход и регистрация ---------- */
.auth { height: 100vh; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 64px 20px 40px; }
.auth .logo { margin: 0 0 54px; width: 180px; }
.auth .back { align-self: center; width: 508px; color: #fff; font-size: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.auth .box { width: 508px; background: var(--panel); border-radius: 10px; padding: 30px; }
.auth h1 { font-size: 22px; font-weight: 400; margin: 10px 0 24px; }
.auth .field { gap: 10px; margin-bottom: 20px; }
.auth .field > label { color: #fff; font-size: 18px; }
.auth .inp { height: 52px; font-size: 16px; padding: 0 15px; background: #1a1a1a; border: 1px solid #2a2a2a; }
.auth .note { color: var(--grey); font-size: 14px; margin: -6px 0 20px; max-width: 320px; }
.auth .btn { width: 100%; height: 58px; }
.auth .below { margin-top: 40px; font-size: 16px; }
.auth .below button { color: var(--pink); margin-left: 8px; font-size: 16px; }
.auth .legal { margin-top: 38px; font-size: 12px; text-align: center; line-height: 1.7; }
.auth .legal u { cursor: pointer; }
.codecells { display: flex; gap: 6px; margin: 16px 0 16px; }
.codecells input { width: 56px; height: 56px; text-align: center; font-size: 22px; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px; color: #fff; outline: none; }
.codecells input:focus { border-color: var(--pink); }
.codecells.bad input { border-color: var(--red); }
.demo-hint { margin-top: 26px; width: 508px; color: var(--grey); font-size: 13px; line-height: 1.6; border: 1px dashed #2a2a2a; border-radius: 10px; padding: 12px 16px; }
.demo-hint b { color: #aaa; font-weight: 400; }

/* ---------- тосты ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: #1d1d1d; border: 1px solid #333; border-left: 3px solid var(--green); border-radius: 8px; padding: 12px 16px; font-size: 16px; max-width: 420px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: fade .2s; }
.toast.err { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }

/* подсказка «?» */
.tip { position: fixed; z-index: 120; max-width: 360px; background: #1d1d1d; border: 1px solid #333; border-radius: 8px; padding: 12px 14px; font-size: 15px; line-height: 1.35; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

@media (max-width: 1500px) {
  .panel > .q { left: calc(50% + 80px); }
  .scard ul { width: 230px; }
  .bcards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1350px) {
  .stat b { font-size: 30px; }
  .scard .ringimg { right: -96px; }
  .bcards { grid-template-columns: repeat(3, 1fr); }
}

/* узкое окно: кольцо статуса не перекрывает текст */
.scard { container-type: inline-size; }
@container (max-width: 430px) {
  .scard .ringimg { height: 130px; right: -75px; top: 50%; transform: translateY(-50%); opacity: .2 !important; }
  .scard ul { width: 100%; max-width: 247px; }
}
@media (max-width: 1400px) { .stat span { font-size: 16px; } .stat b { font-size: 30px; } }
