.hero-slider{height:390px;border-radius:16px;background:#f2f7ff}.hero-theme-tests{--hero-bg:#f2f7ff;--hero-accent:#1355d8}.hero-theme-free{--hero-bg:#effaf5;--hero-accent:#13855a}.hero-theme-prepare{--hero-bg:#f5f3ff;--hero-accent:#7153bd}.hero-theme-affairs{--hero-bg:#eff9fc;--hero-accent:#087a91}.hero-theme-updates{--hero-bg:#fff8ed;--hero-accent:#9e6816}
.hero-slide{background:var(--hero-bg);display:grid;grid-template-columns:55% 45%;transform:translateX(12px)}.hero-slide .hero-content{grid-column:1;width:100%;height:100%;padding:32px 28px 44px 9%;position:relative;z-index:2}.hero-kicker{display:block;margin-bottom:12px;color:var(--hero-accent);font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.hero-slide .hero-content h1,.hero-slide .hero-content h2{font-size:clamp(30px,3.3vw,46px);line-height:1.14;font-weight:800;letter-spacing:-.035em;color:#0b2b78;margin:0}.hero-slide .hero-content h1 span,.hero-slide .hero-content h2 span{color:#0ba64c}.hero-slide .hero-content p{max-width:465px;font-size:15px;line-height:1.65;margin-top:16px;color:#395273}.hero-slide .hero-actions{margin-top:22px}.hero-actions .primary-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#1155dd;color:white;border-radius:8px;padding:14px 20px;font-size:14px;font-weight:700;min-height:46px}.hero-actions .primary-button:hover{background:#0b3fac}.hero-actions .primary-button:focus-visible,.hero-pause:focus-visible{outline:3px solid #087cff;outline-offset:3px}
.hero-slide .hero-visual{inset:0 0 0 48%;width:52%;height:100%;border-radius:0}.hero-slide .hero-visual img{width:100%;height:100%;object-fit:cover;object-position:85% center}.hero-slide .hero-visual:after{background:linear-gradient(90deg,var(--hero-bg),transparent 26%)}.hero-pause{position:absolute;right:22px;bottom:16px;z-index:4;padding:6px 12px;border-radius:20px;background:rgba(255,255,255,.94);color:#294365;font-size:12px;cursor:pointer}.slider-dots{bottom:20px}.slider-arrow{width:40px;height:40px}.hero-slide[aria-hidden="true"]{visibility:hidden}.hero-slide.active{visibility:visible}
.free-test-dialog{width:min(660px,calc(100vw - 28px));max-height:85dvh;border:1px solid #d7e3f4;border-radius:16px;padding:24px;color:#123568;box-shadow:0 20px 65px #10285430;margin:auto;background:white}.free-test-dialog::backdrop{background:#10254488}.free-test-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:15px}.free-test-dialog h2{font-size:23px;margin:0}.free-test-dialog p{font-size:14px;line-height:1.6;color:#657b96;margin:8px 0 16px}.free-test-close{background:#f0f5fc;border-radius:8px;padding:8px 12px;font-size:20px;color:#153968;cursor:pointer}.free-test-dialog label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.free-test-dialog select{width:100%;min-height:44px;border:1px solid #ccdbef;border-radius:8px;padding:10px;background:white;color:#153968;font:inherit}.free-test-list{display:grid;gap:10px;margin-top:16px}.free-test-choice{border:1px solid #dce7f4;border-radius:10px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:16px}.free-test-choice h3{font-size:14px;line-height:1.45;margin:0}.free-test-choice p{margin:6px 0 0;font-size:12px}.free-test-choice button{background:#1155dd;color:white;border-radius:8px;padding:11px 15px;white-space:nowrap;font-weight:600;cursor:pointer}.free-test-state{padding:18px;background:#f5f8fd;border-radius:8px;font-size:14px;color:#4d6685}.free-test-dialog a{color:#1155dd;text-decoration:underline}
@media(max-width:800px){.hero-slider{height:480px}.hero-slide{display:block}.hero-slide .hero-content{width:100%;height:58%;padding:28px 46px 14px;justify-content:flex-start}.hero-slide .hero-content h1,.hero-slide .hero-content h2{font-size:32px}.hero-slide .hero-content p{font-size:14px;margin-top:12px;max-width:480px}.hero-kicker{font-size:11px;margin-bottom:9px}.hero-slide .hero-actions{margin-top:16px}.hero-slide .hero-visual{inset:auto 0 0;width:100%;height:43%}.hero-slide .hero-visual img{object-position:right 46%}.hero-slide .hero-visual:after{background:linear-gradient(180deg,var(--hero-bg),transparent 30%)}.hero-pause{bottom:12px}.slider-dots{bottom:16px}}
@media(max-width:520px){.hero-slider{height:490px}.hero-slide .hero-content{padding:26px 28px 14px;height:62%}.hero-slide .hero-content h1,.hero-slide .hero-content h2{font-size:29px}.hero-slide .hero-visual{height:39%}.hero-actions .primary-button{font-size:13px;padding:12px 16px}.slider-arrow{width:32px;height:32px}.free-test-dialog{padding:18px}.free-test-choice{align-items:flex-start;flex-direction:column;gap:10px}.free-test-choice button{width:100%}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none;transform:none}}

.free-test-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px}.free-test-filters select:disabled{background:#f5f8fc;color:#7b8ba0}@media(max-width:520px){.free-test-filters{grid-template-columns:1fr;gap:12px}}

/* Topic illustrations share one Amico family; motion runs only on the visible scene. */
.hero-slide .hero-visual.hero-illustration{inset:16px 5% 30px auto;width:43%;height:auto;display:flex;align-items:center;justify-content:center;overflow:visible}
.hero-slide .hero-illustration:after{display:none}.hero-illustration svg{display:block;width:100%;height:100%;max-height:345px;overflow:visible}
.hero-scene-motion{transform-box:fill-box;transform-origin:center;animation:hero-scene-drift 4s ease-in-out infinite;animation-play-state:paused}
.hero-slide.active .hero-scene-motion{animation-play-state:running}.hero-slide[data-motion-paused="true"] .hero-scene-motion{animation-play-state:paused}
@keyframes hero-scene-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.hero-art-credit{margin:4px 4px 0;text-align:right;font-size:8px;line-height:1.4;color:#64748b}.hero-art-credit a{color:inherit;text-decoration:underline}
@media(max-width:800px){.hero-slide .hero-visual.hero-illustration{inset:auto 12% 30px;width:76%;height:40%}.hero-illustration svg{max-height:190px}.hero-art-credit{font-size:8px}}
@media(max-width:520px){.hero-slide .hero-visual.hero-illustration{inset:auto 10% 30px;width:80%;height:34%}.hero-illustration svg{max-height:165px}}
@media(prefers-reduced-motion:reduce){.hero-scene-motion{animation:none!important}}

/* Keep all five slides clear of the carousel arrow hit areas. */
.hero-slider .hero-slide .hero-content{box-sizing:border-box;padding-left:80px!important;padding-right:36px!important}
@media(min-width:801px){.hero-slider .hero-slide .hero-visual.hero-illustration{right:76px!important;width:39%!important}}
@media(max-width:800px){.hero-slider .hero-slide .hero-content{padding-left:68px!important;padding-right:68px!important}}
@media(max-width:520px){.hero-slider .hero-slide .hero-content{padding-left:58px!important;padding-right:58px!important}}

.hero-slide .hero-visual.hero-illustration img{display:block;width:100%;height:100%;max-height:345px;object-fit:contain;object-position:center}
@media(max-width:800px){.hero-slide .hero-visual.hero-illustration img{max-height:190px}}
@media(max-width:520px){.hero-slide .hero-visual.hero-illustration img{max-height:165px}}

/* Block alignment inherited from the legacy grid must not move copy into the illustration. */
@media(max-width:800px){.hero-slider .hero-slide{align-content:start}}
@media(max-width:520px){.hero-slider{height:520px}.hero-slide .hero-visual.hero-illustration{height:30%}}
