/* ═══════════════════════════════════════════════════════════════════
   M AgenC — صفحهٔ اصلی
   زبان بصری: Emerald Atelier · زمرد + طلای زعفرانی روی عاج گرم
   همهٔ رنگ‌ها توکنی هستند و در هر دو تم روشن و تیره کار می‌کنند.
   ═══════════════════════════════════════════════════════════════════ */

:root,
html[data-theme="light"] {
  --ma-bg: #F7F3EA;
  --ma-bg-alt: #EFE8D9;
  --ma-surface: #FFFDF8;
  --ma-surface-2: #F2ECDF;
  --ma-ink: #1E2A25;
  --ma-soft: #5C6A62;
  --ma-border: #E2D9C8;
  --ma-primary: #00674f;
  --ma-primary-bright: #0A7F63;
  --ma-gold: #B0863F;
  --ma-gold-soft: rgba(176, 134, 63, .14);
  --ma-gold-line: rgba(176, 134, 63, .38);
  --ma-dark: #07130F;
  --ma-dark-2: #0B1D17;
  --ma-cream: #F3EDDF;
  --ma-cream-soft: rgba(243, 237, 223, .72);
  --ma-danger: #B4472F;
  --ma-shadow: 0 22px 55px -34px rgba(4, 20, 14, .42);
  --ma-shadow-lg: 0 34px 80px -40px rgba(4, 20, 14, .5);
  --ma-ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --ma-bg: #07130F;
  --ma-bg-alt: #0C1B16;
  --ma-surface: #0E201A;
  --ma-surface-2: #132A22;
  --ma-ink: #F3EDDF;
  --ma-soft: #A9B8AE;
  --ma-border: #263B31;
  --ma-primary: #0E8F6C;
  --ma-primary-bright: #12A57C;
  --ma-gold: #E0BE79;
  --ma-gold-soft: rgba(224, 190, 121, .12);
  --ma-gold-line: rgba(224, 190, 121, .34);
  --ma-dark: #04100C;
  --ma-dark-2: #081712;
  --ma-cream: #F3EDDF;
  --ma-cream-soft: rgba(243, 237, 223, .72);
  --ma-danger: #E0806A;
  --ma-shadow: 0 24px 60px -32px rgba(0, 0, 0, .85);
  --ma-shadow-lg: 0 38px 90px -40px rgba(0, 0, 0, .92);
}

/* ── پایه ────────────────────────────────────────────────────────── */
#ma {
  background: var(--ma-bg);
  color: var(--ma-ink);
  font-family: var(--font-body, VazirMatn, Tahoma, sans-serif);
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
#ma *, #ma *::before, #ma *::after { box-sizing: border-box; }
#ma img { max-width: 100%; }
#ma a { text-decoration: none; color: inherit; }
#ma p { margin: 0; }
#ma ul { margin: 0; padding: 0; list-style: none; }
#ma h1, #ma h2, #ma h3, #ma h4 {
  font-family: var(--font-heading, VazirMatn, Tahoma, sans-serif);
  letter-spacing: 0;
  margin: 0;
}
#ma button { font-family: inherit; }

/* 🔒 تضمین دیده‌شدن محتوا: انیمیشن ظهور موتور نباید محتوای سکشن‌ها را پنهان نگه دارد */
#ma section {
  opacity: 1 !important;
  transform: none !important;
}
#ma section[data-rb] { opacity: 1; }

.ma-wrap {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.ma-sec { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.ma-sec + .ma-sec { border-top: 1px solid var(--ma-border); }

/* لینک‌های لنگری نباید زیر هدر چسبان پنهان شوند */
#ma section[id], #ma .ma-case[id] { scroll-margin-top: 124px; }

/* ── تیترها و کیکرها ─────────────────────────────────────────────── */
.ma-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ma-gold);
  margin: 0 0 16px;
}
.ma-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--ma-gold);
  opacity: .7;
}
.ma-kicker--light { color: var(--ma-gold); }

.ma-h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  font-weight: 900;
  line-height: 1.38;
  color: var(--ma-ink);
  margin: 0 0 14px;
}
.ma-h2 [data-rb="shiny-text"] { display: inline; }

.ma-sub {
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 2.05;
  color: var(--ma-soft);
  max-width: 680px;
}

.ma-sec-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 46px); }
.ma-sec-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.ma-sec-head--split > div { max-width: 720px; }

.ma-divider {
  display: block;
  width: min(240px, 50%);
  margin-top: 22px;
  opacity: .85;
}

.ma-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12.5px, .95vw, 13.5px);
  font-weight: 800;
  color: var(--ma-primary);
  white-space: nowrap;
  border-bottom: 1px solid var(--ma-gold-line);
  padding-bottom: 4px;
  transition: color .3s var(--ma-ease), border-color .3s var(--ma-ease);
}
.ma-link svg { width: 16px; height: 16px; }
.ma-link:hover { color: var(--ma-gold); border-color: var(--ma-gold); }

/* ── دکمه‌ها — تک‌خطی، بدون سرریز ───────────────────────────────── */
.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: clamp(12px, 0.88vw, 13.5px);
  font-weight: 800;
  padding: 12px 22px;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ma-ease), background .3s var(--ma-ease), color .3s var(--ma-ease), border-color .3s var(--ma-ease), box-shadow .3s var(--ma-ease);
  text-decoration: none;
  min-height: 46px;
}
.ma-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ma-btn-solid {
  background: var(--ma-primary);
  color: #FFFFFF;
  box-shadow: 0 14px 32px -18px rgba(0, 103, 79, .7);
}
.ma-btn-solid:hover { background: var(--ma-primary-bright); color: #FFFFFF; transform: translateY(-2px); }
.ma-btn-ghost {
  background: transparent;
  color: var(--ma-ink);
  border-color: var(--ma-border);
}
.ma-btn-ghost:hover { border-color: var(--ma-gold); color: var(--ma-gold); background: var(--ma-gold-soft); }
.ma-btn-gold {
  background: linear-gradient(135deg, var(--ma-gold), #D9B96F);
  color: #101a13;
  box-shadow: 0 16px 36px -20px rgba(176, 134, 63, .8);
}
.ma-btn-gold:hover { transform: translateY(-2px); color: #08110c; }

/* ═══════════ ۱ · هیرو ═══════════════════════════════════════════ */
.ma-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(46px, 6.5vw, 92px) clamp(50px, 7vw, 96px);
  background:
    radial-gradient(900px 520px at 82% 8%, var(--ma-gold-soft), transparent 62%),
    radial-gradient(760px 480px at 6% 92%, rgba(0, 103, 79, .12), transparent 64%),
    var(--ma-bg);
  overflow: hidden;
}
.ma-hero__glow {
  position: absolute;
  inset-inline-end: -8%;
  top: -18%;
  width: 56vw;
  height: 56vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ma-gold) 20%, transparent), transparent 66%);
  filter: blur(38px);
  pointer-events: none;
  z-index: 0;
}
.ma-hero__orn {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  opacity: .26;
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] .ma-hero__orn { opacity: .4; mix-blend-mode: screen; }

.ma-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.ma-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--ma-gold-line);
  background: color-mix(in srgb, var(--ma-surface) 70%, transparent);
  color: var(--ma-soft);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 22px;
  backdrop-filter: blur(6px);
}
.ma-eyebrow__line { width: 22px; height: 1px; background: var(--ma-gold); display: inline-block; }

.ma-hero__title {
  font-size: clamp(2.6rem, 6.1vw, 5.4rem);
  font-weight: 900;
  line-height: 1.14;
  color: var(--ma-ink);
  margin: 0 0 22px;
  text-wrap: balance;
}
.ma-hero__title [data-rb="blur-text"] { display: inline; }

.ma-hero__sub {
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 2.05;
  color: var(--ma-soft);
  max-width: 560px;
  margin: 0 0 30px;
}

.ma-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.ma-hero__points {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.ma-hero__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ma-ink);
}
.ma-hero__points svg { width: 15px; height: 15px; color: var(--ma-primary); flex: 0 0 auto; }
html[data-theme="dark"] .ma-hero__points svg { color: var(--ma-gold); }

.ma-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ma-soft);
  font-size: 12.5px;
}
.ma-hero__meta-line { width: 34px; height: 1px; background: var(--ma-gold-line); }

/* قاب هنری هیرو */
.ma-hero__visual { position: relative; padding: 6px; }
.ma-frame {
  position: relative;
  border-radius: 24px;
  padding: 13px;
  background:
    linear-gradient(150deg, rgba(217, 185, 111, .55), rgba(0, 103, 79, .35) 42%, rgba(217, 185, 111, .5));
  box-shadow: var(--ma-shadow-lg), inset 0 0 0 1px rgba(255, 253, 248, .16);
}
.ma-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(243, 237, 223, .32);
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}
.ma-frame > img:first-child {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  object-fit: cover;
  border-radius: 15px;
  filter: saturate(1.02);
}
.ma-frame__overlay {
  position: absolute;
  inset: 13px;
  width: calc(100% - 26px);
  height: calc(100% - 26px);
  object-fit: fill;
  pointer-events: none;
  opacity: .9;
  z-index: 3;
}
.ma-frame__tag {
  position: absolute;
  top: 26px;
  inset-inline-start: 26px;
  z-index: 4;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #F3EDDF;
  background: rgba(5, 20, 14, .62);
  border: 1px solid rgba(224, 190, 121, .45);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
}

.ma-corner {
  position: absolute;
  pointer-events: none;
  opacity: .6;
  z-index: 4;
}
.ma-corner--tr { top: -26px; inset-inline-end: -22px; width: 148px; transform: scaleX(-1); }
.ma-corner--bl { bottom: -24px; inset-inline-start: -22px; width: 128px; transform: rotate(180deg); opacity: .5; }

.ma-floatcard {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ma-surface);
  border: 1px solid var(--ma-gold-line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--ma-shadow);
  backdrop-filter: blur(10px);
}
.ma-floatcard--brands { bottom: 34px; inset-inline-end: -20px; }
.ma-floatcard__num {
  font-family: var(--font-number, VazirMatn, sans-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--ma-primary);
  line-height: 1.1;
}
html[data-theme="dark"] .ma-floatcard__num { color: var(--ma-gold); }
.ma-floatcard__lbl { font-size: 11.5px; font-weight: 700; color: var(--ma-soft); }
.ma-floatcard--time {
  top: 30px;
  inset-inline-start: -24px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.ma-floatcard--time svg { width: 20px; height: 20px; color: var(--ma-gold); }
.ma-floatcard--time div { display: flex; flex-direction: column; }
.ma-floatcard--time b { font-size: 15px; font-weight: 900; color: var(--ma-ink); }
.ma-floatcard--time span { font-size: 10.5px; color: var(--ma-soft); }

/* ═══════════ ۲ · مارکی ═════════════════════════════════════════ */
.ma-marquee-band {
  background: var(--ma-dark);
  color: var(--ma-cream);
  border-block: 1px solid var(--ma-gold-line);
  position: relative;
  overflow: hidden;
}
.ma-marquee-band::before,
.ma-marquee-band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.ma-marquee-band::before { inset-inline-start: 0; background: linear-gradient(to left, transparent, var(--ma-dark)); }
.ma-marquee-band::after { inset-inline-end: 0; background: linear-gradient(to right, transparent, var(--ma-dark)); }
.ma-marquee .rb-marquee__track { align-items: center; gap: 22px; }
.ma-marquee .rb-marquee__track span {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  color: rgba(243, 237, 223, .86);
  white-space: nowrap;
}
.ma-marquee .rb-marquee__track b { color: var(--ma-gold); font-size: 12px; }

/* ═══════════ ۳ · برندسنج ═══════════════════════════════════════ */
.ma-score {
  background:
    radial-gradient(700px 420px at 12% 0%, var(--ma-gold-soft), transparent 62%),
    var(--ma-bg);
}
.ma-score__grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}
.ma-score__form {
  background: var(--ma-surface);
  border: 1px solid var(--ma-border);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: var(--ma-shadow);
  position: relative;
  overflow: hidden;
}
.ma-score__form::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ma-gold), transparent);
  opacity: .8;
}
.ma-field { display: flex; flex-direction: column; gap: 7px; }
.ma-field label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ma-ink);
}
.ma-field label span { color: var(--ma-danger); }
.ma-field input,
.ma-field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--ma-bg);
  color: var(--ma-ink);
  border: 1px solid var(--ma-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 46px;
  transition: border-color .25s var(--ma-ease), box-shadow .25s var(--ma-ease), background .25s var(--ma-ease);
}
.ma-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300674f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 38px;
}
html[data-theme="dark"] .ma-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E0BE79' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.ma-field input::placeholder { color: var(--ma-soft); opacity: .7; }
.ma-field input:focus,
.ma-field select:focus {
  outline: none;
  border-color: var(--ma-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ma-primary) 16%, transparent);
  background: var(--ma-surface);
}
.ma-score__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.ma-score__submit .ma-btn { flex: 0 0 auto; }
.ma-score__submit p { font-size: 11.5px; color: var(--ma-soft); line-height: 1.7; }

.ma-score__aside {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 280px at 88% 0%, rgba(224, 190, 121, .2), transparent 65%),
    linear-gradient(160deg, var(--ma-dark-2), var(--ma-dark));
  color: var(--ma-cream);
  border: 1px solid var(--ma-gold-line);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--ma-shadow-lg);
}
.ma-score__aside::after {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -18%;
  height: 190px;
  background: url("/static/uploads/agenc/orn-circuit.png") center / cover no-repeat;
  opacity: .16;
  pointer-events: none;
}
.ma-aside-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--ma-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ma-aside-kicker::before { content: ""; width: 20px; height: 1px; background: var(--ma-gold); }
.ma-score__list { display: grid; gap: 13px; position: relative; z-index: 1; }
.ma-score__list li { display: flex; gap: 11px; align-items: flex-start; }
.ma-score__list svg {
  width: 18px; height: 18px;
  color: var(--ma-gold);
  flex: 0 0 auto;
  margin-top: 4px;
}
.ma-score__list div { display: flex; flex-direction: column; gap: 3px; }
.ma-score__list b { font-size: 13.5px; font-weight: 800; color: var(--ma-cream); }
.ma-score__list span { font-size: 12px; line-height: 1.85; color: var(--ma-cream-soft); }
.ma-score__quote {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(224, 190, 121, .22);
  position: relative;
  z-index: 1;
}
.ma-score__quote img { display: block; width: 100%; opacity: .55; margin-bottom: 10px; }
.ma-score__quote p { font-size: 12.5px; line-height: 1.95; color: var(--ma-cream-soft); }
.ma-score__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ma-gold);
  border: 1px solid rgba(224, 190, 121, .35);
  border-radius: 999px;
  padding: 9px 14px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  transition: background .3s var(--ma-ease), color .3s var(--ma-ease);
}
.ma-score__wa svg { width: 16px; height: 16px; }
.ma-score__wa:hover { background: var(--ma-gold); color: #0A1512; }

#ma .aw-sandbox-result { margin-top: 26px; }
#ma .aw-sandbox-result:empty { display: none; }
#ma .aw-sandbox-result .aw-sb-res-card { border-radius: 22px !important; }

/* ═══════════ ۴ · خدمات (کارت محصول) ═══════════════════════════ */
.ma-services { background: var(--ma-bg-alt); }
#ma .dh-products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.6vw, 22px) !important;
}
#ma .product-card {
  background: var(--ma-surface) !important;
  border: 1px solid var(--ma-border) !important;
  border-radius: 20px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ma-shadow);
  transition: transform .4s var(--ma-ease), box-shadow .4s var(--ma-ease), border-color .4s var(--ma-ease);
  position: relative;
}
#ma .product-card::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ma-gold), transparent);
  opacity: 0;
  transition: opacity .4s var(--ma-ease);
}
#ma .product-card:hover { transform: translateY(-6px); box-shadow: var(--ma-shadow-lg); border-color: var(--ma-gold-line) !important; }
#ma .product-card:hover::after { opacity: 1; }
#ma .product-card > a:first-child {
  height: 260px !important;
  aspect-ratio: auto !important;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ma-dark);
}
#ma .product-card > a:first-child img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  display: block;
  transition: transform .6s var(--ma-ease);
}
#ma .product-card:hover > a:first-child img { transform: scale(1.045); }
#ma .product-card > div { padding: 16px 16px 18px !important; gap: 9px !important; }
#ma .product-card h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
  color: var(--ma-ink) !important;
}
#ma .product-card [data-field="rating"] { display: none !important; }
#ma .product-card .wish { display: none !important; }
#ma .product-card [data-field="price"] {
  display: flex !important;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
#ma .product-card [data-field="price"] span:first-child {
  color: var(--ma-primary) !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}
html[data-theme="dark"] #ma .product-card [data-field="price"] span:first-child { color: var(--ma-gold) !important; }
#ma .product-card [data-field="price"] span + span { color: var(--ma-soft) !important; font-size: 11.5px !important; }
#ma .product-card .btn {
  width: 100%;
  justify-content: center !important;
  font-size: clamp(12px, .88vw, 13.5px) !important;
  padding: 9px 16px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  background: var(--ma-primary) !important;
  color: #FFFFFF !important;
  border: 1px solid transparent !important;
  margin-top: 4px !important;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
#ma .product-card .btn:hover { background: var(--ma-primary-bright) !important; }
#ma .product-card .btn svg { width: 14px; height: 14px; }
#ma .product-card .badge-pill {
  background: var(--ma-dark) !important;
  color: var(--ma-gold) !important;
  border: 1px solid var(--ma-gold-line);
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 4px 11px !important;
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
}

/* ── مسیرهای همکاری (دسته‌بندی‌ها) ────────────────────────────── */
.ma-paths { background: var(--ma-bg); }
#ma .dh-cats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.6vw, 18px) !important;
}
#ma .cat-overlay {
  position: relative;
  display: block;
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ma-border);
  background: var(--ma-dark);
  box-shadow: var(--ma-shadow);
  transition: transform .4s var(--ma-ease), border-color .4s var(--ma-ease), box-shadow .4s var(--ma-ease);
}
#ma .cat-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 12, 9, .92), rgba(3, 12, 9, .06) 66%);
  z-index: 1;
  pointer-events: none;
}
#ma .cat-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ma-ease);
}
#ma .cat-overlay:hover { transform: translateY(-4px); border-color: var(--ma-gold-line); box-shadow: var(--ma-shadow-lg); }
#ma .cat-overlay:hover img { transform: scale(1.05); }
#ma .cat-overlay .cat-ov-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 52px 18px 16px;
  background: none !important;
}
#ma .cat-overlay .cat-ov-label > div:first-child {
  color: #F3EDDF !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}
#ma .cat-overlay .cat-ov-label > div + div { color: rgba(243, 237, 223, .7) !important; }

/* ═══════════ ۵ · استودیوی امضا ════════════════════════════════ */
.ma-signature {
  background:
    radial-gradient(720px 420px at 85% 12%, rgba(224, 190, 121, .17), transparent 65%),
    radial-gradient(620px 420px at 6% 90%, rgba(14, 143, 108, .2), transparent 62%),
    var(--ma-dark);
  color: var(--ma-cream);
  overflow: hidden;
}
.ma-signature .ma-kicker { color: var(--ma-gold); }
.ma-signature .ma-h2 { color: var(--ma-cream); }
.ma-signature .ma-sub { color: var(--ma-cream-soft); }
.ma-sign__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.ma-sign__chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 16px; }
.ma-chip {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(243, 237, 223, .26);
  color: var(--ma-cream);
  border-radius: 999px;
  padding: 9px 19px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .28s var(--ma-ease);
}
.ma-chip:hover { border-color: var(--ma-gold); color: var(--ma-gold); }
.ma-chip.is-active {
  background: linear-gradient(135deg, var(--ma-gold), #D9B96F);
  border-color: var(--ma-gold);
  color: #0A1512;
  box-shadow: 0 10px 24px -14px rgba(224, 190, 121, .8);
}
.ma-sign__hint { font-size: 12.5px; line-height: 1.9; color: var(--ma-cream-soft); min-height: 24px; }
.ma-sign__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 237, 223, .16);
}
.ma-sign__pillars > div { display: flex; flex-direction: column; gap: 4px; }
.ma-sign__pillars span { font-size: 10.5px; font-weight: 800; color: var(--ma-gold); }
.ma-sign__pillars b { font-size: 13px; font-weight: 800; color: var(--ma-cream); line-height: 1.6; }
.ma-sign__canvas {
  position: relative;
  background: rgba(255, 253, 248, .035);
  border: 1px solid var(--ma-gold-line);
  border-radius: 24px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .25), var(--ma-shadow-lg);
  overflow: hidden;
}
.ma-sign__canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--ma-gold);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 237, 223, .12);
}
.ma-sign__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ma-gold); box-shadow: 0 0 12px var(--ma-gold); }
.ma-sign__canvas svg { display: block; width: 100%; height: auto; margin: 8px 0 4px; }
#ma-sign-path {
  fill: none;
  stroke: url(#maSignGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(224, 190, 121, .34));
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
  animation: maSignatureDraw 1.15s var(--ma-ease) forwards;
}
@keyframes maSignatureDraw {
  from { stroke-dashoffset: 1400; }
  to { stroke-dashoffset: 0; }
}
.ma-sign__gridline { fill: none; stroke: rgba(243, 237, 223, .14); stroke-width: 1; stroke-dasharray: 4 8; }
.ma-sign__point { fill: var(--ma-gold); }
.ma-sign__canvas-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(243, 237, 223, .12);
}
.ma-sign__canvas-foot strong { font-size: clamp(14px, 1.4vw, 17px); font-weight: 900; color: var(--ma-cream); }
.ma-sign__canvas-foot span { font-size: 10.5px; color: var(--ma-cream-soft); white-space: nowrap; }
.ma-sign__orn {
  position: absolute;
  bottom: -26px;
  inset-inline-end: -18px;
  width: 150px;
  opacity: .3;
  pointer-events: none;
}

/* ═══════════ ۶ · داستان برند ═══════════════════════════════════ */
.ma-story {
  background:
    radial-gradient(650px 380px at 90% 0%, rgba(224, 190, 121, .14), transparent 65%),
    linear-gradient(160deg, var(--ma-dark-2), var(--ma-dark));
  color: var(--ma-cream);
  padding-block: clamp(60px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.ma-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/uploads/agenc/orn-rails.png") top center / 1100px auto no-repeat;
  opacity: .1;
  pointer-events: none;
}
.ma-story__top {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.ma-story__copy h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.8rem);
  line-height: 1.4;
  font-weight: 900;
  color: var(--ma-cream);
  margin-bottom: 20px;
}
.ma-story__copy > p {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ma-cream-soft);
  margin-bottom: 14px;
}
.ma-story__copy .ma-btn { margin-top: 14px; }
.ma-story__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 237, 223, .16);
}
.ma-story__facts div { display: flex; flex-direction: column; gap: 5px; }
.ma-story__facts b { font-size: 11px; font-weight: 800; color: var(--ma-gold); }
.ma-story__facts span { font-size: 12px; line-height: 1.7; color: var(--ma-cream-soft); }
.ma-story__fig { margin: 0; position: relative; }
.ma-story__fig img {
  width: 100%;
  height: clamp(240px, 26vw, 360px);
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--ma-gold-line);
  box-shadow: var(--ma-shadow-lg);
  display: block;
}
.ma-story__fig::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(224, 190, 121, .32);
  border-radius: 14px;
  pointer-events: none;
}
.ma-story__fig figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ma-cream-soft);
  text-align: center;
}
.ma-story__strip {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid rgba(243, 237, 223, .14);
  position: relative;
  z-index: 1;
}
.ma-story__strip img { flex: 1; min-width: 0; height: 42px; object-fit: cover; opacity: .5; }
.ma-story__strip p { white-space: nowrap; font-size: clamp(12px, 1.2vw, 15px); font-weight: 800; }

/* ═══════════ ۷ · قبل / بعد ═════════════════════════════════════ */
.ma-beforeafter { overflow: hidden; }
.ma-beforeafter__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.ma-beforeafter__txt .ma-h2 { margin-bottom: 16px; }
.ma-check { display: grid; gap: 11px; margin: 24px 0 22px; }
.ma-check li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ma-ink); }
.ma-check svg { width: 16px; height: 16px; color: var(--ma-primary); flex: 0 0 auto; }
html[data-theme="dark"] .ma-check svg { color: var(--ma-gold); }
.ma-beforeafter__slider { position: relative; padding: 10px; }
.ma-beforeafter__slider .rb-before-after {
  aspect-ratio: 16 / 11;
  max-height: 480px;
  border: 1px solid var(--ma-gold-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--ma-shadow-lg);
}
.ma-beforeafter__labels {
  position: absolute;
  top: 24px;
  inset-inline: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}
.ma-beforeafter__labels span {
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(224, 190, 121, .4);
}
.ma-beforeafter__before { background: rgba(5, 16, 12, .7); color: #F3EDDF; }
.ma-beforeafter__after { background: rgba(224, 190, 121, .92); color: #0A1512; }
.ma-beforeafter__orn {
  display: block;
  width: 180px;
  margin: 14px auto 0;
  opacity: .8;
}
html[data-theme="dark"] .ma-beforeafter__orn { filter: brightness(1.25); }

/* ═══════════ ۸ · فرایند ═══════════════════════════════════════ */
.ma-process { background: var(--ma-bg-alt); }
.ma-process__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.ma-process__tab {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ma-border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ma-soft);
  cursor: pointer;
  transition: all .3s var(--ma-ease);
}
.ma-process__tab span {
  font-family: var(--font-number, VazirMatn, sans-serif);
  font-size: 10.5px;
  color: var(--ma-gold);
  font-weight: 800;
}
.ma-process__tab:hover { border-color: var(--ma-gold-line); color: var(--ma-ink); }
.ma-process__tab.is-active {
  background: var(--ma-surface);
  border-color: var(--ma-gold);
  color: var(--ma-ink);
  box-shadow: var(--ma-shadow);
}
.ma-process__panels {
  background: var(--ma-surface);
  border: 1px solid var(--ma-border);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--ma-shadow);
  overflow: hidden;
}
.ma-process__panel {
  display: none;
  grid-template-columns: 130px 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  animation: maFadeUp .45s var(--ma-ease);
}
.ma-process__panel.is-active { display: grid; }
@keyframes maFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ma-process__num {
  font-family: var(--font-number, VazirMatn, sans-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ma-gold-line);
  opacity: .9;
}
.ma-process__time { font-size: 11px; font-weight: 800; color: var(--ma-gold); margin-bottom: 8px; }
.ma-process__body h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 900; color: var(--ma-ink); margin-bottom: 10px; }
.ma-process__body > p { font-size: 14px; line-height: 2.05; color: var(--ma-soft); margin-bottom: 16px; }
.ma-process__body ul { display: grid; gap: 8px; }
.ma-process__body li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 13px;
  color: var(--ma-ink);
  line-height: 1.8;
}
.ma-process__body li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 9px;
  height: 1px;
  background: var(--ma-gold);
}

/* ═══════════ ۹ · آرشیو بنتو ═══════════════════════════════════ */
.ma-gallery { margin-bottom: 0; }
#ma .ma-gallery .ma-gal {
  padding: 0 !important;
  position: relative;
  overflow: hidden;
  border-radius: 20px !important;
  background: var(--ma-dark) !important;
  border: 1px solid var(--ma-border) !important;
  min-height: 260px;
  box-shadow: var(--ma-shadow);
}
#ma .ma-gallery .ma-gal img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .65s var(--ma-ease);
}
#ma .ma-gallery .ma-gal.span-7 img,
#ma .ma-gallery .ma-gal.span-5 img { height: 320px; }
#ma .ma-gallery .ma-gal:hover img { transform: scale(1.045); }
.ma-gal__cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 46px 18px 16px;
  background: linear-gradient(to top, rgba(3, 12, 9, .88), rgba(3, 12, 9, 0));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.ma-gal__cap span { font-size: 10px; font-weight: 800; color: #E0BE79; }
.ma-gal__cap h3 { font-size: 15px; font-weight: 900; color: #F3EDDF; }
.ma-gal::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(224, 190, 121, .25);
  border-radius: 14px;
  pointer-events: none;
}

/* کارنامه و جدول سندباکس */
.ma-case { margin-top: clamp(46px, 6vw, 76px); }
.ma-case__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ma-case__head > div { max-width: 620px; }
.ma-case__head .ma-sub { max-width: 420px; }
#ma .aw-sandbox-table-widget { margin: 0 auto !important; padding: 0 !important; max-width: none !important; }
#ma .aw-sandbox-table-widget > div {
  border-radius: 22px !important;
  border: 1px solid var(--ma-border) !important;
  background: var(--ma-surface) !important;
  padding: clamp(18px, 2.6vw, 28px) !important;
  box-shadow: var(--ma-shadow) !important;
}
#ma .aw-sandbox-table-widget h3 { color: var(--ma-ink) !important; font-weight: 900; }
#ma .aw-sandbox-table-widget input[type="search"] {
  background: var(--ma-bg) !important;
  color: var(--ma-ink) !important;
  border: 1px solid var(--ma-border) !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  padding: 9px 16px !important;
}
#ma .aw-sandbox-table-widget table { font-size: 12.5px; }
#ma .aw-sandbox-table-widget th {
  color: var(--ma-gold) !important;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  padding: 12px !important;
}
#ma .aw-sandbox-table-widget td { color: var(--ma-ink) !important; padding: 12px !important; line-height: 1.8; }
#ma .aw-sandbox-table-widget tbody tr { border-bottom: 1px solid var(--ma-border) !important; transition: background .25s var(--ma-ease); }
#ma .aw-sandbox-table-widget tbody tr:hover { background: var(--ma-gold-soft); }
#ma .aw-sandbox-table-widget td:first-child { font-weight: 800; }

/* ═══════════ ۱۰ · آمار و نظرات ════════════════════════════════ */
.ma-stats {
  position: relative;
  background:
    radial-gradient(600px 340px at 8% 8%, rgba(14, 143, 108, .2), transparent 62%),
    linear-gradient(170deg, var(--ma-dark-2), var(--ma-dark));
  color: var(--ma-cream);
  padding-block: clamp(54px, 7vw, 88px);
  overflow: hidden;
  border-block: 1px solid var(--ma-gold-line);
}
.ma-stats__orn {
  position: absolute;
  inset-inline: 0;
  top: 0;
  width: 100%;
  opacity: .22;
  pointer-events: none;
}
.ma-stats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(34px, 4vw, 52px);
  border-bottom: 1px solid rgba(243, 237, 223, .14);
}
.ma-stats__grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  padding: 8px 6px;
  border-inline-start: 1px solid rgba(243, 237, 223, .12);
}
.ma-stats__grid > div:first-child { border-inline-start: 0; }
.ma-stats__grid strong {
  font-family: var(--font-number, VazirMatn, sans-serif);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ma-gold);
}
.ma-stats__grid span { font-size: 12px; color: var(--ma-cream-soft); font-weight: 600; }
.ma-quotes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(30px, 4vw, 46px);
}
.ma-quotes blockquote {
  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid rgba(224, 190, 121, .22);
  border-radius: 18px;
  background: rgba(255, 253, 248, .035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.ma-quotes blockquote p { font-size: 13px; line-height: 2; color: var(--ma-cream-soft); }
.ma-quotes footer { display: flex; flex-direction: column; gap: 3px; }
.ma-quotes footer b { font-size: 12.5px; font-weight: 900; color: var(--ma-gold); }
.ma-quotes footer span { font-size: 10.5px; color: rgba(243, 237, 223, .55); }

/* ═══════════ ۱۱ · پرسش‌ها ═════════════════════════════════════ */
.ma-faq__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ma-faq__intro { position: sticky; top: 110px; }
.ma-faq__intro .ma-h2 { margin-bottom: 16px; }
.ma-faq__intro .ma-link { margin-top: 18px; }
.ma-faq__orn { display: block; width: 130px; margin-top: 30px; opacity: .5; }
html[data-theme="dark"] .ma-faq__orn { opacity: .75; }
.ma-faq .rb-faq-item {
  background: var(--ma-surface) !important;
  border: 1px solid var(--ma-border) !important;
  border-radius: 14px !important;
  margin-bottom: 10px !important;
}
.ma-faq .rb-faq-item.open { border-color: var(--ma-gold-line) !important; }
.ma-faq .rb-faq-q {
  color: var(--ma-ink) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 17px 20px !important;
}
.ma-faq .rb-faq-q span {
  color: var(--ma-gold) !important;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(0deg);
  transition: transform .3s var(--ma-ease);
}
.ma-faq .rb-faq-item.open .rb-faq-q span { transform: rotate(45deg); }
.ma-faq .rb-faq-a {
  color: var(--ma-soft) !important;
  font-size: 12.5px !important;
  line-height: 2 !important;
  padding: 0 20px 18px !important;
}

/* ═══════════ ۱۲ · مشاوره و استعلام ════════════════════════════ */
.ma-consult {
  position: relative;
  background:
    radial-gradient(680px 400px at 88% 10%, rgba(224, 190, 121, .16), transparent 62%),
    linear-gradient(165deg, var(--ma-dark-2), var(--ma-dark));
  color: var(--ma-cream);
  padding-block: clamp(58px, 7.5vw, 100px);
  overflow: hidden;
}
.ma-consult::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ma-gold), transparent);
}
.ma-consult__head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 44px); }
.ma-consult .ma-h2 { color: var(--ma-cream); }
.ma-consult .ma-sub { color: var(--ma-cream-soft); }
.ma-consult__grid {
  display: grid;
  grid-template-columns: 1fr 1fr .72fr;
  gap: 18px;
  align-items: stretch;
}
.ma-form-card {
  background: #F7F3EA;
  color: #1E2A25;
  border: 1px solid rgba(224, 190, 121, .35);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--ma-shadow-lg);
  position: relative;
  overflow: hidden;
}
.ma-form-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #00674f, #B0863F, #00674f);
  opacity: .85;
}
.ma-form-card__head { margin-bottom: 18px; }
.ma-form-card__head > span {
  font-family: var(--font-number, VazirMatn, sans-serif);
  font-size: 10.5px;
  font-weight: 900;
  color: #B0863F;
}
.ma-form-card__head h3 {
  font-size: 18px;
  font-weight: 900;
  color: #14221C;
  margin: 4px 0 4px;
}
.ma-form-card__head p { font-size: 11.5px; color: #5C6A62; line-height: 1.8; }

/* فرم‌های موتور داخل کارت روشن — کنتراست تضمین‌شده در هر دو تم */
.ma-form-card form { max-width: none !important; }
.ma-form-card form h3 { display: none !important; }
.ma-form-card form label { color: #1E2A25 !important; font-size: 12px !important; }
.ma-form-card form input,
.ma-form-card form select,
.ma-form-card form textarea {
  background: #FFFDF8 !important;
  color: #1E2A25 !important;
  border: 1px solid #DDD3C0 !important;
  border-radius: 11px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  padding: 10px 12px !important;
}
.ma-form-card form input::placeholder,
.ma-form-card form textarea::placeholder { color: #7C877F !important; }
.ma-form-card form input:focus,
.ma-form-card form select:focus,
.ma-form-card form textarea:focus {
  outline: none !important;
  border-color: #00674F !important;
  box-shadow: 0 0 0 3px rgba(0, 103, 79, .14) !important;
}
.ma-form-card form button[type="submit"] {
  background: #00674F !important;
  color: #FFFFFF !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 11px 18px !important;
  font-size: clamp(12px, .88vw, 13.5px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  min-height: 44px;
  cursor: pointer;
  transition: background .3s var(--ma-ease), transform .3s var(--ma-ease);
}
.ma-form-card form button[type="submit"]:hover { background: #0A7F63 !important; transform: translateY(-1px); }
.ma-form-card form > div > div { margin-bottom: 12px !important; }

.ma-consult__info {
  background: rgba(255, 253, 248, .04);
  border: 1px solid rgba(224, 190, 121, .24);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.ma-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ma-cream);
  text-decoration: none;
}
.ma-contact-line svg { width: 17px; height: 17px; color: var(--ma-gold); flex: 0 0 auto; margin-top: 4px; }
.ma-contact-line span { display: flex; flex-direction: column; gap: 2px; }
.ma-contact-line b { font-size: 12.5px; font-weight: 800; }
.ma-contact-line small { font-size: 10.5px; color: var(--ma-cream-soft); }
a.ma-contact-line:hover b { color: var(--ma-gold); }
.ma-consult__seal {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(224, 190, 121, .2);
  display: flex;
  justify-content: center;
}
.ma-consult__seal img { width: 78px; height: 78px; object-fit: contain; opacity: .9; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }

/* ═══════════ ۱۳ · مجله ═══════════════════════════════════════ */
.ma-journal { background: var(--ma-bg); }
#ma .aw-hslider { position: relative; }
#ma .aw-hs-item .product-card { border-radius: 18px !important; }
#ma .aw-hs-prev, #ma .aw-hs-next { color: var(--ma-ink); }
#ma .post-card, #ma .aw-hs-item > div {
  background: var(--ma-surface);
  border: 1px solid var(--ma-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ma-shadow);
  transition: transform .35s var(--ma-ease), box-shadow .35s var(--ma-ease);
}
#ma .post-card:hover { transform: translateY(-5px); box-shadow: var(--ma-shadow-lg); }
#ma .post-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
#ma .post-card h3 { color: var(--ma-ink) !important; font-size: 15px !important; font-weight: 800 !important; line-height: 1.7 !important; }
#ma .post-card p { color: var(--ma-soft) !important; font-size: 12.5px !important; line-height: 1.9 !important; }
#ma .post-card a { color: var(--ma-primary) !important; }

/* ═══════════ دکمهٔ شناور واتساپ ════════════════════════════════ */
#ma .ma-wa {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ma-dark);
  color: var(--ma-cream);
  border: 1px solid var(--ma-gold-line);
  border-radius: 999px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ma-ease), background .3s var(--ma-ease);
}
#ma .ma-wa svg { width: 18px; height: 18px; color: var(--ma-gold); }
#ma .ma-wa:hover { transform: translateY(-2px); background: #0C1B16; }

/* ═══════════ واکنش‌گرایی ══════════════════════════════════════ */
@media (max-width: 1080px) {
  .ma-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .ma-hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .ma-hero__sub { max-width: 640px; }
  .ma-floatcard--brands { inset-inline-end: 6px; bottom: 18px; }
  .ma-floatcard--time { inset-inline-start: 6px; top: 18px; }
  .ma-score__grid { grid-template-columns: 1fr; }
  .ma-sign__grid { grid-template-columns: 1fr; }
  .ma-story__top { grid-template-columns: 1fr; }
  .ma-story__fig { order: -1; }
  .ma-beforeafter__grid { grid-template-columns: 1fr; }
  .ma-consult__grid { grid-template-columns: 1fr 1fr; }
  .ma-consult__info { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ma-consult__info .ma-aside-kicker { width: 100%; }
  .ma-contact-line { flex: 1 1 200px; }
  .ma-consult__seal { margin-top: 0; border-top: 0; padding-top: 0; margin-inline-start: auto; }
  .ma-faq__grid { grid-template-columns: 1fr; }
  .ma-faq__intro { position: static; }
  .ma-faq__orn { display: none; }
  #ma .dh-products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
  .ma-wrap { padding-inline: 16px; }
  .ma-sec { padding-block: 52px; }
  .ma-hero { padding-top: 34px; padding-bottom: 56px; }
  .ma-hero__title { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .ma-hero__cta .ma-btn { flex: 1 1 auto; justify-content: center; }
  .ma-hero__orn { opacity: .18; }
  .ma-frame { padding: 10px; border-radius: 18px; }
  .ma-frame__overlay { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .ma-frame > img:first-child { border-radius: 11px; max-height: 430px; }
  .ma-corner--tr { width: 100px; top: -14px; inset-inline-end: -8px; }
  .ma-corner--bl { width: 90px; bottom: -12px; inset-inline-start: -8px; }
  .ma-floatcard { padding: 8px 12px; border-radius: 12px; }
  .ma-floatcard__num { font-size: 20px; }
  .ma-floatcard--time svg { width: 16px; height: 16px; }
  .ma-floatcard--time b { font-size: 12.5px; }
  .ma-floatcard--time span { font-size: 9.5px; }
  .ma-floatcard--brands { bottom: 12px; inset-inline-end: 4px; }
  .ma-floatcard--time { top: 14px; inset-inline-start: 4px; }

  .ma-sec-head--split { align-items: flex-start; flex-direction: column; gap: 14px; }
  .ma-score__form { grid-template-columns: 1fr; padding: 20px; }
  .ma-score__submit { flex-direction: column; align-items: stretch; }
  .ma-score__submit .ma-btn { width: 100%; }
  .ma-score__submit p { text-align: center; }
  .ma-score__aside { order: 2; }
  .ma-sign__pillars { grid-template-columns: 1fr; gap: 10px; }
  .ma-sign__pillars > div { flex-direction: row; align-items: baseline; gap: 8px; }
  .ma-signature .ma-h2 { font-size: clamp(1.55rem, 7.2vw, 2.1rem); }
  .ma-sign__canvas { padding: 16px; }
  .ma-sign__canvas-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ma-story__facts { grid-template-columns: 1fr; gap: 12px; }
  .ma-story__strip img { height: 30px; }
  .ma-story__strip p { font-size: 10.5px; }
  .ma-process__tabs { grid-template-columns: 1fr 1fr; }
  .ma-process__tab { font-size: 12px; padding: 12px 8px; }
  .ma-process__panel { grid-template-columns: 1fr; gap: 8px; }
  .ma-process__num { font-size: 2.6rem; }
  .ma-process__panels { padding: 20px; }
  #ma .dh-cats { grid-template-columns: 1fr !important; gap: 10px !important; }
  #ma .cat-overlay { height: 160px; }
  #ma .cat-overlay .cat-ov-label { padding: 34px 16px 14px; }
  #ma .cat-overlay .cat-ov-label > div:first-child { font-size: 15px !important; }
  #ma .dh-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  #ma .product-card > a:first-child { height: 170px !important; }
  #ma .product-card > a:first-child img { height: 170px !important; }
  #ma .product-card > div { padding: 12px 12px 14px !important; }
  #ma .product-card h3 { font-size: 13px !important; }
  #ma .product-card [data-field="price"] span:first-child { font-size: 13px !important; }
  #ma .product-card .btn { font-size: 11.5px !important; padding: 8px 10px !important; }
  #ma .ma-gallery .ma-gal img { height: 190px !important; }
  #ma .ma-gallery .ma-gal.span-7 img,
  #ma .ma-gallery .ma-gal.span-5 img { height: 230px !important; }
  .ma-stats__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ma-stats__grid > div:nth-child(odd) { border-inline-start: 0; }
  .ma-quotes { grid-template-columns: 1fr; }
  .ma-consult__grid { grid-template-columns: 1fr; }
  .ma-consult__info { grid-column: auto; }
  .ma-consult__seal { margin-inline-start: 0; }
  .ma-form-card form > div > div { margin-bottom: 10px !important; }
  #ma .ma-wa { bottom: 82px; inset-inline-start: 14px; padding: 10px 13px; font-size: 11px; }
  #ma section[id], #ma .ma-case[id] { scroll-margin-top: 92px; }
  #ma .post-card img { height: 170px; }
}

@media (max-width: 430px) {
  #ma .dh-products { gap: 10px !important; }
  #ma .product-card > a:first-child { height: 150px !important; }
  #ma .product-card > a:first-child img { height: 150px !important; }
  .ma-hero__cta { flex-direction: column; }
  .ma-hero__cta .ma-btn { width: 100%; }
  .ma-beforeafter__labels { inset-inline: 14px; top: 16px; }
  #ma .ma-wa span { display: none; }
  #ma .ma-wa { padding: 11px; }
  .ma-stats__grid strong { font-size: 1.7rem; }
}

/* ── کاهش حرکت ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #ma *, #ma *::before, #ma *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
