html {
    overflow-y: scroll;
}

@media (min-width: 992px) {
    .desktop-sticky {
        position: sticky;
        top: 0;
        z-index: 1030; /* чтобы был выше контента */
    }
}

/* Мобильный (md и ниже) — обычный flow */
@media (max-width: 991.98px) {
    .desktop-sticky {
        position: static;
    }
}

main.page {
    .feature-block {
        background-color: #ffffff;
        border-radius: 10px;
        padding: 2rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .feature-icon {
        font-size: 2.5rem;
        color: #0d6efd;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-weight: 600;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .feature-text {
        color: #6c757d;
    }
}

span.pro {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 6px #fda085aa;
    margin-left: 0;
    margin-right: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

span.pro-title {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 1.6rem;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 6px #fda085aa;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.nav-link {
    border-bottom: 2px solid transparent;
}

.nav-link.active {
    font-weight: bold;
    border-bottom: 2px solid #0d6efd;
}

a[data-bs-toggle="collapse"]:not(.collapsed) {
    font-weight: bold;
}

.sidebar-nav {
    gap: 0.35rem;
    border-radius: 1rem;
}

.sidebar-nav__item {
    border-top-width: 1px !important;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem !important;
    margin-bottom: 0.35rem;
    padding: 0.8rem 0.95rem;
    color: #0f172a;
    background: #ffffff;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-nav > .sidebar-nav__item:first-child,
.sidebar-nav > .sidebar-nav__item:last-child,
.sidebar-nav__submenu .sidebar-nav__item:first-child,
.sidebar-nav__submenu .sidebar-nav__item:last-child {
    border-radius: 0.9rem !important;
}

.sidebar-nav__item:hover {
    background: #f8fbff;
    border-color: #bfd7ff;
    color: #0b5ed7;
    transform: translateX(1px);
}

.sidebar-nav__item.active {
    background: linear-gradient(135deg, #0d6efd 0%, #2b7fff 100%);
    border-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.16);
}

.sidebar-nav__item.active:hover {
    color: #ffffff;
}

.sidebar-nav__item--parent {
    position: relative;
    padding-right: 2.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sidebar-nav__item--parent::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0.72;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.sidebar-nav__item--parent:not(.collapsed)::after {
    transform: translateY(-35%) rotate(225deg);
    opacity: 1;
}

.sidebar-nav__submenu {
    margin: -0.05rem 0 0.55rem;
    padding: 0.55rem 0.45rem 0.2rem 0.8rem;
    border-left: 2px solid #dbeafe;
}

.sidebar-nav__item--child {
    margin-left: 0.15rem;
    padding-left: 1.15rem;
    font-size: 0.95rem;
    background: #f8fafc;
    color: #334155;
    border-color: #e5edf7;
}

.sidebar-nav__item--child::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.55rem;
    border-radius: 999px;
    background: #93c5fd;
    vertical-align: middle;
}

.sidebar-nav__item--child.active {
    background: linear-gradient(135deg, #0d6efd 0%, #2b7fff 100%);
    border-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.16);
}

.sidebar-nav__item--child.active::before {
    background: rgba(255, 255, 255, 0.92);
}

.form-label span.optional {
    color: #6b7280;
    font-weight: normal;
    margin-left: .3em;
    font-style: italic;
}

input[data-inactive="1"] + label {
    color: #6c757d;
    font-style: italic;
}

.checkboxes-col.col-3 {
    column-count: 3;
    column-gap: 2rem;
    width: 100%;
}

.checkboxes-col.col-2 {
    column-count: 2;
    column-gap: 2rem;
    width: 100%;
}

.checkboxes-col .form-check {
    break-inside: avoid;
}

.cursor-pointer {
    cursor: pointer;
}

body.impersonator {
    border: red 10px solid;
}
