/* Dukhon UI — one look for Dukhon ID, Media, the Store panel and Pulse: the palette and shapes of Dukhon Store
   (Onest, the blue of the logos, light by default, dark with the system or by choice). Served at https://id.dukhon.ru/ui.css */
@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap");

/* palette of the Dukhon logos: blue #3274CB -> #2152B0 -> #11419E; dark theme is black-blue */
:root {
  --bg: #F2F4F8; --s1: #FFFFFF; --s2: #EEF1F6; --s3: #E5E9F1;
  --ink: #0A1226; --muted: #5E6880; --dim: #9AA3B5;
  --line: rgba(10,30,80,.08); --edge: rgba(10,30,80,.14);
  --accent: #1F56C2; --accent-tint: rgba(33,82,176,.10); --fill: #2152B0; --on-accent: #fff;
  --grad: linear-gradient(135deg, #3274CB 0%, #2152B0 52%, #11419E 100%);
  --ok: #059669; --warn: #B45309; --danger: #E11D48;
  --r-card: 22px; --r-row: 16px; --r-field: 12px; --r-btn: 14px;
  --shadow: 0 1px 2px rgba(10,22,50,.04), 0 8px 24px rgba(10,22,50,.07);
  --ease: cubic-bezier(.22,1,.36,1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05080F; --s1: #0B1220; --s2: #111A2C; --s3: #17223A;
    --ink: #E9EEF8; --muted: #8B97AE; --dim: #56627A;
    --line: rgba(130,160,220,.11); --edge: rgba(130,160,220,.18);
    --accent: #6EA2EE; --accent-tint: rgba(80,135,225,.16); --fill: #2558C4;
    --ok: #34D399; --warn: #FBBF24; --danger: #FB7185;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05080F; --s1: #0B1220; --s2: #111A2C; --s3: #17223A;
  --ink: #E9EEF8; --muted: #8B97AE; --dim: #56627A;
  --line: rgba(130,160,220,.11); --edge: rgba(130,160,220,.18);
  --accent: #6EA2EE; --accent-tint: rgba(80,135,225,.16); --fill: #2558C4;
  --ok: #34D399; --warn: #FBBF24; --danger: #FB7185;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* layout */
.d-page { max-width: 1040px; margin: 0 auto; padding: 24px 20px 64px; }
.d-narrow { max-width: 440px; margin: 0 auto; padding: 48px 20px 40px; }
.d-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; max-width: 1040px; margin: 0 auto; }
.d-top .d-grow { flex: 1; }
.d-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.d-brand img, .d-brand svg { width: 32px; height: 32px; border-radius: 9px; }
.d-brand__sub { margin-left: -4px; padding: 2px 7px; border-radius: 7px; background: var(--accent-tint); color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.d-hero { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; line-height: 1.15; }
.d-sub { color: var(--muted); margin: 0 0 20px; }
.d-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--muted); margin: 26px 6px 10px; }
.d-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.d-row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* surfaces */
.d-card { background: var(--s1); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); }
:root[data-theme="dark"] .d-card { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .d-card { border: 1px solid var(--line); } }
.d-group { background: var(--s1); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
:root[data-theme="dark"] .d-group { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .d-group { border: 1px solid var(--line); } }
.d-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 64px; }
.d-item + .d-item { border-top: 1px solid var(--line); }
.d-item .d-grow { flex: 1; min-width: 0; }
.d-item .d-title { font-weight: 600; }
.d-item .d-hint { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
a.d-item, button.d-item { width: 100%; text-align: left; border: 0; background: none; cursor: pointer; color: inherit; }
a.d-item:hover, button.d-item:hover { background: var(--s2); text-decoration: none; }
.d-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--accent-tint); color: var(--accent); font-weight: 800; }
.d-tile svg { width: 22px; height: 22px; }

/* controls */
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px;
  border-radius: var(--r-btn); border: 0; cursor: pointer; font-weight: 700; font-size: 15px;
  background: var(--grad); color: var(--on-accent); transition: transform .18s var(--ease), opacity .18s, box-shadow .18s; text-decoration: none;
  box-shadow: 0 6px 18px rgba(33,82,176,.22); }
.d-btn:hover { text-decoration: none; filter: brightness(1.05); }
.d-btn:active { transform: scale(.98); }
.d-btn[disabled] { opacity: .55; cursor: default; }
.d-btn.d-block { width: 100%; }
.d-btn.d-soft { background: var(--accent-tint); color: var(--accent); box-shadow: none; }
.d-btn.d-ghost { background: var(--s2); color: var(--ink); box-shadow: none; }
.d-btn.d-danger { background: rgba(225,29,72,.10); color: var(--danger); box-shadow: none; }
.d-btn.d-small { height: 38px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.d-field { width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-field); border: 1px solid transparent;
  background: var(--s2); outline: none; transition: border-color .15s, background .15s; }
.d-field:focus { border-color: var(--accent); background: var(--s1); }
.d-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 4px 6px; }
.d-error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 10px 4px 0; }
.d-ok { color: var(--ok); }
.d-or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; margin: 18px 0; }
.d-or::before, .d-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.d-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px;
  font-weight: 700; background: var(--s2); color: var(--muted); }
.d-pill.d-accent { background: var(--accent-tint); color: var(--accent); }
.d-pill.d-good { background: rgba(5,150,105,.12); color: var(--ok); }
.d-pill.d-bad { background: rgba(225,29,72,.10); color: var(--danger); }
.d-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--s2); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; }
.d-icon-btn svg { width: 20px; height: 20px; }
.d-seg { display: inline-flex; background: var(--s2); border-radius: 12px; padding: 3px; gap: 2px; }
.d-seg button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.d-seg button[aria-pressed="true"] { background: var(--s1); color: var(--ink); box-shadow: var(--shadow); }
.d-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 18px; }
.d-tabs button { border: 0; background: var(--s1); height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.d-tabs button[aria-selected="true"] { background: var(--grad); color: var(--on-accent); }

/* avatar */
.d-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; object-fit: cover; }
.d-avatar.d-big { width: 88px; height: 88px; font-size: 34px; }

/* toast and sheet */
.d-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 50; max-width: calc(100vw - 32px); }
.d-toast.d-show { opacity: 1; transform: translate(-50%, 0); }
.d-backdrop { position: fixed; inset: 0; background: rgba(3,8,20,.48); display: none; align-items: flex-end; justify-content: center; z-index: 40; }
.d-backdrop.d-show { display: flex; }
.d-sheet { background: var(--s1); width: 100%; max-width: 520px; border-radius: 30px 30px 0 0; padding: 22px 22px 28px;
  max-height: 88vh; overflow: auto; animation: d-up .3s var(--ease); }
@media (min-width: 640px) { .d-backdrop { align-items: center; } .d-sheet { border-radius: 30px; } }
@keyframes d-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.d-reveal { animation: d-fade .4s var(--ease) both; }
@keyframes d-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

table.d-table { width: 100%; border-collapse: collapse; }
table.d-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; }
table.d-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.d-mono { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 13px; }
.d-muted { color: var(--muted); }
.d-hide { display: none !important; }
@media (max-width: 600px) { .d-hero { font-size: 26px; } .d-page { padding: 16px 14px 56px; } }

/* sign-in pages of Dukhon ID: the blue panel of the logos on the left, the form on the right; on a phone the
   panel becomes the header and the form card rises over it */
.d-auth { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 46%) 1fr; }
.d-auth__side { position: relative; overflow: hidden; color: #fff; background: var(--grad); padding: 44px 48px;
  display: flex; flex-direction: column; gap: 22px; }
.d-auth__side::before, .d-auth__side::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), rgba(255,255,255,0)); }
.d-auth__side::before { width: 520px; height: 520px; right: -200px; top: -160px; }
.d-auth__side::after { width: 420px; height: 420px; left: -180px; bottom: -180px; background: radial-gradient(closest-side, rgba(6,20,60,.45), rgba(6,20,60,0)); }
.d-auth__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; position: relative; color: #fff; }
.d-auth__brand:hover { text-decoration: none; }
.d-auth__brand .d-auth__mk { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.d-auth__brand .d-auth__mk svg { width: 30px; height: 30px; }
.d-auth__pitch { position: relative; margin-top: auto; }
.d-auth__pitch h2 { font-size: 38px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; max-width: 440px; }
.d-auth__pitch p { margin: 0; color: rgba(255,255,255,.78); font-size: 16px; max-width: 420px; }
.d-auth__svc { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; max-width: 460px; }
.d-auth__svc li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-weight: 600; font-size: 14px; min-width: 0; }
.d-auth__svc li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-auth__svc svg { width: 20px; height: 20px; flex: none; }
.d-auth__foot { position: relative; margin: 0; color: rgba(255,255,255,.62); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.d-auth__foot svg { width: 16px; height: 16px; flex: none; }
.d-auth__main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; position: relative; }
.d-auth__box { width: 100%; max-width: 420px; animation: d-fade .5s var(--ease) both; }
.d-auth__box h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; line-height: 1.12; }
.d-auth__box .d-auth__lead { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.d-auth__to { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--accent-tint);
  color: var(--accent); font-weight: 700; font-size: 13px; margin: 0 0 16px; }
.d-auth__to i { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.d-auth__form .d-label:first-child { margin-top: 0; }
.d-pw { position: relative; }
.d-pw .d-field { padding-right: 48px; }
.d-pw button { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; }
.d-pw button:hover { color: var(--accent); background: var(--accent-tint); }
.d-pw button svg { width: 20px; height: 20px; }
.d-auth__alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.d-auth__alt a { font-weight: 700; }
.d-auth__acct { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--s1); box-shadow: var(--shadow);
  border: 1px solid var(--line); margin-bottom: 16px; }
.d-auth__acct .d-avatar { width: 52px; height: 52px; font-size: 20px; box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px color-mix(in srgb, var(--accent) 55%, transparent); }
.d-auth__acct .d-grow { min-width: 0; flex: 1; }
.d-auth__acct b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-auth__acct span { display: block; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-auth__acct em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.d-auth__acct em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.d-auth__note { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 0 0; }
.d-auth__linkbtn { display: block; width: 100%; background: none; border: 0; color: var(--muted); cursor: pointer; margin-top: 14px; font-weight: 600; padding: 6px; }
.d-auth__linkbtn:hover { color: var(--accent); }
.d-auth__corner { position: absolute; right: 18px; top: 18px; z-index: 2; }
@media (max-width: 880px) {
  .d-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .d-auth__side { padding: 22px 20px 64px; gap: 14px; }
  .d-auth__pitch h2 { font-size: 24px; } .d-auth__pitch p { font-size: 14px; }
  .d-auth__svc, .d-auth__foot { display: none; }
  .d-auth__main { align-items: flex-start; padding: 0 16px 40px; }
  .d-auth__box { margin-top: -44px; background: var(--s1); border-radius: 26px; padding: 26px 20px 22px; box-shadow: 0 12px 40px rgba(6,20,60,.16); border: 1px solid var(--line); }
  .d-auth__box h1 { font-size: 26px; }
  .d-auth__corner { top: 16px; right: 14px; z-index: 2; }
  .d-auth__corner .d-icon-btn { background: rgba(255,255,255,.16); color: #fff; }
}

/* «или» between the password and the passkey (27.10.2026) */
.d-auth__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 12px; }
.d-auth__or::before, .d-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
