/* Предотвращение сдвига страницы при открытии модальных окон */
html {
    scrollbar-gutter: stable;
}

.custom-logo {
    border-radius: 5px;
    border: 1px #667eea solid;
}

.custom-hr {
	margin: 20px 0;
	padding: 0;
	height: 1px;
	border: none;
	background: linear-gradient(to right, transparent 50%, #fff 50%), 
				linear-gradient(to right, blue, red);
	background-size: 33px 2px, 100% 2px;
}


.custom-bg {
    background: #520DEE;
    background: -webkit-linear-gradient(left, #520DEE, #DD1481);
    background: -moz-linear-gradient(left, #520DEE, #DD1481);
    background: linear-gradient(to right, #520DEE, #DD1481);
}


.modal-backdrop {
    position:unset !important;
}


.modal-content {
    border: 2px solid #fff !important;
}


.custom-border {
    border: 1px solid #00000010 !important;
}


.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Фиксация отступов для навбара - кнопки всегда с правильным отступом */
.navbar-nav.gap-2 {
    gap: 0.5rem !important;
}

/* Убеждаемся, что контейнер навбара имеет правильные отступы */
.navbar .container-fluid {
    padding-right: var(--bs-gutter-x, 1rem) !important;
    padding-left: var(--bs-gutter-x, 1rem) !important;
}

/* Защита навбара от влияния MutationObserver - явно задаем отступы */
@media (min-width: 992px) {
    .navbar .navbar-nav.gap-2 {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
}