
:root{--bg:#f2f3f0;--paper:#fbfbf9;--card:#fff;--ink:#12202c;--mut:#566472;--line:#d9dcd6;--steel:#14222e;--steel2:#1e3243;
--acc:#9a5a1c;--acc-soft:#f1e4d3;--acc-ink:#fff;--ok:#1f7a4c;--r:14px;--r2:8px;
--t1:#e6d9a8;--t2:#d9b54e;--t3:#b5702a;--t4:#8b4a5c;--t5:#6a4c93;--t6:#2c4c9a;--t7:#6fa0d8;
--heat:linear-gradient(90deg,var(--t1),var(--t2),var(--t3),var(--t4),var(--t5),var(--t6),var(--t7));
--heatv:linear-gradient(180deg,var(--t1),var(--t2),var(--t3),var(--t4),var(--t5),var(--t6),var(--t7))}
:root[data-theme=dark]{--bg:#0d1620;--paper:#101b26;--card:#15232f;--ink:#e8edf1;--mut:#a3b1be;--line:#26394a;--steel:#09111a;--steel2:#142231;--acc:#e0a45a;--acc-soft:#2a2216;--acc-ink:#1a1206}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:66px;-webkit-text-size-adjust:100%}
body{font-family:'Vazirmatn',Tahoma,system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.95;font-size:16px;overflow-x:hidden}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--acc);outline-offset:2px;border-radius:6px}
.wrap{max-width:1180px;margin-inline:auto;padding-inline:20px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* header */
.top{position:sticky;top:0;z-index:70;background:color-mix(in srgb,var(--paper) 88%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.top:after{content:"";display:block;height:3px;background:var(--heat)}
.hd{display:flex;align-items:center;gap:8px;height:54px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:1.1rem;letter-spacing:.2px;margin-inline-end:6px}
.brand img{width:34px;height:34px;border-radius:50%}
.brand small{display:block;font-weight:400;font-size:.66rem;color:var(--mut);line-height:1.1}
nav.menu{display:flex;align-items:center;gap:2px;margin-inline-start:auto}
nav.menu>a,.more-btn{padding:4px 10px;border-radius:8px;font-size:.9rem;color:var(--mut);background:none;border:0;cursor:pointer;line-height:1.7}
nav.menu>a:hover,.more-btn:hover{background:var(--line);color:var(--ink)}
.more{position:relative}
.more-panel{display:none;position:absolute;top:100%;inset-inline-end:0;min-width:190px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 12px 30px #0003}
.more.open .more-panel{display:grid}
.more-panel a{padding:6px 12px;border-radius:7px;font-size:.9rem}.more-panel a:hover{background:var(--line)}
.ib{height:34px;min-width:34px;padding:0 10px;border:1px solid var(--line);background:var(--card);border-radius:8px;cursor:pointer;font-size:.82rem;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--ink)}
.ib:hover{border-color:var(--acc)}
.ib svg{width:16px;height:16px}
select.ib{max-width:104px}
.burger{display:none}
/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;font-weight:700;padding:11px 22px;border-radius:10px;font-size:.96rem;line-height:1.6;transition:transform .15s,background .15s}
.btn:active{transform:translateY(1px)}
.b-acc{background:var(--acc);color:var(--acc-ink)}.b-acc:hover{filter:brightness(1.08)}
.b-ink{background:var(--steel);color:#fff}:root[data-theme=dark] .b-ink{background:var(--line)}
.b-line{background:transparent;border:1.5px solid currentColor}
.btn svg{width:18px;height:18px;flex:none}
/* hero */
.hero{background:var(--paper);padding:clamp(34px,6vw,76px) 0 clamp(40px,6vw,80px)}
.hg{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(24px,5vw,64px);align-items:center}
.hero .role{font-size:.95rem;color:var(--acc);font-weight:700;margin-bottom:10px}
.hero h1{font-size:clamp(2.1rem,5.6vw,4.1rem);line-height:1.28;font-weight:900;letter-spacing:-.5px;margin-bottom:16px}
.hero .lead{font-size:1.06rem;color:var(--mut);max-width:34em;margin-bottom:24px;text-align:justify}
.cta{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.trust{margin-top:22px;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:.88rem;color:var(--mut)}
.trust span{display:inline-flex;align-items:center;gap:6px}.trust i{width:8px;height:8px;border-radius:50%;background:var(--ok);display:inline-block}
.portrait{position:relative;justify-self:center;width:min(380px,100%)}
.portrait img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:var(--r);display:block}
.portrait:before{content:"";position:absolute;inset-block:14px -14px;inset-inline:-14px 14px;border-radius:var(--r);background:var(--steel2);z-index:-1}
.portrait:after{content:"";position:absolute;inset-block:0;inset-inline-start:-14px;width:7px;border-radius:7px;background:var(--heatv)}
.hero{position:relative;isolation:isolate;overflow:hidden}
/* temper strip */
.temper{background:var(--steel);color:#e8edf1;padding:34px 0}
.tg{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(20px,4vw,50px);align-items:center}
.temper h2{font-size:1.35rem;font-weight:900;margin-bottom:4px}
.temper p{color:#a9b9c8;font-size:.92rem;max-width:36em}
.bar{height:74px;border-radius:10px;background:var(--tc,#d9b54e);position:relative;overflow:hidden;transition:background .25s;box-shadow:inset 0 0 0 1px #ffffff22}
.bar:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#fff7 0,#fff0 28%,#0004 100%)}
.temper input[type=range]{width:100%;margin:14px 0 4px;accent-color:#d9b54e;direction:ltr}
.tick{display:flex;justify-content:space-between;direction:ltr;font-size:.72rem;color:#8fa3b5}
.tout{margin-top:6px;font-weight:700;font-size:1.05rem;display:flex;gap:10px;flex-wrap:wrap;align-items:baseline}
.tout small{font-weight:400;color:#a9b9c8;font-size:.8rem}
/* sections */
section{padding:clamp(50px,7vw,92px) 0}
.alt{background:var(--paper)}
.sh{margin-bottom:30px;max-width:46em}
.sh h2{font-size:clamp(1.55rem,3.4vw,2.3rem);font-weight:900;line-height:1.45}
.sh h2:after{content:"";display:block;width:64px;height:5px;border-radius:5px;background:var(--heat);margin-top:10px}
.sh p{color:var(--mut);margin-top:10px}
.lead{color:var(--mut);text-align:justify}
.about{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(22px,4vw,56px);align-items:center}
.about img{border-radius:var(--r);width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.about p{margin-bottom:12px;text-align:justify;color:var(--mut)}
.about p b{color:var(--ink)}
.about a.in{color:var(--acc);font-weight:700;border-bottom:1px dashed currentColor}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.chips span{border:1px solid var(--line);border-radius:30px;padding:1px 13px;font-size:.84rem;background:var(--card)}
/* services */
.search{display:block;width:100%;max-width:440px;padding:10px 16px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;margin-bottom:22px}
.svg{display:grid;grid-template-columns:repeat(2,1fr);gap:0 36px}
.sv{display:grid;grid-template-columns:44px 1fr;gap:4px 14px;padding:18px 0;border-bottom:1px solid var(--line);align-items:start}
.sv .chip{grid-row:span 2;width:44px;height:44px;border-radius:10px;background:var(--c);display:grid;place-items:center;color:#fff;box-shadow:inset 0 0 0 1px #0002}
.sv .chip svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sv:nth-child(1) .chip,.sv:nth-child(8) .chip{color:#3a2c00}
.sv h3{font-size:1.04rem;font-weight:700;line-height:1.6}
.sv h3 a{border-bottom:1px dashed var(--acc);color:var(--acc)}
.sv p{font-size:.9rem;color:var(--mut);line-height:1.8}
.sv .tg2{font-size:.74rem;color:var(--acc);font-weight:700;margin-inline-start:8px}
.nores{color:var(--mut);padding:12px 0}
/* consult band */
.band{background:var(--steel);color:#e8edf1}
.two{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(22px,4vw,56px);align-items:start}
.band .sh p{color:#a9b9c8}
.ticks{list-style:none;display:grid;gap:10px;margin-top:6px}
.ticks li{display:flex;gap:10px;align-items:flex-start;color:#cfdae5}
.ticks li:before{content:"";flex:none;width:18px;height:18px;margin-top:6px;border-radius:50%;background:var(--t2);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat}
.fcard{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);padding:clamp(18px,3vw,28px)}
.band .fcard{background:#ffffff0d;border-color:#ffffff24;color:#fff}
.form{display:grid;gap:12px}.form label{font-size:.86rem;font-weight:500;display:block;margin-bottom:2px}
.form input,.form select,.form textarea{width:100%;padding:10px 13px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:.95rem}
.band .form input,.band .form select,.band .form textarea{background:#ffffff12;border-color:#ffffff30;color:#fff}
.band .form option{color:#000}
.form textarea{min-height:110px;resize:vertical}
.r2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.send{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.send .btn{padding:9px 6px;font-size:.88rem;color:#fff}
.c-tg{background:#229ed9}.c-wa{background:#1fa855}.c-ei{background:#e8590c}.c-ba{background:#12a07b}.c-ml{background:#566472}.c-sm{background:#6b4fd1}
.note{font-size:.82rem;color:var(--mut)}.band .note{color:#a9b9c8}
/* collapsible */
details.dd{border:1px solid var(--line);background:var(--card);border-radius:var(--r);padding:0 clamp(16px,3vw,26px)}
details.dd>summary{cursor:pointer;list-style:none;font-weight:700;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
details.dd>summary::-webkit-details-marker{display:none}
details.dd>summary:after{content:"+";flex:none;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:1.2rem;line-height:1;color:var(--acc)}
details.dd[open]>summary:after{content:"−"}
details.dd .body{padding-bottom:20px}
.faq details.dd{margin-bottom:10px}.faq details p{color:var(--mut);padding-bottom:16px}
/* tools & tests */
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.tab{border:1px solid var(--line);background:var(--card);border-radius:30px;padding:3px 16px;cursor:pointer;font-size:.9rem}
.tab[aria-selected=true]{background:var(--steel);color:#fff;border-color:var(--steel)}
:root[data-theme=dark] .tab[aria-selected=true]{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
.tool{display:none}.tool.on{display:block}
.res{margin-top:14px;padding:14px 16px;border-radius:10px;background:var(--acc-soft);border-inline-start:5px solid var(--acc);font-size:.95rem}
.res b{font-size:1.1rem;unicode-bidi:plaintext}
.res .row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pbar{height:6px;border-radius:6px;background:var(--line);overflow:hidden;margin-bottom:16px}.pbar i{display:block;height:100%;background:var(--heat);width:0;transition:width .3s}
.qn{font-size:.85rem;color:var(--mut)}
.q{font-size:1.12rem;font-weight:700;margin:6px 0 14px;line-height:1.8}
.opts{display:grid;gap:8px}
.opt{text-align:start;border:1.5px solid var(--line);background:var(--card);border-radius:10px;padding:10px 14px;cursor:pointer;font-size:.96rem}
.opt:hover{border-color:var(--acc)}
.opt.ok{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 14%,var(--card))}.opt.no{border-color:#c0392b;background:color-mix(in srgb,#c0392b 12%,var(--card))}
.opt[disabled]{cursor:default}
.expl{margin-top:12px;font-size:.9rem;color:var(--mut)}
.rscore{display:flex;flex-wrap:wrap;gap:22px;align-items:center}
.rscore canvas{width:min(340px,100%);height:auto;background:var(--card);border-radius:12px;border:1px solid var(--line)}
.lvl{font-size:1.6rem;font-weight:900;line-height:1.4}
.adv{margin-top:14px;display:grid;gap:8px}.adv div{padding:10px 14px;border-radius:9px;background:var(--card);border:1px solid var(--line);font-size:.9rem}
.adv b{color:var(--acc)}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
/* sites */
.sites{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:0 36px}
.sites a{display:block;padding:18px 0;border-bottom:1px solid var(--line)}
.sites a:hover h3{color:var(--acc)}
.sites h3{font-size:1.05rem;font-weight:700}
.sites p{font-size:.88rem;color:var(--mut);line-height:1.8}
.sites small{display:block;direction:ltr;text-align:start;color:var(--acc);font-weight:500;margin-top:2px}
/* feedback */
.stars{display:flex;gap:4px;direction:ltr;justify-content:flex-end}.stars button{background:none;border:0;font-size:2rem;line-height:1;cursor:pointer;color:var(--line)}.stars button.on{color:var(--t2)}
/* contact */
.soc{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.soc a,.soc button{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:10px;background:var(--card);border:1px solid var(--line);cursor:pointer;text-align:start;border-inline-start:5px solid var(--c)}
.soc a:hover,.soc button:hover{background:var(--line)}
.soc .ic{width:28px;height:28px;flex:none;color:var(--c)}.soc .ic svg{width:100%;height:100%}
.soc b{display:block;font-size:.95rem;line-height:1.5}.soc small{display:block;font-size:.78rem;color:var(--mut);direction:ltr;text-align:start;line-height:1.4}
/* install band */
.inst{background:var(--acc);color:var(--acc-ink);padding:26px 0}
.inst .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.inst b{font-size:1.15rem}.inst div div{opacity:.9;font-size:.9rem}
.inst .btn{background:var(--steel);color:#fff}
footer{background:var(--steel);color:#a9b9c8;padding:34px 0 96px;font-size:.88rem;border-top:3px solid transparent;border-image:var(--heat) 1}
footer a{color:#e8edf1}footer a:hover{color:var(--t2)}
.fl{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:14px}
/* floating */
.bk{position:fixed;inset-inline-end:16px;bottom:16px;z-index:60;background:rgba(232,89,12,.62);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-weight:700;border-radius:30px;padding:10px 20px;box-shadow:0 8px 24px #0004;border:1px solid #ffffff55;transition:all .2s}
.fab{position:fixed;inset-inline-start:16px;bottom:16px;z-index:60;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.fab .main{width:54px;height:54px;border-radius:50%;background:var(--ok);color:#fff;border:0;cursor:pointer;box-shadow:0 8px 24px #0005;display:grid;place-items:center;transition:all .2s}
.fab .main svg{width:26px;height:26px}
.fab .panel{display:none;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:8px;box-shadow:0 12px 30px #0004;min-width:210px;max-width:calc(100vw - 32px)}
.fab.open .panel{display:grid;gap:2px}
.fab .panel a,.fab .panel button{display:flex;gap:10px;align-items:center;padding:7px 12px;border-radius:8px;background:none;border:0;cursor:pointer;text-align:start;font-size:.92rem;color:var(--ink)}
.fab .panel a:hover,.fab .panel button:hover{background:var(--line)}
.fab .panel i{width:10px;height:10px;border-radius:50%;background:var(--c);flex:none}
body.typing .fab .main{width:38px;height:38px}body.typing .fab .main svg{width:18px;height:18px}
body.typing .bk{padding:4px 12px;font-size:.78rem;opacity:.85}
.modal{position:fixed;inset:0;background:#000a;z-index:100;display:none;place-items:center;padding:18px}.modal.show{display:grid}
.modal .box{background:var(--card);border-radius:var(--r);padding:24px;max-width:440px;width:100%}
.modal ol{padding-inline-start:20px;margin:10px 0 16px;color:var(--mut)}
.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);background:#111;color:#fff;padding:9px 18px;border-radius:30px;z-index:120;display:none;font-size:.9rem;max-width:90vw;text-align:center}
@media(max-width:900px){
.hg,.about,.two,.tg{grid-template-columns:1fr}
.portrait{order:-1;width:min(260px,70%);margin-bottom:10px}
.svg{grid-template-columns:1fr}
.burger{display:inline-flex;margin-inline-start:auto}
nav.menu{display:none;position:absolute;top:57px;inset-inline:0;background:var(--paper);flex-direction:column;align-items:stretch;padding:10px 20px 14px;border-bottom:1px solid var(--line);margin:0;max-height:calc(100vh - 60px);overflow:auto}
nav.menu.open{display:flex}
.more-panel{display:grid;position:static;box-shadow:none;border:0;padding:0 0 0 0}.more-btn{display:none}
nav.menu .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.brand small{display:none}.r2{grid-template-columns:1fr}
}
@media(min-width:901px){nav.menu .acts{display:flex;gap:6px;align-items:center;margin-inline-start:8px}}
@media(max-width:520px){.send{grid-template-columns:repeat(2,1fr)}.bk{padding:9px 16px;font-size:.9rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ================= v2: richer look ================= */
:root{--grain:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1400 800%27 preserveAspectRatio=%27xMidYMid slice%27%3E%3Cpath d=%27M1427 630L1353 674M1353 674L1390 721M248 842L237 696M237 696L288 630M358 823L288 630M5 229L-51 264M5 229L81 219M81 219L46 354M-51 264L-2 352M-2 352L11 359M46 354L11 359M81 219L147 191M102 373L46 354M102 373L177 345M177 345L147 191M-34 97L151 183M-34 97L5 229M151 183L147 191M502 671L513 710M502 671L390 635M390 635L410 806M513 710L410 806M390 635L298 567M298 567L288 630M372 827L403 816M410 806L403 816M286 524L370 491M286 524L286 525M286 525L298 567M502 671L541 568M541 568L370 491M1210 797L1282 855M11 359L11 444M102 373L76 471M76 471L17 452M17 452L11 444M286 524L247 408M133 560L286 525M133 560L76 471M177 345L217 377M247 408L217 377M166 165L151 183M166 165L302 211M217 377L302 211M370 491L396 461M396 461L454 322M247 408L359 273M454 322L359 273M302 211L332 215M359 273L332 215M396 461L548 441M454 322L461 319M461 319L552 309M552 309L548 441M602 539L541 568M602 539L596 518M548 441L596 518M513 710L568 735M568 735L602 802M410 6L513 -90M-74 49L3 -3M602 802L686 854M1405 229L1366 97M1167 209L1128 157M1167 209L1251 176M1128 157L1210 -3M1210 -3L1282 55M1251 176L1282 55M1366 97L1326 49M1211 370L1158 222M1211 370L1226 386M1158 222L1167 209M1251 176L1317 261M1226 386L1317 261M1211 370L1032 302M1217 409L1227 399M1217 409L995 374M995 374L992 354M1032 302L992 354M1226 386L1227 399M1405 229L1349 264M1282 55L1326 49M1317 261L1349 264M1340 493L1384 506M1340 493L1297 510M1297 510L1290 572M1400 551L1384 506M1400 551L1340 593M1340 593L1291 611M1291 611L1290 572M1217 409L1168 469M1168 469L1290 572M1227 399L1231 402M1231 402L1297 510M1417 452L1384 506M1427 630L1340 593M1285 620L1291 611M1285 620L1353 674M445 173L378 155M445 173L513 157M496 68L523 139M496 68L403 16M378 155L372 27M513 157L523 139M403 16L372 27M461 319L445 173M332 215L378 155M552 309L553 309M553 309L513 157M596 132L523 139M596 132L596 304M596 304L553 309M410 6L403 16M358 23L372 27M770 491L710 560M770 491L796 437M796 437L788 395M710 560L671 561M690 332L670 561M690 332L788 395M671 561L670 561M602 539L670 561M649 669L568 735M649 669L671 561M1285 620L1196 666M1168 469L1066 566M1066 566L1196 666M1390 721L1403 797M1210 797L1198 785M1403 797L1326 849M1196 666L1198 785M738 691L693 733M738 691L659 680M659 680L693 733M109 3L176 77M176 77L248 42M358 23L248 42M3 -3L109 3M166 165L176 77M1158 222L1052 270M1128 157L1050 103M1052 270L1050 103M1032 302L1037 286M1052 270L1037 286M1411 359L1398 352M1411 359L1411 444M1398 352L1320 407M1411 444L1356 442M1356 442L1320 407M1349 264L1398 352M1417 452L1411 444M1231 402L1320 407M1340 493L1356 442M1198 785L1036 842M770 491L875 550M796 437L967 496M875 550L967 496M995 374L996 494M1066 566L1056 565M1056 565L996 494M992 354L889 318M889 318L788 395M996 494L967 496M176 877L109 803M237 696L128 738M109 803L128 738M1210 -3L1198 -15M1198 -15L1036 42M1050 103L1039 85M1036 42L1039 85M649 669L659 680M693 733L714 834M1036 842L987 810M942 837L987 810M753 821L783 788M942 837L783 788M808 645L812 643M808 645L803 665M812 643L976 670M803 665L802 751M802 751L971 760M976 670L971 760M710 560L808 645M875 550L812 643M738 691L803 665M1056 565L976 670M783 788L802 751M987 810L971 760M109 803L3 797M17 452L-16 506M976 208L1021 106M976 208L890 178M890 178L1021 106M1037 286L976 208M1039 85L1021 106M596 518L666 316M690 332L677 318M677 318L666 316M596 304L647 308M666 316L647 308M596 132L664 100M647 308L664 100M889 318L845 214M677 318L771 225M845 214L771 225M664 100L676 87M771 225L676 87M133 560L126 567M-16 506L0 551M0 551L126 567M128 738L105 617M126 567L105 617M0 551L-60 593M890 178L871 176M845 214L857 192M871 176L857 192M78 630L27 630M78 630L-10 721M27 630L-47 674M-10 721L-47 674M105 617L78 630M-60 593L27 630M3 797L-10 721M686 54L693 50M686 54L602 2M693 50L714 34M602 2L568 -65M676 87L686 54M857 192L693 50M496 68L602 2M871 176L873 109M753 21L873 109M753 21L714 34M783 -12L942 37M987 10L942 37M753 21L783 -12M873 109L942 37M1036 42L987 10%27 fill=%27none%27 stroke=%27%2523fff%27 stroke-width=%271.3%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");--ember:#e8a24a;--ember2:#c9722a;--glow:0 0 90px rgba(232,134,50,.38)}
.brand small{font-weight:500;font-size:.68rem;color:var(--mut);line-height:1.25;white-space:nowrap;margin-top:1px}
.brand{align-items:center}.brand>span{line-height:1.2}
.top nav.menu>a.act{color:var(--acc);font-weight:700;background:var(--acc-soft)}
/* hero: steel, ember glow and grain-boundary texture */
.hero{background:radial-gradient(760px 460px at 82% 18%,rgba(232,134,50,.30),transparent 62%),radial-gradient(640px 420px at 6% 96%,rgba(106,76,147,.36),transparent 62%),linear-gradient(160deg,#162634,#0c151e);color:#e8edf1}
.hero:before{content:"";position:absolute;inset:0;background:var(--grain) center/cover no-repeat;opacity:.10;z-index:-1}
.hero:after{content:"";position:absolute;inset-inline:0;bottom:0;height:4px;background:var(--heat)}
.hero .role{color:var(--ember);display:inline-block;padding:2px 14px;border:1px solid rgba(232,162,74,.45);border-radius:30px;background:rgba(232,162,74,.08);font-size:.88rem}
.hero h1{color:#fff;text-shadow:0 2px 30px #0006}
.hero .lead{color:#b9c8d6}
.hero .b-acc{background:linear-gradient(135deg,var(--ember),var(--ember2));color:#1b1206;box-shadow:0 10px 30px rgba(201,114,42,.35)}
.hero .b-line{color:#fff;border-color:rgba(255,255,255,.35)}
.hero #heroInstall{color:#b9c8d6!important;border-color:rgba(255,255,255,.22)!important}
.hero .b-line:hover{background:rgba(255,255,255,.08)}
.hero .trust{color:#9fb1c1}
.portrait{padding:5px;border-radius:24px;background:conic-gradient(from 210deg,var(--t1),var(--t2),var(--t3),var(--t4),var(--t5),var(--t6),var(--t7),var(--t1));box-shadow:var(--glow)}
.portrait img{border-radius:20px}
.portrait:before,.portrait:after{display:none}
/* temper band becomes light so hero stays the dark moment */
.temper{background:var(--paper);color:var(--ink);padding:40px 0;border-bottom:1px solid var(--line)}
.temper p,.tick,.tout small{color:var(--mut)}
.temper .bar{box-shadow:inset 0 0 0 1px #0002,0 12px 30px -12px var(--tc)}
/* services: hover cards */
.sv{padding:18px 14px;margin:0 -14px;border-radius:14px;border-bottom:0;position:relative;transition:background .2s,transform .2s,box-shadow .2s}
.sv:after{content:"";position:absolute;inset-inline:14px;bottom:0;height:1px;background:var(--line)}
.sv:hover{background:var(--card);box-shadow:0 14px 34px -18px rgba(18,32,44,.35);transform:translateY(-2px)}
.sv:hover:after{opacity:0}
.sv .chip{transition:transform .25s}.sv:hover .chip{transform:rotate(-6deg) scale(1.06)}
/* section rhythm */
.sh h2:after{width:84px;height:6px}
.band{background:radial-gradient(700px 400px at 90% 0%,rgba(232,134,50,.16),transparent 60%),var(--steel);position:relative;isolation:isolate}
.band:before{content:"";position:absolute;inset:0;background:var(--grain) center/cover;opacity:.06;z-index:-1}
.fcard{box-shadow:0 18px 44px -26px rgba(18,32,44,.35)}
.band .fcard{box-shadow:none}
/* teaser tiles (home) */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.tile{position:relative;overflow:hidden;border-radius:20px;padding:30px;color:#fff;min-height:250px;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate;transition:transform .25s,box-shadow .25s}
.tile:hover{transform:translateY(-4px);box-shadow:0 26px 50px -24px #000a}
.tile:before{content:"";position:absolute;inset:0;background:var(--grain) center/cover;opacity:.13;z-index:-1}
.t-tools{background:linear-gradient(140deg,#14222e 0%,#1e3a5a 55%,#2c4c9a 100%)}
.t-games{background:linear-gradient(140deg,#3a1f2b 0%,#8b4a5c 45%,#d98a3a 100%)}
.tile .big{position:absolute;inset-block-start:22px;inset-inline-end:24px;width:96px;height:96px;opacity:.9;stroke:#fff;fill:none;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.tile h3{font-size:1.5rem;font-weight:900;line-height:1.5}
.tile p{color:#e3ebf2;font-size:.95rem;max-width:30em;margin-bottom:12px}
.tile .mini{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.tile .mini span{background:#ffffff1f;border:1px solid #ffffff30;border-radius:30px;padding:0 11px;font-size:.78rem}
.tile .go{align-self:flex-start;background:#fff;color:#12202c;font-weight:700;border-radius:10px;padding:8px 20px;font-size:.92rem}
/* ================= shared subpages ================= */
.pagehead{background:radial-gradient(700px 360px at 85% 0%,rgba(232,134,50,.26),transparent 62%),linear-gradient(160deg,#162634,#0c151e);color:#e8edf1;padding:clamp(34px,5vw,64px) 0 34px;position:relative;isolation:isolate;overflow:hidden}
.pagehead:before{content:"";position:absolute;inset:0;background:var(--grain) center/cover;opacity:.09;z-index:-1}
.pagehead:after{content:"";position:absolute;inset-inline:0;bottom:0;height:4px;background:var(--heat)}
.crumb{font-size:.84rem;color:#9fb1c1;margin-bottom:10px}.crumb a{color:var(--ember)}
.pagehead h1{font-size:clamp(1.9rem,4.6vw,3.2rem);font-weight:900;line-height:1.35;color:#fff}
.pagehead p{color:#b9c8d6;max-width:44em;margin-top:8px;text-align:justify}
.pagehead .search{margin:18px 0 0;background:#ffffff14;border-color:#ffffff33;color:#fff}
.pagehead .search::placeholder{color:#9fb1c1}
.gchips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.gchips button{border:1px solid #ffffff33;background:#ffffff10;color:#e8edf1;border-radius:30px;padding:2px 16px;cursor:pointer;font-size:.88rem}
.gchips button:hover,.gchips button.on{background:var(--ember);color:#1b1206;border-color:var(--ember)}
/* tools */
.tgroup{margin-bottom:36px}.tgroup>h2{font-size:1.35rem;font-weight:900;margin-bottom:12px;display:flex;align-items:center;gap:10px}
.tgroup>h2:before{content:"";width:12px;height:28px;border-radius:4px;background:var(--gc,var(--t3))}
.tgroup .cnt{font-size:.78rem;font-weight:500;color:var(--mut)}
.tl{display:grid;grid-template-columns:1fr;gap:10px}
.tl details.dd{border-inline-start:5px solid var(--gc,var(--t3))}
.tl details.dd>summary{font-size:1.02rem}
.tl summary small{display:block;font-weight:400;color:var(--mut);font-size:.84rem;line-height:1.7}
.tf{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:4px}
.tf label{font-size:.84rem;font-weight:500;display:block;margin-bottom:2px}
.tf input,.tf select{width:100%;padding:9px 12px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:.95rem}
.tf .wide{grid-column:1/-1}
.tool-note{font-size:.82rem;color:var(--mut);margin-top:10px}
.tool-note b{color:var(--ink)}
.dtable{width:100%;border-collapse:collapse;font-size:.88rem;margin-top:8px}
.dtable th,.dtable td{padding:7px 10px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
.dtable th{background:var(--acc-soft);font-weight:700;position:sticky;top:0}
.tscroll{overflow:auto;max-height:420px;border:1px solid var(--line);border-radius:10px;margin-top:10px}
.tscroll .dtable{margin:0}
.badge{display:inline-block;border-radius:30px;padding:0 10px;font-size:.78rem;font-weight:700;background:var(--acc-soft);color:var(--acc)}
.ok-t{color:var(--ok);font-weight:700}.bad-t{color:#c0392b;font-weight:700}
/* games */
.gcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.gcard{position:relative;overflow:hidden;text-align:start;border:1px solid var(--line);background:var(--card);border-radius:18px;padding:0;cursor:pointer;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s;color:var(--ink)}
.gcard:hover{transform:translateY(-4px);box-shadow:0 24px 44px -24px rgba(18,32,44,.5)}
.gcard .gt{height:92px;background:var(--gc);display:grid;place-items:center;position:relative}
.gcard .gt:before{content:"";position:absolute;inset:0;background:var(--grain) center/cover;opacity:.16}
.gcard .gt svg{width:50px;height:50px;stroke:#fff;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;position:relative}
.gcard .gb{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.gcard h3{font-size:1.1rem;font-weight:900}
.gcard p{font-size:.88rem;color:var(--mut);line-height:1.8;flex:1}
.gcard .meta{display:flex;flex-wrap:wrap;gap:6px;font-size:.76rem;color:var(--mut)}.gcard .meta span{border:1px solid var(--line);border-radius:30px;padding:0 10px}
.gcard .best{font-size:.78rem;color:var(--acc);font-weight:700}
.gplay{display:none}.gplay.on{display:block}
.gbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px}
.gbar h2{font-size:1.35rem;font-weight:900;flex:1;min-width:180px}
.gbar .st{display:flex;gap:8px;flex-wrap:wrap}.gbar .st span{background:var(--card);border:1px solid var(--line);border-radius:30px;padding:0 14px;font-size:.88rem}.gbar .st b{color:var(--acc)}
.gstage{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:clamp(14px,3vw,28px)}
.ginfo{color:var(--mut);font-size:.92rem;margin-bottom:14px;text-align:justify}
.gover{margin-top:16px;padding:16px;border-radius:12px;background:var(--acc-soft);border-inline-start:5px solid var(--acc)}
.gover b{font-size:1.1rem}
.mem{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.mc{aspect-ratio:1/.8;perspective:700px;cursor:pointer;border:0;background:none;padding:0}
.mc i{display:block;width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .45s}
.mc.f i,.mc.d i{transform:rotateY(180deg)}
.mc i b,.mc i em{position:absolute;inset:0;backface-visibility:hidden;border-radius:12px;display:grid;place-items:center;text-align:center;padding:6px;font-style:normal;font-size:.86rem;line-height:1.5}
.mc i b{background:var(--heat);color:#fff;font-size:1.6rem;box-shadow:inset 0 0 0 2px #fff4}
.mc i em{transform:rotateY(180deg);background:var(--bg);border:2px solid var(--line);font-weight:700}
.mc.d i em{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 14%,var(--card))}
canvas.gc{width:100%;max-width:760px;height:auto;display:block;margin:0 auto;border-radius:14px;background:#0c151e;touch-action:none}
.hold{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.hold .btn{min-width:140px;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.swatch{height:120px;border-radius:14px;box-shadow:inset 0 0 0 1px #0002,0 14px 34px -16px var(--tc);background:var(--tc)}
.swatch{position:relative;overflow:hidden}.swatch:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#fff7,#fff0 30%,#0004)}
.qopts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:12px}
.sl{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;margin-bottom:12px}
.sl input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--acc);direction:ltr}
.sl label{font-weight:500}.sl output{font-weight:900;color:var(--acc)}
.cmp{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:14px 0}
.cmp div{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px 14px;text-align:center}
.cmp b{display:block;font-size:1.3rem}.cmp small{color:var(--mut)}.cmp div.hit{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 12%,var(--card))}
svg.pd{width:100%;max-width:640px;height:auto;display:block;margin:0 auto 14px;background:var(--bg);border-radius:12px;border:1px solid var(--line)}
svg.pd .r{fill:var(--c);fill-opacity:.22;stroke:var(--ink);stroke-opacity:.35;stroke-width:1}
svg.pd .r.hl{fill-opacity:.7;stroke-opacity:1;stroke-width:3}
svg.pd text{fill:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif}
svg.pd .ln{stroke:var(--ink);stroke-opacity:.35;stroke-width:1.5;fill:none}
svg.pd .ln.hl{stroke:#e0561a;stroke-opacity:1;stroke-width:4}
svg.pd .pt{fill:#e0561a}
.tiles-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:16px 0;min-height:56px}
.tile-l{min-width:48px;height:52px;border-radius:10px;border:2px solid var(--line);background:var(--bg);font-size:1.5rem;font-weight:900;cursor:pointer}
.tile-l:hover{border-color:var(--acc)}.tile-l.used{opacity:.25;cursor:default}
.tiles-row.ans .tile-l{background:var(--acc-soft);border-color:var(--acc)}
.statline{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:10px;font-size:.92rem;color:var(--mut)}
@media(max-width:900px){.tiles{grid-template-columns:1fr}.mem{grid-template-columns:repeat(3,1fr)}.sv{margin:0 -8px;padding:16px 8px}.sv:after{inset-inline:8px}}
@media(max-width:900px){.brand small{display:block}}
@media(max-width:420px){.brand small{font-size:.6rem}.brand img{width:30px;height:30px}}
:root[data-theme=dark] .temper{background:var(--paper)}
:root[data-theme=dark] .portrait{box-shadow:var(--glow)}

.gcards[hidden]{display:none}
.gcard .h{display:block;font-size:1.1rem;font-weight:900}
.gcard .p{display:block;font-size:.88rem;color:var(--mut);line-height:1.8;flex:1}
.gcard .meta{display:flex}
.gcard:focus-visible{outline:3px solid var(--ember);outline-offset:2px}
.tgroup{display:block}
.tl summary>span{display:block;min-width:0}
.tile .go:after{content:" \2190"}
.tile{padding-top:120px}.tile .big{width:72px;height:72px;inset-inline-end:auto;inset-inline-start:26px;inset-block-start:24px}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
