/* =========================================================
   رازان | بخش‌های صفحه اصلی
   ========================================================= */

/* ---------- ۱. هیرو ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      90% 100% at 85% 0%,
      rgba(11, 74, 134, 0.55) 0%,
      transparent 60%
    ),
    radial-gradient(
      70% 90% at 5% 100%,
      rgba(169, 119, 44, 0.22) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

/* بافت خطوط حامل نت */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.055) 0 1px,
    transparent 1px 13px
  );
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__content {
  max-width: 660px;
}

.hero h1 {
  color: var(--white);
  margin-block: var(--sp-4) var(--sp-5);
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--brass-400);
}

.hero h1 em::after {
  content: '';
  position: absolute;
  inset-inline: -2px;
  bottom: 0.08em;
  height: 0.28em;
  background: rgba(224, 167, 94, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.hero__lead {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.72);
  max-width: 54ch;
  text-align: justify;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-7);
}

/* اثبات اجتماعی زیر دکمه‌ها */
.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__avatars {
  display: flex;
  flex-direction: row-reverse;
}

.hero__avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--navy-900);
  object-fit: cover;
  margin-inline-start: -12px;
}

.hero__avatars img:first-child {
  margin-inline-start: 0;
}

.hero__proof-text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.hero__proof-text strong {
  display: block;
  color: var(--white);
  font-weight: 600;
}

/* تصویر هیرو */
.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
  aspect-ratio: 5 / 6;
}

/* اسلایدها روی هم چیده می‌شوند و با محو شدن جای هم را می‌گیرند.
   اسلاید فعال هم‌زمان یک زوم بسیار آرام (کن‌برنز) می‌گیرد. */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero__slide-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 6.5s linear;
}

.hero__slide.is-active .hero__slide-img {
  transform: scale(1);
}

/* کارت شناور روی تصویر */
.hero__card {
  position: absolute;
  z-index: 2;
  inset-inline-start: clamp(-1.5rem, -2vw, -1rem);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  pointer-events: none;
  animation: floatY 5s var(--ease) infinite;
}

@keyframes floatY {
  50% {
    transform: translateY(-10px);
  }
}

.hero__card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--brass-100);
  color: var(--brass-600);
  flex: none;
}

.hero__card-icon svg {
  width: 24px;
  height: 24px;
}

.hero__card-text {
  line-height: 1.5;
}

.hero__card-text b {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--navy-800);
}

.hero__card-text span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* نشان مجوز */
.hero__badge-float {
  position: absolute;
  z-index: 2;
  inset-inline-end: clamp(-0.75rem, -1vw, -0.5rem);
  top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy-700);
  color: var(--white);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: var(--sh-lg);
  pointer-events: none;
}

.hero__badge-float svg {
  width: 17px;
  height: 17px;
  color: var(--brass-400);
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }
  .hero__frame {
    aspect-ratio: 4 / 3;
  }
  .hero__content {
    max-width: none;
  }
  .hero__card {
    inset-inline-start: var(--sp-3);
  }
  .hero__badge-float {
    inset-inline-end: var(--sp-3);
  }
}

@media (max-width: 560px) {
  .hero__card {
    inset-inline-start: var(--sp-3);
    bottom: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    gap: var(--sp-3);
  }
  .hero__card-icon {
    width: 38px;
    height: 38px;
  }
  /* روی نمایشگر کوچک، دو عنصر شناور روی تصویر ازدحام ایجاد می‌کنند */
  .hero__badge-float {
    display: none;
  }
  .hero__proof {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* ---------- ۲. نوار انتخاب سریع ساز ---------- */
.instruments {
  position: relative;
  z-index: 3;
  margin-top: calc(clamp(2.5rem, 5vw, 4rem) * -1);
}

.instruments__box {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  border: 1px solid var(--border);
}

.instruments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.instruments__head h2 {
  font-size: var(--fs-xl);
}

.instruments__head p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.instr-card {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  width: 126px;
  padding: var(--sp-5) var(--sp-3);
  text-align: center;
  background: var(--gray-25);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t) var(--ease-out);
}

.instr-card:hover {
  background: var(--white);
  border-color: var(--navy-600);
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}

.instr-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy-700);
  transition: all var(--t) var(--ease);
}

.instr-card:hover .instr-card__icon {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--brass-400);
}

.instr-card__icon svg {
  width: 28px;
  height: 28px;
}

.instr-card__name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--gray-900);
}

.instr-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- ۳. درباره / آموزش تخصصی ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.about__visual {
  position: relative;
}

/* دو تصویر عمودی با آفست پله‌ای */
.about__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--sp-4);
}

.about__collage .media {
  aspect-ratio: 3 / 4;
}

.about__collage .media:nth-child(2) {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.about__stat {
  position: absolute;
  z-index: 2;
  inset-inline-start: 50%;
  bottom: -1.25rem;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: var(--sp-4) var(--sp-6);
  background: rgba(0, 46, 90, 0.32);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 32px rgba(4, 16, 31, 0.22);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  text-align: center;
  white-space: nowrap;
  animation: aboutStatFloat 4.5s var(--ease) infinite;
}

@keyframes aboutStatFloat {
  0%,
  100% {
    transform: translateX(calc(50% + 60px)) translateY(0);
    box-shadow: 0 10px 32px rgba(4, 16, 31, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  50% {
    transform: translateX(calc(50% + 60px)) translateY(-8px);
    box-shadow: 0 18px 36px rgba(4, 16, 31, 0.28), 0 0 22px rgba(201, 162, 39, 0.28);
  }
}

.about__stat b {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.2;
}

.about__stat span {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.82);
}

.about__text p {
  color: var(--text-muted);
  text-align: justify;
}

.about__text p + p {
  margin-top: var(--sp-4);
}

.about__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-block: var(--sp-6);
}

.about__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-base);
  font-weight: 500;
}

.about__list svg {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 4px;
  color: var(--brass-500);
}

.about__signature {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.about__signature .avatar {
  border: 2px solid var(--brass-300);
}

.about__signature b {
  display: block;
  font-size: var(--fs-base);
}

.about__signature span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
    margin-bottom: var(--sp-8);
  }
  .about__stat {
    animation-name: aboutStatFloatMobile;
  }
}

@keyframes aboutStatFloatMobile {
  0%,
  100% {
    transform: translateX(50%) translateY(0);
    box-shadow: 0 10px 32px rgba(4, 16, 31, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  50% {
    transform: translateX(50%) translateY(-8px);
    box-shadow: 0 18px 36px rgba(4, 16, 31, 0.28), 0 0 22px rgba(201, 162, 39, 0.28);
  }
}

@media (max-width: 520px) {
  .about__list {
    grid-template-columns: 1fr;
  }
  .about__signature {
    flex-wrap: wrap;
  }
}

/* ---------- ۴. دوره‌ها / گروه‌های ساز ---------- */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 1000px) {
  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.courses__grid > [data-reveal] {
  display: flex;
  min-width: 0;
}

.courses__grid .course-card {
  width: 100%;
  height: 100%;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    transform var(--t) var(--ease-out),
    box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.course-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.course-card:hover .course-card__media img {
  transform: scale(1.07);
}

.course-card__tag {
  position: absolute;
  top: var(--sp-3);
  inset-inline-start: var(--sp-3);
  padding: 0.25rem 0.6875rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-700);
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}

.course-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
  padding: var(--sp-5);
}

.course-card__body h3 {
  font-size: var(--fs-lg);
}

.course-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.course-card__body h3 a:hover {
  color: var(--brass-600);
}

.course-card__body p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  flex: 1;
}

.course-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-card__chips span,
.course-card__chips a {
  padding: 0.1875rem 0.5625rem;
  font-size: var(--fs-xs);
  color: var(--gray-600);
  background: var(--gray-50);
  border-radius: var(--r-sm);
  text-decoration: none;
}

.course-card__chips a:hover {
  color: var(--navy-800);
  background: var(--brass-100);
}

.course-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.course-card__foot .meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
}

.course-card__foot svg {
  width: 16px;
  height: 16px;
  color: var(--brass-500);
}

/* ---------- ۵. اساتید ---------- */
.teachers__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.teachers__head .section-head {
  margin-bottom: 0;
}

.teacher-card {
  display: flex;
  flex-direction: column;
  width: 272px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition:
    transform var(--t) var(--ease-out),
    box-shadow var(--t) var(--ease);
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.teacher-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}

.teacher-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.teacher-card:hover .teacher-card__media img {
  transform: scale(1.06);
}

.teacher-card__instrument {
  position: absolute;
  bottom: var(--sp-3);
  inset-inline-start: var(--sp-3);
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(4, 16, 31, 0.72);
  color: var(--white);
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}

.teacher-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}

.teacher-card__body h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-1);
}

.teacher-card__degree {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.teacher-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.teacher-card__foot .years {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teacher-card__foot svg {
  width: 16px;
  height: 16px;
  color: var(--brass-500);
}

.teacher-card__socials {
  display: flex;
  gap: 4px;
}

.teacher-card__socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--gray-500);
  transition: all var(--t-fast) var(--ease);
}

.teacher-card__socials a:hover {
  background: var(--navy-700);
  color: var(--white);
}

.teacher-card__socials svg {
  width: 14px;
  height: 14px;
  color: inherit;
}

/* دکمه‌ی پایانی یک بخش، وسط‌چین */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

/* ---------- ۶. چرا رازان ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.feature {
  padding: var(--sp-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  transition: all var(--t) var(--ease-out);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(224, 167, 94, 0.35);
  transform: translateY(-5px);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(224, 167, 94, 0.13);
  color: var(--brass-400);
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-3);
}

.feature p {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- ۷. آمار / شمارنده ---------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.stat {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t) var(--ease-out);
}

.stat:hover {
  border-color: var(--brass-300);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-700);
}

.stat__icon svg {
  width: 24px;
  height: 24px;
}

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy-800);
}

.stat__num small {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--brass-500);
}

.stat__label {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- ۸. ویدیو / تور آموزشگاه ---------- */
.tour__inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 45vw, 480px);
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--navy-900);
}

.tour__inner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.tour__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 16, 31, 0.85) 0%,
    rgba(4, 16, 31, 0.35) 60%,
    rgba(4, 16, 31, 0.2) 100%
  );
}

.tour__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--white);
  max-width: 620px;
}

.tour__content h2 {
  color: var(--white);
}

.tour__content p {
  color: rgba(255, 255, 255, 0.72);
}

.tour__meta {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
}

.tour__meta li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.tour__meta svg {
  width: 17px;
  height: 17px;
  color: var(--brass-400);
}

/* ---------- ۹. نظرات هنرجویان ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  width: 380px;
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.testimonial__quote {
  position: relative;
  flex: 1;
  font-size: var(--fs-base);
  color: var(--gray-700);
  line-height: var(--lh-normal);
}

.testimonial__mark {
  width: 34px;
  height: 34px;
  color: var(--brass-300);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.testimonial__author b {
  display: block;
  font-size: var(--fs-base);
}

.testimonial__author span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.testimonial__author .stars {
  position: relative;
  display: inline-flex;
  margin-inline-start: auto;
  color: var(--brass-500);
  flex: none;
}

.testimonial__author .stars span {
  font-size: inherit;
  color: inherit;
}

.testimonial__author .stars .icon {
  color: inherit;
}

.testimonial__author .stars__row {
  display: inline-flex;
  gap: 2px;
}

.testimonial__author .stars__row--base,
.testimonial__author .stars__row--base .icon {
  color: var(--gray-300);
}

.testimonial__author .stars__fill {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--stars-fill, 100%);
  overflow: hidden;
  color: var(--brass-500);
}

.testimonial__author .stars__fill .stars__row,
.testimonial__author .stars__fill .icon {
  color: var(--brass-500);
}

@media (max-width: 520px) {
  .testimonial {
    width: 82vw;
  }
}

/* ---------- ۱۰. گالری ---------- */
/* موبایل‌اول: شبکه‌ی ساده‌ی دو ستونه */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 42vw;
  gap: var(--sp-4);
}

/* از تبلت به بالا: چیدمان قطعی با grid-template-areas تا هیچ سلول خالی
   و ردیف ناقصی باقی نماند. در RTL ستون اول (g1) سمت راست قرار می‌گیرد. */
@media (min-width: 761px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, clamp(130px, 13vw, 178px));
    grid-auto-rows: auto;
    grid-template-areas:
      'g1 g2 g2 g3'
      'g1 g4 g5 gm';
  }

  .gallery__grid > :nth-child(1) {
    grid-area: g1;
  }
  .gallery__grid > :nth-child(2) {
    grid-area: g2;
  }
  .gallery__grid > :nth-child(3) {
    grid-area: g3;
  }
  .gallery__grid > :nth-child(4) {
    grid-area: g4;
  }
  .gallery__grid > :nth-child(5) {
    grid-area: g5;
  }
  .gallery__grid > :nth-child(6) {
    grid-area: gm;
  }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--gray-100);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 46, 90, 0.72));
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  pointer-events: none;
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .gallery__item::after {
    opacity: 1;
  }

  .gallery__caption {
    opacity: 1;
    transform: none;
  }
}

.gallery__more {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-2);
  background: var(--navy-700);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: background-color var(--t) var(--ease);
}

.gallery__more:hover {
  background: var(--navy-600);
}

.gallery__more svg {
  width: 26px;
  height: 26px;
  color: var(--brass-400);
}


/* ---------- ۱۱. مراحل ثبت‌نام ---------- */
.steps__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* خط اتصال بین مراحل */
.steps__grid::before {
  content: '';
  position: absolute;
  top: 32px;
  inset-inline: 14%;
  height: 2px;
  background-image: linear-gradient(
    to left,
    var(--gray-200) 0 8px,
    transparent 8px 16px
  );
  background-size: 16px 2px;
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.step__num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--sp-3);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-100);
  color: var(--navy-700);
  font-size: var(--fs-xl);
  font-weight: 800;
  box-shadow: var(--sh-sm);
  transition: all var(--t) var(--ease-out);
}

.step:hover .step__num {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--brass-400);
  transform: scale(1.06);
}

.step h3 {
  font-size: var(--fs-md);
}

.step p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 30ch;
}

@media (max-width: 760px) {
  .steps__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .steps__grid::before {
    display: none;
  }
}

/* ---------- ۱۲. سوالات متداول ---------- */
.faq__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
  padding: var(--sp-6);
  background: var(--navy-700);
  color: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.faq__aside h3 {
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.faq__aside p {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-6);
  text-align: justify;
}

.faq__aside .btn + .btn {
  margin-top: var(--sp-3);
}

.faq__aside-contact {
  display: grid;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  margin-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq__aside-contact li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-base);
}

.faq__aside-contact svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--brass-400);
}

@media (max-width: 900px) {
  .faq__inner {
    grid-template-columns: 1fr;
  }
  .faq__aside {
    position: static;
  }
}

/* ---------- ۱۳. فرم مشاوره ---------- */
.consult__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.consult__form {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}

.consult__form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.consult__form-grid .field--full {
  grid-column: 1 / -1;
}

/* فیلد عسل از دید کاربر پنهان است؛ ربات‌ها معمولاً آن را پر می‌کنند */
.consult__hp,
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.captcha__image {
  flex: none;
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
}

.captcha .input {
  max-width: 9rem;
}

.consult__form .btn {
  margin-top: var(--sp-5);
}

.consult__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}

.consult__bullets {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.consult__bullets li {
  display: flex;
  gap: var(--sp-4);
}

.consult__bullets .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brass-600);
}

.consult__bullets .ico svg {
  width: 22px;
  height: 22px;
}

.consult__bullets b {
  display: block;
  margin-bottom: 2px;
  font-size: var(--fs-base);
}

.consult__bullets span {
  font-size: var(--fs-base);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .consult__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .consult__form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- ۱۴. اخبار و مقالات ---------- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--sp-5);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    transform var(--t) var(--ease-out),
    box-shadow var(--t) var(--ease);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.06);
}

.post-card__cat {
  position: absolute;
  top: var(--sp-3);
  inset-inline-start: var(--sp-3);
  padding: 0.25rem 0.6875rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--brass-400);
  color: var(--navy-950);
  border-radius: var(--r-full);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
  padding: var(--sp-5);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.post-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-card__meta svg {
  width: 14px;
  height: 14px;
  color: var(--brass-500);
}

.post-card__body h3 {
  font-size: var(--fs-md);
  line-height: 1.55;
}

.post-card__body h3 a:hover {
  color: var(--navy-700);
}

.post-card__body p {
  flex: 1;
  font-size: var(--fs-base);
  color: var(--text-muted);
}
