@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

/* =====================
   Reset + base
===================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    color: #111;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================
   Layout
===================== */

.bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 980px;
    padding: 16px;
    margin: 0 auto;
    flex: 1;
}

.pagehead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin: 12px 0 20px;
}

.center {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    padding: 16px;
    font-size: 13px;
    color: #777;
}

/* =====================
   Topbar
===================== */

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e5ea;
}

.topbar__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.brand__dot {
    width: 10px;
    height: 10px;
    background: #0071e3;
    border-radius: 50%;
}

.admincount {
    font-size: 13px;
    font-weight: 600;
    color: #b00020;
    margin-left: 8px;
}

.admincount__value {
    font-variant-numeric: tabular-nums;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.tab {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab--active {
    background: #e8f0fe;
    color: #1a4fd8;
}

.tab__icon {
    width: 18px;
    height: 18px;
}

.userbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.userbox__name {
    font-size: 14px;
    color: #333;
}

/* =====================
   Typography
===================== */

.h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.sub {
    color: #666;
    font-size: 14px;
}

.muted {
    color: #777;
}

.small {
    font-size: 13px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.attemptmeta {
    font-size: 14px;
}

.attemptmeta .mono {
    font-size: inherit;
}

/* =====================
   Cards
===================== */

.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
    margin-bottom: 16px;
}

.card--click {
    transition: transform .15s ease, box-shadow .15s ease;
}

.card--click:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.card--login {
    width: 100%;
    max-width: 420px;
    padding: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid #ecedf5;
    box-shadow: 0 16px 36px rgba(0,0,0,.08);
}

/* =====================
   Admin
===================== */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7fb 100%);
    border: 1px solid #eef0f6;
}

.admin-panel__title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.admin-panel__sub {
    font-size: 13px;
    color: #6b6b70;
}

.admin-stats {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.admin-stat {
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ececf2;
}

.admin-stat__label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-stat__value {
    font-size: 18px;
    font-weight: 600;
}

.admin-alert--ok {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #cde9d7;
}

.admin-alert {
    margin-bottom: 12px;
}

.admin-answers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-answer {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eef0f6;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.admin-answer__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-answer__user {
    font-weight: 600;
}

.admin-answer__time {
    font-size: 12px;
    color: #777;
}

.admin-answer__question {
    font-size: 15px;
    margin-bottom: 12px;
}

.admin-answer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-answer__block {
    background: #f7f7fb;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #ececf2;
}

.admin-answer__label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.card__head {
    margin-bottom: 16px;
}

/* =====================
   Buttons
===================== */

.btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: #0071e3;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,113,227,.2);
}

.btn--ghost {
    background: #f0f0f5;
    color: #333;
}

.btn--block {
    width: 100%;
    justify-content: center;
}

.btn--equal {
    width: 200px;
    max-width: 100%;
    min-width: 190px;
    justify-content: center;
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.btn__text {
    white-space: nowrap;
}

/* =====================
   Inputs
===================== */

.input, .select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    font-size: 14px;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input:focus,
.select:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,.15);
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 34px;
}

.select--match {
    border-radius: 14px;
    font-weight: 500;
    color: #1c1c1f;
    background-color: #fff;
    border: 1px solid #d8dbe8;
    box-shadow: 0 6px 14px rgba(34, 52, 90, 0.08);
}

.label {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert--error {
    background: #ffecec;
    color: #a50e0e;
    border: 1px solid #f5c2c0;
}

.hint {
    background: #f0f6ff;
    border-radius: 12px;
    border: 1px solid #d6e6ff;
    padding: 12px;
}

.hint__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1a4fd8;
    margin-bottom: 6px;
}

.hint__text {
    font-size: 14px;
    color: #2c2f36;
}

/* =====================
   Quiz
===================== */

.qgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.quizwrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qcard {
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eef0f6;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.qcard__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.qnum {
    font-weight: 600;
}

.qtext {
    margin-bottom: 14px;
    font-size: 15px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opt {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    background: #f7f7fb;
    border-radius: 12px;
    border: 1px solid transparent;
}

.opt__input {
    margin-top: 4px;
}

.opt__text {
    font-size: 14px;
}

.quizactions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =====================
   Matching
===================== */

.matchrow {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #f7f7fb;
    border: 1px solid #ececf2;
}

.match {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match__cols {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match__title {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.matchrow__left {
    flex: 1;
    font-size: 14px;
}

.matchrow__right {
    width: 220px;
}

/* =====================
   Result / history
===================== */

.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
}

.badge--ok {
    background: #e6f4ea;
    color: #137333;
}

.badge--bad {
    background: #fce8e6;
    color: #a50e0e;
}

.badge--warn {
    background: #fff4e5;
    color: #a05a00;
}

.badge--muted {
    background: #f0f0f5;
    color: #555;
}

.attempt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.attempt__score {
    font-size: 16px;
    font-weight: 500;
}

.chev {
    font-size: 20px;
    color: #aaa;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.attempt__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attempt__top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attempt__pct {
    margin-left: 8px;
    color: #6b6b70;
}

.divider {
    height: 1px;
    background: #ececf2;
    margin: 16px 0;
}

.details {
    background: #f7f7fb;
    border-radius: 14px;
    padding: 12px 14px;
}

.details__summary {
    cursor: pointer;
    font-weight: 500;
}

.errors {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.erroritem {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.erroritem__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.erroritem__q {
    font-size: 14px;
    margin-bottom: 8px;
}

.okbox {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pagehead .h1 {
    margin-bottom: 4px;
}

.resultbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.resultbar__left {
    display: flex;
    gap: 18px;
}

.resultbar__right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kpi__value {
    font-size: 20px;
    font-weight: 600;
}

.kpi__label {
    font-size: 12px;
    color: #777;
}

.crumbs__link {
    color: #5b5b5f;
    font-size: 13px;
}

.attempthead {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.attempthead__kpi {
    display: flex;
    gap: 16px;
}

.attempthead__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qhist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qhist__top {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.qhist__text {
    font-size: 15px;
}

.qhist__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.qhist__block {
    background: #f7f7fb;
    border-radius: 12px;
    padding: 12px;
}

.qhist__label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: #444;
}

.matchcompare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ececf2;
    overflow: hidden;
    gap: 12px;
}

.matchcompare__head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #777;
    padding: 8px 10px;
    background: #f4f5fb;
    border-bottom: 1px solid #ececf2;
}

.matchcompare__head + .matchcompare__head {
    border-left: 1px solid #ececf2;
}

.matchcompare__cell {
    margin-bottom: 6px;
}

.matchcompare__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ececf2;
    overflow: hidden;
}

.matchcompare__item {
    padding: 8px 10px;
    border-bottom: 1px solid #ececf2;
    font-size: 14px;
    color: #2a2c32;
}

.matchcompare__cell:nth-last-child(-n + 2) {
    border-bottom: none;
}

.matchcompare__cell:nth-child(2n) {
    border-left: 1px solid #ececf2;
}

.matchcompare__item:last-child {
    border-bottom: none;
}

/* =====================
   Code / JSON blocks
===================== */

.code {
    background: #f5f5f7;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    overflow-x: auto;
}

/* =====================
   Responsive
===================== */

@media (max-width: 640px) {
    .topbar__inner {
        flex-wrap: wrap;
    }

    .tabs {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 12px;
    }

    .matchrow {
        flex-direction: column;
    }

    .matchrow__right {
        width: 100%;
    }

    .btn--equal {
        width: 100%;
    }

    .matchcompare {
        grid-template-columns: 1fr;
    }
}
.select--warn {
    border-color: #ffb020 !important;
    box-shadow: 0 0 0 3px rgba(255,176,32,.15);
}

.shake {
    animation: stq-shake .18s ease-in-out;
}

@keyframes stq-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}
/* =====================
   Custom Select (Apple-like)
===================== */

.cselect {
    position: relative;
    width: 100%;
}

.cselect__native {
    /* оставляем в DOM для формы, но визуально прячем */
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.cselect__btn {
    width: 100%;
    padding: 10px 34px 10px 12px;
    border-radius: 14px;
    font-weight: 500;
    color: #1c1c1f;
    background: #fff;
    border: 1px solid #d8dbe8;
    box-shadow: 0 6px 14px rgba(34, 52, 90, 0.08);
    font-size: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cselect__btn:hover {
    transform: translateY(-1px);
}

.cselect__btn:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,.15), 0 6px 14px rgba(34, 52, 90, 0.08);
}

.cselect__btn.is-open {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,.15), 0 12px 28px rgba(0,0,0,.10);
}

.cselect__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cselect__value.is-placeholder {
    color: #8b8b92;
    font-weight: 500;
}

.cselect__chev {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    opacity: .75;
}

.cselect__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;

    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(210,210,215,.8);
    border-radius: 16px;

    box-shadow:
            0 20px 60px rgba(0,0,0,.16),
            0 2px 8px rgba(0,0,0,.06);

    padding: 6px;
    max-height: 280px;
    overflow: auto;

    display: none;
}

.cselect__menu.is-open {
    display: block;
}

.cselect__opt {
    padding: 10px 10px;
    border-radius: 12px;
    font-size: 14px;
    color: #1c1c1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .12s ease, transform .12s ease;
}

.cselect__opt:hover {
    background: rgba(0,113,227,.10);
}

.cselect__opt.is-active {
    background: rgba(0,113,227,.14);
}

.cselect__opt.is-selected {
    background: rgba(0,0,0,.04);
}

.cselect__check {
    margin-left: auto;
    width: 18px;
    height: 18px;
    opacity: 0;
}

.cselect__opt.is-selected .cselect__check {
    opacity: 1;
}

/* предупреждение/ошибка — под твою логику */
.cselect.is-warn .cselect__btn {
    border-color: #ffb020 !important;
    box-shadow: 0 0 0 3px rgba(255,176,32,.15), 0 6px 14px rgba(34, 52, 90, 0.08);
}

/* на мобилках можно сделать меню чуть ниже/крупнее — опционально */
@media (max-width: 640px) {
    .cselect__menu {
        max-height: 240px;
    }
}

/* =====================
   Unified Action Buttons (New test / Retry)
===================== */

.btn {
    /* на всякий: фиксируем базовую высоту у всех */
    line-height: 1;
}

button.btn {
    /* убираем браузерные дефолты кнопки */
    appearance: none;
    -webkit-appearance: none;
    background: none; /* цвет даст модификатор btn--primary/btn--ghost */
    font: inherit;
    color: inherit;
    border: none; /* рамку даёт модификатор, если нужно */
}

.btn--equal {
    /* жёстко одинаковые */
    width: 220px;        /* выбери значение которое нравится */
    min-width: 220px;
    height: 44px;        /* Apple-like */
    padding: 0 14px;     /* чтобы обе были одинаковые */
    justify-content: center;
    align-items: center;
}

/* Иконка: единый квадрат-контейнер + центр */
.btn__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
}

/* ВАЖНО: часто “разный размер” из-за того, что SVG внутри прозрачный.
   Поэтому делаем обёртку (см. HTML ниже) либо компенсируем так: */
.btn__iconwrap {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* если вдруг где-то попадает svg вместо img */
.btn__iconwrap svg {
    width: 18px;
    height: 18px;
    display: block;
}
/* =====================
   Icon system (mask) — одинаковый визуальный размер
===================== */

.ico {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.ico--refresh {
    -webkit-mask-image: url("/static/icons/refresh.svg");
    mask-image: url("/static/icons/refresh.svg");
}

.ico--retry {
    -webkit-mask-image: url("/static/icons/retry.svg");
    mask-image: url("/static/icons/retry.svg");
}

/* =====================
   Unified action buttons
===================== */

.btn {
    line-height: 1;
    align-items: center;
}

button.btn {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

/* одинаковые размеры */
.btn--equal {
    height: 44px;
    padding: 0 16px;
    min-width: 220px;
    width: 220px;
    justify-content: center;
}

/* чтобы <form> не ломал ширину/вёрстку */
.attempthead__actions form {
    margin: 0;
}

/* иногда form ведёт себя как block и добавляет странные переносы —
   фикс: заставляем его быть “как будто его нет” */
.attempthead__actions form {
    display: contents;
}

/* мобилка: кнопки всегда 100% и ровно */
@media (max-width: 640px) {
    .attempthead__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn--equal {
        width: 100%;
        min-width: 0;
    }
}
/* =====================
   Mobile header drawer
===================== */

.burger {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #2c2f36;
    border-radius: 2px;
    opacity: .9;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.drawer.is-open {
    pointer-events: auto;
}

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
    opacity: 0;
    transition: opacity .18s ease;
}

.drawer.is-open .drawer__backdrop {
    opacity: 1;
}

.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 92vw);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 1px solid rgba(210,210,215,.8);
    box-shadow: -20px 0 60px rgba(0,0,0,.20);

    transform: translateX(100%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
}

.drawer.is-open .drawer__panel {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(210,210,215,.8);
}

.drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(210,210,215,.9);
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.drawer__content {
    padding: 14px;
    display: grid;
    gap: 14px;
}

.drawer__section {
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.drawer__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #777;
    margin-bottom: 10px;
}

.drawer__tabs {
    display: grid;
    gap: 8px;
}

/* =====================
   Topbar responsive behavior
===================== */

@media (max-width: 640px) {
    .topbar__inner {
        flex-wrap: nowrap;  /* НЕ даём ломаться в 2-3 строки */
        gap: 10px;
    }

    .tabs,
    .userbox {
        display: none;      /* прячем и уводим в drawer */
    }

    .burger {
        display: inline-flex;
    }
}
