:root {
  --red: #116da8;
  --red-dark: #074b7c;
  --navy: #082d4c;
  --blue: #1784c7;
  --cyan: #59bde5;
  --gold: #f2d44f;
  --cream: #f3f8fc;
  --paper: #ffffff;
  --ink: #102d45;
  --muted: #5d7487;
  --line: #dce8f1;
  --shadow: 0 18px 45px rgba(17, 78, 120, .11);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); }
button, select, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: white; color: var(--navy); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.topbar { height: 76px; padding: 0 3vw; background: linear-gradient(105deg, #073d68, #0b659d 58%, #198bc5); color: white; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; box-shadow: 0 5px 20px rgba(3, 48, 82, .2); }
.brand { border: 0; background: transparent; color: white; display: flex; align-items: center; gap: .8rem; text-align: left; padding: 0; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 48px; padding: 3px; border: 1px solid rgba(255,255,255,.42); border-radius: 10px; background: rgba(255,255,255,.95); overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark.badge-fallback::after { content: "SC"; color: var(--navy); font-family: Georgia, serif; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 1.18rem; }
.brand small { font-size: .7rem; opacity: .75; margin-top: .15rem; letter-spacing: .03em; }
.motto { margin: 0; font-family: Georgia, serif; font-style: italic; opacity: .9; }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: white; border-radius: 10px; width: 42px; height: 42px; font-size: 1.25rem; }
.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 1.5rem 1rem; display: flex; flex-direction: column; position: sticky; top: 76px; height: calc(100vh - 76px); z-index: 20; }
.side-nav { display: grid; gap: .35rem; }
.nav-item { border: 0; background: transparent; color: #536174; display: flex; gap: .8rem; align-items: center; width: 100%; padding: .8rem .9rem; border-radius: 10px; text-align: left; font-weight: 650; font-size: .89rem; }
.nav-item span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--red); }
.nav-item:hover { background: #f7f2ec; color: var(--ink); }
.nav-item.active { background: #f8eaeb; color: var(--red); }
.side-quote { margin-top: auto; background: linear-gradient(145deg, #082d4c, #0d659a); color: white; padding: 1rem; border-radius: 15px; font-family: Georgia, serif; font-size: .86rem; line-height: 1.45; }
.side-quote span { font-size: 1.4rem; }
.side-quote p { margin: .45rem 0 0; }
main { min-width: 0; }
.page { display: none; max-width: 1220px; margin: auto; padding: 2.3rem clamp(1.2rem, 4vw, 4.5rem) 4rem; animation: enter .32s ease; }
.page.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } }
.hero { min-height: 420px; border-radius: 28px; overflow: hidden; background: linear-gradient(118deg, #063b65 0%, #08679f 57%, #4ab4df 100%); color: white; display: grid; grid-template-columns: 58% 42%; box-shadow: 0 22px 55px rgba(5, 66, 108, .22); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 13% 20%, rgba(255,255,255,.12), transparent 24%), linear-gradient(115deg, transparent 55%, rgba(255,255,255,.09)); }
.hero-content { padding: clamp(2.2rem, 5vw, 4.4rem); position: relative; z-index: 2; align-self: center; }
.eyebrow, .section-kicker { font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: #fff07e; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: .7rem 0 .5rem; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .97; max-width: 600px; letter-spacing: -.035em; }
.hero h1 em { color: #fff07e; font-weight: inherit; }
.hero-subtitle { font-family: Georgia, serif; font-size: 1.15rem; margin: 1rem 0 .5rem; }
.hero-copy { color: rgba(255,255,255,.78); max-width: 550px; font-size: .95rem; line-height: 1.6; }
.hero-actions { display: flex; gap: .7rem; margin-top: 1.55rem; flex-wrap: wrap; }
.button { border: 0; border-radius: 10px; min-height: 44px; padding: .78rem 1.1rem; font-weight: 800; display: inline-flex; justify-content: center; align-items: center; gap: .65rem; }
.button-gold { background: #f4dc58; color: #163249; box-shadow: 0 8px 22px rgba(24,69,99,.25); }
.button-ghost { background: rgba(255,255,255,.08); color: white; border: 1px solid rgba(255,255,255,.35); }
.button-navy { background: var(--navy); color: white; }
.button-red { background: var(--red); color: white; }
.button-outline { background: white; color: var(--navy); border: 1px solid #d6dbe1; }
.button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.hero-visual { position: relative; overflow: hidden; min-height: 350px; }
.sky-glow { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,239,148,.5); top: 65px; right: 62px; filter: blur(2px); box-shadow: 0 0 70px rgba(255,255,255,.22); }
.mountain { position: absolute; width: 360px; height: 260px; transform: rotate(45deg); border-radius: 22px; }
.mountain-back { background: rgba(54,124,158,.68); bottom: -170px; right: 105px; }
.mountain-front { background: #123f5c; bottom: -157px; right: -105px; width: 450px; height: 360px; }
.lake { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, rgba(98,207,239,.72), #0b79b4); overflow: hidden; }
.lake span { position: absolute; display: block; height: 2px; border-radius: 50%; background: rgba(255,255,255,.5); }
.lake span:nth-child(1) { width: 45%; left: 9%; top: 24%; }.lake span:nth-child(2) { width: 60%; right: 3%; top: 48%; }.lake span:nth-child(3) { width: 35%; left: 26%; top: 72%; }
.hero-badge { position: absolute; z-index: 4; left: 9%; top: 23%; display: flex; align-items: center; gap: .9rem; width: min(320px, 84%); padding: 1rem 1.1rem; border-radius: 18px; background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 20px 45px rgba(6,45,75,.25); backdrop-filter: blur(8px); }
.hero-badge img { width: 70px; height: 86px; object-fit: contain; flex: 0 0 auto; }
.hero-badge small, .hero-badge strong, .hero-badge span { display: block; }
.hero-badge small { color: var(--blue); font-size: .61rem; letter-spacing: .12em; font-weight: 900; }
.hero-badge strong { font-family: Georgia, serif; font-size: 1.08rem; margin: .18rem 0; }
.hero-badge span { color: var(--muted); font-size: .72rem; }
.floating-note { position: absolute; z-index: 4; right: 5%; bottom: 9%; background: rgba(255,255,255,.93); color: var(--navy); border-radius: 12px; padding: .7rem .85rem; font-weight: 750; font-size: .72rem; box-shadow: var(--shadow); }
.floating-note span { color: var(--blue); }
.motivation-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; box-shadow: 0 8px 24px rgba(17,78,120,.05); }
.motivation-strip div { min-height: 76px; padding: .95rem 1rem; display: flex; align-items: center; gap: .65rem; border-right: 1px solid var(--line); }
.motivation-strip div:last-child { border-right: 0; }
.motivation-strip span { color: var(--cyan); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.motivation-strip strong { color: #244a67; font-size: .77rem; line-height: 1.35; }
.identity-card { margin-top: 1rem; padding: 1.35rem 1.6rem; border: 1px solid #cfe4f2; border-radius: 18px; background: linear-gradient(105deg, #ffffff 0%, #edf8fd 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; box-shadow: 0 10px 30px rgba(17,78,120,.06); }
.identity-badge { width: 70px; height: 82px; padding: 5px; border-radius: 15px; background: white; border: 1px solid #d7e7f2; display: grid; place-items: center; }
.identity-badge img { width: 100%; height: 100%; object-fit: contain; }
.identity-card h2 { font-family: Georgia, serif; font-size: 1.25rem; margin: .25rem 0 .3rem; color: var(--navy); }
.identity-card p { margin: 0; max-width: 720px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.identity-grade { min-width: 126px; padding: .85rem 1rem; border-left: 3px solid var(--cyan); }
.identity-grade small, .identity-grade strong, .identity-grade span { display: block; }
.identity-grade small { color: var(--blue); letter-spacing: .12em; font-weight: 900; font-size: .58rem; }
.identity-grade strong { color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; margin: .15rem 0; }
.identity-grade span { color: var(--muted); font-size: .67rem; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 2.7rem .2rem 1.1rem; }
.section-kicker { color: var(--red); }
.welcome-row h2 { margin: .35rem 0 0; font-family: Georgia, serif; font-size: 1.75rem; }
.welcome-row > p { color: var(--muted); max-width: 390px; margin: 0; font-size: .85rem; line-height: 1.5; }
.path-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.path-card { border: 1px solid var(--line); background: white; padding: 1rem; border-radius: 16px; min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--ink); box-shadow: 0 6px 18px rgba(17,78,120,.045); transition: .2s ease; position: relative; overflow: hidden; }
.path-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #8bd4ef; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.path-card:hover::after { transform: scaleX(1); }
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.path-icon { width: 42px; height: 42px; display: grid; place-items: center; color: white; border-radius: 12px; margin-bottom: .9rem; font-size: 1.25rem; }
.path-card.red .path-icon { background: #0b6fa9; } .path-card.blue .path-icon { background: #278fc7; } .path-card.navy .path-icon { background: var(--navy); } .path-card.gold .path-icon { background: #f0d95b; color: #415368; } .path-card.cyan .path-icon { background: #62bfe1; }
.path-card strong { font-family: Georgia, serif; font-size: .98rem; line-height: 1.2; }
.path-card small { color: var(--muted); line-height: 1.4; margin-top: .4rem; font-size: .74rem; }
.path-card b { color: var(--red); font-size: .73rem; margin-top: auto; padding-top: .8rem; }
.quick-plan { margin-top: 1rem; padding: 1.2rem 1.5rem; border: 1px solid #d7e8f2; border-radius: 17px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; background: #f9fdff; }
.quick-plan-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #dff3fb; color: var(--blue); font-size: 1.5rem; }
.quick-plan h3 { font-family: Georgia, serif; margin: .2rem 0; }
.quick-plan p { margin: 0; color: var(--muted); font-size: .78rem; }
.page-heading { border-radius: 22px; color: white; padding: 2rem 2.3rem; display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.page-heading .section-kicker { color: #ffd76e; }
.page-heading h1 { font-family: Georgia, serif; font-size: clamp(1.9rem, 4vw, 3rem); margin: .2rem 0 .25rem; }
.page-heading p { color: rgba(255,255,255,.78); margin: 0; }
.heading-icon { display: grid; place-items: center; flex: 0 0 66px; height: 66px; border-radius: 18px; font-size: 2rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.red-heading { background: linear-gradient(120deg, #07466f, #1688c6); }
.blue-heading { background: linear-gradient(120deg, #173e67, var(--blue)); }
.navy-heading { background: linear-gradient(120deg, #0a192d, var(--navy)); }
.gold-heading { background: linear-gradient(120deg, #0a547e, #46acd4); }
.cyan-heading { background: linear-gradient(120deg, #0a557a, #54b6d8); }
.interactive-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); min-height: 380px; box-shadow: var(--shadow); overflow: hidden; }
.start-panel { padding: clamp(1.5rem, 5vw, 3.5rem); text-align: center; max-width: 700px; margin: auto; }
.start-symbol { width: 80px; height: 80px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; font-size: 2.2rem; background: #f7e9ea; color: var(--red); }
.start-panel h2, .result-panel h2 { font-family: Georgia, serif; font-size: 2rem; }
.start-panel p { color: var(--muted); line-height: 1.65; }
.feature-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.feature-pills span { background: #f1f4f6; color: #536174; border-radius: 999px; padding: .5rem .75rem; font-size: .75rem; font-weight: 700; }
.test-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 500px; }
.test-aside { background: #f9f5ef; border-right: 1px solid var(--line); padding: 1.6rem; }
.test-aside h3 { font-family: Georgia, serif; }
.progress-bar { height: 7px; background: #e4ded6; border-radius: 10px; overflow: hidden; margin: .7rem 0; }
.progress-bar span { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width .3s; }
.progress-label { color: var(--muted); font-size: .76rem; }
.step-dots { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.step-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e9e3dc; color: #78818e; font-size: .67rem; font-weight: 800; }
.step-dot.done { background: var(--red); color: white; }
.question-panel { padding: clamp(1.5rem, 5vw, 3.5rem); }
.question-panel h2 { font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.3; margin-bottom: 1.5rem; }
.answer-list { display: grid; gap: .65rem; }
.answer-option { width: 100%; border: 1px solid #dfe2e5; background: white; border-radius: 12px; padding: .95rem 1rem; display: flex; align-items: center; gap: .8rem; text-align: left; color: var(--ink); }
.answer-option:hover, .answer-option.selected { border-color: var(--red); background: #fff7f7; }
.answer-letter { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; background: #eef1f3; border-radius: 8px; font-size: .75rem; font-weight: 850; }
.answer-option.selected .answer-letter { background: var(--red); color: white; }
.question-actions { display: flex; justify-content: space-between; gap: .7rem; margin-top: 1.5rem; }
.result-panel { padding: clamp(1.5rem, 5vw, 3.2rem); }
.result-hero { text-align: center; max-width: 720px; margin: auto; }
.result-badge { display: inline-flex; align-items: center; gap: .5rem; border-radius: 99px; background: #f6e6e8; color: var(--red); font-weight: 850; padding: .5rem .8rem; font-size: .75rem; }
.result-profile { color: var(--red); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.7rem 0; }
.result-box { border: 1px solid var(--line); border-radius: 15px; padding: 1.2rem; background: #fdfbf8; }
.result-box h3 { font-family: Georgia, serif; margin-bottom: .7rem; }
.result-box ul { padding-left: 1.2rem; margin: 0; color: var(--muted); line-height: 1.7; }
.notice { background: #eaf3f8; color: #30536c; border: 1px solid #d1e4ee; border-radius: 13px; padding: .9rem 1rem; display: flex; gap: .8rem; align-items: start; font-size: .82rem; margin-bottom: 1rem; }
.notice span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; background: #fff; border-radius: 50%; font-weight: 900; }
.notice p { margin: 0; line-height: 1.5; }
.notice.warning { background: #fff5dd; border-color: #edd9a8; color: #6d561f; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.filter-button { border: 1px solid #dadde0; background: white; color: #596578; padding: .55rem .8rem; border-radius: 99px; font-size: .78rem; font-weight: 750; }
.filter-button.active { background: var(--navy); color: white; border-color: var(--navy); }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.institution-card, .service-card, .opportunity-card { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 1.25rem; box-shadow: 0 4px 15px rgba(25,35,50,.035); }
.institution-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.card-logo { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: #eaf1f8; color: var(--blue); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 900; }
.card-title { font-family: Georgia, serif; font-size: 1.03rem; margin: 0 0 .35rem; line-height: 1.25; }
.meta { display: flex; gap: .35rem; flex-wrap: wrap; }
.tag { display: inline-flex; padding: .28rem .5rem; background: #f0f2f4; color: #5c6978; border-radius: 6px; font-size: .67rem; font-weight: 750; }
.card-copy { color: var(--muted); font-size: .78rem; line-height: 1.55; margin: .75rem 0; }
.card-footer { display: flex; justify-content: space-between; gap: .5rem; align-items: center; border-top: 1px solid #eeeae4; padding-top: .8rem; }
.card-footer small { color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--red); font-weight: 850; font-size: .75rem; padding: .4rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-card { position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--navy); }
.service-head { display: flex; gap: .9rem; align-items: center; }
.service-symbol { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--navy); font-weight: 900; }
.service-card ul { color: var(--muted); font-size: .79rem; line-height: 1.7; padding-left: 1.2rem; }
.verify-label { display: inline-flex; background: #fff1cc; color: #785c17; padding: .35rem .55rem; border-radius: 6px; font-size: .68rem; font-weight: 850; }
.opportunity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.opportunity-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.opportunity-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; background: #fff2c9; }
.opportunity-card p { color: var(--muted); font-size: .8rem; line-height: 1.55; }
.tip-banner { margin-top: 1rem; background: var(--navy); color: white; border-radius: 17px; padding: 1.3rem 1.5rem; display: flex; gap: 1rem; }
.tip-banner > span { font-size: 2rem; }
.tip-banner h3 { font-family: Georgia, serif; margin-bottom: .35rem; }
.tip-banner p { color: rgba(255,255,255,.75); margin: 0; line-height: 1.55; font-size: .82rem; }
.score-ring { width: 130px; height: 130px; margin: 1rem auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) var(--score), #e7ecee 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 11px; background: white; border-radius: inherit; }
.score-ring strong { position: relative; font-family: Georgia, serif; font-size: 2rem; }
.review-list { display: grid; gap: .6rem; text-align: left; margin-top: 1.3rem; }
.review-item { border-radius: 10px; padding: .8rem; font-size: .8rem; background: #f3f5f6; }
.review-item.correct { border-left: 4px solid #27805a; } .review-item.incorrect { border-left: 4px solid var(--red); }
.plan-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem); }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 800; font-size: .84rem; }
.field select, .field input { min-height: 48px; border: 1px solid #d7dce0; border-radius: 10px; background: white; color: var(--ink); padding: .65rem .75rem; width: 100%; }
.field select:focus, .field input:focus { outline: 3px solid rgba(153,31,45,.15); border-color: var(--red); }
.plan-form .form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: .5rem; }
.route { padding: clamp(1.5rem, 5vw, 3.2rem); }
.route-header { text-align: center; }
.route-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1.5rem 0; }
.route-step { background: #f7f3ed; border-radius: 14px; padding: 1rem; position: relative; }
.route-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; font-size: .72rem; font-weight: 850; margin-bottom: .7rem; }
.route-step small { color: var(--red); font-weight: 850; }
.route-step p { margin: .3rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
footer { max-width: 1220px; margin: 0 auto; padding: 1.8rem clamp(1.2rem, 4vw, 4.5rem) 2.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .72rem; }
footer p { margin: 0; }
.bottom-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8,17,30,.65); backdrop-filter: blur(4px); padding: 1rem; place-items: center; }
.modal-backdrop:not([hidden]) { display: grid; }
.modal { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: white; border-radius: 18px; padding: 1.5rem; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-close { position: absolute; right: 1rem; top: 1rem; width: 34px; height: 34px; border: 0; background: #f1f2f3; border-radius: 50%; font-size: 1.3rem; }
.modal h2 { font-family: Georgia, serif; padding-right: 2rem; }
.modal p, .modal li { color: var(--muted); line-height: 1.6; font-size: .85rem; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 1.3rem; transform: translate(-50%, 120px); background: #15263b; color: white; border-radius: 10px; padding: .75rem 1rem; font-size: .8rem; transition: .25s; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 65% 35%; }
  .student { right: 25%; }
}
@media (max-width: 820px) {
  .topbar { height: 66px; padding: 0 1rem; }
  .motto { display: none; }
  .menu-button { display: block; }
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 66px; left: 0; bottom: 0; width: 250px; height: auto; transform: translateX(-105%); transition: .25s; box-shadow: 15px 0 40px rgba(0,0,0,.15); }
  .sidebar.open { transform: none; }
  .page { padding: 1.2rem 1rem 5.5rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 2.3rem 1.4rem 2.7rem; }
  .hero-visual { display: block; min-height: 235px; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-badge { top: 13%; left: 6%; width: 285px; }
  .hero-badge img { width: 58px; height: 72px; }
  .floating-note { right: 5%; bottom: 8%; }
  .motivation-strip { grid-template-columns: repeat(2, 1fr); }
  .motivation-strip div:nth-child(2) { border-right: 0; }
  .motivation-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .identity-card { grid-template-columns: auto 1fr; }
  .identity-grade { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #d4e8f3; padding: .8rem 0 0; display: flex; align-items: center; gap: .55rem; }
  .identity-grade strong { margin: 0; }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  footer { margin-bottom: 60px; padding: 1.5rem 1rem; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; min-height: 64px; padding-bottom: env(safe-area-inset-bottom); background: white; border-top: 1px solid #ddd; box-shadow: 0 -6px 20px rgba(0,0,0,.07); }
  .bottom-nav button { border: 0; background: white; color: #78808d; font-size: .61rem; font-weight: 750; display: grid; place-items: center; align-content: center; gap: .18rem; }
  .bottom-nav span { font-size: 1.1rem; }
  .bottom-nav button.active { color: var(--red); }
  .test-shell { grid-template-columns: 1fr; }
  .test-aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem 1.3rem; }
  .test-aside h3 { display: none; }
  .step-dots { display: none; }
}
@media (max-width: 620px) {
  .brand small { display: none; }
  .brand strong { font-size: 1rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-content { padding-bottom: 2rem; }
  .hero-visual { min-height: 220px; }
  .hero-badge { left: 1rem; top: 1rem; width: calc(100% - 2rem); padding: .8rem; }
  .floating-note { display: none; }
  .motivation-strip { grid-template-columns: 1fr; }
  .motivation-strip div { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--line); }
  .motivation-strip div:last-child { border-bottom: 0; }
  .identity-card { grid-template-columns: auto 1fr; padding: 1rem; gap: .85rem; }
  .identity-badge { width: 58px; height: 68px; }
  .identity-card h2 { font-size: 1.08rem; }
  .identity-card p { grid-column: 1 / -1; }
  .welcome-row { align-items: start; flex-direction: column; gap: .5rem; padding-top: 2rem; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 128px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: .85rem; }
  .path-icon { grid-row: 1 / 4; margin: 0; }
  .path-card b { padding-top: .4rem; }
  .quick-plan { grid-template-columns: auto 1fr; }
  .quick-plan .button { grid-column: 1 / -1; }
  .page-heading { padding: 1.4rem; align-items: flex-start; }
  .heading-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.4rem; }
  .page-heading p { font-size: .8rem; }
  .cards-grid, .service-grid, .opportunity-grid, .result-grid { grid-template-columns: 1fr; }
  .institution-card { grid-template-columns: 1fr; }
  .card-logo { width: 44px; height: 44px; }
  .plan-form { grid-template-columns: 1fr; }
  .route-steps { grid-template-columns: 1fr; }
  footer { display: block; }
  footer p { margin-top: .5rem; }
  .question-panel { padding: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
