:root {
    --paper: #f5f3ec;
    --paper-deep: #e9e6dc;
    --ink: #202923;
    --muted: #73776f;
    --line: #d9d7ce;
    --green: #315d45;
    --green-deep: #244632;
    --green-pale: #e3ece4;
    --coral: #d06d55;
    --yellow: #e8bd57;
    --blue: #557b83;
    --white: #fffefa;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.topbar { min-height: 78px; max-width: 1440px; margin: auto; padding: 0 6.1%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 750; font-size: 15px; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: var(--paper); background: var(--green); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.brand-light { color: var(--muted); font-weight: 450; }
.main-nav { display: flex; gap: 34px; align-items: center; }
.main-nav a, .nav-login { font-size: 13px; color: #555d55; transition: color .18s ease; }
.main-nav a:hover, .nav-login:hover, .text-link:hover { color: var(--coral); }
.nav-account { display: flex; align-items: center; gap: 15px; }
.nav-greeting { color: var(--muted); font-size: 12px; }
.page-shell { max-width: 1440px; min-height: 70vh; margin: auto; padding: 0 6.1%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 47px; padding: 0 20px; border: 1px solid var(--green); border-radius: 3px; color: var(--white); background: var(--green); font-size: 13px; font-weight: 650; cursor: pointer; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-small { min-height: 37px; padding: 0 13px; gap: 11px; font-size: 12px; }
.button-large { min-height: 54px; padding: 0 22px; }
.button-block { width: 100%; margin-top: 3px; }
.button-quiet { color: var(--green); background: transparent; }
.button-quiet:hover { color: var(--white); }
.button-outline { color: var(--green); background: transparent; }
.button-outline:hover { color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 11px; padding: 0; border: 0; color: var(--green); background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; transition: color .18s ease; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 3px; color: var(--green); background: transparent; font-size: 19px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.icon-button:hover { color: white; background: var(--green); }

.home-intro { display: grid; grid-template-columns: 1.18fr .82fr; min-height: 460px; padding: 70px 0 62px; border-bottom: 1px solid var(--line); animation: appear .55s ease both; }
.intro-copy { align-self: center; padding: 0 5% 0 0; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: 0; line-height: 1.4; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
.home-intro h1, .page-heading h1, .auth-aside h1 { margin: 0; font-family: var(--serif); font-size: 64px; font-weight: 400; letter-spacing: 0; line-height: 1.03; }
h1 em, .auth-aside h1 em { color: var(--green); font-weight: 400; }
.intro-lede { max-width: 485px; margin: 25px 0 28px; color: #666e66; font-size: 16px; line-height: 1.8; }
.intro-actions { display: flex; align-items: center; gap: 26px; }
.intro-aside { position: relative; display: grid; place-items: center; min-height: 322px; overflow: hidden; background: var(--green); }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit-one { background: repeating-linear-gradient(135deg, transparent 0, transparent 37px, rgba(255,255,255,.055) 38px, rgba(255,255,255,.055) 39px); }
.orbit-two { inset: auto 10% 0 auto; width: 19%; height: 100%; background: var(--yellow); opacity: .9; clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%); }
.aside-note { position: relative; z-index: 1; width: 72%; padding: 29px 30px; color: var(--ink); background: var(--paper); box-shadow: 8px 8px 0 rgba(30,50,37,.25); }
.note-kicker, .note-foot { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0; }
.aside-note strong { display: block; margin: 24px 0 19px; font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.16; }
.note-line { display: block; width: 46px; height: 3px; margin-bottom: 12px; background: var(--coral); }
.note-foot { font-size: 10px; letter-spacing: 0; font-weight: 500; }
.aside-index { position: absolute; bottom: 17px; right: 20px; z-index: 2; color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: 0; }
.stats-strip { display: grid; grid-template-columns: .8fr 1.15fr 1fr 1.3fr; align-items: center; gap: 18px; min-height: 116px; border-bottom: 1px solid var(--line); }
.stats-strip > div { display: flex; align-items: baseline; gap: 10px; }
.stats-strip strong { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.stats-strip span { color: var(--muted); font-size: 11px; }
.stats-strip > p { justify-self: end; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.45; }
.course-section, .tests-list, .history-section { padding: 68px 0 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2, .panel-heading h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.course-tile { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 23px 24px; border: 1px solid var(--line); background: rgba(255,254,250,.45); transition: transform .2s ease, border-color .2s ease; }
.course-tile:hover { transform: translateY(-3px); border-color: var(--green); }
.course-tone-2 { background: #eff0e8; }
.course-tone-3 { background: #e9efec; }
.tile-number { color: var(--muted); font-size: 10px; letter-spacing: 0; }
.tile-arrow { position: absolute; top: 19px; right: 22px; color: var(--green); font-size: 18px; }
.course-tile h3 { max-width: 85%; margin: 28px 0 9px; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; }
.course-tile p { margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tile-meta { margin-top: auto; color: #666e66; font-size: 10px; }
.tile-meta span { padding: 0 5px; color: var(--coral); }
.empty-state { padding: 43px 25px; border: 1px solid var(--line); text-align: center; background: rgba(255,254,250,.48); }
.empty-icon { display: block; margin-bottom: 10px; color: var(--coral); font-size: 24px; }
.empty-state h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state .text-link { margin-top: 17px; }

.page-heading { max-width: 720px; padding: 70px 0 37px; animation: appear .45s ease both; }
.page-heading h1 { font-size: 58px; }
.page-heading > p:last-child { max-width: 530px; margin: 19px 0 0; color: #6e746c; font-size: 14px; line-height: 1.75; }
.practice-layout { display: grid; grid-template-columns: 275px 1fr; gap: 35px; padding: 16px 0 85px; border-top: 1px solid var(--line); }
.filter-panel { padding: 22px 20px; border: 1px solid var(--line); align-self: start; background: rgba(255,254,250,.45); }
.panel-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.panel-number { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; color: var(--green); background: var(--green-pale); font-size: 10px; font-weight: 700; }
.panel-heading h2 { font-size: 22px; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.form-stack label, .option-fields label, .admin-inline-fields label { display: flex; flex-direction: column; gap: 6px; color: #4d574e; font-size: 11px; font-weight: 650; }
.label-hint { margin-left: 4px; color: #858980; font-size: 10px; font-weight: 400; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #d2d3c9; border-radius: 2px; outline: 0; color: var(--ink); background: var(--white); font-size: 13px; font-weight: 400; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(49,93,69,.12); }
input:disabled, select:disabled { background: #efeee8; }
.practice-tip { display: flex; gap: 11px; margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); }
.tip-icon { color: var(--coral); font-size: 16px; }
.practice-tip p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.question-area { min-width: 0; }
.question-placeholder { display: grid; place-items: center; min-height: 365px; padding: 30px; border: 1px dashed #c9c9bd; text-align: center; }
.placeholder-cross { color: var(--coral); font-family: var(--serif); font-size: 34px; line-height: 1; }
.question-placeholder p { margin: 12px 0 3px; font-family: var(--serif); font-size: 23px; }
.question-placeholder > span:last-child { color: var(--muted); font-size: 12px; }
.question-card { padding: 27px 29px; border: 1px solid var(--line); background: var(--white); }
.question-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 23px; color: var(--muted); font-size: 10px; }
.question-meta span:first-child { color: var(--green); font-weight: 700; }
.question-card h2 { max-width: 740px; margin: 0 0 22px; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.35; }
.answer-options { display: flex; flex-direction: column; gap: 9px; }
.answer-option { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 9px 12px; border: 1px solid #e2e1d9; border-radius: 2px; cursor: pointer; font-size: 12px; transition: border-color .15s ease, background .15s ease; }
.answer-option:hover { border-color: #9aaa9c; background: #fbfcf9; }
.answer-option input[type=radio] { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.option-letter { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; color: var(--green); background: var(--green-pale); font-size: 10px; font-weight: 700; }
.answer-option.is-correct { border-color: #6c9976; background: #eff6ef; }
.answer-option.is-wrong { border-color: #d8907b; background: #fbefeb; }
.option-result { margin-left: auto; color: var(--green); font-size: 10px; font-weight: 700; }
.is-wrong .option-result { color: #a04e3d; }
.check-button { align-self: flex-start; margin-top: 10px; }
.explanation { margin: 23px 0 18px; padding: 19px 21px; border-left: 3px solid var(--green); background: #eff4ed; }
.explanation-review { border-color: var(--coral); background: #f8efeb; }
.explanation .eyebrow { margin-bottom: 6px; }
.explanation h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.explanation p:last-child { margin: 0; color: #5d655d; font-size: 12px; line-height: 1.7; }

.tests-list { padding-top: 22px; border-top: 1px solid var(--line); }
.count-label { color: var(--muted); font-size: 11px; }
.test-row { display: grid; grid-template-columns: 42px 1fr 94px 95px 44px; align-items: center; gap: 17px; min-height: 119px; padding: 17px 10px; border-bottom: 1px solid var(--line); }
.test-index { align-self: start; padding-top: 8px; color: var(--coral); font-family: var(--serif); font-size: 19px; }
.test-course { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.test-main h3 { margin: 5px 0 3px; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.test-main p { margin: 0; color: var(--muted); font-size: 11px; }
.test-detail { display: flex; flex-direction: column; }
.test-detail strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.test-detail span { color: var(--muted); font-size: 10px; }
.test-start-form { justify-self: end; }
.test-waiting { justify-self: end; color: var(--muted); font-size: 9px; text-align: right; }

.session-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 44px 0 26px; }
.session-heading .eyebrow { margin-bottom: 6px; }
.session-heading h1 { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.2; }
.timer-box { min-width: 125px; padding: 10px 15px; border: 1px solid var(--line); text-align: right; background: var(--white); }
.timer-label { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0; }
.timer-box strong { font-variant-numeric: tabular-nums; font-size: 21px; }
.test-progress { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.progress-track { flex: 1; height: 4px; background: var(--paper-deep); }
.progress-track span { display: block; height: 100%; background: var(--coral); transition: width .2s ease; }
.test-workspace { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 20px; padding-bottom: 15px; }
.question-nav { align-self: start; padding: 17px; border: 1px solid var(--line); background: rgba(255,254,250,.5); }
.nav-title { display: block; margin-bottom: 14px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.question-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.question-map form { margin: 0; }
.map-number { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); color: #60685f; background: var(--white); font-size: 10px; cursor: pointer; }
.map-number.is-current { border-color: var(--green); color: white; background: var(--green); }
.map-number.is-answered:not(.is-current) { border-color: #90ad94; background: var(--green-pale); }
.map-legend { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 9px; }
.map-legend i { display: inline-block; width: 9px; height: 9px; background: var(--green-pale); border: 1px solid #90ad94; }
.exam-question { min-height: 355px; }
.exam-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.finish-test-form { display: flex; justify-content: flex-end; padding: 5px 0 60px; }
.result-summary { display: flex; align-items: center; gap: 27px; margin: 12px 0 21px; padding: 24px; border: 1px solid var(--line); background: #eaf0e9; }
.result-score { min-width: 142px; padding-right: 23px; border-right: 1px solid #cbd5cb; }
.result-score > span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.result-score > strong { display: block; color: var(--green); font-family: var(--serif); font-size: 32px; font-weight: 400; }
.result-score small { color: var(--muted); font-family: var(--sans); font-size: 13px; }
.result-message { flex: 1; }
.result-message .eyebrow { margin-bottom: 4px; }
.result-message h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.result-message p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.review-question { margin-bottom: 12px; padding: 19px 21px; border: 1px solid var(--line); background: var(--white); }
.review-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.review-heading strong { color: var(--green); }
.review-incorrect .review-heading strong { color: #a04e3d; }
.review-question h3 { margin: 11px 0; font-family: var(--serif); font-size: 18px; font-weight: 400; }
.review-answer, .review-explanation { margin: 5px 0; color: var(--muted); font-size: 11px; }
.review-answer strong { color: var(--ink); font-weight: 600; }
.review-explanation { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.7; }

.progress-overview { display: flex; align-items: center; gap: 12px; padding: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overview-stat { display: flex; flex: 1; flex-direction: column; }
.overview-stat span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.overview-stat strong { font-family: var(--serif); font-size: 27px; font-weight: 400; }
.progress-overview .button { min-height: 42px; padding: 0 13px; gap: 10px; font-size: 11px; }
.history-table { border-top: 1px solid var(--line); }
.history-row { display: grid; grid-template-columns: 2fr 1fr 1fr 95px; align-items: center; gap: 15px; min-height: 55px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 11px; }
a.history-row:hover { background: rgba(255,254,250,.65); }
.history-row > span { color: var(--muted); }
.history-row > strong { font-size: 12px; font-weight: 650; }
.history-head { min-height: 39px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0; }
.history-head span { color: var(--muted); }
.history-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.history-result i { width: 23px; height: 23px; border-radius: 50%; background: conic-gradient(var(--green) var(--result), #d6ddd6 0); }

.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 590px; padding: 65px 0; gap: 8%; align-items: center; }
.auth-aside { position: relative; min-height: 370px; display: flex; flex-direction: column; justify-content: center; padding: 48px; overflow: hidden; background: var(--green); color: var(--paper); }
.auth-aside:after { position: absolute; right: -35px; bottom: -74px; width: 180px; height: 250px; background: var(--yellow); opacity: .9; content: ""; transform: rotate(38deg); }
.auth-aside .eyebrow { color: #d4e1d4; }
.auth-aside h1 { font-size: 52px; }
.auth-aside h1 em { color: #e9c768; }
.auth-aside > p:last-child { max-width: 355px; margin: 20px 0 0; color: #d4dfd5; font-size: 13px; }
.auth-panel { max-width: 420px; width: 100%; padding: 22px 0; }
.auth-panel h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 400; }
.muted { color: var(--muted); font-size: 12px; }
.auth-panel > .muted { margin: 5px 0 20px; }
.auth-panel .form-stack { gap: 17px; }
.auth-switch { margin: 17px 0 0; color: var(--muted); font-size: 11px; }
.auth-switch a { color: var(--green); font-weight: 700; }
.alert { margin: 0 0 18px; padding: 11px 13px; border: 1px solid; font-size: 11px; }
.alert-error { border-color: #dfb5a8; color: #8b4738; background: #f8eeea; }
.alert-success { border-color: #adc8ad; color: var(--green); background: #edf4eb; }

.admin-heading { padding-bottom: 28px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 24px; border: 1px solid var(--line); background: rgba(255,254,250,.5); }
.admin-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 17px; border-right: 1px solid var(--line); }
.admin-stats > div:last-child { border: 0; }
.admin-stats strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.admin-stats span { color: var(--muted); font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 75px; }
.admin-form-panel { min-width: 0; padding: 21px; border: 1px solid var(--line); background: rgba(255,254,250,.45); }
.admin-import-panel { grid-column: 1 / -1; }
.import-help { margin: 0; color: var(--muted); font-size: 11px; }
.import-help code { color: var(--green-deep); font-size: 10px; }
.admin-form-panel .panel-heading { margin-bottom: 18px; }
.admin-form-panel .panel-heading h2 { font-size: 22px; }
.admin-form-panel .panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.admin-form-panel .form-stack { gap: 12px; }
.admin-form-panel textarea { min-height: 70px; }
.admin-question-panel { grid-row: span 2; }
.option-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-form-panel:last-child .admin-inline-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkbox-label { display: flex; flex-direction: row !important; align-items: center; gap: 9px !important; font-weight: 500 !important; }
.checkbox-label input { accent-color: var(--green); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; min-height: 76px; margin: auto; padding: 0 6.1%; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.brand-footer { color: var(--ink); font-size: 12px; }
.brand-footer .brand-mark { width: 25px; height: 25px; font-size: 15px; }

@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .topbar { padding: 0 4%; gap: 15px; }
    .page-shell { padding: 0 4%; }
    .main-nav { gap: 18px; }
    .home-intro { grid-template-columns: 1fr 1fr; gap: 20px; }
    .course-grid { gap: 10px; }
    .course-tile { padding: 18px; }
    .test-row { grid-template-columns: 34px 1fr 72px 72px 40px; gap: 10px; }
    .auth-layout { gap: 5%; }
    .auth-aside { padding: 30px; }
}
@media (max-width: 680px) {
    .topbar { min-height: auto; flex-wrap: wrap; justify-content: space-between; padding: 14px 5%; gap: 12px; }
    .brand { font-size: 13px; }
    .nav-account { gap: 9px; }
    .nav-greeting { display: none; }
    .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
    .main-nav a { font-size: 11px; }
    .page-shell { padding: 0 5%; }
    .home-intro { grid-template-columns: 1fr; padding: 48px 0 35px; gap: 29px; }
    .home-intro h1, .page-heading h1 { font-size: 46px; }
    .intro-lede { font-size: 14px; }
    .intro-actions { flex-wrap: wrap; gap: 16px; }
    .intro-aside { min-height: 245px; }
    .aside-note { width: 78%; padding: 20px; }
    .aside-note strong { margin: 15px 0; font-size: 24px; }
    .stats-strip { grid-template-columns: 1fr 1fr; gap: 14px; padding: 17px 0; }
    .stats-strip > p { justify-self: start; }
    .stats-strip strong { font-size: 22px; }
    .course-section, .tests-list, .history-section { padding: 44px 0 55px; }
    .section-heading h2 { font-size: 27px; }
    .course-grid { grid-template-columns: 1fr; }
    .course-tile { min-height: 190px; }
    .page-heading { padding: 48px 0 27px; }
    .page-heading h1 { font-size: 43px; }
    .practice-layout { grid-template-columns: 1fr; gap: 17px; padding-bottom: 50px; }
    .filter-panel { padding: 18px; }
    .practice-tip { margin-top: 17px; }
    .question-card { padding: 19px 16px; }
    .question-card h2 { font-size: 21px; }
    .answer-option { align-items: flex-start; min-height: 47px; padding: 9px; font-size: 11px; }
    .option-letter { flex-basis: 23px; width: 23px; height: 23px; }
    .test-row { grid-template-columns: 28px 1fr 42px; gap: 9px; padding: 15px 0; }
    .test-main h3 { font-size: 17px; }
    .test-main p { line-height: 1.5; }
    .test-detail { display: none; }
    .test-start-form { grid-column: 3; grid-row: 1; }
    .test-index { grid-column: 1; grid-row: 1; }
    .test-main { grid-column: 2; grid-row: 1; }
    .session-heading { align-items: flex-start; padding: 32px 0 20px; }
    .session-heading h1 { max-width: 220px; font-size: 25px; }
    .timer-box { min-width: 97px; padding: 8px 9px; }
    .timer-box strong { font-size: 18px; }
    .test-workspace { grid-template-columns: 1fr; }
    .question-nav { padding: 12px; }
    .question-map { grid-template-columns: repeat(8, 1fr); }
    .map-number { max-width: 39px; }
    .exam-actions { flex-wrap: wrap; }
    .exam-actions .button { flex: 1; padding: 0 11px; }
    .result-summary { flex-wrap: wrap; gap: 16px; padding: 17px; }
    .result-score { min-width: 105px; padding-right: 14px; }
    .result-score > strong { font-size: 25px; }
    .result-message { min-width: 130px; }
    .result-summary > .button { width: 100%; }
    .progress-overview { flex-wrap: wrap; padding: 14px 0; }
    .overview-stat { min-width: 38%; }
    .progress-overview .button { flex: 1; }
    .history-row { grid-template-columns: 1fr 83px; gap: 5px 10px; padding: 12px 8px; }
    .history-head { display: none; }
    .history-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
    .history-row > span:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
    .history-result { grid-column: 2; grid-row: 2; justify-content: flex-end; }
    .auth-layout { grid-template-columns: 1fr; gap: 25px; padding: 30px 0 50px; }
    .auth-aside { min-height: 250px; padding: 27px; }
    .auth-aside h1 { font-size: 43px; }
    .auth-panel { padding: 0 4px; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-stats > div:nth-child(2) { border-right: 0; }
    .admin-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-question-panel { grid-row: auto; }
    .admin-inline-fields { grid-template-columns: 1fr 1fr; }
    .admin-form-panel:last-child .admin-inline-fields { grid-template-columns: 1fr 1fr; }
    .site-footer { flex-wrap: wrap; justify-content: space-between; min-height: 78px; padding: 14px 5%; gap: 8px 15px; }
    .site-footer > span:nth-child(2) { display: none; }
}