:root{--purple:#5451e7;--ink:#1a1a2e;--muted:#626577;--line:#dfdfef;--paper:#f7f7fc;--lime:#c6efd3}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;font:15px/1.6 Inter,system-ui,sans-serif;color:var(--ink);background:var(--paper)}a{color:var(--purple);text-underline-offset:3px}button,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #3480e0;outline-offset:4px}nav{max-width:1200px;margin:auto;padding:22px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}nav>a:last-child{font-size:13px;font-weight:600;text-decoration:none}.brand{font-family:'Space Grotesk',Inter,sans-serif;font-size:25px;font-weight:700;text-decoration:none;letter-spacing:-1px}.brand span{display:block;font:11px Inter,sans-serif;letter-spacing:0;color:var(--muted)}header{max-width:1136px;margin:8px auto 54px;padding:46px 48px;border-radius:24px;background:var(--purple);color:white;display:flex;gap:32px;align-items:center;overflow:hidden}.hero{flex:1;min-width:0}.eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.14em;margin:0 0 14px}header .eyebrow{color:var(--lime)}h1{font-size:clamp(34px,4.8vw,62px);line-height:1.08;letter-spacing:-2px;margin:0 0 22px;font-weight:900}.intro{max-width:610px;font-size:16px;color:#eeeeff;margin-bottom:26px}.hero-bottom{display:flex;flex-wrap:wrap;gap:18px;align-items:center}.hero-bottom span{font-size:12px}.hero-bottom a{background:var(--lime);color:#172a1e;padding:10px 17px;border-radius:9px;font-size:13px;font-weight:700;text-decoration:none}.tower{width:220px;flex-shrink:0;transform:rotate(7deg);display:grid;gap:9px}.tower div{height:75px;border:2px solid #ffffff66;border-radius:12px;display:grid;place-items:center;font-size:30px;font-weight:800;color:#e4ffec}.tower div:nth-child(1){width:60%;justify-self:center}.tower div:nth-child(2){width:80%;justify-self:center}main{max-width:1136px;margin:auto;padding:0 0 48px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.section-heading .eyebrow{color:var(--purple);margin-bottom:8px}h2{margin:0;font-size:clamp(25px,3vw,34px);line-height:1.2;letter-spacing:-1px}.section-heading button{border:1px solid var(--line);background:white;padding:10px 16px;border-radius:9px;font-size:13px;font-weight:600;white-space:nowrap}#filters{background:white;padding:24px;border:1px solid var(--line);border-radius:16px}fieldset{padding:0;border:0;margin:0 0 20px}legend,label{font-size:12px;font-weight:700;margin-bottom:9px}legend{padding:0}.grades{display:flex;flex-wrap:wrap;gap:8px}.grades button{padding:9px 18px;border-radius:8px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-weight:600;font-size:14px}.grades button[aria-pressed=true]{background:var(--purple);border-color:var(--purple);color:white}.selects{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}label{display:block;margin:0}select{display:block;width:100%;margin-top:6px;background:white;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--ink);font-size:14px}.results-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0;color:var(--muted);font-size:13px}.results-bar p{margin:0}#reset{background:none;border:0;color:var(--purple);font-size:12px;text-decoration:underline;text-underline-offset:3px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{padding:23px;border:1px solid var(--line);border-radius:14px;background:white;display:flex;flex-direction:column;border-top:4px solid var(--purple)}.card[data-game="Башня"]{border-top-color:#36b26b}.card[data-game="Страна мифов"]{border-top-color:#3480e0}.meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.grade{background:#f0eeff;color:#3d3ab0;padding:3px 8px;border-radius:5px;font-weight:700}.card h3{font-size:23px;letter-spacing:-.6px;margin:18px 0 8px}.card .date{margin:0 0 20px;color:var(--muted);font-size:13px}.links{display:grid;gap:9px;margin-top:auto}.pdf{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-size:13px;font-weight:600}.pdf.tasks{background:var(--purple);color:white;border-color:var(--purple)}.pdf span{font-size:10px;font-weight:400;white-space:nowrap}.missing{color:var(--muted);font-size:11px;margin:8px 0 0}.empty{text-align:center;background:white;padding:42px 24px;border:1px dashed var(--line);border-radius:14px;font-size:15px;color:var(--muted)}aside{margin-top:34px;padding:23px 26px;border-left:4px solid #36b26b;background:#edf7ef;border-radius:0 12px 12px 0}aside p{margin:7px 0 0;max-width:800px;font-size:13px}.source{font-size:12px;color:var(--muted);margin-top:24px;max-width:860px}footer{max-width:1136px;margin:auto;padding:24px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;padding:12px 20px;max-width:90vw;z-index:10;text-align:center}@media(max-width:1190px){header,main,footer{margin-left:24px;margin-right:24px}}@media(max-width:760px){nav{padding:18px 20px}.brand{font-size:23px}nav>a:last-child{font-size:11px}header{padding:30px 24px;margin-bottom:32px}.tower{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{align-items:flex-start;flex-direction:column}.selects{grid-template-columns:1fr}.grades button{padding:8px 12px}#filters{padding:20px}.source{font-size:11px}}@media(max-width:460px){header,main,footer{margin-left:16px;margin-right:16px}.cards{grid-template-columns:1fr}h1{letter-spacing:-1px}.hero-bottom{gap:13px}footer{gap:16px}.results-bar{align-items:flex-start}}
