* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #eef2ff;
    color: #1c1c28;
    min-height: 100vh;
}

.test-header__timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #555770;
    background: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.test-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 32px 16px;
}

.test-progress__bar {
    flex: 1;
    height: 8px;
    background: #d6e0ff;
    border-radius: 999px;
    overflow: hidden;
}

.test-progress__fill {
    width: 2.5%;
    height: 100%;
    background: linear-gradient(90deg, #2b5fed, #4b7dff);
    border-radius: inherit;
    transition: width 0.4s ease;
}

.test-progress__label {
    font-size: 13px;
    font-weight: 600;
    color: #92929d;
    white-space: nowrap;
}

.test-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 32px 32px;
}

.test-layout--benefits-hidden .test-main {
    grid-row: 1;
}

.test-main,
.sidebar-card,
.test-info-card {
    min-width: 0;
}

.test-main {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.test-sidebar {
    display: contents;
}

.test-question-card,
.sidebar-card,
.test-info-card {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.test-question-card {
    padding: 32px;
}

.sidebar-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 20px;
    align-self: start;
    padding: 24px;
}

.test-info-card {
    padding: 24px;
    border: 1px solid #dfe7fb;
}

.question-header {
    margin-bottom: 12px;
}

.question-number {
    font-size: 15px;
    font-weight: 700;
    color: #2b5fed;
}

.question-text {
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: #1c1c28;
}

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

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #e2e2ea;
    border-radius: 14px;
    background: #fff;
    color: #1c1c28;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.option-btn:hover {
    border-color: #a8bfff;
    background: #f8faff;
}

.option-btn.selected {
    border-color: #2b5fed;
    background: #eef2ff;
}

.option-btn--locked {
    cursor: default;
}

.option-btn--status-correct {
    border-color: #48b96f;
    background: #eefaf2;
    color: #14573a;
    box-shadow: 0 0 0 1px rgba(72, 185, 111, 0.08);
}

.option-btn--status-correct:hover {
    border-color: #48b96f;
    background: #eefaf2;
}

.option-btn--status-partial {
    border-color: #dfb648;
    background: #fff8e8;
    color: #7f5a00;
    box-shadow: 0 0 0 1px rgba(223, 182, 72, 0.08);
}

.option-btn--status-partial:hover {
    border-color: #dfb648;
    background: #fff8e8;
}

.option-btn--status-incorrect {
    border-color: #e27777;
    background: #fff1f1;
    color: #a93a3a;
    box-shadow: 0 0 0 1px rgba(226, 119, 119, 0.08);
}

.option-btn--status-incorrect:hover {
    border-color: #e27777;
    background: #fff1f1;
}

.option-btn--correct-answer {
    border: 2px dashed #48b96f;
    background: #f7fcf8;
    color: #14573a;
}

.option-btn--correct-answer:hover {
    border-color: #48b96f;
    background: #f7fcf8;
}

.option-radio {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: border-color 0.2s;
}

.option-btn.selected .option-radio {
    border-color: #2b5fed;
}

.option-btn--status-correct .option-radio,
.option-btn--correct-answer .option-radio {
    border-color: #48b96f;
}

.option-btn--status-partial .option-radio {
    border-color: #dfb648;
}

.option-btn--status-incorrect .option-radio {
    border-color: #e27777;
}

.option-radio__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.option-btn.selected .option-radio__dot {
    background: #2b5fed;
}

.option-btn--status-correct .option-radio__dot {
    background: #48b96f;
}

.option-btn--status-partial .option-radio__dot {
    background: #dfb648;
}

.option-btn--status-incorrect .option-radio__dot {
    background: #e27777;
}

.option-btn--tf {
    flex: 1;
}

.tf-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.test-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
}

.test-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
}

.test-nav__btn:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.test-nav__label,
.test-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.test-nav__btn--prev {
    background: #fff;
    color: #555770;
    border: 1px solid #e2e2ea;
}

.test-nav__btn--prev:hover:not(:disabled) {
    background: #f4f4f8;
}

.test-nav__btn--next {
    background: linear-gradient(180deg, #4b7dff 0%, #2b5fed 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(43, 95, 237, 0.25);
}

.test-nav__btn--next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(43, 95, 237, 0.35);
}

.sidebar-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #1c1c28;
}

.q-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 24px;
}

.q-grid__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f4f4f8;
    color: #555770;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.q-grid__item:hover {
    background: #e8ecf8;
}

.q-grid__item.current {
    box-shadow: 0 0 0 3px rgba(43, 95, 237, 0.18);
    transform: translateY(-1px);
}

.q-grid__item.current:not(.answered--correct):not(.answered--partial):not(.answered--incorrect) {
    background: #2b5fed;
    color: #fff;
    border-color: transparent;
}

.q-grid__item.answered {
    position: relative;
}

.q-grid__item.answered--correct {
    background: #eefaf2;
    color: #15724a;
    border-color: #48b96f;
}

.q-grid__item.answered--partial {
    background: #fff8e8;
    color: #926300;
    border-color: #dfb648;
}

.q-grid__item.answered--incorrect {
    background: #fff1f1;
    color: #b64242;
    border-color: #e27777;
}

.q-grid__item.current.answered--correct {
    box-shadow: 0 0 0 3px rgba(72, 185, 111, 0.18);
}

.q-grid__item.current.answered--partial {
    box-shadow: 0 0 0 3px rgba(223, 182, 72, 0.22);
}

.q-grid__item.current.answered--incorrect {
    box-shadow: 0 0 0 3px rgba(226, 119, 119, 0.2);
}

.q-grid__item.answered::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
}

.btn-finish {
    width: 100%;
    padding: 16px;
    border: 1px solid #d7dfef;
    border-radius: 14px;
    background: #eef2fb;
    color: #33415f;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s, background 0.2s ease, border-color 0.2s ease;
}

.btn-finish:hover {
    transform: translateY(-1px);
    background: #e6edf9;
    border-color: #c7d3ea;
}

.test-info-card--benefits {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 10px 24px rgba(43, 95, 237, 0.06);
}

.test-info-card--benefits.is-hidden {
    display: none !important;
}

.test-main > .test-info-card--benefits {
    display: none;
}

.test-sidebar > .test-info-card--benefits {
    display: grid;
    grid-column: 1;
    grid-row: 1;
}

.benefits-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 700;
    color: #1c1c28;
    min-height: 100%;
    padding-right: 22px;
    border-right: 1px solid #e4ebfb;
}

.benefits-title strong {
    display: block;
    max-width: 10ch;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.benefits-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dfe7fb;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #667085;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.benefits-close:hover {
    background: #f3f6ff;
    color: #1c1c28;
    transform: translateY(-1px);
}

.info-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffb38b 0%, #ff6f7d 100%);
    object-fit: contain;
    flex: 0 0 auto;
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #1c1c28;
    min-height: 78px;
    padding: 16px 18px;
    border: 1px solid #e4ebfb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.benefits-list li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.popup-overlay.active {
    display: flex;
}

.popup-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    object-fit: contain;
}

.popup-card h2 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #1c1c28;
}

.popup-card p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #555770;
}

.popup-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 16px;
    border: 1px solid #d6e0ff;
    border-radius: 12px;
    background: #f4f6ff;
}

.popup-note img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.popup-note span {
    font-size: 14px;
    font-weight: 600;
    color: #2b5fed;
}

.popup-btn {
    padding: 16px 48px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #4b7dff 0%, #2b5fed 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(43, 95, 237, 0.25);
    transition: transform 0.2s;
}

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

@media (max-width: 960px) {
    .test-layout {
        grid-template-columns: 1fr;
    }

    .test-main {
        grid-column: auto;
        grid-row: auto;
    }

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

    .test-info-card--benefits {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px;
    }

    .benefits-title {
        align-items: flex-start;
        padding-right: 0;
        border-right: none;
    }

    .benefits-title strong {
        max-width: none;
    }

    .benefits-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-card,
    .test-sidebar > .test-info-card--benefits {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .test-progress {
        gap: 12px;
        max-width: none;
        padding: 10px 16px 18px;
    }

    .test-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: none;
        padding: 0 16px 24px;
    }

    .test-main,
    .test-sidebar,
    .test-question-card,
    .sidebar-card,
    .test-info-card {
        width: 100%;
        min-width: 0;
    }

    .test-main,
    .test-sidebar {
        gap: 14px;
    }

    .test-question-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .test-main > .test-info-card--benefits {
        display: grid;
        order: -1;
        margin-bottom: 2px;
    }

    .test-sidebar > .test-info-card--benefits {
        display: none;
    }

    .question-text {
        font-size: 16px;
        line-height: 1.45;
    }

    .option-btn {
        min-height: 58px;
        padding: 15px 16px;
        border-radius: 16px;
        font-size: 15px;
    }

    .test-nav {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .test-nav__btn {
        min-height: 56px;
        border-radius: 18px;
    }

    .test-nav__btn--prev {
        width: 56px;
        padding: 0;
    }

    .test-nav__btn--prev .test-nav__label {
        display: none;
    }

    .test-nav__btn--next {
        width: 100%;
        padding: 0 18px;
    }

    .sidebar-card {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .sidebar-card h3,
    .q-grid {
        display: none;
    }

    .btn-finish {
        min-height: 54px;
        margin: 0;
        border-radius: 16px;
    }

    .test-info-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .test-info-card--benefits {
        padding: 20px 18px;
        grid-template-columns: 1fr;
    }

    .benefits-title {
        font-size: 18px;
        line-height: 1.2;
        align-items: center;
        padding-right: 46px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .benefits-list li {
        align-items: flex-start;
        font-size: 15px;
        line-height: 1.45;
    }

    .benefits-list li img {
        margin-top: 1px;
    }

    .popup-card {
        padding: 28px 22px;
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    .test-header__timer {
        padding: 8px 12px;
        font-size: 14px;
    }

    .test-progress {
        padding: 12px 12px 18px;
    }

    .test-progress__label {
        font-size: 12px;
    }

    .test-layout {
        padding: 0 12px 20px;
    }

    .test-question-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .question-text {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .option-btn {
        gap: 12px;
        min-height: 54px;
        padding: 14px 15px;
    }

    .tf-row {
        grid-template-columns: 1fr;
    }

    .test-nav {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }

    .test-nav__btn,
    .btn-finish {
        min-height: 52px;
    }

    .test-nav__btn--prev {
        width: 52px;
    }

    .test-info-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .test-info-card--benefits {
        padding: 18px 16px;
    }

    .benefits-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .popup-card {
        padding: 24px 18px;
    }

    .popup-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.question-media,
.question-feedback {
    margin-bottom: 20px;
}

.question-media:empty,
.question-feedback:empty {
    display: none;
}

.question-helper {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #667085;
}

.question-selection-count {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #667085;
}

.media-card {
    border: 1px solid #dbe6ff;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(75, 125, 255, 0.18), transparent 38%),
        linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
    box-shadow: 0 12px 28px rgba(43, 95, 237, 0.08);
    overflow: hidden;
}

.media-card--image {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    text-align: left;
    cursor: zoom-in;
}

.media-card__image {
    display: block;
    width: 100%;
    height: min(360px, 42vw);
    min-height: 220px;
    padding: 16px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}

.media-card__footer,
.media-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.media-card__footer strong,
.media-card__head strong {
    font-size: 16px;
    font-weight: 700;
    color: #1c1c28;
    white-space: nowrap;
}

.media-card__footer span,
.media-card__head p {
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
}

.media-card__head {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 0;
}

.media-card__head--audio {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 16px;
}

.media-card__title-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.media-card--audio {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.media-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d9e4ff;
    background: rgba(255, 255, 255, 0.88);
    color: #3d5db9;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.audio-player {
    display: grid;
    grid-template-columns: 56px auto minmax(0, 1fr) minmax(140px, 180px);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #d9e2f3;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.audio-player__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #4b7dff 0%, #2b5fed 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(43, 95, 237, 0.22);
}

.audio-player__toggle-icon {
    font-size: 18px;
    line-height: 1;
    transform: translateX(1px);
}

.audio-player__toggle-text {
    display: none;
}

.audio-player__toggle:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.audio-player__time {
    font-size: 15px;
    font-weight: 700;
    color: #22314d;
    white-space: nowrap;
}

.audio-player__progress {
    position: relative;
    width: 100%;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #dbe5f8;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none;
}

.audio-player__progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, #4b7dff 0%, #2b5fed 100%);
    border-radius: inherit;
}

.audio-player__progress-thumb {
    position: absolute;
    top: 50%;
    left: var(--progress, 0%);
    z-index: 1;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2b5fed;
    box-shadow: 0 0 0 3px rgba(43, 95, 237, 0.14);
    transform: translate(-50%, -50%);
    opacity: 1;
}

.audio-player__volume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.audio-player__volume-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d9e2f3;
    border-radius: 12px;
    background: #ffffff;
    color: #22314d;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.audio-player__volume-btn:hover,
.audio-player__volume-btn:focus-visible {
    border-color: #2b5fed;
    color: #2b5fed;
    box-shadow: 0 0 0 3px rgba(43, 95, 237, 0.12);
    outline: none;
}

.audio-player__volume-btn:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.audio-player__volume-btn svg {
    width: 18px;
    height: 18px;
}

.audio-player__volume-slider {
    width: 100%;
    min-width: 0;
    margin: 0;
    accent-color: #2b5fed;
    cursor: pointer;
}

.audio-player__volume-slider:disabled {
    opacity: 0.55;
    cursor: default;
}

.media-card__skip-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.audio-player__skip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border: none;
    background: transparent;
    color: #4b5b7a;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.2s ease;
}

.audio-player__skip:hover,
.audio-player__skip:focus-visible {
    color: #2b5fed;
    text-decoration: underline;
    outline: none;
}

.media-card--transcript {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.media-card__head--transcript {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.media-card__head--transcript strong {
    font-size: 16px;
    color: #22314d;
}

.media-card__head--transcript span {
    font-size: 13px;
    color: #4b5b7a;
}

.transcript-box__text {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: #22314d;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: left;
}

.transcript-box__listen-again {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border: none;
    background: transparent;
    color: #2b5fed;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.2s ease;
}

.transcript-box__listen-again:hover,
.transcript-box__listen-again:focus-visible {
    color: #1f47b8;
    text-decoration: underline;
    outline: none;
}

.option-btn--checkbox {
    align-items: flex-start;
}

.option-checkbox {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #c4cee4;
    border-radius: 7px;
    background: #fff;
}

.option-checkbox__tick {
    width: 10px;
    height: 6px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg) translateY(-1px);
}

.option-btn.selected .option-checkbox {
    border-color: #2b5fed;
    background: #eef2ff;
}

.option-btn.selected .option-checkbox__tick {
    border-color: #2b5fed;
}

.option-btn--status-correct .option-checkbox {
    border-color: #48b96f;
    background: #eefaf2;
}

.option-btn--status-correct .option-checkbox__tick {
    border-color: #48b96f;
}

.option-btn--status-incorrect .option-checkbox {
    border-color: #e27777;
    background: #fff1f1;
}

.option-btn--status-incorrect .option-checkbox__tick {
    border-color: #e27777;
}

.input-answer {
    display: block;
}

.input-answer__row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.input-answer__field {
    flex: 1 1 auto;
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    border: 1.5px solid #d4def2;
    border-radius: 16px;
    background: #fff;
    color: #1c1c28;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-answer__field:focus {
    outline: none;
    border-color: #2b5fed;
    box-shadow: 0 0 0 4px rgba(43, 95, 237, 0.12);
}

.input-answer__field:disabled {
    background: #f7f8fb;
    color: #4b5565;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 30, 0.72);
    backdrop-filter: blur(10px);
}

.media-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
}

.media-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(28, 28, 40, 0.08);
    color: #1c1c28;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.media-lightbox__title {
    margin: 0 56px 14px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1c1c28;
}

.media-lightbox__image {
    display: block;
    width: 100%;
    max-height: min(78vh, 760px);
    object-fit: contain;
    border-radius: 18px;
    background: #f5f8ff;
}

.has-lightbox-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .question-media,
    .question-feedback {
        margin-bottom: 16px;
    }

    .audio-player {
        grid-template-columns: 52px auto minmax(120px, 160px);
        gap: 12px;
        padding: 14px;
    }

    .audio-player__progress {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 520px) {
    .media-card__image {
        height: min(260px, 62vw);
        min-height: 180px;
        padding: 12px;
    }

    .media-card__footer {
        align-items: center;
    }

    .media-card__footer span {
        display: none;
    }

    .audio-player {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .audio-player__toggle {
        width: 48px;
        height: 48px;
        min-height: 48px;
    }

    .audio-player__time {
        grid-column: 2;
        font-size: 14px;
    }

    .audio-player__volume {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }

    .audio-player__volume-slider {
        display: none;
    }

    .audio-player__volume-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .audio-player__progress {
        grid-column: 1 / -1;
    }

    .input-answer__row {
        flex-direction: column;
    }

    .question-submit--inline {
        width: 100%;
    }

    .media-lightbox {
        padding: 14px;
    }

    .media-lightbox__dialog {
        padding: 18px;
        border-radius: 20px;
    }

    .media-lightbox__close {
        top: 12px;
        right: 12px;
    }
}
