/* ==========================================================================
   زبانِ مائده — استایل لندینگ
   پالت: قهوه‌ای گرم + کرم + طلایی (برگرفته از color.jpg)
   ساختار: متغیرها، پایه، کامپوننت‌ها، سکشن‌ها، ریسپانسیو
   ========================================================================== */

/* ---------- فونت ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- متغیرها ---------- */
:root {
  --c-bg: #FCF7F1;
  --c-white: #FFFFFF;
  --c-ink: #2C1A12;
  --c-heading: #33190F;
  --c-body: #6E574B;
  --c-muted: #8A7263;

  --c-brown-900: #3D1D13;
  --c-brown-800: #5C2D1D;
  --c-brown-700: #7E4430;
  --c-brown-600: #956650;

  --c-sand: #B58D69;
  --c-sand-light: #D8BC9D;
  --c-gold: #C9975B;
  --c-cream: #F3E6D7;
  --c-cream-2: #F9F1E6;

  --c-line: rgba(126, 68, 48, .14);
  --c-line-soft: rgba(126, 68, 48, .08);

  --shadow-sm: 0 14px 30px -24px rgba(74, 36, 24, .55);
  --shadow-md: 0 28px 55px -34px rgba(74, 36, 24, .55);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- پایه ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-heading);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.01em;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}

ul { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--c-brown-700);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: #E7CFAC;
  color: #3D1D13;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--c-brown-800);
  color: #FBF3E8;
  font-weight: 700;
  font-size: .9rem;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- آیکون‌ها ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; stroke-width: 1.8; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn--primary {
  background: linear-gradient(155deg, #8B4C34 0%, #69341F 55%, #5C2D1D 100%);
  color: #FDF7F0;
  box-shadow: 0 16px 30px -18px rgba(74, 36, 24, .95);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -18px rgba(74, 36, 24, .9);
  color: #FFFFFF;
}

.btn--ghost {
  background: rgba(255, 255, 255, .85);
  border-color: var(--c-sand-light);
  color: var(--c-brown-700);
}
.btn--ghost:hover {
  background: #FFFFFF;
  border-color: var(--c-sand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--light {
  background: #F8EBD9;
  border-color: #F8EBD9;
  color: var(--c-brown-900);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .7);
}
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; transform: translateY(-2px); }

.btn--outline-light {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(248, 235, 217, .42);
  color: #F8EBD9;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(248, 235, 217, .7);
  color: #FFFFFF;
}

.btn--sm { padding: 10px 18px; font-size: .9rem; border-radius: 12px; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-brown-700);
  font-weight: 700;
  font-size: .92rem;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--c-brown-900); }
.link-arrow:hover .icon { transform: translateX(-4px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #FFFDF9;
  color: var(--c-brown-700);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 91, .18);
}

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(252, 247, 241, .84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 247, 241, .97);
  border-color: var(--c-line);
  box-shadow: 0 16px 34px -30px rgba(74, 36, 24, .9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand__mark {
  width: auto;
  height: 45px;
  border-radius: 0;
  box-shadow: none;
}
.brand--footer .brand__mark { height: 42px; }
.brand__name {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  color: #3E2418;
}
.brand__sub {
  display: block;
  margin-top: 3px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #A5825F;
}

.nav { display: none; gap: 26px; }
.nav a {
  position: relative;
  padding: 8px 0;
  color: #5A4136;
  font-size: .94rem;
  font-weight: 600;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-sand), #8B4C34);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--c-brown-900); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: #FFFDF9;
  color: var(--c-brown-800);
  cursor: pointer;
}
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--c-line);
  background: #FFFDFA;
  padding: 14px 5vw 22px;
}
.mobile-menu.is-open {
  display: block;
  animation: menuIn .26s var(--ease);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.mobile-menu__nav {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}
.mobile-menu__nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--c-line-soft);
  color: #4E372C;
  font-weight: 600;
}
.mobile-menu .btn--full + .btn--full { margin-top: 8px; }

/* ---------- هیرو ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 68px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  top: -220px;
  inset-inline-start: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(216, 188, 157, .5) 0%, rgba(216, 188, 157, 0) 68%);
}
.hero::after {
  bottom: -240px;
  inset-inline-end: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(243, 230, 215, .9) 0%, rgba(243, 230, 215, 0) 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 46px;
  align-items: center;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(1.95rem, 4.4vw, 3.3rem);
  line-height: 1.45;
  color: var(--c-heading);
}

.marker {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: var(--c-brown-700);
}
.marker::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: -5px;
  bottom: .02em;
  height: .3em;
  border-radius: 5px;
  background: linear-gradient(90deg, #E9D2B0, #DCC09B);
  transform: rotate(-.5deg);
}

.hero__lead {
  max-width: 36rem;
  margin-top: 20px;
  color: var(--c-body);
  font-size: clamp(.97rem, 1.2vw, 1.06rem);
  line-height: 2.15;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: #7A6357;
  font-size: .85rem;
  font-weight: 500;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .icon {
  width: 12px;
  height: 12px;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  background: #F1E0CB;
  color: var(--c-brown-700);
  stroke-width: 3;
}

/* ---------- تصویرسازی هیرو ---------- */
.art {
  position: relative;
  min-height: 460px;
}
.art__panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 68, 48, .16);
  border-radius: 40px;
  background:
    radial-gradient(120% 95% at 85% 0%, #F8EBD9 0%, #EFDCC2 46%, #E2C9A9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 44px 80px -62px rgba(74, 36, 24, .95);
}
.art__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament.svg") repeat;
  background-size: 280px 280px;
  opacity: .55;
}

.art__book {
  position: absolute;
  inset: 15% 11% 16%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid #F0E2D0;
  border-radius: 20px;
  background: #FFFCF7;
  box-shadow: 0 30px 55px -30px rgba(74, 36, 24, .6), 0 2px 0 rgba(255, 255, 255, .9) inset;
  transform: rotate(-2.2deg);
}

.book__tabs { display: flex; gap: 6px; }
.book__tab {
  padding: 4px 11px;
  border-radius: 999px;
  background: #F5EADD;
  color: #8A6A55;
  font-size: .7rem;
  font-weight: 700;
}
.book__tab.is-active { background: var(--c-brown-700); color: #FDF6EE; }

.book__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.book__label { color: #8A6B58; font-size: .74rem; font-weight: 600; }
.book__badge {
  padding: 2px 9px;
  border: 1px solid #EBD9C3;
  border-radius: 999px;
  color: var(--c-brown-700);
  font-size: .68rem;
  font-weight: 700;
}
.book__rule {
  height: 1px;
  margin: 2px 0 4px;
  background: linear-gradient(90deg, rgba(126, 68, 48, .28), rgba(126, 68, 48, .04));
}

.book__words { display: grid; }
.book__words li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px dashed #EEE0CE;
}
.book__words li:last-child { border-bottom: 0; }
.w-en {
  color: #3E2418;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .01em;
  unicode-bidi: isolate;
}
.w-fa { color: #8A6B58; font-size: .8rem; }

.book__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1E4D3;
  color: #916F58;
  font-size: .72rem;
  font-weight: 600;
}

.art__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(126, 68, 48, .14);
  border-radius: 14px;
  background: rgba(255, 253, 249, .97);
  box-shadow: 0 18px 30px -22px rgba(74, 36, 24, .85);
  color: #5C2D1D;
  font-size: .76rem;
  font-weight: 700;
}
.art__chip .icon { width: 16px; height: 16px; color: var(--c-brown-700); }
.art__chip--top { top: 14px; inset-inline-end: 16px; }
.art__chip--bottom { bottom: 16px; inset-inline-start: 16px; }

.art__stamp {
  position: absolute;
  z-index: 2;
  top: 12px;
  inset-inline-start: 14px;
  display: grid;
  place-content: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(248, 235, 217, .35);
  border-radius: 50%;
  background: linear-gradient(150deg, #8B4C34, #5C2D1D);
  color: #F8EBD9;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 18px 30px -20px rgba(74, 36, 24, .9);
}
.art__stamp strong { font-size: 1.45rem; line-height: 1; font-weight: 800; }
.art__stamp span { margin-top: 3px; font-size: .58rem; letter-spacing: .02em; }

/* ---------- سکشن عمومی ---------- */
.section { padding: 72px 0; }
.section--white { background: var(--c-white); }
.section--cream { background: var(--c-bg); }

.section-head {
  max-width: 660px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 3.1vw, 2.3rem);
  line-height: 1.55;
  text-wrap: balance;
}
.section-head p {
  margin-top: 14px;
  color: var(--c-body);
  font-size: .98rem;
  line-height: 2.1;
}

/* ---------- امکانات ---------- */
.feature-grid {
  display: grid;
  gap: 16px;
}
.feature-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #FBF5ED;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .35s var(--ease), border-color .35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-sand-light);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(150deg, #F7E7D4, #EBD4B8);
  color: var(--c-brown-700);
}
.feature-card__icon .icon { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--c-body); font-size: .92rem; line-height: 2; }

/* ---------- پایه‌ها ---------- */
.grade-grid { display: grid; gap: 18px; }
.grade-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.grade-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-sand-light);
  box-shadow: var(--shadow-md);
}
.grade-card__top {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line-soft);
}
.grade-card__num {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 20px;
  background: linear-gradient(150deg, #F8ECDD, #EEDCC5);
  color: #B08A63;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  direction: ltr;
}
.grade-card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.grade-card__desc { color: var(--c-muted); font-size: .85rem; line-height: 1.9; }

.grade-card__list { margin-top: 16px; }
.grade-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--c-line-soft);
  color: #4E372C;
  font-size: .92rem;
  font-weight: 500;
}
.grade-card__list li:last-child { border-bottom: 0; }
.grade-card__list .icon { color: var(--c-sand); }

.grade-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--c-line-soft);
}
.grade-card__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: #F7EDE0;
  color: #785B46;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

.grades__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--c-muted);
  font-size: .85rem;
  line-height: 2;
  text-align: center;
}
.grades__note .icon { color: var(--c-sand); }

/* ---------- نمونهٔ جزوه ---------- */
.preview {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: #F7EEE3;
}
.preview__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.preview__tabs::-webkit-scrollbar { display: none; }
.preview__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: #FFFDF9;
  color: #5F4638;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.preview__tab .icon { width: 17px; height: 17px; }
.preview__tab:hover { border-color: var(--c-sand-light); background: #FFFFFF; }
.preview__tab.is-active {
  border-color: transparent;
  background: linear-gradient(155deg, #8B4C34, #69341F);
  color: #FDF6EE;
  box-shadow: 0 16px 28px -20px rgba(74, 36, 24, .95);
}

.preview__panel { min-width: 0; }
.preview__panel[hidden] { display: none; }

.page {
  padding: 24px 22px 26px;
  border: 1px solid #EFE1D0;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.page__crumb { color: #9A7D68; font-size: .76rem; font-weight: 600; }
.page__pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: #F6E9DA;
  color: var(--c-brown-700);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.page__title { margin: 16px 0 12px; font-size: 1.16rem; }

.word-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .88rem;
}
.word-table col:nth-child(1) { width: 24%; }
.word-table th {
  padding: 8px 6px;
  border-bottom: 1px solid var(--c-line);
  color: #9A7D68;
  font-size: .74rem;
  font-weight: 700;
  text-align: start;
}
.word-table td {
  padding: 11px 6px;
  border-bottom: 1px dashed var(--c-line-soft);
  color: #4E372C;
  overflow-wrap: anywhere;
}
.word-table .w-en { font-size: .9rem; }
.word-table .w-ex { color: #8A6B58; font-size: .78rem; line-height: 1.95; }

.page__note {
  margin-top: 16px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--c-sand-light);
  border-radius: 10px;
  background: #FBF5EC;
  color: #7A6357;
  font-size: .82rem;
  line-height: 2;
}

.formula {
  display: inline-block;
  margin-bottom: 16px;
  padding: 9px 16px;
  border-radius: 12px;
  background: #F6E9DA;
  color: #5C2D1D;
  font-size: .9rem;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}
.example-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--c-line-soft);
}
.example-list li:last-child { border-bottom: 0; }
.example-list__en {
  color: #3E2418;
  font-size: .9rem;
  font-weight: 600;
  unicode-bidi: isolate;
}
.example-list__fa { color: #8A6B58; font-size: .82rem; }

.callout {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #EBD9C3;
  border-radius: 14px;
  background: #FBF5EC;
}
.callout .icon { margin-top: 5px; color: var(--c-gold); }
.callout p { margin: 0; color: #6B5449; font-size: .85rem; line-height: 2; }

.writing-prompt {
  padding: 14px 16px;
  border-inline-start: 3px solid var(--c-sand);
  border-radius: 10px;
  background: #FBF5EC;
  color: #5C2D1D;
  font-size: .92rem;
  font-weight: 600;
  unicode-bidi: isolate;
}
.checklist { margin-top: 14px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #4E372C;
  font-size: .88rem;
}
.checklist .icon { color: var(--c-brown-700); }
.writing-sample {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
  color: #8A6B58;
  font-size: .85rem;
  font-style: italic;
  unicode-bidi: isolate;
}

.preview__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  text-align: center;
}
.preview__hint { color: var(--c-muted); font-size: .82rem; }

/* ---------- دربارهٔ من ---------- */
.about {
  display: grid;
  gap: 34px;
  align-items: center;
}
.about__copy h2 {
  margin-top: 16px;
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  line-height: 1.6;
}
.about__copy > p {
  margin-top: 16px;
  color: var(--c-body);
  font-size: .97rem;
  line-height: 2.2;
}

.portrait {
  position: relative;
  aspect-ratio: 10 / 11;
  max-width: 460px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(126, 68, 48, .18);
  border-radius: var(--r-xl);
  background: #EFE0CE;
  box-shadow: 0 40px 70px -55px rgba(74, 36, 24, .95);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(46, 23, 16, .28), transparent 38%);
}
.portrait__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 30%;
}
.portrait__plate {
  position: absolute;
  z-index: 2;
  inset-inline-start: 16px;
  top: 16px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid rgba(126, 68, 48, .12);
  border-radius: 16px;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 30px -26px rgba(74, 36, 24, .8);
}
.portrait__plate strong { color: #3E2418; font-size: 1rem; }
.portrait__plate span { color: var(--c-muted); font-size: .78rem; }

.about__facts {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.about__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: #4E372C;
  font-size: .88rem;
  font-weight: 600;
}
.fact__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fact__text strong {
  color: #3E2418;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.75;
}
.fact__text small {
  color: var(--c-muted);
  font-size: .73rem;
  font-weight: 500;
  line-height: 1.7;
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #F5E7D6;
  color: var(--c-brown-700);
}

.about__quote {
  margin: 24px 0 22px;
  padding: 18px 22px;
  border: 1px solid var(--c-line-soft);
  border-inline-start: 4px solid var(--c-sand-light);
  border-radius: 16px;
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  color: #5B4135;
  font-size: .95rem;
  line-height: 2.1;
}

/* ---------- نظرات ---------- */
.quote-grid { display: grid; gap: 16px; }
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 26px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #FBF5ED;
}
.quote-card__stars { display: flex; gap: 2px; color: #D2A05C; }
.quote-card__stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.quote-card blockquote {
  margin: 0;
  color: #4E372C;
  font-size: .95rem;
  line-height: 2.1;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F2E2CE;
  color: var(--c-brown-700);
  font-size: .95rem;
  font-weight: 800;
}
.quote-card figcaption strong { display: block; color: #3E2418; font-size: .9rem; line-height: 1.6; }
.quote-card figcaption small { display: block; color: var(--c-muted); font-size: .76rem; line-height: 1.6; }

/* ---------- سؤالات متداول ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-inline: auto;
}
.faq__item {
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq__item[open] {
  border-color: var(--c-sand-light);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  color: #3E2418;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron {
  color: var(--c-brown-700);
  transition: transform .3s var(--ease);
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__body { padding: 0 20px 18px; }
.faq__body p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line-soft);
  color: var(--c-body);
  font-size: .9rem;
  line-height: 2.1;
}

/* ---------- نوار CTA ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 54px;
  padding: 52px 26px 46px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #6B3522 0%, #4A2418 55%, #3A1B11 100%);
  color: #F6E7D5;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  inset-inline-start: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 151, 91, .3), transparent 68%);
}
.cta-band__ornament {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/ornament.svg") repeat;
  background-size: 280px 280px;
  opacity: .16;
}
.cta-band h2 {
  color: #FBF1E3;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  line-height: 1.6;
}
.cta-band p {
  max-width: 34rem;
  margin: 14px auto 0;
  color: rgba(246, 231, 213, .78);
  font-size: .95rem;
  line-height: 2.1;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.cta-band__note {
  margin-top: 18px !important;
  color: rgba(246, 231, 213, .58) !important;
  font-size: .78rem !important;
  letter-spacing: .02em;
}

/* ---------- فوتر ---------- */
.site-footer {
  padding-top: 58px;
  background: #2E1710;
  color: #EAD9C6;
}
.footer__top {
  display: grid;
  gap: 34px;
  padding-bottom: 44px;
}
.brand--footer .brand__name { color: #F7E9D9; }
.brand--footer .brand__sub { color: var(--c-sand); }
.footer__brand p {
  margin-top: 16px;
  max-width: 32rem;
  color: rgba(234, 217, 198, .62);
  font-size: .88rem;
  line-height: 2.1;
}
.footer__brand .footer__slogan {
  margin-top: 14px;
  color: var(--c-sand);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.footer__col h3 {
  margin-bottom: 14px;
  color: #F7E9D9;
  font-size: .95rem;
  font-weight: 700;
}
.footer__col li { margin-bottom: 9px; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(234, 217, 198, .7);
  font-size: .88rem;
}
.footer__col a:hover { color: #F7E9D9; }
.footer__contact .icon { color: var(--c-sand); }
.footer__contact span { direction: ltr; unicode-bidi: isolate; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(234, 217, 198, .14);
  color: rgba(234, 217, 198, .5);
  font-size: .78rem;
}

/* ---------- نوار پایین موبایل ---------- */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
  background: rgba(255, 253, 250, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -14px 30px -24px rgba(74, 36, 24, .85);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px;
  color: #7A6357;
  font-size: .68rem;
  font-weight: 700;
}
.mobile-bar a:hover { color: var(--c-brown-800); }
.mobile-bar .icon { width: 21px; height: 21px; }

/* ---------- انیمیشن ورود ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   ریسپانسیو
   ========================================================================== */

@media (max-width: 560px) {
  .header__cta { display: none; }
  .hero { padding-top: 28px; }
  .art { min-height: 400px; }
  .art__book { inset: 13% 8% 15%; padding: 16px 16px; }
  .art__chip { font-size: .7rem; padding: 7px 10px; }
  .art__chip--top { inset-inline-end: 10px; top: 10px; }
  .art__chip--bottom { inset-inline-start: 10px; bottom: 10px; }
  .art__stamp { width: 66px; height: 66px; inset-inline-start: 10px; top: 10px; }
  .art__stamp strong { font-size: 1.2rem; }
  .art__stamp span { font-size: .52rem; }
  .section { padding: 56px 0; }
  .preview { padding: 14px; border-radius: var(--r-lg); }
  .page { padding: 20px 16px 22px; }
  .btn { padding: 13px 20px; font-size: .93rem; }
}

@media (min-width: 620px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about__facts { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .section { padding: 88px 0; }
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__brand { grid-row: 1 / span 2; }
  .art { min-height: 520px; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header__cta { display: inline-flex; }
  .mobile-bar { display: none; }

  .hero { padding: 56px 0 84px; }
  .hero__inner { grid-template-columns: 1.02fr .98fr; gap: 56px; }

  .section { padding: 104px 0; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .grade-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .quote-grid { grid-template-columns: repeat(3, 1fr); }

  .preview { grid-template-columns: 250px 1fr; align-items: start; padding: 24px; gap: 22px; }
  .preview__tabs { flex-direction: column; overflow: visible; }
  .preview__tab { width: 100%; justify-content: flex-start; padding: 14px 16px; }

  .about { grid-template-columns: .85fr 1.15fr; gap: 56px; }
  .about__copy { padding-block: 10px; }

  .cta-band { padding: 62px 40px 54px; }

  .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 40px; }
  .footer__brand { grid-row: auto; }
}

@media (min-width: 1200px) {
  .hero__inner { gap: 72px; }
}

/* فاصلهٔ انتهایی برای نوار موبایل */
@media (max-width: 959px) {
  body { padding-bottom: 68px; }
}

/* ==========================================================================
   صفحات پایه (دهم / یازدهم / دوازدهم)
   ========================================================================== */

.level-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 56px;
}
.level-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  inset-inline-start: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 188, 157, .45) 0%, rgba(216, 188, 157, 0) 68%);
  pointer-events: none;
}
.level-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 38px;
  align-items: center;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--c-muted);
  font-size: .8rem;
  font-weight: 600;
}
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-brown-700); }
.crumbs .icon { width: 13px; height: 13px; color: var(--c-sand); }
.crumbs [aria-current="page"] { color: #4E372C; }

.level-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.75rem);
  line-height: 1.5;
}
.level-hero__lead {
  max-width: 38rem;
  margin-top: 16px;
  color: var(--c-body);
  font-size: 1rem;
  line-height: 2.15;
}

.level-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.level-switch a {
  padding: 8px 15px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #FFFDF9;
  color: #5F4638;
  font-size: .84rem;
  font-weight: 700;
}
.level-switch a:hover { border-color: var(--c-sand-light); }
.level-switch a.is-current {
  border-color: transparent;
  background: linear-gradient(155deg, #8B4C34, #69341F);
  color: #FDF6EE;
  box-shadow: 0 12px 22px -18px rgba(74, 36, 24, .9);
}

.level-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.level-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  color: #7A6357;
  font-size: .84rem;
  font-weight: 500;
}
.level-stats li { display: inline-flex; align-items: center; gap: 7px; }
.level-stats .icon { color: var(--c-sand); }

.level-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(126, 68, 48, .16);
  border-radius: 38px;
  background: radial-gradient(120% 100% at 80% 0%, #F8EBD9 0%, #EFDCC2 50%, #E2C9A9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 40px 70px -60px rgba(74, 36, 24, .9);
}
.level-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament.svg") repeat;
  background-size: 280px 280px;
  opacity: .5;
}
.level-badge__num {
  position: relative;
  z-index: 1;
  color: var(--c-brown-700);
  font-size: clamp(4.6rem, 11vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  direction: ltr;
}
.level-badge__label {
  position: relative;
  z-index: 1;
  color: #5C2D1D;
  font-size: .96rem;
  font-weight: 700;
}
.level-badge__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0 18px;
}
.level-badge__chips li {
  padding: 4px 10px;
  border: 1px solid rgba(126, 68, 48, .12);
  border-radius: 999px;
  background: rgba(255, 253, 249, .82);
  color: #7A5B47;
  font-size: .72rem;
  font-weight: 700;
}

/* منابع هر پایه */
.resource-grid { display: grid; gap: 16px; }
.resource-card {
  padding: 24px 22px 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #FBF5ED;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-sand-light);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.resource-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(150deg, #F7E7D4, #EBD4B8);
  color: var(--c-brown-700);
}
.resource-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.resource-card p { color: var(--c-body); font-size: .88rem; line-height: 2; }
.resource-card__list { margin-top: 12px; }
.resource-card__list li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 3px 0;
  color: #6B5449;
  font-size: .8rem;
  line-height: 1.9;
}
.resource-card__list .icon { margin-top: 6px; color: var(--c-sand); }

/* فصل‌ها */
.lesson-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-inline: auto;
}
.lesson {
  border: 1px solid var(--c-line);
  border-radius: 18px;
  background: var(--c-white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.lesson[open] {
  border-color: var(--c-sand-light);
  box-shadow: var(--shadow-sm);
}
.lesson summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}
.lesson summary::-webkit-details-marker { display: none; }
.lesson__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #F6E9DA;
  color: var(--c-brown-700);
  font-size: 1rem;
  font-weight: 800;
}
.lesson__title {
  color: #3E2418;
  font-size: .96rem;
  font-weight: 700;
}
.lesson__meta {
  margin-inline-start: auto;
  color: var(--c-muted);
  font-size: .76rem;
  white-space: nowrap;
}
.lesson .faq__chevron { color: var(--c-brown-700); transition: transform .3s var(--ease); }
.lesson[open] .faq__chevron { transform: rotate(180deg); }
.lesson__body { padding: 0 18px 18px; }

.file-grid { display: grid; gap: 9px; }
.file-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--c-line-soft);
  border-radius: 13px;
  background: #FCF8F2;
}
.file-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #F3E6D5;
  color: var(--c-brown-700);
}
.file-card__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.file-card__text strong { color: #3E2418; font-size: .88rem; font-weight: 700; }
.file-card__text small { color: var(--c-muted); font-size: .72rem; }
.file-card__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-inline-start: auto;
  color: var(--c-brown-700);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.file-card__link:hover { color: var(--c-brown-900); }
.file-card__link .icon { width: 14px; height: 14px; }
.file-card__badge {
  margin-inline-start: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F1E2CE;
  color: #785B46;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}
.file-card__badge:hover { background: #E9D5BB; color: #4A2418; }

/* پکیج */
.package {
  display: grid;
  gap: 26px;
  padding: 30px 26px;
  border: 1px solid var(--c-sand-light);
  border-radius: var(--r-xl);
  background: #FFFDF9;
  box-shadow: var(--shadow-md);
}
.package h2 { margin-top: 14px; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.6; }
.package__lead { margin-top: 12px; color: var(--c-body); font-size: .95rem; line-height: 2.1; }
.package__list { margin-top: 18px; display: grid; gap: 8px; }
.package__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4E372C;
  font-size: .88rem;
}
.package__list .icon { color: var(--c-brown-700); }
.package__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.package__box {
  padding: 22px;
  border: 1px dashed var(--c-sand-light);
  border-radius: 20px;
  background: #F9F0E4;
}
.package__flag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1E2CE;
  color: #785B46;
  font-size: .7rem;
  font-weight: 700;
}
.package__box p { margin-top: 12px; color: #6B5449; font-size: .85rem; line-height: 2; }
.package__box .link-arrow { margin-top: 6px; }

/* ناوبری بین پایه‌ها */
.grade-nav { display: grid; gap: 12px; }
.grade-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  background: #FFFFFF;
}
.grade-nav a:hover {
  border-color: var(--c-sand-light);
  box-shadow: var(--shadow-sm);
}
.grade-nav small { display: block; color: var(--c-muted); font-size: .72rem; font-weight: 600; }
.grade-nav strong { display: block; color: #3E2418; font-size: .98rem; }
.grade-nav .icon { color: var(--c-brown-700); }

@media (min-width: 620px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
  .grade-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .level-hero { padding: 46px 0 72px; }
  .level-hero__inner { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .resource-grid { grid-template-columns: repeat(4, 1fr); }
  .package { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 40px 38px; }
}

/* کارت تنها در ناوبری پایه‌ها */
.grade-nav a:only-child { grid-column: 1 / -1; }

/* اصلاح جهت شِوران مسیر صفحه */
.crumbs .icon { transform: rotate(90deg); }

/* سکشن فشرده برای ناوبری پایه‌ها */
.section--tight { padding-top: 0; padding-bottom: 76px; }

/* فاصله‌های عمودی صفحه‌های پایه */
.section--tight { padding-bottom: 44px; }
.cta-band--flush { margin-top: 0; }
.grade-nav a:only-child { justify-content: flex-start; gap: 16px; }

.grade-nav { max-width: 760px; margin-inline: auto; }


/* ناوبری پایه‌ها: کارت‌های وسط‌چین */
.grade-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.grade-nav a { flex: 1 1 280px; max-width: 370px; }
.grade-nav a:only-child { justify-content: space-between; gap: 12px; }

/* ==========================================================================
   صفحهٔ محصول (یک فصل)
   ========================================================================== */

.product-hero { position: relative; overflow: hidden; padding: 26px 0 56px; }
.product-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  inset-inline-start: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 188, 157, .42) 0%, rgba(216, 188, 157, 0) 68%);
}
.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: start;
}
.product-info h1 {
  margin-top: 14px;
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  line-height: 1.5;
}
.product-lead {
  margin-top: 14px;
  color: var(--c-body);
  font-size: .98rem;
  line-height: 2.15;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.product-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #FFFDF9;
  color: #6B5449;
  font-size: .78rem;
  font-weight: 600;
}
.product-meta .icon { color: var(--c-sand); }

.buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: #FFFDF9;
  box-shadow: var(--shadow-sm);
}
.price { display: flex; flex-direction: column; line-height: 1.35; }
.price strong { color: #3E2418; font-size: 1.55rem; font-weight: 800; white-space: nowrap; }
.price span { color: var(--c-muted); font-size: .76rem; }
.buy-box .btn { flex: 1 1 auto; min-width: 150px; }
.buy-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--c-muted);
  font-size: .76rem;
  line-height: 1.95;
}

/* کاور جزوه */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  padding: 26px 24px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(155deg, #8B4C34 0%, #5C2D1D 55%, #3D1D13 100%);
  color: #FBF1E3;
  box-shadow: 0 44px 80px -46px rgba(74, 36, 24, .95);
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament.svg") repeat;
  background-size: 250px 250px;
  opacity: .16;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(248, 235, 217, .22);
  border-radius: 12px;
  pointer-events: none;
}
.cover__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(251, 241, 227, .66);
  font-size: .72rem;
  letter-spacing: .08em;
}
.cover__brand { color: #FBF1E3; font-weight: 800; font-size: .9rem; letter-spacing: .01em; }
.cover__body { position: relative; z-index: 1; margin-block: auto; }
.cover__badge {
  display: inline-flex;
  padding: 4px 12px;
  border: 1px solid rgba(251, 241, 227, .35);
  border-radius: 999px;
  background: rgba(251, 241, 227, .12);
  font-size: .72rem;
  font-weight: 700;
}
.cover__title { margin-top: 14px; color: #FBF1E3; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.cover__sub { margin-top: 6px; color: rgba(251, 241, 227, .72); font-size: .86rem; }
.cover__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(251, 241, 227, .18);
  color: rgba(251, 241, 227, .6);
  font-size: .72rem;
}

/* پیش‌نمایش PDF */
.pdf-viewer {
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: #EFE6D9;
}
.pdf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 12px;
  color: #6B5449;
  font-size: .76rem;
  font-weight: 600;
}
.pdf-bar__file { display: inline-flex; align-items: center; gap: 7px; }
.pdf-bar__file .icon { color: var(--c-brown-700); }
.pdf-doc {
  width: min(580px, 100%);
  max-height: 680px;
  margin-inline: auto;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid #E6DACB;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 30px 50px -34px rgba(45, 25, 15, .8);
}
.pdf-doc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line-soft);
  color: #9A7D68;
  font-size: .72rem;
}
.pdf-doc__title { margin: 16px 0 12px; font-size: 1.1rem; }
.pdf-doc .word-table { font-size: .82rem; }
.pdf-doc .word-table th { font-size: .7rem; }
.pdf-doc .word-table td { padding: 9px 5px; }
.pdf-doc .page__note { margin-top: 14px; font-size: .76rem; }

.pdf-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding: 0 6px 4px;
}
.pdf-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px !important;
  border-radius: 10px !important;
  font-size: .72rem !important;
  text-align: center;
}
.pdf-thumb__page { font-weight: 800; font-size: .9rem; }
.pdf-thumb__label { font-weight: 600; opacity: .85; }
.pdf-viewer__note { margin-top: 12px; text-align: center; color: var(--c-muted); font-size: .76rem; }

/* فهرست محتوا */
.contents { display: grid; gap: 24px; align-items: start; }
.contents__list { display: grid; gap: 10px; }
.contents__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: #FBF5ED;
  color: #4E372C;
  font-size: .88rem;
  font-weight: 600;
}
.contents__list .icon { color: var(--c-brown-700); }
.contents__list small { margin-inline-start: auto; color: var(--c-muted); font-size: .74rem; font-weight: 500; }
.contents__aside {
  padding: 22px;
  border: 1px dashed var(--c-sand-light);
  border-radius: 18px;
  background: #F9F0E4;
  color: #6B5449;
  font-size: .86rem;
  line-height: 2.05;
}
.contents__aside strong { display: block; margin-bottom: 6px; color: #3E2418; }

/* محصولات مرتبط */
.related-grid { display: grid; gap: 12px; }
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: #FFFFFF;
}
.related-card:hover { border-color: var(--c-sand-light); box-shadow: var(--shadow-sm); }
.related-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #F5E7D6;
  color: var(--c-brown-700);
}
.related-card__text { display: flex; flex-direction: column; min-width: 0; }
.related-card__text strong { color: #3E2418; font-size: .9rem; }
.related-card__text small { color: var(--c-muted); font-size: .74rem; }
.related-card .icon--arrow { margin-inline-start: auto; color: var(--c-brown-700); }

/* نوار خرید موبایل */
.buy-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
  background: rgba(255, 253, 250, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -16px 30px -24px rgba(74, 36, 24, .9);
}
.buy-bar__price { display: flex; flex-direction: column; line-height: 1.3; }
.buy-bar__price strong { color: #3E2418; font-size: 1.05rem; font-weight: 800; }
.buy-bar__price span { color: var(--c-muted); font-size: .68rem; }
.buy-bar .btn { padding: 11px 22px; font-size: .9rem; }

@media (min-width: 720px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .contents { grid-template-columns: 1.15fr .85fr; }
}
@media (min-width: 960px) {
  .product-hero { padding: 40px 0 68px; }
  .product-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .buy-bar { display: none; }
}

/* تمرین و پاسخ در پیش‌نمایش PDF */
.exercise-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  direction: ltr;
  text-align: left;
}
.exercise-list li {
  padding: 9px 12px;
  border: 1px solid var(--c-line-soft);
  border-radius: 10px;
  background: #FCF8F2;
  color: #3E2418;
  font-size: .88rem;
  line-height: 1.9;
}
.blank { color: var(--c-brown-700); font-weight: 800; letter-spacing: .08em; }

.answer-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-inline-start: 20px;
  list-style: decimal;
  color: #4E372C;
  font-size: .85rem;
  line-height: 2;
}
.answer-list li { padding-inline-start: 4px; }
.answer-list strong { color: #3E2418; font-weight: 800; }

/* جزئیات کاور */
.cover__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cover__tags span {
  padding: 3px 9px;
  border: 1px solid rgba(251, 241, 227, .28);
  border-radius: 999px;
  color: rgba(251, 241, 227, .85);
  font-size: .68rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .pdf-doc { padding: 18px 14px 16px; }
  .pdf-doc .word-table th:nth-child(2),
  .pdf-doc .word-table td:nth-child(2) { display: none; }
  .pdf-doc .word-table .w-en { overflow-wrap: normal; }
  .pdf-doc .word-table .w-ex { font-size: .72rem; line-height: 1.8; }
  .buy-box .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   صفحهٔ پکیج‌ها
   ========================================================================== */

.pkg-hero { position: relative; overflow: hidden; padding: 30px 0 56px; }
.pkg-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  inset-inline-start: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 188, 157, .42) 0%, rgba(216, 188, 157, 0) 68%);
}
.pkg-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: center;
}
.pkg-hero h1 { margin-top: 16px; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.5; }
.pkg-hero__lead { margin-top: 14px; max-width: 36rem; color: var(--c-body); font-size: 1rem; line-height: 2.15; }

.summary-card {
  width: min(380px, 100%);
  margin-inline: auto;
  padding: 26px 24px;
  border: 1px solid var(--c-sand-light);
  border-radius: 26px;
  background: #FFFDF9;
  box-shadow: var(--shadow-md);
}
.summary-card__flag {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  background: #F1E2CE;
  color: #785B46;
  font-size: .7rem;
  font-weight: 700;
}
.summary-card h2 { margin-top: 12px; font-size: 1.2rem; }
.summary-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.summary-card__price strong { color: #3E2418; font-size: 2rem; font-weight: 800; }
.summary-card__price s { color: var(--c-muted); font-size: .9rem; }
.summary-card__price span { color: var(--c-muted); font-size: .78rem; }
.summary-card ul { display: grid; gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--c-line); }
.summary-card li { display: flex; align-items: center; gap: 8px; color: #4E372C; font-size: .84rem; }
.summary-card .icon { color: var(--c-brown-700); }
.summary-card .btn { margin-top: 20px; width: 100%; }

/* کارت‌های قیمت */
.pricing-grid { display: grid; gap: 18px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border: 1px solid var(--c-line);
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: transparent;
  background: linear-gradient(160deg, #6B3522 0%, #4A2418 55%, #3A1B11 100%);
  color: #F6E7D5;
  box-shadow: 0 34px 60px -40px rgba(74, 36, 24, .95);
}
.plan__badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #C9975B;
  color: #3D1D13;
  font-size: .7rem;
  font-weight: 800;
}
.plan h3 { font-size: 1.1rem; }
.plan--featured h3 { color: #FBF1E3; }
.plan__desc { margin-top: 6px; min-height: 3.4em; color: var(--c-muted); font-size: .82rem; line-height: 1.9; }
.plan--featured .plan__desc { color: rgba(246, 231, 213, .7); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 14px; }
.plan__price strong { color: #3E2418; font-size: 1.8rem; font-weight: 800; }
.plan--featured .plan__price strong { color: #FBF1E3; }
.plan__price s { color: var(--c-muted); font-size: .82rem; }
.plan--featured .plan__price s { color: rgba(246, 231, 213, .6); }
.plan__price span { width: 100%; color: var(--c-muted); font-size: .74rem; }
.plan--featured .plan__price span { color: rgba(246, 231, 213, .65); }
.plan__list { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--c-line); flex: 1; }
.plan--featured .plan__list { border-color: rgba(246, 231, 213, .2); }
.plan__list li { display: flex; align-items: flex-start; gap: 8px; color: #4E372C; font-size: .84rem; line-height: 1.9; }
.plan__list .icon { margin-top: 5px; color: var(--c-brown-700); }
.plan--featured .plan__list li { color: rgba(246, 231, 213, .9); }
.plan--featured .plan__list .icon { color: #D9AE79; }
.plan .btn { margin-top: 20px; width: 100%; }

/* جدول مقایسه */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: #FFFFFF;
  scrollbar-width: thin;
}
.compare {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: .86rem;
}
.compare caption {
  padding: 14px 18px;
  color: var(--c-muted);
  font-size: .76rem;
  text-align: start;
}
.compare th,
.compare td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-line-soft);
  text-align: start;
  vertical-align: middle;
}
.compare thead th {
  background: #FAF3E9;
  color: #3E2418;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}
.compare tbody th { color: #4E372C; font-size: .84rem; font-weight: 600; }
.compare td { color: #6B5449; }
.compare td.is-featured,
.compare thead th.is-featured { background: #F7EDE0; }
.compare .yes { color: #7E4430; font-weight: 800; }
.compare .no { color: #B7A697; }
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }
.compare tfoot td, .compare tfoot th { background: #FCF8F2; font-weight: 700; color: #3E2418; }

@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan--featured { transform: translateY(-6px); }
}
@media (min-width: 960px) {
  .pkg-hero { padding: 46px 0 70px; }
  .pkg-hero__inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* نوار خرید پکیج */
.pkg-buy-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
  background: rgba(255, 253, 250, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -16px 30px -24px rgba(74, 36, 24, .9);
}
.pkg-buy-bar__price { display: flex; flex-direction: column; line-height: 1.3; }
.pkg-buy-bar__price strong { color: #3E2418; font-size: 1.02rem; font-weight: 800; }
.pkg-buy-bar__price span { color: var(--c-muted); font-size: .68rem; }
.pkg-buy-bar .btn { padding: 11px 20px; font-size: .9rem; }
@media (min-width: 960px) { .pkg-buy-bar { display: none; } }

/* اصلاح چیدمان قیمت در صفحهٔ پکیج */
.plan__price { display: flex; align-items: baseline; gap: 5px; margin-top: 14px; }
.plan__price strong { font-size: 2rem; }
.plan__price span { color: var(--c-muted); font-size: .8rem; }
.plan--featured .plan__price span { color: rgba(246, 231, 213, .7); }
.plan__subprice { margin-top: 2px; color: var(--c-muted); font-size: .76rem; }
.plan__subprice s { color: #A08D7C; }
.plan--featured .plan__subprice { color: rgba(246, 231, 213, .65); }
.plan--featured .plan__subprice s { color: rgba(246, 231, 213, .5); }
.summary-card__price { display: flex; align-items: baseline; gap: 5px; margin-top: 10px; }
.summary-card__old { margin-top: 2px; color: var(--c-muted); font-size: .78rem; }
.summary-card__old s { color: #A08D7C; }

.plan__price { flex-wrap: nowrap; }
.plan__price span { width: auto; }
.summary-card__price span { width: auto; }
