/* ==========================================================================
   اتوگالری کریمی — استایل اصلی
   برای تغییر رنگ‌ها و برند، فقط بخش :root پایین را ویرایش کنید.
   ========================================================================== */

/* فونت وزیرمتن — روی خودِ سایت میزبانی می‌شود (سریع‌تر و بدون وابستگی به گوگل) */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); }

:root {
  /* --- رنگ‌های اصلی برند (برای تغییر برند اینجا را عوض کنید) --- */
  --bg:            #0d0f12;   /* پس‌زمینه اصلی سایت */
  --bg-elevated:   #15181d;   /* پس‌زمینه کارت‌ها و بخش‌ها */
  --bg-elevated-2: #1c2027;   /* پس‌زمینه روی حالت هاور */
  --border:        #262b33;   /* رنگ خطوط و حاشیه‌ها */

  --text:          #f2f4f7;   /* رنگ متن اصلی */
  --text-muted:    #9aa3b0;   /* رنگ متن کم‌رنگ */

  --accent:        #c7ccd4;   /* رنگ نقره‌ای/کروم برند (دکمه‌ها، تاکیدها) */
  --accent-hover:  #e2e6ec;   /* نقره‌ای روشن‌تر برای هاور */
  --accent-text:   #0d0f12;   /* رنگ متن روی دکمه‌های نقره‌ای */
  --chrome-1:      #f2f4f7;   /* روشن‌ترین نقطه گرادیان کروم */
  --chrome-2:      #b9bfc8;   /* میانه کروم */
  --chrome-3:      #8b929c;   /* تیره‌ترین نقطه کروم */

  /* --- طلاییِ محو (فقط برای قیمت و دکمه‌ی اصلی) --- */
  --gold:          #d4b26a;   /* طلایی ملایم */
  --gold-hover:    #e3c684;   /* طلایی روشن‌تر برای هاور */
  --gold-text:     #1a1509;   /* متن تیره روی دکمه‌ی طلایی */

  /* --- رنگ وضعیت --- */
  --status-available: #22c55e; /* موجود — سبز */

  /* --- اندازه‌ها و فاصله‌ها --- */
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1200px;
  --shadow:      0 10px 30px rgba(0, 0, 0, 0.45);
  --contact-bar-h: 68px;
}

/* --------------------------------- پایه --------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  padding-bottom: calc(var(--contact-bar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* جلوگیری از اسکرول افقی ناخواسته */
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* --------------------------------- هدر --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0f1216;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.brand__sub  { font-size: 12px; color: var(--text-muted); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.header-call:hover { border-color: var(--accent); background: var(--bg-elevated); }
.header-call svg { width: 18px; height: 18px; }

/* ------------------------- بنر اسلایدشو (بالای صفحه) ------------------------- */
.hero-banner {
  position: relative;
  margin: 18px 0 6px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.hb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hb-slide.is-active { opacity: 1; }
.hb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner__dots {
  position: absolute;
  bottom: 12px;
  inset-inline: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}
.hb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
.hb-dot.is-active { background: #fff; width: 22px; border-radius: 4px; }
@media (max-width: 640px) { .hero-banner { aspect-ratio: 16 / 9; margin-top: 12px; } }

/* --------------------------------- هیرو --------------------------------- */
.hero {
  padding: 52px 0 30px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(27px, 6.4vw, 47px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}
.hero p {
  color: var(--text-muted);
  font-size: clamp(15px, 3.6vw, 18px);
  line-height: 1.9;
  max-width: 580px;
  margin: 0 auto;
}

/* ------------------------------- فیلترها ------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 24px 0 8px;
  position: sticky;
  top: 68px;
  z-index: 40;
  background: var(--bg);
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.is-active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* -------------------------------- گرید -------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  padding: 24px 0 12px;
  align-items: start; /* هر کارت به‌اندازه‌ی محتوای خودش، بدون کشیده‌شدن و فاصله‌ی خالی */
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 16px;
  grid-column: 1 / -1;
}

/* سرتیتر هر بخش (موجودی / پیش‌فروش) */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 44px 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-size: clamp(20px, 4.6vw, 27px);
  font-weight: 800;
  position: relative;
  padding-inline-start: 16px;
}
/* نوار رنگی کنار عنوانِ هر بخش برای تفکیک بهتر دسته‌ها */
.section-head h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 0.95em;
  border-radius: 3px;
  background: var(--accent);
}
.section-head--national h2::before { background: #22c55e; }
.section-head--freezone h2::before { background: #3b82f6; }
.section-head--presale  h2::before { background: var(--chrome-2); }
.section-head span { color: var(--text-muted); font-size: 14px; }

/* خلاصه متن پیش‌فروش روی کارت */
.card__snippet {
  color: var(--text-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* دکمه‌های CTA زیر هیرو */
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero__cta .btn { min-width: 220px; }

/* انیمیشن جلب‌توجه برای دکمه اصلی */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 204, 212, 0.45); }
  50%      { box-shadow: 0 0 0 14px rgba(199, 204, 212, 0); }
}
.btn--pulse { animation: ctaPulse 2.2s infinite; }
@media (prefers-reduced-motion: reduce) { .btn--pulse { animation: none; } }

/* نوار ابزار و کلید کارت/لیست */
.toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 0;
}
.view-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.view-btn svg { width: 17px; height: 17px; }
.view-btn.is-active { background: var(--accent); color: var(--accent-text); }

/* حالت لیست (بدون عکس) */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 12px;
}
/* ردیف لیست: نام + تگ‌ها، بعد مشخصات که فضای وسط را پر می‌کند، بعد قیمت */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.row:hover {
  border-color: var(--accent);
  background: var(--bg-elevated-2);
  transform: translateX(-3px);
}
.row__name {
  flex: none;
  max-width: 45%;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__specs {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__price { flex: none; font-weight: 800; color: var(--gold); white-space: nowrap; }
.row__price.is-call { color: var(--text-muted); font-size: 14px; font-weight: 700; }
.row__go { flex: none; color: var(--text-muted); font-size: 13px; white-space: nowrap; }
/* تگ‌ها داخل ردیف لیست، جریانی (نه مطلق) */
.row .badge { position: static; top: auto; inset-inline: auto; flex: none; }

/* موبایل: نام و قیمت در یک خط، مشخصات در خط دوم */
@media (max-width: 560px) {
  .row { flex-wrap: wrap; row-gap: 6px; padding: 13px 14px; }
  .row__name { flex: 1 1 auto; max-width: none; }
  .row__price { order: 2; margin-inline-start: auto; }
  .row__specs { order: 3; flex-basis: 100%; }
  .row__go { display: none; }
  .row .badge { order: 1; }
}

/* -------------------------------- کارت -------------------------------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card.is-sold { opacity: 0.62; }
.card.is-sold:hover { opacity: 0.85; }

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-elevated-2);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  inline-size: max-content;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.badge--available { background: rgba(34, 197, 94, 0.9); }
.badge--presale {
  background: linear-gradient(135deg, var(--chrome-1), var(--chrome-3));
  color: #14171b;
}
/* تگ قرمز «به تعداد موجود» */
.badge--bulk { background: #dc2626; color: #fff; }
/* روی کارت، این تگ گوشه‌ی مقابلِ تگ وضعیت می‌نشیند */
.card__media .badge--bulk { inset-inline-start: auto; inset-inline-end: 12px; }
/* تگ آبی «منطقه آزاد» (در صورت استفاده) */
.badge--freezone { background: rgba(59, 130, 246, 0.95); color: #fff; }

.card__body { padding: 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
/* عنوان تا ۲ خط (بدون ارتفاع رزروشده تا فاصله‌ی خالی نیفتد) */
.card__title {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* مشخصات در یک خط، درست زیر عنوان و فشرده */
.card__meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13.5px;
}
.card__meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.card__footer {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__price { font-size: 17px; font-weight: 800; color: var(--gold); }
.card__price.is-call { font-size: 14px; color: var(--text-muted); font-weight: 700; }
.card__link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.card:hover .card__link { color: var(--accent); }

/* ============================ صفحه جزئیات ============================ */
.detail {
  padding: 24px 0 40px;
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 4px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* گالری */
.gallery { position: relative; }
.gallery__main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  width: 100%;
  height: 100%;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery__thumb {
  flex: 0 0 78px;
  height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery__thumb.is-active { opacity: 1; border-color: var(--accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* اطلاعات */
.detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail__title { font-size: clamp(22px, 5vw, 30px); font-weight: 800; line-height: 1.35; }
.detail__price { font-size: 26px; font-weight: 800; color: var(--gold); margin-top: 8px; }
.detail__price.is-call { font-size: 18px; color: var(--text-muted); }

.badge--static { position: static; margin-top: 6px; }

.specs {
  list-style: none;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  font-size: 15px;
}
.specs li:nth-child(odd) { background: var(--bg-elevated); }
.specs li .k { color: var(--text-muted); }
.specs li .v { font-weight: 600; }

.presale {
  margin-top: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}
.presale h2 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.presale p { color: var(--text); white-space: pre-line; font-size: 15px; line-height: 2; }

.detail-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn--primary { background: var(--gold); color: var(--gold-text); flex: 1; min-width: 200px; }
.btn--primary:hover { background: var(--gold-hover); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }

/* دکمه واتساپ */
.btn--wa { background: #25d366; color: #fff; flex: 1; min-width: 180px; }
.btn--wa:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ---------------------------- نوار تماس ثابت ---------------------------- */
.contact-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: #14171b;
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.contact-bar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-bar__text { flex: 1; min-width: 0; }
.contact-bar__text strong { display: block; font-size: 14px; }
.contact-bar__text span { font-size: 12px; color: var(--text-muted); }
.contact-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.contact-bar__btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.contact-bar__btn svg { width: 19px; height: 19px; }
.contact-bar__btn--wa { background: #25d366; color: #fff; }
.contact-bar__btn--wa:hover { background: #1ebe5b; }

/* روی موبایل: متن مخفی، دو دکمه کنار هم و تمام‌عرض */
@media (max-width: 560px) {
  .contact-bar__text { display: none; }
  .contact-bar__btn { flex: 1; padding: 13px 12px; }
}

/* --------------------- بخش «خودروی خود را بفروشید» --------------------- */
.sell-cta {
  margin: 56px 0 8px;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(199, 204, 212, 0.14), transparent 60%),
    linear-gradient(135deg, #1a1e24, #101317);
  border: 1px solid var(--border);
}
.sell-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--chrome-1), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.sell-cta__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.sell-cta h2 {
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
}
.sell-cta p {
  color: var(--text-muted);
  font-size: clamp(14px, 3.5vw, 16px);
  max-width: 560px;
  margin: 0 auto 22px;
}
.sell-cta .btn { position: relative; z-index: 1; }
.sell-cta__btn {
  background: linear-gradient(135deg, var(--chrome-1), var(--chrome-3));
  color: #14171b;
}
.sell-cta__btn:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* ---------------------- فرم درخواست خریدار ---------------------- */
.lead {
  margin: 56px 0 8px;
  display: grid;
  gap: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
}
@media (min-width: 820px) {
  .lead { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; }
}
.lead__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.lead__intro h2 { font-size: clamp(20px, 4.5vw, 28px); font-weight: 800; line-height: 1.45; margin-bottom: 10px; }
.lead__intro p { color: var(--text-muted); font-size: 15px; line-height: 1.9; }
.lead__perks { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lead__perks li { color: var(--text); font-size: 14px; }

.lead__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--text-muted); }
.field label span { color: #e5484d; }
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 76px; }
.lead__submit { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.lead__success, .lead__error { grid-column: 1 / -1; text-align: center; font-weight: 600; font-size: 14px; }
.lead__success { color: #22c55e; }
.lead__error { color: #e5484d; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .lead__form { grid-template-columns: 1fr; } .lead { padding: 26px 18px; } }

/* دکمه‌ی ثانویه (واضح‌تر از حالت خطیِ ساده) و تمام‌عرض */
.btn--ghost { background: var(--bg-elevated-2); border: 1px solid var(--accent); color: var(--text); }
.btn--ghost:hover { background: var(--accent); color: var(--accent-text); transform: translateY(-2px); }
.btn--block { flex-basis: 100%; width: 100%; }

/* ---------------------- اسکلت لودینگ ---------------------- */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  padding: 24px 0 12px;
}
.skel-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skel {
  background: linear-gradient(90deg, var(--bg-elevated-2) 25%, #2c323c 37%, var(--bg-elevated-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.skel-media { aspect-ratio: 3 / 2; border-radius: 0; }
.skel-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.skel-line { height: 14px; }
.skel-line.w70 { width: 70%; }
.skel-line.w45 { width: 45%; }
.skel-line.w60 { width: 60%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------------------- بخش اعتمادسازی ---------------------- */
.trust { margin: 52px 0 8px; padding-top: 48px; border-top: 1px solid var(--border); }
.trust__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 28px; }
.stat {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
}
.stat strong { display: block; font-size: clamp(26px, 5.2vw, 38px); font-weight: 800; color: var(--gold); }
.stat span { color: var(--text-muted); font-size: 13.5px; }

.trust__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.tpoint {
  display: flex;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.tpoint__ico { font-size: 26px; flex: none; line-height: 1.2; }
.tpoint strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.tpoint p { color: var(--text-muted); font-size: 13.5px; line-height: 1.8; }

.trust__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust__gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 620px) {
  .stat { padding: 16px 8px; }
  .trust__gallery { grid-template-columns: 1fr; }
}

/* ---------------- میکرو-انیمیشن: ظاهرشدن نرم هنگام اسکرول ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------------- گالری تمام‌صفحه (lightbox) ---------------- */
.gallery__slide img { cursor: zoom-in; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 8, 10, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lb__track::-webkit-scrollbar { display: none; }
.lb__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb__slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb__close, .lb__nav {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb__close { top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; font-size: 22px; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.lb__prev { inset-inline-end: 14px; }
.lb__next { inset-inline-start: 14px; }
.lb__count { position: absolute; bottom: 20px; inset-inline: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 600; z-index: 2; }
@media (max-width: 640px) { .lb__nav { display: none; } }

/* ---------------------- بنر دعوت به مشاوره (صفحه‌ی اصلی) ---------------------- */
.cta-banner {
  margin: 56px 0 8px;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, rgba(212, 178, 106, 0.1), transparent 55%), var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-banner__text { flex: 1; min-width: 240px; }
.cta-banner__text h2 { font-size: clamp(19px, 4vw, 25px); font-weight: 800; line-height: 1.5; margin: 6px 0; }
.cta-banner__text p { color: var(--text-muted); font-size: 14.5px; }
.cta-banner__btn { flex: none; min-width: 220px; }
@media (max-width: 560px) { .cta-banner__btn { width: 100%; } }

/* ---------------------- ویجت شناور مشاوره ---------------------- */
.float-cta {
  position: fixed;
  inset-inline-start: 16px;
  bottom: calc(var(--contact-bar-h) + 16px + env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-text);
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.float-cta.is-shown { transform: translateY(0); opacity: 1; pointer-events: auto; animation: floatpulse 2.4s ease-in-out infinite; }
.float-cta:hover { background: var(--gold-hover); }
.float-cta svg { width: 19px; height: 19px; }
@keyframes floatpulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(212, 178, 106, 0.5); }
  50% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(212, 178, 106, 0); }
}
@media (prefers-reduced-motion: reduce) { .float-cta.is-shown { animation: none; } }

/* ---------------------- صفحه‌ی فرم مشاوره ---------------------- */
.contact-page {
  max-width: 620px;
  margin: 8px auto 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.contact-page__head { margin-bottom: 22px; text-align: center; }
.contact-page__head h1 { font-size: clamp(22px, 5vw, 30px); font-weight: 800; margin: 8px 0 10px; }
.contact-page__head p { color: var(--text-muted); font-size: 15px; line-height: 1.9; }
.contact-page .lead__perks { justify-content: center; margin-top: 14px; }

/* ---------------------- صفحه‌ی لینک‌ها (Linktree) ---------------------- */
.links-body { padding-bottom: 40px; }
.linktree { max-width: 480px; margin: 0 auto; padding: 48px 20px 40px; text-align: center; }
.linktree__logo {
  width: 88px; height: 88px; border-radius: 22px;
  background: #fff; padding: 8px; margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.linktree__name { font-size: 26px; font-weight: 800; }
.linktree__sub { color: var(--text-muted); font-size: 14.5px; margin: 6px 0 26px; }
.linktree__links { display: flex; flex-direction: column; gap: 13px; }
.ltbtn {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 14px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.ltbtn:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--bg-elevated-2); }
.ltbtn__ico { width: 26px; display: inline-flex; justify-content: center; align-items: center; font-size: 20px; flex: none; }
.ltbtn--primary { background: var(--gold); color: var(--gold-text); border-color: transparent; }
.ltbtn--primary:hover { background: var(--gold-hover); }
.ltbtn--wa .ltbtn__ico { color: #25d366; }
.linktree__addr { color: var(--text-muted); font-size: 13px; margin-top: 26px; line-height: 1.8; }

/* --------------------------------- فوتر --------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 20px;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: right; }
}
.footer-col h3 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
}
@media (min-width: 720px) { .footer-col h3 { justify-content: flex-start; } }
.footer-col p, .footer-col a { color: var(--text-muted); line-height: 1.9; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.footer-insta svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
}
.site-footer a.accent { color: var(--accent); }

/* ------------------------------- ریسپانسیو ------------------------------- */
@media (max-width: 520px) {
  .brand__sub { display: none; }
  .header-call span { display: none; }
  .header-call { padding: 9px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
}
