@font-face {
    font-family: "GuideNazanin";
    src: url("../../fonts/B-NAZANIN.TTF") format("truetype");
    font-display: swap;
}

:root {
    --ink: #17233a;
    --muted: #637086;
    --brand: #315bea;
    --brand-dark: #173aa9;
    --soft: #f2f6ff;
    --line: #dfe6f0;
    --surface: #fff;
    --page: #f6f8fc;
    --success: #087d62;
    --warning: #936300;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "GuideNazanin", Tahoma, sans-serif; font-size: 18px; line-height: 1.85; }
a { color: inherit; text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 10; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.back-link { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand-dark); font-size: 14px; }
.layout { width: min(1180px, calc(100% - 32px)); margin: 34px auto 80px; display: grid; grid-template-columns: minmax(0, 820px) 240px; gap: 44px; }
.article { min-width: 0; padding: 38px 46px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 14px 42px rgba(28,48,82,.07); }
.breadcrumbs { display: flex; gap: 8px; color: #8793a5; font-size: 13px; }
.breadcrumbs a { color: var(--brand); }
.eyebrow { display: block; margin-top: 26px; color: var(--brand); font-size: 14px; font-weight: 700; }
h1 { margin: 3px 0 12px; font-size: clamp(34px, 5vw, 48px); line-height: 1.35; }
h2 { margin: 48px 0 14px; font-size: 27px; }
h3 { margin: 0 0 4px; font-size: 19px; }
p { margin-top: 0; color: var(--muted); }
.lead { max-width: 700px; font-size: 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0 30px; color: #8793a5; font-size: 13px; }
.result { display: grid; grid-template-columns: 42px 1fr; gap: 12px; margin: 26px 0; padding: 17px; border-right: 3px solid var(--success); border-radius: 12px; background: #edf9f5; }
.result b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #d8f1e9; color: var(--success); }
.result strong { display: block; font-size: 15px; }
.result p { margin: 0; font-size: 14px; }
.steps { margin: 24px 0; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 26px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 43px; bottom: 0; right: 21px; width: 1px; background: var(--line); }
.step-no { z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #bfd0ff; border-radius: 50%; background: var(--soft); color: var(--brand); font: 700 14px Arial, sans-serif; }
.steps p { margin-bottom: 0; font-size: 16px; }
.ui-map { margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.ui-map__head { padding: 13px 17px; border-bottom: 1px solid var(--line); background: var(--soft); font-weight: 700; }
.ui-map dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.ui-map dt, .ui-map dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.ui-map dt { color: var(--ink); font-weight: 700; }
.ui-map dd { color: var(--muted); }
.ui-map dt:last-of-type, .ui-map dd:last-of-type { border-bottom: 0; }
.callout { margin: 24px 0; padding: 15px 17px; border-right: 3px solid var(--warning); border-radius: 10px; background: #fff8e8; }
.callout strong { color: var(--warning); font-size: 15px; }
.callout p { margin: 2px 0 0; font-size: 14px; }
.source-note { display: flex; align-items: center; gap: 10px; margin: 24px 0; padding: 12px 15px; border: 1px solid #cbd8ff; border-radius: 11px; background: var(--soft); color: #425373; font-size: 14px; }
.source-note img { width: 32px; height: 32px; object-fit: contain; }
.visual-panel { margin: 26px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfcff; box-shadow: 0 10px 30px rgba(28,48,82,.06); }
.visual-panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 17px; border-bottom: 1px solid var(--line); background: #f5f7fb; }
.visual-panel__bar span { color: #7b8799; font-size: 13px; }
.visual-panel__bar img { width: 31px; height: 31px; object-fit: contain; }
.visual-panel__body { padding: 20px; }
.visual-panel__body strong { display: block; margin-bottom: 8px; }
.visual-panel figcaption { padding: 10px 17px; border-top: 1px solid var(--line); color: #7b8799; font-size: 12px; }
.screenshot { margin: 26px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f7f9fd; box-shadow: 0 12px 34px rgba(28,48,82,.09); }
.screenshot img { display: block; width: 100%; height: auto; }
.screenshot figcaption { padding: 11px 16px; border-top: 1px solid var(--line); color: #6f7d91; font-size: 13px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-list span { padding: 6px 11px; border: 1px solid #d7e0ed; border-radius: 999px; background: #fff; color: #44536a; font-size: 13px; }
.action-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.action-path span { position: relative; padding: 14px 12px; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; color: #44536a; text-align: center; font-size: 14px; }
.action-path span:not(:last-child)::after { content: "←"; position: absolute; left: -17px; top: 50%; z-index: 1; width: 24px; color: var(--brand); transform: translateY(-50%); }
.article-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.article-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--brand-dark); font-weight: 700; }
.article-links a:hover { border-color: #9db3f3; background: var(--soft); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.next a { color: var(--brand); font-weight: 700; }
.toc { position: sticky; top: 102px; align-self: start; }
.toc strong { display: block; margin-bottom: 9px; font-size: 14px; }
.toc a { display: block; padding: 5px 12px; border-right: 1px solid var(--line); color: #7c899b; font-size: 13px; }
.toc a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 850px) { .layout { display: block; margin-top: 18px; }.article { padding: 28px 22px; }.toc { display: none; }.topbar { padding-inline: 16px; } }
@media (max-width: 520px) { body { font-size: 17px; }.brand span { display: none; }.article { padding: 24px 17px; }.ui-map dl { grid-template-columns: 1fr; }.ui-map dt { padding-bottom: 2px; border-bottom: 0; }.ui-map dd { padding-top: 2px; }.next { align-items: flex-start; flex-direction: column; }.action-path, .article-links { grid-template-columns: 1fr; }.action-path span:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -24px; left: auto; transform: translateX(50%); } }
@media print { .topbar, .toc, .next { display: none; }.layout { display: block; width: 100%; margin: 0; }.article { padding: 0; border: 0; box-shadow: none; } }
