.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.qr-nav-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid transparent;
    outline: none;
    box-shadow: none !important;

    height: 32px;
    padding: 0 8px 1px;
    border-radius: 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 1.0rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.15px;
    text-decoration: none;

    transition: all 0.35s ease;

    background-image: none !important;
}

.qr-nav-btn:focus,
.qr-nav-btn:active,
.qr-nav-btn:hover {
    box-shadow: none !important;
    text-decoration: none;
}

.qr-nav-btn-secondary {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(68, 179, 104, 0.34) !important;
    color: #8fe0a8 !important;
}

.qr-nav-btn-secondary:hover {
    background: rgba(68, 179, 104, 0.10) !important;
    border-color: rgba(68, 179, 104, 0.54) !important;
    color: #b9f2c9 !important;
}

.qr-nav-btn-primary {
    background: linear-gradient(180deg, #23834f 0%, #17663a 100%) !important;
    border-color: rgba(122, 214, 147, 0.34) !important;
    color: #ffffff !important;
}

.qr-nav-btn-primary:hover {
    background: linear-gradient(180deg, #2b975c 0%, #1d7845 100%) !important;
    border-color: rgba(144, 231, 166, 0.48) !important;
    color: #ffffff !important;
}

.qr-nav-btn i {
    font-size: 1.0rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.navbar .navbar-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 1.0rem;
    letter-spacing: 0.35px;
    transition: all 0.25s ease;
    position: relative;
    text-decoration: none;
}

.navbar .navbar-link:hover,
.navbar .navbar-link:focus {
    color: #22c55e !important;
}

.navbar .navbar-link.active {
    color: #22c55e !important;
    font-weight: 600;
}

.navbar .navbar-link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.3rem;
    height: 1.5px;
    background: linear-gradient(90deg, #2a8c55, #7ee19a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar .navbar-link:hover::after,
.navbar .navbar-link.active::after {
    transform: scaleX(1);
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        padding-top: 14px;
    }

    .navbar .nav-center {
        position: static;
        left: auto;
        transform: none;

        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0 !important;
        margin-top: 8px;
    }

    .navbar .nav-center .navbar-link {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: 48px;
        padding: 12px 16px !important;
        margin: 0;

        text-align: center;
        border-bottom: 1px solid rgba(68, 179, 104, 0.14);
    }

    .navbar .nav-center .navbar-link::after {
        left: 16px;
        right: 16px;
        bottom: 8px;
    }

    .navbar .navbar-collapse > .d-flex.flex-column.flex-lg-row.align-items-lg-center.ms-auto.gap-2.mt-3.mt-lg-0 {
        width: 100%;
        margin-top: 14px !important;
        gap: 10px !important;
    }

    .navbar .navbar-collapse > .d-flex.flex-column.flex-lg-row.align-items-lg-center.ms-auto.gap-2.mt-3.mt-lg-0 > div.d-flex.flex-column.flex-lg-row.gap-2 {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .navbar .qr-nav-btn {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border-radius: 6px;
        justify-content: center;
    }

    .navbar .qr-nav-btn span {
        display: inline-block;
    }

    .navbar .qr-nav-btn i {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .qr-content-types {
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 6px !important;
    }

    .qr-content-type-btn {
        width: 44px !important;
        height: 40px !important;
        padding: 0 !important;
    }

    .qr-content-type-btn svg {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
}

/* ========== NAVBAR: QRCODEX ========== */

.qr-nav,
.qr-nav.nav-link {
    color: #ffffff !important;
    font-weight: 400;
    padding: 0.3rem 0.6rem;
    margin-right: 0.6rem;

    border: none;
    background: transparent !important;
    border-radius: 0;
    text-decoration: none !important;

    transition:
            color 0.15s ease-in-out,
            text-decoration 0.15s ease-in-out,
            transform 0.1s ease-in-out;
}

.qr-nav:hover,
.qr-nav:focus {
    background: transparent !important;
    color: #b9f2c9 !important;
    text-decoration: underline !important;
}

.navbar .qr-nav.active,
.navbar .qr-nav[aria-current="page"] {
    text-decoration: underline !important;
    color: #ffffff !important;
    font-weight: 600;
}

.dropdown-menu .qr-nav.active,
.dropdown-menu .qr-nav[aria-current="page"] {
    text-decoration: none !important;
    font-weight: 400 !important;
    color: #ffffff !important;
}

.ws-dropdown-toggle.btn-sm {
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
}

.ws-dropdown {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ========== Универсальные SEO-ссылки ========== */

.nav-seo-link {
    color: #ffffff !important;
    font-weight: 400;
    padding: 2px 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.01em;
    transition:
            color 0.15s ease-in-out,
            text-decoration 0.15s ease-in-out,
            transform 0.15s ease-in-out;
}

.nav-seo-link:hover,
.nav-seo-link:focus {
    color: #b9f2c9 !important;
    text-decoration: underline;
    transform: translateX(1px);
}