/* ==========================================================================
   Личный кабинет и мини-приложение Публикаруса (01.11.2026)
   Дизайн-система сайта публика.рус: бумага вместо белого, чернила #111, единственный акцент красный #E62E26,
   фирменные скобки [ ] у сроков, Onest, радиусы 6 / 14 / 999, тень только у всплывающего.
   Телефон и мини-приложения: вкладки внизу. Компьютер: боковое меню, карточка записи – панелью справа.
   ========================================================================== */

@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --paper-3: #e6e4dd;
  --card: #fcfbf9;
  --ink: #111111;
  --ink-2: #47463f;
  --ink-3: #6b6a63;
  --line: #dcd9d1;
  --line-2: #c9c5bb;
  --red: #e62e26;
  --red-ink: #c4201a;
  --red-wash: rgba(230, 46, 38, 0.08);
  --on-ink: #f7f6f3;
  --ring: rgba(17, 17, 17, 0);
  --shadow: 0 18px 40px -18px rgba(54, 44, 30, 0.22), 0 2px 6px -2px rgba(54, 44, 30, 0.08);
  --scrim: rgba(28, 24, 18, 0.32);
  --r-s: 6px;
  --r-m: 14px;
  --r-pill: 999px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: 16px;
  --tabs: 60px;
  --top: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #121211; --paper-2: #1a1a18; --paper-3: #242421; --card: #1c1c1a;
    --ink: #f2f0ea; --ink-2: #c9c6bd; --ink-3: #9a978e; --line: #2f2e2a; --line-2: #43413b;
    --red: #ff4a3f; --red-ink: #ff6b62; --red-wash: rgba(255, 74, 63, 0.12); --on-ink: #121211;
    --ring: rgba(255, 255, 255, 0.07); --scrim: rgba(0, 0, 0, 0.55);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #121211; --paper-2: #1a1a18; --paper-3: #242421; --card: #1c1c1a;
  --ink: #f2f0ea; --ink-2: #c9c6bd; --ink-3: #9a978e; --line: #2f2e2a; --line-2: #43413b;
  --red: #ff4a3f; --red-ink: #ff6b62; --red-wash: rgba(255, 74, 63, 0.12); --on-ink: #121211;
  --ring: rgba(255, 255, 255, 0.07); --scrim: rgba(0, 0, 0, 0.55);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--red); }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
* { scrollbar-color: var(--line-2) transparent; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--s { width: 18px; height: 18px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- каркас ---------- */
.app { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.top { grid-column: 1 / -1; position: sticky; top: 0; z-index: 30; }
.top::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 0 var(--gut); max-width: 1320px; margin: 0 auto; }
.top__label { font-size: 0.8125rem; font-weight: 640; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.top__links { display: none; gap: 2px; margin-left: auto; }
.top__links a { padding: 8px 12px; font-size: 0.9375rem; font-weight: 560; color: var(--ink-2); text-decoration: none; border-radius: var(--r-pill); }
.top__links a:hover { color: var(--ink); background: var(--paper-2); }
.top__user { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill); background: none; font-size: 0.9375rem; font-weight: 600; max-width: 220px; }
.top__user span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__user:hover { border-color: var(--ink); }
.ava { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
  font-size: 0.8125rem; font-weight: 700; flex: none; }
.html-app .top { display: none; }

.logo { display: inline-flex; align-items: baseline; font-weight: 760; letter-spacing: -0.035em; line-height: 1; color: var(--ink);
  text-decoration: none; white-space: nowrap; font-size: 1.32rem; }
.logo:hover { text-decoration: none; }
.logo__gap { width: 0.26em; }
.logo__b { color: var(--red); display: inline-block; transition: transform 420ms var(--ease); }
.logo:hover .logo__b--l { transform: translateX(-0.09em); }
.logo:hover .logo__b--r { transform: translateX(0.09em); }

.body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.side { display: none; }
.main { min-width: 0; padding: 18px var(--gut) calc(var(--tabs) + var(--safe-b) + 32px); outline: none; }
.main--wide { max-width: 1080px; }
.pane { display: none; }

/* нижние вкладки: телефон, мини-приложения, узкое окно */
.tabs { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 4px var(--safe-b); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; height: var(--tabs); border: 0; background: none; color: var(--ink-3);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; position: relative; }
.tab .ico { width: 23px; height: 23px; transition: transform 160ms var(--ease); }
.tab:active .ico { transform: scale(0.9); }
.tab[aria-current='page'] { color: var(--ink); }
.tab[aria-current='page']::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--red); border-radius: 0 0 2px 2px; }
.tab__dot { position: absolute; top: 9px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill);
  background: var(--red); color: #fff; font-size: 0.625rem; font-weight: 700; line-height: 16px; text-align: center; }

@media (min-width: 900px) {
  :root { --gut: 28px; }
  .top__links { display: flex; }
  .top__user { margin-left: 8px; }
  .body { grid-template-columns: 236px minmax(0, 1fr); max-width: 1320px; width: 100%; margin: 0 auto; }
  .side { display: block; position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px); padding: 22px 12px 22px var(--gut);
    border-right: 1px solid var(--line); overflow-y: auto; }
  .html-app .side { top: 0; height: 100dvh; }
  .side__nav { display: grid; gap: 2px; }
  .side__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); border: 0; background: none;
    color: var(--ink-2); font-size: 0.96875rem; font-weight: 580; text-decoration: none; text-align: left; position: relative; }
  .side__link:hover { background: var(--paper-2); color: var(--ink); }
  .side__link[aria-current='page'] { color: var(--ink); background: var(--paper-2); font-weight: 680; }
  .side__link[aria-current='page'] .ico { color: var(--red); }
  html.no-tabs .body { grid-template-columns: minmax(0, 1fr); }
  .side__link .tab__dot { position: static; margin-left: auto; }
  .side__foot { margin-top: 26px; padding: 16px 12px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.875rem; color: var(--ink-3); }
  .side__foot a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .side__foot a:hover { color: var(--ink); }
  .tabs { display: none; }
  .main { padding: 30px var(--gut) 64px; }
  .html-app .body { max-width: none; }
}
@media (min-width: 1240px) {
  .body.has-pane { grid-template-columns: 236px minmax(0, 1fr) minmax(420px, 34vw); }
  .body.has-pane .pane { display: block; position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px); overflow-y: auto;
    border-left: 1px solid var(--line); background: var(--card); }
  .html-app .body.has-pane .pane { top: 0; height: 100dvh; }
}

/* ---------- типографика экранов ---------- */
.head { display: grid; gap: 6px; margin-bottom: 18px; }
.head h1 { font-size: 1.75rem; font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; }
.head p { color: var(--ink-2); font-size: 0.96875rem; max-width: 62ch; }
.kicker { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.kicker::before { content: ''; width: 16px; height: 2px; background: var(--red); }
.h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.h2 h2 { font-size: 1.1875rem; font-weight: 740; letter-spacing: -0.02em; }
.h2 a, .h2 button { font-size: 0.9375rem; font-weight: 620; color: var(--ink-2); text-decoration: none; border: 0; background: none; padding: 4px 0; }
.h2 a:hover, .h2 button:hover { color: var(--red-ink); }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.note { font-size: 0.875rem; color: var(--ink-3); line-height: 1.5; }
@media (min-width: 900px) { .head h1 { font-size: 2.125rem; } }

/* ---------- кнопки, ярлыки, поля ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 48px;
  padding: 0 1.3em; border-radius: var(--r-pill); border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); font-weight: 620;
  font-size: 0.96875rem; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease); }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn.is-busy { opacity: 0.55; pointer-events: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--small { min-height: 38px; padding: 0 1em; font-size: 0.875rem; }
.btn--wide { width: 100%; }
.btn--quiet { --bg: transparent; --fg: var(--ink-2); border-color: transparent; padding: 0 0.6em; }
.btn--quiet:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn--danger:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn .ico { width: 19px; height: 19px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.tag { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.62em; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 640;
  letter-spacing: 0.02em; border: 1.5px solid var(--line-2); color: var(--ink-2); line-height: 1.3; white-space: nowrap; }
.tag--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag--red { border-color: var(--red); color: var(--red-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

.input, .textarea, .select { width: 100%; min-height: 48px; padding: 0.65em 0.9em; border-radius: var(--r-s); border: 1.5px solid var(--line-2);
  background: var(--card); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--red-wash); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.875rem; font-weight: 620; color: var(--ink-2); }
.form { display: grid; gap: 14px; max-width: 640px; }

.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 44px; border-radius: var(--r-pill); }
.search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none;
  border-radius: var(--r-pill); color: var(--ink-3); display: grid; place-items: center; }
.search__clear:hover { color: var(--ink); background: var(--paper-2); }

/* сегменты и переключатели */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--paper-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 620; color: var(--ink-2); white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.seg button[aria-pressed='true'] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(54, 44, 30, 0.12), inset 0 0 0 1px var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2);
  background: none; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip small { font-size: 0.75rem; font-weight: 600; opacity: 0.7; }
.chip .ico { width: 16px; height: 16px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; width: 100%; text-align: left; }
.switch b { display: block; font-weight: 640; font-size: 0.96875rem; }
.switch small { display: block; color: var(--ink-3); font-size: 0.84375rem; margin-top: 2px; }
.knob { flex: none; width: 46px; height: 28px; border-radius: var(--r-pill); background: var(--line-2); position: relative; transition: background-color 200ms var(--ease); }
.knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 220ms var(--ease); }
.switch[aria-checked='true'] .knob { background: var(--ink); }
.switch[aria-checked='true'] .knob::after { transform: translateX(18px); }

/* ---------- срок в фирменных скобках ---------- */
.dl { font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl b { color: var(--red); font-weight: 700; }
.left { font-size: 0.75rem; font-weight: 620; color: var(--ink-3); white-space: nowrap; }
.left.is-hot { color: var(--red-ink); }

/* ---------- строки списков ---------- */
.list { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 40px; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative; }
.row--j { grid-template-columns: minmax(0, 1fr) 40px; }
.row__when { padding-top: 2px; }
.row__when .dl { font-size: 1.125rem; }
.row__main { min-width: 0; display: grid; gap: 6px; }
.row__title { font-weight: 660; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-s); }
.row:hover .row__title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.row.is-active .row__title { color: var(--red-ink); }
.star { position: relative; z-index: 2; width: 40px; height: 40px; margin-top: -4px; border: 0; background: none; border-radius: var(--r-pill); color: var(--ink-3);
  display: grid; place-items: center; transition: color 160ms var(--ease), transform 140ms var(--ease); }
.star:hover { color: var(--ink); background: var(--paper-2); }
.star:active { transform: scale(0.88); }
.star[aria-pressed='true'] { color: var(--red); }
.star[aria-pressed='true'] .ico { fill: currentColor; }
.more { margin-top: 16px; }

/* горящие сроки – лента карточек как на сайте */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 14px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: grid; align-content: start; gap: 10px; padding: 16px 16px 14px; border-radius: var(--r-m); background: var(--card);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--ring); text-decoration: none; color: inherit; position: relative; min-width: 0; }
.card .dl { font-size: 2rem; }
.card__label { font-size: 0.75rem; color: var(--ink-3); font-weight: 560; }
.card__title { font-weight: 680; font-size: 0.96875rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--red); }
@media (min-width: 900px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; margin: 0; padding: 2px 0 6px; }
}

/* ---------- главная ---------- */
.hello { display: grid; gap: 14px; margin-bottom: 8px; }
.hello h1 { font-size: 1.75rem; font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; }
.hello p { color: var(--ink-2); font-size: 0.96875rem; }
.fake-search { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2);
  background: var(--card); color: var(--ink-3); text-align: left; font-size: 0.96875rem; }
.fake-search:hover { border-color: var(--ink-3); }
.band { margin-top: 30px; padding: 20px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); display: grid; gap: 12px; }
.band h2 { font-size: 1.25rem; font-weight: 760; letter-spacing: -0.02em; }
.band p { color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 0.9375rem; max-width: 56ch; }
.band .btn { --bg: var(--paper); --fg: var(--ink); justify-self: start; }
.band .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.empty { padding: 22px 0; display: grid; gap: 10px; justify-items: start; color: var(--ink-2); font-size: 0.96875rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty b { color: var(--ink); font-weight: 680; }
@media (min-width: 900px) { .hello h1 { font-size: 2.125rem; } .band { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; } .band .btn { justify-self: end; } }

/* ---------- поиск ---------- */
.toolbar { display: grid; gap: 12px; margin-bottom: 14px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.found { font-size: 0.875rem; color: var(--ink-3); margin: 6px 0 8px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.suggest span { font-size: 0.8125rem; color: var(--ink-3); margin-right: 2px; }
@media (min-width: 900px) { .filters { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; } }

/* ---------- карточка записи ---------- */
.item { display: grid; gap: 18px; padding-bottom: 24px; }
.item__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 -6px; }
.item__title { font-size: 1.5rem; font-weight: 780; letter-spacing: -0.025em; line-height: 1.15; }
.item__full { color: var(--ink-2); font-size: 0.96875rem; margin-top: 6px; }
.item__org { color: var(--ink-3); font-size: 0.875rem; margin-top: 6px; }
.when { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.when .dl { font-size: 2.75rem; }
.when__side { display: grid; gap: 2px; padding-bottom: 4px; }
.when__label { font-size: 0.8125rem; color: var(--ink-3); }
.when__left { font-size: 0.9375rem; font-weight: 650; }
.when__left.is-hot { color: var(--red-ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.fact { background: var(--paper-2); border-radius: var(--r-s); padding: 10px 12px; min-width: 0; }
.fact dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 650; }
.fact dd { margin: 3px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.reqs { display: grid; gap: 0; margin: 0; }
.reqs div { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reqs div:first-child { border-top: 1px solid var(--line); }
.reqs dt { color: var(--ink-3); font-size: 0.875rem; }
.reqs dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.reqs .reqs__one { grid-template-columns: 1fr; }
.reqs .reqs__one dd::before { content: '– '; color: var(--red); }
.sections { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.sections li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 0.9375rem; line-height: 1.4; }
.sections li::before { content: counter(sec); counter-increment: sec; position: absolute; left: 0; color: var(--ink-3); font-size: 0.8125rem; font-weight: 650; top: 10px; }
.sections { counter-reset: sec; }
.item h3 { font-size: 1.0625rem; font-weight: 720; letter-spacing: -0.015em; margin-bottom: 8px; }
.item__actions { display: grid; gap: 10px; }
.item__note { font-size: 0.84375rem; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.item__note .ico { width: 17px; height: 17px; margin-top: 2px; color: var(--ink-3); }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9375rem; }
.links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.links a:hover { color: var(--red-ink); }
.links .ico { width: 16px; height: 16px; }
.pane .item { padding: 22px 24px 40px; }
.pane__close { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px 12px 0; background: linear-gradient(var(--card) 70%, transparent); }
@media (max-width: 899px) {
  .item__actions { position: sticky; bottom: calc(var(--tabs) + var(--safe-b) + 8px); z-index: 5; padding: 10px; margin: 0 -10px;
    background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--r-m); }
  .html-app.no-tabs .item__actions { bottom: calc(var(--safe-b) + 8px); }
}

/* ---------- профиль, мессенджеры, заявки ---------- */
.group { display: grid; border-top: 1px solid var(--line); }
.line { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); min-height: 58px; }
.line__main { min-width: 0; flex: 1; display: grid; gap: 1px; }
.line__main b { font-weight: 660; font-size: 0.96875rem; }
.line__main small { color: var(--ink-3); font-size: 0.84375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line .ok { color: var(--ink); }
.line--go { border-left: 0; border-right: 0; border-top: 0; background: none; width: 100%; text-align: left; text-decoration: none; color: inherit; }
.line--go:hover b { text-decoration: underline; text-decoration-color: var(--red); }
.line--go .ico:last-child { color: var(--ink-3); }
.radio { display: flex; flex-wrap: wrap; gap: 6px; }
.req { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.req b { font-weight: 640; font-size: 0.9375rem; }
.req small { color: var(--ink-3); font-size: 0.8125rem; }

/* ---------- вход ---------- */
.login { max-width: 560px; margin: 0 auto; padding: 18px 0 20px; display: grid; gap: 22px; }
.login h1 { font-size: 2rem; font-weight: 790; letter-spacing: -0.035em; line-height: 1.05; }
.login__lead { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.login__list { display: grid; gap: 10px; }
.via { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 18px 0 20px; border-radius: var(--r-m);
  border: 1.5px solid var(--line-2); background: var(--card); font-size: 1.03125rem; font-weight: 660; text-align: left; color: inherit; text-decoration: none;
  transition: border-color 160ms var(--ease), transform 140ms var(--ease); }
.via:hover { border-color: var(--ink); }
.via:active { transform: scale(0.99); }
.via small { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.via .ico { color: var(--ink-3); }
.login__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.login__points li { padding-left: 1.2em; position: relative; }
.login__points li::before { content: '–'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.wait { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--ring); }
.wait__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wait__top h2 { font-size: 1.1875rem; font-weight: 740; letter-spacing: -0.02em; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 0.9375rem; line-height: 1.45; }
.steps li::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill);
  border: 1.5px solid var(--ink); font-size: 0.75rem; font-weight: 700; }
.qr { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; font-size: 0.875rem; color: var(--ink-2); }
.qr img { width: 132px; height: 132px; background: #fff; border-radius: var(--r-s); padding: 6px; }
.code { display: inline-flex; align-items: center; gap: 8px; }
.code b { font-size: 1.375rem; font-weight: 780; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.code button { border: 0; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 0.8125rem; padding: 4px; }
.timer { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--ink-3); }
.timer__bar { flex: 1; height: 3px; border-radius: 2px; background: var(--paper-3); overflow: hidden; }
.timer__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transition: transform 1s linear; }
@media (max-width: 520px) { .qr { display: none; } .login h1 { font-size: 1.75rem; } }

/* ---------- лист снизу (телефон) и окно (компьютер) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; transition: opacity 260ms var(--ease); }
.scrim.is-open { opacity: 1; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 88dvh; display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r-m) var(--r-m) 0 0; box-shadow: var(--shadow); transform: translateY(100%); transition: transform 320ms var(--ease); }
.sheet.is-open { transform: none; }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gut) 8px; flex: none; }
.sheet__head h2 { font-size: 1.1875rem; font-weight: 740; letter-spacing: -0.02em; }
.sheet__body { overflow-y: auto; padding: 4px var(--gut) calc(var(--safe-b) + 22px); overscroll-behavior: contain; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: min(760px, calc(100dvh - 64px));
    border-radius: var(--r-m); transform: translate(-50%, -46%); opacity: 0; transition: transform 300ms var(--ease), opacity 220ms var(--ease); }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet__grip { display: none; }
  .sheet__head { padding-top: 18px; }
  .sheet__body { padding-bottom: 26px; }
}

/* направления в листе */
.dirs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dir { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  width: 100%; text-align: left; font-size: 0.96875rem; font-weight: 600; }
.dir small { color: var(--ink-3); font-weight: 560; font-size: 0.8125rem; }
.dir[aria-pressed='true'] { color: var(--red-ink); }
.dir:hover span { text-decoration: underline; text-decoration-color: var(--red); }
.dir--kid { padding-left: 16px; font-weight: 520; font-size: 0.9375rem; }
.dirline { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.dirline .dir { border-bottom: 0; flex: 1; min-width: 0; }
.dirs details summary, details.small summary { cursor: pointer; padding: 10px 0; font-weight: 620; color: var(--ink-2); }
details.small { margin-top: 10px; }
.note--gap { margin-top: 22px; }
.steps__body { display: grid; gap: 10px; }

/* подписки */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.dirbox { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 9px 10px 9px 12px; border-radius: var(--r-s); border: 1.5px solid var(--line-2);
  background: var(--card); text-align: left; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); min-width: 0; }
.dirbox b { font-weight: 640; font-size: 0.9375rem; line-height: 1.25; overflow-wrap: anywhere; }
@media (min-width: 900px) { .dir-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .dirbox { padding: 11px 12px; } }
.dirbox small { color: var(--ink-3); font-size: 0.75rem; grid-column: 1; }
.dirbox .ico { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--line-2); }
.dirbox:hover { border-color: var(--ink-3); }
.dirbox[aria-pressed='true'] { border-color: var(--ink); background: var(--paper-2); }
.dirbox[aria-pressed='true'] .ico { color: var(--ink); }
.dirbox--part .ico { color: var(--ink-3); }
.subrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* уведомления */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabs) + var(--safe-b) + 14px); transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: min(460px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font-size: 0.9375rem;
  font-weight: 560; box-shadow: var(--shadow); transition: transform 260ms var(--ease), opacity 200ms var(--ease); display: flex; gap: 12px; align-items: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 2px; white-space: nowrap; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.html-app.no-tabs .toast { bottom: calc(var(--safe-b) + 14px); }

/* загрузка – скелет на месте содержимого */
.sk { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sk div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sk i { display: block; height: 14px; border-radius: 4px; background: var(--paper-3); }
.sk i + i { margin-top: 8px; width: 60%; }
.sk span { display: block; }
.fail { display: grid; gap: 12px; justify-items: start; padding: 22px 0; color: var(--ink-2); }

/* мягкий вход экрана – только прозрачность и сдвиг, без хореографии */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 260ms var(--ease) both; }
  @keyframes enter { from { opacity: 0; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
