:root{--navy:#082452;--blue:#2459e8;--light:#eef4ff;--text:#334155;--line:#dbe4f0;--green:#15803d;--red:#c62828}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#eef4fd,#f8fafc 560px);font-family:Arial,sans-serif;color:var(--text)}.top{height:76px;background:#fff;border-bottom:1px solid #dde5f0}.topin{max-width:1120px;height:100%;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.top img{width:min(390px,60vw);display:block}.top a{font-weight:800;color:var(--navy);text-decoration:none}.wrap{max-width:1040px;margin:34px auto;padding:0 20px}.hero,.result-hero,.choice,.card,.task{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 14px 36px rgba(38,67,110,.08)}.hero{padding:48px;display:grid;grid-template-columns:1fr 280px;gap:42px;align-items:center}.hero.compact{padding:30px 38px;grid-template-columns:1fr 130px}.eyebrow{color:#2864c7;font-size:14px;font-weight:900;letter-spacing:.12em}.hero h1,.result-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.03;color:var(--navy);margin:12px 0 18px}.hero p,.result-hero p{font-size:19px;line-height:1.55;margin:0}.features{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.features span{background:#edf7ef;color:#166534;border-radius:999px;padding:8px 12px;font-weight:800}.math-card,.progress-box{background:linear-gradient(145deg,#082452,#2459e8);color:white;border-radius:22px;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center}.math-card strong,.progress-box strong{font-size:74px;line-height:1}.math-card span,.progress-box span{font-size:22px;font-weight:900}.math-card em{font-style:normal;margin-top:12px;color:#dbeafe}.progress-box{min-height:120px}.progress-box strong{font-size:46px}.choice,.card{padding:32px;margin-top:24px}.choice h2,.card h2{color:var(--navy);margin:0 0 20px;font-size:28px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.exam-choice input{position:absolute;opacity:0}.exam-choice span{display:block;border:2px solid var(--line);border-radius:18px;padding:24px;cursor:pointer}.exam-choice input:checked+span{border-color:var(--blue);background:#eff5ff;box-shadow:0 0 0 3px rgba(36,89,232,.1)}.exam-choice b{display:block;color:var(--navy);font-size:23px}.exam-choice small{display:block;margin-top:9px;font-size:15px;line-height:1.4}.btn{display:inline-block;border:0;border-radius:13px;background:var(--blue);color:#fff;text-decoration:none;font:800 17px Arial;padding:14px 21px;cursor:pointer}.btn.start{display:block;margin:24px auto 0;font-size:19px;padding:16px 30px}.btn.green{background:var(--green)}.btn.fb{background:#1877f2}.note{font-size:17px;line-height:1.55}.facebook{display:flex;gap:24px;align-items:center}.facebook h2{margin-bottom:8px}.facebook p{line-height:1.5}.facebook-logo{width:118px;height:118px;flex:0 0 118px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 8px 16px rgba(8,36,82,.14))}.alert{max-width:1040px;margin:0 auto 18px;padding:15px 18px;border-radius:14px;font-weight:800}.alert.error{background:#fee2e2;color:#991b1b}.alert.success{background:#dcfce7;color:#166534}.task{overflow:hidden;margin:22px 0}.task-head{display:flex;justify-content:space-between;gap:15px;background:#eff5ff;padding:16px 22px;color:var(--navy);font-weight:900}.task-head small{font-size:14px;color:#52647d}.source{padding:15px 22px 0;color:#52647d;font-weight:700}.task>img{display:block;max-width:100%;height:auto;margin:12px auto;padding:0 18px}.answers{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:18px 22px 24px;border-top:1px solid #edf0f5}.answers input{position:absolute;opacity:0}.answers span{display:block;border:2px solid var(--line);border-radius:13px;padding:14px;text-align:center;color:var(--navy);font-weight:900;font-size:20px;cursor:pointer}.answers input:checked+span{color:#1748db;border-color:#2b61ef;background:#eaf1ff}.finish{text-align:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;position:sticky;bottom:10px;z-index:2;box-shadow:0 12px 35px rgba(0,0,0,.12)}#answerWarning{margin:10px 0 0;color:#b91c1c;font-weight:800}.result-hero{text-align:center;padding:42px}.score-circle{width:180px;height:180px;border-radius:50%;margin:24px auto;background:linear-gradient(145deg,#2459e8,#763de0);color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 16px 32px rgba(36,89,232,.25)}.score-circle strong{font-size:52px}.score-circle span{font-weight:800}.area-row{padding:18px 0;border-top:1px solid #edf0f5}.area-row:first-child{border-top:0}.area-title{display:flex;justify-content:space-between;gap:15px;color:var(--navy)}.bar{height:11px;background:#e7edf5;border-radius:10px;overflow:hidden;margin:10px 0}.bar i{display:block;height:100%}.bar .good{background:#22a447}.bar .medium{background:#f3a712}.bar .weak{background:#df3b3b}.area-row p{margin:7px 0 0}.recommendations li{margin:12px 0;line-height:1.5}.mail-row{display:grid;grid-template-columns:1fr auto;gap:12px}.mail-row input{border:2px solid var(--line);border-radius:13px;padding:14px;font-size:17px}.privacy{display:block;margin-top:14px;line-height:1.4}.center{text-align:center}footer{text-align:center;padding:36px;color:#64748b}@media(max-width:720px){.top{height:65px}.topin{padding:0 15px}.top img{width:min(330px,67vw)}.topin>a:last-child{font-size:14px}.wrap{margin:18px auto;padding:0 12px}.hero,.hero.compact{grid-template-columns:1fr;padding:28px 24px;gap:24px}.hero h1{font-size:39px}.hero p{font-size:17px}.math-card{min-height:150px}.choice,.card{padding:23px 20px}.choice-grid{grid-template-columns:1fr}.facebook{align-items:flex-start}.facebook-logo{width:78px;height:78px;flex-basis:78px}.answers{grid-template-columns:1fr 1fr}.task-head{flex-direction:column;gap:4px}.finish{bottom:5px}.result-hero{padding:30px 20px}.result-hero h1{font-size:38px}.mail-row{grid-template-columns:1fr}.area-title{font-size:15px}}

.diagnosis-banner{margin:24px 0 0;border-radius:24px;overflow:hidden;box-shadow:0 14px 36px rgba(38,67,110,.14);background:#082452}.diagnosis-banner img{display:block;width:100%;height:auto}

.facebook-logo-link{position:relative;display:block;flex:0 0 118px;border-radius:50%;line-height:0;transition:transform .18s ease}.facebook-logo-link:hover{transform:scale(1.04)}.facebook-logo-link:focus-visible{outline:4px solid #93c5fd;outline-offset:4px}.facebook-badge{position:absolute;right:-9px;bottom:-7px;width:34px;height:34px;object-fit:cover;object-position:center;border-radius:50%;clip-path:circle(48% at 50% 50%);filter:drop-shadow(0 3px 6px rgba(0,0,0,.22))}
(max-width:720px){.facebook-logo-link{flex-basis:78px}.facebook-badge{right:-7px;bottom:-5px;width:28px;height:28px}}

/* Wspólny nagłówek i stopka Matematyka.org.pl */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid #dfe6f2;box-shadow:0 8px 22px rgba(15,23,42,.06);backdrop-filter:blur(14px)}
.site-topin{max-width:1220px;height:72px;min-height:72px;margin:auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative}
.site-logo{max-width:390px;min-width:0;flex:0 1 390px;display:flex;align-items:center}
.site-logo img{height:29px;max-width:100%;width:auto;display:block;object-fit:contain}
.site-main-nav{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:24px;font-size:16px;font-weight:900;white-space:nowrap;flex:0 0 auto}
.site-dropdown{position:relative}
.site-dropdown button{color:#071b3d;padding:24px 0 22px;border:0;border-bottom:3px solid transparent;background:none;font:inherit;cursor:pointer;line-height:1}
.site-dropdown:hover button,.site-dropdown:focus-within button{color:#263d66;border-bottom-color:#263d66}
.site-dropdown-menu{display:none;position:absolute;left:0;top:64px;min-width:230px;background:#fff;border:1px solid #dfe6f2;border-radius:16px;box-shadow:0 18px 40px rgba(15,23,42,.14);padding:8px;z-index:100}
.site-dropdown:nth-of-type(3) .site-dropdown-menu{left:auto;right:0}
.site-dropdown:hover .site-dropdown-menu,.site-dropdown:focus-within .site-dropdown-menu{display:block}
.site-dropdown-menu a{display:block;padding:12px 14px;color:#071b3d;text-decoration:none;border-radius:12px;font-size:15px;font-weight:900}
.site-dropdown-menu a:hover{background:#eef4ff;color:#263d66}
.site-home-symbol{display:flex;align-items:center;margin-left:8px}
.site-home-symbol img{width:38px;height:38px;display:block;transition:.25s ease}
.site-home-symbol img:hover{transform:rotate(12deg) scale(1.08)}
.site-menu-toggle,.site-hamb,.site-mobile-panel{display:none}
.site-footer{margin-top:42px;background:linear-gradient(135deg,#111827,#1f2937 65%,#263d66);color:#dbe4f3;text-align:left;padding:0}
.site-footer-main{max-width:1220px;margin:auto;padding:42px 22px 34px;display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:52px}
.site-footer h2,.site-footer h3{margin:0 0 15px;color:#fff}
.site-footer h2{font-size:23px;letter-spacing:.04em}.site-footer h3{font-size:17px}
.site-footer p{max-width:420px;margin:0;color:#cbd5e1;line-height:1.65}
.site-footer-links{display:grid;gap:10px}.site-footer a{color:#e8eef8;text-decoration:none;font-weight:700}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer-bottom{border-top:1px solid rgba(255,255,255,.13);padding:18px 22px 20px;color:#aebbd0;font-size:14px;text-align:center}
.site-footer-bottom a{color:#fff}
@media(max-width:1120px){
  .site-topin{height:70px;min-height:70px}.site-logo{max-width:calc(100% - 48px);flex:1 1 auto}.site-logo img{height:27px}.site-main-nav{display:none}.site-hamb{display:block;margin-left:auto;font-size:32px;line-height:1;cursor:pointer;color:#071b3d}
  .site-menu-toggle:checked~.site-mobile-panel{display:block;position:absolute;left:0;right:0;top:70px;background:#fff;padding:10px 22px 18px;box-shadow:0 18px 36px rgba(15,23,42,.15);border-top:1px solid #dfe6f2;max-height:calc(100vh - 70px);max-height:calc(100dvh - 70px);overflow-y:auto}
  .site-mobile-panel details{margin:0;padding:0;border:0;border-bottom:1px solid #dfe6f2}.site-mobile-panel summary,.site-mobile-panel>a{display:flex;align-items:center;justify-content:space-between;color:#071b3d;text-decoration:none;font-weight:900;padding:17px 4px;cursor:pointer;list-style:none;background:none;border-radius:0}.site-mobile-panel summary::-webkit-details-marker{display:none}.site-mobile-panel summary:after{content:'▾';font-size:15px;color:#263d66;margin-left:10px}.site-mobile-panel details[open] summary:after{content:'▴'}.site-mobile-panel details a{display:flex;color:#071b3d;text-decoration:none;font-weight:900;padding:13px 4px 13px 22px;border-top:1px solid #eef2f7}
  .site-footer-main{grid-template-columns:1fr;gap:28px}.site-footer h2,.site-footer h3,.site-footer p{text-align:center;margin-left:auto;margin-right:auto}.site-footer-links{justify-items:center}
}
@media(max-width:720px){.facebook-logo-link{flex-basis:78px}.facebook-badge{right:-7px;bottom:-5px;width:28px;height:28px}}
