:root{color-scheme:light;--bg:#f3f1ee;--paper:#faf9f7;--ink:#2c3338;--muted:#6b7378;--deep:#4d6272;--sage:#8ea1ad;--sage-l:#e3e9ed;--clay:#9c7565;--line:#e4e1dc;
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px);scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.7 "DM Sans",system-ui,Arial,sans-serif;overflow-x:hidden}
h1,h2,h3{font-family:"DM Serif Display",Georgia,serif;font-weight:400;line-height:1.15;margin:0 0 .45em}
h1{font-size:clamp(2.3rem,5vw,3.7rem)}h2{font-size:clamp(1.8rem,3.6vw,2.6rem)}h3{font-size:1.35rem}
em{font-style:italic;color:var(--clay)}
.w{max-width:1060px;margin:0 auto;padding:0 20px}
section{padding:72px 0}
.btn{display:inline-block;background:var(--clay);color:#fff;padding:15px 30px;border-radius:12px;text-decoration:none;font-weight:600;transition:background .2s}
.btn:hover{background:#876253}
.btn.o{background:transparent;color:var(--deep);border:1.5px solid var(--deep)}
.btn.o:hover{background:var(--deep);color:#fff}
header{display:flex;justify-content:space-between;align-items:center;padding:18px 0}
header b{font:1.4rem "DM Serif Display",serif;color:var(--deep)}
header a.n{color:var(--muted);text-decoration:none;margin-right:22px;font-size:.9rem}
.heroWrap{background:var(--deep);color:#f4f2ef;border-radius:0 0 40px 40px}
.heroWrap header b{color:#f4f2ef}.heroWrap header a.n{color:#ccd6dd}
.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center;padding:30px 0 70px}
.hero em{color:#e6d2c8}
.hero p.l{color:#d3dce3;font-size:1.08rem;max-width:500px}
.kick{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:#b4c4cf;margin-bottom:14px;display:block}
.hero .btn.o{color:#f4f2ef;border-color:#9fb2be}
.hero .btn.o:hover{background:#f4f2ef;color:var(--deep)}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.ph{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:28px;display:block}
.hero .ph{object-position:50% 30%;box-shadow:0 24px 50px rgba(0,0,0,.3)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:-34px;position:relative}
.stats div{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px;text-align:center}
.stats b{display:block;font:2rem "DM Serif Display",serif;color:var(--deep)}
.stats span{font-size:.88rem;color:var(--muted)}
.head{max-width:620px;margin:0 0 36px}
.head p{color:var(--muted);margin:0}
.topics{display:flex;flex-wrap:wrap;gap:10px}
.topics span{background:var(--sage-l);color:var(--deep);padding:10px 18px;border-radius:999px;font-weight:500;font-size:.95rem}
.tl{border-left:2px solid var(--sage);margin-left:10px;padding-left:30px}
.tl div{position:relative;padding-bottom:28px}
.tl div:before{content:"";position:absolute;left:-39px;top:6px;width:16px;height:16px;border-radius:50%;background:var(--clay);border:3px solid var(--bg)}
.tl p{margin:0;color:var(--muted)}
.banner{position:relative;color:#fff;background:#3d4e5b;overflow:hidden}
.banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;opacity:.55}
.banner .w{position:relative;padding-top:110px;padding-bottom:110px;max-width:760px;text-align:center}
.banner h2{font-size:clamp(1.8rem,4vw,2.8rem)}
.about{display:grid;grid-template-columns:1fr 1.2fr;gap:56px;align-items:center}
.about .ph{object-position:35% 30%}
.about ul{color:var(--muted);padding-left:18px}
.rows{display:grid;gap:14px}
.row{display:grid;grid-template-columns:1.3fr 2fr auto;gap:20px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px 26px}
.row h3{margin:0}.row p{margin:0;color:var(--muted);font-size:.93rem}
.row .pr{font:1.7rem "DM Serif Display",serif;color:var(--deep);white-space:nowrap}
.row.hot{border:2px solid var(--clay);background:#fff;position:relative}
.row.hot:before{content:"Вигідніше";position:absolute;top:-12px;left:26px;background:var(--clay);color:#fff;font-size:.72rem;font-weight:600;padding:3px 14px;border-radius:999px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rev{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:26px;font-style:italic;color:var(--muted)}
.rev small{display:block;margin-top:12px;font-style:normal;color:var(--deep);font-weight:600}
details{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:16px 22px;margin:0 auto 12px;max-width:760px}
summary{cursor:pointer;font-weight:600}
details p{color:var(--muted);margin:10px 0 0}
.cta{background:var(--deep);color:#f4f2ef;border-radius:32px;padding:60px 24px;text-align:center}
.cta h2{color:#f4f2ef}.cta em{color:#e6d2c8}
.cta p{max-width:520px;margin:0 auto 26px;color:#d3dce3}
.cta .cta-row{justify-content:center}
.cta .btn.o{color:#f4f2ef;border-color:#9fb2be}
.cta small{display:block;margin-top:18px;color:#b4c4cf}
footer a{color:inherit}
footer{text-align:center;color:var(--muted);font-size:.85rem;padding:30px 0 40px}
.stick{display:none}
.btn{transition:background .2s,transform .2s}.btn:hover{transform:translateY(-2px)}
.js .rv{opacity:0;transform:translateY(28px);transition:opacity .85s ease,transform .85s ease;transition-delay:var(--d,0s)}
.js .rv.in{opacity:1;transform:none}
@keyframes up{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(156,117,101,.55)}70%,100%{box-shadow:0 0 0 14px rgba(156,117,101,0)}}
@keyframes kb{to{transform:scale(1.12)}}
@keyframes dot{50%{transform:scale(1.35)}}
.hero>div>*{animation:up .9s ease both}
.hero>div>*:nth-child(2){animation-delay:.12s}.hero>div>*:nth-child(3){animation-delay:.24s}.hero>div>*:nth-child(4){animation-delay:.36s}
.hero .ph{animation:pop 1.1s ease .2s both}
.hero .cta-row .btn:not(.o){animation:pulse 2.8s infinite 1.6s}
.banner img{animation:kb 22s ease-in-out infinite alternate}
.tl div:before{animation:dot 2.6s ease-in-out infinite}
.heroWrap{position:relative;overflow:hidden}
.heroWrap .w{position:relative;z-index:1}
.heroWrap:before,.heroWrap:after{content:"";position:absolute;border-radius:50%;filter:blur(60px);opacity:.35;animation:orb 14s ease-in-out infinite alternate}
.heroWrap:before{width:380px;height:380px;background:#8ea1ad;top:-120px;right:-80px}
.heroWrap:after{width:320px;height:320px;background:#b99a8a;bottom:-140px;left:-60px;animation-delay:-6s}
@keyframes orb{to{transform:translate(-50px,40px) scale(1.2)}}
@keyframes fl{50%{transform:translateY(-12px)}}
@keyframes sh{to{background-position:200% 0}}
@keyframes sw{to{left:130%}}
@keyframes gl{50%{box-shadow:0 0 0 6px rgba(156,117,101,.18)}}
.hero .ph{animation:pop 1.1s ease .2s both,fl 7s ease-in-out 1.4s infinite}
.hero em{background:linear-gradient(90deg,#e6d2c8,#fff,#e6d2c8);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:sh 5s linear infinite}
.btn{position:relative;overflow:hidden}
.btn:not(.o)::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:sw 4s ease-in-out infinite 2s}
.row.hot{animation:gl 3s ease-in-out infinite}
.rv.done{transition:transform .3s ease,box-shadow .3s ease;transition-delay:0s}
.row.done:hover,.rev.done:hover,.stats>div.done:hover,.topics span.done:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(44,51,56,.1)}
.tl div:nth-child(2):before{animation-delay:.5s}.tl div:nth-child(3):before{animation-delay:1s}.tl div:nth-child(4):before{animation-delay:1.5s}
#pb{position:fixed;top:0;left:0;height:3px;width:0;background:var(--clay);z-index:50}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.hero em{color:#e6d2c8}.js .rv{opacity:1;transform:none}}
@media(max-width:760px){.hero,.about,.grid,.stats{grid-template-columns:1fr}header{flex-wrap:wrap;gap:8px}header a.n{margin-right:14px;font-size:.82rem}header .btn{display:none}.ddm{right:auto;left:0}.hero .ph{max-width:360px;margin:auto}.about .ph{max-width:360px;margin:auto}
.row{grid-template-columns:1fr}.stats{margin-top:-24px}
.stick{display:block;position:fixed;left:0;right:0;bottom:0;z-index:20;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(243,241,238,.97);box-shadow:0 -6px 20px rgba(0,0,0,.08)}
.stick .btn{display:block;text-align:center}body{padding-bottom:78px}}
#testApp h1,#testApp h2,#testApp h3{font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance;}
#testApp h1{font-size: clamp(38px, 9vw, 56px);}
#testApp h2{font-size: clamp(30px, 7vw, 40px);}
#testApp h3{font-size: 26px;}
#testApp p{margin: 0;}
#testApp .eyebrow{font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);}
#testApp .muted{color: var(--muted);}
#testApp button{font: inherit; color: inherit; cursor: pointer;}
#testApp :focus-visible{outline: 3px solid var(--accent); outline-offset: 3px;}
#testApp .tbtn{background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 12px;
  padding: 14px 22px; font-weight: 700; min-height: 48px;}
#testApp .tbtn.ghost{background: transparent; color: var(--fg); border: 1.5px solid var(--line);}
#testApp .tbtn:disabled{opacity: .4; cursor: default;}
#testApp .scale-legend{display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;}
#testApp .progress{display: flex; flex-direction: column; gap: 10px;}
#testApp .progress-row{display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;}
#testApp .track{height: 6px; background: var(--track); border-radius: 3px; overflow: hidden;}
#testApp .fill{height: 100%; background: var(--accent); width: 0; transition: width .25s ease;}
#testApp .statement{font-family: var(--display); font-size: clamp(30px, 7.4vw, 42px); font-weight: 600; line-height: 1.18; min-height: 5.2em; text-wrap: balance;}
#testApp .choices{display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;}
#testApp .choice{background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  min-height: 72px; font-size: 26px; font-weight: 700; font-family: var(--display);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;}
#testApp .choice:hover{border-color: var(--accent);}
#testApp .choice:active{transform: scale(.96);}
#testApp .choice[aria-pressed="true"]{background: var(--accent); border-color: var(--accent); color: var(--accent-fg);}
#testApp .ends{display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); gap: 12px;}
#testApp .ends span:last-child{text-align: right;}
#testApp .nav{display: flex; justify-content: space-between; align-items: center;}
#testApp .rhero{background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;}
#testApp .rhero .score{font-size: 15px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums;}
#testApp .lesson{font-family: var(--display); font-size: 26px; font-style: italic; color: var(--accent); line-height: 1.2;}
#testApp .bars{display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0;}
#testApp .bar-row{display: grid; grid-template-columns: minmax(0, 150px) 1fr 44px; align-items: center; gap: 12px;}
#testApp .bar-name{font-weight: 600; font-size: 16px;}
#testApp .bar-name small{display: block; font-weight: 400; color: var(--muted); font-size: 13px;}
#testApp .bar-track{height: 14px; background: var(--track); border-radius: 7px; overflow: hidden;}
#testApp .bar-fill{height: 100%; background: var(--muted); border-radius: 7px; opacity: .55;}
#testApp .bar-row.top .bar-fill{background: var(--accent); opacity: 1;}
#testApp .bar-row.low .bar-fill{background: var(--gold); opacity: .9;}
#testApp .bar-val{text-align: right; font-weight: 700; font-variant-numeric: tabular-nums;}
#testApp .key{display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted);}
#testApp .key i{display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px;}
#testApp details{background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;}
#testApp details + details{margin-top: 10px;}
#testApp summary{cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; list-style: none;}
#testApp summary::-webkit-details-marker{display: none;}
#testApp summary span:last-child{color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums;}
#testApp details .tips{display: flex; flex-direction: column; gap: 12px; margin-top: 12px;}
#testApp .tip b{display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px;}
#testApp .rules{margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px;}
#testApp .note{font-size: 15px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px;}
#testApp section{display: flex; flex-direction: column; gap: 14px;}
@media (max-width: 440px){#testApp .choice{min-height: 64px; font-size: 24px;}
#testApp .bar-row{grid-template-columns: minmax(0, 112px) 1fr 38px; gap: 8px;}}
#tests{display:block;padding:34px 0 80px;--surface:#fff;--fg:var(--ink);--accent:var(--clay);--accent-fg:#fff;--gold:#8a6a3c;--track:#e7e4df;--display:"DM Serif Display",Georgia,serif;--body:"DM Sans",system-ui,sans-serif}
.page-template-page-tests .heroWrap .w{padding-bottom:14px}
.admin-bar #pb{top:32px}
header b a{color:inherit;text-decoration:none}
#tests .t{max-width:660px;margin:0 auto;padding:0 20px}
#tests .crumb{font-size:.88rem;color:var(--muted);margin:0 0 22px}
#tests .crumb a{color:var(--deep);font-weight:600;text-decoration:none}
#testApp{display:flex;flex-direction:column;gap:24px;font-size:17px;line-height:1.5;color:var(--fg);font-family:var(--body)}
#testApp h1,#testApp h2,#testApp h3{font-weight:400}
#testApp section{padding:0}
#testApp details{margin:0;max-width:none}
#testApp .tbtn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:transform .2s,opacity .2s}
#testApp .tbtn:hover:not(:disabled){transform:translateY(-2px)}
#testApp .rhero{animation:up .6s ease both}
.dd{position:relative;display:inline-block;padding-bottom:8px;margin-bottom:-8px}
.ddm{position:absolute;right:0;top:100%;min-width:160px;background:#fff;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.18);padding:6px;display:none;z-index:30}
.dd:hover .ddm,.dd.open .ddm{display:block}
.ddm a{display:block;padding:10px 14px;color:var(--ink);text-decoration:none;border-radius:8px;font-size:.92rem}
.ddm a:hover{background:var(--sage-l)}

/* форма результату */
#testApp .ylform{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px 22px;display:flex;flex-direction:column;gap:14px}
#testApp .ylform h3{margin:0}
#testApp .ylform .sm{color:var(--muted);font-size:.95rem}
#testApp .ylform form{display:flex;flex-direction:column;gap:14px}
#testApp .ylform .g{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#testApp .ylform label{display:flex;flex-direction:column;gap:5px;font-size:.86rem;font-weight:600;color:var(--muted)}
#testApp .ylform input,#testApp .ylform select,#testApp .ylform textarea{font:inherit;font-weight:400;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);width:100%}
#testApp .ylform input:focus,#testApp .ylform select:focus,#testApp .ylform textarea:focus{border-color:var(--clay);outline:none}
#testApp .ylform .chk{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;font-size:.9rem}
#testApp .ylform .chk input{width:auto;margin-top:4px}
#testApp .ylform .hp{position:absolute;left:-9999px;height:0;opacity:0}
#testApp .ylform .msg{padding:12px 14px;border-radius:12px;font-size:.95rem}
#testApp .ylform .msg.ok{background:#e3eee6;color:#2d5a3a}
#testApp .ylform .msg.err{background:#f6e2e0;color:#7a2e26}
@media(max-width:560px){#testApp .ylform .g{grid-template-columns:1fr}}
/* каталог тестів */
#tests .t.tcat{max-width:960px}
#tests .tcat h1{margin:0 0 10px}
.tlead{color:var(--muted);margin:0 0 18px}
.tsearch{width:100%;max-width:420px;font:inherit;padding:12px 18px;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink)}
.tsearch:focus{border-color:var(--clay);outline:none}
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px;margin-top:22px}
.tcard{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:inherit;transition:transform .25s,box-shadow .25s}
.tcard:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(44,51,56,.1)}
.tcard h3{margin:0}
.tcard p{margin:0;color:var(--muted);font-size:.95rem}
.tcard .meta{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:var(--clay);font-weight:600}
.tcard .go{margin-top:auto;font-weight:600;color:var(--deep)}

/* Каталог «Матеріали»: пошук у верхньому рядку */
.thead{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin:0 0 6px}
.thead h1{margin:0}
.thead .tsearch{flex:1 1 240px;max-width:380px}
@media(max-width:560px){.thead .tsearch{max-width:none}}
