.mock-start-page {
    max-width: 720px;
    margin: 30px auto;
}

.mock-start-kicker {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.mock-start-ready,
.mock-start-locked {
    margin-top: 25px;
    padding: 24px;
    border: 2px solid #263746;
    background: #fff;
}

.mock-start-time {
    margin: 12px 0;
    padding: 10px 12px;
    background: #eef2f4;
}

.mock-start-warning {
    margin: 20px 0;
    padding: 12px;
    border-left: 4px solid #a32638;
    background: #f7eeee;
    font-size: 14px;
}

.mock-start-button {
    margin-top: 10px;
    padding: 13px 22px;

    border: 2px solid #263746;
    background: #263746;
    color: #fff;

    font: inherit;
    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}

.mock-block-progress {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background: #eef2f4;
    font-weight: 700;
}


.exam-page {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.exam-topbar {
    position: sticky;
    top: 0;
    z-index: 30;

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

    margin-bottom: 20px;
    padding: 14px 18px;

    border: 2px solid #263746;
    background: #fff;
}

.exam-topbar h1 {
    margin: 2px 0 0;
    font-size: 23px;
}

.exam-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.exam-timer-box {
    min-width: 160px;
    padding-left: 18px;
    border-left: 2px solid #263746;
}

.exam-timer-box span {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.exam-timer-box strong {
    font-size: 25px;
    font-variant-numeric: tabular-nums;
}


/* Лист */

.exam-paper {
    padding: 34px 42px 50px;
    border: 1px solid #b8b8b8;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);

    font-family: Georgia, "Times New Roman", serif;
    color: #111;
}


/* Исходные тексты */

.exam-source-text {
    margin: 0 0 36px;
    padding: 22px 25px;
    border: 1px solid #999;
}

.exam-source-text-middle {
    margin-top: 38px;
}

.exam-source-label {
    margin-bottom: 14px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.exam-source-content {
    font-size: 16px;
    line-height: 1.55;
}


/* Задание */

.exam-question {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;

    padding: 24px 0 30px;
    border-bottom: 1px solid #bcbcbc;
}

.exam-question:last-child {
    border-bottom: 0;
}

.exam-question-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    min-width: 32px;
    height: 28px;
    box-sizing: border-box;

    padding: 4px 5px;

    border: 1px solid #555;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

.exam-question-body {
    min-width: 0;
}

.exam-question-text {
    max-width: 850px;
    font-size: 16px;
    line-height: 1.48;
}


/* Ответ как на экзаменационном листе */

.exam-answer-row {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 21px;
}

.exam-answer-label {
    font-size: 16px;
    font-weight: 400;
}

.exam-answer-input {
    width: 280px;
    max-width: 70%;

    padding: 5px 3px;

    border: 0;
    border-bottom: 1px solid #333;
    border-radius: 0;
    outline: 0;

    background: transparent;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    letter-spacing: .04em;
}

.exam-answer-input:focus {
    border-bottom-width: 2px;
}

.exam-save-state {
    min-width: 115px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    opacity: .6;
}


/* Задания на соответствие */

.exam-matching-source {
    display: grid;
    grid-template-columns: 1fr 1fr;

    margin: 20px 0;
    border: 1px solid #777;
}

.exam-matching-column {
    padding: 15px 17px;
    font-size: 14px;
    line-height: 1.45;
}

.exam-matching-column + .exam-matching-column {
    border-left: 1px solid #777;
}

.exam-match-answer {
    display: grid;
    grid-template-columns: repeat(5, 42px);

    width: max-content;
    margin-top: 8px;

    border-top: 1px solid #333;
    border-left: 1px solid #333;
}

.exam-match-cell,
.exam-match-input {
    width: 42px;
    height: 35px;
    box-sizing: border-box;

    border: 0;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;

    text-align: center;
}

.exam-match-head {
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.exam-match-input {
    outline: 0;
    border-radius: 0;
    background: #fff;

    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

.exam-match-input:focus {
    background: #f3f3f3;
}


/* Сдача */

.exam-submit-zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    margin-top: 38px;
    padding-top: 25px;

    border-top: 3px double #333;

    font-family: Arial, sans-serif;
}

.exam-submit-zone p {
    margin: 5px 0 0;
    font-size: 13px;
}

.exam-submit-button {
    padding: 12px 20px;

    border: 2px solid #263746;
    border-radius: 0;

    background: #263746;
    color: #fff;

    font-weight: 800;
    cursor: pointer;
}

.exam-submit-button:hover {
    background: #fff;
    color: #263746;
}


/* Сочинение */

.exam-essay {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
}

.exam-essay h2 {
    margin: 4px 0 20px;
}

.exam-essay-topic {
    margin: 18px 0;
    padding: 18px 20px;

    border-left: 4px solid #263746;
    background: #f5f5f5;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}

.exam-file-upload {
    display: block;
    margin: 25px 0 18px;
    padding: 18px;

    border: 1px dashed #777;
}

.exam-file-upload span {
    display: block;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-weight: 700;
}


/* Mobile */

@media (max-width: 750px) {

    .exam-paper {
        padding: 22px 15px 35px;
    }

    .exam-topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .exam-timer-box {
        padding: 0;
        border-left: 0;
    }

    .exam-question {
        grid-template-columns: 31px minmax(0, 1fr);
        gap: 9px;
    }

    .exam-matching-source {
        grid-template-columns: 1fr;
    }

    .exam-matching-column + .exam-matching-column {
        border-left: 0;
        border-top: 1px solid #777;
    }

    .exam-answer-input {
        width: 100%;
    }

    .exam-submit-zone {
        align-items: stretch;
        flex-direction: column;
    }

}

/* Задание 27 */

.exam-question-essay-preview {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 3px double #333;
}

.exam-essay-note {
    margin: 14px 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.exam-file-upload.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.exam-file-upload.is-disabled input {
    cursor: not-allowed;
}

/* Заголовки таблиц заданий 8 и 22 */

.exam-matching-heading {
    margin: -15px -17px 15px;
    padding: 9px 12px;

    border-bottom: 1px solid #777;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
    letter-spacing: .025em;
}
