﻿:root {
    --ink: #183449;
    --muted: #697783;
    --blue: #0067b9;
    --red: #ed0016;
    --line: #d7dce0;
    --paper: #f4f6f7;
    --navy: #003768;
}

.notification.closeable {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease;
}

.notification.closeable.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.participants-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.participants-page-head h4 {
    margin: 0;
}

.participants-page-lead {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.participants-total {
    color: var(--muted);
    font-size: 12px;
}

.participants-total strong {
    color: var(--blue);
    font-size: 24px;
}

.participants-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.participant-export {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.participants-import {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #cfe2ee;
    border-radius: 10px;
    background: #f5fafe;
}

.participants-import strong,
.participants-import span {
    display: block;
}

.participants-import strong {
    color: var(--ink);
    font-size: 13px;
}

.participants-import span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.participants-file {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 175px;
    padding: 9px 11px;
    border: 1px dashed #9fc4d9;
    border-radius: 6px;
    color: var(--blue);
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.participants-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.participants-import-errors {
    margin: -8px 0 18px;
    padding: 10px 14px;
    border: 1px solid #f2c9ce;
    border-radius: 7px;
    color: #9a2634;
    background: #fff7f7;
    font-size: 11px;
}

.participants-filter {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.participants-filter-field {
    display: grid;
    gap: 6px;
    min-width: 230px;
}

.participants-filter-search {
    flex: 1;
}

.participants-filter label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.participants-search-control {
    position: relative;
}

.participants-search-control i {
    position: absolute;
    top: 50%;
    left: 11px;
    color: var(--muted);
    transform: translateY(-50%);
}

.participants-filter input,
.participants-filter select {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.participants-filter input {
    padding-left: 32px;
}

.participants-filter-submit {
    height: 38px;
    white-space: nowrap;
}

.participants-filter-reset {
    padding-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.participants-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.participants-list-head,
.participant-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) minmax(180px, 1.2fr) 100px minmax(180px, 1fr) 100px;
    align-items: center;
    gap: 16px;
}

.participants-list-head {
    padding: 11px 16px;
    color: var(--muted);
    background: #f7fafc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.participant-row {
    min-height: 72px;
    padding: 12px 16px;
    border-top: 1px solid #edf2f4;
    font-size: 12px;
}

.participant-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.participant-avatar {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.participant-identity h2,
.participant-place strong,
.participant-attempts strong {
    display: block;
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-identity a,
.participant-place span,
.participant-attempts span,
.participant-progress-line span {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-identity a {
    text-decoration: none;
}

.participant-attempts strong {
    font-size: 16px;
}

.participant-progress-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.participant-progress-line strong {
    color: #32795b;
    font-size: 14px;
}

.participant-progress-track {
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 5px;
    background: #e7eef2;
}

.participant-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #3b9872;
}

.participant-created {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.participants-empty {
    padding: 55px 20px;
    border: 1px dashed #b9c7d0;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.participants-empty i {
    color: var(--blue);
    font-size: 32px;
}

.participants-empty h2 {
    margin: 12px 0 6px;
    color: var(--ink);
    font-size: 19px;
}

.participants-empty p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.participants-empty a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.topics-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.topics-page-head h4 {
    margin: 0;
}

.topics-page-lead {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.topics-filter {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.topics-filter-field {
    display: grid;
    gap: 6px;
    min-width: 230px;
}

.topics-filter-search {
    flex: 1;
}

.topics-filter label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.topics-search-control {
    position: relative;
}

.topics-search-control i {
    position: absolute;
    top: 50%;
    left: 11px;
    color: var(--muted);
    transform: translateY(-50%);
}

.topics-filter input,
.topics-filter select {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.topics-filter input {
    padding-left: 32px;
}

.topics-filter-submit {
    height: 38px;
    white-space: nowrap;
}

.topics-filter-reset {
    padding-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.topics-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.topics-list-head,
.topic-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.5fr) minmax(180px, 1.2fr) 150px 110px 100px;
    align-items: center;
    gap: 16px;
}

.topics-list-head {
    padding: 11px 16px;
    color: var(--muted);
    background: #f7fafc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.topic-row {
    min-height: 72px;
    padding: 12px 16px;
    border-top: 1px solid #edf2f4;
    font-size: 12px;
}

.topic-row-title,
.topic-row-test {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.topic-card-icon {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: var(--blue);
    background: #e9f3f9;
}

.topic-row h2 {
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-row p {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-row-test {
    color: var(--blue);
    text-decoration: none;
}

.topic-row-test span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-row-questions strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
}

.topic-row-questions span {
    color: var(--muted);
    font-size: 10px;
}

.topic-status {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.topic-status.is-active {
    color: #32795b;
}

.topic-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.topic-row-actions a,
.topic-row-actions button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--muted);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.topic-row-actions a:hover,
.topic-row-actions button:hover {
    color: var(--blue);
    background: #eef6fb;
}

.topic-row-actions form {
    margin: 0;
}

.topics-empty {
    padding: 55px 20px;
    border: 1px dashed #b9c7d0;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.topics-empty i {
    color: var(--blue);
    font-size: 32px;
}

.topics-empty h2 {
    margin: 12px 0 6px;
    color: var(--ink);
    font-size: 19px;
}

.topics-empty p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.topics-empty a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.events-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.events-page-head .kicker {
    margin-bottom: 8px;
}

.events-page-lead {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.event-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 52, 73, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(24, 52, 73, .12);
}

.event-card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #e7f1f7;
}

.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--blue);
    background: linear-gradient(135deg, #e7f1f7, #f5f8fa);
    font-size: 11px;
}

.event-card-placeholder i {
    font-size: 32px;
}

.event-card-date {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 55, 104, .9);
    font-size: 10px;
    font-weight: 700;
}

.event-card-date i {
    color: #9ed4f5;
    font-size: 9px;
}

.event-card-body {
    padding: 20px;
}

.event-card-body h2 {
    margin: 0;
    color: var(--ink);
    font: 600 20px/1.2 'Space Grotesk', sans-serif;
}

.event-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 11px 0 17px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.event-card-details {
    display: grid;
    gap: 9px;
    padding-top: 15px;
    border-top: 1px solid #edf2f4;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink);
    font-size: 11px;
    line-height: 1.4;
}

.event-detail i {
    width: 14px;
    margin-top: 2px;
    color: var(--red);
    text-align: center;
}

.event-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf2f4;
}

.event-card-actions form {
    margin: 0;
}

.event-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.event-action-edit {
    color: var(--blue);
    border-color: #cfe2ee;
    background: #f3f8fb;
}

.event-action-edit:hover {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}

.event-action-delete {
    color: var(--red);
    border-color: #f2c9ce;
    background: #fff7f7;
}

.event-action-delete:hover {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
}

.events-empty {
    padding: 64px 20px;
    border: 1px dashed #b9c7d0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.events-empty-icon {
    margin-bottom: 15px;
    color: var(--blue);
    font-size: 40px;
}

.events-empty h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font: 600 21px 'Space Grotesk', sans-serif;
}

.events-empty p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .topics-page-head,
    .topics-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .topics-filter-field {
        min-width: 0;
    }

    .topics-filter-submit {
        width: 100%;
    }

    .topics-list {
        border: 0;
        background: transparent;
    }

    .topics-list-head {
        display: none;
    }

    .topic-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .topic-row-test,
    .topic-row-questions {
        grid-column: 1 / -1;
    }

    .topic-status {
        justify-self: end;
    }

    .topic-row-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        border-top: 1px solid #edf2f4;
        padding-top: 8px;
    }
}

@media (min-width: 651px) and (max-width: 1050px) {

    .topics-list-head,
    .topic-row {
        grid-template-columns: minmax(190px, 1.4fr) minmax(150px, 1fr) 110px 90px 90px;
        gap: 10px;
    }
}

@media (max-width: 650px) {
    .events-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .events-page-head .btn {
        align-self: flex-start;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* РџСЂРѕС„РёР»СЊ РїРѕР»СЊР·РѕРІР°С‚РµР»СЏ */
.profile-page {
    min-height: 100vh;
    background: rgba(244, 246, 247, .88);
}

.profile-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 65px;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.profile-header .brand {
    color: var(--ink);
}

.profile-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 12px;
}

.profile-nav a:last-child {
    color: var(--muted);
}

.profile-title {
    margin-bottom: 22px;
}

.profile-title .kicker {
    margin-bottom: 9px;
}

.profile-title h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
}

.profile-section {
    display: grid;
    gap: 24px;
}

.profile-toolbar {
    margin-bottom: 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-card,
.details-card,
.tests-card,
.results-panel {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.profile-card {
    padding: 28px 22px;
    text-align: center;
}

.profile-card--sidebar {
    position: relative;
    overflow: hidden;
    padding: 28px 22px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 255, 0.96));
}

.profile-card--sidebar::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(59, 130, 246, 0.22));
}

.profile-avatar {
    position: relative;
    z-index: 1;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #2563eb 52%, #60a5fa);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
    font: 700 28px 'Space Grotesk', sans-serif;
}

.profile-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.2;
}

.profile-role {
    position: relative;
    z-index: 1;
    margin: 8px 0 18px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-badges {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.badge-primary {
    color: #0f4c81;
    background: rgba(59, 130, 246, 0.12);
}

.badge-ghost {
    color: #475569;
    background: rgba(148, 163, 184, 0.14);
}

.profile-card--sidebar p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.profile-actions {
    position: relative;
    z-index: 1;
    margin: 18px 0 12px;
}

.profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
    font-size: 12px;
    font-weight: 700;
}

.profile-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
}

.details-card {
    padding: 24px 26px 18px;
}

.details-head,
.tests-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.details-head h2,
.tests-head h2 {
    margin: 0;
    font-size: 22px;
    color: var(--ink);
}

.details-head span,
.tests-head span {
    color: var(--muted);
    font-size: 11px;
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.profile-field {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
}

.profile-field label {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-field p {
    min-height: 18px;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.55;
}

.profile-field.full {
    grid-column: 1 / -1;
}

.tests-card {
    grid-column: 1 / -1;
    padding: 0 0 10px;
}

.tests-head {
    margin-bottom: 18px;
}

.tests-head .kicker {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: .12em;
}

.tests-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 2vw, 36px);
    line-height: 1.25;
}

.tests-list {
    display: grid;
    gap: 18px;
}

.test-record {
    display: block;
    min-height: 170px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.02);
}

.test-record-main {
    width: 100%;
}

.test-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.16);
    color: #3b82f6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.test-record-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.test-record-copy {
    flex: 1;
    min-width: 0;
}

.test-record-copy h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(28px, 2.5vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.test-record-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.test-record-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

.test-duration {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d9bf0);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.profile-button:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.empty-tests {
    margin: 0;
    padding: 24px 18px 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .test-record-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .test-record-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .tests-card {
        padding: 0;
    }

    .test-record {
        min-height: auto;
        padding: 16px;
    }

    .test-record-copy h3 {
        font-size: 24px;
    }

    .test-record-meta {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .profile-button {
        width: 100%;
    }
}

.profile-results-section {
    display: grid;
    gap: 24px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.summary-stat {
    padding: 22px 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.9));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.summary-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.summary-stat strong {
    color: var(--ink);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1;
}

.results-panel {
    padding: 24px 26px 18px;
}

.results-list {
    display: grid;
    gap: 16px;
}

.result-item {
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.95));
}

.result-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.result-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.result-item h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
}

.result-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #0f172a;
}

.result-score strong {
    font-size: 28px;
    line-height: 1;
}

.result-score span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.result-badge.good {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.result-badge.medium {
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
}

.result-badge.low {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.12);
}

.result-progress {
    overflow: hidden;
    height: 10px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.result-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.empty-results {
    padding: 32px 18px 12px;
    text-align: center;
}

.empty-results-icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 30px;
}

.empty-results h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 26px;
}

.empty-results p {
    max-width: 500px;
    margin: 0 auto 20px;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .tests-card {
        grid-column: auto;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .profile-fields {
        grid-template-columns: 1fr;
    }

    .profile-field.full {
        grid-column: auto;
    }

    .result-item-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .test-record {
        grid-template-columns: 1fr auto;
        gap: 8px 15px;
    }

    .test-record .profile-button {
        grid-column: 1 / -1;
    }

    .details-card,
    .tests-card {
        padding: 20px 16px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);

    /*font-family: Manrope, sans-serif;*/
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--paper) url('/images/background.png') center/contain fixed;
    opacity: .1;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

/* РЎС‚СЂР°РЅРёС†Р° РІС…РѕРґР° */
.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(52%, 1fr) minmax(430px, 48%);
}

.visual {
    position: relative;
    min-height: 100vh;
    padding: 42px 6vw 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, rgba(0, 55, 104, .94), rgba(0, 103, 185, .64)), url('/images/background.png') center/cover;
}

.visual::after {
    content: '';
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .08), 0 0 0 68px rgba(255, 255, 255, .06);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -.03em;
}

.visual .brand,
.visual-content,
.visual-footer {
    position: relative;
    z-index: 1;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border-radius: 11px;
    font-size: 19px;
}

.brand-mark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brand span {
    max-width: 220px;
    font-size: 14px;
    line-height: 1.15;
}

.visual-content {
    max-width: 610px;
    margin-bottom: 4vh;
}

.vertical-logo {
    width: min(180px, 34vw);
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
    opacity: .96;
}

.eyebrow,
.auth-kicker,
.kicker {
    margin: 0 0 18px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffe3e5;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--red);
}

.visual h1 {
    max-width: 620px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: .98;
}

.visual-copy {
    max-width: 450px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.65;
}

.visual-footer {
    display: flex;
    gap: 28px;
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
}

.visual-footer strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font: 18px 'Space Grotesk', sans-serif;
}

.auth {
    display: flex;
    align-items: center;
    padding: 52px clamp(36px, 7vw, 104px);
    background: #fff;
}

.auth-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-kicker {
    margin-bottom: 12px;
}

.auth h2 {
    font-size: clamp(31px, 3vw, 43px);
    line-height: 1.03;
}

.auth-intro {
    margin: 15px 0 34px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.field {
    position: relative;
    margin-bottom: 18px;
}

.field label,
.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #435766;
    font-size: 12px;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    color: var(--ink);
    background: #fbfdfe;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.form-field input:focus,
.form-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 103, 185, .11);
}

.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 5px 0 27px;
    color: var(--muted);
    font-size: 12px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.check input {
    accent-color: var(--red);
}

.auth button {
    width: 100%;
    height: 55px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--red);
    font: 700 14px Manrope, sans-serif;
    box-shadow: 0 9px 18px rgba(237, 0, 22, .18);
    transition: transform .2s, background .2s;
}

.auth button:hover {
    background: #c90013;
    transform: translateY(-2px);
}

.register {
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.notice {
    min-height: 20px;
    margin-top: 14px;
    color: var(--red);
    font-size: 12px;
    text-align: center;
}

/* РђРґРјРёРЅРёСЃС‚СЂР°С‚РёРІРЅР°СЏ РїР°РЅРµР»СЊ */
.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 258px 1fr;
}

.sidebar {
    padding: 28px 18px;
    color: #fff;
    background: linear-gradient(165deg, rgba(0, 55, 104, .98), rgba(0, 103, 185, .9)), url('/images/background.png') center/cover;
    display: flex;
    flex-direction: column;
}

.sidebar .brand {
    gap: 11px;
    padding: 0 12px 38px;
    font-size: 14px;
    line-height: 1.15;
}

.side-label {
    padding: 0 12px 12px;
    color: #a8c2d4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.menu {
    display: grid;
    gap: 5px;
}

.menu .nav-link {
    width: 100%;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: #c3d5e0;
    background: transparent;
    text-align: left;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.menu .nav-link:hover,
.menu .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.menu .nav-link.active {
    box-shadow: inset 3px 0 var(--red);
}

.menu .nav-link i {
    width: 20px;
    color: #a8d0ea;
    text-align: center;
    font-size: 17px;
}

.account {
    margin-top: auto;
    padding: 16px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: #c3d5e0;
    font-size: 11px;
}

.account strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 13px;
}

.main {
    padding: 35px clamp(24px, 5vw, 74px);
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.kicker {
    margin-bottom: 8px;
}

.main h1 {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.5em;
}

.main h2 {
    font-size: 22px;
}

.topbar p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    font-weight: 800;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.stat,
.panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.stat {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.stat::after {
    position: absolute;
    right: -22px;
    bottom: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: currentColor;
    content: '';
    opacity: .08;
}

.stat-blue {
    color: var(--blue);
}

.stat-red {
    color: var(--red);
}

.stat-green {
    color: #3b9872;
}

.stat-dark {
    color: var(--navy);
}

.stat .stat-label,
.stat strong,
.stat small {
    position: relative;
    z-index: 1;
}

.stat strong {
    color: var(--ink);
}

.stat small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
}

.stat strong {
    display: block;
    margin-top: 10px;
    font: 700 30px 'Space Grotesk', sans-serif;
}

.stat small {
    color: #3b9872;
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
    gap: 18px;
}

.panel-head {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.panel-head span {
    color: var(--muted);
    font-size: 12px;
}

.primary,
.secondary {
    border: 0;
    border-radius: 7px;
    padding: 10px 14px;
    color: #fff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.primary:hover {
    background: #005494;
}

.secondary {
    color: var(--blue);
    background: #e5f0f7;
}

.primary,
.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
}

.protocol-panel {
    margin-top: 18px;
    overflow: hidden;
}

.protocol-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.protocol-toolbar h2 {
    margin: 0;
}

.protocol-caption {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.protocol-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.protocol-select {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: #f7fafc;
    border-bottom: 1px solid var(--line);
}

.protocol-select label {
    color: var(--muted);
    font-size: 12px;
}

.protocol-select select {
    min-width: 260px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.protocol-table th,
.protocol-table td {
    padding-top: 13px;
    padding-bottom: 13px;
}

.protocol-place {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: #e9f3f9;
}

.protocol-score {
    color: #32795b;
    font-weight: 800;
}

.protocol-page {
    min-width: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th,
td {
    padding: 16px 22px;
    border-bottom: 1px solid #edf2f4;
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

td strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
}

td span {
    color: var(--muted);
}

.status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    color: #32795b;
    background: #e8f5ed;
    font-size: 12px;
    font-weight: 700;
}

.status.soon {
    color: #a35b32;
    background: #fff0e8;
}

.activity {
    padding: 5px 22px 20px;
}

.empty-state {
    padding: 34px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state i {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 25px;
}

.empty-state p {
    margin: 0 0 8px;
}

.empty-state a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.empty-state-compact {
    padding: 34px 8px;
    font-size: 12px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f4;
    font-size: 12px;
}

.activity-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--red);
}

.activity-item p {
    margin: 0 0 4px;
    line-height: 1.45;
}

.activity-item time {
    color: var(--muted);
    font-size: 12px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.form-panel {
    max-width: 650px;
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}

.form-field label {
    margin-bottom: 7px;
    font-size: 11px;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fbfdfe;
    color: var(--ink);
    font-size: 12px;
}

.form-field input:focus,
.form-field select:focus {
    box-shadow: 0 0 0 3px rgba(0, 103, 185, .1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 210px 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quiz-page {
    min-height: 100vh;
    /*background: rgba(244, 246, 247, .82);*/
}

.quiz-header {
    padding: 20px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.quiz-header .brand {
    color: var(--ink);
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
}

.progress-track {
    width: min(260px, 25vw);
    height: 7px;
    overflow: hidden;
    border-radius: 8px;
    background: #e3e9ed;
}

.progress-value {
    width: 7%;
    height: 100%;
    border-radius: inherit;
    background: var(--red);
    transition: width .25s ease;
}

.quiz-shell {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0 70px;
}

.quiz-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 25px;
}

.quiz-heading h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
}

.quiz-heading p {
    max-width: 430px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.timer {
    min-width: 130px;
    padding: 13px 16px;
    border: 1px solid #f2c6ca;
    border-radius: 8px;
    color: var(--red);
    background: #fff;
    text-align: center;
}

.timer-label {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.timer strong {
    font: 700 24px 'Space Grotesk', sans-serif;
}

.timer.warning {
    animation: timer-pulse 1s infinite alternate;
}

@keyframes timer-pulse {
    to {
        background: #fff0f1;
        transform: translateY(-2px);
    }
}

.quiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
    align-items: start;
}

.quiz-layout.locked {
    opacity: .01;
    pointer-events: none;
    user-select: none;
}

.quiz-start {
    margin: 25px auto;
    padding: 34px;
    border: 1px solid #c8ddea;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.quiz-start h2 {
    margin-bottom: 10px;
    font-size: 27px;
}

.quiz-start p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.start-button {
    min-width: 170px;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--red);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(237, 0, 22, .16);
}

.start-button:hover {
    background: #c90013;
    transform: translateY(-2px);
}

.quiz-start.hidden {
    display: none;
}

.question-card,
.question-nav,
.result-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.question-card {
    padding: clamp(22px, 4vw, 38px);
}

.question-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.question-card h2 {
    margin-bottom: 25px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.answers {
    display: grid;
    gap: 11px;
}

.answer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink);
    background: #fbfdfe;
    font-size: 13px;
    transition: border-color .2s, background .2s;
}

.answer:hover {
    border-color: var(--blue);
    background: #f1f8fc;
}

.answer input {
    position: absolute;
    opacity: 0;
}

.answer-mark {
    width: 27px;
    height: 27px;
    display: grid;
    flex: 0 0 27px;
    place-items: center;
    border: 1px solid #becbd3;
    border-radius: 50%;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.answer:has(input:checked) {
    border-color: var(--blue);
    background: #edf7fd;
    box-shadow: 0 0 0 3px rgba(0, 103, 185, .08);
}

.answer:has(input:checked) .answer-mark {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}

.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #edf2f4;
}

.quiz-btn {
    min-height: 43px;
    padding: 0 17px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.quiz-btn:hover {
    background: #005494;
}

.quiz-btn.ghost {
    color: var(--blue);
    background: #e7f1f7;
}

.question-nav {
    padding: 20px;
}

.question-nav h3 {
    margin: 0 0 6px;
    font: 700 17px 'Space Grotesk', sans-serif;
}

.question-nav p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.question-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.question-number {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: #fbfdfe;
    font-size: 11px;
    font-weight: 700;
}

.question-number:hover,
.question-number.current {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.question-number.answered {
    color: var(--blue);
    border-color: #abd1e6;
    background: #eaf5fb;
}

.question-number.current.answered {
    color: #fff;
    background: var(--blue);
}

.legend {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 10px;
}

.legend span {
    display: flex;
    gap: 7px;
    align-items: center;
}

.legend i {
    width: 9px;
    height: 9px;
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fbfdfe;
}

.legend .done {
    border-color: #abd1e6;
    background: #eaf5fb;
}

.result {
    display: none;
}

.result.visible {
    display: block;
}

.result-card {
    max-width: 680px;
    margin: 25px auto 0;
    padding: 42px;
    text-align: center;
}

.result-mark {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 27px;
}

.result-card h2 {
    font-size: 32px;
}

.result-card p {
    color: var(--muted);
    font-size: 13px;
}

.result-score {
    margin: 22px 0;
    color: var(--blue);
    font: 700 50px 'Space Grotesk', sans-serif;
}

.result-score small {
    color: var(--muted);
    font: 500 13px Manrope, sans-serif;
}

.result-card .quiz-btn {
    width: auto;
}

@media (max-width: 720px) {
    .quiz-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .quiz-progress {
        width: 100%;
    }

    .progress-track {
        flex: 1;
        width: auto;
    }

    .quiz-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .question-nav {
        order: -1;
    }

    .question-list {
        grid-template-columns: repeat(15, 1fr);
    }

    .legend {
        display: none;
    }
}

@media (max-width: 480px) {
    .quiz-shell {
        width: calc(100% - 24px);
        padding-top: 28px;
    }

    .quiz-header {
        padding: 16px 12px;
    }

    .question-list {
        grid-template-columns: repeat(8, 1fr);
    }

    .question-card {
        padding: 20px 16px;
    }

    .question-actions {
        flex-wrap: wrap;
    }

    .question-actions .quiz-btn {
        flex: 1;
    }

    .result-card {
        padding: 30px 18px;
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .page {
        display: block;
    }

    .visual {
        min-height: 440px;
        padding: 28px 25px 30px;
    }

    .visual-content {
        margin-bottom: 18px;
    }

    .visual-footer {
        display: none;
    }

    .auth {
        min-height: 560px;
        padding: 48px 25px 54px;
    }
}

@media (max-width: 650px) {
    .layout {
        display: block;
    }

    .sidebar {
        padding: 16px;
    }

    .sidebar .brand {
        padding-bottom: 18px;
    }

    .side-label,
    .account,
    .profile {
        display: none;
    }

    .menu {
        grid-template-columns: repeat(4, 1fr);
    }

    .menu .nav-link {
        justify-content: center;
        padding: 9px 5px;
        font-size: 12px;
    }

    .menu .nav-link i {
        width: auto;
        font-size: 15px;
    }

    .main {
        padding: 26px 16px;
    }

    .topbar {
        margin-bottom: 24px;
    }

    .stats {
        gap: 8px;
    }

    .stat {
        padding: 14px;
    }

    .stat strong {
        font-size: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .protocol-toolbar,
    .protocol-select {
        align-items: stretch;
        flex-direction: column;
    }

    .protocol-select select {
        min-width: 0;
        width: 100%;
    }

    .protocol-actions {
        width: 100%;
    }

    .protocol-actions a {
        flex: 1;
    }

    .participants-page-head,
    .participants-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .participants-total {
        align-self: flex-start;
    }

    .participants-head-actions,
    .participants-import {
        align-items: stretch;
        flex-direction: column;
    }

    .participants-head-actions {
        align-items: flex-start;
    }

    .participants-import .participants-file,
    .participants-import button {
        width: 100%;
        justify-content: center;
    }

    .participants-filter-field {
        min-width: 0;
    }

    .participants-filter-submit {
        width: 100%;
    }

    .participants-list {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .participants-list-head {
        display: none;
    }

    .participant-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .participant-place,
    .participant-progress,
    .participant-created {
        grid-column: 1 / -1;
    }

    .participant-created {
        padding-top: 8px;
        border-top: 1px solid #edf2f4;
    }
}

@media (max-width: 440px) {
    .form-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Р РµР·СѓР»СЊС‚Р°С‚С‹ С‚РµСЃС‚РёСЂРѕРІР°РЅРёСЏ */
.result-page {
    min-height: 100vh;
    background: rgba(244, 246, 247, .88);
}

.result-shell {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 45px 0 70px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.result-header .brand {
    color: var(--ink);
}

.result-header a {
    font-size: 12px;
}

.summary-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border: 1px solid #c8ddea;
    border-radius: 10px;
    background: #fff;
}

.summary-score {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    margin: auto;
    border: 10px solid #d9edf8;
    border-top-color: var(--blue);
    border-right-color: var(--red);
    border-radius: 50%;
    color: var(--blue);
    font: 700 39px 'Space Grotesk', sans-serif;
}

.summary-score small {
    color: var(--muted);
    font: 500 11px Manrope, sans-serif;
}

.summary-card h1 {
    margin-bottom: 10px;
    font-size: clamp(27px, 4vw, 40px);
}

.summary-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.result-stats {
    display: flex;
    gap: 30px;
    margin-top: 22px;
}

.result-stat strong {
    display: block;
    color: var(--ink);
    font: 700 25px 'Space Grotesk', sans-serif;
}

.result-stat span {
    color: var(--muted);
    font-size: 11px;
}

.review {
    margin-top: 25px;
}

.review h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.review-list {
    display: grid;
    gap: 10px;
}

.review-item {
    padding: 18px 20px;
    border-left: 4px solid #3b9872;
    border-radius: 8px;
    background: #fff;
}

.review-item.incorrect {
    border-left-color: var(--red);
}

.review-item-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.review-item h3 {
    margin: 9px 0 12px;
    font: 600 15px/1.35 'Space Grotesk', sans-serif;
}

.review-answer {
    display: grid;
    gap: 4px;
    font-size: 12px;
    line-height: 1.45;
}

.review-answer span {
    color: var(--muted);
    font-size: 10px;
}

.review-answer .correct {
    color: #32795b;
    font-weight: 700;
}

.review-answer .wrong {
    color: var(--red);
    font-weight: 700;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.result-actions .quiz-btn {
    text-decoration: none;
}

@media (max-width: 600px) {
    .result-shell {
        width: calc(100% - 24px);
        padding-top: 25px;
    }

    .result-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .summary-card p {
        text-align: left;
    }

    .result-stats {
        justify-content: center;
        gap: 18px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .quiz-btn {
        width: 100%;
    }
}

body {
    font-size: 16px;
}

body p,
body li,
body label,
body input,
body select,
body button,
body a,
body span,
body small,
body td,
body th {
    font-size: 16px !important;
}