/* Дизайн-система Roskoni (фаза FD; R1 — бренд и тёмная «виладж»): основа, раскладка, шапка, меню, кнопки, формы, подвал, кабинет.
   Смартфон первым (360/390 px), ПК — 1280/1440. Только переменные из tokens.css. Компоненты — components.css,
   образец всего — /roskoni/_ui/ (стенд). Шрифты: в кабинетах — одни для обеих тем (Roboto Flex + JetBrains Mono);
   на публичных страницах (класс is-public) заголовки меняются вместе с темой. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-body); font-stretch: 100%;
       min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent-strong); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* заголовки: рабочие (кабинеты) — Roboto Flex; публичные — шрифт темы */
h1, h2, h3, h4 { font-family: var(--font-head-work); font-weight: 750; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.55rem, 5vw, 2.3rem); font-stretch: 112%; }
h2 { font-size: clamp(1.2rem, 3.4vw, 1.55rem); font-stretch: 108%; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
.is-public h1, .is-public h2, .is-public .h-public {
  font-family: var(--font-head-public); font-weight: var(--head-public-weight); text-transform: var(--head-public-transform);
  letter-spacing: var(--head-public-tracking); font-stretch: var(--head-public-stretch); }
.is-public h1 { font-size: clamp(1.7rem, 6.4vw, 3rem); line-height: 1.05; }
.is-public h2 { font-size: clamp(1.3rem, 4.4vw, 2rem); line-height: 1.1; }
.display { font-family: var(--font-display-public); font-weight: 800; text-transform: var(--head-public-transform);
           line-height: .98; letter-spacing: -.01em; font-size: calc(clamp(2rem, 9vw, 4.6rem) * var(--display-public-size)); margin: 0 0 .4em; }
.is-cabinet .display { font-family: var(--font-head-work); text-transform: none; font-stretch: 120%; }
p { margin: 0 0 .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0; }
code, pre, kbd { font-family: var(--font-mono); font-size: .92em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.kicker, .label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
                  color: var(--muted); margin: 0 0 .45rem; font-weight: 500; display: flex; align-items: center; gap: .5em; }
.kicker::before { content: ""; width: .6em; height: .6em; background: var(--accent-strong); border-radius: var(--radius-sm); flex: none; }
.num, .sid { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; z-index: 100; background: var(--surface); padding: .5rem; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* иконки из спрайта: {% icon "bell" %} */
.ico { width: 1.25em; height: 1.25em; stroke-width: 1.75; flex: none; vertical-align: -.22em; }
.ico--lg { width: 1.6em; height: 1.6em; }

/* раскладка */
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.page--wide { max-width: 1400px; }
.narrow, .prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin: .25em 0; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, .5rem); align-items: center; }
.grid { display: grid; gap: var(--gap, 1rem); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section { margin: 2.2rem 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }

/* плашка стенда; отладочное меню (F5) — полоса над шапкой */
.stand-banner { background: var(--stand-bg); color: var(--stand-text); text-align: center; font: 500 .74rem/1.4 var(--font-mono);
                letter-spacing: .04em; padding: .4rem .75rem; }
.debug-bar { background: var(--text); color: var(--bg); font-size: .85rem; padding: .3rem 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.debug-bar a { color: var(--bg); }

/* ===== шапка ===== */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line);
               position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.site-header__in { max-width: 1400px; margin: 0 auto; padding: .45rem .75rem; display: flex; align-items: center; gap: .4rem; min-height: 60px; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); flex: none; min-height: var(--tap); }
/* логотип Roskoni (L4, core/_logo_pic.html): растр — знак-след + надпись + пастельная лента, своя картинка на каждую тему */
.logo__pic { display: inline-flex; align-items: center; }
.logo__picture { display: contents; }
.logo__img { height: 36px; width: auto; display: block; }
.logo__img--dark { display: none; }
[data-theme="dark"] .logo__img--dark { display: block; }
[data-theme="dark"] .logo__img--light { display: none; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .logo__img--dark { display: block; }
  [data-theme="auto"] .logo__img--light { display: none; }
}
/* крупный знак с лентой на обложке главной (core/_lockup.svg): inline SVG, цвета — токены темы */
.lockup { display: block; width: min(100%, 420px); margin: 0 0 1.1rem; }
.lockup__svg { display: block; width: 100%; height: auto; overflow: visible; }
.lockup .lg-mark { fill: var(--brand-mark); }
.lockup .lg-ink { fill: var(--text); }
.lockup .lg-rw { fill: var(--rib-w); stroke: var(--rib-line); }
.lockup .lg-rb { fill: var(--rib-b); }
.lockup .lg-rr { fill: var(--rib-r); }
@media (max-width: 599px) { .lockup { width: min(78vw, 300px); margin-bottom: .7rem; } }
.site-nav { display: none; gap: .1rem; margin-left: .75rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: .55rem .7rem; border-radius: var(--radius-sm); font-weight: 550; font-size: .95rem; }
.site-nav a:hover, .site-nav a.is-active { background: var(--surface-2); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.site-header__cta { display: none; gap: .35rem; }
.icon-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap);
            background: none; border: 1px solid transparent; color: var(--text); border-radius: var(--radius-pill); cursor: pointer;
            position: relative; text-decoration: none; padding: 0; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .ico { width: 22px; height: 22px; }
.theme-toggle .ico { display: none; }
:root[data-theme="auto"] .theme-toggle .ico--auto, :root[data-theme="light"] .theme-toggle .ico--light,
:root[data-theme="dark"] .theme-toggle .ico--dark { display: block; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; display: flex; flex-direction: column; z-index: 30; }
.menu a, .menu__btn { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-sm); color: var(--text);
                      text-decoration: none; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; width: 100%; min-height: var(--tap); }
.menu a:hover, .menu__btn:hover { background: var(--surface-2); }
.menu small { color: var(--muted); }
.menu__head { padding: .5rem .7rem .3rem; }
.menu__head .label { margin: 0; }
.menu--up { top: auto; bottom: calc(100% + 8px); }
.menu--wide { min-width: 280px; }
.menu hr { margin: .3rem .2rem; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted-2); }
.role-dot--owner { background: var(--role-owner); } .role-dot--stable { background: var(--role-stable); }
.role-dot--specialist { background: var(--role-specialist); } .role-dot--admin { background: var(--poster-red); }
/* бургер на телефоне — шторка на весь экран */
.burger .menu { position: fixed; left: .5rem; right: .5rem; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; }
@media (min-width: 1040px) {
  .site-nav { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1280px) { .site-header__cta { display: flex; } }
.login-menu > summary { gap: .3rem; }
@media (max-width: 420px) { .login-menu > summary .btn__label { display: none; } .logo__img { height: 30px; } }

/* ===== кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: var(--tap); padding: .55rem 1.15rem;
       border-radius: var(--radius-pill); border: 1px solid transparent; font: 650 .95rem/1.2 var(--font-body); letter-spacing: .01em;
       text-decoration: none; cursor: pointer; background: var(--surface-2); color: var(--text); white-space: nowrap;
       transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--accent-strong); color: var(--on-accent); border-color: var(--accent-line); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-strong) 86%, var(--text)); }
.btn--secondary { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-line); }
.btn--secondary:hover { background: color-mix(in srgb, var(--accent-bg) 80%, var(--accent)); }
.btn--quiet { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--accent); border-color: transparent; padding-inline: .6rem; }
.btn--ghost:hover { background: var(--accent-bg); }
.btn--danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn--danger:hover { background: var(--danger-mid); color: var(--on-danger); }
.btn--owner { background: var(--role-owner-bg); color: var(--role-owner); border-color: color-mix(in srgb, var(--role-owner) 35%, transparent); }
.btn--stable { background: var(--role-stable-bg); color: var(--role-stable); border-color: color-mix(in srgb, var(--role-stable) 35%, transparent); }
.btn--specialist { background: var(--role-specialist-bg); color: var(--role-specialist); border-color: color-mix(in srgb, var(--role-specialist) 35%, transparent); }
.btn--wide { width: 100%; }
.btn--lg { min-height: 54px; padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn--sm { min-height: 34px; padding: .3rem .8rem; font-size: .85rem; }
.dropdown > summary.btn { padding: .45rem .9rem; }
.btn--wrap { white-space: normal; text-align: center; }   /* длинная подпись — переносится, а не вылезает за экран */
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ===== формы ===== */
.form { display: flex; flex-direction: column; gap: .2rem; }
.form--inline { flex-direction: row; flex-wrap: wrap; align-items: end; gap: .5rem; }
.field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .32rem; }
.field > label, .field__label { font-weight: 620; font-size: .93rem; display: flex; align-items: center; gap: .35rem; }
.req { color: var(--danger); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search],
input[type=date], input[type=datetime-local], input[type=time], select, textarea {
  width: 100%; min-height: var(--tap); padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-strong) 35%, transparent); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
         background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
         background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 120px; resize: vertical; }
input[type=file] { font: inherit; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 .9rem var(--font-body); margin-right: .7rem; padding: .55rem 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line); background: var(--accent-bg); color: var(--accent); cursor: pointer; min-height: 40px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.field-hint, .hint { font-size: .8rem; line-height: 1.4; color: var(--muted); margin: 0; }
.field-error, .form-error { color: var(--danger); font-size: .88rem; margin: 0; }
.form-error { background: var(--danger-bg); padding: .65rem .85rem; border-radius: var(--radius-sm); margin-bottom: .9rem;
              border-left: 3px solid var(--danger); }
.form-error p { margin: 0; }
/* галочки — свои квадратики */
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; font-weight: 400; font-size: .93rem; line-height: 1.45; }
.check input[type=checkbox], .check input[type=radio] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: .05rem 0 0;
  flex: none; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { background: var(--accent-strong); border-color: var(--accent-line); }
.check input[type=checkbox]:checked::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--on-accent); border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px); }
.check input[type=radio]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }
.check .field-hint { display: block; margin-top: .2rem; }
.consents { border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem .2rem; background: var(--surface-2); margin: 0 0 1rem; }
.consents legend { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 .4rem; }
.counter { font: .74rem var(--font-mono); color: var(--muted); text-align: right; margin-top: -.15rem; }
.counter.is-near { color: var(--warn); }

/* ===== панели, таблицы, вкладки (базовые) ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel--danger { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.panel--quiet { background: var(--surface-2); box-shadow: none; }
.list { padding-left: 1.1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 600px) {
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: .35rem 0; }
  .table td { display: block; border: 0; padding: .15rem .2rem; }
}
.tabs { display: flex; gap: .2rem; overflow-x: auto; margin: 0 0 1rem; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__item { padding: .65rem .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent;
              background: none; border-top: 0; border-left: 0; border-right: 0; font: 600 .93rem var(--font-body); cursor: pointer; min-height: var(--tap); }
.tabs__item.is-active, .tabs__item[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-strong); }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.codes code { display: block; background: var(--surface-2); padding: .45rem .6rem; border-radius: var(--radius-sm); text-align: center; }

/* плашки сообщений (Django messages) — тосты, см. components.css; запасной вид без JS */
.flash { max-width: 1200px; margin: .5rem auto 0; padding: 0 1rem; }
.flash__item { padding: .65rem .9rem; border-radius: var(--radius-sm); background: var(--accent-bg); color: var(--accent); margin: .3rem 0; }
.flash__item--error { background: var(--danger-bg); color: var(--danger); }
.flash__item--warning { background: var(--warn-bg); color: var(--warn); }
.banner { padding: .65rem .9rem; border-radius: var(--radius-sm); margin: .5rem 0; }
.banner--warn { background: var(--warn-bg); color: var(--warn); }
.banner--info { background: var(--info-bg); color: var(--info); }
.stand-mail { max-width: 760px; margin: .75rem auto 0; padding: 0 1rem; }
.stand-mail__item { border: 1px dashed var(--line-strong); background: var(--surface); border-radius: var(--radius); padding: .85rem 1rem; }
.stand-mail__tag { font: 500 .72rem var(--font-mono); color: var(--warn); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .3rem; }
.stand-mail__subject { font-weight: 650; }
.stand-mail__body { white-space: pre-wrap; font: .82rem/1.5 var(--font-mono); background: var(--surface-2); padding: .65rem; border-radius: var(--radius-sm); overflow-x: auto; }

/* ===== вход и регистрация ===== */
.auth { display: grid; gap: 1.25rem; max-width: 1080px; margin: 1rem auto; align-items: start; }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 460px; margin-top: 2rem; } .auth--solo { grid-template-columns: 1fr; max-width: 520px; } }
.auth__art { display: none; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.auth__art img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.auth__art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem; background: var(--scrim); }
.auth__art figcaption p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .auth__art { display: block; } }
.auth-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent-strong); }
.auth-box--owner::before { background: var(--role-owner-mid); } .auth-box--stable::before { background: var(--role-stable-mid); }
.auth-box--specialist::before { background: var(--role-specialist-mid); } .auth-box--admin::before { background: var(--poster-red); }
.auth-box__head { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.auth-box__head h1 { margin: 0; font-size: clamp(1.4rem, 5vw, 2rem); }
.auth-links { margin-top: .9rem; font-size: .93rem; display: flex; flex-direction: column; gap: .35rem; }
.role-cards { display: grid; gap: .7rem; margin: 1rem 0; }
@media (min-width: 720px) { .role-cards { grid-template-columns: repeat(3, 1fr); } }
.role-card { display: flex; flex-direction: column; gap: .3rem; padding: 0; border-radius: var(--radius); text-decoration: none; overflow: hidden;
             color: var(--text); border: 1px solid var(--line); background: var(--surface); min-height: var(--tap); transition: transform .15s var(--ease), border-color .15s; }
.role-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.role-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--surface-2); }
.role-card__body { padding: .8rem 1rem 1rem; }
.role-card strong { font-size: 1.05rem; display: block; }
.role-card span { color: var(--muted); font-size: .9rem; }
.role-card--vladelec, .role-card--owner { border-top: 4px solid var(--role-owner-mid); }
.role-card--konyushnya, .role-card--stable { border-top: 4px solid var(--role-stable-mid); }
.role-card--specialist { border-top: 4px solid var(--role-specialist-mid); }
/* телефон: все три роли на одном экране — картинка 88 px слева, текст справа (UX-раунд 1) */
@media (max-width: 719px) {
  .role-card { flex-direction: row; align-items: center; gap: .85rem; padding: .55rem; border-top-width: 1px; }
  .role-card > .timg, .role-card > img { flex: none; width: 88px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; }
  .role-card > .timg img, .role-card > img { width: 88px; height: 88px; aspect-ratio: 1; }
  .role-card > .timg .timg__art { width: 88px; height: 88px; }
  .role-card__body { padding: 0 .3rem 0 0; }
  .role-card--vladelec, .role-card--owner { border-left: 4px solid var(--role-owner-mid); }
  .role-card--konyushnya, .role-card--stable { border-left: 4px solid var(--role-stable-mid); }
  .role-card--specialist { border-left: 4px solid var(--role-specialist-mid); }
}

/* ===== кабинет: боковое меню на ПК, нижняя панель на телефоне ===== */
.cabinet__layout { display: grid; gap: 1.25rem; }
.cabinet__side { display: none; }
.cabinet__who { display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.cabinet__who strong { display: block; line-height: 1.2; }
@media (min-width: 960px) {
  .cabinet__layout { grid-template-columns: 240px minmax(0, 1fr); }
  .cabinet__side { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 76px; align-self: start; }
  .cabinet__link { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: var(--radius-sm); color: var(--text);
                   text-decoration: none; font-weight: 550; min-height: var(--tap); }
  .cabinet__link:hover { background: var(--surface-2); }
  .cabinet__link.is-active { background: var(--accent-bg); color: var(--accent); }
  .bottom-nav { display: none !important; }
}
.cabinet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.cabinet-head h1 { margin: 0; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: flex;
              justify-content: space-around; padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); z-index: 25; box-shadow: var(--shadow-lg); }
.bottom-nav__item { flex: 1; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; color: var(--muted);
                    text-decoration: none; font-size: .68rem; font-weight: 600; list-style: none; cursor: pointer; text-align: center; border-radius: var(--radius-sm);
                    line-height: 1.1; padding: 0 .1rem; }
.bottom-nav__item .ico { width: 23px; height: 23px; }
.bottom-nav__item.is-active { color: var(--accent); }
.bottom-nav__item.is-active .ico { stroke-width: 2.2; }
.bottom-nav__more { position: relative; flex: 1; display: flex; }
.bottom-nav__more > summary::-webkit-details-marker { display: none; }
.bottom-nav__more .menu { right: .3rem; }
body.cabinet { padding-bottom: 76px; }
@media (min-width: 960px) { body.cabinet { padding-bottom: 0; } }

/* ===== подвал ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--deco-footer) no-repeat right -50px top -70px / 260px auto; opacity: .22; pointer-events: none; }
.site-footer__in { position: relative; max-width: 1200px; margin: 0 auto; padding: 1.6rem 1rem calc(1.6rem + env(safe-area-inset-bottom));
                   display: grid; gap: 1.2rem; font-size: .9rem; color: var(--muted); }
@media (min-width: 760px) { .site-footer__in { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer__brand strong { color: var(--text); }
.site-footer__links { display: flex; flex-direction: column; gap: .4rem; }
.site-footer__links a, .site-footer__links button { color: var(--text); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--accent); text-decoration: underline; }
.site-footer__stand { color: var(--warn); margin: 0; }
.site-footer__credit { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
                       justify-content: space-between; font: .74rem var(--font-mono); letter-spacing: .04em; }
.free { color: var(--accent); font-weight: 700; }

/* cookie — плавающая внизу (один раз); «на экран Домой» — карточка в начале кабинета, ничего не закрывает (UX-раунд 1) */
.cookie-note { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 40; background: var(--surface); border: 1px solid var(--line);
               border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .5rem; max-width: 560px; margin: 0 auto; }
.install-hint { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
                padding: .75rem 1rem; display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1rem; }
.install-hint p { margin: 0; }
.cookie-note[hidden], .install-hint[hidden] { display: none; }
body.cabinet .cookie-note { bottom: 88px; }
.install-hint__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-nav .dropdown > summary { display: flex; align-items: center; padding: .55rem .6rem; border-radius: var(--radius-sm); color: var(--text); }
.site-nav .dropdown > summary:hover { background: var(--surface-2); }
.site-nav .menu { right: auto; left: 0; }
.radio-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.h3, h2.h3 { font-size: 1.1rem; font-stretch: 100%; display: flex; align-items: center; gap: .4rem; }
/* блок кабинета внутри публичной страницы (образец /_ui/) — рабочие заголовки */
.is-cabinet h1, .is-cabinet h2 { font-family: var(--font-head-work); text-transform: none; letter-spacing: -.01em; font-weight: 750; font-stretch: 112%; }
.field > label.check, .field > label.switch { align-items: flex-start; font-weight: 450; font-size: .93rem; }
.check .field-hint { font-weight: 400; }
