.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.4s 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.02) !important;
    border-color: rgba(210, 178, 89, 0.34) !important;
    color: #d2b259 !important;
}

.qr-nav-btn-secondary:hover {
    background: rgba(210, 178, 89, 0.08) !important;
    border-color: rgba(210, 178, 89, 0.52) !important;
    color: #e4c978 !important;
}

.qr-nav-btn-primary {
    background: linear-gradient(180deg, #d7bd70 0%, #b7923c 100%) !important;
    border-color: rgba(228, 201, 120, 0.42) !important;
    color: #12213d !important;
}

.qr-nav-btn-primary:hover {
    background: linear-gradient(180deg, #e0c87c 0%, #c29c46 100%) !important;
    border-color: rgba(236, 212, 140, 0.52) !important;
    color: #0f1b33 !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: #f5d76e !important;
}

.navbar .navbar-link.active {
    color: #f5d76e !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, #d4af37, #f5d76e);
    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(210, 178, 89, 0.12);
    }

    .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;   /* 68 / 1.5 */
        height: 40px !important;  /* 60 / 1.5 */
        padding: 0 !important;
    }

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

/* ========== NAVBAR: QR Code Lab ========== */

/* Базовый стиль всех ссылок navbar (верхний и dropdown) */
.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;
}

/* Hover — underline для ЛЮБЫХ qr-nav элементов */
.qr-nav:hover,
.qr-nav:focus {
    background: transparent !important;
    color: #dfefff !important;
    text-decoration: underline !important;
}

/* Активная ссылка в верхнем navbar */
.navbar .qr-nav.active,
.navbar .qr-nav[aria-current="page"] {
    text-decoration: underline !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Активная ссылка ВНУТРИ dropdown — без underline */
.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-ссылки (контент) ========== */
/* В ТЕКСТЕ: тёмно-синие, в navbar перекрываются через .qr-nav выше */

.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: #ffffff !important;           /* затемнённый вариант #002739 */
    text-decoration: underline;
    transform: translateX(1px);
}