:root { --top-from:#eeeeee; --top-to:#fafafa; --menu-bg:#dbdbdb; --menu-border:rgba(255,255,255,.1); --pattern-op:1; --bg:#e3e3e3; --surface:#eeeeee; --surface-2:#f6f7f8; --ink:#000000; --ink-2:#3d4450; --muted:#666666; --grid:#e6e8ec; --axis:#c3c8d0; --border:rgba(172,172,172,.2); --border2:#b4bac4; --hover:#eef0f3; --sel:#e7eaef; --accent:#1f6fe0; --accent-ink:#ffffff; --accent-hover:#1859b8; --primary:#308efa; --primary-ink:#ffffff; --primary-hover:#1f7ae8; --s1:#308efa; --good:#3dc890; --warn:#a8590a; --serious:#c2410c; --crit:#c8484a; --bar-bad:#d1332f; --purple:#6d28d9; --danger-bg:#fbe9e9; --shadow:none; --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace; --sans:"Alexandria","Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; --head:"Almarai","Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; color-scheme:light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) { --top-from:#191919; --top-to:#111111; --menu-bg:#308efa; --menu-border:rgba(255,255,255,.1); --pattern-op:1; --bg:#0c0c0c; --surface:#141414; --surface-2:#1c1a1a; --ink:#f3f4f6; --ink-2:#c6cbd4; --muted:#666666; --grid:#252323; --axis:#3d3a3a; --border:rgba(255,255,255,.2); --border2:#413d3d; --hover:#1c1a1a; --sel:#262323; --accent:#308efa; --accent-ink:#ffffff; --accent-hover:#5aa5fb; --primary:#308efa; --primary-ink:#ffffff; --primary-hover:#5aa5fb; --s1:#308efa; --good:#3dc890; --warn:#e0a43a; --serious:#f08b4e; --crit:#c8484a; --bar-bad:#e25c58; --purple:#a78bfa; --danger-bg:#3a1f21; --shadow:none; color-scheme:dark; }
}
:root[data-theme="dark"] { --top-from:#191919; --top-to:#111111; --menu-bg:#308efa; --menu-border:rgba(255,255,255,.1); --pattern-op:1; --bg:#0c0c0c; --surface:#141414; --surface-2:#1c1a1a; --ink:#f3f4f6; --ink-2:#c6cbd4; --muted:#666666; --grid:#252323; --axis:#3d3a3a; --border:rgba(255,255,255,.2); --border2:#413d3d; --hover:#1c1a1a; --sel:#262323; --accent:#308efa; --accent-ink:#ffffff; --accent-hover:#5aa5fb; --primary:#308efa; --primary-ink:#ffffff; --primary-hover:#5aa5fb; --s1:#308efa; --good:#3dc890; --warn:#e0a43a; --serious:#f08b4e; --crit:#c8484a; --bar-bad:#e25c58; --purple:#a78bfa; --danger-bg:#3a1f21; --shadow:none; color-scheme:dark; }
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font:300 14px/1.55 var(--sans); background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased; }
body { min-height:100vh; display:flex; flex-direction:column; } main { flex:1; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
h1, h2, h3, h4, .brand, .card-head, th, .btn.primary, .plan .price { font-family:var(--head); }
h1 { font-size:26px; font-weight:700; letter-spacing:-.3px; margin:28px 0 10px; } h2 { font-size:15px; font-weight:700; margin-bottom:6px; }
.wrap { width:100%; max-width:1080px; margin:0 auto; padding:0 20px; }
.muted { color:var(--muted); } .small { font-size:12px; } .mono { font-family:var(--mono); font-size:12px; }
.top { background:linear-gradient(to bottom,var(--top-from),var(--top-to)); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:5; }
.bar { height:52px; display:flex; align-items:center; gap:22px; }
.brand { display:flex; align-items:center; gap:9px; font-weight:700; font-size:15px; color:var(--ink); } .brand:hover { text-decoration:none; } .brand small { color:var(--muted); font-weight:500; font-size:11px; margin-left:-4px; }
.logo { width:24px; height:24px; border-radius:4px; background:var(--ink); color:var(--surface); display:grid; place-items:center; }
svg.i { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.links { display:flex; gap:18px; } .links a { color:var(--ink-2); }
.right { margin-left:auto; display:flex; align-items:center; gap:8px; } form.inline { display:inline; }
.btn { display:inline-flex; align-items:center; justify-content:center; height:32px; padding:0 14px; border:1px solid var(--border); border-radius:4px; background:var(--surface); color:var(--ink); font:inherit; cursor:pointer; }
.btn:hover { background:var(--hover); text-decoration:none; } .btn.small { height:28px; padding:0 10px; font-size:13px; }
.btn.primary { background:var(--primary); border-color:var(--primary); color:var(--primary-ink); font-weight:700; } .btn.primary:hover { background:var(--primary-hover); border-color:var(--primary-hover); }
input, select { height:32px; padding:0 9px; background:var(--surface); color:var(--ink); border:1px solid var(--border); border-radius:4px; font:inherit; min-width:0; }
input:focus, select:focus { border-color:var(--accent); outline:none; }
.field { display:flex; flex-direction:column; gap:4px; } .field label { font-size:12px; color:var(--muted); }
.stack { display:flex; flex-direction:column; gap:12px; } .row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:16px 18px; }
.card .card-head { margin:-16px -18px 12px; padding:10px 18px; border-bottom:1px solid var(--grid); font-weight:700; }
.card table { margin:0 -18px -16px; width:calc(100% + 36px); }
.narrow { max-width:420px; margin:48px auto; } .narrow h1 { margin-top:0; font-size:20px; }
.hero { padding:56px 0 36px; max-width:720px; } .hero h1 { font-size:34px; margin-top:0; } .lead { color:var(--ink-2); font-size:16px; margin:12px 0 22px; }
.cols3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }
.seg { display:inline-flex; border:1px solid var(--border); border-radius:4px; overflow:hidden; background:var(--surface); margin:6px 0 18px; }
.seg button { border:0; background:transparent; height:30px; padding:0 14px; color:var(--ink-2); font:inherit; cursor:pointer; border-right:1px solid var(--border); } .seg button:last-child { border:0; }
.seg button[aria-pressed="true"] { background:var(--hover); color:var(--ink); font-weight:700; box-shadow:inset 0 -2px 0 var(--ink); }
.plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.plan { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; }
.plan .price { font-size:26px; font-weight:700; } .plan ul { list-style:none; display:flex; flex-direction:column; gap:4px; flex:1; color:var(--ink-2); }
.plan > a.btn { height:auto; min-height:32px; padding:6px 14px; align-self:flex-start; text-align:center; line-height:1.3; }
table { border-collapse:collapse; } th,td { padding:8px 18px; text-align:left; border-bottom:1px solid var(--grid); vertical-align:top; }
th { font-size:12px; font-weight:500; color:var(--muted); background:var(--surface-2); } tr:last-child td { border-bottom:0; }
.empty { color:var(--muted); }
.badge { display:inline-block; padding:0 7px; line-height:19px; font-size:11px; font-weight:700; border:1px solid var(--border); border-radius:3px; background:var(--surface-2); color:var(--ink-2); }
.badge.ok { color:var(--good); } .badge.bad { color:var(--crit); } .badge.busy { color:var(--s1); }
.callout { padding:9px 12px; border:1px solid var(--border); border-left-width:3px; border-radius:4px; background:var(--surface-2); margin:10px 0; }
.callout.bad { border-left-color:var(--crit); } .callout.warn { border-left-color:var(--warn); }
pre.key { max-width:520px; margin-top:6px; padding:8px 10px; background:var(--surface-2); border:1px solid var(--border); border-radius:4px; font:11px/1.4 var(--mono); white-space:pre-wrap; word-break:break-all; user-select:all; }
details summary { cursor:pointer; color:var(--muted); margin-top:4px; }
[hidden] { display:none !important; }
.foot { border-top:1px solid var(--border); padding:28px 0 18px; background:var(--surface); }
@media (max-width:700px) { .links { display:none; } .bar { gap:10px; } .hero h1 { font-size:26px; } }

.prose { max-width:760px; padding:8px 0; } .prose h1 { margin-top:24px; } .prose h2 { font-size:18px; margin:26px 0 8px; } .prose h3 { font-size:15px; margin:18px 0 6px; }
.prose p, .prose li { margin:8px 0; } .prose ul, .prose ol { margin-left:22px; } .prose code { font-family:var(--mono); font-size:12.5px; background:var(--surface-2); border:1px solid var(--border); border-radius:3px; padding:0 4px; }
.prose pre { background:var(--surface-2); border:1px solid var(--border); border-radius:4px; padding:10px 12px; overflow-x:auto; margin:10px 0; } .prose pre code { border:0; background:none; padding:0; }
.prose table { margin:12px 0; width:100%; font-size:13px; } .prose th, .prose td { padding:6px 10px; border:1px solid var(--grid); }
.prose blockquote { border-left:3px solid var(--border); padding-left:12px; color:var(--ink-2); }
.docs { display:grid; grid-template-columns:220px minmax(0,1fr); gap:32px; padding-top:12px; } .docs-nav { display:flex; flex-direction:column; margin-top:28px; background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:6px 0; position:sticky; top:68px; align-self:start; }
.docs-nav a { min-height:34px; display:flex; align-items:center; padding:6px 12px; line-height:1.3; color:var(--ink-2); border-left:2px solid transparent; } .docs-nav a.active { color:var(--ink); border-left-color:var(--ink); background:var(--sel); }
.docs-nav a { font-weight:400; }
.check { display:flex; gap:8px; align-items:flex-start; font-size:13px; } .check input { height:auto; margin-top:3px; }
.docs-toggle { display:none; }
@media (max-width:800px) {
  .docs { grid-template-columns:minmax(0,1fr); gap:0; } .docs-nav { position:static; margin-top:12px; }
  .docs-nav.tabs a { border-left:0; }
  .js .docs-toggle { display:flex; width:100%; justify-content:flex-start; margin-top:12px; } .js .docs-nav { display:none; margin-top:6px; } .js .docs-nav.open { display:flex; }
}

.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:12px; margin-top:12px; } .gap { margin-top:14px; }
.card .callout { margin:0 0 10px; } .callout.ok { border-left-color:var(--good); }
table.plain { margin:0 -18px 8px; width:calc(100% + 36px); } .danger-zone { margin-top:12px; border-color:var(--crit); } .danger-zone .card-head { color:var(--crit); }
.btn.danger { border-color:var(--crit); color:var(--crit); } .oauth { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:14px; } .oauth .muted:first-child { width:100%; }
.tabbar { display:none; } .cookie { position:fixed; left:12px; right:12px; bottom:12px; z-index:20; background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:10px 14px; display:flex; gap:14px; align-items:center; justify-content:space-between; max-width:640px;  font-size:13px; }

.acc { min-width:0; padding-top:4px; } .acc h1 { margin-top:24px; } .gapt { margin-top:12px; }


.docs-grp { padding:10px 12px 4px; font-size:11px; letter-spacing:.5px; text-transform:uppercase; color:var(--muted); } .docs-grp:first-child { padding-top:4px; }
.pager { display:flex; justify-content:space-between; gap:12px; margin-top:36px; padding-top:16px; border-top:1px solid var(--border); } .pager .btn { height:auto; min-height:34px; padding:6px 12px; text-align:left; }
.doclist { list-style:none; margin-left:0 !important; } .doclist li { margin:4px 0; }

.foot-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1.3fr; gap:28px; } .foot-grid h3 { font-size:12px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.foot-grid a:not(.brand) { display:block; padding:3px 0; color:var(--ink-2); } .foot-brand p { margin-top:10px; max-width:320px; }
.foot-prefs { display:grid; grid-template-columns:auto 1fr; gap:10px 12px; align-items:center; margin-top:12px; } .foot-prefs .seg { margin:0; justify-self:start; }
.foot-bottom { margin-top:22px; padding-top:14px; border-top:1px solid var(--grid); }
.card > table:first-child { margin-top:-16px; }
.prose table { display:block; max-width:100%; overflow-x:auto; } .prose pre { max-width:100%; } .prose code { overflow-wrap:anywhere; } .prose { min-width:0; }
@media (max-width:800px) { .foot-grid { grid-template-columns:1fr 1fr; } .foot-brand { grid-column:1 / 3; } .hide-sm { display:none; } .foot-grid > div:last-child { grid-column:1 / 3; } .foot-prefs { grid-template-columns:auto 1fr; } .hero h1 { font-size:24px; } .hero { padding:32px 0 24px; } }

main.wrap { padding-bottom:64px; }
.docs-nav.tabs a { white-space:nowrap; }
@media (max-width:700px) {
  main.wrap { padding-bottom:48px; }
  .docs-nav.tabs { display:grid; grid-template-columns:1fr 1fr; overflow:visible; padding:0; }
  .docs-nav.tabs a { justify-content:center; text-align:center; white-space:normal; padding:6px 8px; border-bottom:2px solid transparent; min-height:40px; } .docs-nav.tabs a.active { border-bottom-color:var(--ink); }
  .orders thead { display:none; } .orders, .orders tbody, .orders tr, .orders td { display:block; width:100%; }
  .orders tr { padding:12px 18px; border-bottom:1px solid var(--grid); } .orders tr:last-child { border-bottom:0; }
  .orders td { display:flex; justify-content:space-between; gap:12px; padding:4px 0; border:0; text-align:right; }
  .orders td::before { content:attr(data-label); color:var(--muted); font-size:12px; text-align:left; flex:none; }
  .orders td.lic-cell { display:block; text-align:left; padding-top:8px; } .orders td.lic-cell::before { display:block; margin-bottom:4px; }
  .card table { margin:0; width:100%; }
}

.lic-cell .row { flex-wrap:nowrap; } .lic-cell .row input { flex:1; min-width:0; }

.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); border:1px solid var(--border); border-radius:6px; background:var(--surface); overflow:hidden; }
.tile { padding:12px 14px; display:flex; flex-direction:column; gap:2px; border-right:1px solid var(--grid); border-bottom:1px solid var(--grid); margin:0 -1px -1px 0; } .tile b { font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; } .tile-label { font-size:12px; color:var(--muted); }
.segl { display:inline-flex; align-items:center; height:30px; padding:0 12px; color:var(--ink-2); border-right:1px solid var(--border); } .segl:last-child { border-right:0; } .segl:hover { text-decoration:none; background:var(--hover); } .segl.on { background:var(--sel); color:var(--ink); }
.badge.warn { color:var(--warn); }

h1, h2, h3 { overflow-wrap:break-word; }
@media (max-width:480px) { h1, h2, h3 { hyphens:auto; overflow-wrap:anywhere; } h1 { font-size:22px; } .right a[href="/account"] { display:none; } .bar { gap:8px; } }

/* лендинг */
.hero2 { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:40px; align-items:center; padding:56px 0 40px; } .hero2 h1 { font-size:36px; line-height:1.18; margin:0 0 14px; letter-spacing:-.5px; }
.hero-text .lead { max-width:520px; } .hero-text .note { margin-top:14px; } .btn.big { height:40px; padding:0 20px; font-size:15px; }
.shot { margin:0; border:1px solid var(--border2); border-radius:6px; overflow:hidden; background:var(--surface); } .shot img { display:block; width:100%; height:auto; } .shot .shot-dark { display:none; }
:root[data-theme="dark"] .shot .shot-light { display:none; } :root[data-theme="dark"] .shot .shot-dark { display:block; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"]):not([data-theme="dark"])) .shot .shot-light { display:none; } :root:where(:not([data-theme="light"]):not([data-theme="dark"])) .shot .shot-dark { display:block; } }
.band { padding:36px 0; border-top:1px solid var(--border); } .sec-h { font-size:24px; letter-spacing:-.3px; margin:0 0 22px; text-align:center; } .sec-h.left { text-align:left; }
.steps3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; } .step, .feat { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:18px; } .step h3, .feat h3 { font-size:15px; margin:0; } .step p, .feat p { color:var(--ink-2); margin:0; }
.feats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; } .feat-ic { width:34px; height:34px; border-radius:5px; background:var(--sel); color:var(--ink); display:grid; place-items:center; } .feat-ic svg.i { width:18px; height:18px; stroke-width:1.8; }
.shots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } .shotcard p { margin-top:8px; }
.band.two { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; align-items:start; }
.ticks { list-style:none; display:flex; flex-direction:column; gap:10px; margin:0 0 18px; } .ticks li { display:flex; gap:10px; align-items:flex-start; } .ticks svg.i { color:var(--good); margin-top:3px; stroke-width:2.2; }
.plans-teaser .mini { width:100%; margin:8px 0 14px; } .plans-teaser .mini td { padding:8px 0; border-bottom:1px solid var(--grid); } .num { text-align:right; font-variant-numeric:tabular-nums; }
.faq { max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:8px; } .qa { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:0 16px; } .qa summary { padding:13px 0; cursor:pointer; color:var(--ink); font-weight:700; margin:0; } .qa p { padding:0 0 14px; color:var(--ink-2); margin:0; }
.endcta { text-align:center; padding:48px 0 12px; border-top:1px solid var(--border); } .endcta h2 { font-size:26px; margin:0 0 6px; } .row.center { justify-content:center; margin-top:18px; }
@media (max-width:900px) { .hero2 { grid-template-columns:minmax(0,1fr); padding-top:32px; } .hero2 h1 { font-size:26px; } .feats { grid-template-columns:repeat(2,minmax(0,1fr)); } .steps3, .shots, .band.two { grid-template-columns:minmax(0,1fr); } }
@media (max-width:520px) { .feats { grid-template-columns:minmax(0,1fr); } .sec-h { font-size:21px; } .hero2 h1 { font-size:24px; } }

.seg button[data-theme-set] { display:inline-flex; align-items:center; justify-content:center; width:34px; } .seg button svg.i { width:16px; height:16px; stroke-width:1.8; }
.seg button[aria-pressed="true"] { background:var(--sel); color:var(--ink); } .seg button:hover { background:var(--hover); }
.seg .segl { height:30px; min-width:38px; justify-content:center; font-size:12px; font-weight:700; letter-spacing:.3px; } .seg .segl.on { color:var(--ink); }
.oauth { display:flex; flex-direction:column; gap:10px; margin-top:16px; } .oauth .or { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; } .oauth .or::before, .oauth .or::after { content:""; flex:1; height:1px; background:var(--border); }
.oauth-btn { display:flex; align-items:center; justify-content:center; gap:10px; height:40px; padding:0 14px; background:#ffffff; color:#1f1f1f; border:1px solid var(--border2); border-radius:4px; font-weight:700; font-size:14px; } .oauth-btn:hover { background:#f3f3f1; text-decoration:none; }
.oauth-btn svg { flex:none; }

.seg button[data-theme-set] { padding:0; } .seg button[data-theme-set] svg { width:17px; height:17px; flex:none; stroke:currentColor; stroke-width:1.8; }
.seg .segl { padding:0 12px; } .seg { align-items:stretch; }
.oauth { align-items:stretch; } .oauth-btn { width:100%; }
.narrow p.small { margin-top:16px; }
.foot-grid .seg a.segl { display:inline-flex; align-items:center; justify-content:center; height:30px; padding:0 12px; line-height:1; }

.wallets { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:14px; margin:18px 0; max-width:none; }
.wallet { display:flex; gap:16px; align-items:center; } .wallet-qr svg { width:132px; height:132px; display:block; border:1px solid var(--border); border-radius:4px; background:#fff; }
.wallet-body { min-width:0; display:flex; flex-direction:column; gap:8px; align-items:flex-start; } .wallet-body h2 { margin:0; font-size:15px; }
.addr { display:block; max-width:100%; overflow-wrap:anywhere; word-break:break-all; font-family:var(--mono); font-size:12px; background:var(--surface-2); border:1px solid var(--border); border-radius:4px; padding:6px 8px; user-select:all; }
@media (max-width:520px) { .wallet { flex-direction:column; align-items:flex-start; } }

/* пароль и двухфакторная защита */
.pwmeter { display:flex; gap:4px; margin-top:6px; } .pwmeter i { flex:1; height:4px; border-radius:2px; background:var(--border); display:block; }
.pwmeter.s1 i:nth-child(-n+1) { background:var(--crit); } .pwmeter.s2 i:nth-child(-n+2) { background:var(--warn); } .pwmeter.s3 i:nth-child(-n+3) { background:var(--accent); } .pwmeter.s4 i { background:var(--good); }
.pwlabel { min-height:18px; } .pwrules { list-style:none; display:flex; flex-direction:column; gap:3px; color:var(--muted); margin:2px 0 0; }
.pwrules li { padding-left:18px; position:relative; } .pwrules li::before { content:""; position:absolute; left:2px; top:5px; width:8px; height:8px; border-radius:50%; border:1.5px solid var(--border2); }
.pwrules li.ok { color:var(--good); } .pwrules li.ok::before { background:var(--good); border-color:var(--good); }
.pwmatch.ok { color:var(--good); } .pwmatch.no { color:var(--crit); }
.tfa-setup { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; } .tfa-qr svg { width:168px; height:168px; display:block; border:1px solid var(--border); border-radius:4px; background:#fff; }
.big-code { font-size:18px; letter-spacing:2px; height:40px; } .inner { margin-top:6px; } pre.codes { max-width:none; font-size:14px; line-height:1.8; }
.pwform { max-width:420px; }

/* язык и тема в шапке */
.hdr-ctl { display:flex; align-items:center; gap:8px; margin-left:auto; } .hdr-ctl + .right { margin-left:0; } .bar { gap:16px; }
.hdr-ctl .seg { margin:0; } .hdr-ctl .seg a.segl { display:inline-flex; align-items:center; justify-content:center; height:28px; padding:0 9px; min-width:34px; font-size:12px; font-weight:700; line-height:1; }
.hdr-ctl .seg button[data-theme-set] { height:28px; width:30px; } .show-sm { display:none; }
.theme-cycle .ic { display:none; width:16px; height:16px; stroke-width:1.8; } html[data-theme-choice="light"] .theme-cycle .ic-light, html[data-theme-choice="dark"] .theme-cycle .ic-dark, html[data-theme-choice="auto"] .theme-cycle .ic-auto { display:block; }
.theme-cycle { width:32px; padding:0; align-items:center; justify-content:center; } .lang-cycle { min-width:38px; padding:0 8px; font-size:12px; font-weight:700; }
@media (max-width:700px) { .hide-sm { display:none !important; } .show-sm { display:inline-flex; } .hdr-ctl { gap:6px; } .bar { gap:8px; } }

@media (max-width:420px) { .top .brand-name { display:none; } }

.dl-card { display:flex; flex-direction:column; gap:12px; align-items:flex-start; max-width:760px; } .dl-head { display:flex; gap:10px; align-items:center; }
.steps-list { margin-left:20px; } .steps-list li { margin:14px 0; } .steps-list pre { margin:8px 0 4px; } pre.notes { white-space:pre-wrap; margin:0; border:0; background:none; padding:0; font-family:var(--sans); }

@media (max-width:1000px) { .links .src-link { display:none; } .bar { gap:12px; } .links { gap:14px; } }

.orders td .btn { white-space:nowrap; }
@media (max-width:700px) { .theme-cycle { display:inline-flex; } }

/* логотип */
.brand { display:flex; align-items:center; color:var(--ink); } .brand:hover { text-decoration:none; }
.brand .wm-full { height:22px; width:auto; display:block; } .brand .wm-mark { height:26px; width:auto; display:none; }
.foot-brand .brand .wm-full { height:24px; }
/* флаги */
img.flag { width:20px; height:15px; border-radius:2px; display:block; box-shadow:0 0 0 1px var(--border2); }
.hdr-ctl .seg a.segl { min-width:36px; padding:0 8px; } .hdr-ctl .seg a.segl:not(.on) img.flag { filter:grayscale(.55); } .hdr-ctl .seg a.segl:hover img.flag { filter:none; }
.lang-cycle { min-width:40px; justify-content:center; } .lang-cycle { display:none; }
@media (max-width:700px) { .lang-cycle { display:inline-flex; align-items:center; } }
/* иконка и заголовок карточек в одну строку */
.feat-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .feat-head h3 { margin:0 !important; font-size:15px; line-height:1.25; } .feat .feat-ic, .step .feat-ic { flex:none; }

.ck-btns { display:flex; gap:8px; flex-shrink:0; } .cookie { align-items:center; gap:12px; }
#wave { position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; }
@media (max-width:700px) { .lang-seg .segl { padding:0 6px; } .ck-btns { flex-direction:column; } }
@media (prefers-reduced-motion: reduce) { #wave { display:none; } }
@media (max-width:420px) { .hdr-ctl { gap:4px; } .lang-seg .segl { padding:0 4px; } .lang-seg img.flag { width:18px; height:auto; } .hdr-ctl .btn.small { padding:0 8px; } .bar { gap:6px; } }
@media (max-width:360px) { .hdr-ctl { gap:3px; } .hdr-ctl .btn.small { padding:0 6px; font-size:12px; } .lang-seg .segl { padding:0 3px; } .theme-cycle { width:28px; } }

.logout .ic-out { display:none; }
@media (max-width:380px) { .logout .lbl { display:none; } .logout .ic-out { display:block; } }

/* выдвижная боковая панель на телефоне */
.drawer { display:contents; } .drawer-bg, .drawer-x, .menu-btn, .lname { display:none; }
@media (max-width:900px) {
  .menu-btn { display:inline-flex; margin-left:auto; width:36px; height:36px; align-items:center; justify-content:center; background:none; border:1px solid var(--border); border-radius:6px; color:var(--ink); cursor:pointer; }
  .drawer { display:flex; flex-direction:column; gap:18px; position:fixed; top:0; right:0; bottom:0; width:min(300px,86vw); z-index:40; background:var(--surface); border-left:1px solid var(--border); padding:56px 20px 24px; overflow-y:auto; transform:translateX(100%); visibility:hidden; transition:transform .22s ease, visibility 0s .22s; }
  .menu-open .drawer { transform:none; visibility:visible; transition:transform .22s ease; }
  .drawer-bg { display:block; position:fixed; inset:0; z-index:39; background:rgba(0,0,0,.45); opacity:0; pointer-events:none; transition:opacity .2s; }
  .menu-open .drawer-bg { opacity:1; pointer-events:auto; } .menu-open { overflow:hidden; }
  .drawer-x { display:inline-flex; position:absolute; top:10px; right:12px; width:36px; height:36px; align-items:center; justify-content:center; background:none; border:0; color:var(--ink); cursor:pointer; }
  .drawer .links { display:flex; flex-direction:column; gap:2px; } .drawer .links a, .drawer .links .src-link { display:block; padding:10px 4px; font-size:16px; border-bottom:1px solid var(--border); }
  .drawer .hdr-ctl { flex-direction:column; align-items:stretch; margin:0; gap:12px; }
  .drawer .lang-seg { display:flex; flex-direction:column; } .drawer .lang-seg a.segl { justify-content:flex-start; gap:12px; height:40px; padding:0 12px; font-size:14px; }
  .drawer .lname { display:inline; font-weight:500; } .drawer #theme-seg { display:flex; } .drawer #theme-seg button { flex:1; width:auto; height:40px; }
  .drawer .right { flex-direction:column; align-items:stretch; margin:0; gap:8px; } .drawer .right .btn, .drawer .right form, .drawer .right form button { width:100%; justify-content:center; text-align:center; } .drawer .right .btn { height:40px; display:inline-flex; align-items:center; }
  .drawer .logout .lbl { display:inline !important; } .drawer .logout .ic-out { display:none !important; }
  .drawer .right a[href="/account"] { display:inline-flex !important; }
  .cookie { bottom:12px; }
}

.wave-toggle { width:32px; padding:0; justify-content:center; align-items:center; display:inline-flex; } .wave-toggle .wt { display:none; } .wave-toggle[aria-pressed="false"] { opacity:.55; } .wave-toggle[aria-pressed="false"] svg { stroke-dasharray:2 3; }
html[data-waves="off"] #wave { display:none; }
@media (max-width:900px) { .drawer .wave-toggle { width:100%; height:40px; gap:10px; } .drawer .wave-toggle .wt { display:inline; } }

/* язык: значок планеты и выпадающее меню; тема: одна кнопка, показывает текущую */
.lang-menu { position:relative; } .lang-menu > summary { list-style:none; display:inline-flex; align-items:center; gap:6px; cursor:pointer; } .lang-menu > summary::-webkit-details-marker { display:none; }
.lang-menu .lname-cur { font-size:11px; font-weight:700; letter-spacing:.04em; }
.lang-menu .menu { position:absolute; right:0; top:calc(100% + 6px); min-width:176px; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:4px; box-shadow:var(--shadow, 0 8px 24px rgba(0,0,0,.12)); z-index:60; }
.lang-menu .menu a { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:6px; color:var(--ink); font-size:14px; } .lang-menu .menu a:hover { background:var(--hover); text-decoration:none; } .lang-menu .menu a.on { font-weight:700; }
.lang-menu .menu img.flag { width:20px; height:auto; }
.theme-btn { width:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; } .theme-btn .wt { display:none; }
.theme-btn .ic-moon, html[data-theme="dark"] .theme-btn .ic-sun { display:none; } html[data-theme="dark"] .theme-btn .ic-moon { display:block; } .theme-btn .ic-sun { display:block; }
@media (max-width:900px) {
  .drawer .lang-menu { width:100%; } .drawer .lang-menu > summary { width:100%; height:40px; justify-content:flex-start; padding:0 12px; gap:10px; } .drawer .lang-menu .lname-cur { display:none; }
  .drawer .lang-menu > summary::after { content:attr(title); font-size:14px; font-weight:500; } .drawer .lang-menu > summary { font-size:0; } .drawer .lang-menu > summary::after { font-size:14px; }
  .drawer .lang-menu .menu { position:static; box-shadow:none; margin-top:6px; width:100%; }
  .drawer .theme-btn { width:100%; height:40px; justify-content:flex-start; padding:0 12px; gap:10px; } .drawer .theme-btn .wt { display:inline; }
}
.lang-menu .menu .lname { display:inline; }

/* админка: таблицы не вылезают из карточки, узкие столбцы не переносятся */
.adm-table { overflow-x:auto; } .adm-table table.orders { width:100%; min-width:0; } .adm-table th, .adm-table td { padding:10px 10px; vertical-align:top; }
.adm-table td:nth-child(n+4):not([data-label="Actions"]), .adm-table th:nth-child(n+4) { white-space:nowrap; } .adm-table td:first-child { overflow-wrap:anywhere; min-width:150px; }
.adm-table .badge { white-space:nowrap; } .adm-table details.act { min-width:150px; } .adm-table details.act[open] { min-width:260px; } .adm-table details.act textarea { width:100%; margin:4px 0 6px; }
@media (max-width:720px) { .adm-table table.orders { min-width:0; } }

.step-shot { margin-top:12px; } .band .center-note { text-align:center; }
.team { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin:18px 0; } .lead-sm { max-width:720px; margin:0 auto 6px; color:var(--ink-2); text-align:center; }

dialog.dlg { border:1px solid var(--border); border-radius:10px; padding:20px 22px; width:min(520px,92vw); background:var(--surface); color:var(--ink); box-shadow:0 20px 60px rgba(0,0,0,.35); } dialog.dlg::backdrop { background:rgba(0,0,0,.5); }
dialog.dlg h2 { margin:0 0 4px; font-size:18px; } dialog.dlg textarea { width:100%; margin-top:6px; } .dlg-btns { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }

.issuing { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; margin-bottom:16px; } .issuing.paused { border-color:var(--warn); }
@media (max-width:600px) { .issuing { flex-direction:column; align-items:stretch; } }

/* страница «Команда» */
.team-hero { text-align:center; padding:48px 0 16px; max-width:760px; margin:0 auto; } .team-hero .eyebrow { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.team-hero h1 { font-size:36px; margin:0 0 12px; } .team-hero .lead { color:var(--ink-2); font-size:17px; margin:0; }
.people { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; margin:28px 0 12px; } .person { flex:0 1 196px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:24px 18px 20px; text-align:center; transition:transform .2s ease, box-shadow .2s ease; }
.person:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,.10); } .person h3 { margin:14px 0 4px; font-size:20px; } .person .role { display:inline-block; font-size:12px; font-weight:700; padding:3px 10px; border-radius:12px; background:var(--hover); color:var(--ink); } .person p { margin:12px 0 0; font-size:14px; }
.avatar { width:96px; height:96px; border-radius:50%; object-fit:cover; display:block; margin:0 auto; } .mono-av { display:flex; align-items:center; justify-content:center; font-size:38px; font-weight:700; color:var(--primary-ink); background:linear-gradient(135deg, var(--primary), var(--muted)); }
.cases { margin:36px 0 8px; } .case-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; margin-top:14px; } .tags .badge { margin-right:4px; }
.work-with { text-align:center; margin:44px auto 24px; max-width:560px; padding:28px 20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); } .work-with h2 { margin:0 0 6px; }
@media (max-width:600px) { .team-hero { padding-top:28px; } .team-hero h1 { font-size:27px; } .person { flex-basis:100%; } }

/* команда: аккуратная сетка портретов */
.team-hero { padding:56px 0 8px; } .team-hero h1 { font-size:40px; letter-spacing:-.01em; }
.crew { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:28px 22px; max-width:1040px; margin:34px auto 20px; }
.member { text-align:left; } .member h3 { margin:14px 0 2px; font-size:18px; } .member .role { margin:0; font-size:14px; color:var(--muted); }
.portrait { display:block; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:14px; background:var(--surface); border:1px solid var(--border); transition:transform .25s ease, box-shadow .25s ease; } .member:hover .portrait { transform:translateY(-4px); box-shadow:0 14px 30px rgba(0,0,0,.14); }
.portrait.ph { display:flex; align-items:center; justify-content:center; border:0; background:linear-gradient(145deg, #23272e, #4a5260); color:#fff; } .portrait.ph span { font-size:56px; font-weight:700; letter-spacing:-.02em; opacity:.92; }
.portrait.ph2 { background:linear-gradient(145deg, #2a2f3a, #5b6577); } .portrait.ph3 { background:linear-gradient(145deg, #1f2a33, #46606f); } .portrait.ph4 { background:linear-gradient(145deg, #2b2830, #5c5670); } .portrait.ph5 { background:linear-gradient(145deg, #222a2a, #4d6663); }
.team-cta { display:flex; align-items:center; justify-content:space-between; gap:18px; max-width:1040px; margin:48px auto 24px; padding:22px 26px; border:1px solid var(--border); border-radius:14px; background:var(--surface); } .team-cta h2 { margin:0 0 4px; font-size:20px; } .team-cta p { margin:0; }
@media (max-width:600px) { .team-hero h1 { font-size:28px; } .crew { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 14px; } .team-cta { flex-direction:column; align-items:flex-start; } .portrait.ph span { font-size:44px; } }

.refund-form { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; }

.oauth-btn.is-disabled, .oauth-btn[aria-disabled='true'] { opacity:.45; cursor:not-allowed; pointer-events:auto; }
.accept-offer { max-width:760px; margin:14px auto 0; } .accept-offer .check { font-size:13px; }

/* brand 2026-10-15: pattern, dropdowns */
body { position:relative; } body::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:url(/static/img/pattern.png) center/cover no-repeat; opacity:var(--pattern-op); }
select { border-color:var(--menu-border); } select option { background-color:var(--menu-bg); color:var(--ink); }
input::placeholder { color:var(--muted); }
