.rvx{max-width:1180px;margin:0 auto}
.rvx-sub{text-align:center;color:#7a6a55;max-width:640px;margin:-6px auto 22px}
.rvx-tabs{display:flex;gap:8px;justify-content:center;margin:0 0 26px;flex-wrap:wrap}
.rvx-tabs button{border:1px solid #e3d3b4;background:#fffaf1;color:#5b4a32;padding:11px 20px;border-radius:999px;font:600 15px/1 inherit;cursor:pointer;transition:.2s}
.rvx-tabs button span{display:inline-block;margin-left:6px;background:#f1e4c9;border-radius:99px;padding:3px 8px;font-size:12px}
.rvx-tabs button.on{background:linear-gradient(135deg,#c9a14a,#b0852f);color:#fff;border-color:transparent;box-shadow:0 6px 18px rgba(176,133,47,.25)}
.rvx-tabs button.on span{background:rgba(255,255,255,.25)}
.rvx-h{font-size:18px;color:#5b4a32;margin:6px 0 14px;font-weight:600}
.rvx-row{position:relative}
.rvx-vids{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/4);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 14px;scrollbar-width:thin}
.vc{all:unset;cursor:pointer;scroll-snap-align:start;display:flex;flex-direction:column;background:#fff;border:1px solid #eee2cc;border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(120,90,40,.07);transition:.25s}
.vc:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(120,90,40,.14)}
.vc-img{position:relative;aspect-ratio:16/9;background:#f3e9d6 center/cover;display:flex;align-items:center;justify-content:center}
.vc-play{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 4px 14px rgba(0,0,0,.18);position:relative;transition:.2s}
.vc-play:after{content:"";position:absolute;left:22px;top:17px;border-left:17px solid #b0852f;border-top:11px solid transparent;border-bottom:11px solid transparent}
.vc:hover .vc-play{transform:scale(1.08)}
.vc-img i{position:absolute;right:8px;bottom:8px;background:rgba(40,30,15,.7);color:#fff;font:600 12px/1 inherit;padding:4px 6px;border-radius:6px;font-style:normal}
.vc-t{padding:12px 14px;font-weight:600;color:#4a3b26;font-size:14.5px}
.vc-more .vc-img{background:linear-gradient(135deg,#f7eedc,#efe0c0)}.vc-more b{color:#8a6a2c}
.rvx-arr{position:absolute;top:calc(50% - 30px);z-index:2;width:40px;height:40px;border-radius:50%;border:1px solid #e3d3b4;background:#fff;color:#8a6a2c;font-size:24px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.rvx-arr.l{left:-18px}.rvx-arr.r{right:-18px}
.rvx-grid{columns:3 300px;column-gap:18px;margin-top:4px}
.rv-card{break-inside:avoid;margin:0 0 18px;background:#fffdf8;border:1px solid #eee2cc;border-radius:16px;padding:18px 18px 14px;box-shadow:0 3px 14px rgba(120,90,40,.06);position:relative}
.rv-card:before{content:"“";position:absolute;right:16px;top:4px;font:700 54px/1 Georgia,serif;color:#ecdcb8}
.rv-top{display:flex;gap:11px;align-items:center;margin-bottom:10px}
.rv-av{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#e9d4a6,#c9a14a);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.rv-top b{display:block;color:#3f3220;font-size:15px}.rv-top small{color:#a08a66;font-size:12.5px}
.rv-q{font-size:13px;color:#8a7658;background:#f7efdf;border-radius:10px;padding:7px 10px;margin-bottom:9px}
.rv-t{color:#4a3d2b;line-height:1.6;font-size:15px;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.rv-act{display:flex;gap:14px;margin-top:9px;flex-wrap:wrap}
.rv-act button{all:unset;cursor:pointer;color:#a07a2c;font-weight:600;font-size:13.5px}
.rv-act button:hover{text-decoration:underline}
.rv-card.short .rv-more{display:none}
.rvx [data-cat].off,.rv-card.hid{display:none}
.rvx-moreall{text-align:center;margin-top:6px}
.lb{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center}
.lb[hidden]{display:none}
.lb-bg{position:absolute;inset:0;background:rgba(40,30,15,.72);backdrop-filter:blur(3px)}
.lb-box{position:relative;max-width:min(1000px,94vw);max-height:90vh;width:100%}
.lb-c{background:#fffdf8;border-radius:16px;overflow:auto;max-height:90vh}
.lb-c iframe,.lb-c video{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}
.lb-c img{display:block;width:100%;height:auto}
.lb-c .rv-card{margin:0;border:0;box-shadow:none;padding:26px}.lb-c .rv-t{display:block;font-size:16.5px}.lb-c .rv-act{display:none}
.lb-x{position:absolute;right:-6px;top:-44px;width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:#5b4a32;font-size:26px;cursor:pointer}
@media(max-width:900px){.rvx-vids{grid-auto-columns:calc((100% - 16px)/2)}}
@media(max-width:600px){.rvx-vids{grid-auto-columns:82%}.rvx-arr{display:none}.rvx-grid{columns:1}.rvx-tabs button{padding:10px 14px;font-size:14px}.lb-x{right:4px}}
.hx-apps-g{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1180px;margin:0 auto}
.hx-app{display:flex;gap:14px;align-items:flex-start;background:#fffdf8;border:1px solid #eee2cc;border-radius:16px;padding:18px;text-decoration:none;color:#4a3d2b;box-shadow:0 3px 14px rgba(120,90,40,.06);transition:.2s}
.hx-app:hover{transform:translateY(-3px)}
.hx-app img,.hx-app-ic{width:56px;height:56px;border-radius:14px;flex:none;object-fit:cover}
.hx-app-ic{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e9d4a6,#c9a14a);color:#fff;font-size:28px}
.hx-app b{display:block;font-size:17px;color:#3f3220;margin-bottom:4px}.hx-app span{font-size:14px;line-height:1.5;display:block}.hx-app em{font-style:normal;color:#a07a2c;font-weight:600;font-size:14px;display:block;margin-top:6px}
.hx-div{height:260px;background:center/cover;max-width:1180px;margin:10px auto;border-radius:22px;opacity:.95}
.hx-nums-g{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.hx-nums-g div{text-align:center;background:#fffaf1;border:1px solid #eee2cc;border-radius:16px;padding:20px 10px}
.hx-nums-g b{display:block;font-size:30px;color:#b0852f;font-weight:700}.hx-nums-g span{color:#6b5a42;font-size:14px}
.hx-teacher{display:grid!important;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:40px;align-items:stretch;max-width:1180px;margin:0 auto}
.hx-teacher .hx-tph{display:block;height:100%}
.hx-teacher .hx-tph img{width:100%;height:100%;max-height:none;object-fit:cover;border-radius:22px;box-shadow:0 14px 40px rgba(120,90,40,.16)}
.hx-steps{list-style:none;padding:0;margin:0 auto;max-width:1180px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hx-steps li{background:#fffdf8;border:1px solid #eee2cc;border-radius:16px;padding:22px 18px;position:relative}
.hx-steps i{font-style:normal;display:inline-flex;width:38px;height:38px;border-radius:50%;align-items:center;justify-content:center;background:linear-gradient(135deg,#c9a14a,#b0852f);color:#fff;font-weight:700;margin-bottom:10px}
.hx-steps b{display:block;color:#3f3220;font-size:17px;margin-bottom:6px}.hx-steps span{color:#5b4a32;font-size:14.5px;line-height:1.55}
.hx-cert-g{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:900px;margin:0 auto}
.hx-cimg{all:unset;cursor:zoom-in;display:block;border-radius:14px;overflow:hidden;border:1px solid #eee2cc;box-shadow:0 8px 24px rgba(120,90,40,.12)}
.hx-cimg img{display:block;width:100%;height:auto}
.hx-blog-g{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1180px;margin:0 auto}
.hx-post{display:block;text-decoration:none;background:#fffdf8;border:1px solid #eee2cc;border-radius:16px;overflow:hidden;color:#3f3220;transition:.2s}
.hx-post:hover{transform:translateY(-3px)}
.hx-pimg{display:flex;align-items:center;justify-content:center;aspect-ratio:1.91/1;background:#f3e9d6 center/cover}
.hx-post small{display:block;padding:12px 16px 0;color:#a07a2c;font-weight:600;font-size:12.5px}.hx-post>b{display:block;padding:4px 16px 16px;font-size:16px;line-height:1.4}
.hx-post-all .hx-pimg{background:linear-gradient(135deg,#f7eedc,#efe0c0)}.hx-post-all .hx-pimg b{color:#8a6a2c;font-size:18px}
.hx-faq{max-width:820px;margin:0 auto}
.hx-faq details{background:#fffdf8;border:1px solid #eee2cc;border-radius:14px;margin:0 0 10px;padding:0 18px}
.hx-faq summary{cursor:pointer;padding:16px 0;font-weight:600;color:#3f3220;list-style:none;position:relative;padding-right:28px}
.hx-faq summary:after{content:"+";position:absolute;right:0;top:12px;font-size:22px;color:#b0852f}
.hx-faq details[open] summary:after{content:"−"}
.hx-faq p{margin:0 0 16px;color:#5b4a32;line-height:1.6}
.hx-cta-b{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
@media(max-width:900px){.hx-apps-g,.hx-blog-g{grid-template-columns:1fr 1fr}.hx-nums-g{grid-template-columns:repeat(3,1fr)}.hx-steps{grid-template-columns:1fr 1fr}.hx-teacher{grid-template-columns:1fr;gap:22px}.hx-teacher .hx-tph img{height:auto;max-height:560px}}
@media(max-width:600px){.hx-apps-g,.hx-blog-g,.hx-cert-g{grid-template-columns:1fr}.hx-nums-g{grid-template-columns:1fr 1fr}.hx-nums-g div:last-child{grid-column:span 2}.hx-steps{grid-template-columns:1fr}.hx-div{height:170px;border-radius:16px;margin:10px 14px}}
.hx-cta .btn.ghost{border:1.5px solid rgba(255,255,255,.7)!important;color:#fff!important;background:transparent!important}
.hx-div{background-position:center 35%!important}
/* cropfix: teacher photo at natural ratio, never cropped */
.hx-teacher{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;align-items:center!important}
.hx-teacher .hx-tph{height:auto!important}
.hx-teacher .hx-tph img{width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:4/3;object-fit:contain!important}
@media(max-width:900px){.hx-teacher{grid-template-columns:1fr!important}.hx-teacher .hx-tph img{max-height:none!important;height:auto!important}}
/* blog posts inside direction cards */
.cardw .card:has(.cp-sp) p{flex:0 0 auto!important}
.cardw .cp-sp{display:block;flex:1 0 auto;min-height:8px}
.card-posts{position:absolute;left:23px;right:23px;z-index:2;display:flex;flex-direction:column;gap:6px;padding:10px 0 12px;border-top:1px dashed #e3d3b4}
.card-posts small{font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:#a08a66;font-weight:600}
.card-posts a{color:#4a3d2b;text-decoration:none;font-size:14px;line-height:1.4;font-weight:600;padding-left:14px;position:relative}
.card-posts a:before{content:"›";position:absolute;left:0;color:#b0852f}
.card-posts a:hover{color:#a07a2c;text-decoration:underline}
/* cropfix: direction card covers at natural 16:9, nothing cut */
.card .cover,.card[href="/karta/"] .cover{aspect-ratio:16/9!important;object-fit:contain!important;height:auto!important}
/* direction socials */
.cardw{position:relative}
.card-soc{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:3}
.card-soc a{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f5ecda;color:#8a6a2c;transition:.2s}
.card-soc a:hover{background:#c9a14a;color:#fff}
.card-soc svg{width:14px;height:14px;fill:currentColor}
.hdr-yt{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;color:#8a6a2c;margin-right:6px}.hdr-yt svg{width:20px;height:20px;fill:currentColor}
/* socials: admin-only until SOC_PUBLIC flag is on */
.card-soc,.hdr-yt{display:none!important}
html.soc-on .card-soc{display:flex!important}
html.soc-on .hdr-yt{display:inline-flex!important}
