/* ==========================================================================
   FSAVED stylesheet — all component styling lives here (no inline styles in
   the HTML/templates). Theme via CSS custom properties + [data-theme].
   Class map: .fs-* = components/utilities; .r* = layout blocks with responsive
   rules; .fs-open / .fs-active / [data-fs-*] = JS-driven states.
   ========================================================================== */

* { box-sizing: border-box; }

:root {
  --bg: #16151a; --bg2: #100f13; --surface: #1d1c22; --surface2: #232128;
  --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.055);
  --text: #ECEAF0; --text2: #C6C4CE; --muted: #8E8C97; --faint: #5F5D68;
  --accent: #2FA89E; --accent-strong: #1F837A; --accent-text: #63CABF; --accent-hi: #9BF0E5;
  --accent-soft: rgba(47,168,158,0.13); --accent-border: rgba(47,168,158,0.34);
  --on-accent: #ffffff; --glow: rgba(47,168,158,0.18);
  --ph1: #262430; --ph2: #1a1822; --stripe: rgba(255,255,255,0.05);
  --veil: rgba(16,15,20,0.34); --veil-fg: rgba(255,255,255,0.85);
  --shadow: rgba(0,0,0,0.5); --chip: rgba(255,255,255,0.04);
  --inputbg1: #211f27; --inputbg2: #1a1920;
  --brand: #A11331; --blink: #E0322E;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="light"] {
  --bg: #F3F1EC; --bg2: #EAE7E0; --surface: #FFFFFF; --surface2: #FAF8F4;
  --border: rgba(28,24,34,0.11); --border2: rgba(28,24,34,0.07);
  --text: #1D1A24; --text2: #46434F; --muted: #6C6A76; --faint: #9C9AA4;
  --accent: #1B8A81; --accent-strong: #14655E; --accent-text: #157068; --accent-hi: #34B3A6;
  --accent-soft: rgba(27,138,129,0.10); --accent-border: rgba(27,138,129,0.28);
  --on-accent: #ffffff; --glow: rgba(27,138,129,0.13);
  --ph1: #E7E3DC; --ph2: #D9D4CC; --stripe: rgba(28,24,34,0.05);
  --veil: rgba(243,241,236,0.42); --veil-fg: rgba(40,36,46,0.7);
  --shadow: rgba(70,60,50,0.15); --chip: rgba(28,24,34,0.035);
  --inputbg1: #FFFFFF; --inputbg2: #FAF8F4;
}

html, body { margin: 0; padding: 0; background: var(--bg); }
a { color: inherit; }
::selection { background: rgba(47,168,158,0.28); }

/* ===== keyframes ===== */
@keyframes fsFade { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes igFlow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes fsMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fsBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes fsBlinkFull { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fsStarPulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(0.4) rotate(90deg); } }
@keyframes fsSpin { to { transform: rotate(360deg); } }

/* ===== root shell + section system ===== */
.fsRoot { font-family: var(--body); background: var(--bg); color: var(--text); min-height: 100vh; position: relative; overflow-x: hidden; }
.fs-glow { position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 940px; height: 620px; background: radial-gradient(ellipse at center, var(--glow), transparent 66%); pointer-events: none; z-index: 0; }

.fs-sec { position: relative; z-index: 1; max-width: 1100px; margin: 80px auto 0; padding: 0 32px; }
.fs-sec--w800 { max-width: 800px; }
.fs-sec--w880 { max-width: 880px; }
.fs-sec--w920 { max-width: 920px; }
.fs-sec--w1000 { max-width: 1000px; }
.fs-sec--w1180 { max-width: 1180px; }

/* spacing utilities (section + inner rhythm) */
.fs-mt-0 { margin-top: 0; }
.fs-mt-12 { margin-top: 12px; }
.fs-mt-16 { margin-top: 16px; }
.fs-mt-20 { margin-top: 20px; }
.fs-mt-24 { margin-top: 24px; }
.fs-mt-26 { margin-top: 26px; }
.fs-mt-28 { margin-top: 28px; }
.fs-mt-32 { margin-top: 32px; }
.fs-mt-40 { margin-top: 40px; }
.fs-mt-48 { margin-top: 48px; }
.fs-mt-52 { margin-top: 52px; }
.fs-mt-56 { margin-top: 56px; }
.fs-mt-72 { margin-top: 72px; }
.fs-mt-84 { margin-top: 84px; }

/* ===== headings / text ===== */
.fs-h1-seo { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.18; letter-spacing: -0.01em; color: var(--text); margin: 0; }
.fs-h1 { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1.06; letter-spacing: -0.02em; color: var(--text); margin: 16px 0 0; }
.fs-h1--sm { font-size: 34px; }
.rH2 { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--text); margin: 0; }
/* spacing utilities must beat the heading's own margin:0 (section headings in /sites & /guide use .rH2 + .fs-mt-*) */
.rH2.fs-mt-16 { margin-top: 16px; }
.rH2.fs-mt-28 { margin-top: 28px; }
.rH2.fs-mt-48 { margin-top: 48px; }
.rH2.fs-mt-72 { margin-top: 72px; }
.fs-h2-26 { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--text); margin: 0; }
.fs-h2-24 { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--text); margin: 0; }
.fs-h2-20 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); margin: 18px 0 0; }
.fs-center { text-align: center; }
.fs-lead { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px auto 0; max-width: 480px; }
.fs-lead--lg { font-size: 17px; max-width: 560px; }
.fs-intro { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 620px; margin: 14px 0 0; }
.fs-subtle { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.fs-muted-15 { color: var(--muted); font-size: 15px; line-height: 1.72; margin: 0; }
.fs-prose { display: flex; flex-direction: column; gap: 16px; margin: 20px 0 0; }
.fs-prose-tight { color: var(--text2); font-size: 15px; line-height: 1.75; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.fs-prose-tight p { margin: 0; }
.fs-meta-note { color: var(--faint); font-size: 13px; margin: 10px 0 0; }

/* ===== badges / pills / chips ===== */
.fs-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-text); font-weight: 600; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; }
.fs-eyebrow--dot { font-size: 13px; padding: 7px 15px; }
.fs-blink-dot { width: 7.2px; height: 7.2px; border-radius: 50%; background: var(--blink); animation: fsBlink 1s ease-in-out infinite; }
.fs-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; font-weight: 500; background: var(--chip); border: 1px solid var(--border2); padding: 7px 13px; border-radius: 999px; }
.fs-tag { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--chip); border: 1px solid var(--border2); padding: 6px 12px; border-radius: 999px; }
.fs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.fs-chiprow { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px auto 0; flex-wrap: wrap; }
.fs-pill-device { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-border); padding: 3px 9px; border-radius: 999px; }
.fs-badge18 { font-size: 10px; font-weight: 800; color: var(--accent-text); border: 1.5px solid var(--accent-border); border-radius: 6px; padding: 1px 6px; letter-spacing: 0.05em; }
.fs-badge18--sm { font-size: 9px; border-radius: 5px; padding: 1px 5px; }

/* ===== buttons ===== */
.fs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: none; cursor: pointer; font-family: var(--body); font-weight: 700; text-decoration: none; font-size: 15px; padding: 13px 22px; border-radius: 12px; }
.fs-btn--accent { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--on-accent); box-shadow: 0 8px 22px var(--glow); }
.fs-btn--accent:hover { filter: brightness(1.08); }
.fs-btn--ghost { background: var(--chip); border: 1px solid var(--border); color: var(--text); }
.fs-btn--outline { background: transparent; border: 1px solid var(--accent-border); color: var(--accent-text); }
.fs-btn--quiet { background: transparent; border: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.fs-btn--sm { font-size: 13px; padding: 9px 14px; border-radius: 10px; }
.fs-btn--lg { font-size: 16px; padding: 16px 30px; border-radius: 13px; }
.fs-btn--block { width: 100%; }
/* small chip-style control (nav lang/theme/sfw, library toggles) */
.fs-ctrl { display: flex; align-items: center; gap: 7px; background: var(--chip); border: 1px solid var(--border); color: var(--text2); font-family: var(--body); font-weight: 600; font-size: 13px; padding: 8px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.fs-ctrl--bold { font-weight: 700; padding: 8px 11px; }

/* ===== brand lockup ===== */
.fs-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.fs-logo--foot { gap: 10px; }
.fs-logo__tile { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px var(--glow); flex-shrink: 0; }
.fs-logo__tile--sm { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }
.fs-play { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.fs-play--sm { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 2px; }
.fs-play--lg { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 3px; }
.fs-play--xs { border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; margin-left: 2px; }
.fs-wordmark { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; text-shadow: 0 1px 2px var(--shadow); font-size: 22px; color: var(--brand); }
.fs-wordmark--foot { font-size: 19px; color: var(--text); }
.fs-star { display: inline-block; transform-origin: center; font-size: 17px; background: linear-gradient(110deg, var(--accent-strong), var(--accent), var(--accent-hi), var(--accent-text), var(--accent-hi), var(--accent), var(--accent-strong)); background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: igFlow 5.5s ease-in-out infinite alternate, fsStarPulse 1.1s ease-in-out infinite; filter: drop-shadow(0 1px 4px var(--glow)); margin: 0 0.5px; }
.fs-star--sm { font-size: 15px; }
.fs-gradient-text { background: linear-gradient(110deg, var(--accent-strong), var(--accent), var(--accent-hi), var(--accent-text), var(--accent-hi), var(--accent), var(--accent-strong)); background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: igFlow 5.5s ease-in-out infinite alternate; }

/* ===== nav ===== */
.rNav { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; }
.rNavLinks { display: flex; align-items: center; gap: 24px; }
.rNavActions { display: flex; align-items: center; gap: 10px; }
/* единая высота 36px у всех контролов панели действий навбара (lang / тема / SFW / войти / регистрация) */
.rNavActions .fs-ctrl,
.rNavActions .fs-login,
.rNavActions .fs-btn { height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; }
.fsNavLink { color: var(--text2); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.fsNavLink:hover { color: var(--text) !important; }
.fs-login { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; white-space: nowrap; }

/* ===== icon helpers ===== */
.fs-iconbox { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fs-icon-tile { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fs-icon-tile--52 { width: 52px; height: 52px; }
.fs-icon-tile--44 { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.fs-icon-tile--22 { width: 22px; height: 22px; border-radius: 7px; margin-top: 1px; }

/* ===== hero ===== */
.rHero { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 56px 32px 0; text-align: center; }
.rH1 { font-family: var(--display); font-weight: 700; font-size: 66px; line-height: 1.02; letter-spacing: -0.02em; margin: 26px 0 0; color: var(--text); }
.rHeroP { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 22px auto 0; }
.rUrlBox { margin: 38px auto 0; max-width: 760px; background: linear-gradient(180deg, var(--inputbg1), var(--inputbg2)); border: 1px solid var(--border); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 24px 60px var(--shadow), 0 0 0 1px var(--accent-soft); }
.rUrlInput { display: flex; align-items: center; gap: 12px; flex: 1; padding: 0 8px 0 16px; }
.fs-url-field { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--body); font-size: 17px; padding: 16px 0; }
.rDownloadBtn { font-size: 16px; padding: 17px 30px; border-radius: 13px; }
#fsResult { display: none; max-width: 760px; margin: 14px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
#fsResult.fs-show { display: block; }
.fs-spin { width: 14px; height: 14px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: fsSpin .7s linear infinite; }
.fs-result-row { display: inline-flex; align-items: center; gap: 8px; }
.fs-fmtbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-fmtbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-text); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 9px; text-decoration: none; cursor: pointer; }
.fs-result-title { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.fs-msg-ok { color: var(--accent-text); font-weight: 700; }
.fs-msg-err { color: var(--blink); font-weight: 600; }
.fs-msg-faint { color: var(--faint); }

/* ===== download flow (inside #fsResult) ===== */
.fs-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fs-step { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.fs-step__b { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.fs-step.is-active { color: var(--accent-text); }
.fs-step.is-active .fs-step__b { border-color: var(--accent); color: var(--accent-text); }
.fs-step.is-done { color: var(--accent-text); }
.fs-step.is-done .fs-step__b { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fs-step__sep { flex: 1; min-width: 8px; height: 1px; background: var(--border); }
.fs-status { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text2); font-weight: 600; }
.fs-prog { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; margin-top: 10px; }
.fs-prog__bar { height: 100%; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); width: 0; transition: width .4s ease; }
.fs-meta { display: flex; gap: 14px; align-items: center; }
.fs-rthumb { width: 120px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--ph1), var(--ph2)); flex-shrink: 0; }
.fs-rthumb__img, .fs-vcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-fs-sfw="on"] .fs-rthumb.is-explicit::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(12px) saturate(.85); -webkit-backdrop-filter: blur(12px) saturate(.85); background: var(--veil); }
.fs-rtitle { font-weight: 700; color: var(--text); font-size: 15.5px; line-height: 1.3; }
.fs-rsub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.fs-notify { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.fs-notify__lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.fs-adslot { border: 1px dashed var(--accent-border); border-radius: 12px; padding: 14px 16px; text-align: center; color: var(--accent-text); font-size: 13px; font-weight: 600; background: var(--accent-soft); }

/* ===== generic card + grids ===== */
.fs-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px; }
.fs-card--16 { border-radius: 16px; padding: 24px 22px; }
.fs-card--pad32 { padding: 30px 32px; }
.fs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fs-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fs-sec-head { text-align: center; margin-bottom: 30px; }
.rSecHead { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }

/* how-it-works cards */
.rHowGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fs-step__head { display: flex; align-items: center; gap: 14px; }
.fs-step__num { font-family: var(--display); font-weight: 700; font-size: 38px; color: var(--border); line-height: 1; }
.fs-step__title { font-size: 17px; font-weight: 700; color: var(--text); margin: 18px 0 0; }
.fs-step__desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 7px 0 0; }

/* marquee */
.rMarqueeCap { text-align: center; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.fs-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); }
.fs-marquee__track { display: flex; gap: 44px; width: max-content; align-items: center; animation: fsMarquee 32s linear infinite; }
.fs-logo-chip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 9px 17px 9px 10px; }
.fs-logo-chip__tile { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; flex-shrink: 0; }
.fs-logo-chip__name { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--text); white-space: nowrap; letter-spacing: -0.01em; }

/* stats */
.rStats { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 40px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.fs-stat { display: flex; align-items: center; gap: 16px; }
.rStatCell { border-left: 1px solid var(--border); padding-left: 36px; }
.fs-stat__num { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--text); }
.fs-stat__label { color: var(--muted); font-size: 14px; font-weight: 500; }

/* library */
.rLibGrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fsLibGridWrap { position: relative; }
.fsLibEmpty { display: none; border: 1px dashed var(--border); border-radius: 18px; padding: 54px; text-align: center; color: var(--faint); }
.fsLibEmpty__title { font-size: 15px; font-weight: 600; color: var(--muted); }
.fsLibEmpty__sub { font-size: 13.5px; margin-top: 6px; }
[data-fs-libcleared] .fsLibGridWrap { display: none; }
[data-fs-libcleared] .fsLibEmpty { display: block; }
.fs-vcard { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; overflow: hidden; }
.fs-vcard__thumb { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--ph1), var(--ph2)); overflow: hidden; }
[data-fs-sfw="on"] .fs-vcard__thumb.is-explicit::after { content: ""; position: absolute; inset: 0; z-index: 2; backdrop-filter: blur(16px) saturate(.85); -webkit-backdrop-filter: blur(16px) saturate(.85); background: var(--veil); }
.fs-stripes { position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, var(--stripe) 0 2px, transparent 2px 11px); }
.fs-vcard__dur { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.72); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; z-index: 3; }
.fs-vcard__body { padding: 12px 13px 14px; }
.fs-vcard__title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; min-height: 36px; }
.fs-vcard__src { color: var(--faint); font-size: 12.5px; margin-top: 3px; }
.fs-vcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.fs-vcard__res { color: var(--accent-text); font-weight: 700; font-size: 13px; }
.fs-dl-glyph { width: 30px; height: 30px; border-radius: 8px; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.fs-hidden { display: none !important; }
.fs-rot-sub { font-weight: 700; color: var(--text); font-size: 14px; margin-bottom: 12px; }
.fs-rotcard { text-decoration: none; display: block; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.fs-rotcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--shadow); border-color: var(--accent-border); }

/* SFW lens */
.fsLens { position: absolute; inset: -1px; z-index: 5; border-radius: 18px; overflow: hidden; backdrop-filter: blur(24px) saturate(0.85); -webkit-backdrop-filter: blur(24px) saturate(0.85); background: var(--veil); display: flex; align-items: center; justify-content: center; padding: 20px; }
[data-fs-sfw="off"] .fsLens { display: none !important; }
/* SFW-on: обрезаем контейнер тем же скруглением, что и .fsLens (18px) — иначе квадратные углы грида
   выглядывают из-за скруглённого края блюра. Только при скрытии (под линзой) — открытый вид не меняем. */
[data-fs-sfw="on"] .fsLibGridWrap { overflow: hidden; border-radius: 18px; }
.fsLens__inner { text-align: center; max-width: 400px; }
.fsLens__tile { width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center; margin: 0 auto; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--accent-text); }
.fsLens__title { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--text); margin: 16px 0 0; }
.fsLens__text { color: var(--text2); font-size: 14px; line-height: 1.55; margin: 9px auto 0; max-width: 320px; }

/* SEO block */
.fs-seo-p { color: var(--muted); font-size: 15px; line-height: 1.72; margin: 0; }
.fs-seo-strong { color: var(--text2); font-weight: 600; }

/* FAQ */
.fs-faq-list { display: flex; flex-direction: column; gap: 12px; }
.fsFaq { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; overflow: hidden; }
.fsFaq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: transparent; border: none; cursor: pointer; padding: 20px 22px; text-align: left; }
.fsFaq__qtext { font-family: var(--body); font-size: 16.5px; font-weight: 700; color: var(--text); }
.fsFaqCaret { flex-shrink: 0; display: flex; transition: transform .25s ease; }
.fsFaq.fs-open .fsFaqCaret { transform: rotate(180deg); }
.fsFaqAnswer { display: none; padding: 0 22px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 660px; }
.fsFaq.fs-open .fsFaqAnswer { display: block; }
.fsFaqAnswer a { color: var(--accent-text); }

/* trust */
.rTrustGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fs-trust__n { color: var(--accent-text); font-family: var(--display); font-weight: 700; font-size: 17px; }
.fs-trust__title { font-size: 16px; font-weight: 700; color: var(--text); }
.fs-trust__desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 8px; }

/* extension */
.rExtGrid { background: var(--surface); border: 1px solid var(--accent-border); border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.fs-ext__h2 { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.08; color: var(--text); margin: 20px 0 0; }
.fs-ext__h2 span { color: var(--accent); }
.fs-ext__p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 16px 0 0; }
.fs-featlist { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 0; }
.fs-feat { display: flex; gap: 12px; align-items: flex-start; }
.fs-feat__t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.fs-feat__d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.fs-storebtns { display: flex; gap: 12px; margin: 28px 0 0; }
.fs-storebtn { display: flex; align-items: center; gap: 10px; background: var(--chip); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; text-decoration: none; }
.fs-storebtn__name { color: var(--text); font-size: 14px; font-weight: 700; }
.fs-storebtn__sub { color: var(--muted); font-size: 11.5px; }
.fs-browser { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px var(--shadow); }
.fs-browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.fs-dot { width: 11px; height: 11px; border-radius: 50%; }
.fs-dot--r { background: #ff5f57; } .fs-dot--y { background: #febc2e; } .fs-dot--g { background: #28c840; }
.fs-browser__url { flex: 1; margin-left: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.fs-browser__stage { position: relative; padding: 18px; }
.fs-browser__video { position: relative; aspect-ratio: 16/9; border-radius: 11px; overflow: hidden; background: linear-gradient(135deg, var(--ph1), var(--ph2)); }
.fs-stripes--blur { backdrop-filter: blur(8px); }
.fs-playwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fs-playcircle { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; }
.fs-popover { position: absolute; right: 28px; top: 36px; width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: 0 20px 44px var(--shadow); }
.fs-popover__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fs-popover__logo { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); display: flex; align-items: center; justify-content: center; }
.fs-popover__brand { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text); letter-spacing: 0.03em; }
.fs-popover__found { display: flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 12px; font-weight: 600; margin-bottom: 11px; }
.fs-check-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.fs-popover__opt { background: var(--chip); border: 1px solid var(--border); color: var(--text2); text-align: center; font-size: 12.5px; font-weight: 600; padding: 8px; border-radius: 9px; margin-top: 7px; }
.fs-popover__opt--primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--on-accent); font-weight: 700; padding: 9px; margin-top: 0; border: none; }

/* categories */
.rCatGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fsCatCard { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-decoration: none; transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
.fsCatCard:hover { box-shadow: 0 14px 34px var(--shadow); transform: translateY(-3px); border-color: var(--accent-border); }
.fsCatCard:hover .fsCatGlyph { opacity: .9; }
.fs-cat__name { font-size: 16px; font-weight: 700; color: var(--text); }
.fs-cat__count { color: var(--muted); font-size: 13px; margin-top: 3px; }
.fsCatGlyph { font-family: var(--display); color: var(--accent-text); opacity: 0.45; font-weight: 700; font-size: 28px; transition: opacity 0.22s ease; }
.fsViewAll { color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; display: flex; align-items: center; gap: 6px; transition: text-decoration-color 0.18s ease; }
.fsViewAll:hover { text-decoration-color: var(--accent-text) !important; }

/* ===== footer ===== */
.fs-footer { position: relative; z-index: 1; margin: 90px 0 0; border-top: 1px solid var(--border); background: var(--bg2); }
.fs-footer__inner { max-width: 1100px; margin: 0 auto; padding: 44px 32px 30px; }
.rFootRow { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.fs-foot-about { max-width: 320px; }
.fs-foot-brandrow { display: flex; align-items: center; gap: 10px; }
.fs-foot-disclaimer { color: var(--faint); font-size: 13px; line-height: 1.6; margin: 14px 0 0; }
.rFootLinks { display: flex; gap: 56px; }
.fs-foot-coltitle { color: var(--text); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.fsFootLink { display: block; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; margin-bottom: 10px; transition: color 0.18s ease, text-decoration-color 0.18s ease; }
.fsFootLink:last-child { margin-bottom: 0; }
.fsFootLink:hover { color: var(--accent-text) !important; text-decoration-color: var(--accent-text) !important; }
.rFootBottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 12.5px; flex-wrap: wrap; }
.fs-footlangs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===== language switchers ===== */
.fsLang, .rLangNav, .fsFlang { position: relative; }
.fsCaret { display: flex; transition: transform .2s ease; }
.fsLang.fs-open .fsCaret, .fsFlang.fs-open .fsCaret { transform: rotate(180deg); }
.fsLangMenu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 6px; box-shadow: 0 18px 44px var(--shadow); z-index: 30; }
.fsLang.fs-open .fsLangMenu { display: block; }
.fsLangRow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border: none; cursor: pointer; padding: 9px 12px; border-radius: 9px; font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--text2); }
.fsLangRow__l { display: flex; align-items: center; gap: 9px; }
.fsLangRow__flag { font-size: 15px; }
.fsLangRow__short { font-size: 11px; font-weight: 700; opacity: 0.6; }
.fsLangRow.fs-active { background: var(--accent-soft); color: var(--accent-text); }
.fsFlangPill { display: flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--border); cursor: pointer; padding: 5px 11px; border-radius: 8px; font-family: var(--body); font-weight: 600; font-size: 12.5px; color: var(--text2); transition: border-color .18s ease, color .18s ease, transform .18s ease; }
.fsFlangPill__flag { font-size: 13px; }
.fsFlangPill:hover { border-color: var(--accent-border); color: var(--accent-text); transform: translateY(-1px); }
.fsFlangPill.fs-active { background: var(--accent-soft); color: var(--accent-text); }
.fsFlangMore { display: flex; align-items: center; gap: 6px; background: var(--chip); border: 1px solid var(--border); cursor: pointer; padding: 5px 12px; border-radius: 8px; font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--text2); letter-spacing: 0.06em; transition: border-color .18s ease, color .18s ease; }
.fsFlangMore:hover { border-color: var(--accent-border); color: var(--accent-text); }
.fsFlangMenu { display: none; position: absolute; bottom: calc(100% + 10px); right: 0; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: 0 24px 56px var(--shadow); z-index: 30; }
.fsFlang.fs-open .fsFlangMenu { display: block; }
.fsFlangMenu__title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 2px 4px 10px; }
.fsFlangGrid-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.fsFlangGrid { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; cursor: pointer; padding: 9px 11px; border-radius: 10px; font-family: var(--body); font-weight: 600; font-size: 13.5px; color: var(--text2); text-align: left; transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.fsFlangGrid--main { background: var(--chip); border-color: var(--border); }
.fsFlangGrid__flag { font-size: 17px; line-height: 1; }
.fsFlangGrid__label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsFlangGrid:hover { border-color: var(--accent-border); color: var(--accent-text); background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 8px 18px var(--shadow); }
.fsFlangGrid.fs-active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }

/* ===== age gate ===== */
#fsAgeGate { position: fixed; inset: 0; z-index: 50; background: var(--veil); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: center; padding: 24px; }
html[data-fs-age="ok"] #fsAgeGate { display: none !important; }
.fs-gate { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 40px 38px; text-align: center; box-shadow: 0 40px 100px var(--shadow); animation: fsFade 0.4s ease both; }
.fs-gate__tile { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center; margin: 0 auto; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--accent); }
.fs-gate__title { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--text); margin: 22px 0 0; }
.fs-gate__body { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 14px 0 0; }
.fs-gate__remember { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 22px 0 0; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.fsRememberBox { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--accent); background: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.fs-gate__enter { margin: 26px 0 0; }
.fs-gate__leave { margin: 11px 0 0; }
.fs-gate__fine { color: var(--faint); font-size: 11.5px; line-height: 1.6; margin: 20px 0 0; }
.fs-gate__fine a { color: var(--muted); text-decoration: underline; }

/* ===== theme/sfw nav state ===== */
.fsThemeIcon { display: flex; }
.fsSfwNav { background: var(--accent-soft); border-color: var(--border); color: var(--accent-text); }
.fsSfwDot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ===== auth: header chip + modal (optional accounts) ===== */
.fs-auth { display: flex; align-items: center; gap: 10px; }
.fs-userchip { display: inline-flex; align-items: center; gap: 7px; max-width: 200px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.fs-userchip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.fs-userchip__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-logout { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; white-space: nowrap; cursor: pointer; }
.fs-logout:hover { color: var(--text); }
/* залогинен: email над «выйти» (узкий блок вместо широкого ряда), опущен на 10px */
.fs-auth.fs-authed { flex-direction: column; align-items: flex-end; gap: 2px; transform: translateY(10px); }
.fs-auth.fs-authed .fs-userchip { max-width: 168px; padding: 4px 11px; font-size: 12.5px; }
.fs-auth.fs-authed .fs-logout { padding: 0 4px; font-size: 12px; line-height: 1.4; }

.fs-authm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fs-authm[hidden] { display: none; }
.fs-authm__backdrop { position: absolute; inset: 0; background: var(--veil); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fs-authm__card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px 34px 28px; box-shadow: 0 40px 100px var(--shadow); animation: fsFade 0.32s ease both; }
.fs-authm__x { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.fs-authm__x:hover { color: var(--text); background: var(--surface2); }
.fs-authm__brand { display: flex; align-items: center; gap: 9px; }
.fs-authm__title { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--text); margin: 18px 0 0; }
.fs-authm__sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 8px 0 0; }
.fs-authm__form { display: flex; flex-direction: column; gap: 11px; margin: 22px 0 0; }
.fs-authm__input { width: 100%; box-sizing: border-box; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; color: var(--text); font-size: 15px; font-family: inherit; }
.fs-authm__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fs-authm__input::placeholder { color: var(--faint); }
.fs-authm__err { color: var(--blink); font-size: 13px; line-height: 1.5; background: rgba(224,50,46,0.08); border: 1px solid rgba(224,50,46,0.28); border-radius: 10px; padding: 9px 12px; }
.fs-authm__form .fs-btn { margin-top: 4px; }
.fs-authm__form .fs-btn.is-busy { opacity: 0.6; pointer-events: none; }
.fs-authm__toggle { text-align: center; color: var(--muted); font-size: 13.5px; margin: 18px 0 0; }
.fs-authm__toggle a { color: var(--accent-text); text-decoration: none; font-weight: 600; margin-left: 5px; }
.fs-authm__toggle a:hover { text-decoration: underline; }
.fs-authm__fine { text-align: center; color: var(--faint); font-size: 11.5px; line-height: 1.6; margin: 18px 0 0; }
.fs-authm__fine a { color: var(--muted); text-decoration: underline; }
.fs-noscroll { overflow: hidden; }

/* ===== supported-sites page ===== */
.fs-search { margin: 22px 0 0; max-width: 420px; display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, var(--inputbg1), var(--inputbg2)); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.fs-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--body); font-size: 15px; }
.fsSiteGroup { margin-top: 30px; }
.fs-sitegroup__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.fs-sitegroup__count { color: var(--faint); font-size: 13px; font-weight: 600; }
.fs-sitegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fsSiteItem { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 14px 16px; text-decoration: none; transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
.fsSiteItem:hover { box-shadow: 0 14px 34px var(--shadow); transform: translateY(-3px); border-color: var(--accent-border); }
.fs-site__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fs-site__name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.fs-site__host { color: var(--faint); font-size: 12px; margin-top: 2px; }
.fs-site__arrow { color: var(--accent-text); opacity: 0.4; font-size: 16px; }
#fsSitesEmpty { display: none; color: var(--muted); margin-top: 24px; }

/* ===== legal hub ===== */
.fs-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 0; }
.fs-legal-card__title { font-size: 16px; font-weight: 700; color: var(--text); }
.fs-legal-card__sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ===== utilities ===== */
.fs-row { display: flex; align-items: center; gap: 10px; }
.fs-row--gap14 { gap: 14px; }
.fs-actions { display: flex; align-items: center; gap: 10px; }
.fs-strong-text { color: var(--text); }
.fs-strong-2 { color: var(--text2); }
.fs-accent-text { color: var(--accent-text); }

/* ===== responsive ===== */
/* На ноутбучных ширинах (<1200px) навбар не помещался для «многословных» языков (es/de/ru/…):
   подписи действий (SFW/тема) широкие → кнопка регистрации уезжала за край. Сворачиваем подписи
   в иконки (дот/солнце-луна остаются) + ужимаем отступы — language-agnostic, без потери функций. */
@media (max-width: 1600px) {
  /* длинные языки (FR «Mode SFW : activé», DE/RU …) переполняли навбар вплоть до ~1600px →
     сворачиваем подписи действий в иконки (дот/солнце-луна остаются) + гарантируем минимальные
     зазоры между группами (gap поверх space-between — «принудительный отступ» даже при заполнении). */
  .fsSfwLabel, .fsThemeLabel { display: none; }
  .rNav { gap: 14px; }
  .rNavLinks { gap: 18px; }
  .rNavActions { gap: 8px; }
}
@media (max-width: 1080px) {
  .rHowGrid { grid-template-columns: repeat(3, 1fr); }
  .rNavLinks { display: none; }
  .rH1 { font-size: 50px; }
  .rExtGrid { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .rTrustGrid { grid-template-columns: repeat(2, 1fr); }
  .rCatGrid, .fs-sitegrid { grid-template-columns: repeat(2, 1fr); }
  .rLibGrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .rNav { padding: 16px 18px; flex-wrap: wrap; gap: 12px; }
  .rNavActions { gap: 8px; }
  .rSfwNav, .rLoginNav, .fs-login { display: none; }
  .rHero { padding: 36px 18px 0; }
  .rH1 { font-size: 35px; }
  .rHeroP { font-size: 15.5px; }
  .fs-sec, .rNav, .fs-footer__inner { padding-left: 18px; padding-right: 18px; }
  .rUrlBox { flex-direction: column; padding: 12px; gap: 8px; }
  .rUrlInput { width: 100%; padding: 4px 8px; }
  .rDownloadBtn { width: 100%; justify-content: center; padding: 15px; }
  .rStats { grid-template-columns: 1fr; gap: 0; padding: 22px; }
  .rStatCell { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
  [dir="rtl"] .rStatCell { border-right: none; padding-right: 0; }   /* стек на мобиле: убрать вертикальный делитель и в RTL */
  .rLibGrid { grid-template-columns: repeat(2, 1fr); }
  .rTrustGrid, .rHowGrid, .rCatGrid, .fs-grid-2, .fs-legal-grid, .fs-sitegrid { grid-template-columns: 1fr; }
  .rSecHead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rH2 { font-size: 27px; }
  .rFootRow { flex-direction: column; gap: 30px; }
  .rFootLinks { gap: 44px; }
  .rFootBottom { flex-direction: column; gap: 8px; }
  .rMarqueeCap { font-size: 11px; }
}
@media (min-width: 1600px) {
  .rNav { max-width: 1320px; }
  .fs-sec { max-width: 1300px; }
  .rHero { max-width: 1060px; }
  .rH1 { font-size: 80px; }
}

/* ===== RTL (dir="rtl" for ar/he/fa/ur — активируется токеном {DIR}) =====
   Flex/grid в макете уже зеркалятся по dir автоматически; ниже — выравнивание текста и
   «физически» спозиционированные/отступающие элементы, которые нужно отзеркалить вручную. */
[dir="rtl"] { text-align: right; }
/* вернуть выравнивание вправо там, где правило явно задаёт text-align:left */
[dir="rtl"] #fsResult,
[dir="rtl"] .fsFaq__q,
[dir="rtl"] .fsLangRow,
[dir="rtl"] .fsFlangGrid,
[dir="rtl"] .fs-search input { text-align: right; }
/* абсолютное позиционирование: зеркалим left/right */
[dir="rtl"] .fs-vcard__dur { right: auto; left: 8px; }
[dir="rtl"] .fs-popover    { right: auto; left: 28px; }
[dir="rtl"] .fsLangMenu,
[dir="rtl"] .fsFlangMenu   { right: auto; left: 0; }
/* направленные отступы/границы */
[dir="rtl"] .rStatCell     { border-left: none; border-right: 1px solid var(--border); padding-left: 0; padding-right: 36px; }
[dir="rtl"] .fs-browser__url { margin-left: 0; margin-right: 10px; }
/* стрелки/иконки направления */
[dir="rtl"] .fs-site__arrow { display: inline-block; transform: scaleX(-1); }

/* ===== card "watch at source": ВСЁ превью кликабельно → /go/ ; пилюля по ховеру ===== */
.fs-vcard__srcbtn { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; background: transparent; transition: background .16s ease; }
.fs-vcard__srcbtn:hover { background: rgba(16,15,20,.34); }
.fs-srcbtn__pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: rgba(16,15,20,.66); border: 1px solid rgba(255,255,255,.28); font-size: 12.5px; font-weight: 700;
  opacity: 0; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fs-vcard:hover .fs-srcbtn__pill { opacity: 1; transform: none; }
@media (hover: none) { .fs-srcbtn__pill { opacity: 1; transform: none; } }
.fs-vcard__dur { pointer-events: none; }   /* бейдж длительности не перехватывает клик по превью */
a.fs-dl-glyph { text-decoration: none; color: var(--text2); }
a.fs-dl-glyph:hover { color: var(--accent-text); }

/* ===== leave-the-site interstitial (/go/) ===== */
.fs-gohost { display: inline-block; margin: 16px auto 0; padding: 10px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font-family: var(--display);
  font-weight: 700; font-size: 18px; color: var(--accent-text); word-break: break-all; max-width: 100%; }
.fs-gobtns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== skeleton shimmer (during resolve) ===== */
.fs-skel { margin-top: 14px; }
.fs-skel__row { display: flex; gap: 14px; align-items: center; }
.fs-skel__thumb { width: 120px; aspect-ratio: 16/10; border-radius: 10px; flex-shrink: 0; }
.fs-skel__lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.fs-skel__l { height: 12px; border-radius: 6px; }
.fs-skel__l--lg { width: 72%; } .fs-skel__l--md { width: 48%; } .fs-skel__l--sm { width: 30%; height: 10px; }
.fs-skel__btns { display: flex; gap: 8px; margin-top: 16px; }
.fs-skel__chip { width: 64px; height: 30px; border-radius: 9px; }
.fs-skel__thumb, .fs-skel__l, .fs-skel__chip, .fs-vskel__thumb {
  background: linear-gradient(100deg, var(--chip) 30%, rgba(255,255,255,0.12) 50%, var(--chip) 70%);
  background-size: 200% 100%; animation: fsShimmer 1.25s ease-in-out infinite; }
@keyframes fsShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* плейсхолдер-карточка Trending (пока /api/rotation догружается) — повторяет размеры .fs-vcard, резервирует высоту (анти-CLS) */
.fs-vskel { pointer-events: none; }
.fs-vskel .fs-vcard__thumb { background: var(--chip); }
.fs-vskel__thumb { position: absolute; inset: 0; display: block; }
.fs-vskel .fs-skel__l { display: block; }

/* пустая ротация сервиса (ещё ничего не сохранено с этой площадки) — «be the first» */
.fs-rot-empty { text-align: center; padding: 40px 22px; border: 1px dashed var(--border); border-radius: 15px; background: var(--surface); }
.fs-rot-empty__title { font-weight: 700; color: var(--text); font-size: 16px; }
.fs-rot-empty__text { color: var(--faint); font-size: 14px; margin-top: 8px; }

/* ===== busy URL box (input disabled during a download) ===== */
.rUrlBox.is-busy { opacity: .8; }
.fs-url-field:disabled { cursor: not-allowed; }
.rUrlBox.is-busy .rDownloadBtn { opacity: .7; cursor: progress; }

/* ===== per-site pages (/sites/<slug>) ===== */
.fs-bc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.fs-bc a { color: var(--muted); text-decoration: none; }
.fs-bc a:hover { color: var(--accent-text); }
.fs-bc__sep { margin: 0 8px; color: var(--faint); }
.fs-bc__cur { color: var(--text2); }
.fs-link-accent { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.fs-link-accent:hover { text-decoration: underline; }
.fs-mb-16 { margin-bottom: 16px; }
[dir="rtl"] .fs-bc__sep { transform: scaleX(-1); display: inline-block; }
/* supported scenarios (works / not) */
.fs-scen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.fs-scen__col { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.fs-scen__h { font-weight: 700; font-size: 14px; margin: 0 0 12px; letter-spacing: .01em; }
.fs-scen__h--ok { color: var(--accent-text); }
.fs-scen__h--no { color: var(--blink); }
.fs-checklist, .fs-xlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fs-checklist li, .fs-xlist li { position: relative; padding-left: 24px; color: var(--text2); font-size: 14.5px; line-height: 1.5; }
.fs-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 800; }
.fs-xlist li::before { content: "✕"; position: absolute; left: 0; color: var(--blink); font-weight: 800; }
/* troubleshooting */
.fs-trouble-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.fs-trouble { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.fs-trouble__p { font-weight: 700; color: var(--text); font-size: 15px; margin: 0 0 6px; }
.fs-trouble__f { color: var(--text2); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 720px) { .fs-scen { grid-template-columns: 1fr; } }
[dir="rtl"] .fs-checklist li, [dir="rtl"] .fs-xlist li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .fs-checklist li::before, [dir="rtl"] .fs-xlist li::before { left: auto; right: 0; }
/* per-site byline (E-E-A-T: reviewed by a named editor) */
.fs-byline { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.fs-byline a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.fs-byline a:hover { text-decoration: underline; }

/* ===== /about — editorial team ===== */
.fs-team { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.fs-teammate { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; }
.fs-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-strong)); margin-bottom: 14px; }
.fs-avatar--img { width: 84px; height: 84px; object-fit: cover; object-position: center top; padding: 0; border: 1px solid var(--border); }
.fs-teammate__name { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); }
.fs-teammate__role { color: var(--accent-text); font-size: 13px; font-weight: 600; margin: 2px 0 10px; }
.fs-teammate__bio { color: var(--text2); font-size: 14.5px; line-height: 1.65; margin: 0 0 12px; }
@media (max-width: 720px) { .fs-team { grid-template-columns: 1fr; } }

/* ===== guides ===== */
.fs-guidegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs-guidecard { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; text-decoration: none; transition: border-color .15s; }
.fs-guidecard:hover { border-color: var(--accent-border); }
.fs-guidecard__t { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); line-height: 1.3; }
.fs-guidecard__d { color: var(--text2); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.fs-guidecard__go { display: inline-block; margin-top: 12px; color: var(--accent-text); font-weight: 600; font-size: 13.5px; }
.fs-guide-list { margin: 4px 0 0; padding-left: 22px; color: var(--text2); font-size: 15px; line-height: 1.7; }
.fs-guide-list li { margin-bottom: 7px; }
@media (max-width: 720px) { .fs-guidegrid { grid-template-columns: 1fr; } }
[dir="rtl"] .fs-guide-list { padding-left: 0; padding-right: 22px; }
