:root {
    --bg-color: #F5F5F7;
    --card-bg: #FFFFFF;
    --border-color: #E5E5EA;
    --text-main: #1D1D1F;
    --text-secondary: #86868B;
    --accent-color: #007AFF;
    --accent-hover: #0071E3;
    --radius: 16px;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-raised: 0 18px 50px rgba(20, 20, 40, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-main);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow-anchor: none;
    -webkit-font-smoothing: antialiased;
}

.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-decor::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(58% 48% at 12% 0%, rgba(167, 139, 250, 0.055), transparent 72%),
        radial-gradient(52% 46% at 88% 6%, rgba(236, 72, 153, 0.05), transparent 74%),
        radial-gradient(56% 50% at 50% 96%, rgba(59, 130, 246, 0.05), transparent 76%);
}

.shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow-card);
}

/* ---------------------------------------------------------------- шапка --- */

.site-header {
    position: sticky;
    top: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.site-header.is-stuck {
    top: 8px;
    width: calc(100% - 56px);
    margin-inline: auto;
    padding: 10px 20px;
    background: #FFFFFF;
    border-color: #CFCFD8;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.site-header.is-stuck .brand-text {
    font-size: 1.2rem;
}

.site-header.is-stuck .site-nav a {
    padding: 5px 9px;
    font-size: 0.85rem;
}

.site-header.is-stuck .btn.small {
    padding: 7px 12px;
    font-size: 0.82rem;
}

.site-header,
.site-header .brand-text,
.site-header .site-nav a,
.site-header .btn.small {
    transition: padding 0.2s ease, font-size 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-text {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-text b {
    color: var(--text-main);
    font-weight: 600;
}

.brand-light {
    color: var(--text-secondary);
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-left: auto;
}

.site-nav a {
    padding: 7px 10px;
    line-height: 1.2;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
    color: var(--text-main);
    background: #F2F2F7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------- кнопки --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn.primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #FFFFFF;
}

.btn.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn.secondary {
    background: #F2F2F7;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn.secondary:hover {
    background: #E9E9F0;
}

.btn.small {
    padding: 8px 14px;
    font-size: 0.88rem;
}

/* --------------------------------------------------------------- текст --- */

h1 {
    margin: 0 0 10px;
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0 0 22px;
    color: var(--text-secondary);
}

.note.bad {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FFF4EF;
    border: 1px solid #F6DCD1;
    color: #B4470F;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------- форма --- */

.form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
}

label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input,
textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #FAFAFC;
    color: var(--text-main);
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(0, 122, 255, 0.35);
    border-color: var(--accent-color);
}

textarea {
    resize: vertical;
}

.form.wide {
    max-width: none;
}

.form.wide textarea {
    min-height: 160px;
}

.draft-note {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #EDF5FF;
    border: 1px solid #D3E4FA;
    font-size: 0.85rem;
    color: var(--text-main);
}

.char-counter {
    margin-top: 6px;
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.char-counter.bad {
    color: #B4470F;
}

.char-counter.near {
    color: var(--accent-color);
}

.field-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

input[type="file"] {
    padding: 8px 10px;
    background: #FAFAFC;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #F2F2F7;
    color: var(--text-main);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

input[type="file"]::file-selector-button:hover {
    background: #E9E9F0;
}

input[type="file"]::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #F2F2F7;
    color: var(--text-main);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.form-actions .btn {
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 180px;
}

.form .btn {
    margin-top: 16px;
}

/* ----------------------------------------------------------- результат --- */

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #FAFAFC;
}

.facts dt {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.facts dd {
    margin: 3px 0 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --------------------------------------------------- две колонки на lk --- */

.lk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: start;
}

.lk-aside {
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #FAFAFC;
}

.lk-aside h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.lk-aside h2 + ul {
    margin-bottom: 22px;
}

.lk-aside ul {
    margin: 0;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.lk-aside p {
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.lk-hint {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------- админка --- */

.login-brand {
    padding: 4px 4px 18px;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.shell-center {
    max-width: 520px;
    margin: 0 auto;
}

.login-card h1 {
    margin-bottom: 6px;
}

.login-card .lead {
    margin-bottom: 18px;
}

.shell-narrow {
    max-width: 560px;
}

.session-mail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inline-form {
    display: inline;
    margin: 0;
}

.site-nav a.active {
    color: var(--text-main);
    background: #F2F2F7;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.stat-card {
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #FAFAFC;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card b {
    font-size: 1.7rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-card span {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.stat-hint {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.muted-note {
    margin: 22px 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ---------------------------------------------------------------- подвал --- */

/* --------------------------------------------------------------- таблицы --- */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 26px;
    font-size: 0.92rem;
}

.admin-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table a {
    color: var(--accent-color);
    text-decoration: none;
}

.tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.tag.ok {
    background: #E8F7EE;
    color: #1E7A46;
}

.tag.bad {
    background: #FDECEC;
    color: #B42318;
}

.tag.muted {
    background: #F2F2F7;
    color: var(--text-secondary);
}

.section-title {
    margin: 26px 0 12px;
    font-size: 1rem;
}

.inline-search {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    max-width: none;
    width: 100%;
}

.inline-search input {
    flex: 1 1 auto;
    min-width: 0;
}

.inline-search .btn {
    margin-top: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.contact-form {
    max-width: 620px;
}

.facts.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crumbs {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.crumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 22px;
}

.page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #FAFAFC;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.page.active {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #FFFFFF;
}

.blob {
    position: absolute;
    display: block;
    border-radius: 50%;
    will-change: transform;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.blob-1 {
    top: -32vmax;
    left: -32vmax;
    width: 64vmax;
    height: 64vmax;
    background: radial-gradient(circle at 50% 50%,
        rgba(139, 92, 246, 0.10) 0%,
        rgba(139, 92, 246, 0.075) 28%,
        rgba(139, 92, 246, 0.028) 56%,
        rgba(139, 92, 246, 0) 76%);
    animation-name: drift-a;
    animation-duration: 37s;
}

.blob-2 {
    top: -29vmax;
    right: -29vmax;
    width: 58vmax;
    height: 58vmax;
    background: radial-gradient(circle at 50% 50%,
        rgba(236, 72, 153, 0.095) 0%,
        rgba(236, 72, 153, 0.07) 28%,
        rgba(236, 72, 153, 0.022) 58%,
        rgba(236, 72, 153, 0) 78%);
    animation-name: drift-b;
    animation-duration: 46s;
    animation-delay: -12s;
}

.blob-3 {
    bottom: -30vmax;
    right: -30vmax;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle at 50% 50%,
        rgba(56, 189, 248, 0.09) 0%,
        rgba(56, 189, 248, 0.065) 28%,
        rgba(56, 189, 248, 0.02) 58%,
        rgba(56, 189, 248, 0) 78%);
    animation-name: drift-c;
    animation-duration: 31s;
    animation-delay: -6s;
}

.blob-4 {
    bottom: -25vmax;
    left: -25vmax;
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(circle at 50% 50%,
        rgba(167, 139, 250, 0.085) 0%,
        rgba(167, 139, 250, 0.06) 30%,
        rgba(167, 139, 250, 0.02) 60%,
        rgba(167, 139, 250, 0) 78%);
    animation-name: drift-d;
    animation-duration: 53s;
    animation-delay: -21s;
}

@keyframes drift-a {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(7vw, 5vh, 0) scale(1.12); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drift-b {
    0%   { transform: translate3d(0, 0, 0) scale(1.08); }
    50%  { transform: translate3d(-6vw, -7vh, 0) scale(0.94); }
    100% { transform: translate3d(0, 0, 0) scale(1.08); }
}

@keyframes drift-c {
    0%   { transform: translate3d(0, 0, 0) scale(0.92); }
    50%  { transform: translate3d(5vw, -6vh, 0) scale(1.06); }
    100% { transform: translate3d(0, 0, 0) scale(0.92); }
}

@keyframes drift-d {
    0%   { transform: translate3d(0, 0, 0) scale(1.04); }
    50%  { transform: translate3d(-5vw, 4vh, 0) scale(0.96); }
    100% { transform: translate3d(0, 0, 0) scale(1.04); }
}

.cursor-lens {
    position: fixed;
    top: 0;
    left: 0;
    width: 900px;
    height: 900px;
    margin: -450px 0 0 -450px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
    -webkit-backdrop-filter: saturate(2.4) brightness(0.96);
    backdrop-filter: saturate(2.4) brightness(0.96);
    -webkit-mask-image: radial-gradient(closest-side circle at 50% 50%,
        #000 0%, rgba(0, 0, 0, 0.92) 42%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
    mask-image: radial-gradient(closest-side circle at 50% 50%,
        #000 0%, rgba(0, 0, 0, 0.92) 42%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
}

.cursor-lens.is-on {
    opacity: 1;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
    .cursor-lens {
        display: none;
    }
}

.shot-view[hidden] {
    display: none;
}

.shot-view {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    background: rgba(20, 20, 22, 0.86);
}

.shot-view img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.shot-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #FAFAFC;
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-decoration: none;
}

.tab.active {
    background: var(--text-main);
    color: #FFFFFF;
    border-color: var(--text-main);
}

.message-box {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #FAFAFC;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
}

.shots {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
}

.shot {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #FAFAFC;
}

.shot img {
    display: block;
    width: 220px;
    height: 165px;
    object-fit: cover;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.status-row .btn {
    margin-top: 0;
    min-width: 0;
}

select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #FAFAFC;
    color: var(--text-main);
    font: inherit;
}

.repair-form {
    max-width: 620px;
}

.site-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 36px 22px;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 34ch;
}

.footer-brand img {
    height: 48px;
    width: auto;
    aspect-ratio: 316 / 288;
    object-fit: contain;
}

.footer-brand p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    gap: 52px;
    flex-wrap: wrap;
}

.footer-nav div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav b {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-nav a:hover {
    border-color: var(--text-main);
}

.footer-legal {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    letter-spacing: 0.2px;
}

.footer-legal .copy {
    margin: 0;
    font-size: 0.9rem;
    line-height: normal;
    color: var(--text-secondary);
}

.footer-legal .tm {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.footer-legal .tm sup {
    font-size: 0.9em;
    vertical-align: 0.35em;
    margin-left: 0.1em;
}

.footer-docs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 4px;
}

.footer-docs a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    padding-bottom: 1px;
}

.footer-docs a:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* -------------------------------------------------------------- телефоны --- */

@media (max-width: 720px) {
    .inline-search {
        flex-wrap: wrap;
    }

    .inline-search .btn {
        flex: 1 1 100%;
    }

    body {
        padding: 20px 12px;
    }

    .shell {
        gap: 20px;
    }

    .card {
        padding: 24px 20px;
    }

    .site-header {
        padding: 14px 16px;
        gap: 12px;
        top: 8px;
    }

    .site-header.is-stuck {
        width: calc(100% - 20px);
        padding: 8px 12px;
    }

    .brand-text {
        font-size: 1.15rem;
    }

    .site-nav {
        display: none;
    }

    .header-actions .btn {
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    h1 {
        font-size: 1.45rem;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    .lk-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lk-aside {
        padding: 18px 18px;
    }

    .actions .btn {
        flex: 1 1 100%;
    }

    .site-footer {
        padding: 22px 20px 18px;
    }

    .footer-nav {
        gap: 28px;
    }
}


/* mobile-strict */
@media (max-width: 720px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .shell {
        width: 100%;
        max-width: 100%;
    }

    .lk-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .lk-aside {
        padding: 16px 14px;
    }

    img,
    video {
        max-width: 100%;
        height: auto;
    }
}

.mobile-bar {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        max-width: 100%;
        overflow-x: hidden;
    }

    .shell {
        width: 100%;
        max-width: 100%;
    }

    .site-nav,
    .header-actions .btn {
        display: none;
    }

    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        gap: 2px;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: saturate(1.8) blur(14px);
        backdrop-filter: saturate(1.8) blur(14px);
        border-top: 1px solid var(--border-color);
    }

    .bar-item {
        flex: 1 1 0;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 2px;
        border: none;
        background: none;
        border-radius: 12px;
        color: var(--text-secondary);
        font-size: 0.68rem;
        line-height: 1.1;
        text-decoration: none;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .bar-item svg {
        width: 22px;
        height: 22px;
    }

    .bar-item:active {
        background: rgba(0, 122, 255, 0.08);
    }

    .lk-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lk-main,
    .lk-aside,
    .card,
    .form {
        min-width: 0;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* footer-mobile */
@media (max-width: 900px) {
    .site-footer .footer-brand,
    .site-footer .footer-nav,
    .site-footer .footer-main,
    .site-footer .footer-docs {
        display: none;
    }

    .site-footer {
        padding: 18px 16px;
        gap: 8px;
        text-align: center;
    }

    .site-footer .footer-legal {
        margin: 0;
        padding-top: 0;
        border-top: none;
        gap: 6px;
    }

    .site-footer .footer-legal .copy {
        display: none;
    }

    .site-footer .footer-legal .tm {
        font-size: 0.78rem;
        line-height: 1.4;
    }
}

.lk-request {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.lk-request:last-child {
    border-bottom: none;
}

.lk-works {
    margin: 8px 0 0 18px;
    padding: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.lk-works li {
    margin-bottom: 4px;
}

.lk-timeline {
    position: relative;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.lk-timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-color);
}

.lk-timeline li {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 6px 0 6px 26px;
    font-size: 0.94rem;
}

.lk-timeline li::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--accent-color);
    box-sizing: border-box;
}

.lk-date {
    flex: 0 0 92px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.lk-text {
    flex: 1 1 auto;
    color: var(--text-main);
}

.inline-search select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 10px 12px;
}

.inline-search .muted-note {
    flex: 0 0 auto;
    white-space: nowrap;
}

.status-form {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
    row-gap: 10px;
    margin: 0 0 14px;
    max-width: 720px;
}

.status-form .muted-note {
    margin: 0;
    white-space: nowrap;
}

.status-form select {
    width: 100%;
    padding: 10px 12px;
}

.status-form .btn {
    margin-top: 0;
    min-width: 0;
}

@media (max-width: 720px) {
    .status-form {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
}

/* гарантия: цвет подсказывает состояние */
.facts.ok {
    background: #F6FBF7;
    border-color: #DCEBE2;
}

.facts.expired {
    background: #FBF7F3;
    border-color: #EFE3D6;
}

.facts.ok dd,
.facts.expired dd {
    color: var(--text-main);
}
