.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;
    z-index: 1000;
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /*border-bottom: 2px solid rgba(114, 104, 104, 0.5); /* постоянный бордер */
}

/*.navbar::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    bottom: -2px;*/
/*    left: 0;*/
/*    height: 2px; !* толщина полоски *!*/
/*    width: 400px; !* длина бегущей полоски *!*/
/*    background-color: red; !* цвет полоски *!*/
/*    animation: moveRight 2s linear infinite;*/
/*    box-shadow: 0 0 10px red;*/
/*}*/

@keyframes moveRight {
    0% {
        left: 0;
    }
    100% {
        left: 100%;
        transform: translateX(-50px); /* компенсируем ширину полоски */
    }
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    color: white;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background-color: #390001;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #5a2d2f;
}

.nav-btn.active {
    background-color: rgba(41, 41, 41, 0);
}

@media (max-width: 768px) {

    .nav-container {
        flex-direction: column; /* Лого сверху, меню снизу */
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0 12px;
    }

    .nav-menu {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;   /* одна строка */
        gap: 0.3rem;
    }

    .nav-btn {
        flex: 1 1 auto;             /* делим доступное пространство */
        min-width: 0;                /* можно ужиматься */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: clamp(0.25rem, 1.5vw, 0.45rem) clamp(0.5rem, 2.5vw, 0.9rem);
        font-size: clamp(0.6rem, 2vw, 0.85rem);  /* текст уменьшается до минимума 0.6rem */
        border-radius: clamp(14px, 2vw, 18px);
        box-sizing: border-box;
        white-space: nowrap;
        text-align: center;
    }
}
.navbar {
    user-select: none;           /* Запрет выделения */
    -webkit-user-select: none;   /* Для Safari */
    -moz-user-select: none;      /* Для Firefox */
    -ms-user-select: none;       /* Для IE/Edge */
}

/* Если нужно запретить выделение только у конкретных элементов */
.nav-logo, .nav-logo * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}