/* ============================================================
   نیلپر خانگی — لندینگ باشگاه مشتریان (نسخه ۲ — زیباسازی‌شده)
   جایگزین مستقیم style.css — بدون نیاز به تغییر HTML
   ============================================================ */

/* ================== فونت ایران‌یکان ================== */
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebThin.woff") format("woff"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebLight.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebRegular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebMedium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebBold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebBlack.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/IRANYekanWebExtraBlack.woff") format("woff"); font-weight: 950; font-style: normal; font-display: swap; }
:root {
  /* رنگ‌ها */
  --c-white:      #ffffff;
  --c-cream:      #f6f5f5;   /* پس‌زمینه ملایم، از کرم گرم به خاکستری خنثی */
  --c-cream-2:    #ebebec;   /* پس‌زمینه بخش‌های دوم */
  --c-black:      #141414;
  --c-accent:     #d7191f;   /* قرمز اصلی */
  --c-accent-2:   #ee4a4f;   /* قرمز روشن‌تر (جایگزین نارنجی روشن، برای گرادیان‌ها) */
  --c-accent-h:   #b01217;   /* قرمز تیره برای هاور دکمه‌ها */
  --c-accent-soft:#fdeaea;   /* قرمز خیلی کمرنگ برای بک‌گراند بج‌ها و کارت‌ها */
  --c-gold:       #a3a3a8;   /* خاکستری روشن به جای طلایی */
  --c-text:       #333333;
  --c-muted:      #77787c;
  --c-line:       #e5e5e7;
  --c-ph:         #e8e8ea;

  --grad-accent: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);

  /* فونت‌ها */
    --font-fa: "IRANYekan", Tahoma, sans-serif;
    --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* گردی‌ها */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* سایه‌ها */
  --sh-sm: 0 2px 8px rgba(20, 20, 20, .05);
  --sh-md: 0 10px 30px rgba(20, 20, 20, .08);
  --sh-lg: 0 20px 50px rgba(20, 20, 20, .12);
  --sh-accent: 0 10px 24px rgba(224, 85, 43, .32);

  /* چیدمان */
  --container: 1140px;
  --section-gap: 84px;
  --header-h: 70px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ================== ریست ================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-fa);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--c-accent); color: var(--c-white); }

/* فاصله لنگر برای هدر چسبان */
section[id] { scroll-margin-top: var(--header-h); }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

[dir="ltr"] { font-family: var(--font-en); }

/* ================== دکمه‌ها ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-accent {
  background: var(--grad-accent);
  color: var(--c-white);
  box-shadow: var(--sh-accent);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(224, 85, 43, .42);
  filter: saturate(1.08);
}
.btn-accent:active { transform: translateY(-1px); }
.btn-dark { background: var(--c-black); color: var(--c-white); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline { border-color: var(--c-black); color: var(--c-black); background: transparent; }
.btn-outline:hover { background: var(--c-black); color: var(--c-white); }

/* ================== لوگو (تصویر) ================== */
.logo { display: inline-flex; align-items: center; transition: opacity .25s; }
.logo:hover { opacity: .85; }
.logo-img { height: 40px; width: auto; max-width: none; }

/* ================== هدر ================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, .92);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* دسکتاپ: لوگو سمت چپ، منو وسط، ورود/ثبت‌نام سمت راست */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.header .logo { grid-column: 3; grid-row: 1; justify-self: end; }

.nav { grid-column: 2; grid-row: 1; display: flex; gap: 28px; }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  padding-block: 6px;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--c-white); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  padding: 9px 24px;
  font-size: 13.5px;
}
.header .btn-outline { border-color: rgba(255, 255, 255, .7); color: var(--c-white); }
.header .btn-outline:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-black); }

/* همبرگر */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: .3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  padding: 12px 24px 22px;
  background: var(--c-black);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 30px rgba(0, 0, 0, .25);
}
.nav-mobile a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav-mobile .btn-dark { background: var(--grad-accent); color: var(--c-white); margin-top: 14px; border: 0; }
.nav-toggle:checked ~ .nav-mobile { display: flex; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================== بنر اصلی ================== */
.hero { padding: 16px 16px 0; }

.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.hero-banner picture,
.hero-banner img { display: block; width: 100%; }

.hero-img { aspect-ratio: 16 / 6.2; object-fit: cover; }

/* کارت شیشه‌ای پشت متن بنر (برای خوانایی بهتر روی هر تصویر) */
.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  max-width: 460px;
  padding: 34px 36px;
  color: var(--c-black);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
.hero-content, .hero-content h1, .hero-content .hero-text { text-align: center; }
.hero-content h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -.2px;
}
.hero-text {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.95;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.hero-actions .btn { margin-inline: auto; }
.hero-video-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  margin: 0 auto;
  padding: 7px 22px 7px 10px;
  border: 1.5px solid rgba(20, 20, 20, .14);
  border-radius: var(--r-pill);
  background: var(--c-white);
  box-shadow: var(--sh-sm);
  font-family: var(--font-fa);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-black);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.hero-video-btn:hover { border-color: var(--c-accent); box-shadow: var(--sh-md); transform: translateY(-2px); }
.hero-video-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-black);
  color: var(--c-white);
  transition: background .25s, transform .3s var(--ease);
}
.hero-video-icon svg { margin-right: -2px; }
.hero-video-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c-accent);
  animation: pulse 2.2s ease-out infinite;
}
.hero-video-btn:hover .hero-video-icon { background: var(--c-accent); transform: scale(1.08); }

/* پاپ‌آپ ویدیو */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 14, 14, .88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.video-modal[hidden] { display: none; }
.video-modal-box {
  position: relative;
  width: min(960px, 100%);
  border-radius: var(--r-md);
  background: #000;
  box-shadow: var(--sh-lg);
}
.video-modal-box video {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: var(--r-md);
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: -48px;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: var(--c-white);
  font-size: 16px;
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.video-modal-close:hover { background: var(--c-accent); border-color: var(--c-accent); transform: scale(1.08); }
.hero-cta .arr { font-size: 13px; opacity: .85; letter-spacing: -2px; transition: transform .3s var(--ease); }
.hero-cta:hover .arr:first-child { transform: translateX(-4px); }
.hero-cta:hover .arr:last-child  { transform: translateX(4px); }

@media (max-width: 768px) {
  .hero { padding: 0; }
  .hero-banner { border-radius: 0; box-shadow: none; }
  .hero-img { aspect-ratio: 4 / 5; }
  .hero-content {
    position: static;
    transform: none;
    max-width: none;
    padding: 26px 20px 34px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-content h1, .hero-text { width: 100%; text-align: center; }
  .hero-text { font-size: 14.5px; margin-inline: auto; }
  .hero-actions { align-items: center; }
  .hero-cta { padding: 13px 26px; }
  .video-modal { padding: 16px; }
}

/* ================== بخش‌های عمومی ================== */
.section { padding-block: var(--section-gap); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-head h2 {
  position: relative;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--c-black);
  margin-bottom: 22px;
  letter-spacing: -.2px;
}
/* خط تزئینی زیر تیتر */
.section-head h2::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -12px;
  margin-inline: auto;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
}
.section-head p { color: var(--c-muted); font-size: 15.5px; }

.section-head.gallery-head,
.section-head.videos-head { margin-bottom: 34px; }

/* ================== چرا عضو شویم؟ ================== */
.benefits {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(240, 138, 60, .10), transparent 70%),
    var(--c-cream);
  border-bottom: 1px solid var(--c-line);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 38px 26px 32px;
  text-align: center;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.benefit-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.benefit-card:hover::before { transform: scaleX(1); }

.benefit-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.benefit-card:hover .benefit-icon { transform: scale(1.08) rotate(-3deg); }

.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-black);
  margin-bottom: 10px;
  line-height: 1.6;
}
.benefit-card p { font-size: 14px; color: var(--c-muted); }

@media (max-width: 1024px) {
  .benefits-grid { gap: 18px; }
  .benefit-card { padding: 30px 20px 28px; }
}
@media (max-width: 640px) {
  .benefit-card { padding: 28px 22px; }
  .benefit-icon { width: 70px; height: 70px; }
}

/* ================== نحوه عضویت ================== */
.howto { background: var(--c-white); }

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.howto-card { text-align: center; }

.howto-media { position: relative; margin-bottom: 28px; }

.howto-img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.howto-card:hover .howto-img { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.howto-num {
  position: absolute;
  bottom: -20px;
  right: 50%;
  transform: translateX(50%);
  width: 46px;
  height: 46px;
  background: var(--grad-accent);
  color: var(--c-white);
  border: 4px solid var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--sh-accent);
}

.howto-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-black);
  margin-bottom: 6px;
  padding-top: 12px;
}
.howto-card p {
  font-size: 14px;
  color: var(--c-muted);
  max-width: 300px;
  margin-inline: auto;
}

@media (max-width: 1024px) { .howto-grid { gap: 22px; } }
@media (max-width: 640px) {
  .howto-grid { grid-template-columns: 1fr; gap: 40px; }
  .howto-num { width: 42px; height: 42px; font-size: 16px; }
}

/* ================== امتیازگیری ================== */
.points { background: var(--c-white); padding-top: 0; }

.points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 960px;
  margin-inline: auto;
}

.points-earn  { background: linear-gradient(160deg, #fff6e8 0%, #fdebd0 100%); }
.points-spend { background: linear-gradient(160deg, #ffe9d6 0%, #fdd4b3 100%); }

.points-card {
  border-radius: var(--r-xl);
  padding: 40px 30px 36px;
  text-align: center;
  border: 1px solid rgba(224, 85, 43, .08);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.points-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }

.points-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  object-fit: contain;
}
.points-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-black);
  margin-bottom: 22px;
}

/* تب‌ها — به شکل قرص (pill) */
.tab-radio { display: none; }

.tab-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 5px;
  background: rgba(255, 255, 255, .55);
  border-radius: 22px;
}

.tab-label {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  transition: color .25s, background .25s, box-shadow .25s;
}
.tab-label:hover { color: var(--c-black); }

#tab-earn-1:checked  ~ .tab-labels label[for="tab-earn-1"],
#tab-earn-2:checked  ~ .tab-labels label[for="tab-earn-2"],
#tab-earn-3:checked  ~ .tab-labels label[for="tab-earn-3"],
#tab-spend-1:checked ~ .tab-labels label[for="tab-spend-1"],
#tab-spend-2:checked ~ .tab-labels label[for="tab-spend-2"] {
  color: var(--c-accent);
  background: var(--c-white);
  box-shadow: var(--sh-sm);
}

.tab-panel { display: none; }
.tab-panel p {
  font-size: 14px;
  color: var(--c-text);
  max-width: 380px;
  margin-inline: auto;
}

#tab-earn-1:checked  ~ .panel-earn-1,
#tab-earn-2:checked  ~ .panel-earn-2,
#tab-earn-3:checked  ~ .panel-earn-3,
#tab-spend-1:checked ~ .panel-spend-1,
#tab-spend-2:checked ~ .panel-spend-2 {
  display: block;
  animation: fadeIn .3s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .points-grid { gap: 18px; }
  .points-card { padding: 32px 20px; }
}
@media (max-width: 640px) {
  .points-grid { grid-template-columns: 1fr; }
  .points-card { padding: 30px 18px; }
  .tab-label { font-size: 13px; padding: 7px 12px; }
}

/* ================== گالری ================== */
.gallery {
  background:
    radial-gradient(500px 260px at 8% 100%, rgba(240, 138, 60, .10), transparent 70%),
    var(--c-white);
}

.gallery-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 18px;
  scrollbar-width: none;
}
.gallery-scroller::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 clamp(220px, 21vw, 280px);
  margin: 0;
  scroll-snap-align: center;
}

.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-thumb:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, .35), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
}
.gallery-thumb:hover::after { opacity: 1; }
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-thumb:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item figcaption a { color: inherit; transition: color .25s; }
.gallery-item figcaption a:hover { color: var(--c-accent); text-decoration: underline; }

.gallery-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #d9cfbf;
  transition: background .25s, width .3s var(--ease);
}
.gallery-dot.is-active { background: var(--c-accent); width: 26px; }

@media (max-width: 640px) {
  .gallery-scroller { gap: 14px; }
  .gallery-item { flex-basis: 72vw; }
  .gallery-item figcaption { font-size: 12px; }
}

/* لایت‌باکس */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 14, 14, .9);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }

.lb-img {
  max-width: min(900px, 92vw);
  max-height: 74vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-caption { margin-top: 16px; color: #eee; font-size: 14px; text-align: center; }
.lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s var(--ease);
}
.lb-btn:hover { background: var(--c-accent); border-color: var(--c-accent); transform: scale(1.08); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

.lb-close { top: 16px; inset-inline-start: 16px; }
.lb-prev  { top: 50%; transform: translateY(-50%); inset-inline-start: 16px; }
.lb-next  { top: 50%; transform: translateY(-50%); inset-inline-end: 16px; }

/* ================== ویدیوها ================== */
.videos { background: var(--c-cream); }

.videos-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 18px;
  scrollbar-width: none;
}
.videos-scroller::-webkit-scrollbar { display: none; }

.video-item {
  flex: 0 0 clamp(280px, 27vw, 360px);
  margin: 0;
  scroll-snap-align: center;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-cream);
  box-shadow: var(--sh-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.video-item:hover .video-frame { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, .3), transparent 55%);
  pointer-events: none;
  transition: opacity .3s;
}
.video-frame.is-playing::after { opacity: 0; }

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease, transform .5s var(--ease);
}
.video-frame:hover img { transform: scale(1.05); }

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 3;
}
.video-frame.is-playing .video-player { opacity: 1; pointer-events: auto; }
.video-frame.is-playing img,
.video-frame.is-playing .video-play { opacity: 0; pointer-events: none; }

.video-play {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 62px;
  height: 62px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .95);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease), background .25s;
  z-index: 2;
}
/* حلقه ضربان‌دار دور دکمه پخش */
.video-play: :before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8);
  animation: pulse 2.2s ease-out infinite;
} 
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
.video-play img { width: 26px; height: 26px; object-fit: contain; }
.video-play:hover { transform: translate(50%, -50%) scale(1.1); background: var(--c-white); }

.video-item figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-black);
  text-align: center;
}

.videos-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
.videos-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #ded6c9;
  transition: background .25s, width .3s var(--ease);
}
.videos-dot.is-active { background: var(--c-accent); width: 26px; }

@media (max-width: 640px) {
  .videos-scroller { gap: 14px; }
  .video-item { flex-basis: 78vw; }
  .video-item figcaption { font-size: 13px; }
  .video-play { width: 52px; height: 52px; }
  .video-play img { width: 22px; height: 22px; }
}

/* ================== سوالات متداول ================== */
.faq { background: var(--c-cream); }

.faq-container { max-width: 780px; }

.faq-item {
  background: var(--c-white);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.faq-item:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.faq-item[open] { border-color: rgba(224, 85, 43, .35); box-shadow: var(--sh-md); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  padding-left: 64px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--c-black);
  position: relative;
  transition: color .25s;
}
.faq-item summary:hover,
.faq-item[open] summary { color: var(--c-accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--c-accent);
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--c-accent);
  color: var(--c-white);
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--c-muted);
  animation: fadeIn .3s var(--ease);
}

/* پاسخ‌ها (متن، لیست، لینک) */
.faq-answer {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.9;
  animation: fadeIn .3s var(--ease);
}
.faq-answer p { padding: 0; animation: none; }
.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p { margin-top: 10px; }
.faq-answer ul,
.faq-answer ol { padding-inline-start: 20px; }
.faq-answer ul { list-style: disc; }
.faq-answer ol { list-style: decimal; }
.faq-answer li { margin-top: 6px; }
.faq-answer li::marker { color: var(--c-accent); }
.faq-answer ul ul { margin-top: 6px; list-style: circle; }
.faq-answer strong { color: var(--c-black); font-weight: 700; }
.faq-link { color: var(--c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-link:hover { color: var(--c-accent-h); }

/* ---- دسته‌بندی سوالات (تب‌ها) ---- */
.faq-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.faq-cat {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-black);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
}
@media (hover: hover) {
  .faq-cat:hover { color: var(--c-accent); border-color: rgba(224, 85, 43, .35); transform: translateY(-2px); }
}
.faq-cat.is-active,
.faq-cat.is-active:hover {
  color: var(--c-white);
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: var(--sh-accent);
}

.faq-panel { display: none; }
.faq-panel.is-active { display: block; animation: fadeIn .3s var(--ease); }

/* انیمیشن اسکرول روی آیتم‌های داخل تب‌ها غیرفعال است تا بعد از تعویض تب، محتوا مخفی نماند */
.faq-panel .faq-item { animation: none; opacity: 1; transform: none; }
.faq-panel .faq-item:hover { transform: translateY(-2px); }
@media (hover: none) { .faq-panel .faq-item:hover { transform: none; } }

@media (max-width: 640px) {
  .faq-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .faq-cat { font-size: 14px; padding: 12px 8px; }
  .faq-item summary { padding: 18px 18px; padding-left: 58px; font-size: 14.5px; line-height: 1.8; }
  .faq-item summary::after { left: 14px; }
  .faq-answer { padding: 0 18px 20px; }
}

/* ================== فوتر ================== */
.footer {
  position: relative;
  background: linear-gradient(180deg, #181818 0%, #0f0f0f 100%);
  color: #b9b5ae;
}
.footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--grad-accent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 60px 44px;
}
.footer-brand p { font-size: 13.5px; margin-top: 16px; max-width: 300px; line-height: 1.9; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: var(--c-white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-col a { font-size: 14px; transition: color .25s, transform .25s var(--ease); }
.footer-col a:not(.btn):hover { color: var(--c-accent-2); transform: translateX(-4px); }
.footer-cta { align-self: center; margin-top: 10px; padding: 12px 24px; font-size: 13.5px; color: var(--c-white); }
.footer-col a.footer-cta:hover { color: var(--c-white); }
/* شماره تماس در فوتر */
.footer-col a[href^="tel:"] {
  font-family: var(--font-fa);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-white);
  align-self: flex-start;
}
.footer-col a[href^="tel:"]:hover { color: var(--c-accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 18px;
  font-size: 12.5px;
  text-align: center;
  color: #8f8b84;
}

/* ================== انیمیشن ورود هنگام اسکرول (در مرورگرهای پشتیبان) ================== */
@supports (animation-timeline: view()) {
  .benefit-card, .howto-card, .points-card, .gallery-item, .video-item, .faq-item {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ================== ریسپانسیو ================== */
@media (max-width: 1024px) {
  :root { --section-gap: 64px; }

  .nav { display: none; }
  .header-cta { display: none; }
  .nav-burger { display: flex; }

  /* موبایل/تبلت: همبرگر سمت راست، لوگو سمت چپ */
  .header-inner { display: flex; }
  .nav-burger { order: 1; }
  .header .logo { order: 2; margin-inline-start: auto; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-gap: 52px; --header-h: 64px; }
  .container { padding-inline: 18px; }

  .logo-img { height: 36px; }
  .section-head { margin-bottom: 40px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .howto-grid { grid-template-columns: 1fr; gap: 40px; }
  .points-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* احترام به کاربرانی که انیمیشن کم می‌خواهند */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.howto-link { color: var(--c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.howto-link:hover { color: var(--c-accent-h); }
