@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f7f8f3;
  --ink: #18272b;
  --muted: #687478;
  --line: #e1e6e2;
  --white: #fff;
  --lime: #e7fc79;
  --mint: #dcf7e9;
  --blue: #e4f1f8;
  --peach: #fae7d7;
  --green: #147d57;
  --red: #b34e48;
  --shadow: 0 20px 60px rgba(24,39,43,.07);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
button, summary { touch-action: manipulation; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
::selection { background: #d7eb67; color: var(--ink); }
:focus-visible { outline: 3px solid #4d9dab; outline-offset: 3px; }
.container { max-width: 1232px; width: calc(100% - 76px); margin: 0 auto; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.page-main { flex: 1; }
.site-header { position: relative; z-index: 20; height: 86px; border-bottom: 1px solid #e5e9e4; background: rgba(250,251,247,.97); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 44px; }
.brand { border: 0; background: transparent; display: flex; gap: 10px; align-items: center; padding: 0; flex: none; text-align: left; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--lime); border-radius: 14px; background: var(--ink); transform: rotate(-6deg); }
.brand-mark svg { transform: rotate(6deg); }
.brand-type { display: flex; flex-direction: column; line-height: 1.06; font-size: 13px; font-weight: 700; letter-spacing: -.03em; }
.brand-type b { font-size: 23px; letter-spacing: -.065em; font-weight: 800; }
.brand-period { color: #91b215; }
.main-nav { display: flex; gap: 7px; align-items: center; margin-left: auto; }
.nav-item { height: 39px; border: 0; border-radius: 12px; background: transparent; padding: 0 16px; color: #576568; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; transition: .16s; white-space: nowrap; }
.nav-item:hover { background: #edf0e9; color: var(--ink); }
.nav-item.active { background: #e9eee6; color: var(--ink); }
.nav-count { display: inline-grid; place-items: center; padding: 0 5px; height: 20px; min-width: 20px; border-radius: 9px; background: var(--peach); font-size: 10px; }
.category-switch { display: flex; background: #edf0ea; padding: 5px; border-radius: 13px; flex: none; gap: 3px; }
.category-switch button { border: 0; background: transparent; border-radius: 9px; padding: 9px 14px; font-size: 12px; font-weight: 800; letter-spacing: -.02em; color: #687174; transition: .16s; }
.category-switch button.selected { background: var(--ink); color: white; box-shadow: 0 3px 8px #18272b20; }
.category-switch button:not(.selected):hover { background: #dfe4db; }
.loading-screen { min-height: 430px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 18px; color: var(--muted); font-size: 14px; }
.loading-screen p { margin: 0; }
.spinner { display: block; width: 36px; height: 36px; border: 3px solid #d7e0d3; border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 13px 19px; border-radius: 12px; border: 1px solid transparent; min-height: 48px; font-size: 13px; font-weight: 800; line-height: 1.2; transition: transform .18s, box-shadow .18s, background .18s; text-align: center; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 19px #1723271c; }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn.large { min-height: 55px; padding: 14px 22px; font-size: 13px; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.primary:hover { background: #daf76b; }
.btn.secondary { background: white; color: var(--ink); border-color: #dce3dc; }
.btn.dark { background: var(--ink); color: white; }
.btn.ghost { background: transparent; border: 1px solid #dce3dc; color: var(--ink); }
.btn:disabled { opacity: .35; }
.section-kicker { font-size: 11px; color: #6c7c75; font-weight: 800; letter-spacing: .145em; text-transform: uppercase; }

/* Landing */
.home-page { background: var(--paper); }
.hero { min-height: 600px; display: grid; grid-template-columns: 1.01fr .99fr; gap: 55px; align-items: center; position: relative; padding-top: 30px; padding-bottom: 45px; }
.hero-copy { position: relative; z-index: 2; padding: 20px 0; }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: 10px; font-weight: 800; letter-spacing: .17em; color: #84918b; margin-bottom: 22px; }
.eyebrow-line { display: inline-block; height: 1px; width: 23px; background: #b7c5b5; }
.live-badge { display: inline-flex; gap: 8px; align-items: center; background: #ecf0e7; border: 1px solid #e4eae0; padding: 8px 11px; border-radius: 8px; font-size: 11px; color: #51605c; font-weight: 800; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #77ba7c; border-radius: 50%; box-shadow: 0 0 0 3px #77ba7c25; flex: none; }
.hero h1 { font-size: clamp(48px, 5vw, 79px); line-height: 1.07; font-weight: 800; letter-spacing: -.078em; margin: 25px 0 22px; }
.title-highlight { position: relative; z-index: 0; white-space: nowrap; }
.title-highlight:after { content: ''; display: block; position: absolute; z-index: -1; bottom: 7px; left: -1%; right: -2%; height: 23px; background: #e3f676; border-radius: 3px; transform: rotate(-1.4deg); }
.hero-description { max-width: 465px; font-size: 15px; line-height: 1.85; color: #687679; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 23px; color: #77847f; font-weight: 700; font-size: 11px; }
.hero-proof span { display: inline-flex; gap: 7px; align-items: center; }
.hero-proof svg { color: #7d9a47; }
.hero-visual { position: relative; min-height: 550px; display: grid; align-items: center; justify-items: center; isolation: isolate; }
.visual-glow { position: absolute; background: radial-gradient(ellipse, #e3efad 0, #dfeaca98 36%, transparent 70%); width: 780px; height: 560px; left: 50%; top: 48%; transform: translate(-50%,-50%); z-index: -2; }
.visual-ring { position: absolute; border: 1px solid #dce5c4; border-radius: 50%; z-index: -1; pointer-events: none; }
.ring-one { width: 555px; height: 555px; }
.ring-two { width: 440px; height: 440px; }
.exam-mock { width: min(420px, 100%); background: #fff; border: 1px solid #e5eae2; border-radius: 21px; padding: 19px 22px 22px; box-shadow: 0 30px 75px #21352b28; transform: rotate(3deg); }
.mock-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eef0ee; padding-bottom: 16px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #728079; }
.mock-head > span { display: flex; gap: 7px; align-items: center; }
.mock-head > span:last-child { color: var(--ink); font-size: 13px; letter-spacing: 0; }
.mock-palette { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 16px 0; }
.mock-palette span { display: grid; place-items: center; height: 24px; background: #f0f2ed; border-radius: 5px; color: #9ba49c; font-size: 9px; font-weight: 800; }
.mock-palette .mock-done { background: var(--mint); color: #39976d; }
.mock-palette .mock-active { background: var(--ink); color: white; }
.mock-image { border-radius: 10px; height: 189px; background: #edf3f2; overflow: hidden; display: grid; place-items: center; }
.mock-image img { max-height: 100%; width: 100%; object-fit: contain; }
.mock-question { padding: 18px 2px 13px; display: flex; flex-direction: column; gap: 7px; }
.mock-question small { color: #86918c; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.mock-question b { font-size: 14px; line-height: 1.5; }
.mock-answer { background: #f4f6f2; padding: 11px 12px; border-radius: 9px; display: flex; align-items: center; gap: 10px; color: #7c8782; font-size: 11px; font-weight: 600; }
.mock-radio { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1.5px solid #c4d0c6; background: white; }
.mock-arrow { margin-left: auto; color: #7c9183; }
.floating-note { position: absolute; bottom: 32px; left: -25px; background: white; border: 1px solid #eef0ea; box-shadow: 0 12px 35px #223b2b1a; display: flex; gap: 12px; align-items: center; border-radius: 13px; padding: 14px 17px; font-size: 11px; color: #77847d; line-height: 1.55; transform: rotate(-4deg); }
.floating-note svg { color: #9abb39; }
.floating-note b { color: var(--ink); font-size: 12px; }
.stats-strip { background: #fff; border-top: 1px solid #edf0ea; border-bottom: 1px solid #edf0ea; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1.06fr .95fr; }
.stat-block { min-height: 126px; display: flex; align-items: center; gap: 15px; border-right: 1px solid #edf0ea; padding: 20px 26px; }
.stat-block:first-child { padding-left: 0; }
.stat-block:last-child { border-right: 0; }
.stat-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 13px; flex: none; }
.stat-icon.pale { background: #e8f0f0; }
.stat-icon.lemon { background: #eef7cb; }
.stat-icon.peach { background: #fae9dd; }
.stat-block strong { display: block; font-size: 25px; letter-spacing: -.05em; line-height: 1.3; }
.stat-block strong span { font-size: 17px; color: #a9b3ab; }
.stat-block p { font-size: 11px; color: #818d88; margin: 1px 0 0; font-weight: 700; white-space: nowrap; }
.stat-message { gap: 12px; padding-left: 30px; }
.stat-message .small-squiggle { font-size: 32px; color: #adcb35; align-self: flex-start; }
.stat-message p { font-size: 12px; font-weight: 600; color: #798782; line-height: 1.8; white-space: normal; }
.stat-message b { color: var(--ink); }
.explore-section { padding-top: 91px; padding-bottom: 85px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(27px, 3vw, 37px); line-height: 1.15; margin: 12px 0 0; font-weight: 800; letter-spacing: -.065em; }
.section-aside { color: #8a958e; font-weight: 600; font-size: 12px; padding-bottom: 6px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.mode-card { position: relative; min-height: 338px; border: 1px solid #e7eae3; border-radius: 18px; padding: 27px 27px 24px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.mode-card-number { font-size: 10px; font-weight: 800; letter-spacing: .09em; color: #88938b; }
.mode-icon { width: 59px; height: 59px; display: grid; place-items: center; background: #f3f6d4; border-radius: 17px; margin: 31px 0 15px; }
.mode-card h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.06em; margin: 0 0 11px; }
.mode-card p { font-size: 12px; color: #697572; line-height: 1.8; font-weight: 500; max-width: 287px; margin-bottom: 20px; }
.mode-link { border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; font-weight: 800; font-size: 12px; text-align: left; position: relative; z-index: 2; }
.mode-link > span { width: 36px; height: 36px; border: 1px solid #d6ddd2; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.mode-link:hover > span { transform: translateX(4px); }
.mode-exam { background: var(--ink); color: #fff; border-color: var(--ink); }
.mode-exam .mode-card-number, .mode-exam p { color: #a6b7b5; }
.mode-exam .mode-icon { background: #e7fc79; color: var(--ink); }
.mode-exam .mode-link > span { border-color: #526368; }
.mode-decoration { position: absolute; right: -13px; top: 28px; font-weight: 800; font-size: 85px; line-height: 1; color: #ffffff08; transform: rotate(90deg); transform-origin: center; letter-spacing: -.07em; z-index: -1; }
.mode-tickets { background: #fffef9; }
.mode-tickets .mode-icon { background: #e6f2ed; }
.mode-errors { background: #edf6e9; }
.mode-errors .mode-icon { background: #e0eccf; }
.decor-lines { position: absolute; right: -18px; top: 37px; width: 116px; height: 120px; border: 16px solid #e8f0eb; border-radius: 30px; transform: rotate(26deg); opacity: .5; z-index: -1; }
.decor-orbit { position: absolute; top: -30px; right: -47px; width: 190px; height: 190px; border: 1px solid #d7eacc; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 34px #e4f2dc7a, 0 0 0 68px #e4f2dc4d; }
.home-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 42px; padding-bottom: 100px; }
.section-heading.small h2 { font-size: 29px; }
.inline-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; background: transparent; border: 0; font-weight: 800; font-size: 12px; white-space: nowrap; }
.inline-link:hover { text-decoration: underline; }
.quick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.ticket-button { border: 1px solid #e1e7e0; border-radius: 15px; background: white; min-width: 0; aspect-ratio: 1.13; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 17px; text-align: left; transition: transform .17s, border-color .17s, box-shadow .17s; }
.ticket-button:hover { transform: translateY(-3px); border-color: #b5cb87; box-shadow: 0 9px 17px #20342c12; }
.ticket-num { font-size: 25px; letter-spacing: -.065em; font-weight: 800; }
.ticket-status { color: #aebbb0; display: flex; align-self: flex-end; }
.ticket-button.perfect { background: #eff8e8; border-color: #cfe4c9; }
.ticket-button.perfect .ticket-status { color: #2b9868; }
.ticket-button.done { background: #fff4e2; border-color: #f0dec0; }
.ticket-button.done .ticket-status { color: #c98f32; font-size: 28px; line-height: 10px; }
.ticket-button.compact { padding: 11px; border-radius: 12px; aspect-ratio: .9; }
.ticket-button.compact .ticket-num { font-size: 19px; }
.topic-teaser { background: #e6efdc; border: 1px solid #dfebd6; border-radius: 18px; padding: 27px 30px; position: relative; overflow: hidden; }
.topic-teaser-icon { width: 55px; height: 55px; display: grid; place-items: center; background: #d5e7cd; border-radius: 16px; margin-bottom: 22px; }
.topic-teaser h3 { font-size: 25px; line-height: 1.2; margin: 13px 0; }
.topic-teaser p { color: #748376; font-size: 12px; line-height: 1.8; max-width: 300px; }
.topic-teaser .inline-link { margin-top: 5px; }

/* Shared inside pages */
.inner-page { padding-top: 69px; padding-bottom: 110px; }
.inner-page-header { max-width: 790px; margin-bottom: 42px; }
.inner-page-header h1 { font-size: clamp(35px, 4vw, 50px); line-height: 1.13; margin: 12px 0 16px; font-weight: 800; }
.inner-page-header p { font-size: 14px; color: var(--muted); line-height: 1.85; margin: 0; }
.list-summary { border: 1px solid var(--line); background: white; border-radius: 13px; padding: 17px 21px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #74817a; margin-bottom: 19px; }
.list-summary strong { color: var(--ink); }
.summary-dot { display: inline-block; width: 7px; height: 7px; background: #82b549; border-radius: 50%; margin-right: 8px; }
.ticket-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.ticket-grid .ticket-button { aspect-ratio: 1.28; }
.legend { display: flex; flex-wrap: wrap; gap: 23px; align-items: center; justify-content: flex-end; margin: 19px 1px 36px; color: #75817b; font-size: 11px; font-weight: 700; }
.legend > span, .sidebar-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.neutral { background: #e7ede7; border: 1px solid #c7d3c6; }
.legend-dot.yellow { background: #edc775; }
.legend-dot.green { background: #60bf87; }
.legend-dot.outline { background: white; border: 1px solid #becdc4; }
.legend-dot.blue { background: #5c91b4; }
.bottom-banner { background: #e9f1e4; border-radius: 17px; padding: 26px 28px; display: flex; align-items: center; gap: 22px; }
.banner-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #d7e7cf; flex: none; }
.bottom-banner h3 { font-size: 19px; margin: 0 0 5px; }
.bottom-banner p { font-size: 12px; margin: 0; color: #758575; }
.bottom-banner .btn { margin-left: auto; white-space: nowrap; }
.topic-toolbar { border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px 10px 20px; background: white; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.topic-toolbar > span { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 12px; }
.search-wrap { position: relative; min-width: 260px; display: flex; align-items: center; }
.search-wrap > span { position: absolute; left: 15px; font-size: 21px; color: #85928e; }
.search-wrap input { height: 40px; width: 100%; border-radius: 9px; border: 1px solid #e0e6df; background: #f8faf6; padding: 0 12px 0 39px; font-size: 12px; outline: none; }
.search-wrap input:focus { border-color: #a4bfa9; background: white; }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic-card { border: 1px solid var(--line); background: white; padding: 19px; border-radius: 13px; display: flex; align-items: center; gap: 14px; text-align: left; min-height: 104px; transition: .17s; }
.topic-card:hover { border-color: #bdceaa; background: #fbfdf9; transform: translateY(-2px); box-shadow: 0 7px 22px #18272b0c; }
.topic-card[hidden] { display: none; }
.topic-symbol { flex: none; width: 42px; height: 42px; background: #f0f5ea; color: #577b51; border-radius: 12px; display: grid; place-items: center; }
.topic-content { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.topic-content b { font-size: 12px; line-height: 1.55; }
.topic-content small { font-size: 10px; color: #92a098; font-weight: 700; }
.topic-arrow { flex: none; color: #a9b5ad; margin-left: auto; }
.search-empty { color: var(--muted); padding: 40px; text-align: center; }
.search-empty[hidden] { display: none; }
.empty-state { margin-top: 30px; min-height: 420px; padding: 70px 24px; border: 1px dashed #cddbc9; border-radius: 20px; background: #f1f6ed; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.empty-state > svg { color: #8aaf6d; }
.empty-state h1, .empty-state h2 { margin: 20px 0 11px; font-size: 28px; }
.empty-state p { color: #7e8e83; line-height: 1.8; font-size: 13px; max-width: 460px; }
.empty-state .btn { margin-top: 13px; }
.empty-state.full { margin: 70px 0; }
.errors-banner { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: #e8f1e4; padding: 33px 36px; border-radius: 19px; margin-bottom: 22px; }
.errors-eyebrow { font-size: 10px; letter-spacing: .1em; font-weight: 800; color: #6b8b70; }
.errors-banner h2 { font-size: 25px; margin: 12px 0 7px; }
.errors-banner p { color: #78867a; font-size: 12px; margin: 0; }
.errors-banner .btn { white-space: nowrap; }
.mistake-preview { border: 1px solid var(--line); background: white; border-radius: 16px; overflow: hidden; }
.mistake-row { display: grid; grid-template-columns: 60px 1fr 190px; align-items: center; gap: 20px; padding: 18px 24px; border-bottom: 1px solid #edf0ec; font-size: 12px; font-weight: 700; }
.mistake-row:last-child { border-bottom: none; }
.mistake-number { font-size: 11px; color: #a0aaa5; }
.mistake-tag { color: #8a9a8d; font-size: 10px; font-weight: 600; text-align: right; }
.more-hint { color: #87948c; font-size: 12px; text-align: center; margin-top: 24px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-card { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 28px; }
.about-icon { background: #edf4e9; color: #648858; width: 55px; height: 55px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 24px; }
.about-card h2 { font-size: 21px; }
.about-card p { color: #78867e; line-height: 1.8; font-size: 12px; }
.about-card a { color: #47784f; font-weight: 800; }
.about-note { background: #fff4e8; border-radius: 15px; padding: 19px 23px; display: flex; align-items: flex-start; gap: 14px; color: #8e6e49; margin-top: 19px; }
.about-note svg { flex: none; }
.about-note p { font-size: 12px; line-height: 1.8; margin: 0; }

/* Question player */
.quiz-page { padding-top: 32px; padding-bottom: 100px; }
.quiz-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; background: transparent; border: none; font-size: 12px; font-weight: 800; color: #8b9890; }
.back-link:hover { color: var(--ink); }
.quiz-category { color: #84918b; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.quiz-page-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.quiz-page-title h1 { font-size: clamp(29px, 3.8vw, 42px); margin: 9px 0 0; }
.timer-pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 13px; background: var(--ink); color: white; font-size: 23px; letter-spacing: -.035em; padding: 10px 20px; }
.timer-pill svg { color: var(--lime); }
.timer-pill.urgent { background: #ae4e48; }
.practice-pill { display: inline-flex; align-items: center; gap: 7px; background: #e8f2e4; padding: 12px 15px; border-radius: 10px; color: #4d885e; font-size: 12px; font-weight: 800; }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 25px; align-items: start; }
.question-area { min-width: 0; }
.progress-line { height: 5px; background: #e2e9e1; border-radius: 5px; margin-bottom: 11px; overflow: hidden; }
.progress-line > div { background: #83bb68; height: 100%; border-radius: inherit; transition: width .25s; }
.question-card { background: white; border: 1px solid #e1e8e1; box-shadow: 0 8px 45px #20342b08; border-radius: 18px; padding: 33px 39px 29px; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #899991; font-weight: 800; font-size: 10px; letter-spacing: .08em; margin-bottom: 21px; }
.topic-label { color: #81978b; background: #f2f6f0; padding: 7px 10px; border-radius: 8px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.extra-pill { background: #fff0dd; color: #a26e35; padding: 7px 10px; border-radius: 7px; letter-spacing: 0; }
.question-card h2 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.45; letter-spacing: -.045em; font-weight: 800; margin: 0 0 24px; }
.question-image { background: #f8faf7; border: 1px solid #edf1eb; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 11px; margin-bottom: 25px; min-height: 180px; width: 100%; cursor: zoom-in; }
.question-image:hover { border-color: #a8bfaa; }
.question-image img { width: auto; max-height: 345px; object-fit: contain; display: block; }
.image-zoom-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; color: #77877e; font-size: 11px; font-weight: 800; }
.mobile-palette { display: none; }
.image-dialog { width: min(980px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; background: white; border: 0; border-radius: 18px; box-shadow: 0 20px 75px #0b191ac0; overflow: hidden; }
.image-dialog:not([open]) { display: none; }
.image-dialog::backdrop { background: #102023d9; backdrop-filter: blur(5px); }
.image-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; font-size: 15px; border-bottom: 1px solid #e8eee8; }
.image-dialog-header button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: #eef2ec; border-radius: 12px; }
.image-dialog-viewport { margin: 13px 16px 0; max-height: min(70dvh, 750px); overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; border-radius: 10px; background: #f8faf7; }
.image-dialog-viewport img { display: block; width: max(100%, 760px); max-width: none; height: auto; }
.image-dialog > p { color: #70827a; font-size: 12px; padding: 0 17px 14px; margin: 10px 0 0; }
.answer-options { display: flex; flex-direction: column; gap: 9px; }
.answer-option { border: 1px solid #e0e6e1; background: white; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 15px; width: 100%; min-height: 65px; text-align: left; transition: .14s; }
.answer-option:not(:disabled):hover { background: #f7faf4; border-color: #aac5ae; }
.answer-option:disabled { opacity: 1; cursor: default; }
.answer-letter { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: #f0f3ee; border-radius: 9px; color: #667671; font-size: 12px; font-weight: 800; }
.answer-text { font-size: 12px; font-weight: 700; line-height: 1.65; flex: 1; }
.answer-option.correct { background: #ebf8ee; border-color: #98d1ad; }
.answer-option.correct .answer-letter { background: #c6ebd2; color: #24784f; }
.answer-option.correct .answer-result { color: #25885a; }
.answer-option.incorrect { background: #fff0ec; border-color: #e8b8ad; }
.answer-option.incorrect .answer-letter { color: #b5544b; background: #f8d8d2; }
.answer-option.incorrect .answer-result { color: #b5544b; }
.answer-option.chosen { background: #ebf3f8; border-color: #95bed2; }
.answer-option.chosen .answer-letter { background: #cbe3ee; color: #447d9b; }
.answer-option.muted { opacity: .58; }
.answer-note { color: #9ba8a1; display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 600; margin: 19px 0 0; line-height: 1.5; }
.answer-note svg { flex: none; }
.explanation { border-radius: 12px; padding: 18px 20px; margin-top: 21px; font-size: 12px; line-height: 1.85; }
.explanation-good { background: #eef8ee; color: #466e50; }
.explanation-bad { background: #fff3e9; color: #866047; }
.explanation-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: inherit; }
.explanation p { margin: 10px 0 0; }
.question-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf1ed; margin-top: 27px; padding-top: 23px; gap: 10px; }
.nav-label-short { display: none; }
.quiz-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card { background: #fff; border: 1px solid #e1e8e1; border-radius: 17px; padding: 25px 22px 22px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sidebar-heading h3 { font-size: 22px; margin: 6px 0 0; }
.count-badge { padding: 7px 9px; background: #f2f5f1; font-size: 12px; font-weight: 800; border-radius: 8px; color: #75837a; }
.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.palette-button { display: grid; place-items: center; border: 1px solid #e0e6df; border-radius: 8px; height: 40px; background: #fff; color: #6f8177; font-size: 12px; font-weight: 800; transition: .13s; }
.palette-button:hover { border-color: #acbda9; }
.palette-button.current { color: var(--ink); border: 2px solid #1e3b44; background: #f1f8e5; }
.palette-button.answered { background: #e4f0f7; color: #457d9b; border-color: #e4f0f7; }
.palette-button.correct { background: #e2f3e7; color: #287b54; border-color: #e2f3e7; }
.palette-button.wrong { background: #fce9e4; color: #a65950; border-color: #fce9e4; }
.palette-button.current.answered, .palette-button.current.correct, .palette-button.current.wrong { border: 2px solid var(--ink); }
.palette-blocks { display: grid; gap: 16px; }
.palette-block > span, .extra-palette > span { font-size: 9px; letter-spacing: .08em; color: #9aa9a0; font-weight: 800; display: block; margin-bottom: 7px; }
.palette-block > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.extra-palette { border-top: 1px solid #e9efea; margin-top: 18px; padding-top: 14px; }
.sidebar-legend { display: flex; flex-wrap: wrap; gap: 15px; font-size: 10px; color: #8d9b91; margin-top: 21px; border-top: 1px solid #edf0ed; padding-top: 18px; font-weight: 700; }
.sidebar-tip { background: #e9f2e3; border-radius: 14px; padding: 19px; display: flex; gap: 11px; align-items: start; }
.sidebar-tip svg { color: #5d9765; flex: none; }
.sidebar-tip b { font-size: 12px; }
.sidebar-tip p { margin: 6px 0 0; color: #799180; line-height: 1.65; font-size: 11px; }

/* Results */
.result-page { padding-top: 57px; padding-bottom: 100px; }
.result-hero { border-radius: 23px; text-align: center; padding: 55px 30px 42px; background: #e8f3e2; border: 1px solid #d7e9d1; }
.result-hero.retry { background: #f9ede5; border-color: #f2e0d3; }
.result-illustration { display: grid; place-items: center; width: 110px; height: 110px; background: white; border-radius: 50%; margin: 0 auto 26px; color: #69a16a; box-shadow: 0 10px 27px #1d48220b; }
.result-hero.retry .result-illustration { color: #bd835c; }
.result-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 13px 0 13px; }
.result-hero > p { font-size: 14px; line-height: 1.8; color: #728576; max-width: 520px; margin: 0 auto; }
.result-hero.retry > p { color: #957d6f; }
.result-reason { border-radius: 8px; background: #ffffff70; display: inline-block; padding: 10px 14px; margin-top: 18px; font-size: 12px; color: #947265; font-weight: 800; }
.result-hero > .early-stop { font-size: 11px; color: #9a8579; margin: 9px auto 0; }
.result-metrics { display: flex; justify-content: center; margin: 36px auto 27px; gap: 0; }
.result-metrics > div { padding: 0 37px; border-right: 1px solid #c7d8c5; display: flex; flex-direction: column; gap: 4px; }
.result-hero.retry .result-metrics > div { border-color: #e6d4ca; }
.result-metrics > div:last-child { border: none; }
.result-metrics b { font-size: 26px; letter-spacing: -.045em; }
.result-metrics b span { color: #96a69a; font-size: 17px; }
.result-metrics small { font-size: 11px; color: #809281; font-weight: 700; }
.result-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.result-review { max-width: 875px; margin: 66px auto 0; }
.review-count { font-size: 12px; color: #8c998e; }
.review-item { background: white; border: 1px solid #e0e8df; border-radius: 13px; margin-bottom: 9px; overflow: hidden; }
.review-item summary { list-style: none; padding: 20px; display: flex; align-items: center; gap: 17px; cursor: pointer; font-size: 12px; font-weight: 800; line-height: 1.5; }
.review-item summary::-webkit-details-marker { display: none; }
.review-item summary > svg { margin-left: auto; flex: none; transition: transform .15s; color: #9eafa0; }
.review-item[open] summary > svg { transform: rotate(180deg); }
.review-number { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: #fff0ea; color: #bf7665; border-radius: 10px; }
.review-body { border-top: 1px solid #edf1ec; padding: 19px 26px 27px 71px; font-size: 12px; line-height: 1.8; }
.review-body > img { width: auto; max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; margin-bottom: 13px; }
.wrong-choice { color: #b56960; }
.right-choice { color: #2a895a; display: flex; gap: 8px; align-items: flex-start; font-weight: 800; }
.right-choice svg { flex: none; margin-top: 3px; }
.review-explanation { color: #718179; background: #f5f8f3; padding: 13px 16px; border-radius: 8px; }
.review-after { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 12px; color: #85938a; }
.review-after p { margin: 0; }
.perfect-note { padding: 26px; text-align: center; color: #619668; display: flex; justify-content: center; gap: 10px; align-items: center; font-size: 14px; font-weight: 800; }

/* Footer */
.site-footer { background: #eef2eb; border-top: 1px solid #e0e8dd; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; gap: 17px 35px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; }
.footer-brand > span:last-child { font-weight: 500; color: #90a095; margin-left: 12px; font-size: 11px; }
.mini-mark { width: 24px; height: 24px; background: var(--ink); color: var(--lime); border-radius: 7px; display: grid; place-items: center; }
.footer-links { display: flex; margin-left: auto; gap: 22px; align-items: center; }
.footer-links a, .footer-links button { background: none; border: 0; padding: 0; color: #77897b; font-size: 11px; font-weight: 700; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { flex-basis: 100%; margin: 0; color: #a1ada2; font-size: 10px; }

@media (max-width: 1120px) {
  .container { width: calc(100% - 52px); }
  .header-inner { gap: 20px; }
  .main-nav { gap: 0; }
  .nav-item { padding: 0 12px; }
  .hero { gap: 20px; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 63px; }
  .stat-block { padding: 20px 14px; }
  .stat-icon { width: 43px; height: 43px; }
  .stat-message { display: none; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-block:nth-child(3) { border-right: 0; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .home-bottom { grid-template-columns: 1.25fr 1fr; }
  .ticket-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 900px) {
  .site-header { height: auto; }
  .header-inner { min-height: 82px; flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
  .main-nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid #e6ebe5; height: 45px; }
  .brand { margin-right: auto; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 55px; }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: 70px; }
  .hero-visual { min-height: 490px; }
  .exam-mock { transform: rotate(1.4deg); }
  .floating-note { left: 13%; }
  .mode-grid { gap: 11px; }
  .mode-card { padding: 23px 20px; min-height: 365px; }
  .mode-card h3 { font-size: 20px; }
  .mode-card p { font-size: 11px; }
  .home-bottom { grid-template-columns: 1fr; gap: 30px; }
  .ticket-grid { grid-template-columns: repeat(5, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-sidebar { display: none; }
  .mobile-palette { display: block; margin-bottom: 14px; border: 1px solid #dfe7df; border-radius: 13px; background: #fff; }
  .mobile-palette summary { list-style: none; display: flex; gap: 12px; align-items: center; min-height: 61px; padding: 10px 16px; cursor: pointer; }
  .mobile-palette summary::-webkit-details-marker { display: none; }
  .mobile-palette summary > svg:last-child { color: #71877a; transition: transform .18s; }
  .mobile-palette[open] summary > svg:last-child { transform: rotate(180deg); }
  .mobile-palette-icon { flex: none; display: grid; place-items: center; width: 39px; height: 39px; background: #eaf2e3; color: #3f6950; border-radius: 10px; }
  .mobile-palette-label { display: flex; flex-direction: column; flex: 1; gap: 3px; min-width: 0; }
  .mobile-palette-label b { font-size: 13px; }
  .mobile-palette-label small { font-size: 11px; font-weight: 600; color: #849389; }
  .mobile-palette-count { color: #365f45; background: #edf5e9; padding: 7px 9px; font-size: 12px; font-weight: 800; border-radius: 9px; }
  .mobile-palette-body { padding: 15px 16px 17px; border-top: 1px solid #edf1ed; }
  .mobile-palette-body .palette-button { min-height: 44px; height: 44px; font-size: 13px; }
  .mobile-palette-body .palette-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .mobile-palette-body .palette-blocks { grid-template-columns: repeat(4, 1fr); gap: 13px; }
  .mobile-palette-body .palette-block > div { gap: 5px; }
  .sidebar-card { padding: 18px 19px; }
  .sidebar-heading { margin-bottom: 13px; }
  .palette-blocks { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .palette-block > div { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .palette-button { height: 33px; border-radius: 6px; font-size: 11px; }
  .sidebar-tip { display: none; }
  .sidebar-legend { margin-top: 15px; }
  .quiz-page-title { margin-bottom: 20px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 69px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark svg { width: 22px; }
  .brand-type { font-size: 10px; }
  .brand-type b { font-size: 18px; }
  .category-switch { padding: 3px; }
  .category-switch button { font-size: 11px; padding: 8px 12px; }
  .main-nav { justify-content: space-between; min-height: 49px; }
  .nav-item { flex: 1; justify-content: center; padding: 0 3px; font-size: 12px; height: 44px; border-radius: 8px; }
  .nav-count { min-width: 17px; height: 17px; }
  .hero { padding-top: 29px; padding-bottom: 18px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 18px; font-size: 9px; }
  .hero h1 { font-size: clamp(45px, 11vw, 62px); margin: 22px 0; }
  .title-highlight:after { bottom: 5px; height: 15px; }
  .hero-description { font-size: 13px; line-height: 1.8; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 11px 16px; font-size: 10px; }
  .hero-visual { min-height: 328px; }
  .visual-glow { width: 420px; height: 325px; }
  .visual-ring { display: none; }
  .exam-mock { width: min(300px, 90%); padding: 13px 15px 15px; border-radius: 16px; }
  .mock-image { height: 125px; }
  .mock-head { padding-bottom: 12px; }
  .mock-palette { margin: 13px 0; }
  .mock-palette span { height: 21px; }
  .mock-question { padding: 13px 0; }
  .mock-question b { font-size: 12px; }
  .floating-note { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-block { min-height: 92px; padding: 15px 5px 15px 14px; gap: 10px; }
  .stat-block:first-child { padding-left: 0; }
  .stat-block:nth-child(2) { border-right: 0; }
  .stat-block:nth-child(3) { grid-column: 1 / -1; border-right: none; border-top: 1px solid #edf0ea; min-height: 76px; }
  .stat-icon { width: 39px; height: 39px; border-radius: 10px; }
  .stat-icon svg { width: 19px; }
  .stat-block strong { font-size: 22px; }
  .stat-block strong span { font-size: 14px; }
  .stat-block p { font-size: 10px; }
  .explore-section { padding-top: 62px; padding-bottom: 58px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 27px; }
  .section-aside { display: none; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 286px; padding: 23px 24px; }
  .mode-icon { margin: 19px 0 13px; width: 52px; height: 52px; }
  .mode-card h3 { font-size: 22px; }
  .mode-card p { max-width: 310px; }
  .home-bottom { padding-bottom: 65px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ticket-button.compact { aspect-ratio: 1; }
  .topic-teaser { padding: 24px; }
  .inner-page { padding-top: 47px; padding-bottom: 60px; }
  .inner-page-header { margin-bottom: 29px; }
  .inner-page-header h1 { font-size: 36px; }
  .inner-page-header p { font-size: 12px; }
  .list-summary { flex-direction: column; gap: 6px; padding: 14px 15px; }
  .ticket-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ticket-grid .ticket-button { aspect-ratio: 1; padding: 12px; border-radius: 12px; }
  .ticket-num { font-size: 21px; }
  .legend { justify-content: start; font-size: 10px; gap: 15px; }
  .bottom-banner { flex-wrap: wrap; padding: 21px; gap: 13px; }
  .bottom-banner .btn { width: 100%; margin: 5px 0 0; }
  .bottom-banner h3 { font-size: 17px; }
  .topic-toolbar { flex-direction: column; align-items: stretch; padding: 14px; }
  .search-wrap { min-width: 0; }
  .topics-grid { grid-template-columns: 1fr; gap: 9px; }
  .topic-card { min-height: 86px; }
  .errors-banner { flex-direction: column; align-items: stretch; padding: 24px; }
  .errors-banner h2 { font-size: 22px; }
  .mistake-row { display: flex; flex-wrap: wrap; gap: 6px 15px; padding: 15px; }
  .mistake-number { flex: none; }
  .mistake-row > span:nth-child(2) { flex: 1; min-width: 170px; }
  .mistake-tag { flex-basis: 100%; text-align: left; margin-left: 54px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { padding: 24px; }
  .quiz-page { padding-top: 13px; padding-bottom: calc(115px + env(safe-area-inset-bottom, 0px)); }
  .quiz-topline { margin-bottom: 12px; }
  .quiz-page-title { align-items: center; margin-bottom: 13px; scroll-margin-top: 8px; }
  .quiz-page-title h1 { font-size: clamp(23px, 6.3vw, 28px); line-height: 1.15; }
  .quiz-page-title.exam-title { position: sticky; top: 0; z-index: 18; padding: 10px 0; background: rgba(247,248,243,.98); border-bottom: 1px solid #e0e8df; margin-bottom: 13px; }
  .quiz-page-title .section-kicker { font-size: 9px; }
  .timer-pill { gap: 6px; padding: 10px 12px; font-size: 17px; border-radius: 9px; white-space: nowrap; }
  .timer-pill svg { width: 16px; }
  .practice-pill { font-size: 0; padding: 11px; }
  .practice-pill svg { width: 20px; }
  .mobile-palette { margin-bottom: 12px; }
  .mobile-palette summary { min-height: 57px; padding: 8px 12px; gap: 10px; }
  .mobile-palette-icon { width: 37px; height: 37px; }
  .mobile-palette-body { padding: 13px 12px 15px; }
  .mobile-palette-body .palette-blocks { grid-template-columns: 1fr 1fr; gap: 13px 15px; }
  .mobile-palette-body .palette-block > div { gap: 5px; }
  .mobile-palette-body .sidebar-legend { padding-top: 13px; margin-top: 16px; }
  .sidebar-card { padding: 15px; }
  .sidebar-heading { margin-bottom: 15px; }
  .sidebar-heading h3 { font-size: 18px; }
  .palette-blocks { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .palette-block > div { gap: 4px; }
  .palette-button { height: 31px; }
  .sidebar-legend { padding-top: 10px; margin-top: 12px; }
  .question-card { padding: 21px 17px 24px; border-radius: 13px; }
  .question-meta { font-size: 9px; margin-bottom: 17px; }
  .topic-label { max-width: 49%; }
  .question-card h2 { font-size: clamp(20px, 5.3vw, 24px); line-height: 1.4; margin-bottom: 19px; }
  .question-image { margin-bottom: 20px; padding: 7px; min-height: 110px; }
  .question-image img { width: auto; max-width: 100%; height: auto; max-height: min(47svh, 345px); }
  .image-zoom-hint { font-size: 12px; margin: 10px 0 4px; }
  .answer-options { gap: 11px; }
  .answer-option { padding: 13px; min-height: 68px; gap: 12px; border-radius: 12px; }
  .answer-letter { width: 38px; height: 38px; border-radius: 9px; font-size: 14px; }
  .answer-text { font-size: 15px; line-height: 1.45; font-weight: 650; }
  .explanation { padding: 16px; font-size: 13px; scroll-margin-bottom: 95px; }
  .explanation-title { font-size: 14px; align-items: flex-start; }
  .answer-note { font-size: 12px; line-height: 1.6; }
  .question-footer { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dfe9e0; box-shadow: 0 -9px 35px #1d3c2920; gap: 11px; }
  .question-footer .btn { padding: 13px 15px; font-size: 14px; min-height: 52px; }
  .question-footer .btn:first-child { flex: 0 0 auto; }
  .question-footer .btn:last-child { flex: 1; }
  .question-footer .btn svg { width: 17px; flex: none; }
  .image-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 14px; }
  .image-dialog-header { padding: 10px 13px; }
  .image-dialog-viewport { margin: 10px 10px 0; max-height: 73dvh; }
  .image-dialog > p { padding: 0 14px 12px; font-size: 11px; }
  .result-page { padding-top: 30px; padding-bottom: 65px; }
  .result-hero { border-radius: 17px; padding: 35px 16px; }
  .result-illustration { width: 86px; height: 86px; }
  .result-illustration svg { width: 45px; }
  .result-hero h1 { font-size: 36px; }
  .result-hero > p { font-size: 12px; }
  .result-metrics { margin: 28px 0; }
  .result-metrics > div { padding: 0 13px; }
  .result-metrics b { font-size: 19px; }
  .result-metrics b span { font-size: 12px; }
  .result-metrics small { font-size: 9px; }
  .result-actions .btn { width: 100%; }
  .result-review { margin-top: 43px; }
  .review-item summary { padding: 14px; gap: 10px; }
  .review-number { width: 30px; height: 30px; }
  .review-body { padding: 16px; }
  .review-after { flex-direction: column; align-items: stretch; }
  .footer-inner { padding-top: 24px; padding-bottom: 25px; }
  .footer-brand { flex-wrap: wrap; }
  .footer-brand > span:last-child { flex-basis: 100%; margin-left: 0; }
  .footer-links { margin-left: 0; }
  .disclaimer { font-size: 9px; line-height: 1.6; }
}
@media (max-width: 360px) {
  .quiz-page-title h1 { font-size: 22px; }
  .quiz-page-title .section-kicker { font-size: 8px; letter-spacing: .07em; }
  .timer-pill { font-size: 15px; padding: 9px; }
  .question-card { padding-left: 13px; padding-right: 13px; }
  .question-footer { padding-left: 12px; padding-right: 12px; }
  .question-footer .btn { font-size: 13px; padding-inline: 11px; }
  .question-footer .nav-label-full { display: none; }
  .question-footer .nav-label-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Olivka identity: retain the established paper, lime, cards and quiz layout. */
.history-section { padding-top: 36px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.history-item { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.history-item span { font-size: 12px; color: var(--muted); }
.history-item small { color: var(--green); }
.brand-olivka { width: 65px; height: 65px; object-fit: contain; flex: none; }
.brand-type { min-width: 80px; font-size: 14px; }
.brand-type b { font-size: 24px; letter-spacing: -.04em; }
.category-badge { padding: 10px 14px; border-radius: 12px; background: #e9eee6; font-size: 12px; font-weight: 800; white-space: nowrap; }
.olivka-hero { width: min(510px, 100%); position: relative; filter: drop-shadow(0 18px 24px #194d6620); }
.save-status { min-height: 0; font-size: 13px; color: #366b54; line-height: 1.6; }
.save-status:not(:empty) { padding-top: 12px; padding-bottom: 12px; }
.save-status .btn { margin-left: 10px; }
.resume-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #e8f5e5; border: 1px solid #cce1c5; border-radius: 16px; margin-top: 20px; }
.resume-banner p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }
.link-code { display: block; overflow-wrap: anywhere; padding: 14px; background: #eef2e9; border-radius: 10px; }
.about-card:last-child { margin-top: 20px; }
@media(max-width: 700px) {
  .brand-olivka { width: 49px; height: 49px; }
  .brand-type { font-size: 12px; min-width: 68px; }
  .brand-type b { font-size: 21px; }
  .category-badge { font-size: 10px; padding: 8px; margin-left: auto; }
  .resume-banner { align-items: flex-start; flex-direction: column; }
  .olivka-hero { width: min(350px, 90%); }
  .save-status .btn { margin: 8px 0 0; }
}
