/* =========================================================
   ImenFix — ایمن فیکس
   ========================================================= */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --red: #e3111f;
  --red-2: #ff2a3a;
  --red-dark: #a8000f;
  --ink: #1d1a22;
  --ink-2: #3b3742;
  --muted: #5e5866;
  --light: #f1eef2;
  --white: #fff;

  --hero-bg: #2a2837;
  --services-top: #3b3a4e;
  --services-bot: #6a5871;
  --why-bg: #431626;
  --why-bg-2: #2f1622;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 12px 30px rgba(20, 10, 20, .18);
  --container: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--why-bg-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn--sm { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn--red {
  color: #fff;
  background: linear-gradient(180deg, #f2232f 0%, #c60a17 100%);
  box-shadow: 0 8px 22px rgba(227, 17, 31, .45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(227, 17, 31, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost {
  color: #fff;
  border: 1.6px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.04);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px; color: #fff;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--red);
}
.eyebrow--sm { font-size: 15px; font-weight: 500; }

.section-title { font-weight: 900; font-size: 34px; line-height: 1.4; color: var(--ink); }
.section-title--light { color: #fff; }
.section-title--center { display: flex; align-items: center; justify-content: center; gap: 18px; }
.section-title .dash, .why__title::after {
  content: ""; display: inline-block; width: 34px; height: 3px; border-radius: 3px; background: var(--red);
}
.section-title--center .dash { order: 2; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: relative; z-index: 51;
  background: linear-gradient(90deg, #2a1521 0%, #3f1f2d 30%, #4a2433 50%, #3f1f2d 70%, #2a1521 100%);
  font-size: 14px; font-weight: 500; color: #fff;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 44px; gap: 20px; }
.topbar .ico--red { filter: drop-shadow(0 0 6px rgba(255,40,60,.6)); }
.topbar__item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__item .ico { width: 18px; height: 18px; }
.topbar__insta { font-weight: 700; font-size: 14.5px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background:
    linear-gradient(to left,
      rgba(236,238,246,.93) 0%,
      rgba(238,226,236,.88) 22%,
      rgba(226,204,220,.78) 48%,
      rgba(200,190,208,.6) 70%,
      rgba(150,154,180,.42) 90%,
      rgba(120,126,152,.38) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 12px 30px rgba(10,5,15,.3), inset 0 1px 0 rgba(255,255,255,.4);
  margin-bottom: -82px;
}
.header__inner { display: flex; align-items: center; height: 82px; gap: 28px; }
.nav__link.is-active::after { bottom: -3px; height: 5px; box-shadow: 0 2px 10px rgba(227,17,31,.5); }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__img { height: 70px; width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.logo__icon { width: 44px; height: 52px; color: var(--red); filter: drop-shadow(0 3px 6px rgba(227,17,31,.35)); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-size: 29px; font-weight: 900; color: #15121a; letter-spacing: -.3px; }
.logo__text small { font-family: Arial, sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: 5.2px; color: #15121a; margin-top: 7px; direction: ltr; text-align: center; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list > li { position: relative; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 6px;
  height: 82px; padding: 0 18px;
  font-weight: 700; font-size: 15px; color: #1d1a22;
  transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link.is-active::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 8px; height: 4px;
  background: var(--red); border-radius: 4px 4px 0 0;
}
.chev { width: 13px; height: 13px; transition: transform .25s; }
.has-sub:hover .chev { transform: rotate(180deg); }
.sub {
  position: absolute; top: 100%; right: 0; min-width: 220px;
  padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s;
}
.has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.sub a:hover { background: #fdecee; color: var(--red); }

.header__cta { flex: none; }
.nav__cta-mobile { display: none; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.burger .ico { width: 28px; height: 28px; }

/* =========================================================
   HERO + SERVICES
   Laid out on the design's own 1024px grid: 1u = 1 design pixel,
   so every position/size below is read straight off the mock-up.
   ========================================================= */
.hero, .services { --u: calc(min(100vw, 1440px) / 1024); }
.stage { position: relative; width: calc(1024 * var(--u)); margin-inline: auto; }

/* ---------- HERO (design y 100 → 530) ---------- */
.hero {
  position: relative; z-index: 2;
  padding-top: 82px;                       /* header overlaps the hero */
  background:
    radial-gradient(40% 60% at 92% 20%, rgba(40,48,66,.55), transparent 70%),
    linear-gradient(180deg, #1c1c24 0%, #1b1d26 55%, #1d212c 85%, #20262f 100%);
}
.hero__stage { height: calc(383 * var(--u)); }   /* hero ends at the middle of the features bar */
/* red/mauve glow around the bar, spilling over the seam into services */
.hero__stage::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  left: calc(20 * var(--u)); right: 0; top: calc(320 * var(--u)); height: calc(130 * var(--u));
  background:
    radial-gradient(38% 45% at 52% 30%, rgba(200,30,50,.45), transparent 70%),
    radial-gradient(60% 55% at 50% 55%, rgba(120,60,85,.35), transparent 75%);
}

.hero__media {
  position: absolute; top: 0; left: 0;
  width: calc(595 * var(--u)); height: calc(363 * var(--u));
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 9%);
          mask-image: linear-gradient(to left, transparent 0%, #000 9%);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* left fade only when the screen is wider than the design */
@media (min-width: 1441px) {
  .hero__media { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 9%, #000 92%, transparent 100%); mask-image: linear-gradient(to left, transparent 0%, #000 9%, #000 92%, transparent 100%); }
}

.hero__content {
  position: absolute; top: calc(16 * var(--u)); right: calc(49 * var(--u));
  width: calc(382 * var(--u));
}
.hero .eyebrow { font-size: calc(14 * var(--u)); font-weight: 700; gap: calc(10 * var(--u)); }
.hero .eyebrow::before { width: calc(20 * var(--u)); height: calc(3 * var(--u)); }
.hero__title {
  margin: calc(4 * var(--u)) 0 calc(10 * var(--u));
  font-weight: 900; font-size: calc(41 * var(--u)); line-height: 1.3; color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.hero__title span {
  display: block; font-size: calc(57 * var(--u)); line-height: 1.12; color: #ff1a2b;
  text-shadow: 0 0 calc(22 * var(--u)) rgba(255, 20, 40, .5), 0 3px 10px rgba(0,0,0,.4);
}
.hero__desc { color: #ecebf0; font-size: calc(12.8 * var(--u)); line-height: 1.7; font-weight: 500; }
.hero__actions { display: flex; gap: calc(20 * var(--u)); margin-top: calc(16 * var(--u)); }
.hero__actions .btn {
  height: calc(37 * var(--u)); padding: 0 calc(18 * var(--u));
  font-size: calc(13 * var(--u)); gap: calc(9 * var(--u)); border-radius: 999px;
}
.hero__actions .btn--red { min-width: calc(220 * var(--u)); }
.hero__actions .btn--ghost {
  min-width: calc(146 * var(--u)); padding: 0 calc(12 * var(--u)) !important; border: 1.5px solid rgba(255,255,255,.8); background: rgba(10,10,16,.35);
}
.hero__actions .ico { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.btn__ring {
  width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7); background: radial-gradient(circle, #2b2b33 45%, transparent 50%);
}
.hero__dots { position: absolute; top: calc(310 * var(--u)); left: calc(671 * var(--u)); direction: ltr; display: flex; gap: calc(10 * var(--u)); }
.hero__dots i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: #e8e6ee; }
.hero__dots i.is-active { background: #ff0a14; box-shadow: 0 0 8px rgba(255,10,20,.7); }

/* Features bar: design x 48 → 1004, y 465 → 528 */
.features {
  position: absolute; z-index: 3;
  top: calc(352 * var(--u)); left: calc(48 * var(--u)); right: calc(20 * var(--u));
  height: calc(63 * var(--u));
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  border-radius: calc(14 * var(--u));
  background: linear-gradient(180deg, rgba(52,50,62,.5) 0%, rgba(28,30,40,.62) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 34px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
}
.feature { display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u)); color: #fff; height: calc(38 * var(--u)); }
.feature + .feature { border-right: 1px solid rgba(255,255,255,.2); }
.feature__ico { width: calc(39 * var(--u)); height: calc(39 * var(--u)); color: #ff1e30; flex: none; filter: drop-shadow(0 0 6px rgba(255,30,50,.5)); }
.feature strong { display: block; font-size: calc(15 * var(--u)); font-weight: 800; line-height: 1.45; }
.feature span { display: block; font-size: calc(12.6 * var(--u)); color: #e4e2ea; line-height: 1.45; }

/* ---------- SERVICES (design y 530 → 870) ---------- */
.services {
  position: relative;
  padding-top: calc(34 * var(--u));        /* room for the lower half of the features bar */
  padding-bottom: 70px;                    /* products section overlaps by 70px */
  background:
    radial-gradient(35% 40% at 95% 15%, rgba(60,72,92,.45), transparent 70%),
    linear-gradient(180deg, #20262f 0%, #222a36 25%, #283040 60%, #2f3847 100%);
}
.services__stage { height: calc(340 * var(--u)); }
.services__media {
  position: absolute; top: 0; left: 0;
  width: calc(566 * var(--u)); height: calc(340 * var(--u));
}
.services__media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 8%), linear-gradient(to bottom, transparent 0%, #000 5%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to left, transparent 0%, #000 8%), linear-gradient(to bottom, transparent 0%, #000 5%);
          mask-composite: intersect;
}
@media (min-width: 1441px) {
  .services__media img { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 8%, #000 93%, transparent 100%); mask-image: linear-gradient(to left, transparent 0%, #000 8%, #000 93%, transparent 100%); }
}

.services__content {
  position: absolute; top: calc(10 * var(--u)); right: calc(46 * var(--u));
  width: calc(403 * var(--u));
}
.services .eyebrow { font-size: calc(12.5 * var(--u)); font-weight: 500; gap: calc(9 * var(--u)); }
.services .eyebrow::before { width: calc(20 * var(--u)); height: calc(2.5 * var(--u)); }
.services .section-title { font-size: calc(31 * var(--u)); line-height: 1.25; margin: 0 0 calc(13 * var(--u)); }

.svc-grid { display: grid; grid-template-columns: repeat(2, calc(195 * var(--u))); justify-content: space-between; row-gap: calc(12 * var(--u)); }
.svc {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  height: calc(102 * var(--u));
  border-radius: calc(13 * var(--u));
  background: linear-gradient(180deg, #f3f3f8 0%, #e4e4ec 100%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 24px rgba(5,10,20,.35), inset 0 1px 0 #fff;
  transition: transform .3s, box-shadow .3s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.45); }
.svc__ico { width: calc(34 * var(--u)); height: calc(34 * var(--u)); color: #e8101e; margin-bottom: calc(5 * var(--u)); }
.svc strong { font-weight: 900; font-size: calc(14 * var(--u)); line-height: 1.5; color: #121018; }
.svc span { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 500; color: #2a2730; line-height: 1.6; }
.svc__go { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.svc--active {
  background:
    radial-gradient(100% 75% at 50% 0%, #f23240 0%, rgba(242,50,64,0) 70%),
    linear-gradient(180deg, #d01b28 0%, #8a0a14 55%, #5c0710 100%);
  border: 1.5px solid rgba(255,170,178,.9);
  box-shadow: 0 0 16px rgba(255,30,50,.6), 0 12px 28px rgba(80,0,10,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.svc--active .svc__ico, .svc--active strong, .svc--active span { color: #fff; }

/* =========================================================
   PRODUCTS
   ========================================================= */
.products {
  --step: 24px;                            /* height difference between left and right edge */
  position: relative;
  margin-top: -70px;
  padding: 50px 0 120px;
  overflow: hidden;
}
.products__base {
  position: absolute; inset: var(--step) 0 0 0; z-index: 0;
  background: linear-gradient(180deg, #f4f2f5 0%, #ece8ed 100%);
  border-top-left-radius: 70px;
}
.products__cap {
  position: absolute; top: 0; left: 38%; right: 0; height: calc(var(--step) + 2px); z-index: 0;
  background: #f4f2f5;
}
.products__cap svg { position: absolute; top: 0; right: calc(100% - 1px); width: 90px; height: 100%; display: block; }
.products::before {
  content: ""; position: absolute; inset: var(--step) 0 0 auto; width: 40%; z-index: 0;
  background: radial-gradient(70% 60% at 100% 45%, rgba(220,170,180,.45), transparent 70%);
  pointer-events: none;
}
.products__gauge {
  position: absolute; z-index: 0; left: auto; right: -40px; top: 30px; width: 300px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
          mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  pointer-events: none;
}
.products .container { position: relative; z-index: 1; }
.products .section-title { margin-bottom: 30px; font-size: 32px; }

.prod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1020px; margin-inline: auto;
  margin-left: calc((100% - 1020px) / 2 + 20px);
}
.prod {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfafb 0%, #efedf0 100%);
  box-shadow: 0 14px 34px rgba(60, 30, 45, .14), inset 0 1px 0 #fff;
  transition: transform .3s, box-shadow .3s;
}
.prod:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(60, 30, 45, .22); }
.prod__img { height: 160px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 12px; }
.prod__img img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.prod h3 { font-weight: 900; font-size: 19px; color: #15121a; line-height: 1.5; }
.prod p { font-size: 14px; color: var(--ink-2); min-height: 1.6em; line-height: 1.6; }
.prod__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 14px; font-weight: 800; color: var(--red-dark);
}
.prod__link .ico { width: 20px; height: 20px; transition: transform .25s; }
.prod__link:hover .ico { transform: translateX(-4px); }

/* =========================================================
   WHY
   ========================================================= */
.why {
  position: relative; z-index: 2;
  margin-top: -60px;
  padding: 36px 0 60px;
  border-radius: 34px 34px 0 0;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(120, 30, 55, .45), transparent 70%),
    linear-gradient(180deg, #4a1828 0%, #3a1523 60%, #2e1520 100%);
  box-shadow: 0 -10px 30px rgba(40,10,20,.25);
}
.why__title { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; font-size: 32px; }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.why-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 6px 18px; color: #fff;
}
.why-item + .why-item { border-right: 1px solid rgba(255,255,255,.14); }
.why-item__ico { width: 42px; height: 42px; color: var(--red-2); margin-bottom: 12px; filter: drop-shadow(0 0 10px rgba(255,40,60,.4)); }
.why-item strong { font-weight: 800; font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.why-item span { font-size: 13.5px; color: #e8dfe4; line-height: 1.75; }
.why-item small { font-size: 13px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: linear-gradient(180deg, #2e1520 0%, #2b1421 100%);
  padding: 4px 0 30px;
}
.contact-card {
  display: grid; grid-template-columns: 1.35fr 1fr 1.05fr; align-items: center;
  padding: 18px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fdfcfd 0%, #f2eff3 100%);
  box-shadow: 0 20px 44px rgba(0,0,0,.4);
}
.contact-card__col { padding: 6px 26px; }
.contact-card__col + .contact-card__col { border-right: 1.5px solid #e2b9c0; }

.contact-card__address { display: flex; align-items: center; gap: 12px; }
.address { display: flex; gap: 8px; order: 1; }
.contact-card__map { order: 2; width: 190px; margin-left: -20px; mix-blend-mode: multiply; }
.address__pin { width: 22px; height: 22px; margin-top: 2px; }
.address p { font-weight: 500; font-size: 15px; line-height: 1.9; color: #15121a; }

.contact-card__phones { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.contact-card__phones a {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 18px; color: #15121a; letter-spacing: .5px;
  transition: color .2s;
}
.contact-card__phones a:hover { color: var(--red); }
.contact-card__phones .ico { width: 21px; height: 21px; }

.contact-card__insta { display: flex; align-items: center; justify-content: center; gap: 22px; }
.contact-card__insta p { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.contact-card__insta div a { display: block; font-weight: 800; font-size: 24px; color: #15121a; margin-top: 6px; text-align: center; }
.insta-big { order: 2; color: var(--red); }
.insta-big svg { width: 54px; height: 54px; display: block; }
.copyright { text-align: center; color: rgba(255,255,255,.5); font-size: 13px; margin-top: 22px; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav__link { padding: 0 11px; font-size: 14px; }
  .prod-grid { margin-left: auto; max-width: 900px; }
  .products__gauge { width: 220px; opacity: .55; }
  .contact-card { grid-template-columns: 1.45fr 1fr 1fr; padding: 16px 14px; }
  .contact-card__col { padding: 6px 14px; }
  .contact-card__map { width: 118px; margin-left: -8px; }
  .address p { font-size: 13.5px; white-space: nowrap; }
  .contact-card__phones a { font-size: 16.5px; }
  .contact-card__insta { gap: 14px; }
  .contact-card__insta div a { font-size: 21px; }
}

@media (max-width: 992px) {
  .topbar__center { display: none; }
  .header__cta { display: none; }
  .burger { display: block; margin-right: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); z-index: 60;
    flex-direction: column; justify-content: flex-start; gap: 20px;
    padding: 90px 22px 30px; background: #fff;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
    transform: translateX(100%); transition: transform .35s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { height: 50px; border-bottom: 1px solid #eee; }
  .nav__link.is-active::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 12px; display: none; }
  .has-sub.is-open .sub { display: block; }
  .nav__cta-mobile { display: inline-flex; }

  /* stacked layout below tablet width */
  .hero, .services { --u: 1.15px; }
  .stage { width: 100%; height: auto !important; padding-inline: 16px; }
  .hero__media { position: relative; width: calc(100% + 32px); height: auto; margin-inline: -16px; aspect-ratio: 595 / 363; }
  .hero__content { position: relative; inset: auto; width: 100%; margin-top: -30px; padding-bottom: 24px; }
  .br-lg { display: none; }
  .hero__dots { position: static; justify-content: center; margin: -10px 0 22px; }
  .features { position: relative; inset: auto; height: auto; grid-template-columns: repeat(2, 1fr); row-gap: 18px; padding: 16px 6px; margin-bottom: 30px; }
  .feature:nth-child(3) { border-right: 0; }
  .services__media { position: relative; width: calc(100% + 32px); height: auto; margin-inline: -16px; aspect-ratio: 566 / 340; }
  .services__content { position: relative; inset: auto; width: 100%; padding: 10px 0 20px; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .products__gauge { display: none; }

  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .why-item:nth-child(4) { border-right: 0; }

  .contact-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .contact-card__col + .contact-card__col { border-right: 0; border-top: 1.5px solid #ecd2d6; padding-top: 18px; }
  .contact-card__address { justify-content: center; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .topbar { font-size: 12px; }
  .header__inner { height: 70px; }
  .header { margin-bottom: -70px; }
  .hero { padding-top: 70px; }
  .logo__text strong { font-size: 24px; }
  .logo__icon { width: 36px; height: 44px; }
  .logo__img { height: 56px; }
  .hero, .services { --u: .86px; }
  .hero__content { margin-top: -6px; }
  .hero__actions { flex-wrap: wrap; gap: 12px; }
  .feature { flex-direction: column; text-align: center; gap: 6px; height: auto; padding: 0 6px; }
  .section-title, .products .section-title, .why__title { font-size: 25px; }
  .svc { height: auto; padding: 14px 8px; }
  .prod-grid { grid-template-columns: 1fr; max-width: 360px; }
  .products { --step: 16px; }
  .products__base { border-top-left-radius: 40px; }
  .products__cap { left: 30%; }
  .products__cap svg { width: 60px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { border-right: 0 !important; padding: 6px 8px; }
  .why-item:last-child { grid-column: 1 / -1; }
  .contact-card__address { flex-direction: column; text-align: center; }
  .contact-card__map { margin: 0; order: 0; }
  .contact-card__insta { flex-direction: column-reverse; gap: 10px; text-align: center; }
}

/* =========================================================
   SITE FOOTER — same on every page
   ========================================================= */
.site-footer {
  position: relative; z-index: 2;
  margin-top: 40px; padding: 34px 0 22px;
  border-radius: 34px 34px 0 0;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(120, 30, 55, .35), transparent 70%),
    linear-gradient(180deg, #3a1523 0%, #2e1520 45%, #24101a 100%);
  box-shadow: 0 -10px 30px rgba(40,10,20,.18);
}
.site-footer .contact-card { box-shadow: 0 20px 44px rgba(0,0,0,.35); }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 24px; font-size: 14px; font-weight: 600; }
.site-footer__nav a { color: rgba(255,255,255,.82); transition: color .2s; }
.site-footer__nav a:hover { color: #ff3344; }
.site-footer .copyright { color: rgba(255,255,255,.5); margin-top: 16px; }

/* =========================================================
   CLIENTS — logo strip under "خدمات تخصصی" (home), straight on the dark background
   ========================================================= */
.clients { position: relative; z-index: 1; margin-top: 34px; margin-bottom: 26px; }
.clients__title { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; font-size: 18px; font-weight: 800; color: #fff; }
.clients__title::before, .clients__title::after { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--red); }
.clients__band {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.clients__track { display: flex; width: max-content; animation: clients-roll 38s linear infinite; }
.clients__band:hover .clients__track { animation-play-state: paused; }
.clients__list { display: flex; align-items: center; }
.clients__list li { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: 240px; height: 120px; padding: 0 26px; }
/* logos drawn light-grey so they read on the dark section */
.clients__list img { max-width: 100%; max-height: 66px; width: auto; filter: grayscale(1) invert(1) brightness(1.15) contrast(.9); opacity: .6; transition: opacity .3s; }
.clients__list li:hover img { opacity: 1; }
.clients__named img { max-height: 58px; }
.clients__named span { direction: rtl; font-size: 13px; font-weight: 800; line-height: 1.5; color: rgba(255,255,255,.65); white-space: nowrap; transition: color .3s; }
.clients__named:hover span { color: #fff; }
@keyframes clients-roll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .clients__track { animation: none; } }

/* =========================================================
   REVIEWS + FAQ (home, after "چرا ایمن فیکس")
   ========================================================= */
.reviews, .faq { position: relative; z-index: 2; }
.reviews { color: #fff; background: linear-gradient(180deg, #2e1520 0%, #2b1421 100%); }
.reviews { padding: 26px 0 50px; }
.reviews__sub, .faq__sub { text-align: center; color: #e2d8dd; font-size: 15px; margin: 6px 0 30px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  display: flex; flex-direction: column; padding: 24px 24px 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 34px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .3s, border-color .3s;
}
.review:hover { transform: translateY(-5px); border-color: rgba(255,90,105,.5); }
.review__stars { display: flex; gap: 3px; color: #ffb21e; }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { flex: 1; margin: 14px 0 18px; font-size: 15px; line-height: 2; color: #f1eaee; }
.review blockquote::before { content: "«"; color: var(--red-2); font-weight: 900; margin-left: 2px; }
.review blockquote::after { content: "»"; color: var(--red-2); font-weight: 900; margin-right: 2px; }
.review footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.review__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: linear-gradient(180deg, #f2232f, #b50a17); box-shadow: 0 6px 14px rgba(200,15,30,.4); }
.review__avatar svg { width: 22px; height: 22px; color: #fff; }
.review strong { display: block; font-size: 15px; font-weight: 800; }
.review small { display: block; font-size: 13px; color: #cfc4ca; }

.faq { padding: 60px 0 94px; color: var(--ink); background: #fff; }
.faq__eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--red); }
.faq__eyebrow::before, .faq__eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--red); }
.faq__title { margin: 6px 0 36px; text-align: center; font-size: 36px; font-weight: 900; color: #15121a; }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px 22px; max-width: 1150px; margin: 0 auto; }
.faq__item {
  border-radius: 18px; color: #fff; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(240,40,55,.55), transparent 65%), linear-gradient(160deg, #c3101e 0%, #9a0b17 55%, #6e0812 100%);
  border: 1px solid rgba(255,150,160,.45);
  box-shadow: 0 12px 26px rgba(150,10,25,.22);
  transition: transform .25s, box-shadow .25s;
}
.faq__item:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(150,10,25,.3); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  min-height: 84px; padding: 18px 24px; font-size: 16px; font-weight: 800; line-height: 1.6;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { flex: 1; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.16); font: 400 22px/1 Arial, sans-serif; transition: transform .3s, background .3s;
}
.faq__item[open] summary::after { content: "−"; background: rgba(255,255,255,.28); }
.faq__a { padding: 0 24px 20px; font-size: 14.6px; line-height: 2; color: #fbe9eb; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; margin: 0 24px; padding-inline: 0; }
.faq__a a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.home .site-footer { margin-top: -34px; border-radius: 34px 34px 0 0; }

@media (max-width: 992px) {
  .reviews__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .faq__list { grid-template-columns: 1fr; max-width: 640px; }
  .clients__list li { width: 200px; height: 104px; padding: 0 20px; }
}
@media (max-width: 640px) {
  .site-footer { border-radius: 24px 24px 0 0; }
  .faq__item summary { min-height: 0; padding: 14px 16px; font-size: 15px; }
  .faq__a { margin: 0 16px; }
  .faq__title { font-size: 28px; }
  .clients__list li { width: 170px; height: 92px; }
  .clients__list img { max-height: 52px; }
}

/* FAQ: two independent columns, so opening a question only moves the ones below it */
.faq__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* footer credit */
.site-footer__credit { text-align: center; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.site-footer__credit a { color: rgba(255,255,255,.75); font-weight: 700; transition: color .2s; }
.site-footer__credit a:hover { color: #ff3344; }

/* phones: products and reviews as swipe carousels, one card at a time */
.carousel-dots { display: none; }
@media (max-width: 700px) {
  .prod-grid[data-carousel], .reviews__grid[data-carousel] {
    display: flex; gap: 14px; max-width: none; margin: 0 -16px; padding: 6px 16px 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .prod-grid[data-carousel]::-webkit-scrollbar, .reviews__grid[data-carousel]::-webkit-scrollbar { display: none; }
  .prod-grid[data-carousel] > .prod, .reviews__grid[data-carousel] > .review { flex: 0 0 84%; scroll-snap-align: center; }
  .reviews__grid[data-carousel] > .review:hover, .prod-grid[data-carousel] > .prod:hover { transform: none; }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(120,100,115,.35); cursor: pointer; transition: width .25s, background .25s; }
  .carousel-dots button.is-active { width: 22px; background: var(--red); }
  .reviews .carousel-dots button { background: rgba(255,255,255,.3); }
  .reviews .carousel-dots button.is-active { background: var(--red-2); }
}

/* mobile menu: full-height panel + dimmed page behind it */
@media (max-width: 992px) {
  .header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: #ece9ee; }
  .header.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(15,8,18,.55); }
  .header .nav { height: 100vh; height: 100dvh; }
  .burger { position: relative; z-index: 61; }
  .header.menu-open .burger { color: #fff; }
}

/* footer: links in a white column, copyright right / credit left */
.site-footer__nav { flex-direction: column; align-items: flex-start; gap: 10px; width: max-content; margin: 26px 0 0; padding-right: 6px; }
.site-footer__nav a { color: #fff; font-size: 15px; font-weight: 600; }
.site-footer__nav a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 50%; background: var(--red-2); vertical-align: middle; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bottom .copyright, .site-footer__bottom .site-footer__credit { margin: 0; text-align: start; }
@media (max-width: 640px) {
  .site-footer__nav { align-items: center; margin-inline: auto; padding: 0; }
  .site-footer__nav a::before { display: none; }
  .site-footer__bottom { flex-direction: column; justify-content: center; }
  .site-footer__bottom .copyright, .site-footer__bottom .site-footer__credit { text-align: center; }
}

/* footer card: 4 columns — address | links | phones | instagram */
.site-footer .contact-card { grid-template-columns: 1.45fr .85fr 1fr 1.05fr; }
.contact-card__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact-card__links a { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: #15121a; line-height: 1.75; white-space: nowrap; transition: color .2s; }
.contact-card__links a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.contact-card__links a:hover { color: var(--red); }
@media (max-width: 1180px) {
  .site-footer .contact-card { grid-template-columns: 1.5fr .9fr 1fr 1fr; }
  .contact-card__links a { font-size: 13.5px; }
}
@media (max-width: 992px) {
  .site-footer .contact-card { grid-template-columns: 1fr; }
  .contact-card__links { align-items: center; display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; column-gap: 34px; }
}
@media (max-width: 400px) {
  .contact-card__links { grid-template-columns: max-content; }
}
@media (min-width: 993px) {
  .site-footer .contact-card { grid-template-columns: 1.75fr .8fr .95fr 1fr; }
  .site-footer .contact-card__col { padding: 6px 20px; }
  .site-footer .contact-card__map { width: 120px; margin-left: -6px; }
  .site-footer .address p { font-size: 14px; white-space: nowrap; }
  .site-footer .contact-card__phones a { font-size: 17px; }
  .site-footer .contact-card__insta { gap: 14px; }
  .site-footer .contact-card__insta p { font-size: 13px; white-space: nowrap; }
  .site-footer .contact-card__insta div a { font-size: 21px; }
}
@media (min-width: 993px) and (max-width: 1180px) {
  .site-footer .contact-card__map { display: none; }
}

/* footer: messenger icons (WhatsApp, Eitaa, Bale, Rubika) */
.contact-card__insta .msgr { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.contact-card__insta .msgr a.msgr__a { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; font-size: 11px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.msgr__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; transition: transform .2s, box-shadow .2s; }
.msgr__ico svg { width: 19px; height: 19px; }
.msgr__a:hover .msgr__ico { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.msgr__a--whatsapp .msgr__ico { background: #25D366; }
.msgr__a--eitaa .msgr__ico { background: #EE7D1F; }
.msgr__a--bale .msgr__ico { background: #1FA88E; }
.msgr__a--rubika .msgr__ico { background: linear-gradient(135deg, #7B2FF7, #E0367A); }
.msgr small { font-size: 11px; line-height: 1; }

/* mobile: a hamburger button that is easy to see */
@media (max-width: 992px) {
  .burger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--red); color: #fff;
            box-shadow: 0 6px 16px rgba(227, 17, 31, .45); font: 800 13px "Vazirmatn", Tahoma, sans-serif; }
  .burger .ico { width: 22px; height: 22px; }
  .burger::after { content: "منو"; }
  .header.menu-open .burger { color: #fff; background: #3a3036; box-shadow: none; }
  .header.menu-open .burger::after { content: "بستن"; }
}

/* header: account + cart */
.hdr-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-tool { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px;
            border: 1.5px solid #e6dfe3; background: rgba(255,255,255,.75); color: #1d1a22; font-weight: 800; font-size: 13.5px; transition: border-color .2s, color .2s; }
.hdr-tool:hover { border-color: var(--red); color: var(--red); }
.hdr-tool svg { width: 21px; height: 21px; flex: none; }
.hdr-tool--cart { padding: 0 11px; }
.hdr-tool__n { position: absolute; top: -7px; left: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red);
               color: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 3px 8px rgba(227,17,31,.45); }
.hdr-tool__n[hidden] { display: none; }
.nav__link { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 993px) { .hdr-tool span { display: none; } .hdr-tool { padding: 0 10px; } .header__inner { gap: 16px; } .nav__link { padding: 0 12px; } }
@media (max-width: 1180px) and (min-width: 993px) { .nav__link { padding: 0 8px; font-size: 14px; } .header__cta { padding-inline: 12px; } }
@media (max-width: 992px) {
  .hdr-tools { margin-right: auto; gap: 6px; }
  .hdr-tools + .header__cta + .burger, .hdr-tools ~ .burger { margin-right: 6px; }
  .hdr-tool { height: 40px; padding: 0 9px; }
  .hdr-tool span { display: none; }
}
.shop-toast.is-on { pointer-events: auto; }
.shop-toast a { color: #ff8a94; text-decoration: underline; margin-inline-start: 4px; }

/* footer social column: text, handle, then one row of small icons (Instagram first) */
.contact-card__insta { flex-direction: column; justify-content: center; text-align: center; }
.contact-card__insta > div { display: flex; flex-direction: column; align-items: center; }
.msgr__a--instagram .msgr__ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.contact-card__insta .msgr { flex-wrap: wrap; gap: 10px 9px; }
.contact-card__insta .msgr { flex-wrap: nowrap; gap: 4px; }
.contact-card__insta .msgr a.msgr__a { width: 42px; font-size: 10px; }
.contact-card__insta .msgr .msgr__ico { width: 32px; height: 32px; }
.contact-card__insta .msgr .msgr__ico svg { width: 18px; height: 18px; }
.contact-card__insta .msgr small { font-size: 10px; white-space: nowrap; }

/* footer: social / messenger links in one column, red + white */
.contact-card__social { display: flex; align-items: center; justify-content: center; }
.contact-card__social .msgr { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; }
.contact-card__social .msgr__a { display: flex; flex-direction: row; align-items: center; gap: 10px; color: #15121a; font-weight: 800; font-size: 14.5px; text-decoration: none; transition: color .2s; }
.contact-card__social .msgr__a:hover { color: var(--red); }
.contact-card__social .msgr__ico, .contact-card__social .msgr__a--instagram .msgr__ico, .contact-card__social .msgr__a--rubika .msgr__ico,
.contact-card__social .msgr__a--whatsapp .msgr__ico, .contact-card__social .msgr__a--eitaa .msgr__ico, .contact-card__social .msgr__a--bale .msgr__ico {
  width: 30px; height: 30px; background: var(--red); color: #fff; box-shadow: 0 4px 10px rgba(227, 17, 31, .3); }
.contact-card__social .msgr__ico svg { width: 17px; height: 17px; }
.contact-card__social .msgr small { font-size: 14.5px; line-height: 1.2; }
@media (max-width: 992px) { .contact-card__social .msgr { align-items: flex-start; } }
