/* هم‌مدرسه — سایتِ معرفی
   ایده‌ی بصری: «دفترِ مدرسه»؛ کاغذِ شطرنجیِ کم‌رنگ، خطِ حاشیه‌ی دفتر، زبانه‌هایِ رنگیِ فصل‌ها
   و چهار رنگِ لوگو (سبز، طلایی، آبی، سفالی) به‌جایِ گرادیانِ بنفشِ تکراری. */

/* Vazirmatn متغیر (۱۰۰ تا ۹۰۰، مجوزِ آزادِ OFL): همان قلمِ اپ، با وزن‌هایِ واقعی
   به‌جایِ ضخیم‌سازیِ مصنوعیِ مرورگر. */
@font-face {
  font-family: Vazirmatn; src: url(assets/fonts/Vazirmatn-VF.woff2) format("woff2-variations"), url(assets/fonts/Vazirmatn-VF.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --g: #339B75; --g-d: #23785A;
  --y: #C99A32; --y-l: #F3DDB0;
  --b: #527FAE; --r: #CB704B;
  --ink: #14241F; --ink-2: #3C4D47; --mute: #6E7C77;
  --paper: #FBF8F1; --paper-2: #F4EFE3; --line: #E4DCCB;
  --card: #FFFDF8;
  --rad: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 0 rgba(20, 36, 31, .04), 0 12px 32px -14px rgba(20, 36, 31, .22);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Vazirmatn, Tahoma, sans-serif; color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.95; font-weight: 420; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-variation-settings: normal; overflow-x: hidden;
  /* کاغذِ شطرنجی */
  background-image:
    linear-gradient(rgba(82, 127, 174, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 127, 174, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: 0; font-feature-settings: "kern"; }
::selection { background: var(--y-l); color: var(--ink); }
:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; border-radius: 10px; }

/* اعداد و ریاضی: چپ به راست، ارقامِ فارسی */
.n, [dir="ltr"] { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum"; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- مداد: پیشرفتِ اسکرول ---------- */
.pencil { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.pencil__line {
  position: absolute; inset-block: 0; right: 0; width: calc(var(--p, 0) * 100%);
  background: linear-gradient(270deg, var(--g), var(--y) 40%, var(--b) 70%, var(--r));
  border-radius: 0 0 0 4px;
}
.pencil__tip {
  position: absolute; top: -4px; width: 34px; height: 12px;
  right: calc(var(--p, 0) * 100% - 2px); transform: translateX(-0%);
  opacity: calc(min(var(--p, 0) * 30, 1)); transition: opacity .3s;
}

/* ---------- سربرگ ---------- */
.top { position: sticky; top: 0; z-index: 50; transition: transform .45s var(--ease); }
.top.is-hidden { transform: translateY(-110%); }
.top__in {
  display: flex; align-items: center; gap: 28px; margin-top: 14px; padding: 10px 12px 10px 10px;
  background: rgba(251, 248, 241, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(20, 36, 31, .08); border-radius: 20px; transition: box-shadow .4s, padding .4s var(--ease);
}
.top.is-scrolled .top__in { box-shadow: var(--shadow); padding-block: 7px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; transition: transform .7s var(--spring); }
.brand:hover img { transform: rotate(-90deg); }
.brand b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; }
.brand small { display: block; font-size: 12px; color: var(--mute); line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 6px 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 12px;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--y); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border-radius: 14px; position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { width: min(var(--wrap), 100% - 48px); margin: 8px auto 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 10px; display: grid; }
.drawer[hidden] { display: none; }
.drawer a { padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.drawer a:hover { background: var(--paper-2); }

/* ---------- دکمه‌ها ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --ink-c: rgba(255, 255, 255, .22);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  white-space: nowrap; padding: 13px 24px; border-radius: 16px; font-weight: 700; font-size: 16px;
  background: var(--bg); color: var(--fg); transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn::before { /* لکه‌ی جوهر از محلِ نشانگر */
  content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-c); transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translate(-50%, -50%) scale(60); }
.btn:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn:active { transform: scale(.96) !important; transition-duration: .12s; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 13px; gap: 9px; }
.btn--lg { padding: 16px 28px; font-size: 17px; border-radius: 18px; }
.btn--block { width: 100%; }
.btn--brand { --bg: var(--g); --ink-c: rgba(20, 36, 31, .2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --ink-c: var(--y-l); box-shadow: inset 0 0 0 1.5px rgba(20, 36, 31, .2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line { --bg: var(--card); --fg: var(--ink); --ink-c: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .ico, .round svg, .store svg, .roletabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico { transition: transform .4s var(--spring); }
.btn:hover .ico { transform: translateY(2px); }
/* پیکانِ «رفتن»؛ در صفحه‌ی راست‌به‌چپ رو به چپ */
.arr { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: width .35s var(--ease), transform .35s var(--spring); }
.arr::before { content: ""; position: absolute; left: -1px; top: -4px; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); border-radius: 1px; }
.btn:hover .arr, .store:hover .arr { width: 26px; transform: translateX(-4px); }

/* ---------- آغاز ---------- */
.hero { position: relative; padding: 56px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: min(78vh, 760px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 16px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(51, 155, 117, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(51, 155, 117, 0); } 100% { box-shadow: 0 0 0 0 rgba(51, 155, 117, 0); } }
h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 820; line-height: 1.22; }
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark::before { /* خطِ ماژیکِ زرد */
  content: ""; position: absolute; z-index: -1; inset-inline: -.08em; bottom: .12em; height: .36em;
  background: var(--y); opacity: .55; border-radius: .2em .4em .3em .5em; transform: scaleX(0) skewX(-8deg); transform-origin: right;
  transition: transform 1.1s .5s var(--ease);
}
.is-in .mark::before, .mark.is-in::before { transform: scaleX(1) skewX(-8deg); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; margin: 22px 0 30px; }
.lead em { font-style: normal; font-weight: 700; color: var(--g-d); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; display: flex; gap: 0; padding: 0; margin: 40px 0 0; border-top: 1px dashed var(--line); padding-top: 22px; }
.facts li { flex: 1; display: flex; flex-direction: column; padding-inline-end: 18px; }
.facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.facts b { font-size: 34px; font-weight: 800; line-height: 1.1; text-align: right; }
.facts span { font-size: 14px; color: var(--mute); }

.hero__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.quad { position: absolute; width: 44%; aspect-ratio: 1; transition: transform 1.2s var(--ease); }
.quad--g { top: 4%; right: 4%; background: var(--g); border-radius: 100% 0 0 0 / 100% 0 0 0; transform-origin: 100% 100%; }
.quad--y { top: 4%; left: 4%; background: var(--y); border-radius: 0 100% 0 0 / 0 100% 0 0; }
.quad--b { bottom: 4%; right: 4%; background: var(--b); border-radius: 0 0 0 100% / 0 0 0 100%; }
.quad--r { bottom: 4%; left: 4%; background: var(--r); border-radius: 0 0 100% 0 / 0 0 100% 0; }
.quad { opacity: .92; }
/* نسخه‌ی راست‌به‌چپ: سبز بالا-راست، طلایی بالا-چپ (همان ترتیبِ لوگو در آینه) */
.quad--g { border-radius: 0 100% 0 0; } .quad--y { border-radius: 100% 0 0 0; }
.quad--b { border-radius: 0 0 100% 0; } .quad--r { border-radius: 0 0 0 100%; }
.hero__art.is-open .quad--g { transform: translate(8px, -8px); }
.hero__art.is-open .quad--y { transform: translate(-8px, -8px); }
.hero__art.is-open .quad--b { transform: translate(8px, 8px); }
.hero__art.is-open .quad--r { transform: translate(-8px, 8px); }
.hero__art::after { /* سرهایِ چهار آدمک، مثلِ لوگو */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 3% 3%, var(--y) 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 97% 3%, var(--g) 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 3% 97%, var(--r) 0 3.4%, transparent 3.6%),
    radial-gradient(circle at 97% 97%, var(--b) 0 3.4%, transparent 3.6%);
}

.phone {
  position: relative; aspect-ratio: 640 / 1386; border-radius: 34px; padding: 9px; background: #101915;
  box-shadow: 0 0 0 1.5px #2C3A35 inset, 0 30px 60px -24px rgba(20, 36, 31, .55), 0 8px 18px -8px rgba(20, 36, 31, .3);
}
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 16%; height: 5px; border-radius: 9px; background: #000; transform: translateX(-50%); z-index: 2; opacity: .7; }
.phone img, .phone__screen { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.phone__screen { position: relative; overflow: hidden; background: #fff; }
.phone__screen img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.6s var(--ease); border-radius: 0; }
.phone__screen img.is-on { opacity: 1; transform: none; }
.phone--hero { width: 44%; z-index: 2; transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease); }

.note {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.note i { width: 26px; height: 26px; border-radius: 9px; background: color-mix(in srgb, var(--c) 18%, white); position: relative; flex-shrink: 0; }
.note i::after { content: ""; position: absolute; left: 8px; top: 6px; width: 6px; height: 10px; border: solid var(--c); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.note b { font-weight: 800; color: var(--g-d); margin-inline-start: 4px; }
.note--1 { top: 16%; left: -4%; }
.note--2 { top: 48%; right: -6%; animation-delay: -2s; }
.note--3 { bottom: 13%; left: 0; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

.ticker { margin-top: 64px; border-block: 1px solid var(--line); background: var(--card); overflow: hidden; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; gap: 0; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-weight: 700; font-size: 17px; color: var(--ink-2); padding-inline: 26px; position: relative; }
.ticker span::after { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; border-radius: 2px; transform: translateY(-50%) rotate(45deg); background: var(--y); }
.ticker span:nth-child(4n+2)::after { background: var(--g); } .ticker span:nth-child(4n+3)::after { background: var(--b); } .ticker span:nth-child(4n)::after { background: var(--r); }
@keyframes tick { to { transform: translateX(50%); } }

/* ---------- فصل‌ها ---------- */
.chapter { position: relative; padding: 120px 0; }
.ch-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end; margin-bottom: 52px; }
.ch-head--stack { grid-template-columns: auto 1fr; align-self: start; position: sticky; top: 120px; }
.ch-num {
  font-size: clamp(110px, 14vw, 180px); font-weight: 900; line-height: .8; color: transparent;
  -webkit-text-stroke: 2px var(--ink); opacity: .14; transform: translateY(14px); user-select: none;
}
.ch-kicker { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--r); display: flex; align-items: center; gap: 10px; }
.ch-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 780; line-height: 1.45; }
.ch-sub { margin: 12px 0 0; color: var(--ink-2); font-weight: 400; max-width: 40em; font-size: 18px; }
.ch-sub b { font-weight: 800; }
.u { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 5px; transition: text-decoration-color .3s; }
.u:hover { text-decoration-color: var(--g); }

/* نقش‌ها */
.rolebox { background: var(--card); border-radius: 30px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 14px; position: relative; overflow: hidden; }
.rolebox::before { /* خطِ حاشیه‌ی دفتر */
  content: ""; position: absolute; top: 0; bottom: 0; right: 74px; width: 1.5px; background: color-mix(in srgb, var(--r) 45%, transparent);
}
.roletabs { position: relative; display: flex; gap: 4px; padding: 6px; background: var(--paper-2); border-radius: 20px; z-index: 1; }
.roletabs button {
  position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 8px;
  font-weight: 700; font-size: 16px; border-radius: 15px; color: var(--ink-2); transition: color .35s; white-space: nowrap;
}
.roletabs button[aria-selected="true"] { color: #fff; }
.roletabs button:hover:not([aria-selected="true"]) svg { transform: translateY(-2px) rotate(-6deg); }
.roletabs svg { transition: transform .35s var(--spring); }
.roletabs__ink { position: absolute; top: 6px; bottom: 6px; border-radius: 15px; background: var(--rc, var(--g)); transition: left .5s var(--spring), width .5s var(--spring), background .4s; box-shadow: 0 8px 18px -8px var(--rc); }
.rolepanel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; padding: 40px 100px 36px 36px; align-items: center; position: relative; z-index: 1; }
.rolepanel__text h3 { font-size: 30px; font-weight: 800; color: var(--rc); transition: color .4s; }
.rolepanel__lead { color: var(--ink-2); margin: 8px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; counter-reset: t; }
.ticks li { position: relative; padding-inline-start: 38px; margin-bottom: 10px; counter-increment: t; }
.ticks li::before {
  content: counter(t, persian); position: absolute; right: 0; top: 2px; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--rc, var(--g));
  background: color-mix(in srgb, var(--rc, var(--g)) 13%, white);
}
.plan .ticks li::before { content: ""; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323785A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); background-size: 15px; background-position: center; background-repeat: no-repeat; }
.rolepanel.swap .rolepanel__text > * { animation: rise .55s var(--ease) both; }
.rolepanel.swap .rolepanel__text > *:nth-child(2) { animation-delay: .05s; }
.rolepanel.swap .rolepanel__text > *:nth-child(3) { animation-delay: .1s; }
.rolepanel.swap .rolepanel__text > *:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rolepanel__phones { position: relative; height: 520px; }
.rolepanel__phones .phone { position: absolute; width: 210px; top: 50%; left: 50%; transition: transform .8s var(--spring), opacity .5s; }
.rolepanel__phones .phone:nth-child(1) { transform: translate(-50%, -50%) ; z-index: 3; }
.rolepanel__phones .phone:nth-child(2) { transform: translate(-112%, -44%) rotate(-7deg) scale(.86); z-index: 2; }
.rolepanel__phones .phone:nth-child(3) { transform: translate(12%, -44%) rotate(7deg) scale(.86); z-index: 1; }
.rolepanel__phones:hover .phone:nth-child(2) { transform: translate(-128%, -46%) rotate(-10deg) scale(.88); }
.rolepanel__phones:hover .phone:nth-child(3) { transform: translate(28%, -46%) rotate(10deg) scale(.88); }
.rolepanel.swap .phone { animation: deal .7s var(--spring) both; }
.rolepanel.swap .phone:nth-child(2) { animation-delay: .06s; } .rolepanel.swap .phone:nth-child(3) { animation-delay: .12s; }
@keyframes deal { from { opacity: 0; margin-top: 40px; } }

/* امکانات */
.principles { background: var(--card); border-block: 1px solid var(--line); }
.principles::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(transparent 0 35px, rgba(82, 127, 174, .12) 35px 36px); pointer-events: none; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.card {
  position: relative; padding: 30px 28px 28px; border-radius: var(--rad); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease); overflow: hidden;
}
.card::after { content: ""; position: absolute; top: 0; inset-inline-start: 28px; width: 46px; height: 5px; border-radius: 0 0 6px 6px; background: var(--k); transition: width .5s var(--ease); }
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: inset 0 0 0 1px var(--line), 0 24px 40px -22px rgba(20, 36, 31, .35); }
.card:hover::after { width: calc(100% - 56px); }
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; }
.card__no { position: absolute; left: 22px; top: 18px; font-size: 54px; font-weight: 900; line-height: 1; color: var(--k); opacity: .16; transition: opacity .4s, transform .5s var(--spring); }
.card:hover .card__no { opacity: .4; transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 21px; font-weight: 720; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.sync { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.sync__dev { padding: 6px 14px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; }
.sync__wire { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); position: relative; }
.sync__wire i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--g); animation: travel 2.6s var(--ease) infinite; box-shadow: 0 0 0 4px rgba(51, 155, 117, .18); }
@keyframes travel { 0% { right: 0; } 50% { right: calc(100% - 10px); } 100% { right: 0; } }
.eq { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.eq__row { font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.eq__row u { text-decoration: none; font-family: "Times New Roman", serif; font-style: italic; color: var(--b); font-size: 1.1em; }
.frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; }
.frac b:first-child { border-bottom: 2px solid currentColor; padding: 0 6px 2px; }
.eq .hl { color: var(--g-d); background: color-mix(in srgb, var(--y) 30%, transparent); padding: 0 8px; border-radius: 8px; }
.eq small { color: var(--mute); font-size: 13px; }

/* تصاویر */
.pager { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .35s var(--spring), background .3s, color .3s, box-shadow .3s; }
.round:hover { background: var(--ink); color: #fff; box-shadow: none; transform: scale(1.08); }
.round:active { transform: scale(.92); }
.strip {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(24px, calc((100vw - var(--wrap)) / 2)) 40px;
  scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip figure { margin: 0; flex: 0 0 230px; scroll-snap-align: center; transition: transform .6s var(--spring); }
.strip figure:nth-child(even) { transform: translateY(26px); }
.strip figure:hover { transform: translateY(-8px) rotate(-1deg); }
.strip figure:nth-child(even):hover { transform: translateY(18px) rotate(1deg); }
.strip .phone img { pointer-events: none; user-select: none; }
.strip figcaption { margin-top: 16px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.strip figcaption b { display: block; font-size: 12px; color: var(--r); font-weight: 800; }

.guides { margin-top: 70px; padding: 30px; border-radius: 26px; background: var(--ink); color: #fff; }
.guides h3 { font-size: 24px; font-weight: 800; margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.guides h3 small { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .6); }
.guides__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.guide {
  position: relative; display: flex; flex-direction: column; padding: 46px 18px 16px; border-radius: 6px 18px 18px 18px; background: #fff; color: var(--ink);
  transition: transform .45s var(--spring); overflow: hidden;
}
.guide__tab { position: absolute; top: 0; right: 0; width: 100%; height: 30px; background: var(--g); transition: height .45s var(--ease); }
.guide__tab::after { content: "PDF"; position: absolute; left: 14px; top: 6px; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .08em; }
.guide b { font-size: 19px; font-weight: 800; position: relative; transition: color .3s; }
.guide small { color: var(--mute); position: relative; transition: color .3s; }
.guide::after { content: ""; position: absolute; left: 16px; bottom: 18px; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19h14'/%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' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19h14'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .4s var(--spring); }
.guide__tab { background: var(--g); }
.guide { --gg: var(--g); }
.guide[style] .guide__tab { background: var(--g); }
.guide:hover { transform: translateY(-6px) rotate(-1.5deg); }
.guide:hover .guide__tab { height: 100%; }
.guide:hover b, .guide:hover small, .guide:hover { color: #fff; }
.guide:hover small { color: rgba(255, 255, 255, .8); }
.guide:hover::after { transform: translateY(3px); }

/* بسته‌ها */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: stretch; }
.plan { padding: 34px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan__who { margin: 0; font-size: 14px; font-weight: 800; color: var(--g-d); }
.plan h3 { font-size: 25px; font-weight: 780; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 20px; }
.plan__price b { font-size: 48px; font-weight: 820; line-height: 1; }
.plan__price span { color: var(--mute); font-size: 15px; }
.plan__hint { color: var(--ink-2); font-size: 15px; margin: 6px 0 16px; }
.plan--school { background: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(20, 36, 31, .7); position: relative; overflow: hidden; }
.plan--school::before { content: ""; position: absolute; width: 340px; height: 340px; left: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 50, .35), transparent 65%); }
.plan--school > * { position: relative; }
.plan--school .plan__who { color: var(--y); }
.plan--school .plan__hint, .plan--school .plan__price span { color: rgba(255, 255, 255, .65); }
.plan--school .plan__hint b { color: #fff; }
.seats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .08); margin-top: 6px; }
.seats button { position: relative; z-index: 1; padding: 10px 0; font-size: 18px; font-weight: 800; border-radius: 12px; color: rgba(255, 255, 255, .7); transition: color .3s; }
.seats button[aria-checked="true"] { color: var(--ink); }
.seats__pill { position: absolute; top: 5px; bottom: 5px; width: calc((100% - 10px) / 4); right: 5px; border-radius: 12px; background: var(--y); transition: transform .5s var(--spring); }
.calc { margin: 22px 0 0; color: rgba(255, 255, 255, .6); font-size: 17px; font-weight: 500; text-align: right; }
.plan__price--big { margin-top: 2px; }
.plan__price--big b { font-size: clamp(40px, 5vw, 60px); color: #fff; }
.plan__price b.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: translateY(-6px); color: var(--y); } }

/* نصب */
.get { background: var(--g); color: #fff; overflow: hidden; }
.get::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; }
.get::after { content: ""; position: absolute; width: 520px; aspect-ratio: 1; left: -160px; bottom: -260px; background: var(--y); border-radius: 0 100% 0 0; opacity: .9; }
.get__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.get .ch-kicker { color: var(--y-l); }
.get .ch-sub { color: rgba(255, 255, 255, .85); }
.stores { display: grid; gap: 14px; }
.store {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i t a" "i u a"; column-gap: 16px; align-items: center;
  padding: 16px 20px; border-radius: 20px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff;
  transition: transform .4s var(--spring), background .3s, color .3s; backdrop-filter: blur(6px);
}
.store:hover { background: #fff; color: var(--ink); transform: translateX(-6px); }
.store--web { background: #fff; color: var(--ink); }
.store--web:hover { background: var(--ink); color: #fff; }
.store__ico { grid-area: i; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--y); color: var(--ink); font-size: 24px; font-weight: 900; transition: transform .5s var(--spring); }
.store:hover .store__ico { transform: rotate(-10deg) scale(1.06); }
.store__ico svg { width: 26px; height: 26px; }
.store__ico--m { background: #1E88E5; color: #fff; } .store__ico--b { background: #4CAF50; color: #fff; }
.store__t { grid-area: t; display: flex; flex-direction: column; line-height: 1.4; }
.store__t small { font-size: 13px; opacity: .7; } .store__t b { font-size: 20px; font-weight: 800; }
.store__url { grid-area: u; font-size: 14px; font-weight: 700; color: var(--g-d); text-align: right; }
.store--web:hover .store__url { color: var(--y); }
.store .arr { grid-area: a; }
.store:not(.store--web) { grid-template-areas: "i t a"; }

/* پرسش‌ها */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq .ch-head { margin: 0; }
.faq .ch-num { font-size: clamp(90px, 10vw, 140px); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 0 22px 48px; font-size: 19px; font-weight: 700; position: relative; transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after, .qa summary::before { content: ""; position: absolute; left: 8px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--spring); }
.qa summary::before { transform: rotate(90deg); }
.qa details[open] summary::before { transform: rotate(0); }
.qa details[open] summary { color: var(--g-d); }
.qa summary:hover { color: var(--g-d); }
.qa details p { margin: 0 0 22px; color: var(--ink-2); max-width: 40em; animation: rise .45s var(--ease); }

/* تماس */
.contact { padding-top: 40px; }
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.contact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ccard { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--spring), box-shadow .4s; }
.ccard:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--g), 0 18px 34px -20px rgba(20, 36, 31, .4); }
.ccard__k { font-size: 13px; font-weight: 700; color: var(--r); }
.ccard b { font-size: 18px; font-weight: 800; text-align: right; }
.ccard small { color: var(--mute); }

/* کانال‌هایِ رسمی (تلگرام/بله): کارتِ بزرگ با رنگِ همان پیام‌رسان */
.contact__lead { margin-top: 14px; color: var(--ink-2); max-width: 34ch; }
.contact__cards--ch { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.chcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 24px 22px; border-radius: 26px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .45s var(--spring), box-shadow .45s;
}
.chcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 92px;
  background: radial-gradient(120% 140% at 85% -20%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.chcard:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: inset 0 0 0 1.5px var(--c), 0 26px 44px -22px color-mix(in srgb, var(--c) 70%, #000); }
.chcard__logo {
  position: relative; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c) 80%, #000);
  transition: transform .6s var(--spring);
}
.chcard:hover .chcard__logo { transform: rotate(-8deg) scale(1.06); }
.chcard__logo img { width: 100%; height: 100%; object-fit: cover; }
.chcard__logo--svg { background: var(--c); border-radius: 50%; }
.chcard__logo--svg svg { width: 30px; height: 30px; fill: #fff; transform: translateX(-1px); }
.chcard__k { position: relative; font-size: 13px; font-weight: 800; color: var(--c); }
.chcard b { position: relative; font-size: 19px; font-weight: 800; text-align: right; }
.chcard small { position: relative; color: var(--mute); }
.chcard__go {
  position: relative; align-self: flex-start; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #fff; background: var(--c);
  transition: gap .35s var(--spring), filter .3s;
}
.chcard:hover .chcard__go { gap: 14px; filter: saturate(1.15); }

/* پانویس */
.foot { background: var(--ink); color: #fff; padding: 70px 0 26px; margin-top: 40px; position: relative; }
.foot::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 6px; background: linear-gradient(90deg, var(--r) 0 25%, var(--b) 25% 50%, var(--y) 50% 75%, var(--g) 75%); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: center; }
.foot__brand { display: flex; gap: 16px; align-items: center; }
.foot__brand img { background: #fff; border-radius: 16px; padding: 4px; }
.foot__brand b { font-size: 22px; font-weight: 800; }
.foot__brand p { margin: 0; color: rgba(255, 255, 255, .65); font-size: 15px; }
.foot__links { display: flex; flex-direction: column; gap: 4px; }
.foot__links a { color: rgba(255, 255, 255, .75); transition: color .25s, transform .3s var(--spring); }
.foot__links a:hover { color: var(--y); transform: translateX(-4px); }
.foot__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); font-size: 14px; }

/* شبکه‌های اجتماعی */
.social { display: flex; gap: 14px; justify-content: center; }
.soc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.soc__face {
  position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: transform .5s var(--spring), border-radius .5s var(--ease), box-shadow .4s;
}
.soc__face::before { content: ""; position: absolute; inset: 0; background: var(--s); transform: translateY(101%); transition: transform .45s var(--ease); }
.soc__face svg, .soc__face img { position: relative; width: 26px; height: 26px; fill: currentColor; transition: transform .5s var(--spring); }
.soc__face img { width: 30px; height: 30px; border-radius: 9px; filter: saturate(.75); transition: filter .4s, transform .5s var(--spring); }
.soc__lbl { font-size: 12.5px; color: rgba(255, 255, 255, .55); transform: translateY(-4px); opacity: .0; transition: opacity .3s, transform .4s var(--spring), color .3s; }
.soc:hover .soc__face, .soc:focus-visible .soc__face { transform: translateY(-6px) rotate(-8deg); border-radius: 50%; box-shadow: 0 14px 26px -10px var(--s); }
.soc:hover .soc__face::before, .soc:focus-visible .soc__face::before { transform: none; }
.soc:hover .soc__face svg, .soc:hover .soc__face img { transform: rotate(8deg) scale(1.12); }
.soc:hover .soc__face img { filter: none; }
.soc:hover .soc__lbl, .soc:focus-visible .soc__lbl { opacity: 1; transform: none; color: #fff; }
.soc:active .soc__face { transform: translateY(-2px) scale(.92); }
.soc.pop .soc__face { animation: popring .6s var(--ease); }
@keyframes popring { from { box-shadow: 0 0 0 0 var(--s); } to { box-shadow: 0 0 0 18px transparent; } }

/* زبانه‌هایِ فصل: لبه‌ی چپِ صفحه */
.tabs { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; }
.tabs a {
  --c: var(--g); position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px 0 12px; width: 40px;
  background: color-mix(in srgb, var(--c) 22%, var(--paper)); border-radius: 0 12px 12px 0; overflow: hidden; color: var(--ink);
  transition: width .45s var(--spring), background .3s, color .3s; flex-direction: row-reverse; justify-content: flex-end;
}
.tabs b { font-weight: 900; font-size: 15px; min-width: 16px; text-align: center; }
.tabs span { font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.tabs a:hover, .tabs a.is-active { width: 112px; background: var(--c); color: #fff; }
.tabs a:hover span, .tabs a.is-active span { opacity: 1; }
.tabs.is-quiet a:not(:hover) { width: 18px; }
.tabs.is-quiet a:not(:hover) b, .tabs.is-quiet a:not(:hover) span { opacity: 0; }

/* بازگشت به بالا */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--card);
  box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s, transform .5s var(--spring), background .3s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.totop__ring .p { stroke: var(--g); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); }
.totop__cap { width: 26px; height: 26px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transition: transform .5s var(--spring); }
.totop:hover { background: var(--ink); }
.totop:hover .totop__cap { fill: var(--y); stroke: var(--y); transform: translateY(-4px) rotate(-12deg); }
.totop.launch .totop__cap { animation: toss 1s var(--ease); }
@keyframes toss { 40% { transform: translateY(-46px) rotate(-200deg); opacity: 0; } 41% { transform: translateY(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ظاهرشدن با اسکرول */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transform: translateY(18px); }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .top__in { gap: 12px; }
  .top__in .btn { margin-inline-start: auto; }
  .tabs { display: none; }
  .rolepanel { padding: 30px 24px; grid-template-columns: 1fr; }
  .rolebox::before { display: none; }
  .guides__row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding-top: 26px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { max-width: 460px; width: 100%; margin: 10px auto 0; }
  .note { font-size: 12px; padding: 8px 10px; }
  .chapter { padding: 80px 0; }
  .ch-head { grid-template-columns: 1fr; gap: 0; }
  .ch-num { font-size: 96px; position: absolute; left: 0; top: -20px; transform: none; }
  .ch-head { position: relative; }
  .ch-head--stack { position: relative; top: 0; }
  .pager { margin-top: 18px; }
  .sheet { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .plans, .get__grid, .faq__grid, .contact__grid, .foot__grid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .rolepanel__phones { height: 420px; }
  .rolepanel__phones .phone { width: 170px; }
  .roletabs { overflow-x: auto; scrollbar-width: none; }
  .roletabs button { flex: 0 0 auto; padding-inline: 16px; }
  .guides__row { grid-template-columns: repeat(2, 1fr); }
  .foot__base { flex-direction: column; }
  .social { justify-content: flex-start; }
  .totop { right: 14px; bottom: 14px; }
}
@media (max-width: 520px) {
  .top__in .btn span { font-size: 13px; }
  .brand small { display: none; }
  .facts b { font-size: 26px; }
  .facts li, .facts li + li { padding-inline: 10px; }
  .facts li:first-child { padding-inline-start: 0; }
  .cta .btn { flex: 1 1 100%; }
  .roletabs svg { display: none; }
  .strip figure { flex-basis: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ربع‌ها به‌شکلِ حلقه‌یِ لوگو: مرکزِ توخالی و فاصله‌یِ میانِ چهار رنگ */
.quad { width: 43%; }
.quad--g { -webkit-mask: radial-gradient(circle at 0 100%, transparent 46%, #000 46.5%); mask: radial-gradient(circle at 0 100%, transparent 46%, #000 46.5%); }
.quad--y { -webkit-mask: radial-gradient(circle at 100% 100%, transparent 46%, #000 46.5%); mask: radial-gradient(circle at 100% 100%, transparent 46%, #000 46.5%); }
.quad--b { -webkit-mask: radial-gradient(circle at 0 0, transparent 46%, #000 46.5%); mask: radial-gradient(circle at 0 0, transparent 46%, #000 46.5%); }
.quad--r { -webkit-mask: radial-gradient(circle at 100% 0, transparent 46%, #000 46.5%); mask: radial-gradient(circle at 100% 0, transparent 46%, #000 46.5%); }
.quad--g, .quad--y { top: 6%; } .quad--b, .quad--r { bottom: 6%; }
.quad--g, .quad--b { right: 6%; } .quad--y, .quad--r { left: 6%; }
.hero__art::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(201,154,50,.16), transparent 70%); }
.hero__art .quad { animation: breathe 9s ease-in-out infinite; }
.hero__art .quad--y { animation-delay: -2.2s; } .hero__art .quad--b { animation-delay: -4.4s; } .hero__art .quad--r { animation-delay: -6.6s; }
@keyframes breathe { 50% { scale: 1.025; } }
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .top__cta .arr { display: none; }
  .top__in { padding-inline: 8px; }
  .roletabs button { font-size: 14px; padding: 10px 12px; }
  .note--2 { right: -2%; }
}

/* =====================================================================
   سایتِ چندصفحه‌ای: بنرِ آغاز، سربرگِ صفحه‌ها، فهرستِ فصل‌ها، صفحه‌یِ بعد
   ===================================================================== */

/* ---------- بنرِ «مدرسه، در یک دفتر.» ---------- */
.hero--banner { padding-top: 28px; }
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 40px; padding: 54px 58px 46px;
  background:
    radial-gradient(70% 90% at 12% 30%, rgba(51, 155, 117, .42), transparent 62%),
    radial-gradient(60% 70% at 0% 100%, rgba(201, 154, 50, .26), transparent 60%),
    linear-gradient(270deg, #0C1914 0%, #0F2219 45%, #16392C 100%);
  color: #fff;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -40px rgba(20, 36, 31, .65);
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  /* شطرنجی فقط سمتِ تصویر؛ پشتِ متن صاف تا حروف تمیز دیده شوند. */
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, transparent 38%, #000 70%);
  mask-image: linear-gradient(270deg, transparent 0%, transparent 38%, #000 70%);
}
.banner::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: linear-gradient(270deg, var(--g), var(--y) 40%, var(--b) 70%, var(--r));
}
.banner__margin {
  position: absolute; top: 0; bottom: 0; right: 30px; width: 6px; z-index: -1;
  border-inline: 1.4px solid rgba(203, 112, 75, .45);
}
.hero--banner .hero__grid { min-height: auto; gap: 36px; }
.hero--banner .eyebrow {
  background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero--banner .eyebrow .dot { background: var(--y); box-shadow: 0 0 0 4px rgba(201, 154, 50, .25); }
.hero--banner h1 {
  color: #fff; font-size: clamp(46px, 7.2vw, 104px); line-height: 1.16;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 12px 40px rgba(0, 0, 0, .35);
}
/* «در یک دفتر.»: حروفِ طلاییِ روشن رویِ زمینه‌یِ تیره (خوانا) + خطِ ماژیکِ
   باریکِ زیرش؛ نه حروفِ تیره که نیمه‌شان رویِ تیره می‌افتاد. */
.hero--banner .mark { color: #F6D88E; padding: 0 .06em; }
.hero--banner .mark::before { background: #E3B54A; opacity: .9; bottom: .02em; height: .14em; z-index: 0; }
.hero--banner .lead { color: #E8F0EC; font-weight: 450; }
.hero--banner .lead em { color: #F6D88E; }
.hero--banner .btn--brand { --bg: #E3B54A; --fg: #0C1914; --ink-c: #FFF3D6; font-weight: 800; }
.hero--banner .btn--ghost { --fg: #fff; --ink-c: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.hero--banner .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.hero--banner .facts { border-top-color: rgba(255, 255, 255, .18); }
.hero--banner .facts li + li { border-inline-start-color: rgba(255, 255, 255, .18); }
.hero--banner .facts b { color: #fff; }
.hero--banner .facts span { color: #C9D8D1; }
.hero--banner .hero__art { max-width: 520px; justify-self: center; width: 100%; }
.hero--banner .note { color: var(--ink); }
.hero--banner .ticker { margin-top: 26px; }

/* ---------- سربرگِ هر صفحه ---------- */
.pagehead { padding: 30px 0 0; }
.pagehead__card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: 26px 36px 34px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 92%, #000) 0%, color-mix(in srgb, var(--pc) 70%, #10201B) 100%);
  color: #fff; box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--pc) 80%, #000);
}
.pagehead__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.pagehead__card::after {
  content: ""; position: absolute; left: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); z-index: -1;
}
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .75); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .9); border-bottom: 1px dashed rgba(255, 255, 255, .4); }
.crumbs a:hover { color: #fff; border-color: #fff; }
.crumbs b { color: #fff; font-weight: 700; }
.pagehead__row { display: flex; gap: 22px; align-items: center; }
.pagehead__ico {
  flex: none; width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.pagehead__ico svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pagehead__k { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.pagehead h1 { font-size: clamp(30px, 4.4vw, 52px); color: #fff; line-height: 1.3; }
.pagehead__sub { margin: 6px 0 0; color: rgba(255, 255, 255, .85); max-width: 46em; }
.pagehead + .chapter { padding-top: 64px; }

/* ---------- فهرستِ فصل‌ها در صفحه‌یِ اول ---------- */
.explore { padding: 90px 0 30px; }
.explore__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xcard {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 22px;
  border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .45s var(--spring), box-shadow .45s;
}
.xcard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1.5px var(--pc), 0 26px 44px -24px color-mix(in srgb, var(--pc) 70%, #000); }
.xcard__tab {
  position: absolute; top: 18px; left: -6px; padding: 4px 12px 4px 14px; border-radius: 0 10px 10px 0;
  background: var(--pc); color: #fff; font-weight: 900; box-shadow: 0 6px 14px -6px var(--pc);
}
.xcard__ico {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px;
  background: color-mix(in srgb, var(--pc) 14%, #fff); transition: transform .6s var(--spring);
}
.xcard:hover .xcard__ico { transform: rotate(-8deg) scale(1.06); }
.xcard__ico svg { width: 28px; height: 28px; fill: none; stroke: var(--pc); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.xcard__t { font-size: 21px; font-weight: 850; }
.xcard__s { color: var(--mute); font-size: 15px; line-height: 1.8; }
.xcard__go { margin-top: auto; padding-top: 12px; display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: var(--pc); }
.xcard:hover .xcard__go .arr { width: 26px; transform: translateX(-4px); }

/* ---------- صفحه‌یِ بعد ---------- */
.nextpage { padding: 10px 0 90px; }
.nextpage__card {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 26px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .45s var(--spring), box-shadow .45s;
}
.nextpage__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--pc), 0 24px 40px -24px color-mix(in srgb, var(--pc) 70%, #000); }
.nextpage__ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--pc); flex: none; }
.nextpage__ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nextpage__t { display: flex; flex-direction: column; flex: 1; line-height: 1.6; }
.nextpage__t small { color: var(--mute); font-size: 13px; }
.nextpage__t b { font-size: 20px; font-weight: 850; }
.nextpage__t em { font-style: normal; color: var(--ink-2); font-size: 14px; }
.nextpage__card .arr { color: var(--pc); }
.nextpage__card:hover .arr { width: 26px; transform: translateX(-4px); }

@media (max-width: 960px) {
  .banner { padding: 34px 24px 30px; border-radius: 30px; }
  .banner__margin { right: 14px; }
  .explore__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .explore__grid { grid-template-columns: 1fr; }
  .pagehead__card { padding: 20px 20px 26px; border-radius: 26px; }
  .pagehead__row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pagehead__ico { width: 60px; height: 60px; border-radius: 18px; }
}
