:root {
    --bg-primary: #053855;
    --bg-secondary: #082f4b;
    --bg-card: rgba(7, 43, 67, 0.88);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.78);
    --accent: #6ef2f0;
    --accent-soft: #6ef2cc;
    --line: rgba(255, 255, 255, 0.36);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: "Montserrat", Arial, sans-serif;
    background: linear-gradient(to top, rgba(5, 56, 85, 0.7), rgba(5, 56, 85, 0.78)),
        url("https://edc.artmedis.ru/back.avif") center top / cover fixed no-repeat;
    overflow-x: hidden;
}

html body {
    overflow-y: overlay;
}

html *::-webkit-scrollbar {
    width: 6px;
}

html *::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: var(--accent-soft);
}

html *::-webkit-scrollbar-track {
    border-radius: 0;
    background-color: #112841;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 280px at 80% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(1200px 540px at 75% 45%, rgba(255, 255, 255, 0.06), transparent 70%);
    z-index: 0;
}

.manual-container {
    width: min(1360px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header {
    padding-top: 16px;
    position: relative;
    z-index: 5;
}

.site-header__inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 30px;
}

.site-header__logo img {
    width: 110px;
    height: auto;
    display: block;
}

.site-header__nav {
    display: flex;
    justify-content: center;
    gap: 84px;
    align-items: center;
}

.site-header__nav a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.site-header__nav a.is-active {
    color: #ffffff;
}

.site-header__nav a.is-active::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-soft);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -22px;
}

.site-header__login {
    text-decoration: none;
    color: #111;
    background: #fff;
    border-radius: 999px;
    padding: 11px 26px;
    font-size: 12px;
    line-height: 1;
    text-transform: lowercase;
    font-weight: 500;
    white-space: nowrap;
}

.docs-links {
    margin-top: 36px;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.docs-links__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.doc-link {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.doc-link:hover,
.doc-link:focus-visible {
    border-color: #ffffff;
}

.doc-link.is-active {
    background: #d8dde3;
    color: #33536d;
    border-color: #d8dde3;
}

.manual-shell {
    position: relative;
    z-index: 2;
}

.manual-frame {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-card);
    display: grid;
    grid-template-columns: 275px 8px 1fr;
    min-height: 694px;
    overflow: hidden;
    backdrop-filter: blur(1px);
}

.manual-burger {
    display: none;
}

.manual-sidebar {
    padding: 34px 18px 28px;
    overflow: auto;
    height: 654px;
}

.manual-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manual-role {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manual-role__title {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.manual-role__submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manual-role__submenu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
}

.manual-role__submenu a:hover,
.manual-role__submenu a:focus-visible {
    color: #ffffff;
}

.manual-role__submenu a.t-active {
    color: #ffffff;
    font-weight: 700;
}

.manual-divider {
    width: 8px;
    background: linear-gradient(180deg, var(--accent-soft), #70ffde);
    margin: 20px 0;
    border-radius: 0;
}

.manual-content {
    padding: 30px 34px;
    height: 654px;
    overflow: auto;
}

.manual-loading,
.manual-error {
    padding: 18px;
    font-size: 12px;
    line-height: 1.4;
}

.manual-error {
    color: #ffb9b9;
}

.manual-record + .manual-record {
    margin-top: 16px;
}

.manual-anchor {
    display: block;
    position: relative;
    top: -12px;
    visibility: hidden;
}

.manual-role-heading {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

.manual-section-text {
    font-size: 11px;
    line-height: 1.58;
    color: var(--text-muted);
}

.manual-section-text span[style*="font-weight: 600"],
.manual-section-text strong {
    color: #ffffff;
    font-weight: 700 !important;
}

.manual-section-text ul,
.manual-section-text ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.manual-section-text p {
    margin: 0 0 10px;
}

.manual-section-text a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
}

.manual-section-text a:hover,
.manual-section-text a:focus-visible {
    opacity: 0.75;
}

.manual-overlay {
    display: none;
}

.site-footer {
    margin-top: 64px;
    background: linear-gradient(to top, rgba(7, 35, 58, 0.72), rgba(6, 40, 66, 0.52));
    padding: 48px 0 24px;
    position: relative;
    z-index: 2;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 1.45fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.site-footer h2 {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.site-footer p,
.site-footer a,
.site-footer span {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-main);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    opacity: 0.75;
}

.site-footer strong {
    font-weight: 700;
}

.site-footer__support {
    padding-top: 12px;
}

.site-footer__support-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.site-footer__support-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.site-footer__support-brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.site-footer__support-brand span {
    font-size: 9px;
    line-height: 1.2;
}

.t890 {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    left: unset;
    min-height: 30px;
    opacity: 1;
    z-index: 99990;
}

.t890__arrow {
    cursor: pointer;
    display: inline-block;
    height: 50px;
    width: 50px;
    padding: 0;
    border: 0;
    border-radius: 53px;
    background-color: transparent;
    animation-name: t890__zoom;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.t890__arrow svg rect,
.t890__arrow svg path {
    transition: 0.2s ease-in;
}

@keyframes t890__zoom {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 1800px) {
    .manual-container {
        width: min(1360px, calc(100% - 34px));
    }

    .manual-frame {
        grid-template-columns: 275px 8px 1fr;
        min-height: 694px;
    }

    .manual-content,
    .manual-sidebar {
        height: 654px;
    }
}

@media (max-width: 1199px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .site-header__nav {
        display: none;
    }

    .docs-links__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .doc-link {
        min-height: 56px;
        font-size: 18px;
    }

    .manual-frame {
        grid-template-columns: 1fr;
        min-height: auto;
        position: relative;
        overflow: visible;
    }

    .manual-divider {
        display: none;
    }

    .manual-burger {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 8;
        width: 38px;
        height: 32px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(8, 41, 64, 0.9);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 0 8px;
        cursor: pointer;
    }

    .manual-burger span {
        display: block;
        width: 100%;
        height: 1px;
        background: #ffffff;
    }

    .manual-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(330px, 88vw);
        height: auto;
        transform: translateX(-104%);
        transition: transform 0.25s ease;
        z-index: 10;
        background: #082b43;
        border-right: 1px solid var(--line);
        padding-top: 56px;
    }

    body.manual-sidebar-open .manual-sidebar {
        transform: translateX(0);
    }

    .manual-overlay {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 9;
    }

    body.manual-sidebar-open .manual-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .manual-content {
        height: auto;
        min-height: 560px;
        padding: 56px 18px 24px;
    }

    .manual-role-heading,
    .manual-section-text,
    .manual-role__title,
    .manual-role__submenu a,
    .site-footer h2,
    .site-footer p,
    .site-footer a,
    .site-footer span,
    .site-footer__support-label,
    .site-footer__support-brand span {
        font-size: 16px;
    }

    .site-footer {
        margin-top: 42px;
        padding-top: 30px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .t890 {
        right: 12px;
        bottom: 10px;
    }

    .t890__arrow {
        transform: scale(0.8);
    }
}
