/* ============================================================
   آتی دُر — atd-page.css
   نسخه: 3.1 (جایگزین atd-home.css + atd-rail.css)
   محل: wp-content/themes/flatsome-child/css/atd-page.css
   بارگذاری: صفحه اصلی + همه برگه‌ها + نوشته‌ها
   پیش‌نیاز: atd-core.css  (توکن‌ها و کامپوننت‌های مشترک)
   ------------------------------------------------------------
   این فایل «کامپوننت‌های صفحه‌های محتوایی» است، نه استایل یک
   صفحه خاص. هر لندینگ جدید (درب ضدسرقت، درب اتوماتیک، ...)
   از همین کلاس‌ها ساخته می‌شود؛ فایل جدید لازم نیست.

   قانون: هیچ :root در این فایل تعریف نمی‌شود.

   تغییرات نسخه 3.1 (هیچ چیزی حذف نشده):
     • بخش ۰  — سلکتور آفست لنگر عمومی شد (h2[id] به جای h2[id^="atd-"])
     • بخش ۱  — margin تیترها اصلاح شد تا به دیوایدر بچسبند
     • بخش ۷  — .atd-btn-group اضافه شد (فاصله دکمه‌های کنار هم)
     • بخش ۱۰ — .atd-links اضافه شد (چیپ لینک داخلی هم‌عرض)
     • بخش ۱۱ — .atd-spec-list و .atd-dl اضافه شد
     • بخش ۱۶ — قواعد موبایل و موشن این کامپوننت‌ها اضافه شد

   فهرست:
     ۰) گاردهای تداخل و سازگاری با نسخه قبل
     ۱) تایپوگرافی صفحه‌های محتوایی
     ۲) هیرو/اسلایدر صفحه اصلی
     ۳) نوار دسترسی سریع (صفحه اصلی)
     ۴) نوار و شمارنده اعتماد
     ۵) سکشن سرمه‌ای — ویدیو و H1
     ۶) هیرو لندینگ و باکس CTA
     ۷) دکمه‌های لندینگ
     ۸) فهرست مطالب
     ۹) ویدیو و کپشن
    ۱۰) کارت‌های دسته‌بندی لندینگ و لینک داخلی
    ۱۱) کارت قیمت، باکس نکته، چک‌لیست، مزایا، مشخصات، دانلود
    ۱۲) تایم‌لاین مراحل
    ۱۳) سوالات متداول
    ۱۴) مطالب مرتبط
    ۱۵) فرم مشاوره
    ۱۶) دسترس‌پذیری، موشن، موبایل
   ============================================================ */


/* ════════════════════════════════════════════════════════════
   ۰) گاردهای تداخل و سازگاری با نسخه قبل
   ------------------------------------------------------------
   در نسخه قدیم، atd-rail.css فقط روی برگه «درب ریلی» لود می‌شد و
   چند مقدار را کمی متفاوت از core داشت. برای اینکه ظاهر آن برگه
   دقیقاً همان بماند، همان مقادیر را فقط بیرونِ صفحه اصلی برمی‌گردانیم.
   وقتی تصمیم گرفتید ظاهر را یکدست کنید، کل این بلوک حذف می‌شود.
   ════════════════════════════════════════════════════════════ */

body:not(.home) .atd-eyebrow,
body:not(.home) .atd-eyebrow-top { font-size: .8rem; margin-bottom: 14px; }

body:not(.home) .atd-mark {
  background: linear-gradient(transparent 62%, rgba(244,112,12,.28) 62%);
}

html { scroll-behavior: smooth; }

/* ⚠ اصلاح نسخه 3.1:
   قبلاً فقط h2[id^="atd-"] بود، اما لنگرهای برگه‌ها با نام‌های
   کوتاه ساخته می‌شوند (shishe، parking، hospital، ...) و آفست
   نمی‌گرفتند؛ یعنی زیر هدر چسبان پنهان می‌شدند. */
h2[id],
h3[id],
.atd-faq[id] { scroll-margin-top: 110px; }


/* ════════════════════════════════════════════════════════════
   ۱) تایپوگرافی صفحه‌های محتوایی
   ------------------------------------------------------------
   تداخل حل‌شده: در صفحه اصلی، H1 داخل سکشن سرمه‌ای قواعد خودش
   را دارد (بخش ۵). برای همین این بلوک با body:not(.home) محدود شده.

   اصلاح نسخه 3.1: margin پایین تیترها کم شد تا دیوایدرِ زیرشان
   بچسبد و «جدا افتاده» به نظر نرسد.
   ════════════════════════════════════════════════════════════ */

body:not(.home) .atd-h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--atd-ink);
  line-height: 1.55;
  margin-bottom: 4px;
  max-width: 860px;
  margin-inline: auto;
}
body:not(.home) .atd-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--atd-ink);
  line-height: 1.7;
  margin: 0 0 4px;
}
body:not(.home) .atd-h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--atd-ink);
  margin: 0 0 4px;
}
.atd-h3 a {
  color: var(--atd-blue-deep);
  text-decoration: none;
  background: linear-gradient(transparent 70%, rgba(26,95,208,.18) 70%);
  transition: color .2s ease;
}
.atd-h3 a:hover { color: var(--atd-blue); }

body:not(.home) .atd-hero-sub {
  font-size: 1.02rem;
  color: var(--atd-gray);
  max-width: 700px;
  margin: 0 auto 8px;
  line-height: 2.1;
}


/* ════════════════════════════════════════════════════════════
   ۲) هیرو / اسلایدر بنر صفحه اصلی
   ════════════════════════════════════════════════════════════ */

/* نمایش اسلایدر بر اساس دستگاه */
.atd-hero-m { display: none; }
@media (max-width: 849px) {
  .atd-hero-d { display: none; }
  .atd-hero-m { display: block; }
}

.atd-hero-sec .section-content { padding: 0 !important; }
.atd-hero .banner-layers,
.atd-hero .text-box,
.atd-hero .banner-inner { pointer-events: none; }
.atd-hero .atd-slide a.banner-link { display: block; pointer-events: auto; }

/* حذف قطعی زوم سینمایی / پارالاکس روی بنر */
.atd-hero .bg,
.atd-hero .bg-image,
.atd-hero .banner .bg,
.atd-hero .flickity-slider .bg,
.atd-hero .flickity-slider .is-selected .bg,
.atd-hero-sec .bg,
.atd-hero-sec .banner .bg {
  animation: none !important;
  -webkit-animation: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  will-change: auto !important;
}
.atd-hero .has-hover:hover .bg,
.atd-hero .bg.bg-zoom,
.atd-hero .zoom .bg { transform: none !important; animation: none !important; }

/* بولت‌ها: خط + نوار پیشرفت نارنجی */
.atd-hero .flickity-page-dots {
  bottom: 18px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 1;
}
.atd-hero .flickity-page-dots .dot {
  flex: 0 0 auto;
  margin: 0;
  width: 26px; height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.35);
  border: 0; opacity: 1;
  transition: width .3s ease;
  position: relative; overflow: hidden;
}
.atd-hero .flickity-page-dots .dot.is-selected {
  width: 52px;
  background: rgba(255,255,255,.35);
}
.atd-hero .flickity-page-dots .dot.is-selected::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--atd-orange);
  border-radius: 4px;
  transform-origin: right;
  animation: atd-prog 6s linear forwards;
}
@keyframes atd-prog {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* فلش‌های شیشه‌ای */
.atd-hero .flickity-prev-next-button {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.atd-hero .flickity-prev-next-button:hover {
  background: rgba(244,112,12,.88);
  border-color: transparent;
}
.atd-hero .flickity-prev-next-button svg { fill: #fff; }


/* ════════════════════════════════════════════════════════════
   ۳) نوار دسترسی سریع (صفحه اصلی)
   ════════════════════════════════════════════════════════════ */

.atd-quick-sec .section-content { padding: 0 !important; }
.atd-quick {
  background: var(--atd-blue-deep);
  padding: 11px 20px;
  text-align: center;
}
.atd-quick a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #eaf2fc;
  font-size: .85em;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: .2s;
  margin: 2px;
}
.atd-quick a::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--atd-orange);
}
.atd-quick a:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}


/* ════════════════════════════════════════════════════════════
   ۴) نوار اعتماد (خانه) و شمارنده اعتماد (لندینگ)
   دو نام قدیمی، یک کامپوننت. هر دو حفظ شده‌اند.
   ════════════════════════════════════════════════════════════ */

/* --- نسخه صفحه اصلی: داخل ستون‌های فلت‌سام --- */
.atd-trust-sec { border-bottom: 1px solid var(--atd-line); }
.atd-trust .col { padding-bottom: 0; }
.atd-tbox { position: relative; padding: 8px 0; }
.atd-trust .col + .col .atd-tbox::before {
  content: "";
  position: absolute;
  right: -15px; top: 24%; bottom: 24%;
  width: 1px;
  background: var(--atd-line);
}
.atd-tnum {
  display: block;
  font-size: 1.9em;
  font-weight: 900;
  color: var(--atd-blue-deep);
  line-height: 1.3;
}
.atd-tlabel {
  font-size: .88em;
  color: var(--atd-gray);
  font-weight: 600;
}

/* --- نسخه لندینگ: فلکس مستقل --- */
.atd-trust-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  border-block: 1px solid var(--atd-line);
}
.atd-trust-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 48px;
  position: relative;
}
.atd-trust-box + .atd-trust-box::before {
  content: "";
  position: absolute;
  right: 0; top: 24%; bottom: 24%;
  width: 1px;
  background: var(--atd-line);
}
.atd-trust-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--atd-blue-deep);
  line-height: 1.2;
}
.atd-trust-label {
  font-size: .88rem;
  color: var(--atd-gray);
  font-weight: 600;
}

/* خط زیر عدد — مشترک بین هر دو نسخه */
.atd-tnum::after,
.atd-trust-num::after {
  content: "";
  display: block;
  width: 26px; height: 3px;
  margin: 6px auto 0;
  border-radius: 3px;
  background: var(--atd-orange);
}


/* ════════════════════════════════════════════════════════════
   ۵) سکشن سرمه‌ای — اصلاح ویدیو و H1 صفحه اصلی
   (خودِ .atd-navy در atd-core.css است)
   ════════════════════════════════════════════════════════════ */

.atd-navy .video-fluid-width,
.atd-navy .video,
.atd-navy .video-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.atd-navy video,
.atd-navy .html5-video,
.atd-navy .video-fluid-width video,
.atd-navy iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh-lg);
}
.atd-navy .col > .col-inner > *:last-child { margin-bottom: 0 !important; }

/* اختیاری — قاب ویدئو همیشه دقیقاً ۱۶:۹:
.atd-navy video { aspect-ratio: 16 / 9; object-fit: cover; }
*/

/* H1 داخل سکشن سرمه‌ای — بعد از بلوک تایپوگرافی می‌آید تا برنده شود */
.atd-navy h1.atd-h1 {
  color: #fff;
  font-size: 2.1em;
  line-height: 1.55;
  font-weight: 800;
  margin-bottom: 6px;
  max-width: none;
}
@media (max-width: 849px) {
  .atd-navy h1.atd-h1 { font-size: 1.5em; line-height: 1.7; }
}


/* ════════════════════════════════════════════════════════════
   ۶) هیرو لندینگ و باکس CTA
   ------------------------------------------------------------
   تداخل حل‌شده: کلاس .atd-hero در صفحه اصلی روی اسلایدر بنر است.
   پس‌زمینه راه‌راه فقط بیرون صفحه اصلی اعمال می‌شود.
   ════════════════════════════════════════════════════════════ */

body:not(.home) .atd-hero {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(26, 95, 208, .045) 0 1px,
    transparent 1px 140px
  );
}

.atd-cta-box {
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh);
  position: relative;
  overflow: hidden;
}
.atd-cta-box::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--atd-blue) 0 68%, var(--atd-orange) 68%);
}
.atd-cta-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--atd-ink);
  margin-bottom: 18px;
}


/* ════════════════════════════════════════════════════════════
   ۷) دکمه‌های لندینگ
   ------------------------------------------------------------
   تداخل حل‌شده: .atd-btn در کارت محصول هم استفاده می‌شود
   (.atd-cta .atd-btn در core). این قواعد فقط دکمه‌هایی را
   می‌گیرند که کلاس .button فلت‌سام دارند و بیرون .atd-cta هستند؛
   گاردِ hover هم در core گذاشته شده.
   ════════════════════════════════════════════════════════════ */

.atd-btn.button {
  border-radius: 12px !important;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.atd-btn-primary.button {
  background: linear-gradient(135deg, var(--atd-blue) 0%, var(--atd-blue-deep) 100%) !important;
  box-shadow: 0 8px 22px rgba(26, 95, 208, .32);
}
.atd-btn-outline.button {
  background: #fff !important;
  color: var(--atd-orange-deep) !important;
  border: 2px solid var(--atd-orange) !important;
  box-shadow: none;
}
.atd-btn.button:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---------- گروه دکمه‌های کنار هم (نسخه 3.1) ----------
   جایگزین [row_inner style="collapse"] که گاتر ستون‌ها را حذف
   می‌کرد و دکمه‌ها را به هم می‌چسباند. */
.atd-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 4px;
}
.atd-btn-group .button {
  margin: 0 !important;
  min-width: 230px;
  justify-content: center;
}


/* ════════════════════════════════════════════════════════════
   ۸) فهرست مطالب
   ════════════════════════════════════════════════════════════ */

.atd-toc {
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh);
  padding: 26px 32px;
  max-width: 840px;
  margin: 0 auto;
}
.atd-toc-title {
  font-weight: 900;
  color: var(--atd-ink);
  font-size: 1.02rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.atd-toc-title::before {
  content: "";
  width: 20px; height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--atd-blue) 55%, var(--atd-orange) 55%);
}
.atd-toc-list {
  columns: 2;
  column-gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.atd-toc-list li {
  margin-bottom: 4px;
  break-inside: avoid;
  counter-increment: toc;
}
.atd-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--atd-ink);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.atd-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: .72rem;
  font-weight: 800;
  color: var(--atd-orange);
  min-width: 20px;
}
.atd-toc-list a:hover {
  background: var(--atd-blue-tint);
  color: var(--atd-blue-deep);
}


/* ════════════════════════════════════════════════════════════
   ۹) ویدیو و کپشن
   نکته: .myvideo قواعد عمومی خود را از atd-core.css می‌گیرد؛
   سلکتور video.myvideo اینجا فقط ارتفاع و قاب را بازنویسی می‌کند.
   ════════════════════════════════════════════════════════════ */

.atd-video,
video.myvideo {
  width: 100%;
  height: auto;
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh);
  background: var(--atd-ink);
}
.atd-caption {
  text-align: center;
  font-size: .86rem;
  color: var(--atd-gray);
  margin-top: 10px;
  font-weight: 600;
}
.atd-caption::before { content: "◂ "; color: var(--atd-orange); }
.atd-video-caption {
  text-align: center;
  margin-top: 12px;
  color: var(--atd-ink);
  font-size: .93rem;
}
.atd-video-col { margin-bottom: 22px; }


/* ════════════════════════════════════════════════════════════
   ۱۰) کارت‌های دسته‌بندی لندینگ و لینک داخلی
   (نسخه ux_image_box این کامپوننت — .atd-ccard — در core است)
   ════════════════════════════════════════════════════════════ */

.atd-subcats-sec {
  background: var(--atd-mist) !important;
  border-block: 1px solid var(--atd-line);
}
.atd-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  padding: 30px 18px 24px;
  margin-bottom: 22px;
  text-decoration: none;
  box-shadow: var(--atd-sh);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.atd-cat-card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0; left: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--atd-blue), var(--atd-orange));
  transition: left .3s ease;
}
.atd-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--atd-sh-lg);
  border-color: #cfe0f7;
}
.atd-cat-card:hover::after { left: 0; }

.atd-cat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--atd-blue-tint), #dce9fb);
  position: relative;
}
.atd-cat-icon::before {
  content: "";
  position: absolute;
  inset: 15px 12px;
  background: repeating-linear-gradient(180deg, var(--atd-blue) 0 4px, transparent 4px 10px);
  border-radius: 2px;
}
.atd-cat-icon::after {
  content: "";
  position: absolute;
  bottom: 9px; right: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--atd-orange);
}
.atd-cat-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--atd-ink);
}
.atd-cat-card:hover .atd-cat-title { color: var(--atd-blue-deep); }
.atd-cat-more {
  font-size: .78rem;
  color: var(--atd-gray);
  font-weight: 600;
}
.atd-cat-card:hover .atd-cat-more { color: var(--atd-orange-deep); }

/* --- نسخه فلکسِ آزاد (حفظ شده — برگه‌های قبلی از آن استفاده می‌کنند) --- */
.atd-cat-links-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.atd-cat-links-inline a {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--atd-line);
  color: var(--atd-blue-deep);
  border-radius: 30px;
  padding: 9px 24px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}
.atd-cat-links-inline a:hover {
  background: var(--atd-blue);
  border-color: var(--atd-blue);
  color: #fff;
}

/* --- نسخه گرید هم‌عرض (نسخه 3.1) ----------------------------
   چرا اضافه شد: با flex-wrap آزاد، آخرین چیپ تک‌افتاده در سطر
   بعدی می‌نشست و چیدمان نامرتب می‌شد. اینجا تعداد ستون صریح است
   و همه چیپ‌ها هم‌عرض و هم‌ارتفاع‌اند. خط‌چین بالا هم آن‌ها را از
   پاراگراف قبلی جدا می‌کند تا شناور به نظر نرسند.
   استفاده: .atd-links (۳ ستون) / .atd-links--2 / .atd-links--1  */
.atd-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 6px;
  padding-top: 18px;
  border-top: 1px dashed var(--atd-line);
}
.atd-links--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atd-links--1 { grid-template-columns: minmax(0, 280px); }
.atd-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: 30px;
  color: var(--atd-blue-deep);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.atd-links a:hover {
  background: var(--atd-blue);
  border-color: var(--atd-blue);
  color: #fff;
  transform: translateY(-2px);
}

.atd-more-link {
  color: var(--atd-blue-deep);
  font-size: .95rem;
  font-weight: 700;
}
.atd-more-link:hover { color: var(--atd-orange-deep); }

.atd-type-row { margin-bottom: 34px; }


/* ════════════════════════════════════════════════════════════
   ۱۱) کارت قیمت، باکس نکته، چک‌لیست، مزایا، مشخصات، دانلود
   ════════════════════════════════════════════════════════════ */

.atd-price-card {
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  padding: 24px 26px;
  margin-bottom: 22px;
  min-height: 165px;
  box-shadow: var(--atd-sh);
  position: relative;
  overflow: hidden;
}
.atd-price-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--atd-orange), var(--atd-blue));
}
.atd-price-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--atd-ink);
  margin-bottom: 12px;
}
.atd-price-card ul { margin: 0; padding-right: 18px; }
.atd-price-card li {
  color: var(--atd-gray);
  font-size: .91rem;
  line-height: 2;
  margin-bottom: 6px;
  text-align: right;
}
.atd-price-card li::marker { color: var(--atd-orange); }

/* باکس نکته — نسخه بلندِ لندینگ (نسخه فشرده .atd-note در core است) */
.atd-note-box {
  background: var(--atd-orange-tint);
  border: 1px solid #ffddbf;
  border-radius: var(--atd-r);
  padding: 24px 28px;
  text-align: right;
  margin: 12px 0 34px;
  position: relative;
}
.atd-note-box::before {
  content: "";
  position: absolute;
  inset-inline: 24px;
  top: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--atd-orange);
}
.atd-note-box p {
  margin-bottom: 8px;
  color: var(--atd-ink);
  font-size: .97rem;
  font-weight: 600;
}
.atd-note-box a { color: var(--atd-orange-deep); text-decoration: none; }

/* چک‌لیست */
.atd-checklist {
  list-style: none;
  padding-right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 30px;
}
.atd-checklist li {
  position: relative;
  padding-right: 30px;
  line-height: 2;
}
.atd-checklist li::before {
  content: "";
  position: absolute;
  right: 0; top: .55em;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--atd-blue-tint);
}
.atd-checklist li::after {
  content: "✓";
  position: absolute;
  right: 4px; top: 0;
  color: var(--atd-blue);
  font-weight: 900;
  font-size: .8rem;
}

/* مزایا */
.atd-adv-row {
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh);
}
.atd-adv-card h3 {
  color: var(--atd-ink);
  font-size: 1.02rem;
  font-weight: 800;
  padding-right: 16px;
  position: relative;
}
.atd-adv-card h3::before {
  content: "";
  position: absolute;
  right: 0; top: .2em; bottom: .2em;
  width: 4px;
  border-radius: 3px;
  background: var(--atd-orange);
}

/* ---------- فهرست مشخصات (نسخه 3.1) ----------
   جایگزین جدول‌های <table> قدیمی و گریدِ کارتی که سطر یتیم
   می‌ساخت. هر ردیف یک جفت «برچسب / مقدار» است و برچسب‌ها
   با flex-basis ثابت زیر هم تراز می‌مانند.
   ساختار: <ul class="atd-spec-list"><li><b>برچسب</b><span>مقدار</span></li></ul> */
.atd-spec-list { list-style: none; margin: 0; padding: 0; }
.atd-spec-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
  padding: 15px 2px;
  border-bottom: 1px dashed var(--atd-line);
  line-height: 2;
}
.atd-spec-list li:last-child { border-bottom: 0; }
.atd-spec-list b {
  flex: 0 0 215px;
  font-weight: 800;
  color: var(--atd-ink);
  font-size: .95rem;
}
.atd-spec-list span {
  flex: 1 1 260px;
  color: var(--atd-gray);
  font-size: .93rem;
}

/* ---------- فهرست دانلود (نسخه 3.1) ----------
   برای کاتالوگ‌های PDF. گرید دوستونه، بدون چیپ یتیم.
   ساختار: <ul class="atd-dl"><li><a href="...">عنوان</a></li></ul> */
.atd-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.atd-dl a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r-sm);
  color: var(--atd-ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.atd-dl a::before {
  content: "PDF";
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--atd-orange-tint);
  border: 1px solid #ffddbf;
  color: var(--atd-orange-deep);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1.5;
}
.atd-dl a:hover {
  background: var(--atd-blue-tint);
  border-color: #cfe0f7;
  color: var(--atd-blue-deep);
}


/* ════════════════════════════════════════════════════════════
   ۱۲) تایم‌لاین مراحل
   ════════════════════════════════════════════════════════════ */

.atd-steps-sec {
  background: var(--atd-mist) !important;
  border-block: 1px solid var(--atd-line);
}
.atd-timeline {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin: 24px 0 30px;
  position: relative;
  padding-top: 8px;
}
.atd-timeline::before {
  content: "";
  position: absolute;
  top: 31px; right: 6%; left: 6%;
  height: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--atd-blue) 0 26px, #b9cff2 26px 34px);
}
.atd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  flex: 1 1 0;
  max-width: 210px;
  position: relative;
}
.atd-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--atd-blue-deep);
  font-size: 1.1rem;
  font-weight: 900;
  border: 3px solid var(--atd-blue);
  box-shadow: 0 0 0 6px var(--atd-mist), 0 6px 14px rgba(26, 95, 208, .22);
  position: relative;
  z-index: 1;
  transition: transform .2s ease;
}
.atd-step:hover .atd-step-num { transform: scale(1.12); }
.atd-step:last-child .atd-step-num {
  border-color: var(--atd-orange);
  color: var(--atd-orange-deep);
  box-shadow: 0 0 0 6px var(--atd-mist), 0 6px 14px rgba(244, 112, 12, .26);
}
.atd-step-title {
  font-weight: 800;
  color: var(--atd-ink);
  font-size: .95rem;
}
.atd-step-desc {
  font-size: .82rem;
  color: var(--atd-gray);
  line-height: 1.95;
}


/* ════════════════════════════════════════════════════════════
   ۱۳) سوالات متداول (آکاردئون)
   ════════════════════════════════════════════════════════════ */

.atd-faq {
  background: #fff;
  border-radius: var(--atd-r);
  padding: 30px;
  border: 1px solid var(--atd-line);
  box-shadow: var(--atd-sh);
}
.atd-faq-title {
  color: var(--atd-ink);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.atd-faq-title::before {
  content: "";
  width: 20px; height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--atd-blue) 55%, var(--atd-orange) 55%);
}
details.atd-faq-item {
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}
details.atd-faq-item[open] { border-color: #cfe0f7; }
details.atd-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 800;
  color: var(--atd-ink);
  font-size: .97rem;
  position: relative;
  padding-left: 48px;
  background: #fff;
  transition: background .2s ease;
}
details.atd-faq-item summary::-webkit-details-marker { display: none; }
details.atd-faq-item summary:hover { background: var(--atd-blue-tint); }
details.atd-faq-item summary::after {
  content: "+";
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--atd-orange-tint);
  color: var(--atd-orange-deep);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
details.atd-faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.atd-faq-a {
  color: var(--atd-gray);
  line-height: 2.1;
  margin: 0;
  padding: 14px 20px 18px;
  text-align: justify;
  border-top: 1px dashed var(--atd-line);
}


/* ════════════════════════════════════════════════════════════
   ۱۴) مطالب مرتبط
   ════════════════════════════════════════════════════════════ */

.atd-related-sec {
  background: var(--atd-mist) !important;
  border-top: 1px solid var(--atd-line);
}
.atd-related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  padding: 26px 20px;
  margin-bottom: 22px;
  text-decoration: none;
  box-shadow: var(--atd-sh);
  min-height: 116px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.atd-related-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 42px; height: 4px;
  border-radius: 0 0 0 6px;
  background: var(--atd-orange);
}
.atd-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--atd-sh-lg);
}
.atd-related-title {
  font-weight: 800;
  color: var(--atd-ink);
  font-size: .96rem;
}
.atd-related-card:hover .atd-related-title { color: var(--atd-blue-deep); }
.atd-related-more {
  font-size: .78rem;
  color: var(--atd-orange-deep);
  font-weight: 700;
}


/* ════════════════════════════════════════════════════════════
   ۱۵) فرم مشاوره
   ════════════════════════════════════════════════════════════ */

.atd-form-sec { border-top: 1px solid var(--atd-line); }
.atd-form-text {
  border-left: 3px solid var(--atd-orange) !important;
  border-color: var(--atd-orange) !important;
}
.atd-form-sec .wpforms-field input[type="text"],
.atd-form-sec .wpforms-field input[type="tel"],
.atd-form-sec .wpforms-field input[type="email"],
.atd-form-sec .wpforms-field textarea {
  border-radius: 12px !important;
  border: 1px solid var(--atd-line) !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.atd-form-sec .wpforms-field input:focus,
.atd-form-sec .wpforms-field textarea:focus {
  border-color: var(--atd-blue) !important;
  box-shadow: 0 0 0 3px rgba(26, 95, 208, .14) !important;
}
.atd-form-sec .wpforms-submit {
  background: linear-gradient(135deg, var(--atd-orange), var(--atd-orange-deep)) !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 22px rgba(244, 112, 12, .3);
  transition: filter .2s ease !important;
}
.atd-form-sec .wpforms-submit:hover { filter: brightness(1.07); }


/* ════════════════════════════════════════════════════════════
   ۱۶) دسترس‌پذیری، موشن، موبایل
   ════════════════════════════════════════════════════════════ */

.atd-cat-card:focus-visible,
.atd-related-card:focus-visible,
.atd-toc-list a:focus-visible,
.atd-links a:focus-visible,
.atd-dl a:focus-visible,
details.atd-faq-item summary:focus-visible {
  outline: 3px solid var(--atd-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atd-cat-card, .atd-related-card,
  .atd-btn.button, .atd-step-num, .atd-cat-card::after { transition: none; }
  .atd-hero .flickity-page-dots .dot.is-selected::after { animation: none; }

  /* نسخه 3.1 */
  .atd-links a, .atd-dl a { transition: none; transform: none !important; }
}

/* ---------- موبایل ---------- */
@media (max-width: 849px) {

  /* تایپوگرافی */
  body:not(.home) .atd-h1 { font-size: 1.55rem; }
  body:not(.home) .atd-h2 { font-size: 1.32rem; }

  /* نوار دسترسی سریع: گرید ۲ ستونه */
  .atd-quick { padding: 10px 12px; }
  .atd-quick nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .atd-quick a {
    justify-content: center;
    font-size: .74em;
    padding: 9px 8px;
    margin: 0;
    min-height: 40px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
  }

  /* بولت‌های اسلایدر */
  .atd-hero .flickity-page-dots { bottom: 12px; gap: 4px; }
  .atd-hero .flickity-page-dots .dot { width: 16px; height: 4px; }
  .atd-hero .flickity-page-dots .dot.is-selected { width: 32px; }

  /* نوار اعتماد */
  .atd-tnum { font-size: 1.35em; }
  .atd-tlabel { font-size: .8em; }
  .atd-trust .col + .col .atd-tbox::before { display: none; }
  .atd-trust-box { padding: 16px 22px; }
  .atd-trust-num { font-size: 1.4rem; }

  /* کارت‌های دسته‌بندی خانه */
  .atd-cards .col { padding-bottom: 12px; }
  .atd-ccard .box-text,
  .atd-ccard .ux-box-text { min-height: 72px; padding: 10px 6px 14px; }
  .atd-ccard .box-text strong,
  .atd-ccard .ux-box-text strong { font-size: .85em; }

  /* دکمه‌های خدمات، چیپ‌ها، دکمه‌های شیشه‌ای */
  .button.atd-svc { min-height: 52px; font-size: .78em; }
  .button.atd-chip { font-size: .78em; padding: 6px 12px !important; }
  .button.atd-gbtn { font-size: .82em; padding: 10px 16px !important; }

  /* لندینگ */
  .atd-toc-list { columns: 1; }
  .atd-toc { padding: 20px 18px; }
  .atd-price-card { min-height: auto; }
  .atd-checklist { grid-template-columns: 1fr; }
  .atd-cat-card { padding: 24px 12px 20px; }
  .atd-cat-title { font-size: .93rem; }

  /* نسخه 3.1 */
  .atd-dl { grid-template-columns: 1fr; }

  /* تایم‌لاین عمودی */
  .atd-timeline {
    flex-direction: column;
    gap: 26px;
    padding-top: 0;
    padding-right: 22px;
  }
  .atd-timeline::before {
    top: 10px; bottom: 10px; right: 22px; left: auto;
    width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--atd-blue) 0 26px, #b9cff2 26px 34px);
  }
  .atd-step {
    flex-direction: row;
    text-align: right;
    align-items: flex-start;
    max-width: 100%;
    gap: 16px;
    flex-wrap: wrap;
  }
  .atd-step-num {
    flex-shrink: 0;
    margin-right: -22px;
    box-shadow: 0 0 0 6px var(--atd-mist);
  }
  .atd-step-title {
    display: block;
    margin-bottom: 2px;
    flex: 1;
    padding-top: 10px;
    text-align: right;
  }
  .atd-step-desc {
    flex-basis: 100%;
    padding-right: 62px;
    margin-top: -6px;
    text-align: right;
  }

  /* جلوگیری از سرریز افقی */
  .atd-hero-sec, .atd-quick-sec { overflow-x: hidden; }
}

@media (min-width: 850px) and (max-width: 1099px) {
  .atd-quick a { font-size: .78em; padding: 6px 13px; }
  .atd-ccard .box-text strong,
  .atd-ccard .ux-box-text strong { font-size: .88em; }
}

/* ---------- موبایل کوچک (نسخه 3.1) ---------- */
@media (max-width: 549px) {
  .atd-links,
  .atd-links--2 { grid-template-columns: 1fr; }
  .atd-spec-list b { flex-basis: 100%; }
  .atd-spec-list li { padding: 12px 2px; }
  .atd-btn-group { gap: 10px; }
  .atd-btn-group .button { min-width: 100%; }
}


/* =========================================
   ATD - Automatic Door Types
   ========================================= */

.atd-door-types {
  position: relative;
  margin: 50px 0;
  padding: 34px 30px;
  background: #f7f9fc;
  border: 1px solid #e5eaf0;
  border-radius: 18px;
  overflow: hidden;
}

/* subtle decorative element */

.atd-door-types::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -180px;
  right: -100px;
  border-radius: 50%;
  background: #edf3fa;
  pointer-events: none;
}

/* Heading */

.atd-door-types-head {
  position: relative;
  z-index: 2;
  margin-bottom: 27px;
}

.atd-door-types-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #114f99;
}

.atd-door-types-head h2 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

.atd-door-types-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #737b86;
}

/* Grid */

.atd-door-types-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

/* Card */

.atd-door-type-card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 15px;

  min-height: 82px;
  padding: 17px 19px;

  background: #fff;
  border: 1px solid #e2e7ed;
  border-radius: 11px;

  text-decoration: none !important;
  color: #222;

  overflow: hidden;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.atd-door-type-card:hover {
  transform: translateY(-3px);
  border-color: #c9d8e8;
  box-shadow: 0 9px 22px rgba(25, 55, 90, .09);
  color: #114f99;
}

/* Number */

.atd-door-type-number {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #eef4fb;
  color: #114f99;

  font-size: 11px;
  font-weight: 700;

  transition:
    background-color .25s ease,
    color .25s ease;
}

.atd-door-type-card:hover .atd-door-type-number {
  background: #114f99;
  color: #fff;
}

/* Title */

.atd-door-type-title {
  flex: 1;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;

  color: #252a31;

  transition: color .25s ease;
}

.atd-door-type-card:hover .atd-door-type-title {
  color: #114f99;
}

/* Bottom line */

.atd-door-type-line {
  position: absolute;

  right: 0;
  bottom: 0;

  width: 0;
  height: 3px;

  background: #114f99;

  transition: width .3s ease;
}

.atd-door-type-card:hover .atd-door-type-line {
  width: 55px;
}


/* =========================================
   Tablet
   ========================================= */

@media (max-width: 850px) {

  .atd-door-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 550px) {

  .atd-door-types {
    margin: 35px 0;
    padding: 26px 16px;
    border-radius: 15px;
  }

  .atd-door-types-head {
    margin-bottom: 21px;
  }

  .atd-door-types-head h2 {
    font-size: 20px;
  }

  .atd-door-types-head p {
    font-size: 12px;
  }

  .atd-door-types-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .atd-door-type-card {
    min-height: 70px;
    padding: 14px 15px;
  }

}

/* =========================================
   ATD - Modern Guides
   ========================================= */

.atd-guides-modern {
  margin: 45px 0;
  padding: 34px 30px;
  background: #fff;
  border-top: 1px solid #e7ebf1;
  border-bottom: 1px solid #e7ebf1;
}

/* Header */

.atd-guides-modern-head {
  margin-bottom: 28px;
}

.atd-guides-modern-label {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #114f99;
}

.atd-guides-modern-head h2 {
  margin: 0 0 7px;
  font-size: 23px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

.atd-guides-modern-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #777;
}

/* Items */

.atd-guides-modern-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e7ebf1;
}

.atd-guide-modern-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 92px;
  padding: 22px 20px;
  color: #222;
  text-decoration: none !important;
  border-left: 1px solid #e7ebf1;
  transition: background-color .25s ease;
}

.atd-guide-modern-item:first-child {
  border-left: none;
}

.atd-guide-modern-item:hover {
  background: #f8fafc;
}

/* Number */

.atd-guide-modern-number {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #114f99;
  letter-spacing: .5px;
}

/* Content */

.atd-guide-modern-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.atd-guide-modern-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: #222;
  transition: color .25s ease;
}

.atd-guide-modern-item:hover .atd-guide-modern-title {
  color: #114f99;
}

.atd-guide-modern-type {
  font-size: 11px;
  line-height: 1.6;
  color: #999;
}

/* =========================================
   Tablet
   ========================================= */

@media (max-width: 900px) {

  .atd-guides-modern-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .atd-guide-modern-item:nth-child(3) {
    border-left: none;
    border-top: 1px solid #e7ebf1;
  }

  .atd-guide-modern-item:nth-child(4) {
    border-top: 1px solid #e7ebf1;
  }

}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 550px) {

  .atd-guides-modern {
    margin: 32px 0;
    padding: 26px 18px;
  }

  .atd-guides-modern-head {
    margin-bottom: 22px;
  }

  .atd-guides-modern-head h2 {
    font-size: 20px;
  }

  .atd-guides-modern-head p {
    font-size: 13px;
  }

  .atd-guides-modern-list {
    grid-template-columns: 1fr;
  }

  .atd-guide-modern-item,
  .atd-guide-modern-item:nth-child(3),
  .atd-guide-modern-item:nth-child(4) {
    min-height: 70px;
    padding: 17px 10px;
    border-left: none;
    border-top: 1px solid #e7ebf1;
  }

  .atd-guide-modern-item:first-child {
    border-top: none;
  }

}

/* ===== Design Tokens ===== */
:root {
  --atd-accent: #ff7a30;
  --atd-accent-text: #c9591a;
  --atd-accent-bg: rgba(255, 122, 48, 0.16);
  --atd-text: #1c2b3a;
  --atd-text-muted: #5b6b7a;
  --atd-text-faint: #9aa7b3;
  --atd-glass-bg: rgba(255, 255, 255, 0.55);
  --atd-glass-bg-hover: rgba(255, 255, 255, 0.75);
  --atd-glass-border: rgba(255, 255, 255, 0.7);
  --atd-gap: 12px;
  --atd-radius-box: 18px;
  --atd-radius-card: 12px;
  --atd-radius-icon: 8px;
}

/* ===== atd Guide Section ===== */
.atd-guides {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px 24px;
  background: linear-gradient(135deg, #eef1f6 0%, #dfe6ef 50%, #e9edf3 100%);
  border-radius: var(--atd-radius-box);
  direction: rtl;
}

.atd-guides__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--atd-text);
  margin: 0 0 18px;
  padding-right: 14px;
  border-right: 4px solid var(--atd-accent);
}

.atd-guides__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: var(--atd-gap);
}

.atd-guides__item {
  display: flex;
}

.atd-guides__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  background: var(--atd-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--atd-glass-border);
  border-radius: var(--atd-radius-card);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--atd-text);
  box-shadow: 0 8px 20px rgba(28, 43, 58, .06);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.atd-guides__item a:hover {
  background: var(--atd-glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(28, 43, 58, .1);
}

.atd-guides__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--atd-radius-icon);
  background: var(--atd-accent-bg);
  color: var(--atd-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.atd-guides__text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atd-guides__arrow {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--atd-text-faint);
  transition: transform .18s ease, color .18s ease;
}

.atd-guides__item a:hover .atd-guides__arrow {
  color: var(--atd-accent-text);
  transform: translateX(-3px);
}

@media (max-width: 600px) {
  .atd-guides__list { grid-template-columns: 1fr; }
}

/* ===== atd Model Section ===== */
.atd-models {
  width: 95%;
  margin: 40px auto;
  padding: 0 16px;
  direction: rtl;
}

.atd-models__box {
  background: linear-gradient(135deg, #e6eaf1 0%, #eef1f6 50%, #dfe6ef 100%);
  border-radius: var(--atd-radius-box);
  padding: 32px 24px;
}

.atd-models__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--atd-text);
  margin: 0 0 6px;
  padding-right: 14px;
  border-right: 4px solid var(--atd-accent);
}

.atd-models__intro {
  font-size: 13.5px;
  color: var(--atd-text-muted);
  margin: 0 0 18px;
  padding-right: 18px;
}

.atd-models__grid {
 display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  align-items: stretch;
  gap: var(--atd-gap);
}

.atd-models__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  background: var(--atd-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--atd-glass-border);
  border-radius: var(--atd-radius-card);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--atd-text);
  box-shadow: 0 8px 20px rgba(28, 43, 58, .06);
  transition: background .15s ease, box-shadow .15s ease;
}

.atd-models__card:hover {
  background: var(--atd-glass-bg-hover);
  box-shadow: 0 10px 26px rgba(28, 43, 58, .1);
}

.atd-models__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--atd-radius-icon);
  background: var(--atd-accent-bg);
  color: var(--atd-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.atd-models__card:hover .atd-models__icon {
  background: var(--atd-accent);
  color: #fff;
}

.atd-models__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.atd-models__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atd-models__cta {
  font-size: 12px;
  color: var(--atd-accent-text);
}

@media (max-width: 700px) {
  .atd-models__grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .atd-models__grid { grid-template-columns: 1fr !important; }
}

/* ===== atd Model Section — تکمیلی (به انتهای css/atd-page.css اضافه شود) ===== */

/* عنوان کارت در هاور نارنجی شود (مثل تصویر) */
.atd-models__name { color: var(--atd-text); transition: color .15s ease; }
.atd-models__card:hover .atd-models__name { color: var(--atd-accent); }
.atd-models__card:hover { color: var(--atd-text); }

/* جلوگیری از <p>/<br> احتمالی وردپرس داخل گرید */
.atd-models__grid > p,
.atd-models__grid > br { display: none; }

/* داخل ادیتور UX Builder هر کارت در یک wrapper قرار می‌گیرد؛ کارت کل خانه را پر کند */
.atd-models__grid > :not(.atd-models__card) { display: flex; min-width: 0; }
.atd-models__grid > :not(.atd-models__card) > .atd-models__card { flex: 1 1 auto; }

/* دسترس‌پذیری */
.atd-models__card:focus-visible {
  outline: 3px solid var(--atd-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .atd-models__card, .atd-models__name { transition: none; }
}





/* ============================================================
   آتی دُر — atd-linkgrid.css
   المان UX Builder «گرید لینک» ([atd_linkgrid])
   محل: wp-content/themes/flatsome-child/css/atd-linkgrid.css
   (یا انتهای atd-page.css — :root تعریف نمی‌شود؛ متغیرها روی خود المان‌اند)
   ============================================================ */

/* ---------- متغیرها (از پنل UX Builder بازنویسی می‌شوند) ---------- */
.atd-lg {
  --lg-accent: #ff7a30;
  --lg-text: #1c2b3a;
  --lg-muted: #5b6b7a;
  --lg-faint: #9aa7b3;
  --lg-card: rgba(255, 255, 255, .55);
  --lg-card-hover: rgba(255, 255, 255, .8);
  --lg-border: rgba(255, 255, 255, .7);
  --lg-shadow: 0 8px 20px rgba(28, 43, 58, .06);
  --lg-shadow-hover: 0 10px 26px rgba(28, 43, 58, .1);
  --lg-box: linear-gradient(135deg, #e6eaf1 0%, #eef1f6 50%, #dfe6ef 100%);
  --lg-cols: 2;
  --lg-cols-md: 2;
  --lg-cols-sm: 1;
  --lg-gap: 12px;
  --lg-radius: 12px;
  --lg-media: 34px;
  --lg-max: none;

  /* مشتق از رنگ اصلی */
  --lg-accent-bg: rgba(255, 122, 48, .16);
  --lg-accent-bg: color-mix(in srgb, var(--lg-accent) 16%, transparent);
  --lg-accent-text: #c9591a;
  --lg-accent-text: color-mix(in srgb, var(--lg-accent) 78%, #000);

  --lg-c: var(--lg-cols);
  direction: rtl;
  max-width: var(--lg-max);
  margin: 40px auto;
}

.atd-lg,
.atd-lg *,
.atd-lg *::before,
.atd-lg *::after { box-sizing: border-box; }

/* ---------- باکس ---------- */
.atd-lg__box {
  background: var(--lg-box);
  border-radius: 18px;
  padding: 32px 24px;
}
.atd-lg--box-white { --lg-box: #fff; }
.atd-lg--box-white .atd-lg__box { border: 1px solid #e4ebf4; }
.atd-lg--box-mist  { --lg-box: #f6f9fd; }
.atd-lg--box-mist .atd-lg__box { border: 1px solid #e4ebf4; }
.atd-lg--box-none .atd-lg__box { background: none; padding: 0; border-radius: 0; }
.atd-lg--box-dark {
  --lg-box: linear-gradient(135deg, #0A3D6E, #11407e);
  --lg-text: #fff;
  --lg-muted: #cfe0f4;
  --lg-faint: rgba(255, 255, 255, .5);
  --lg-card: rgba(255, 255, 255, .08);
  --lg-card-hover: rgba(255, 255, 255, .14);
  --lg-border: rgba(255, 255, 255, .16);
  --lg-shadow: none;
  --lg-shadow-hover: 0 10px 26px rgba(0, 0, 0, .25);
  --lg-accent-text: var(--lg-accent);
}

/* ---------- سربرگ ---------- */
.atd-lg__head { margin-bottom: 18px; }
.atd-lg__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--lg-text);
  margin: 0 0 6px;
}
.atd-lg__intro {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--lg-muted);
  margin: 0;
}
.atd-lg--title-bar .atd-lg__title {
  padding-right: 14px;
  border-right: 4px solid var(--lg-accent);
}
.atd-lg--title-bar .atd-lg__intro { padding-right: 18px; }
.atd-lg--title-line .atd-lg__title { padding-bottom: 10px; position: relative; }
.atd-lg--title-line .atd-lg__title::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 42px; height: 3px;
  border-radius: 3px;
  background: var(--lg-accent);
}
.atd-lg--align-center .atd-lg__head { text-align: center; }
.atd-lg--align-center .atd-lg__intro { padding-right: 0; }
.atd-lg--align-center.atd-lg--title-bar .atd-lg__title {
  display: inline-block;
}
.atd-lg--align-center.atd-lg--title-line .atd-lg__title::after {
  right: 50%;
  transform: translateX(50%);
}

/* ---------- گرید: فلکس با عرض ستونی → هر تعداد آیتم ---------- */
.atd-lg__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lg-gap);
  justify-content: flex-start;
  align-items: stretch;
}
.atd-lg__grid > * {
  flex: 0 0 calc((100% - (var(--lg-c) - 1) * var(--lg-gap)) / var(--lg-c) - .1px);
  min-width: 0;
  display: flex;
}
.atd-lg--justify-center .atd-lg__grid { justify-content: center; }
.atd-lg--justify-fill .atd-lg__grid > * { flex-grow: 1; }
.atd-lg__grid > p,
.atd-lg__grid > br { display: none !important; }
/* wrapper ادیتور UX Builder */
.atd-lg__grid > :not(.atd-lg__item) > .atd-lg__item { flex: 1 1 auto; }

@media (max-width: 849px) { .atd-lg { --lg-c: var(--lg-cols-md); } }
@media (max-width: 549px) {
  .atd-lg { --lg-c: var(--lg-cols-sm); margin: 28px auto; }
  .atd-lg__box { padding: 24px 14px; }
}

/* ---------- آیتم (پایه = چیدمان cards) ---------- */
.atd-lg__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
  color: var(--lg-text);
  text-decoration: none !important;
  overflow: hidden;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.atd-lg__item:hover {
  background: var(--lg-card-hover);
  box-shadow: var(--lg-shadow-hover);
  color: var(--lg-text);
}
.atd-lg--hover-lift a.atd-lg__item:hover { transform: translateY(-2px); }
.atd-lg--hover-glow a.atd-lg__item:hover { border-color: var(--lg-accent); }
.atd-lg__item.is-hl {
  border-color: var(--lg-accent);
  box-shadow: 0 0 0 1px var(--lg-accent), var(--lg-shadow);
}

/* طرح‌های کارت */
.atd-lg--skin-glass .atd-lg__item {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.atd-lg--skin-solid:not(.atd-lg--box-dark) {
  --lg-card: #fff;
  --lg-card-hover: #fff;
  --lg-border: #e4ebf4;
  --lg-shadow: 0 1px 2px rgba(14, 28, 48, .04), 0 6px 18px rgba(14, 28, 48, .05);
  --lg-shadow-hover: 0 14px 32px rgba(14, 28, 48, .1);
}
.atd-lg--skin-outline {
  --lg-card: transparent;
  --lg-card-hover: rgba(255, 255, 255, .6);
  --lg-border: rgba(28, 43, 58, .14);
  --lg-shadow: none;
  --lg-shadow-hover: none;
}
.atd-lg--skin-soft {
  --lg-card: var(--lg-accent-bg);
  --lg-card-hover: color-mix(in srgb, var(--lg-accent) 24%, transparent);
  --lg-border: transparent;
  --lg-shadow: none;
  --lg-shadow-hover: none;
}
.atd-lg--skin-flat {
  --lg-card: transparent;
  --lg-card-hover: rgba(28, 43, 58, .04);
  --lg-border: transparent;
  --lg-shadow: none;
  --lg-shadow-hover: none;
}
.atd-lg--skin-flat.atd-lg--box-dark { --lg-card-hover: rgba(255, 255, 255, .06); }

/* رسانه (آیکن یا عکس) */
.atd-lg__media {
  flex: 0 0 auto;
  width: var(--lg-media);
  height: var(--lg-media);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--lg-accent-bg);
  color: var(--lg-accent-text);
  overflow: hidden;
  transition: background .18s ease, color .18s ease;
}
.atd-lg__media svg { width: 56%; height: 56%; }
.atd-lg--media-circle .atd-lg__media { border-radius: 50%; }
.atd-lg--media-square .atd-lg__media { border-radius: 0; }
a.atd-lg__item:hover .atd-lg__media:not(.is-img) {
  background: var(--lg-accent);
  color: #fff;
}
.atd-lg__media.is-img { background: #fff; }
.atd-lg__media .atd-lg__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

/* متن */
.atd-lg__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.atd-lg__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s ease;
}
.atd-lg__sub {
  font-size: 12px;
  line-height: 1.6;
  color: var(--lg-accent-text);
}
a.atd-lg__item:hover .atd-lg__name { color: var(--lg-accent-text); }

/* برچسب */
.atd-lg__badge {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--lg-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

/* فلش */
.atd-lg__arrow {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--lg-faint);
  transition: transform .18s ease, color .18s ease;
}
.atd-lg__arrow svg { width: 100%; height: 100%; display: block; }
a.atd-lg__item:hover .atd-lg__arrow {
  color: var(--lg-accent-text);
  transform: translateX(-3px);
}
.atd-lg--no-arrow .atd-lg__arrow { display: none; }

/* ============ چیدمان: tiles (عمودی، آیکن بالا) ============ */
.atd-lg--tiles .atd-lg__item {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px 20px;
}
.atd-lg--tiles .atd-lg__body { align-items: center; flex: 0 0 auto; }
.atd-lg--tiles .atd-lg__arrow { display: none; }
.atd-lg--tiles .atd-lg__badge { position: absolute; top: 10px; left: 10px; }

/* ============ چیدمان: media (عکس تمام‌عرض بالا) ============ */
.atd-lg--media .atd-lg__item {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.atd-lg--media .atd-lg__media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0 !important;
}
.atd-lg--media .atd-lg__media svg { width: 30%; height: 30%; max-width: 64px; max-height: 64px; }
.atd-lg--media .atd-lg__media .atd-lg__img { transition: transform .35s ease; }
.atd-lg--media a.atd-lg__item:hover .atd-lg__img { transform: scale(1.05); }
.atd-lg--media .atd-lg__body { padding: 14px 16px 16px; padding-left: 40px; }
.atd-lg--media .atd-lg__arrow { position: absolute; left: 14px; bottom: 18px; }
.atd-lg--media .atd-lg__badge { position: absolute; top: 10px; right: 10px; }

/* ============ چیدمان: list (سطرهای ساده) ============ */
.atd-lg--list .atd-lg__grid { row-gap: 0; }
.atd-lg--list .atd-lg__item {
  min-height: 54px;
  padding: 12px 6px;
  border: 0;
  border-bottom: 1px dashed rgba(28, 43, 58, .14);
  border-radius: 0;
  box-shadow: none !important;
  transform: none !important;
}
.atd-lg--list.atd-lg--box-dark .atd-lg__item { border-bottom-color: rgba(255, 255, 255, .16); }
.atd-lg--list .atd-lg__media { --lg-media: 30px; }

/* ============ چیدمان: numbered (شماره خودکار) ============ */
.atd-lg--numbered .atd-lg__grid { counter-reset: atdlg; }
.atd-lg--numbered .atd-lg__item { counter-increment: atdlg; }
.atd-lg--numbered .atd-lg__media { display: none; }
.atd-lg--numbered .atd-lg__item::before {
  content: counter(atdlg, decimal-leading-zero);
  flex: 0 0 auto;
  width: var(--lg-media);
  height: var(--lg-media);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--lg-accent-bg);
  color: var(--lg-accent-text);
  font-size: 13px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}
.atd-lg--numbered.atd-lg--media-circle .atd-lg__item::before { border-radius: 50%; }
.atd-lg--numbered a.atd-lg__item:hover::before { background: var(--lg-accent); color: #fff; }

/* ============ چیدمان: chips (برچسب با عرض محتوا) ============ */
.atd-lg--chips .atd-lg__grid > * { flex: 0 0 auto; max-width: 100%; }
.atd-lg--chips .atd-lg__item {
  width: auto;
  min-height: 42px;
  padding: 7px 18px;
  gap: 8px;
  border-radius: 99px;
}
.atd-lg--chips .atd-lg__media { --lg-media: 24px; border-radius: 50%; }
.atd-lg--chips .atd-lg__name { font-size: 13.5px; -webkit-line-clamp: 1; }
.atd-lg--chips .atd-lg__sub,
.atd-lg--chips .atd-lg__arrow { display: none; }

/* ---------- دسترس‌پذیری ---------- */
a.atd-lg__item:focus-visible {
  outline: 3px solid var(--lg-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .atd-lg__item, .atd-lg__media, .atd-lg__arrow, .atd-lg__img { transition: none !important; }
  a.atd-lg__item:hover { transform: none !important; }
}

/* باکس CTA میان محتوای مقالات */
/* ============================================================
   ATD — Inline CTA Articles
   نسخه بازطراحی شده
   ظاهر سرمه‌ای مطابق با باکس‌های سایت
   ============================================================ */

.atd-inline-cta {
  --cta-accent: #ff7a00;
  --cta-bg: #174a7f;
  --cta-bg-hover: #1b528c;
  --cta-text: #ffffff;
  --cta-muted: rgba(255, 255, 255, .82);

  direction: rtl;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  margin: 42px 0;
  padding: 28px 30px;

  background: var(--cta-bg);
  border: 0;
  border-radius: 18px;

  overflow: hidden;
  box-sizing: border-box;

  box-shadow: 0 8px 24px rgba(23, 74, 127, .12);
}


/* نوار نارنجی بالای سمت راست
   مشابه باکس تصویر */
.atd-inline-cta::before {
  content: "";
  position: absolute;

  top: 24px;
  right: 28px;

  width: 4px;
  height: 30px;

  background: var(--cta-accent);
  border-radius: 0;

  z-index: 1;
}


/* محتوای متن */
.atd-inline-cta__content {
  flex: 1 1 auto;
  min-width: 0;

  padding-right: 18px;
}


/* عنوان کوچک بالای CTA */
.atd-inline-cta__eyebrow {
  display: block;

  margin: 0 0 10px;

  color: #fff;

  font-size: 20px;
  font-weight: 800;
  line-height: 1.7;
}

/* عنوان اصلی */
.atd-inline-cta__title {
  margin: 0 0 8px;

  color: var(--cta-text);

  font-size: 20px;
  font-weight: 800;
  line-height: 1.7;
}


/* توضیحات */
.atd-inline-cta__text {
  margin: 0;

  max-width: 760px;

  color: var(--cta-muted);

  font-size: 14px;
  font-weight: 400;
  line-height: 2;
}


/* بخش دکمه */
.atd-inline-cta__action {
  flex: 0 0 auto;
}


/* دکمه CTA */
.atd-inline-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 11px 24px;

  background: var(--cta-accent);
  color: #fff !important;

  border: 1px solid var(--cta-accent);
  border-radius: 9px;

  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.6;

  text-decoration: none !important;
  white-space: nowrap;

  box-shadow: 0 5px 15px rgba(0, 0, 0, .12);

  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}


/* هاور دکمه */
.atd-inline-cta__button:hover {
  background: #ff8a26;
  color: #fff !important;

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}


/* جلوگیری از تغییر رنگ لینک توسط قالب */
.atd-inline-cta__button:visited {
  color: #fff !important;
}


/* فوکوس */
.atd-inline-cta__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .75);
  outline-offset: 3px;
}


/* ============================================================
   موبایل
   ============================================================ */

@media (max-width: 700px) {

  .atd-inline-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;

    margin: 32px 0;
    padding: 25px 22px;
  }

  .atd-inline-cta::before {
    top: 22px;
    right: 22px;
    height: 26px;
  }

  .atd-inline-cta__content {
    padding-right: 14px;
  }

  .atd-inline-cta__title {
    font-size: 18px;
  }

  .atd-inline-cta__text {
    font-size: 13.5px;
    line-height: 2;
  }

  .atd-inline-cta__action {
    width: 100%;
  }

  .atd-inline-cta__button {
    width: 100%;
  }
}


/* موبایل کوچک */
@media (max-width: 400px) {

  .atd-inline-cta {
    padding: 22px 18px;
  }

  .atd-inline-cta__title {
    font-size: 17px;
  }

  .atd-inline-cta__text {
    font-size: 13px;
  }
}





/* ════════════════════════════════════════════════════════════
   ۱۸) افزوده‌های نسخه ۳ لندینگ «درب اتوماتیک شیشه ای»
   ------------------------------------------------------------
   محل: انتهای atd-page.css (بعد از بخش ۱۷ نسخه ۲)
   فایل جدید CSS ساخته نمی‌شود و :root تازه‌ای تعریف نمی‌شود.
   همه کلاس‌ها با atd- شروع می‌شوند و فقط داخل سکشن‌هایی که
   کلاس .atd-v3 دارند فعال‌اند؛ برگه‌های دیگر دست نمی‌خورند.

   فهرست:
     الف) ظاهر شدن هنگام اسکرول
     ب)  هیرو + قاب درب متحرک
     ج)  جدول‌ها و قاب محاسبه‌گر (مستقل از بخش ۱۷)
     ج۲) نوار پرش بخش‌ها (غیرچسبان)
     د)  سرتیتر سکشن، مقدمه قیمت، قاب محاسبه‌گر
     ه)  جعبه پاسخ کوتاه و مزایا
     و)  کارت‌های تصویری محل نصب و مدل (+ اسکرول افقی موبایل)
     ز)  ماتریس انتخاب
     ح)  اجزای پکیج و لوازم جانبی
     ط)  شیشه و فریم
     ی)  تایم‌لاین مراحل
     ک)  نمونه‌کار: فیلتر و کارت ویدیو
     ل)  نقشه نصب‌ها
     ن)  نوار لوگوی مشتریان
     س)  اعتماد و تخصص (E-E-A-T)
     م)  موبایل و کاهش حرکت
   ════════════════════════════════════════════════════════════ */

/* ---------- الف) ظاهر شدن هنگام اسکرول ----------
   فقط وقتی JS فعال است (html.atd-js) پنهان می‌شود؛ بدون JS همه چیز دیده می‌شود */
.atd-js .atd-v3 .atd-rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--atd-d, 0ms);
}
.atd-js .atd-v3 .atd-rv.is-in { opacity: 1; transform: none; }

.atd-v3 { position: relative; }
.atd-v3 h2[id], .atd-v3 h3[id], .atd-v3 [id].atd-anchor { scroll-margin-top: 150px; }
.atd-anchor { display: block; height: 0; overflow: hidden; }

/* ---------- ب) هیرو ---------- */
.atd-v3-hero { overflow: hidden; }
.atd-v3-hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  left: -180px; top: -260px;
  background: radial-gradient(circle, rgba(244,112,12,.22), transparent 62%);
  pointer-events: none;
}
.atd-v3-hero .section-content { position: relative; z-index: 1; }
.atd-v3-hero h1.atd-h1 { font-size: 2.5em; line-height: 1.45; margin: 14px 0 8px; }
.atd-v3-hero .atd-lead { color: #d6e5f6; font-size: 1.05rem; line-height: 2.15; max-width: 600px; }
.atd-v3-hero .atd-lead a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.atd-hchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.atd-hchips li {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 7px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: .86rem; font-weight: 700;
}
.atd-hchips li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--atd-orange); box-shadow: 0 0 0 4px rgba(244,112,12,.22);
}
.atd-v3-hero .button.atd-gbtn { margin: 0 0 10px 8px; }

/* قاب درب: دو لت شیشه‌ای که هنگام بارگذاری کنار می‌روند و ویدیو را نشان می‌دهند */
.atd-doorfx {
  position: relative;
  border-radius: 20px;
  padding: 18px 14px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.atd-doorfx::before { /* باکس اپراتور بالای درب */
  content: "";
  position: absolute; top: 6px; inset-inline: 14px;
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.2));
}
.atd-doorfx::after { /* چراغ سنسور */
  content: "";
  position: absolute; top: 4px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--atd-orange);
  box-shadow: 0 0 0 0 rgba(244,112,12,.7);
  animation: atd-sensor 2.4s ease-out infinite;
}
@keyframes atd-sensor { 0% { box-shadow: 0 0 0 0 rgba(244,112,12,.7); } 70%,100% { box-shadow: 0 0 0 14px rgba(244,112,12,0); } }
.atd-doorfx-stage { position: relative; border-radius: 14px; overflow: hidden; background: #08223f; }
.atd-doorfx-stage video { display: block; width: 100% !important; aspect-ratio: 16 / 10; object-fit: cover; min-height: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.atd-leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  z-index: 2; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.35) 44%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(170,205,240,.55), rgba(120,165,215,.45));
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border: 3px solid rgba(255,255,255,.75);
  animation-duration: 1.5s; animation-delay: .6s; animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(.65,0,.25,1);
}
.atd-leaf.is-r { right: 0; animation-name: atd-leaf-r; }
.atd-leaf.is-l { left: 0; animation-name: atd-leaf-l; }
@keyframes atd-leaf-r { to { transform: translateX(96%); opacity: .0; } }
@keyframes atd-leaf-l { to { transform: translateX(-96%); opacity: .0; } }
.atd-doorfx-cap {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; color: #cfe0f4; font-size: .82rem; font-weight: 600;
}
.atd-doorfx-cap b { color: #fff; }

/* ---------- ج) جدول‌ها و قاب محاسبه‌گر ----------
   این بلوک عمداً تکرار بخش ۱۷ است تا اگر بخش ۱۷ اضافه نشده باشد،
   جدول‌ها و قاب محاسبه‌گر بی‌استایل نمانند. وجود هر دو مشکلی ندارد. */
.atd-v3 .atd-tblwrap {
  background: #fff; border: 1px solid var(--atd-line); border-radius: var(--atd-r);
  box-shadow: var(--atd-sh); padding: 8px; overflow-x: auto; margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}
.atd-v3 table.atd-tbl {
  width: 100%; min-width: 620px; border-collapse: collapse; border-spacing: 0;
  font-size: .9rem; margin: 0; border: 0; background: transparent;
}
.atd-v3 table.atd-tbl th,
.atd-v3 table.atd-tbl td {
  padding: 11px 13px; text-align: right; vertical-align: middle;
  border: 0; border-bottom: 1px solid var(--atd-line); line-height: 1.8;
}
.atd-v3 table.atd-tbl thead th {
  background: var(--atd-mist); color: var(--atd-ink); font-weight: 800;
  white-space: nowrap; border-bottom: 2px solid var(--atd-line);
  text-transform: none; letter-spacing: 0; font-size: .88rem;
}
.atd-v3 table.atd-tbl thead th:first-child { border-radius: 0 10px 0 0; }
.atd-v3 table.atd-tbl thead th:last-child { border-radius: 10px 0 0 0; }
.atd-v3 table.atd-tbl tbody tr:last-child td { border-bottom: 0; }
.atd-v3 table.atd-tbl tbody tr { transition: background .2s ease; }
.atd-v3 table.atd-tbl tbody tr:hover { background: var(--atd-blue-tint); }
.atd-v3 table.atd-tbl td:first-child { color: var(--atd-ink); }
.atd-v3 table.atd-tbl .atd-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 800; color: var(--atd-orange-deep); }
.atd-v3 table.atd-tbl caption { caption-side: bottom; padding: 12px 6px 4px; color: var(--atd-gray); font-size: .85rem; text-align: right; }
.atd-v3 .atd-calc-frame { background: #fff; border: 1px solid var(--atd-line); overflow: hidden; min-height: 320px; }
.atd-v3 .atd-calc-frame > iframe, .atd-v3 .atd-calc-frame iframe { display: block; width: 100% !important; max-width: 100%; border: 0; }
/* محاسبه‌گر در عرض ≥۱۰۲۴px دوستونه می‌شود و نصف ارتفاع را می‌گیرد؛ پس ردیفش پهن‌تر از کانتینر ۱۰۸۰ فلت‌سام است */
@media (min-width: 1100px) { .atd-v3-calc .row { max-width: 1240px; } }
@media (max-width: 849px) {
  .atd-v3 table.atd-tbl { font-size: .82rem; min-width: 540px; }
  .atd-v3 table.atd-tbl th, .atd-v3 table.atd-tbl td { padding: 9px 10px; }
}

/* ---------- ج۲) نوار پرش بخش‌ها (ثابت در جای خود، غیرچسبان) ---------- */
.atd-snav-sec .section-content { padding: 0 !important; }
.atd-snav { background: #fff; border-bottom: 1px solid var(--atd-line); box-shadow: 0 6px 18px rgba(14,28,48,.05); }
.atd-snav-track {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  max-width: 1080px; margin: 0 auto; padding: 10px 15px;
}
.atd-snav-track::-webkit-scrollbar { display: none; }
.atd-snav a {
  flex: 0 0 auto; padding: 7px 15px; border-radius: 30px;
  font-size: .84rem; font-weight: 700; color: var(--atd-gray);
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: color .2s ease, background .2s ease;
}
.atd-snav a:hover { color: var(--atd-blue-deep); background: var(--atd-blue-tint); }
.atd-snav a.is-cta { color: #fff; background: var(--atd-orange); margin-inline-start: auto; }
.atd-snav a:focus-visible { outline: 3px solid var(--atd-blue); outline-offset: 2px; }

/* ---------- د) سرتیتر سکشن، قیمت، محاسبه‌گر ---------- */
.atd-shead { text-align: center; max-width: 760px; margin: 0 auto 26px; }
.atd-shead.is-start { text-align: right; margin-inline: 0; }
.atd-shead p { color: var(--atd-gray); line-height: 2.1; margin: 0; }
.atd-shead .atd-divider { margin: 10px auto 16px; max-width: 110px; }
.atd-shead.is-start .atd-divider { margin-inline: 0; }

.atd-v3-calc { background: linear-gradient(180deg, var(--atd-mist), #fff) !important; border-bottom: 1px solid var(--atd-line); }
.atd-price-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 22px; padding: 0; list-style: none; }
.atd-price-facts li {
  margin: 0; padding: 6px 14px; border-radius: 30px;
  background: #fff; border: 1px solid var(--atd-line);
  font-size: .82rem; font-weight: 700; color: var(--atd-ink);
}
.atd-price-facts li b { color: var(--atd-orange-deep); }
.atd-v3-calc .atd-calc-frame { border-radius: 22px; box-shadow: 0 2px 4px rgba(14,28,48,.05), 0 30px 70px rgba(14,28,48,.14); }

/* ---------- ه) جعبه پاسخ کوتاه و مزایا ---------- */
.atd-answer {
  position: relative;
  background: #fff; border: 1px solid var(--atd-line);
  border-radius: var(--atd-r); box-shadow: var(--atd-sh);
  padding: 26px 28px 22px;
}
.atd-answer::before {
  content: ""; position: absolute; top: 22px; bottom: 22px; right: 0; width: 4px;
  border-radius: 4px 0 0 4px; background: linear-gradient(180deg, var(--atd-blue), var(--atd-orange));
}
.atd-answer p { line-height: 2.15; text-align: justify; color: var(--atd-ink); }
.atd-benefits { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.atd-benefits li {
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 12px; border-radius: 12px; background: var(--atd-mist);
  font-size: .88rem; font-weight: 700; color: var(--atd-ink);
}
.atd-benefits svg { width: 22px; height: 22px; flex: 0 0 22px; stroke: var(--atd-blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- و) کارت‌های تصویری (ux_image_box با کلاس atd-lcard) ---------- */
.atd-lcard.box, .atd-lcard {
  position: relative; height: 100%;
  background: #fff; border: 1px solid var(--atd-line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--atd-sh);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.atd-lcard:hover { transform: translateY(-6px); box-shadow: var(--atd-sh-lg); border-color: #cfe0f7; }
.atd-lcard .box-image { position: relative; overflow: hidden; border-radius: 0 !important; }
.atd-lcard .box-image img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.atd-lcard:hover .box-image img { transform: scale(1.07); }
.atd-lcard .box-image::after { /* درخشش شیشه هنگام هاور */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(110%); transition: transform .8s ease; pointer-events: none;
}
.atd-lcard:hover .box-image::after { transform: translateX(-110%); }
.atd-lcard .box-text { padding: 16px 18px 18px !important; text-align: right !important; }
.atd-lcard .box-text h3 { font-size: 1.02rem; font-weight: 800; color: var(--atd-ink); margin: 0 0 4px; }
.atd-lcard .box-text p { font-size: .86rem; color: var(--atd-gray); line-height: 1.95; margin: 0 0 10px; }
.atd-lcard .atd-go { font-size: .82rem; font-weight: 800; color: var(--atd-blue-deep); text-decoration: none; }
.atd-lcard .atd-go::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* کل کارت کلیک‌پذیر */
.atd-lcard:hover .atd-go { color: var(--atd-orange-deep); }
.atd-lcard .atd-go span { display: inline-block; transition: transform .25s ease; }
.atd-lcard:hover .atd-go span { transform: translateX(-5px); }
.atd-tag {
  display: inline-block; margin-bottom: 6px;
  padding: 2px 10px; border-radius: 20px;
  background: var(--atd-blue-tint); color: var(--atd-blue-deep);
  font-size: .72rem; font-weight: 800;
}
.atd-tag.is-o { background: var(--atd-orange-tint); color: var(--atd-orange-deep); }

/* کارت هشتم: پرش به جدول مقایسه */
.atd-morecard {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  height: 100%; min-height: 220px; padding: 26px 22px;
  border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, var(--atd-navy), var(--atd-blue-deep));
  color: #fff; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.atd-morecard:hover { transform: translateY(-6px); box-shadow: var(--atd-sh-lg); }
.atd-morecard b { font-size: 1.15rem; font-weight: 900; color: #fff; }
.atd-morecard span { color: #cfe0f4; font-size: .86rem; line-height: 1.95; }
.atd-morecard i { font-style: normal; color: #ffb470; font-weight: 800; font-size: .85rem; }
.atd-morecard::after {
  content: ""; position: absolute; left: -40px; bottom: -40px; width: 140px; height: 140px;
  border-radius: 50%; border: 18px solid rgba(255,255,255,.07);
}
.atd-eq .col { display: flex; }
.atd-eq .col > .col-inner { display: flex; width: 100%; }
.atd-eq .col > .col-inner > * { width: 100%; }

/* ---------- ز) ماتریس انتخاب ---------- */
.atd-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; font-size: 0; line-height: 0; color: transparent; overflow: hidden; }
.atd-dot.is-best { background: var(--atd-orange); box-shadow: 0 0 0 4px var(--atd-orange-tint); }
.atd-dot.is-ok { border: 3px solid var(--atd-blue); }
.atd-dot.is-no { width: 12px; height: 3px; border-radius: 2px; background: var(--atd-line); }
table.atd-matrix td:not(:first-child), table.atd-matrix th:not(:first-child) { text-align: center; }
.atd-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: .8rem; color: var(--atd-gray); font-weight: 600; margin-top: 6px; }
.atd-legend > span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- ح) اجزای پکیج و لوازم جانبی ---------- */
.atd-parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.atd-parts li {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--atd-line); box-shadow: 0 1px 2px rgba(14,28,48,.04);
}
.atd-parts li::before {
  content: attr(data-n); flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--atd-navy); color: #fff; font-weight: 900; font-size: .8rem;
}
.atd-parts-t { min-width: 0; }
.atd-parts-t b { display: block; color: var(--atd-ink); font-size: .9rem; line-height: 1.7; }
.atd-parts-t small { display: block; color: var(--atd-gray); font-size: .8rem; line-height: 1.85; }

.atd-feat {
  height: 100%; padding: 22px 20px;
  background: #fff; border: 1px solid var(--atd-line); border-radius: 18px;
  box-shadow: var(--atd-sh);
  transition: transform .25s ease, border-color .25s ease;
}
.atd-feat:hover { transform: translateY(-4px); border-color: var(--atd-orange); }
.atd-feat .atd-ic {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--atd-blue-tint), #dce9fb);
}
.atd-feat svg { width: 24px; height: 24px; stroke: var(--atd-blue-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atd-feat h3 { font-size: .98rem; font-weight: 800; color: var(--atd-ink); margin: 0 0 4px; }
.atd-feat p { font-size: .84rem; color: var(--atd-gray); line-height: 1.95; margin: 0; }

/* ---------- ط) شیشه و فریم ---------- */
.atd-mcard { height: 100%; background: #fff; border: 1px solid var(--atd-line); border-radius: 18px; overflow: hidden; box-shadow: var(--atd-sh); }
.atd-mcard .img { margin: 0 !important; }
.atd-mcard .img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; }
.atd-mcard-t { padding: 16px 18px 18px; }
.atd-mcard-t h3 { font-size: 1rem; font-weight: 800; color: var(--atd-ink); margin: 0 0 4px; }
.atd-mcard-t p { font-size: .85rem; color: var(--atd-gray); line-height: 1.95; margin: 0; text-align: justify; }
.atd-glass { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.atd-glass li {
  margin: 0; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 30px;
  background: #fff; border: 1px solid var(--atd-line); font-size: .86rem; font-weight: 700;
}
.atd-glass .atd-sw { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(14,28,48,.15); background: var(--g, #e8f2fb); font-size: 0; line-height: 0; color: transparent; overflow: hidden; }

/* ---------- ی) تایم‌لاین ---------- */
.atd-tl { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin: 30px 0 28px; }
.atd-tl-line, .atd-tl-fill { position: absolute; top: 27px; right: 10%; left: 10%; height: 4px; border-radius: 4px; }
.atd-tl-line { background: #d6e3f5; }
.atd-tl-fill {
  --k: 0;
  background: linear-gradient(270deg, var(--atd-blue), var(--atd-orange));
  transform-origin: right; transform: scaleX(var(--k));
  transition: transform .15s linear;
}
.atd-tl-step { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.atd-tl-num {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 3px solid #d6e3f5; color: var(--atd-gray);
  font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 0 0 7px var(--atd-mist);
  transition: border-color .35s ease, color .35s ease, transform .35s ease, background .35s ease;
}
.atd-tl-step.is-done .atd-tl-num { border-color: var(--atd-blue); color: var(--atd-blue-deep); transform: scale(1.06); }
.atd-tl-step:last-child.is-done .atd-tl-num { border-color: var(--atd-orange); background: var(--atd-orange); color: #fff; }
.atd-tl-step > div { display: flex; flex-direction: column; gap: 4px; }
.atd-tl-step b { font-size: .95rem; font-weight: 800; color: var(--atd-ink); }
.atd-tl-step span { font-size: .82rem; color: var(--atd-gray); line-height: 1.9; }
html:not(.atd-js) .atd-tl-num { border-color: var(--atd-blue); color: var(--atd-blue-deep); }

/* ---------- ک) نمونه‌کار ---------- */
.atd-filter { display: flex; justify-content: center; gap: 6px; margin: 0 auto 24px; padding: 5px; width: max-content; max-width: 100%; background: #fff; border: 1px solid var(--atd-line); border-radius: 14px; }
.atd-filter button {
  margin: 0; padding: 8px 20px; min-height: 0; line-height: 1.6;
  border: 0; border-radius: 10px; background: transparent;
  font-family: inherit; font-size: .86rem; font-weight: 800; color: var(--atd-gray);
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.atd-filter button[aria-pressed="true"] { background: var(--atd-blue-deep); color: #fff; }
.atd-hide { display: none !important; }

.atd-vcard { display: block; width: 100%; padding: 0; margin: 0 0 22px; border: 0; background: none; text-align: right; cursor: pointer; font-family: inherit; text-transform: none; letter-spacing: 0; }
.atd-vcard-media {
  display: block;
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: var(--atd-ink) var(--poster) center / cover no-repeat;
  box-shadow: var(--atd-sh);
}
.atd-vcard-media::before { content: ""; position: absolute; inset: 0; background: rgba(8,24,46,.12); transition: background .3s ease; }
.atd-vcard:hover .atd-vcard-media::before { background: rgba(8,24,46,.28); }
.atd-vcard-play {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: rgba(244,112,12,.94); z-index: 1;
  display: grid; place-items: center; font-size: 0;
  box-shadow: 0 0 0 0 rgba(244,112,12,.5); animation: atd-sensor 2.4s ease-out infinite;
  transition: transform .25s ease;
}
.atd-vcard-play svg { width: 24px; height: 24px; margin-left: 3px; }
.atd-vcard:hover .atd-vcard-play { transform: scale(1.1); }
.atd-vcard-meta { position: static; display: block; padding: 10px 4px 0; color: var(--atd-ink); font-weight: 800; font-size: .9rem; line-height: 1.7; }
.atd-vcard-meta small { display: block; color: var(--atd-gray); font-weight: 600; font-size: .78rem; }
.atd-vcard.is-playing .atd-vcard-play, .atd-vcard.is-playing .atd-vcard-media::before { display: none; }
.atd-vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; min-height: 0 !important; }
.atd-v3 .gallery-col .box-image, .atd-v3 .gallery-col img { border-radius: 14px; }

/* ---------- ک۲) گالری عکس با کپشن ---------- */
.atd-shots { columns: 4 220px; column-gap: 16px; }
.atd-shot {
  break-inside: avoid; margin: 0 0 16px; position: relative;
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--atd-line); box-shadow: var(--atd-sh);
}
.atd-shot a { display: block; overflow: hidden; }
.atd-shot img { display: block; width: 100%; height: auto; margin: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.atd-shot:hover img { transform: scale(1.05); }
.atd-shot figcaption { padding: 10px 12px 12px; margin: 0; }
.atd-shot figcaption b { display: block; font-size: .84rem; font-weight: 800; color: var(--atd-ink); line-height: 1.7; }
.atd-shot figcaption .atd-t { display: block; font-size: .75rem; color: var(--atd-gray); line-height: 1.8; }
@media (max-width: 549px) { .atd-shots { columns: 2 140px; column-gap: 10px; } .atd-shot figcaption { padding: 8px 9px 10px; } .atd-shot figcaption .atd-t { display: none; } }
@media (prefers-reduced-motion: reduce) { .atd-shot img { transition: none; } }

/* نمایش بیشتر نمونه‌کارها: فقط وقتی JS فعال است، ۴ ویدیو و ۸ عکس اول دیده می‌شود */
.atd-js .atd-sample-sec:not(.is-open) .atd-kind-video > .col:nth-child(n+5),
.atd-js .atd-sample-sec:not(.is-open) .atd-shot:nth-child(n+9) { display: none; }
.atd-more { display: none; text-align: center; margin-top: 4px; }
.atd-js .atd-more { display: block; }
.atd-js .atd-sample-sec.is-open .atd-more { display: none; }
.atd-more button {
  margin: 0; padding: 11px 28px; min-height: 0; line-height: 1.6;
  border: 2px solid var(--atd-blue-deep); border-radius: 12px; background: #fff;
  color: var(--atd-blue-deep); font-family: inherit; font-size: .9rem; font-weight: 800;
  text-transform: none; letter-spacing: 0; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.atd-more button:hover { background: var(--atd-blue-deep); color: #fff; }
.atd-more button:focus-visible { outline: 3px solid var(--atd-blue); outline-offset: 2px; }

/* ---------- ل) نقشه نصب‌ها ---------- */
.atd-imap { position: relative; max-width: 460px; margin: 0 auto; min-height: 200px; }
.atd-imap svg { display: block; width: 100%; height: auto; overflow: visible; }
.atd-pv { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.32); stroke-width: 1; transition: fill .25s ease; }
.atd-pv.is-on { fill: #3d86f5; stroke: #d6e5f6; cursor: pointer; }
.atd-pv:hover { fill: rgba(255,255,255,.22); }
.atd-pv.is-on:hover, .atd-pv.is-on:focus { fill: var(--atd-orange); outline: none; }
.atd-imap-dot {
  fill: var(--atd-orange); stroke: #fff; stroke-width: 1.5; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  animation: atd-ping 2.6s ease-out infinite;
}
@keyframes atd-ping { 0% { stroke-opacity: 1; stroke-width: 1.5; } 70%,100% { stroke-opacity: 0; stroke-width: 16; } }
.atd-imap-tip {
  position: absolute; transform: translateX(-50%); z-index: 2;
  background: #fff; color: var(--atd-ink); font-size: .78rem; font-weight: 800;
  border-radius: 9px; padding: 4px 12px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.atd-maplegend { display: flex; justify-content: center; gap: 16px; margin-top: 10px; color: #cfe0f4; font-size: .78rem; font-weight: 600; }
.atd-maplegend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; background: #3d86f5; }
.atd-maplegend span + span::before { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }
.atd-mapstat { display: flex; gap: 26px; margin: 18px 0 24px; }
.atd-mapstat div { display: flex; flex-direction: column; }
.atd-mapstat b { font-size: 2.1rem; font-weight: 900; color: #fff; line-height: 1.2; }
.atd-mapstat span { color: #cfe0f4; font-size: .84rem; font-weight: 600; }

/* ---------- ن) نوار متحرک لوگوی مشتریان ---------- */
.atd-clients { margin: 6px 0 4px; }
.atd-clients-t { text-align: center; font-size: .86rem; font-weight: 800; color: var(--atd-gray); margin: 0 0 12px; }
.atd-marquee {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.atd-marquee-track { display: flex; gap: 18px; width: max-content; margin: 0; padding: 4px 0; list-style: none; }
.atd-marquee.is-run .atd-marquee-track { animation: atd-marq var(--atd-marq-t, 40s) linear infinite; }
.atd-marquee:hover .atd-marquee-track { animation-play-state: paused; }
@keyframes atd-marq { to { transform: translateX(-50%); } }
.atd-marquee li {
  margin: 0; flex: 0 0 auto; width: 150px; height: 78px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--atd-line); border-radius: 14px; padding: 8px 14px;
}
.atd-marquee img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease; }
.atd-marquee li:hover img { filter: none; opacity: 1; }
html:not(.atd-js) .atd-marquee { overflow-x: auto; }

/* ---------- س) اعتماد و تخصص (E-E-A-T) ---------- */
.atd-eeat-sec { background: linear-gradient(180deg, #fff, var(--atd-mist)) !important; border-top: 1px solid var(--atd-line); }
.atd-proof {
  height: 100%; padding: 26px 24px 22px; border-radius: 18px;
  background: #fff; border: 1px solid var(--atd-line); box-shadow: var(--atd-sh);
  position: relative; overflow: hidden;
}
.atd-proof::after { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(to left, var(--atd-blue), var(--atd-orange)); }
.atd-proof-n { display: block; font-size: 2rem; font-weight: 900; color: var(--atd-blue-deep); line-height: 1.3; margin-bottom: 6px; }
.atd-proof h3 { font-size: 1rem; font-weight: 800; color: var(--atd-ink); margin: 0 0 6px; }
.atd-proof p { font-size: .87rem; color: var(--atd-gray); line-height: 2; margin: 0; }

.atd-review {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 18px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--atd-line); box-shadow: var(--atd-sh);
}
.atd-review-av {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--atd-navy), var(--atd-blue));
  box-shadow: 0 0 0 4px var(--atd-blue-tint);
}
.atd-review-t p { margin: 0; line-height: 1.9; }
.atd-review-k { font-size: .74rem; font-weight: 800; color: var(--atd-orange-deep); }
.atd-review-n { font-size: .95rem; color: var(--atd-ink); }
.atd-review-d { font-size: .8rem; color: var(--atd-gray); }
.atd-podcast { padding: 22px 22px 14px; }
.atd-podcast .atd-cta-text { margin-bottom: 4px; }
.atd-podcast-d { font-size: .85rem; color: var(--atd-gray); line-height: 2; margin: 0 0 12px; }
@media (max-width: 849px) {
  .atd-marquee li { width: 120px; height: 66px; }
  .atd-proof-n { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .atd-marquee.is-run .atd-marquee-track { animation: none; }
  .atd-marquee { overflow-x: auto; }
}

/* ---------- م) موبایل و کاهش حرکت ---------- */
@media (max-width: 849px) {
  .atd-v3-hero h1.atd-h1 { font-size: 1.65em; }
  .atd-v3-hero .atd-lead { font-size: .97rem; }
  .atd-v3-hero .button.atd-gbtn { width: 100%; margin: 0 0 8px; }
  .atd-doorfx { margin-top: 18px; }
  .atd-benefits { grid-template-columns: 1fr; }
  .atd-parts { grid-template-columns: 1fr; }

  /* اسکرول افقی کارت‌ها در موبایل (ردیف با کلاس atd-snap) */
  .atd-snap { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .atd-snap::-webkit-scrollbar { display: none; }
  .atd-snap > .col { flex: 0 0 78% !important; max-width: 78% !important; scroll-snap-align: start; }

  .atd-tl { grid-template-columns: 1fr; gap: 18px; padding-right: 4px; }
  .atd-tl-line, .atd-tl-fill { top: 10px; bottom: 10px; right: 29px; left: auto; width: 4px; height: auto; }
  .atd-tl-fill { transform-origin: top; transform: scaleY(var(--k)); background: linear-gradient(180deg, var(--atd-blue), var(--atd-orange)); }
  .atd-tl-step { flex-direction: row; text-align: right; align-items: flex-start; gap: 14px; }
  .atd-tl-step > div { display: flex; flex-direction: column; padding-top: 6px; }

  .atd-mapstat b { font-size: 1.6rem; }
  }

@media (prefers-reduced-motion: reduce) {
  .atd-js .atd-v3 .atd-rv { opacity: 1; transform: none; transition: none; }
  .atd-leaf { display: none; }
  .atd-doorfx::after, .atd-vcard-play, .atd-imap-dot { animation: none; }
  .atd-lcard, .atd-lcard .box-image img, .atd-lcard .box-image::after,
  .atd-morecard, .atd-feat, .atd-tl-num, .atd-tl-fill { transition: none; }
}

.atd-filter button:focus-visible, .atd-vcard:focus-visible,
.atd-morecard:focus-visible, .atd-lcard .atd-go:focus-visible { outline: 3px solid var(--atd-blue); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════
   ۱۹) افزوده‌های لندینگ «درب اتوماتیک شیشه ای تک لنگه»
   ------------------------------------------------------------
   بقیه صفحه با کلاس‌های موجود همین فایل ساخته شده است
   (atd-price-card، atd-inline-cta، atd-spec-list، atd-checklist،
   atd-note-box، atd-form-sec و بخش ۱۸). اینجا فقط دو چیزی آمده
   که در سایت معادل نداشت. :root تعریف نمی‌شود و همه قواعد داخل
   .atd-v3 هستند؛ برگه‌های دیگر دست نمی‌خورند.

     الف) هیرو: قاب درب با یک لنگه (به‌جای دو لنگه بخش ۱۸)
     ب)  شماتیک دو حالت اجرا: لنگه ثابت (۱+۱) / بدون لنگه ثابت
   ════════════════════════════════════════════════════════════ */

/* ---------- الف) قاب درب تک لنگه ----------
   استفاده: <div class="atd-doorfx is-single"> با یک <div class="atd-leaf is-r">
   لنگه کل قاب را می‌پوشاند، به یک سمت کنار می‌رود و نیمه‌شفاف پارک می‌ماند. */
.atd-v3 .atd-doorfx.is-single .atd-leaf {
  width: 100%; right: 0; left: auto;
  animation-name: atd-leaf-one; animation-duration: 1.8s;
}
@keyframes atd-leaf-one { to { transform: translateX(-86%); opacity: .55; } }
.atd-v3 .atd-doorfx.is-single .atd-leaf::after { /* دستگیره نوری لبه لنگه */
  content: ""; position: absolute; top: 18%; bottom: 18%; left: 10px; width: 3px;
  border-radius: 3px; background: rgba(255,255,255,.8);
}

/* ---------- ب) شماتیک دو حالت اجرا ----------
   ساختار: .atd-cfg > .atd-cfg-plan (.atd-cfg-fixed یا .atd-cfg-wall + .atd-cfg-move)
           + .atd-cfg-cap + .atd-cfg-t (atd-tag، h3، p، a.atd-go)
   لنگه متحرک بسته → باز (پشت لنگه ثابت یا جلوی دیوار) → بسته را تکرار می‌کند. */
.atd-v3 .atd-cfg {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--atd-line); border-radius: var(--atd-r);
  box-shadow: var(--atd-sh); overflow: hidden;
}
.atd-v3 .atd-cfg-plan {
  position: relative; display: flex; height: 76px; margin: 22px 22px 0;
  border-bottom: 4px solid var(--atd-navy); /* ریل */
}
.atd-v3 .atd-cfg-fixed,
.atd-v3 .atd-cfg-wall,
.atd-v3 .atd-cfg-move {
  flex: 0 0 50%; display: grid; place-items: center;
  font-size: .76rem; font-weight: 800; line-height: 1.4; text-align: center;
}
.atd-v3 .atd-cfg-fixed { background: #d5e3f5; border: 2px solid var(--atd-navy); color: var(--atd-navy); }
.atd-v3 .atd-cfg-wall {
  background: repeating-linear-gradient(135deg, #7d8ea5 0 6px, #8e9fb6 6px 12px);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.atd-v3 .atd-cfg-move {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 50%;
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.6) 45%, rgba(255,255,255,0) 60%),
    var(--atd-orange-tint);
  border: 2px dashed var(--atd-orange); color: var(--atd-orange-deep);
  animation: atd-cfg-slide 5.5s cubic-bezier(.65,0,.25,1) infinite;
}
@keyframes atd-cfg-slide {
  0%, 22% { transform: translateX(0); }
  45%, 75% { transform: translateX(96%); }
  100% { transform: translateX(0); }
}
.atd-v3 .atd-cfg-cap { margin: 8px 22px 0; font-size: .76rem; color: var(--atd-gray); text-align: center; }
.atd-v3 .atd-cfg-t { padding: 16px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.atd-v3 .atd-cfg-t .atd-tag { align-self: flex-start; }
.atd-v3 .atd-cfg-t h3 { font-size: 1.05rem; font-weight: 800; color: var(--atd-ink); margin: 2px 0 6px; }
.atd-v3 .atd-cfg-t p { font-size: .88rem; color: var(--atd-gray); line-height: 2; margin: 0 0 12px; text-align: justify; }
.atd-v3 .atd-cfg .atd-go { margin-top: auto; font-size: .85rem; font-weight: 800; color: var(--atd-blue-deep); text-decoration: none; }
.atd-v3 .atd-cfg .atd-go:hover { color: var(--atd-orange-deep); }
.atd-v3 .atd-cfg .atd-go:focus-visible { outline: 3px solid var(--atd-blue); outline-offset: 2px; }

@media (max-width: 849px) {
  .atd-v3 .atd-cfg-plan { margin: 18px 16px 0; height: 64px; }
  .atd-v3 .atd-cfg-t { padding: 14px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .atd-v3 .atd-cfg-move { animation: none; }
  .atd-v3 .atd-doorfx.is-single .atd-leaf { display: none; }
}