:root{
  color-scheme: light;
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f8f8fa;
  --surface-3:#f1f2f4;
  --text:#111111;
  --muted:#555b66;
  --soft:#e6e8ee;
  --soft-strong:#d6d9e2;
  --brand:#d93025;
  --brand-dark:#b3261e;
  --brand-soft:#fff0ee;
  --good:#137a45;
  --good-bg:#e9f8ef;
  --bad:#c62828;
  --bad-bg:#fff0f0;
  --shadow:0 18px 44px rgba(17,17,17,.07);
  --shadow-soft:0 8px 24px rgba(17,17,17,.045);
  --radius:24px;
  --radius-sm:16px;
  --max:1120px;
  --app:720px;
}
html[data-theme="dark"]{
  color-scheme: dark;
  --bg:#0b0d12;
  --surface:#141821;
  --surface-2:#1b202b;
  --surface-3:#232a37;
  --text:#f7f8fb;
  --muted:#b8bfcc;
  --soft:#2b3342;
  --soft-strong:#3b4658;
  --brand:#ff625a;
  --brand-dark:#ff7b74;
  --brand-soft:#331b1d;
  --good:#62e093;
  --good-bg:#10271b;
  --bad:#ff8a83;
  --bad-bg:#35191b;
  --shadow:0 22px 56px rgba(0,0,0,.34);
  --shadow-soft:0 10px 28px rgba(0,0,0,.22);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button{font:inherit;-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 70%,white);outline-offset:3px}
.wrap{width:min(var(--max),calc(100% - 40px));margin-inline:auto}
.app-wrap{width:min(var(--app),calc(100% - 28px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 91%,transparent);backdrop-filter:blur(16px);border-bottom:1px solid var(--soft)}
.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:-.04em;font-size:22px;white-space:nowrap}
.mark{width:34px;height:34px;border-radius:12px;background:var(--brand);color:white;display:grid;place-items:center;font-size:18px;box-shadow:0 10px 28px color-mix(in srgb,var(--brand) 28%,transparent)}
.nav-links{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-left:auto;min-width:0}
.nav-links a{padding:9px 11px;border-radius:999px;color:var(--muted);font-weight:750;font-size:14px;line-height:1;white-space:nowrap}
.nav-links a:hover,.nav-links a[aria-current="page"]{background:var(--surface-2);color:var(--text)}
.theme{border:1px solid var(--soft);background:var(--surface);color:var(--text);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow-soft);flex:0 0 auto}
.hero{padding:70px 0 36px}.eyebrow{color:var(--brand);font-weight:850;font-size:14px;letter-spacing:.02em;margin:0 0 10px}.hero h1,.page-title{font-size:clamp(40px,7vw,74px);line-height:.95;letter-spacing:-.07em;margin:14px 0 18px;max-width:860px}.lead{font-size:clamp(18px,2.4vw,22px);color:var(--muted);max-width:690px;margin:0}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn{border:0;border-radius:18px;padding:15px 20px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}.btn:active{transform:translateY(1px) scale(.99)}.btn[disabled]{opacity:.48;cursor:not-allowed}.btn-primary{background:var(--brand);color:white;box-shadow:0 12px 26px color-mix(in srgb,var(--brand) 27%,transparent)}.btn-primary:hover:not([disabled]){background:var(--brand-dark)}.btn-secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--soft)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card{background:var(--surface);border:1px solid var(--soft);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.cat-card{min-height:190px;display:flex;flex-direction:column;justify-content:space-between;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.cat-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--brand) 38%,var(--soft));box-shadow:0 22px 55px rgba(17,17,17,.09)}.cat-card h2{margin:0;font-size:24px;letter-spacing:-.04em}.cat-card p{color:var(--muted);margin:12px 0 22px}.meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13px;font-weight:750}.pill{border:1px solid var(--soft);background:var(--surface-2);border-radius:999px;padding:7px 10px}.section{padding:34px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.section h2{font-size:32px;letter-spacing:-.05em;margin:0}.test-list{display:grid;gap:12px}.test-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;background:var(--surface);border:1px solid var(--soft);border-radius:22px;padding:20px 22px;box-shadow:var(--shadow-soft)}.test-row strong{font-size:19px;letter-spacing:-.03em}.test-row p{margin:6px 0 0;color:var(--muted)}.row-cta{background:var(--brand);color:#fff;border-radius:999px;padding:11px 15px;font-weight:850;font-size:14px}.breadcrumbs{padding-top:22px;color:var(--muted);font-size:14px;font-weight:650}.breadcrumbs a{color:var(--muted)}
.test-shell{padding:24px 0 56px}.test-card{background:var(--surface);border:1px solid var(--soft);border-radius:30px;box-shadow:var(--shadow);padding:clamp(22px,4vw,36px)}.test-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.progress-text{color:var(--muted);font-weight:750}.bar{height:10px;background:var(--surface-2);border-radius:999px;overflow:hidden;border:1px solid var(--soft);margin-bottom:28px}.bar span{display:block;height:100%;width:0;background:var(--brand);border-radius:999px;transition:width .22s ease}.question{font-size:clamp(25px,5vw,38px);line-height:1.08;letter-spacing:-.055em;margin:0 0 24px}.answers{display:grid;gap:12px}.answer{width:100%;border:1px solid var(--soft);background:var(--surface-2);color:var(--text);border-radius:20px;padding:18px;text-align:left;font-weight:780;cursor:pointer;min-height:66px;display:flex;align-items:center;gap:12px;transition:transform .12s ease,border-color .12s ease,background .12s ease,box-shadow .12s ease}.answer:hover:not([disabled]){border-color:color-mix(in srgb,var(--brand) 35%,var(--soft));box-shadow:0 10px 22px color-mix(in srgb,var(--brand) 10%,transparent)}.answer:active:not([disabled]){transform:scale(.995)}.answer[disabled]{cursor:default}.answer.correct{background:var(--good-bg);border-color:var(--good);color:var(--text)}.answer.wrong{background:var(--bad-bg);border-color:var(--bad);color:var(--text)}.letter{width:30px;height:30px;border-radius:10px;background:var(--surface);border:1px solid var(--soft);display:grid;place-items:center;flex:0 0 auto;font-weight:900}.feedback{margin-top:16px;border-radius:18px;padding:16px;background:var(--surface-2);border:1px solid var(--soft);color:var(--muted);display:none}.feedback.show{display:block}.feedback strong{color:var(--text)}.test-actions{display:flex;gap:12px;margin-top:22px}.test-actions .btn{flex:1;min-height:56px}.start-panel{text-align:left}.start-panel h1{font-size:clamp(34px,7vw,56px);line-height:.98;letter-spacing:-.065em;margin:8px 0 16px}.select-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0}.choice{border:1px solid var(--soft);border-radius:18px;background:var(--surface-2);color:var(--text);padding:16px 10px;text-align:center;cursor:pointer;font-weight:900;line-height:1.05;min-height:72px;transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease}.choice small{display:block;margin-top:5px;color:var(--muted);font-size:12px;font-weight:750}.choice:hover{border-color:var(--soft-strong);box-shadow:var(--shadow-soft)}.choice.active{background:var(--brand);border-color:var(--brand);color:white;box-shadow:0 14px 28px color-mix(in srgb,var(--brand) 27%,transparent)}.choice.active small{color:rgba(255,255,255,.86)}html[data-theme="dark"] .choice{background:#202633;border-color:#343d4e;color:#f8fafc}html[data-theme="dark"] .choice small{color:#c7cedb}html[data-theme="dark"] .choice:hover{background:#273042;border-color:#485469}html[data-theme="dark"] .choice.active{background:#ff625a;border-color:#ff8a83;color:#111318;box-shadow:0 14px 34px rgba(255,98,90,.28)}html[data-theme="dark"] .choice.active small{color:#241010}.result-score{font-size:64px;font-weight:900;letter-spacing:-.08em;line-height:1;margin:8px 0}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.stat{background:var(--surface-2);border:1px solid var(--soft);border-radius:20px;padding:16px}.stat b{font-size:26px;display:block;letter-spacing:-.04em}.stat span{color:var(--muted);font-size:13px;font-weight:750}.review{margin-top:18px;display:grid;gap:10px}.review h2{font-size:24px;letter-spacing:-.04em;margin:8px 0 0}.review-item{padding:14px;border:1px solid var(--soft);border-radius:16px;background:var(--surface-2);font-size:14px}.footer{border-top:1px solid var(--soft);padding:34px 0;color:var(--muted);font-size:14px;margin-top:40px}.footer .wrap{display:flex;justify-content:space-between;gap:16px}.seo-block{color:var(--muted);font-size:15px;max-width:760px}.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:16px;z-index:99;background:var(--brand);color:#fff;padding:10px;border-radius:10px}
@media(max-width:1080px){.nav-links a{padding-inline:9px;font-size:13px}.brand{font-size:20px}}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.nav{height:auto;min-height:68px;padding:12px 0;align-items:center;flex-wrap:wrap}.nav-links{order:3;width:100%;overflow:auto;justify-content:flex-start;padding:4px 0 2px;scrollbar-width:none}.nav-links::-webkit-scrollbar{display:none}.nav-links a{padding:10px 13px;background:var(--surface-2);border:1px solid var(--soft)}}
@media(max-width:620px){body{background:linear-gradient(180deg,var(--surface-2) 0,var(--bg) 170px)}.wrap{width:min(100% - 28px,var(--max))}.app-wrap{width:min(100% - 22px,var(--app))}.site-header{border-bottom-color:color-mix(in srgb,var(--soft) 72%,transparent)}.nav{padding:10px 0 9px;gap:10px}.brand{font-size:18px}.mark{width:32px;height:32px;border-radius:11px}.theme{width:40px;height:40px}.nav-links{margin-left:0;gap:8px}.nav-links a{font-size:13px;border-radius:14px}.hero{padding:38px 0 24px}.hero h1,.page-title{font-size:42px;letter-spacing:-.065em}.lead{font-size:17px}.grid{grid-template-columns:1fr;gap:12px}.card{padding:20px;border-radius:22px;box-shadow:var(--shadow-soft)}.cat-card{min-height:146px}.section{padding:25px 0}.section h2{font-size:28px}.test-row{grid-template-columns:1fr;padding:17px;border-radius:20px}.row-cta{text-align:center;padding-block:13px}.test-shell{padding:14px 0 44px}.test-card{border-radius:28px;padding:20px 18px;box-shadow:0 12px 34px rgba(17,17,17,.08)}html[data-theme="dark"] .test-card{box-shadow:0 16px 38px rgba(0,0,0,.34)}.test-top{display:grid;gap:4px;margin-bottom:18px}.progress-text{font-size:13px}.bar{height:9px;margin-bottom:22px}.question{font-size:28px;line-height:1.12;margin-bottom:20px}.answers{gap:10px}.answer{border-radius:18px;padding:16px 14px;min-height:62px;font-size:16px;line-height:1.25}.letter{width:29px;height:29px;border-radius:9px}.feedback{border-radius:17px;padding:14px;font-size:15px}.start-panel h1{font-size:36px}.select-grid{grid-template-columns:repeat(2,1fr);gap:9px;margin:22px 0}.choice{min-height:70px;border-radius:17px;padding:15px 8px;font-size:16px}.result-score{font-size:58px}.result-grid{grid-template-columns:1fr;gap:9px}.stat{border-radius:18px}.footer .wrap{display:block}.hero-actions .btn{width:100%}.test-actions{position:sticky;bottom:10px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(14px);padding:9px;border:1px solid var(--soft);border-radius:22px;box-shadow:0 12px 28px rgba(0,0,0,.10);z-index:10}.test-actions .btn{min-height:54px;border-radius:16px}.btn{min-height:50px}}
