/* «Фетва» в стиле личного кабинета: тёмно-зелёная карточка с золотой кнопкой, затем строки-карточки */
body[data-page=fatwa] .fw{font-family:'Golos Text',Arial,sans-serif;color:#1c3b2f}
.fw-hero{position:relative;overflow:hidden;padding:24px 22px 22px;border-radius:24px;color:#f4efe0;
 background:radial-gradient(120% 90% at 100% 0,#2f6a52 0,#173e32 55%,#0f2c23 100%);box-shadow:0 18px 40px -22px rgba(13,51,40,.6)}
.fw-hero:after{content:'';position:absolute;inset:auto -40px -60px auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(243,213,139,.22),transparent 65%);pointer-events:none}
.fw-kicker{display:block;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:#e8cf8e;font-weight:600}
.fw-hero h2{margin:6px 0 8px;font:700 clamp(1.4rem,5vw,1.9rem)/1.2 'Golos Text',Arial,sans-serif;color:#fff;text-wrap:balance}
.fw-hero p{margin:0 0 18px;color:#d9e4dc;font-size:15px;line-height:1.55;max-width:520px}
.fw-ask{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:360px;min-height:52px;padding:12px 20px;border:0;border-radius:16px;cursor:pointer;
 font:650 16px/1.2 'Golos Text',Arial,sans-serif;color:#2a1e05;background:linear-gradient(135deg,#f6dc94,#d9ae55 55%,#c4923e);box-shadow:0 8px 20px -8px rgba(214,173,91,.7);transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s}
.fw-ask svg{width:22px;height:22px}
.fw-ask:hover{transform:translateY(-2px);box-shadow:0 12px 24px -8px rgba(214,173,91,.8)}
.fw-ask:active{scale:.98}
.fw-ask:focus-visible{outline:3px solid #fff3c9;outline-offset:3px}
.fw-h{margin:24px 4px 10px;font:650 1.1rem/1.3 'Golos Text',Arial,sans-serif;color:#1c3b2f}
.fw-list{background:#fffdf8;border:1px solid #e4e0d3;border-radius:20px;overflow:hidden;box-shadow:0 8px 22px -16px rgba(13,51,40,.25)}
.fw-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;color:inherit;text-decoration:none}
.fw-row+.fw-row{border-top:1px solid #ece7d8}
.fw-num{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eef5ea;color:#2f7a5a;font-weight:700}
.fw-ico{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef5ea;color:#2f7a5a}
.fw-ico svg{width:22px;height:22px}
.fw-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fw-txt b{font-weight:650;color:#173e32}
.fw-txt span{font-size:13.5px;color:#6a7663;line-height:1.4}
.fw-chev{flex:none;width:20px;height:20px;color:#9aa494;transition:transform .2s}
.fw-link:hover{background:#f6f3ea}.fw-link:hover .fw-chev{transform:translateX(3px)}
.fw-link:active{background:#efebdf}
html[data-theme=dark] body[data-page=fatwa] .fw{color:#e6eee8}
html[data-theme=dark] .fw-list{background:#16231c;border-color:#2a3b31}
html[data-theme=dark] .fw-row+.fw-row{border-color:#2a3b31}
html[data-theme=dark] :is(.fw-h,.fw-txt b){color:#eef4ef}
html[data-theme=dark] .fw-txt span{color:#b9c8bd}
html[data-theme=dark] :is(.fw-num,.fw-ico){background:#1c2e24;color:#bfe0cb}
html[data-theme=dark] .fw-link:hover{background:#1b2a22}
@media (prefers-reduced-motion:reduce){.fw-ask,.fw-chev{transition:none}}
/* «Фетва» открывается как экран приложения: без шапки сайта (лого, анонсы, время намаза, бегущая строка) и без подвала */
body[data-page=fatwa]>header.header,body[data-page=fatwa]>footer.footer{display:none!important}
body[data-page=fatwa] main.wrap{padding-top:max(14px,env(safe-area-inset-top))}
/* компактная зелёная карточка (было слишком крупно) */
.fw-hero{padding:16px 18px;border-radius:20px;display:grid;grid-template-columns:1fr auto;gap:6px 16px;align-items:center}
.fw-hero:after{width:150px;height:150px;inset:auto -30px -50px auto}
.fw-kicker{grid-column:1/-1;font-size:11.5px}
.fw-hero h2{margin:0;font-size:clamp(1.1rem,4.2vw,1.35rem);line-height:1.25}
.fw-hero p{grid-column:1/-1;margin:0;font-size:13.5px;line-height:1.45;max-width:none}
.fw-ask{grid-column:1/-1;justify-self:start;width:auto;max-width:none;min-height:42px;padding:9px 18px;border-radius:13px;font-size:15px;margin-top:6px}
.fw-ask svg{width:18px;height:18px}
@media (min-width:700px){.fw-hero{grid-template-columns:1fr auto}.fw-hero p{grid-column:1}.fw-ask{grid-column:2;grid-row:2/4;justify-self:end;align-self:center;margin-top:0}}
/* карусель научных статей — как карусель YouTube на главной */
.fa-car{margin-top:16px;padding:16px 16px 10px;border-radius:20px;background:#fffcf7;border:1px solid #e9e4d6;box-shadow:0 10px 28px -20px rgba(13,51,40,.35)}
.fa-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-bottom:12px}
.fa-kicker{display:flex;align-items:center;gap:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#7d8776;font-weight:600}
.fa-kicker i{font-style:normal;display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:#173e32;color:#f1d58e;font-size:10px}
.fa-head h3{margin:4px 0 0;font:650 1.2rem/1.2 'Golos Text',Arial,sans-serif;color:#173e32}
.fa-actions{display:flex;align-items:center;gap:10px;flex:none}
.fa-actions>a{font-size:13px;color:#2f7a5a;font-weight:600;text-decoration:none;white-space:nowrap}
.fa-ctrl{display:flex;gap:5px}
.fa-ctrl button{display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border-radius:50%;border:1px solid #dcd6c5;background:#f6f3ea;color:#2c4b3d;cursor:pointer;font-size:14px}
.fa-ctrl button:hover{background:#ece7d8}
.fa-viewport{overflow:hidden;margin:0 -2px}
.fa-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px}
.fa-track::-webkit-scrollbar{display:none}
.fa-card{flex:0 0 100%;scroll-snap-align:start;display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:#f3f6ef;border:1px solid #e2e8dc}
@media (min-width:640px){.fa-card{flex-basis:calc(50% - 6px)}}
.fa-cover{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;min-height:130px;padding:14px 16px;text-decoration:none;color:#fff;
 background:radial-gradient(120% 100% at 100% 0,#3f7a5e,#173e32 60%,#0f2c23)}
.fa-card:nth-child(3n+2) .fa-cover{background:radial-gradient(120% 100% at 100% 0,#7a6a3a,#3f3a1f 60%,#2a2614)}
.fa-card:nth-child(3n+3) .fa-cover{background:radial-gradient(120% 100% at 100% 0,#4f6a7a,#1f3540 60%,#142630)}
.fa-quote{position:absolute;top:-8px;right:12px;font:700 96px/1 Georgia,serif;color:rgba(241,213,142,.28)}
.fa-topic{align-self:flex-start;padding:2px 10px;border-radius:999px;background:rgba(241,213,142,.2);color:#f1d58e;font-size:11.5px;font-weight:600}
.fa-ctitle{font:650 1.05rem/1.25 'Golos Text',Arial,sans-serif;text-wrap:balance;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.fa-copy{display:flex;flex-direction:column;gap:4px;padding:12px 14px 14px;flex:1}
.fa-copy time{font-size:12px;color:#7d8776}
.fa-copy h4{margin:0;font:600 15px/1.35 'Golos Text',Arial,sans-serif}.fa-copy h4 a{color:#1c3b2f;text-decoration:none}
.fa-copy p{margin:0;font-size:13.5px;line-height:1.45;color:#5f6c58;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fa-read{margin-top:auto;padding-top:6px;font-size:13.5px;font-weight:600;color:#2f7a5a;text-decoration:none}
.fa-foot{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font-size:12px;color:#8a9284}
.fa-empty{display:flex;flex-direction:column;gap:4px;flex:1;padding:22px 16px;border-radius:16px;background:#f3f6ef;text-align:center;color:#75806e;font-size:14px;margin:0}
.fa-empty b{color:#1c3b2f;font-size:15px}
.fa-none .fa-ctrl,.fa-none .fa-pos{display:none}
html[data-theme=dark] .fa-car{background:#132019;border-color:#2a3b31}
html[data-theme=dark] .fa-head h3,html[data-theme=dark] .fa-copy h4 a,html[data-theme=dark] .fa-empty b{color:#eef4ef}
html[data-theme=dark] :is(.fa-card,.fa-empty){background:#18271f;border-color:#2a3b31}
html[data-theme=dark] .fa-copy p{color:#b9c8bd}
html[data-theme=dark] .fa-ctrl button{background:#1b2a22;border-color:#2a3b31;color:#dfe9e2}
.fa-head h3{white-space:nowrap}
@media (max-width:420px){.fa-ctrl [data-fa=pause]{display:none}.fa-actions{gap:8px}}
/* новая «Фетва» (sx): карусель статей между темами и шагами */
body.sx[data-page=fatwa] .fa-car{margin-top:18px}
