@font-face{font-family:SFR;src:url(/assets/SF-Pro-Rounded-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:SFR;src:url(/assets/SF-Pro-Rounded-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:SFR;src:url(/assets/SF-Pro-Rounded-Black.woff2) format("woff2");font-weight:900;font-display:swap}
:root{--bg:#161519;--panel:#1d1c21;--line:#ffffff17;--yellow:#f7c325;--white:#fff;--gray:#a3a1a9;--gray2:#d4d3d8}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--gray2);font-family:SFR,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.7;font-size:18px}
a{color:var(--yellow)}
a:hover{color:#fff}
.bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:24px;padding:14px 24px;background:#161519ee;backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.logo{color:#fff;font-weight:900;font-size:20px;text-decoration:none;letter-spacing:.02em}
.logo span{color:var(--yellow)}
.bar nav{display:flex;gap:6px;flex:1;flex-wrap:wrap}
.bar nav a{color:var(--gray2);text-decoration:none;font-weight:700;font-size:15px;padding:10px 12px;border-radius:999px}
.bar nav a:hover,.bar nav a.on{color:#fff;background:#ffffff10}
.cta{background:var(--yellow);color:#161519;font-weight:900;font-size:14px;text-decoration:none;padding:12px 20px;border-radius:999px;white-space:nowrap}
.cta:hover{color:#161519;background:#ffd34d}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.article{max-width:760px}
.hero{padding:72px 0 40px}
.hero h1,.article h1{color:#fff;font-weight:900;line-height:1.12;margin:8px 0 18px;letter-spacing:-.01em}
.hero h1{font-size:clamp(2.2rem,6vw,4rem)}
.article h1{font-size:clamp(1.9rem,4.6vw,2.9rem)}
.lead{font-size:1.2rem;max-width:640px;margin:0}
.cat{color:var(--yellow);font-weight:900;font-size:13px;letter-spacing:.14em;text-transform:uppercase;margin:0}
.crumbs{font-size:14px;color:var(--gray);padding:40px 0 18px}
.crumbs a{color:var(--gray);text-decoration:none}
.crumbs a:hover{color:#fff}
.byline{display:flex;align-items:center;gap:12px;margin:0 0 28px;font-size:15px}
.byline img{border-radius:50%;background:var(--panel)}
.byline a{color:#fff;font-weight:700;text-decoration:none;display:block}
.byline span{color:var(--gray)}
.toc{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px 22px;margin:0 0 32px;font-size:16px}
.toc summary{cursor:pointer;color:#fff;font-weight:700}
.toc ol{margin:12px 0 0;padding-left:20px}
.toc a{color:var(--gray2);text-decoration:none}
.toc a:hover{color:var(--yellow)}
.body h2{color:#fff;font-weight:900;font-size:1.65rem;line-height:1.25;margin:2.2em 0 .6em;scroll-margin-top:90px}
.body h3{color:#fff;font-weight:700;font-size:1.22rem;margin:1.8em 0 .4em}
.body p,.body li{margin:0 0 1.1em}
.body ul,.body ol{padding-left:1.3em}
.body strong{color:#fff}
.body blockquote{margin:1.4em 0;padding:16px 20px;border-radius:14px;background:var(--panel);border:1px solid var(--line);color:#fff;font-style:italic}
.body blockquote p{margin:0}
.body table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:16px;display:block;overflow-x:auto}
.body th,.body td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line)}
.body th{color:#fff;background:var(--panel)}
.author{display:flex;gap:18px;align-items:flex-start;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:24px;margin:56px 0}
.author img{border-radius:50%;flex:none;background:#26252b}
.author p{margin:0}
.author .by{color:var(--gray);font-size:13px;text-transform:uppercase;letter-spacing:.12em}
.author .name{font-size:1.3rem;font-weight:900}
.author .name a{color:#fff;text-decoration:none}
.author .role{color:var(--yellow);font-weight:700;font-size:15px;margin-bottom:8px}
.author .bio{font-size:16px;margin-bottom:8px}
.author .links{font-size:15px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;margin:0 0 40px}
.card{display:flex;flex-direction:column;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:24px;text-decoration:none;color:var(--gray2);transition:border-color .2s,transform .2s}
.card:hover{border-color:var(--yellow);transform:translateY(-2px);color:var(--gray2)}
.card h2{color:#fff;font-size:1.2rem;line-height:1.3;font-weight:900;margin:0}
.card p{margin:0;font-size:16px;line-height:1.55}
.card .meta{margin-top:auto;font-size:14px;color:var(--gray)}
.rel-h{color:#fff;font-weight:900;font-size:1.5rem}
.foot{border-top:1px solid var(--line);padding:32px 24px;text-align:center;font-size:15px;color:var(--gray)}
.foot p{margin:4px 0}
@media (max-width:720px){
  body{font-size:17px}
  .bar{gap:10px;padding:10px 14px;flex-wrap:wrap}
  .bar nav{order:3;flex-basis:100%;overflow-x:auto;flex-wrap:nowrap}
  .cta{margin-left:auto;padding:10px 14px;font-size:13px}
  .author{flex-direction:column}
  .grid{grid-template-columns:1fr}
}
.langsw{display:inline-block;margin:0 0 20px;padding:8px 16px;border:1px solid var(--line);border-radius:999px;font-weight:700;font-size:15px;text-decoration:none}
.langsw:hover{border-color:var(--yellow)}
html[dir=rtl] body{font-family:Cairo,SFR,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.85}
html[dir=rtl] .hero h1,html[dir=rtl] .article h1{line-height:1.35;letter-spacing:0}
html[dir=rtl] .cat{letter-spacing:0}
html[dir=rtl] .author .by{letter-spacing:0}
html[dir=rtl] .body ul,html[dir=rtl] .body ol{padding-left:0;padding-right:1.3em}
html[dir=rtl] .toc ol{padding-left:0;padding-right:20px}
html[dir=rtl] .body th,html[dir=rtl] .body td{text-align:right}
