* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f3;
    color: #2d3935;
}

.topbar {
    min-height: 90px;
    padding: 18px 6%;
    background: #ffffff;
    border-bottom: 1px solid #d7dfda;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 {
    margin: 0;
    color: #304c43;
    font-size: 25px;
}

.topbar p {
    margin: 5px 0 0;
    color: #74817c;
}

.container {
    width: min(1180px, 92%);
    margin: 35px auto;
}

.card {
    background: #ffffff;
    border: 1px solid #dce3df;
    border-radius: 18px;

    box-shadow:
        0 8px 28px rgba(38, 58, 50, 0.07);
}

.start-screen {
    padding: 50px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 8px 15px;

    color: #345b4d;
    background: #e3eee8;

    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.start-screen h2,
.result-screen h2 {
    margin: 20px 0 10px;
    color: #29463c;
}

.intro {
    max-width: 700px;
    margin: 0 auto 35px;
    color: #68756f;
    line-height: 1.7;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 30px;
}

.info-card {
    padding: 25px;

    background: #f7f9f7;

    border: 1px solid #dbe4df;
    border-radius: 13px;
}

.info-card h3 {
    margin-top: 0;
    color: #49655a;
}

.info-card strong {
    display: block;

    color: #2b463c;
    font-size: 21px;
}

.info-card p {
    color: #7a8680;
}

.instructions {
    max-width: 750px;

    margin: 30px auto;
    padding: 22px 30px;

    text-align: left;

    background: #f8faf8;
    border-radius: 12px;
}

.instructions li {
    margin: 9px 0;
    line-height: 1.5;
}

button {
    font: inherit;
    cursor: pointer;
}

.primary-btn {
    padding: 13px 26px;

    border: none;
    border-radius: 9px;

    color: white;
    background: #486f60;

    font-weight: bold;
}

.primary-btn:hover {
    background: #36594c;
}

.secondary-btn {
    padding: 12px 25px;

    border: 1px solid #bdcac4;
    border-radius: 9px;

    color: #40584f;
    background: #ffffff;

    font-weight: bold;
}

.secondary-btn:hover {
    background: #f1f5f2;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.timer {
    padding: 8px 15px;

    border: 1px solid #d9e1dd;
    border-radius: 10px;

    text-align: right;
}

.timer span {
    display: block;

    color: #78857f;

    font-size: 10px;
}

.timer strong {
    color: #304f44;
    font-size: 24px;
}

.module-bar {
    margin-bottom: 18px;
    padding: 17px 23px;

    background: #ffffff;

    border: 1px solid #dae2de;
    border-radius: 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-bar span,
.module-bar strong {
    display: block;
}

#moduleLabel {
    margin-bottom: 4px;

    color: #76847e;

    font-size: 12px;
    font-weight: bold;
}

.difficulty {
    padding: 8px 15px;

    color: #426455;
    background: #e8f0ec;

    border-radius: 20px;

    font-weight: bold;
}

.test-layout {
    display: grid;
    grid-template-columns: 220px 1fr;

    gap: 20px;
}

.navigator {
    height: fit-content;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #dce3df;
    border-radius: 14px;
}

.navigator h3 {
    margin-top: 0;
}

.question-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 7px;
}

.nav-btn {
    width: 31px;
    height: 31px;

    padding: 0;

    background: white;
    color: #4d5e57;

    border: 1px solid #cad4cf;
    border-radius: 6px;
}

.nav-btn.answered {
    background: #dcebe3;
    border-color: #a5c8b7;
}

.nav-btn.current {
    background: #486f60;
    color: white;
    border-color: #486f60;
}

.question-card {
    min-height: 570px;
    padding: 35px;
}

.question-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#questionNumber {
    color: #718079;
}

.skill-badge {
    padding: 6px 11px;

    color: #60736b;
    background: #edf2ef;

    border-radius: 6px;

    font-size: 12px;
}

.passage {
    margin: 25px 0;
    padding: 22px;

    background: #f7f9f7;

    border-left: 4px solid #789a8c;
    border-radius: 0 10px 10px 0;

    color: #394941;
    line-height: 1.8;
}

#questionText {
    margin: 24px 0 20px;

    font-size: 19px;
    line-height: 1.5;
}

.answers {
    display: grid;
    gap: 11px;
}

.answer-btn {
    width: 100%;
    padding: 15px 18px;

    text-align: left;

    background: white;
    color: #33413b;

    border: 1px solid #cad4cf;
    border-radius: 9px;

    line-height: 1.5;
}

.answer-btn:hover {
    background: #f5f8f6;
    border-color: #809a8f;
}

.answer-btn.selected {
    background: #e2eee8;
    border: 2px solid #507969;
}

.answer-letter {
    width: 30px;
    height: 30px;

    margin-right: 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #edf2ef;

    border-radius: 50%;

    font-weight: bold;
}

.navigation {
    margin-top: 35px;

    display: flex;
    justify-content: space-between;
}

.result-screen {
    max-width: 760px;

    margin: auto;
    padding: 50px;

    text-align: center;
}

.score-circle {
    width: 135px;
    height: 135px;

    margin: 30px auto;

    border: 9px solid #dcebe4;
    border-radius: 50%;

    color: #345b4c;

    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle.large {
    width: 165px;
    height: 165px;
}

.score-circle strong {
    font-size: 27px;
}

.results-grid {
    margin: 30px 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.results-grid div {
    padding: 20px;

    background: #f6f8f6;

    border-radius: 10px;
}

.results-grid span,
.results-grid strong {
    display: block;
}

.results-grid span {
    margin-bottom: 8px;
    color: #73817b;
}

.results-grid strong {
    color: #344c43;
    font-size: 21px;
}

.result-buttons {
    margin-top: 25px;

    display: flex;
    justify-content: center;

    gap: 12px;
}

.review-header {
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-card {
    margin-bottom: 16px;
    padding: 25px;

    background: white;

    border: 1px solid #dce3df;
    border-radius: 12px;
}

.review-card.correct {
    border-left: 5px solid #55a271;
}

.review-card.incorrect {
    border-left: 5px solid #c86666;
}

.review-card h3 {
    margin-top: 0;
}

.review-card p {
    line-height: 1.6;
}

.correct-text {
    color: #34704b;
}

.wrong-text {
    color: #a74747;
}

footer {
    padding: 35px;

    color: #89938f;

    text-align: center;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

@media (max-width: 800px) {

    .test-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .test-layout {
        grid-template-columns: 1fr;
    }

    .navigator {
        order: 2;
    }

    .question-nav {
        grid-template-columns: repeat(9, 1fr);
    }

    .start-screen,
    .question-card,
    .result-screen {
        padding: 25px;
    }

    .review-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}